From 1de465dbb6a2d57da64db862598c417c5739a766 Mon Sep 17 00:00:00 2001 From: Zane Vaz <94819993+bsf-zanev@users.noreply.github.com> Date: Fri, 2 Aug 2024 19:04:54 +0530 Subject: [PATCH 1/2] SPCTR-4275: Replicated the fix in #4134 (#4135) * SPCTR-4275: Replicated the fix in #4134 * SPCTR-4275: Fixed the parent and child FAQ blocks in the editor after interception. * SPCTR-4275: Removed unrequired code. --- README.md | 3 +++ blocks-config/faq/class-uagb-faq.php | 15 ++++++++------- dist/blocks.asset.php | 2 +- dist/blocks.js | 2 +- readme.txt | 3 +++ src/blocks/faq-child/render.js | 7 ++++++- src/blocks/faq/edit.js | 6 +++++- 7 files changed, 27 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a48c04c6b5..8dce161099 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,9 @@ Our external packages use [Rating Star Component](https://github.com/n49/react-s ## Changelog ## +### x.x.x ### +* This update addressed a security bug. Props to Patchstack for privately reporting it to our team. Please make sure you are using the latest version on your website. + ### 2.15.0 - Thursday, 1st August 2024 ### * Improvement: Container - Added an order option for grid layout to set the order in which the inner container should be. * Improvement: Info Box - Added an overall border option. diff --git a/blocks-config/faq/class-uagb-faq.php b/blocks-config/faq/class-uagb-faq.php index f6e48ff738..2f8b3f2975 100644 --- a/blocks-config/faq/class-uagb-faq.php +++ b/blocks-config/faq/class-uagb-faq.php @@ -1306,13 +1306,14 @@ public function faq_render_icon( $icon, $class ) { */ public function render_faq_child_block( $attributes, $content, $block ) { // Extract attributes. - $block_id = isset( $attributes['block_id'] ) ? $attributes['block_id'] : ''; - $question = $attributes['question']; - $answer = $attributes['answer']; - $icon = isset( $attributes['icon'] ) ? $attributes['icon'] : 'plus'; - $icon_active = isset( $attributes['iconActive'] ) ? $attributes['iconActive'] : 'minus'; - $layout = $attributes['layout']; - $heading_tag = $attributes['headingTag']; + $block_id = isset( $attributes['block_id'] ) ? $attributes['block_id'] : ''; + $question = $attributes['question']; + $answer = $attributes['answer']; + $icon = isset( $attributes['icon'] ) ? $attributes['icon'] : 'plus'; + $icon_active = isset( $attributes['iconActive'] ) ? $attributes['iconActive'] : 'minus'; + $layout = $attributes['layout']; + $array_of_allowed_HTML = array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span', 'p' ); + $heading_tag = UAGB_Helper::title_tag_allowed_html( $attributes['headingTag'], $array_of_allowed_HTML, 'span' ); // Render icon and active icon. $icon_output = $this->faq_render_icon( $icon, 'uagb-icon' ); diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 3dec85d2fc..916d7f22dc 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'f0638d97af9d555f44a0f550da337f30'); \ No newline at end of file + array('react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'e6db36cfa7e3f3e968af6d1e1a88af58'); \ No newline at end of file diff --git a/dist/blocks.js b/dist/blocks.js index 5645fe8a62..7c8120f02e 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -16,7 +16,7 @@ Object(r.__)("%s units","ultimate-addons-for-gutenberg"),t.name),onClick:()=>T(t /* translators: %s: file name */ Object(r.__)("This image has an empty alt attribute; its file name is %s","ultimate-addons-for-gutenberg"),J):Object(r.__)("This image has an empty alt attribute","ultimate-addons-for-gutenberg")),Q=u||(J?Object(r.sprintf)( /* translators: %s: file name */ -Object(r.__)("This image has an empty title attribute; its file name is %s","ultimate-addons-for-gutenberg"),J):Object(r.__)("This image has an empty title attribute","ultimate-addons-for-gutenberg"));const ee=d&&i&&(o||s)&&(i!==o||i!==s);let te,ae,ie=React.createElement(React.Fragment,null,React.createElement("img",{srcSet:ee?`${a||i} ${o?","+o+" 780w":""}${s?", "+s+" 360w":""}`:null,src:a||i,alt:"presentation"===_?"":X,title:"presentation"===_?"":Q,onLoad:e=>{var t,a;V({loadedNaturalWidth:null===(t=e.target)||void 0===t?void 0:t.naturalWidth,loadedNaturalHeight:null===(a=e.target)||void 0===a?void 0:a.naturalHeight})},ref:R,loading:v?void 0:"lazy",role:_}),a&&React.createElement(Le.Spinner,null));if(Z&&Y&&K){const e=Y>Z,t=K/Y;te=e?Z:Y,ae=e?Z*t:K}Object(B.useEffect)(()=>{C||q(!1),C&&Gd(d)&&M()},[C]);const oe=d&&Y&&K&&F,ne=!H&&oe&&!W;if(oe&&W)ie=React.createElement(ge.__experimentalImageEditor,{id:d,url:i,width:b,height:y,clientWidth:Z,naturalHeight:K,naturalWidth:Y,onSaveImage:e=>T(e),onFinishEditing:()=>{q(!1)}});else if($&&te){const e=b||te,t=y||ae,a=Y/K,l=Y{if(E(!0),"Tablet"===O){const e=g||780;T({widthTablet:Math.abs(parseInt(e+o.width,10)),heightTablet:Math.abs(parseInt(f+o.height,10))})}else if("Mobile"===O){const e=m||320;T({widthMobile:Math.abs(parseInt(e+o.width,10)),heightMobile:Math.abs(parseInt(h+o.height,10))})}else T({width:Math.abs(parseInt(e+o.width,10)),height:Math.abs(parseInt(t+o.height,10))})}},ie)}else"full"!==p&&(ie=React.createElement("div",null,ie));const re=React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{group:"block"},ne&&React.createElement(Le.ToolbarButton,{onClick:()=>q(!0),icon:Ld,label:Object(r.__)("Crop","ultimate-addons-for-gutenberg")})),!H&&!W&&React.createElement(ge.BlockControls,{group:"other"},React.createElement(ge.MediaReplaceFlow,{mediaId:d,mediaURL:i,allowedTypes:Hd,accept:"image/*",onSelect:k,onSelectURL:w,onError:P,onCloseModal:S})));return React.createElement(React.Fragment,null,!a&&re,ie)}function jd(e){let{attributes:t,isSelected:a,setAttributes:l,captionRef:i}=e;const{caption:o,enableCaption:n,heading:s,headingTag:c,layout:u,overlayContentPosition:p,seperatorStyle:d,seperatorPosition:b}=t,g=Object(B.useRef)();Object(B.useEffect)(()=>{g.current=s},[o]);const m=React.createElement(React.Fragment,null,(!ge.RichText.isEmpty(s)||a)&&React.createElement(ge.RichText,{ref:g,tagName:c,className:"uagb-image-heading","aria-label":Object(r.__)("Image overlay heading text","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Add Heading","ultimate-addons-for-gutenberg"),value:s,onChange:e=>l({heading:e})})),y=React.createElement(React.Fragment,null,(!ge.RichText.isEmpty(o)||a)&&React.createElement(ge.RichText,{ref:i,tagName:"figcaption",className:"uagb-image-caption","aria-label":Object(r.__)("Image caption text","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Add caption","ultimate-addons-for-gutenberg"),value:o,onChange:e=>l({caption:e})})),f="none"!==d&&React.createElement("div",{className:"uagb-image-separator"});return React.createElement(React.Fragment,null,"overlay"===u?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+p.replace(" ","-")},"before_title"===b&&f,m,"after_title"===b&&f,y,"after_sub_title"===b&&f)):React.createElement(React.Fragment,null,n&&y))}var zd,Dd=a(102),Nd=0,Id={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Vd={};Vd.locals=Dd.a.locals||{},Vd.use=function(){return Nd++||(zd=we()(Dd.a,Id)),Vd},Vd.unuse=function(){Nd>0&&!--Nd&&(zd(),zd=null)};var Wd=Vd;function qd(){return(qd=Object.assign||function(e){for(var t=1;t{let{attributes:t}=e;const{setAttributes:a,className:l,isSelected:i,insertBlocksAfter:o,onReplace:s,context:c,clientId:u,deviceType:p}=e;null!=e&&e.loopUrl&&(t={...t,url:e.loopUrl}),null!=e&&e.loopAlt&&(t={...t,alt:e.loopAlt}),null!=e&&e.loopTitle&&(t={...t,title:e.loopTitle}),null!=e&&e.loopWidth&&(t={...t,width:e.loopWidth});const{block_id:d,layout:b,url:g,alt:m,title:y,caption:f,align:h,id:v,linkTarget:_,linkClass:T,rel:C,imageHoverEffect:S,href:k,linkDestination:w,sizeSlug:P,sizeSlugTablet:x,sizeSlugMobile:A}=t;Object(B.useLayoutEffect)(()=>(Wd.use(),()=>{Wd.unuse()}),[]);const{createNotice:G}=Object(n.useDispatch)("core/notices"),[M,R]=Object(B.useState)(),[U,E]=Object(B.useState)(),O=Object(B.useRef)();Object(B.useEffect)(()=>{O.current=m},[m]);const L=Object(B.useRef)();Object(B.useEffect)(()=>{L.current=y},[y]);const H=Object(B.useRef)();Object(B.useEffect)(()=>{H.current=f},[f]);const F=Object(B.useRef)(),{imageDefaultSize:j,mediaUpload:z}=Object(n.useSelect)(e=>{const{getSettings:t}=e(ge.store),{imageDefaultSize:a,mediaUpload:l}=t();return{imageDefaultSize:a,mediaUpload:l}},[]),{image:D}=Object(n.useSelect)(e=>{const{getMedia:t}=e(be.store);return{image:v&&i?t(v):null}},[v,i]);function N(){var e;Gd(null===(e=t)||void 0===e?void 0:e.id)&&a({url:void 0,id:void 0})}function I(e){G("error",e,{type:"snackbar"})}function V(e){var l,i,o,n,r;if(!e||!e.url)return void a({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(wd.isBlobURL)(e.url))return void R(e.url);R();let s=Pd(e,j);"custom"===P&&(delete s.width,delete s.height),H.current&&!s.caption&&(s={...s,alt:s.alt,title:s.title,id:s.id,link:s.link});let c={};e.id&&e.id===v?c={url:g}:("custom"!==P&&(c={width:void 0,height:void 0,sizeSlug:Ad(e,j)?j:"full",...c}),"custom"!==x&&(c={...c,sizeSlugTablet:Ad(e,j)?j:"full"}),"custom"!==A&&(c={...c,sizeSlugMobile:Ad(e,j)?j:"full"}));let u,p=t.linkDestination;if(!p)switch((null===(l=wp)||void 0===l||null===(i=l.media)||void 0===i||null===(o=i.view)||void 0===o||null===(n=o.settings)||void 0===n||null===(r=n.defaultProps)||void 0===r?void 0:r.link)||"none"){case"file":case"media":p="media";break;case"post":case"attachment":p="attachment";break;case"custom":p="custom";break;case"none":p="none"}switch(p){case"media":u=e.url;break;case"attachment":u=e.link}s.href=u,s={...s,...Md(e,"Tablet"),...Md(e,"Mobile")};const d={...s,...c,linkDestination:p};a(d)}function W(e){if(e!==g){let t={url:e,urlTablet:e,urlMobile:e,id:void 0};"custom"!==P&&(t={...t,width:void 0,height:void 0,sizeSlug:j}),"custom"!==x&&(t={...t,widthTablet:void 0,heightTablet:void 0,sizeSlugTablet:j}),"custom"!==A&&(t={...t,heightMobile:void 0,widthMobile:void 0,sizeSlugMobile:j}),a(t)}}let q=((e,t)=>!e&&Object(wd.isBlobURL)(t))(v,g);Object(B.useEffect)(()=>{if(!q)return;const e=Object(wd.getBlobByURL)(g);e&&z({filesList:[e],onFileChange:e=>{let[t]=e;V(t)},allowedTypes:Hd,onError:e=>{q=!1,G("error",e,{type:"snackbar"}),a({src:void 0,id:void 0,url:void 0})}})},[]),Object(B.useEffect)(()=>{q?R(g):Object(wd.revokeBlobURL)(M)},[q,g]);const Z=xd(v,g)?g:void 0,$=!!g&&React.createElement("img",{alt:Object(r.__)("Edit image","ultimate-addons-for-gutenberg"),title:Object(r.__)("Edit image","ultimate-addons-for-gutenberg"),className:"edit-image-preview",src:g});Object(B.useEffect)(()=>{xd(v,g)&&i&&!U&&window.fetch(g).then(e=>e.blob()).then(e=>E(e)).catch(()=>{})},[v,g,i,U]);const Y=Object(ge.useBlockProps)({ref:F});return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{group:"block"},React.createElement(ge.__experimentalImageURLInputUI,{url:k||"",onChangeUrl:function(e){a(e)},linkDestination:w,mediaUrl:D&&D.source_url||g,mediaLink:D&&D.link,linkTarget:_,linkClass:T,rel:C}),U&&React.createElement(Le.ToolbarButton,{onClick:function(){z({filesList:[U],onFileChange(e){let[t]=e;V(t),Object(wd.isBlobURL)(null==t?void 0:t.url)||(E(),G("success",Object(r.__)("Image uploaded.","ultimate-addons-for-gutenberg"),{type:"snackbar"}))},allowedTypes:Hd,onError(e){G("error",e,{type:"snackbar"})}})},icon:Ed,label:Object(r.__)("Upload external image","ultimate-addons-for-gutenberg")})),React.createElement("div",qd({},Y,{className:Be()(l,"uagb-editor-preview-mode-"+p.toLowerCase(),"uagb-block-"+d,"wp-block-uagb-image--layout-"+b,"wp-block-uagb-image--effect-"+S,"wp-block-uagb-image--align-"+(h||"none"))}),(M||g)&&React.createElement("figure",{className:"wp-block-uagb-image__figure"},React.createElement(Fd,{temporaryURL:M,attributes:t,setAttributes:a,isSelected:i,insertBlocksAfter:o,onReplace:s,onSelectImage:V,onSelectURL:W,onUploadError:I,containerRef:F,context:c,clientId:u,onCloseModal:N,onImageLoadError:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||a({url:void 0,id:void 0})}}),React.createElement(jd,{captionRef:H,attributes:t,setAttributes:a,isSelected:i})),React.createElement(ge.MediaPlaceholder,{icon:React.createElement(ge.BlockIcon,{icon:se.image}),labels:{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),instructions:Object(r.__)("Upload an image file, pick one from your media library, or add one with a URL.","ultimate-addons-for-gutenberg")},onSelect:V,onSelectURL:W,onError:I,onClose:N,accept:"image/*",allowedTypes:Hd,value:{id:v,src:Z},mediaPreview:$,disableMediaButtons:M||g})))};Zd.propTypes={},Zd.defaultProps={};var $d=Object(B.memo)(Zd);a(162);var Yd=Object(L.compose)((function(e){return t=>{var a,l;const{attributes:i,context:o}=t,n=null==i||null===(a=i.dynamicContent)||void 0===a||null===(l=a.bgImage)||void 0===l?void 0:l.enable;if(t={...t,hasDynamicContent:n},!n)return React.createElement(e,t);const r=Object(F.applyFilters)("spectra_filter_dc_image",i,o);return t={...t,attributes:r},React.createElement(e,t)}}),ls,fe,uc)((function(e){const{isSelected:t,attributes:a,name:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n,id:r},deviceType:s,context:c,setAttributes:u,clientId:p,hasDynamicContent:d}=e;Object(B.useEffect)(()=>{var e;!d||null!=a&&null!==(e=a.context)&&void 0!==e&&e.postId||u(e=>({...e,context:c}))},[d,null==c?void 0:c.postId]),Object(B.useEffect)(()=>{ys()},[s]);const b=Object(B.useMemo)(()=>gd(a,p,l,s),[a,s]);return Object(B.useEffect)(()=>{he(e)},[i,o,n,s]),Object(B.useMemo)(()=>{r&&(e=>{const t=window.location.protocol,a=!!(l=e.url)&&(l&&l.indexOf("http:")>=0?"http:":"https:");var l;a!==t&&["url","urlMobile","urlTablet"].map(l=>{e[l]=e[l].replace(a,t)})})(e.attributes)},[a]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:b}),t&&React.createElement(Bd,e),React.createElement($d,e))}));const Kd=ce("overlay");var Jd={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},imageBoxShadowColor:{type:"string",UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...Kd};const Xd=ce("overlay");var Qd={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},imageBoxShadowColor:{type:"string",default:"#00000070",UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...Xd};const eb=ce("overlay");var tb={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},imgRole:{type:"string",default:"img"},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},captionFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headingFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",isGBSStyle:!0,UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},useSeparateBoxShadows:{type:"boolean",default:!0},imageBoxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-position"}},imageBoxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"image-shadow-color-hover"}},imageBoxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset-hover"}},imageBoxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset-hover"}},imageBoxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur-hover"}},imageBoxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread-hover"}},imageBoxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position-hover"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...eb};const ab=ce("overlay");var lb=[{attributes:tb,save:e=>{const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} 1024w${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h}),P=()=>f?f+" noopener":"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:tb,save:e=>{const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h}),P=()=>f?f+" noopener":"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:Jd,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h}),P=()=>f?f.trim():"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:Qd,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h,loading:"lazy"}),P=()=>f?f.trim():"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:tb,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h,loading:"lazy"}),P=()=>f?f.trim():"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:tb,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,naturalHeight:g,naturalWidth:m,align:y,id:f,linkTarget:h,rel:v,title:_,heading:T,headingTag:C,headingId:S,overlayContentPosition:k,seperatorStyle:w,seperatorPosition:P}=e.attributes,x=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:l,alt:n,className:f?"uag-image-"+f:null,width:d||m,height:b||g,title:_,loading:"lazy"}),A=()=>v?v.trim():"noopener",G=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:h,rel:A()},x):x),M=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(T)&&React.createElement(ge.RichText.Content,{tagName:C,id:S,className:"uagb-image-heading",value:T})),R=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),B="none"!==w&&React.createElement("div",{className:"uagb-image-separator"}),U=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:h,rel:A()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(y||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},G,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+k.replace(" ","-")},U,"before_title"===P&&B,M,"after_title"===P&&B,R,"after_sub_title"===P&&B)):React.createElement(React.Fragment,null,s&&R)))}},{attributes:tb,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,naturalHeight:g,naturalWidth:m,align:y,id:f,linkTarget:h,rel:v,title:_,heading:T,headingTag:C,headingId:S,overlayContentPosition:k,seperatorStyle:w,seperatorPosition:P}=e.attributes,x=l&&""!==l&&React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:l,alt:n,className:f?"uag-image-"+f:null,width:d||m,height:b||g,title:_,loading:"lazy"}),A=()=>v?v.trim():"noopener",G=React.createElement(React.Fragment,null,u&&""!==u?React.createElement("a",{className:p,href:u,target:h,rel:A()},x):x),M=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(T)&&React.createElement(ge.RichText.Content,{tagName:C,id:S,className:"uagb-image-heading",value:T})),R=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),B="none"!==w&&React.createElement("div",{className:"uagb-image-separator"}),U=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:h,rel:A()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(y||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},G,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+k.replace(" ","-")},U,"before_title"===P&&B,M,"after_title"===P&&B,R,"after_sub_title"===P&&B)):React.createElement(React.Fragment,null,s&&R)))}},{attributes:{block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},disableLazyLoad:{type:"boolean",default:!1},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},imgRole:{type:"string",default:"img"},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},captionFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headingFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",isGBSStyle:!0,UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},useSeparateBoxShadows:{type:"boolean",default:!0},imageBoxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-position"}},imageBoxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"image-shadow-color-hover"}},imageBoxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset-hover"}},imageBoxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset-hover"}},imageBoxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur-hover"}},imageBoxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread-hover"}},imageBoxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position-hover"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...ab},save:function(e){var t,a;const{attributes:l}=e,{block_id:i,layout:o,url:n,urlTablet:r,urlMobile:s,alt:c,caption:u,enableCaption:p,imageHoverEffect:d,href:b,linkClass:g,width:m,height:y,naturalHeight:f,naturalWidth:h,align:v,id:_,linkTarget:T,rel:C,title:S,heading:k,headingTag:w,headingId:P,overlayContentPosition:x,seperatorStyle:A,seperatorPosition:G,disableLazyLoad:M}=e.attributes,R=n&&""!==n&&React.createElement("img",{srcSet:`${n} ${r?","+r+" 780w":""}${s?", "+s+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:n,alt:c,className:_?"uag-image-"+_:null,width:m||h,height:y||f,title:S,loading:M?void 0:"lazy"}),B=()=>C?C.trim():"noopener",U=React.createElement(React.Fragment,null,b&&""!==b?React.createElement("a",{className:g,href:b,target:T,rel:B()},R):R),E=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(k)&&React.createElement(ge.RichText.Content,{tagName:w,id:P,className:"uagb-image-heading",value:k})),O=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(u)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:u})),L="none"!==A&&React.createElement("div",{className:"uagb-image-separator"}),H=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+g,href:b,target:T,rel:B()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+i,"wp-block-uagb-image","wp-block-uagb-image--layout-"+o,"wp-block-uagb-image--effect-"+d,"wp-block-uagb-image--align-"+(v||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},U,"overlay"===o?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+x.replace(" ","-")},(!0===(null==l||null===(t=l.dynamicContent)||void 0===t||null===(a=t.bgImageLink)||void 0===a?void 0:a.enable)||b)&&H,"before_title"===G&&L,E,"after_title"===G&&L,O,"after_sub_title"===G&&L)):React.createElement(React.Fragment,null,p&&O)))}}],ib={from:[{type:"block",blocks:["core/image"],transform:e=>{let{url:t,sizeSlug:a}=e;return Object(de.createBlock)("uagb/image",{url:t,sizeSlug:a})}},{type:"block",blocks:["core/post-featured-image"],transform:e=>{let{sizeSlug:t}=e;return Object(de.createBlock)("uagb/image",{useDynamicData:!0,dynamicContentType:"featured-image",sizeSlug:t})}},{type:"block",blocks:["core/cover"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be,ge,me,ye,fe,he,ve,_e,Te,Ce,Se,ke,we,Pe,xe,Ae,Ge,Me,Re,Be,Ue,Ee,Oe,Le,He,Fe,je,ze,De,Ne,Ie,Ve,We,qe,Ze,$e,Ye,Ke,Je,Xe,Qe,et,tt,at,lt,it,ot,nt,rt,st,ct,ut,pt,dt,bt,gt,mt,yt,ft,ht,vt,_t,Tt,Ct,St,kt,wt,Pt,xt,At,Gt,Mt,Rt,Bt,Ut,Et,Ot,Lt,Ht,Ft,jt,zt,Dt,Nt,It,Vt;const Wt=V("object"!=typeof(null==e||null===(a=e.style)||void 0===a||null===(l=a.border)||void 0===l?void 0:l.radius)&&(null==e||null===(i=e.style)||void 0===i||null===(o=i.border)||void 0===o?void 0:o.radius)||(null==e||null===(n=e.style)||void 0===n||null===(r=n.border)||void 0===r||null===(s=r.radius)||void 0===s?void 0:s.topRight)||(null==e||null===(c=e.style)||void 0===c||null===(u=c.border)||void 0===u||null===(p=u.radius)||void 0===p?void 0:p.topLeft)||(null==e||null===(d=e.style)||void 0===d||null===(b=d.border)||void 0===b||null===(g=b.radius)||void 0===g?void 0:g.bottomRight)||(null==e||null===(m=e.style)||void 0===m||null===(y=m.border)||void 0===y||null===(f=y.radius)||void 0===f?void 0:f.bottomLeft)||""),qt=(null===(h=t[0])||void 0===h?void 0:h.attributes)||{},Zt=Boolean(qt.content);let $t;var Yt,Kt;if(null!=qt&&null!==(v=qt.style)&&void 0!==v&&null!==(_=v.color)&&void 0!==_&&_.text)$t=null==qt||null===(Yt=qt.style)||void 0===Yt||null===(Kt=Yt.color)||void 0===Kt?void 0:Kt.text;else if(Pc(null==qt?void 0:qt.textColor))$t=Pc(null==qt?void 0:qt.textColor);else if(null!=e&&null!==(T=e.style)&&void 0!==T&&null!==(C=T.color)&&void 0!==C&&C.text){var Jt,Xt;$t=null==e||null===(Jt=e.style)||void 0===Jt||null===(Xt=Jt.color)||void 0===Xt?void 0:Xt.text}else $t=Pc(null==e?void 0:e.textColor)?Pc(null==e?void 0:e.textColor):"";return Object(de.createBlock)("uagb/image",{url:e.url,alt:e.alt,title:e.title,enableCaption:Zt,headingColor:$t,heading:Zt?qt.content:"",headingFontWeight:(null==qt||null===(S=qt.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.fontWeight)||(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.fontWeight)||"",headingFontSize:N((null==qt||null===(x=qt.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.fontSize)||(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.fontSize)||""),headingFontSizeType:I((null==qt||null===(R=qt.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.fontSize)||(null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.fontSize)||""),headingLetterSpacing:N((null==qt||null===(O=qt.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.letterSpacing)||(null==e||null===(H=e.style)||void 0===H||null===(F=H.typography)||void 0===F?void 0:F.letterSpacing)||""),headingLetterSpacingType:I((null==qt||null===(j=qt.style)||void 0===j||null===(z=j.typography)||void 0===z?void 0:z.letterSpacing)||(null==e||null===(D=e.style)||void 0===D||null===(W=D.typography)||void 0===W?void 0:W.letterSpacing)||""),headingDecoration:(null==qt||null===(q=qt.style)||void 0===q||null===(Z=q.typography)||void 0===Z?void 0:Z.textDecoration)||(null==e||null===($=e.style)||void 0===$||null===(Y=$.typography)||void 0===Y?void 0:Y.textDecoration)||"",headingTransform:(null==qt||null===(K=qt.style)||void 0===K||null===(J=K.typography)||void 0===J?void 0:J.textTransform)||(null==e||null===(X=e.style)||void 0===X||null===(Q=X.typography)||void 0===Q?void 0:Q.textTransform)||"",headingLineHeight:N((null==qt||null===(ee=qt.style)||void 0===ee||null===(te=ee.typography)||void 0===te?void 0:te.lineHeight)||(null==e||null===(ae=e.style)||void 0===ae||null===(le=ae.typography)||void 0===le?void 0:le.lineHeight)||""),imageTopMargin:N((null==e||null===(ie=e.style)||void 0===ie||null===(oe=ie.spacing)||void 0===oe||null===(ne=oe.margin)||void 0===ne?void 0:ne.top)||""),imageBottomMargin:N((null==e||null===(re=e.style)||void 0===re||null===(se=re.spacing)||void 0===se||null===(ce=se.margin)||void 0===ce?void 0:ce.bottom)||""),imageMarginLink:!1,imageMarginUnit:I((null==e||null===(ue=e.style)||void 0===ue||null===(pe=ue.spacing)||void 0===pe||null===(be=pe.margin)||void 0===be?void 0:be.top)||"px"),headingTopMargin:N((null==qt||null===(ge=qt.style)||void 0===ge||null===(me=ge.spacing)||void 0===me||null===(ye=me.margin)||void 0===ye?void 0:ye.top)||""),headingRightMargin:N((null==qt||null===(fe=qt.style)||void 0===fe||null===(he=fe.spacing)||void 0===he||null===(ve=he.margin)||void 0===ve?void 0:ve.right)||""),headingLeftMargin:N((null==qt||null===(_e=qt.style)||void 0===_e||null===(Te=_e.spacing)||void 0===Te||null===(Ce=Te.margin)||void 0===Ce?void 0:Ce.left)||""),headingBottomMargin:N((null==qt||null===(Se=qt.style)||void 0===Se||null===(ke=Se.spacing)||void 0===ke||null===(we=ke.margin)||void 0===we?void 0:we.bottom)||""),headingMarginUnit:I((null==qt||null===(Pe=qt.style)||void 0===Pe||null===(xe=Pe.spacing)||void 0===xe||null===(Ae=xe.margin)||void 0===Ae?void 0:Ae.top)||""),align:"center",imageBorderStyle:(null==e||null===(Ge=e.style)||void 0===Ge||null===(Me=Ge.border)||void 0===Me?void 0:Me.style)||(null!=e&&null!==(Re=e.style)&&void 0!==Re&&null!==(Be=Re.border)&&void 0!==Be&&Be.width||null!=e&&null!==(Ue=e.style)&&void 0!==Ue&&null!==(Ee=Ue.border)&&void 0!==Ee&&null!==(Oe=Ee.top)&&void 0!==Oe&&Oe.width?(null==e||null===(Le=e.style)||void 0===Le||null===(He=Le.border)||void 0===He?void 0:He.style)||"solid":"none"),imageBorderTopWidth:N((null==e||null===(Fe=e.style)||void 0===Fe||null===(je=Fe.border)||void 0===je?void 0:je.width)||(null==e||null===(ze=e.style)||void 0===ze||null===(De=ze.border)||void 0===De||null===(Ne=De.top)||void 0===Ne?void 0:Ne.width)||""),imageBorderBottomWidth:N((null==e||null===(Ie=e.style)||void 0===Ie||null===(Ve=Ie.border)||void 0===Ve?void 0:Ve.width)||(null==e||null===(We=e.style)||void 0===We||null===(qe=We.border)||void 0===qe||null===(Ze=qe.bottom)||void 0===Ze?void 0:Ze.width)||""),imageBorderLeftWidth:N((null==e||null===($e=e.style)||void 0===$e||null===(Ye=$e.border)||void 0===Ye?void 0:Ye.width)||(null==e||null===(Ke=e.style)||void 0===Ke||null===(Je=Ke.border)||void 0===Je||null===(Xe=Je.left)||void 0===Xe?void 0:Xe.width)||""),imageBorderRightWidth:N((null==e||null===(Qe=e.style)||void 0===Qe||null===(et=Qe.border)||void 0===et?void 0:et.width)||(null==e||null===(tt=e.style)||void 0===tt||null===(at=tt.border)||void 0===at||null===(lt=at.right)||void 0===lt?void 0:lt.width)||""),imageBorderWidthUnit:N((null==e||null===(it=e.style)||void 0===it||null===(ot=it.border)||void 0===ot?void 0:ot.width)||(null==e||null===(nt=e.style)||void 0===nt||null===(rt=nt.border)||void 0===rt||null===(st=rt.top)||void 0===st?void 0:st.width)||""),imageBorderColor:Pc(null==e?void 0:e.borderColor)||Pc(null==e||null===(ct=e.style)||void 0===ct||null===(ut=ct.border)||void 0===ut||null===(pt=ut.right)||void 0===pt?void 0:pt.color)||(null==e||null===(dt=e.style)||void 0===dt||null===(bt=dt.border)||void 0===bt?void 0:bt.color)||(null==e||null===(gt=e.style)||void 0===gt||null===(mt=gt.border)||void 0===mt||null===(yt=mt.right)||void 0===yt?void 0:yt.color)||"",imageBorderTopRightRadius:N("object"!=typeof(null==e||null===(ft=e.style)||void 0===ft||null===(ht=ft.border)||void 0===ht?void 0:ht.radius)&&(null==e||null===(vt=e.style)||void 0===vt||null===(_t=vt.border)||void 0===_t?void 0:_t.radius)||(null==e||null===(Tt=e.style)||void 0===Tt||null===(Ct=Tt.border)||void 0===Ct||null===(St=Ct.radius)||void 0===St?void 0:St.topRight)||""),imageBorderTopLeftRadius:N("object"!=typeof(null==e||null===(kt=e.style)||void 0===kt||null===(wt=kt.border)||void 0===wt?void 0:wt.radius)&&(null==e||null===(Pt=e.style)||void 0===Pt||null===(xt=Pt.border)||void 0===xt?void 0:xt.radius)||(null==e||null===(At=e.style)||void 0===At||null===(Gt=At.border)||void 0===Gt||null===(Mt=Gt.radius)||void 0===Mt?void 0:Mt.topLeft)||""),imageBorderBottomRightRadius:N("object"!=typeof(null==e||null===(Rt=e.style)||void 0===Rt||null===(Bt=Rt.border)||void 0===Bt?void 0:Bt.radius)&&(null==e||null===(Ut=e.style)||void 0===Ut||null===(Et=Ut.border)||void 0===Et?void 0:Et.radius)||(null==e||null===(Ot=e.style)||void 0===Ot||null===(Lt=Ot.border)||void 0===Lt||null===(Ht=Lt.radius)||void 0===Ht?void 0:Ht.bottomRight)||""),imageBorderBottomLeftRadius:N("object"!=typeof(null==e||null===(Ft=e.style)||void 0===Ft||null===(jt=Ft.border)||void 0===jt?void 0:jt.radius)&&(null==e||null===(zt=e.style)||void 0===zt||null===(Dt=zt.border)||void 0===Dt?void 0:Dt.radius)||(null==e||null===(Nt=e.style)||void 0===Nt||null===(It=Nt.border)||void 0===It||null===(Vt=It.radius)||void 0===Vt?void 0:Vt.bottomLeft)||""),imageBorderRadiusUnit:Wt,layout:"overlay",overlayOpacity:0!==e.dimRatio?e.dimRatio/100:0,overlayHoverOpacity:0!==e.dimRatio?e.dimRatio/100:0,overlayBackground:(null==e?void 0:e.customOverlayColor)||Pc(null==e?void 0:e.overlayColor)})}},{type:"block",blocks:["core/media-text"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be,ge,me,ye,fe,he;const ve=(null===(a=t[0])||void 0===a?void 0:a.attributes)||{},_e=Boolean(ve.content);let Te;var Ce,Se;if(null!=ve&&null!==(l=ve.style)&&void 0!==l&&null!==(i=l.color)&&void 0!==i&&i.text)Te=null==ve||null===(Ce=ve.style)||void 0===Ce||null===(Se=Ce.color)||void 0===Se?void 0:Se.text;else if(Pc(null==ve?void 0:ve.textColor))Te=Pc(null==ve?void 0:ve.textColor);else if(null!=e&&null!==(o=e.style)&&void 0!==o&&null!==(n=o.color)&&void 0!==n&&n.text){var ke,we;Te=null==e||null===(ke=e.style)||void 0===ke||null===(we=ke.color)||void 0===we?void 0:we.text}else Te=Pc(null==e?void 0:e.textColor)?Pc(null==e?void 0:e.textColor):"";return Object(de.createBlock)("uagb/image",{url:e.mediaUrl,alt:e.mediaAlt,title:e.mediaTitle,enableCaption:_e,captionColor:Te,caption:_e?ve.content:"",captionFontWeight:(null==ve||null===(r=ve.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.fontWeight)||(null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.fontWeight)||"",captionFontSize:N((null==ve||null===(p=ve.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.fontSize)||(null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.fontSize)||""),captionFontSizeType:I((null==ve||null===(m=ve.style)||void 0===m||null===(y=m.typography)||void 0===y?void 0:y.fontSize)||(null==e||null===(f=e.style)||void 0===f||null===(h=f.typography)||void 0===h?void 0:h.fontSize)||""),captionLetterSpacing:N((null==ve||null===(v=ve.style)||void 0===v||null===(_=v.typography)||void 0===_?void 0:_.letterSpacing)||(null==e||null===(T=e.style)||void 0===T||null===(C=T.typography)||void 0===C?void 0:C.letterSpacing)||""),captionLetterSpacingType:I((null==ve||null===(S=ve.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.letterSpacing)||(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.letterSpacing)||""),captionDecoration:(null==ve||null===(x=ve.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.textDecoration)||(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.textDecoration)||"",captionTransform:(null==ve||null===(R=ve.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.textTransform)||(null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.textTransform)||"",captionLineHeight:N((null==ve||null===(O=ve.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.lineHeight)||(null==e||null===(H=e.style)||void 0===H||null===(F=H.typography)||void 0===F?void 0:F.lineHeight)||""),imageTopMargin:N((null==e||null===(j=e.style)||void 0===j||null===(z=j.spacing)||void 0===z||null===(D=z.margin)||void 0===D?void 0:D.top)||""),imageRightMargin:N((null==e||null===(W=e.style)||void 0===W||null===(q=W.spacing)||void 0===q||null===(Z=q.margin)||void 0===Z?void 0:Z.right)||""),imageLeftMargin:N((null==e||null===($=e.style)||void 0===$||null===(Y=$.spacing)||void 0===Y||null===(K=Y.margin)||void 0===K?void 0:K.left)||""),imageBottomMargin:N((null==e||null===(J=e.style)||void 0===J||null===(X=J.spacing)||void 0===X||null===(Q=X.margin)||void 0===Q?void 0:Q.bottom)||""),imageMarginUnit:V((null==e||null===(ee=e.style)||void 0===ee||null===(te=ee.spacing)||void 0===te||null===(ae=te.margin)||void 0===ae?void 0:ae.top)||"px"),captionTopMargin:N((null==ve||null===(le=ve.style)||void 0===le||null===(ie=le.spacing)||void 0===ie||null===(oe=ie.margin)||void 0===oe?void 0:oe.top)||""),captionRightMargin:N((null==ve||null===(ne=ve.style)||void 0===ne||null===(re=ne.spacing)||void 0===re||null===(se=re.margin)||void 0===se?void 0:se.right)||""),captionLeftMargin:N((null==ve||null===(ce=ve.style)||void 0===ce||null===(ue=ce.spacing)||void 0===ue||null===(pe=ue.margin)||void 0===pe?void 0:pe.left)||""),captionBottomMargin:N((null==ve||null===(be=ve.style)||void 0===be||null===(ge=be.spacing)||void 0===ge||null===(me=ge.margin)||void 0===me?void 0:me.bottom)||""),captionMarginUnit:V((null==ve||null===(ye=ve.style)||void 0===ye||null===(fe=ye.spacing)||void 0===fe||null===(he=fe.margin)||void 0===he?void 0:he.top)||""),align:"center"})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{url:t,sizeSlug:a}=e;return Object(de.createBlock)("core/image",{url:t,sizeSlug:a})}}]};let ob={};ob=Object(F.applyFilters)("uagb/image",ss(ob)),Object(de.registerBlockType)("uagb/image",{...ob,title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add images on your webpage with multiple customization options.","ultimate-addons-for-gutenberg"),icon:se.image,keywords:[Object(r.__)("image","ultimate-addons-for-gutenberg"),Object(r.__)("advance image","ultimate-addons-for-gutenberg"),Object(r.__)("caption","ultimate-addons-for-gutenberg"),Object(r.__)("overlay image","ultimate-addons-for-gutenberg")],supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},align:!0},attributes:Ta,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"image"}):React.createElement(Yd,e),save:function(e){var t,a;const{attributes:l}=e,{block_id:i,layout:o,url:n,urlTablet:r,urlMobile:s,alt:c,caption:u,enableCaption:p,imageHoverEffect:d,href:b,linkClass:g,width:m,height:y,naturalHeight:f,naturalWidth:h,align:v,id:_,linkTarget:T,rel:C,title:S,heading:k,headingTag:w,headingId:P,overlayContentPosition:x,seperatorStyle:A,seperatorPosition:G,disableLazyLoad:M,imgRole:R}=e.attributes,B=n&&""!==n&&React.createElement("img",{srcSet:`${n} ${r?","+r+" 780w":""}${s?", "+s+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:n,alt:"presentation"===R?"":c,className:_?"uag-image-"+_:null,width:m||h,height:y||f,title:"presentation"===R?"":S,loading:M?void 0:"lazy",role:R}),U=()=>C?C.trim():"noopener",E=React.createElement(React.Fragment,null,b&&""!==b?React.createElement("a",{className:g,href:b,target:T,rel:U()},B):B),O=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(k)&&React.createElement(ge.RichText.Content,{tagName:w,id:P,className:"uagb-image-heading",value:k})),L=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(u)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:u})),H="none"!==A&&React.createElement("div",{className:"uagb-image-separator"}),F=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+g,href:b,target:T,rel:U()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+i,"wp-block-uagb-image","wp-block-uagb-image--layout-"+o,"wp-block-uagb-image--effect-"+d,"wp-block-uagb-image--align-"+(v||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},E,"overlay"===o?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+x.replace(" ","-")},(!0===(null==l||null===(t=l.dynamicContent)||void 0===t||null===(a=t.bgImageLink)||void 0===a?void 0:a.enable)||b)&&F,"before_title"===G&&H,O,"after_title"===G&&H,L,"after_sub_title"===G&&H)):React.createElement(React.Fragment,null,p&&L)))},__experimentalLabel:(e,t)=>{var a;let{context:l}=t;return"list-view"===l&&null!=e&&null!==(a=e.metadata)&&void 0!==a&&a.name&&e.metadata.name?e.metadata.name:Object(F.applyFilters)("uag_loop_data_source_label",Object(r.__)("Image","ultimate-addons-for-gutenberg"),e)},usesContext:["postId","postType"],deprecated:lb,transforms:ib});var nb=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{block_id:r,fontFamily:s,fontWeight:c,gap:u,gapTablet:p,gapMobile:d,inheritGap:b,flexWrap:g,stack:m,align:y,fontStyle:f,fontTransform:h,fontDecoration:v,alignTablet:_,alignMobile:T,fontSizeType:C,fontSizeTypeTablet:S,fontSizeTypeMobile:k,fontSize:w,fontSizeMobile:P,fontSizeTablet:x,lineHeightType:A,lineHeight:G,lineHeightMobile:M,lineHeightTablet:R,topPadding:B,rightPadding:U,bottomPadding:E,leftPadding:O,topMobilePadding:L,rightMobilePadding:H,bottomMobilePadding:F,leftMobilePadding:j,topTabletPadding:z,rightTabletPadding:D,bottomTabletPadding:N,leftTabletPadding:I,paddingUnit:V,mobilePaddingUnit:W,tabletPaddingUnit:q,topMargin:Z,rightMargin:$,bottomMargin:Y,leftMargin:K,topMarginTablet:J,rightMarginTablet:X,bottomMarginTablet:Q,leftMarginTablet:ee,topMarginMobile:te,rightMarginMobile:le,bottomMarginMobile:ie,leftMarginMobile:oe,marginType:ne,fontLetterSpacing:re,fontLetterSpacingTablet:se,fontLetterSpacingMobile:ce,fontLetterSpacingType:ue,verticalAlignment:pe,buttonSize:de}=e,be={},ge={},me={};let ye;switch(pe){case"top":ye="flex-start";break;case"bottom":ye="flex-end";break;default:ye="center"}be[".uagb-buttons__outer-wrap .uagb-buttons-repeater:not(.wp-block-button__link)"]={"font-family":s,"font-style":f,"text-decoration":v,"text-transform":h,"font-weight":c,"font-size":Vr(w,C),"line-height":Vr(G,A)},be[".uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-buttons-repeater"]={"font-family":s,"font-style":f,"text-decoration":v,"text-transform":h,"font-weight":c,"font-size":Vr(w,C),"line-height":Vr(G,A),"letter-spacing":Vr(re,ue)},be[".uagb-buttons__outer-wrap .uagb-button__wrapper"]={"margin-left":Vr(K,ne),"margin-right":Vr($,ne),"margin-top":Vr(Z,ne),"margin-bottom":Vr(Y,ne)},"default"===de&&(be[" .uagb-buttons-repeater.wp-block-button__link"]={"padding-left":Vr(O,V),"padding-right":Vr(U,V),"padding-top":Vr(B,V),"padding-bottom":Vr(E,V)},ge[" .uagb-buttons-repeater.wp-block-button__link"]={"padding-left":Vr(I,q),"padding-right":Vr(D,q),"padding-top":Vr(z,q),"padding-bottom":Vr(N,q)},me[" .uagb-buttons-repeater.wp-block-button__link"]={"padding-left":Vr(j,W),"padding-right":Vr(H,W),"padding-top":Vr(L,W),"padding-bottom":Vr(F,W)}),b?b&&("desktop"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"}):"tablet"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row"},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"}):"mobile"===m&&(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row"},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row"},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"})):"desktop"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(d,"px")}):"tablet"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row",gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(d,"px")}):"mobile"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row",gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row",gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(d,"px")}):"none"===m&&(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={gap:Vr(d,"px")}),g&&(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]["flex-wrap"]="wrap"),"full"!==y?(be[".uagb-editor-preview-mode-desktop .block-editor-inner-blocks"]={"text-align":y},be[".uagb-editor-preview-mode-desktop .block-editor-block-list__layout"]={"align-items":ye,"justify-content":y}):(be[".uagb-editor-preview-mode-desktop .block-editor-block-list__layout"]={width:"100%","align-items":ye},be[" .block-editor-block-list__block"]={width:"100%"}),"full"!==_?(ge[".uagb-editor-preview-mode-tablet .block-editor-inner-blocks"]={"text-align":_},ge[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={"align-items":ye,"justify-content":_}):(ge[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={"flex-direction":"column","row-gap":Vr(us(u,"gap",o),"px")},ge[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={width:"100%","align-items":ye},ge[" .block-editor-block-list__block "]={width:"100%"}),"full"!==T?(me[".uagb-editor-preview-mode-mobile .block-editor-inner-blocks"]={"text-align":T},me[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"align-items":ye,"justify-content":T}):(me[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"flex-direction":"column","row-gap":Vr(us(u,"gap",o),"px")},me[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={width:"100%","align-items":ye},me[" .block-editor-block-list__block "]={width:"100%"}),ge[".uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-buttons-repeater"]={"font-size":Vr(x,S),"line-height":Vr(R,A),"letter-spacing":Vr(se,ue)},ge[".uagb-buttons__outer-wrap .uagb-button__wrapper"]={"margin-left":Vr(ee,ne),"margin-right":Vr(X,ne),"margin-top":Vr(J,ne),"margin-bottom":Vr(Q,ne)},me[".uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-buttons-repeater"]={"font-size":Vr(P,k),"line-height":Vr(M,A),"letter-spacing":Vr(ce,ue)},me[".uagb-buttons__outer-wrap .uagb-button__wrapper"]={"margin-left":Vr(oe,ne),"margin-right":Vr(le,ne),"margin-top":Vr(te,ne),"margin-bottom":Vr(ie,ne)};const fe=i?i+" ":".editor-styles-wrapper .uagb-block-"+r;let he=ae(be,fe);return("tablet"===n||"mobile"===n||i)&&(he+=ae(ge,""+fe,!0,"tablet"),("mobile"===n||i)&&(he+=ae(me,""+fe,!0,"mobile"))),he};function rb(){return(rb=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{align:l,gap:i,gapTablet:o,gapMobile:s,inheritGap:c,flexWrap:u,stack:p,loadGoogleFonts:d,fontFamily:b,fontWeight:g,fontStyle:m,fontTransform:y,fontDecoration:f,alignTablet:h,alignMobile:v,fontSizeType:_,fontSizeTypeMobile:T,fontSizeTypeTablet:C,fontSize:S,fontSizeMobile:k,fontSizeTablet:w,lineHeightType:P,lineHeight:x,lineHeightMobile:A,lineHeightTablet:G,buttonSize:M,buttonSizeTablet:R,buttonSizeMobile:B,paddingUnit:U,mobilePaddingUnit:E,tabletPaddingUnit:O,paddingLink:L,topPadding:H,rightPadding:F,bottomPadding:j,leftPadding:z,topMobilePadding:D,rightMobilePadding:N,bottomMobilePadding:I,leftMobilePadding:V,topTabletPadding:W,rightTabletPadding:q,bottomTabletPadding:Z,leftTabletPadding:$,topMargin:Y,rightMargin:K,bottomMargin:J,leftMargin:X,topMarginTablet:Q,rightMarginTablet:ee,bottomMarginTablet:te,leftMarginTablet:ae,topMarginMobile:le,rightMarginMobile:ie,bottomMarginMobile:oe,leftMarginMobile:ne,marginType:re,marginLink:se,fontLetterSpacing:ce,fontLetterSpacingTablet:ue,fontLetterSpacingMobile:pe,fontLetterSpacingType:de,verticalAlignment:be}=t,me=Object(n.select)("core/block-editor").getSelectedBlock().innerBlocks.length,ye=[{value:"default",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"small",label:Object(r.__)("Small","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"large",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")},{value:"extralarge",label:Object(r.__)("Extra Large","ultimate-addons-for-gutenberg")}],fe=[{align:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),title:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{align:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),title:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{align:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),title:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{align:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),title:Object(r.__)("Full","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(ge.BlockVerticalAlignmentControl,{onChange:e=>a({verticalAlignment:e}),value:be}),React.createElement(ge.AlignmentToolbar,{value:l,onChange:e=>{a({align:e})},alignmentControls:fe})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,rb({},ol,{parentProps:e}),React.createElement(je,{initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"align"},tablet:{value:h,label:"alignTablet"},mobile:{value:v,label:"alignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full Width","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:be,label:"verticalAlignment"},options:[{value:"top",label:"Top"},{value:"center",label:"Middle"},{value:"bottom",label:"Bottom"}],showIcons:!1,responsive:!1}),me>1&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Stack Orientation","ultimate-addons-for-gutenberg"),data:{value:p,label:"stack"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: Choose on what breakpoint the buttons will stack.","ultimate-addons-for-gutenberg")}),me>1&&React.createElement(React.Fragment,null,!u&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Inherit gap from theme","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({inheritGap:!c})}),!c&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Flex wrap","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>a({flexWrap:!u})}),!c&&React.createElement(tl,{label:Object(r.__)("Gap Between Buttons","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"gap"},tablet:{value:o,label:"gapTablet"},mobile:{value:s,label:"gapMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a})),React.createElement(ai,{label:Object(r.__)("Button Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:M,label:"buttonSize"},tablet:{value:R,label:"buttonSizeTablet"},mobile:{value:B,label:"buttonSizeMobile"}},options:{desktop:ye,tablet:ye,mobile:ye},setAttributes:a}))),React.createElement(il,rb({},nl,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Text","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:d,label:"loadGoogleFonts"},fontFamily:{value:b,label:"fontFamily"},fontWeight:{value:g,label:"fontWeight"},fontStyle:{value:m,label:"fontStyle"},transform:{value:y,label:"fontTransform"},decoration:{value:f,label:"fontDecoration"},fontSizeType:{value:_,label:"fontSizeType"},fontSizeTypeTablet:{value:C,label:"fontSizeTypeTablet"},fontSizeTypeMobile:{value:T,label:"fontSizeTypeMobile"},fontSize:{value:S,label:"fontSize"},fontSizeMobile:{value:k,label:"fontSizeMobile"},fontSizeTablet:{value:w,label:"fontSizeTablet"},lineHeightType:{value:P,label:"lineHeightType"},lineHeight:{value:x,label:"lineHeight"},lineHeightMobile:{value:A,label:"lineHeightMobile"},lineHeightTablet:{value:G,label:"lineHeightTablet"},letterSpacing:{value:ce,label:"fontLetterSpacing"},letterSpacingTablet:{value:ue,label:"fontLetterSpacingTablet"},letterSpacingMobile:{value:pe,label:"fontLetterSpacingMobile"},letterSpacingType:{value:de,label:"fontLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"default"===M&&React.createElement(Pl,rb({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:H,label:"topPadding"},valueRight:{value:F,label:"rightPadding"},valueBottom:{value:j,label:"bottomPadding"},valueLeft:{value:z,label:"leftPadding"},valueTopTablet:{value:W,label:"topTabletPadding"},valueRightTablet:{value:q,label:"rightTabletPadding"},valueBottomTablet:{value:Z,label:"bottomTabletPadding"},valueLeftTablet:{value:$,label:"leftTabletPadding"},valueTopMobile:{value:D,label:"topMobilePadding"},valueRightMobile:{value:N,label:"rightMobilePadding"},valueBottomMobile:{value:I,label:"bottomMobilePadding"},valueLeftMobile:{value:V,label:"leftMobilePadding"},unit:{value:U,label:"paddingUnit"},mUnit:{value:E,label:"mobilePaddingUnit"},tUnit:{value:O,label:"tabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:L,label:"paddingLink"}})),React.createElement(Pl,rb({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Y,label:"topMargin"},valueRight:{value:K,label:"rightMargin"},valueBottom:{value:J,label:"bottomMargin"},valueLeft:{value:X,label:"leftMargin"},valueTopTablet:{value:Q,label:"topMarginTablet"},valueRightTablet:{value:ee,label:"rightMarginTablet"},valueBottomTablet:{value:te,label:"bottomMarginTablet"},valueLeftTablet:{value:ae,label:"leftMarginTablet"},valueTopMobile:{value:le,label:"topMarginMobile"},valueRightMobile:{value:ie,label:"rightMarginMobile"},valueBottomMobile:{value:oe,label:"bottomMarginMobile"},valueLeftMobile:{value:ne,label:"leftMarginMobile"},unit:{value:re,label:"marginType"},mUnit:{value:re,label:"marginType"},tUnit:{value:re,label:"marginType"},attributes:t,setAttributes:a,link:{value:se,label:"marginLink"}})))),React.createElement(il,rb({},rl,{parentProps:e}),Ds(nb,a,t)))))}),ub=a(103),pb=0,db={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},bb={};bb.locals=ub.a.locals||{},bb.use=function(){return pb++||(sb=we()(ub.a,db)),bb},bb.unuse=function(){pb>0&&!--pb&&(sb(),sb=null)};var gb=bb;const mb=["uagb/buttons-child"];var yb=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(gb.use(),()=>{gb.unuse()}),[]);const{attributes:t,deviceType:a}=e,{className:l,btn_count:i,buttons:o,stack:n,buttonSize:r,buttonSizeTablet:s,buttonSizeMobile:c,block_id:u,inheritGap:p}=t,d={template:Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)});let hb;var vb=Object(L.compose)(uc,ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:n,name:r,deviceType:s}=e,[c,u]=Object(B.useState)({isFocused:"false",isHovered:"false"});Object(B.useEffect)(()=>{hb=t},[]),Object(B.useEffect)(()=>{!t&&hb&&c.isFocused&&u({isFocused:"false"}),hb=t},[a,s]),Object(B.useEffect)(()=>{ys()},[s]),Object(B.useEffect)(()=>{he(e)},[l,i,o,s]);const p=Object(B.useMemo)(()=>nb(a,n,r,s),[a,s]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:p}),React.createElement(fb,{attributes:a}),t&&React.createElement(cb,e),React.createElement(yb,e))});const _b=[];for(let e=1;e<=2;e++){const e="Click Here",t="#";_b.push({label:e,link:t,target:"_self",size:"",vPadding:"",hPadding:"",color:"",background:"",hColor:"",hBackground:"",sizeType:"px",sizeMobile:"",sizeTablet:"",lineHeight:"",lineHeightType:"em",lineHeightMobile:"",lineHeightTablet:""})}var Tb=[{attributes:rt,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,buttons:n,btn_count:r}=e.attributes,s=n.map((e,t)=>React.createElement("div",{className:Be()("uagb-buttons-repeater-"+t,"uagb-button__wrapper"),key:t},React.createElement(ge.RichText.Content,{value:e.label,tagName:"a",className:"uagb-button__link",href:e.link,rel:"noopener noreferrer",target:e.target})));return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap"),id:"uagb-buttons-"+l},React.createElement("div",{className:"uagb-buttons__wrap"},s))}},{attributes:rt,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,buttons:n,btn_count:r}=e.attributes,s=n.map((e,t)=>React.createElement("div",{className:Be()("uagb-buttons-repeater-"+t,"uagb-button__wrapper"),key:t},React.createElement(ge.RichText.Content,{value:e.label,tagName:"a",className:"uagb-button__link",href:e.link,rel:"noopener noreferrer",target:e.target})));return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap"),id:"uagb-buttons-"+l},React.createElement("div",{className:"uagb-buttons__wrap"},s))}},{attributes:rt,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,buttons:n,btn_count:r}=e.attributes,s=n.map((e,t)=>React.createElement("div",{className:Be()("uagb-buttons-repeater-"+t,"uagb-button__wrapper"),key:t},React.createElement(ge.RichText.Content,{value:e.label,tagName:"a",className:"uagb-button__link",href:e.link,rel:"noopener noreferrer",target:e.target})));return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l)},React.createElement("div",{className:"uagb-buttons__wrap"},s))}},{attributes:rt,save:e=>{const{className:t}=e,{block_id:a}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-buttons__outer-wrap","uagb-block-"+a)},React.createElement("div",{className:"uagb-buttons__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:{block_id:{type:"string"},btn_count:{type:"number",default:2},buttons:{type:"array",default:_b},classMigrate:{type:"boolean",default:!1},childMigrate:{type:"boolean",default:!1},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},alignTablet:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align-tablet"}},alignMobile:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align-mobile"}},gap:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-gap"}},gapTablet:{type:"number",UAGCopyPaste:{styleType:"btn-gap-tablet"}},gapMobile:{type:"number",UAGCopyPaste:{styleType:"btn-gap-mobile"}},stack:{type:"string",default:"none",UAGCopyPaste:{styleType:"btn-stack"}},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},fontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"btn-font-style"}},fontTransform:{type:"string",UAGCopyPaste:{styleType:"btn-font-transform"}},fontDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-font-decoration"}},isPreview:{type:"boolean",default:!1},fontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},fontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},fontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},fontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},fontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},fontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},lineHeightType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeight:{type:"number",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},buttonSize:{type:"string",default:"default",UAGCopyPaste:{styleType:"btn-size"}},buttonSizeTablet:{type:"string",default:"default",UAGCopyPaste:{styleType:"btn-size-tablet"}},buttonSizeMobile:{type:"string",default:"default",UAGCopyPaste:{styleType:"btn-size-mobile"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},fontLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},fontLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},fontLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},fontLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}},save:function(e){const{className:t}=e,{block_id:a,buttonSize:l,buttonSizeTablet:i,buttonSizeMobile:o}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-buttons__outer-wrap",`uagb-btn__${l}-btn`,`uagb-btn-tablet__${i}-btn`,`uagb-btn-mobile__${o}-btn`,"uagb-block-"+a)},React.createElement("div",{className:"uagb-buttons__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];a(219);var Cb={from:[{type:"block",blocks:["core/buttons"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y;let f=!1;const h=[],v=(null==e||null===(a=e.layout)||void 0===a?void 0:a.justifyContent)||"left";return t.forEach(e=>{var t,a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be,ge,me,ye,fe,he,ve,_e,Te,Ce,Se,ke,we,Pe,xe,Ae,Ge,Me,Re,Be,Ue,Ee,Oe,Le,He,Fe,je,ze,De,Ne,Ie,Ve,We,qe,Ze,$e,Ye,Ke,Je,Xe,Qe,et,tt,at,lt,it,ot,nt,rt,st,ct,ut,pt,dt,bt,gt,mt,yt,ft,ht,vt,_t,Tt,Ct,St,kt,wt,Pt,xt,At,Gt,Mt,Rt,Bt,Ut,Et,Ot,Lt,Ht,Ft,jt;const zt=e.attributes;f=100===(null==zt?void 0:zt.width)||f;const Dt=V("object"!=typeof(null==zt||null===(t=zt.style)||void 0===t||null===(a=t.border)||void 0===a?void 0:a.radius)&&(null==zt||null===(l=zt.style)||void 0===l||null===(i=l.border)||void 0===i?void 0:i.radius)||(null==zt||null===(o=zt.style)||void 0===o||null===(n=o.border)||void 0===n||null===(r=n.radius)||void 0===r?void 0:r.topRight)||(null==zt||null===(s=zt.style)||void 0===s||null===(c=s.border)||void 0===c||null===(u=c.radius)||void 0===u?void 0:u.topLeft)||(null==zt||null===(p=zt.style)||void 0===p||null===(d=p.border)||void 0===d||null===(b=d.radius)||void 0===b?void 0:b.bottomRight)||(null==zt||null===(g=zt.style)||void 0===g||null===(m=g.border)||void 0===m||null===(y=m.radius)||void 0===y?void 0:y.bottomLeft)||""),Nt=Object(de.createBlock)("uagb/buttons-child",{label:zt.text,color:(null==zt||null===(v=zt.style)||void 0===v||null===(_=v.color)||void 0===_?void 0:_.text)||Pc(zt.textColor),background:(null==zt||null===(T=zt.style)||void 0===T||null===(C=T.color)||void 0===C?void 0:C.background)||Pc(zt.backgroundColor)||"",fontWeight:(null==zt||null===(S=zt.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.fontWeight)||"",size:N((null==zt||null===(w=zt.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.fontSize)||"#"),sizeType:I((null==zt||null===(x=zt.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.letterSpacing)||""),letterSpacing:N((null==zt||null===(G=zt.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.letterSpacing)||"#"),letterSpacingType:I((null==zt||null===(R=zt.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.letterSpacing)||"px"),decoration:(null==zt||null===(U=zt.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.textDecoration)||"",transform:(null==zt||null===(O=zt.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.textTransform)||"",lineHeight:N((null==zt||null===(H=zt.style)||void 0===H||null===(F=H.typography)||void 0===F?void 0:F.lineHeight)||"#"),lineHeightType:"em",borderColor:(null==zt||null===(j=zt.style)||void 0===j||null===(z=j.border)||void 0===z?void 0:z.color)||Pc((null==zt?void 0:zt.borderColor)||"")||(null==zt||null===(D=zt.style)||void 0===D||null===(W=D.border)||void 0===W||null===(q=W.top)||void 0===q?void 0:q.color)||Pc((null==zt||null===(Z=zt.style)||void 0===Z||null===($=Z.border)||void 0===$||null===(Y=$.top)||void 0===Y?void 0:Y.color)||""),btnBorderTopWidth:N((null==zt||null===(K=zt.style)||void 0===K||null===(J=K.border)||void 0===J?void 0:J.width)||(null==zt||null===(X=zt.style)||void 0===X||null===(Q=X.border)||void 0===Q||null===(ee=Q.top)||void 0===ee?void 0:ee.width)||"#"),btnBorderBottomWidth:N((null==zt||null===(te=zt.style)||void 0===te||null===(ae=te.border)||void 0===ae?void 0:ae.width)||(null==zt||null===(le=zt.style)||void 0===le||null===(ie=le.border)||void 0===ie||null===(oe=ie.bottom)||void 0===oe?void 0:oe.width)||"#"),btnBorderLeftWidth:N((null==zt||null===(ne=zt.style)||void 0===ne||null===(re=ne.border)||void 0===re?void 0:re.width)||(null==zt||null===(se=zt.style)||void 0===se||null===(ce=se.border)||void 0===ce||null===(ue=ce.left)||void 0===ue?void 0:ue.width)||"#"),btnBorderRightWidth:N((null==zt||null===(pe=zt.style)||void 0===pe||null===(be=pe.border)||void 0===be?void 0:be.width)||(null==zt||null===(ge=zt.style)||void 0===ge||null===(me=ge.border)||void 0===me||null===(ye=me.right)||void 0===ye?void 0:ye.width)||"#"),borderRadius:N("object"!=typeof(null==zt||null===(fe=zt.style)||void 0===fe||null===(he=fe.border)||void 0===he?void 0:he.radius)&&(null==zt||null===(ve=zt.style)||void 0===ve||null===(_e=ve.border)||void 0===_e?void 0:_e.radius)||(null==zt||null===(Te=zt.style)||void 0===Te||null===(Ce=Te.border)||void 0===Ce||null===(Se=Ce.radius)||void 0===Se?void 0:Se.topRight)||"#"),leftMargin:N((null==zt||null===(ke=zt.style)||void 0===ke||null===(we=ke.spacing)||void 0===we||null===(Pe=we.margin)||void 0===Pe?void 0:Pe.left)||"#"),bottomMargin:N((null==zt||null===(xe=zt.style)||void 0===xe||null===(Ae=xe.spacing)||void 0===Ae||null===(Ge=Ae.margin)||void 0===Ge?void 0:Ge.bottom)||"#"),rightMargin:N((null==zt||null===(Me=zt.style)||void 0===Me||null===(Re=Me.spacing)||void 0===Re||null===(Be=Re.margin)||void 0===Be?void 0:Be.right)||"#"),topMargin:N((null==zt||null===(Ue=zt.style)||void 0===Ue||null===(Ee=Ue.spacing)||void 0===Ee||null===(Oe=Ee.margin)||void 0===Oe?void 0:Oe.top)||"#"),marginType:I((null==zt||null===(Le=zt.style)||void 0===Le||null===(He=Le.spacing)||void 0===He||null===(Fe=He.margin)||void 0===Fe?void 0:Fe.top)||""),leftPadding:N((null==zt||null===(je=zt.style)||void 0===je||null===(ze=je.spacing)||void 0===ze||null===(De=ze.padding)||void 0===De?void 0:De.left)||"#"),bottomPadding:N((null==zt||null===(Ne=zt.style)||void 0===Ne||null===(Ie=Ne.spacing)||void 0===Ie||null===(Ve=Ie.padding)||void 0===Ve?void 0:Ve.bottom)||"#"),rightPadding:N((null==zt||null===(We=zt.style)||void 0===We||null===(qe=We.spacing)||void 0===qe||null===(Ze=qe.padding)||void 0===Ze?void 0:Ze.right)||"#"),topPadding:N((null==zt||null===($e=zt.style)||void 0===$e||null===(Ye=$e.spacing)||void 0===Ye||null===(Ke=Ye.padding)||void 0===Ke?void 0:Ke.top)||"#"),paddingUnit:I((null==zt||null===(Je=zt.style)||void 0===Je||null===(Xe=Je.spacing)||void 0===Xe||null===(Qe=Xe.padding)||void 0===Qe?void 0:Qe.top)||""),borderHColor:"",borderStyle:(null==zt||null===(et=zt.style)||void 0===et||null===(tt=et.border)||void 0===tt?void 0:tt.style)||(null!=zt&&null!==(at=zt.style)&&void 0!==at&&null!==(lt=at.border)&&void 0!==lt&<.width||null!=zt&&null!==(it=zt.style)&&void 0!==it&&null!==(ot=it.border)&&void 0!==ot&&null!==(nt=ot.top)&&void 0!==nt&&nt.width?(null==zt||null===(rt=zt.style)||void 0===rt||null===(st=rt.border)||void 0===st||null===(ct=st.top)||void 0===ct?void 0:ct.style)||(null==zt||null===(ut=zt.style)||void 0===ut||null===(pt=ut.border)||void 0===pt?void 0:pt.style)||"solid":"none"),btnBorderBottomLeftRadius:N("object"!=typeof(null==zt||null===(dt=zt.style)||void 0===dt||null===(bt=dt.border)||void 0===bt?void 0:bt.radius)&&(null==zt||null===(gt=zt.style)||void 0===gt||null===(mt=gt.border)||void 0===mt?void 0:mt.radius)||(null==zt||null===(yt=zt.style)||void 0===yt||null===(ft=yt.border)||void 0===ft||null===(ht=ft.radius)||void 0===ht?void 0:ht.bottomLeft)||"#"),btnBorderBottomRightRadius:N("object"!=typeof(null==zt||null===(vt=zt.style)||void 0===vt||null===(_t=vt.border)||void 0===_t?void 0:_t.radius)&&(null==zt||null===(Tt=zt.style)||void 0===Tt||null===(Ct=Tt.border)||void 0===Ct?void 0:Ct.radius)||(null==zt||null===(St=zt.style)||void 0===St||null===(kt=St.border)||void 0===kt||null===(wt=kt.radius)||void 0===wt?void 0:wt.bottomRight)||"#"),btnBorderTopLeftRadius:N("object"!=typeof(null==zt||null===(Pt=zt.style)||void 0===Pt||null===(xt=Pt.border)||void 0===xt?void 0:xt.radius)&&(null==zt||null===(At=zt.style)||void 0===At||null===(Gt=At.border)||void 0===Gt?void 0:Gt.radius)||(null==zt||null===(Mt=zt.style)||void 0===Mt||null===(Rt=Mt.border)||void 0===Rt||null===(Bt=Rt.radius)||void 0===Bt?void 0:Bt.topLeft)||"#"),btnBorderTopRightRadius:N("object"!=typeof(null==zt||null===(Ut=zt.style)||void 0===Ut||null===(Et=Ut.border)||void 0===Et?void 0:Et.radius)&&(null==zt||null===(Ot=zt.style)||void 0===Ot||null===(Lt=Ot.border)||void 0===Lt?void 0:Lt.radius)||(null==zt||null===(Ht=zt.style)||void 0===Ht||null===(Ft=Ht.border)||void 0===Ft||null===(jt=Ft.radius)||void 0===jt?void 0:jt.topRight)||"#"),btnBorderRadiusUnit:Dt,link:(null==zt?void 0:zt.url)||"",opensInNewTab:"_blank"===(null==zt?void 0:zt.linkTarget)});h.push(Nt)}),Object(de.createBlock)("uagb/buttons",{fontWeight:(null==e||null===(l=e.style)||void 0===l||null===(i=l.typography)||void 0===i?void 0:i.fontWeight)||"",fontSize:N((null==e||null===(o=e.style)||void 0===o||null===(n=o.typography)||void 0===n?void 0:n.fontSize)||"#"),fontLetterSpacing:N((null==e||null===(r=e.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.letterSpacing)||"#"),fontDecoration:(null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.textDecoration)||"",fontTransform:(null==e||null===(p=e.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.textTransform)||"",lineHeight:N((null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.lineHeight)||"#"),lineHeightType:"em",align:f?"full":"space-between"===v?"center":v,gap:W((null==e||null===(m=e.style)||void 0===m||null===(y=m.spacing)||void 0===y?void 0:y.blockGap)||"10px")},h)}}]};let Sb={};Sb=Object(F.applyFilters)("uagb/buttons",ss(Sb)),Object(de.registerBlockType)("uagb/buttons",{...Sb,title:Object(r.__)("Buttons","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add multiple buttons to redirect user to different webpages.","ultimate-addons-for-gutenberg"),icon:se.buttons,keywords:[Object(r.__)("buttons","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},getEditWrapperProps:e=>({"data-btn-width":e.align}),attributes:rt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"buttons"}):React.createElement(vb,e),save:function(e){const{className:t}=e,{block_id:a,buttonSize:l,buttonSizeTablet:i,buttonSizeMobile:o,inheritGap:n}=e.attributes,r=n?"is-layout-flex":"";return React.createElement("div",{className:Be()(t,"uagb-buttons__outer-wrap",`uagb-btn__${l}-btn`,`uagb-btn-tablet__${i}-btn`,`uagb-btn-mobile__${o}-btn`,"uagb-block-"+a)},React.createElement("div",{className:"uagb-buttons__wrap uagb-buttons-layout-wrap "+r},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:Tb,transforms:Cb});var kb=function(e){e=ve(e);const t=uagb_blocks_info.uagb_svg_icons[e];if(void 0!==t){const e=t.svg.hasOwnProperty("brands")?t.svg.brands.viewBox:t.svg.solid.viewBox,a=t.svg.hasOwnProperty("brands")?t.svg.brands.path:t.svg.solid.path,l=null==e?void 0:e.join(" ");return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l},React.createElement("path",{d:a}))}};const wb=ce("btn"),Pb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",xb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Ab={inheritFromTheme:{type:"boolean",default:!1},block_id:{type:"string"},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Pb,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:xb,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},hovergradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},boxShadowColor:{type:"string",default:"#000",UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...wb,letterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Gb=ce("btn"),Mb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Rb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Bb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:!1},block_id:{type:"string"},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Mb,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Rb,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},hovergradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},boxShadowColor:{type:"string",default:"#00000026",UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Gb,letterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Ub=ce("btn"),Eb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Ob="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Lb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},block_id:{type:"string"},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Eb,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Ob,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Ub,letterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Hb=ce("btn"),Fb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",jb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var zb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Fb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:jb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Hb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Db=ce("btn"),Nb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Ib="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Vb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Nb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Ib,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Db,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Wb=ce("btn"),qb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Zb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var $b={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:qb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Zb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Wb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Yb=ce("btn"),Kb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Jb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Xb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Kb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Jb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Yb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Qb=ce("btn"),eg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",tg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var ag={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:eg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:tg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Qb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const lg=ce("btn"),ig="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",og="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var ng={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:ig,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:og,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...lg,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const rg=ce("btn"),sg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",cg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var ug={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:sg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:cg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...rg,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const pg={inheritFromTheme:{type:"boolean",default:!1},block_id:{type:"string"},align:{type:"string",default:"center"},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1},fontFamily:{type:"string",default:"Default"},fontWeight:{type:"string"},fontSubset:{type:"string"},label:{type:"html",default:"#Click Here"},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number"},vPadding:{type:"number",default:10},hPadding:{type:"number",default:14},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},color:{type:"string",default:"#333"},background:{type:"string",default:""},backgroundType:{type:"string",default:"color"},hColor:{type:"string",default:"#333"},hBackground:{type:"string",default:""},sizeType:{type:"string",default:"px"},sizeMobile:{type:"number",default:""},sizeTablet:{type:"number",default:""},lineHeight:{type:"number",default:""},lineHeightType:{type:"string",default:"em"},lineHeightMobile:{type:"number",default:""},lineHeightTablet:{type:"number",default:""},opensInNewTab:{type:"boolean"},icon:{type:"string",default:""},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8},paddingUnit:{type:"string",default:"px"},...ce("btn")};var dg=[{attributes:pg,save:e=>{const{attributes:t,className:a}=e,{block_id:l,target:i,link:o,label:n}=t;return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l)},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("div",{className:"uagb-buttons-repeater"},React.createElement(ge.RichText.Content,{value:n,tagName:"a",className:"uagb-button__link",href:o,rel:"noopener noreferrer",target:i}))))}},{attributes:pg,save:e=>{const{attributes:t,className:a}=e,{block_id:l,target:i,link:o,label:n,inheritFromTheme:r,icon:s,iconPosition:c}=t,u=e=>""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},kb(s)):null;return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,r?"wp-block-button":null)},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",r?"wp-block-button__link":null),href:o,rel:"noopener noreferrer",target:i},u("before"),React.createElement(ge.RichText.Content,{value:n,tagName:"div",className:"uagb-button__link"}),u("after"))))}},{attributes:Ab,save:function(e){const{attributes:t,className:a}=e,{block_id:l,opensInNewTab:i,link:o,label:n,icon:r,iconPosition:s,removeText:c,noFollow:u,backgroundType:p,borderStyle:d,background:b,color:g,showIcon:m}=t,y=e=>m&&""!==r&&e===s?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+s)},Ce(r)):null,f=i?"_blank":"_self",h=""!==b||"transparent"===p||"gradient"===p?"has-background":"";return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,"wp-block-button","none"!==d?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",h,""!==g?"has-text-color":""),href:o,rel:u?"nofollow noopener ":"follow noopener",target:f},y("before"),c?"":React.createElement(ge.RichText.Content,{value:n.replace(/(<([^>]+)>)/gi,""),tagName:"div",className:"uagb-button__link"}),y("after"))))}},{attributes:Bb,save:function(e){const{attributes:t,className:a}=e,{block_id:l,opensInNewTab:i,link:o,label:n,icon:r,iconPosition:s,removeText:c,noFollow:u,backgroundType:p,btnBorderStyle:d,background:b,color:g,showIcon:m}=t,y=e=>m&&""!==r&&e===s?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+s)},Ce(r)):null,f=i?"_blank":"_self",h=""!==b||"transparent"===p||"gradient"===p?"has-background":"";return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,"wp-block-button","none"!==d&&"default"!==d?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",h,""!==g?"has-text-color":""),href:o,rel:u?"nofollow noopener":"follow noopener",target:f},y("before"),c?"":React.createElement(ge.RichText.Content,{value:n.replace(/(<([^>]+)>)/gi,""),tagName:"div",className:"uagb-button__link"}),y("after"))))}},{attributes:zb,save:function(e){const{attributes:t,className:a}=e,{block_id:l,opensInNewTab:i,link:o,label:n,icon:r,iconPosition:s,removeText:c,noFollow:u,backgroundType:p,btnBorderStyle:d,background:b,color:g,showIcon:m}=t,y=e=>m&&""!==r&&e===s?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+s)},Ce(r)):null,f=i?"_blank":"_self",h=""!==b||"transparent"===p||"gradient"===p?"has-background":"";return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,"wp-block-button","none"!==d&&"default"!==d?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",h,""!==g?"has-text-color":""),href:""===o||"#"===o?"#":o,onClick:""===o||"#"===o?"return false;":"return true;",rel:u?"nofollow noopener":"follow noopener",target:f},y("before"),c?"":React.createElement(ge.RichText.Content,{value:n.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:"div",className:"uagb-button__link"}),y("after"))))}},{attributes:Vb,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,backgroundType:d,btnBorderStyle:b,background:g,color:m,showIcon:y,dynamicContent:f}=a,h=e=>y&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,v=o?"_blank":"_self",_=""!==g||"transparent"===d||"gradient"===d?"has-background":"";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button","none"!==b&&"default"!==b?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",_,""!==m?"has-text-color":""),href:""===n||"#"===n?"#":n,onClick:""!==n&&"#"!==n||null!=f&&null!==(t=f.link)&&void 0!==t&&t.enable?"return true;":"return false;",rel:p?"nofollow noopener":"follow noopener",target:v},h("before"),u?"":React.createElement(ge.RichText.Content,{value:r.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:"div",className:"uagb-button__link"}),h("after"))))}},{attributes:$b,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,dynamicContent:b}=a,g=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,m=o?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link"),href:""===n?"#":n,onClick:""!==n&&"#"!==n||null!=b&&null!==(t=b.link)&&void 0!==t&&t.enable?"return true;":"return false;",rel:p?"nofollow noopener":"follow noopener",target:m},g("before"),u?"":React.createElement(ge.RichText.Content,{value:r.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:"div",className:"uagb-button__link"}),g("after"))))}},{attributes:Xb,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,dynamicContent:b}=a,g=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,m=o?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link"),href:""===n?"#":n,onClick:""!==n&&"#"!==n||null!=b&&null!==(t=b.link)&&void 0!==t&&t.enable?"return true;":"return false;",rel:p?"nofollow noopener":"follow noopener",target:m},g("before"),u?"":React.createElement(ge.RichText.Content,{value:r,tagName:"div",className:"uagb-button__link"}),g("after"))))}},{attributes:Lb,save:function(e){var t,a;const{attributes:l,className:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g}=l,m=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c)):null,y=n?"_blank":"_self";return React.createElement("div",{className:Be()(i,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link"),href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,onClick:""!==r&&"#"!==r||null!=g&&null!==(a=g.link)&&void 0!==a&&a.enable?"return true;":"return false;",rel:d?"nofollow noopener":"follow noopener",target:y},m("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),m("after"))))}},{attributes:ag,save:function(e){var t,a;const{attributes:l,className:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g,buttonType:m,inheritFromTheme:y}=l,f=y&&"secondary"===m,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{},_=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c)):null,T=n?"_blank":"_self";return React.createElement("div",{className:Be()(i,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+h),style:v,href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,onClick:""!==r&&"#"!==r||null!=g&&null!==(a=g.link)&&void 0!==a&&a.enable?"return true;":"return false;",rel:d?"nofollow noopener":"follow noopener",target:T},_("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),_("after"))))}},{attributes:ng,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,dynamicContent:b,buttonType:g,inheritFromTheme:m}=a,y=m&&"secondary"===g,f=y?"ast-outline-button":"wp-block-button__link",h=y?{borderWidth:"revert-layer"}:{},v=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,_=o?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+f),"aria-label":u?r:"",style:h,href:""===n||null!=b&&null!==(t=b.link)&&void 0!==t&&t.enable?"#":n,rel:p?"nofollow noopener":"follow noopener",target:_},v("before"),u?"":React.createElement(ge.RichText.Content,{value:r,tagName:"div",className:"uagb-button__link"}),v("after"))))}},{attributes:ug,save:function(e){var t;const{attributes:a,className:l,setAttributes:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g,buttonType:m,inheritFromTheme:y}=a,f=y&&"secondary"===m,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{},_={"aria-hidden":"true",focussable:"false"},T=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c,i,_)):null,C=n?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+h),"aria-label":p?s:"",style:v,href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,rel:d?"nofollow noopener":"follow noopener",target:C},T("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),T("after"))))}}],bg=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{block_id:r,fontFamily:s,fontWeight:c,size:u,topPadding:p,rightPadding:d,bottomPadding:b,leftPadding:g,topMobilePadding:m,rightMobilePadding:y,bottomMobilePadding:f,leftMobilePadding:h,topTabletPadding:v,rightTabletPadding:_,bottomTabletPadding:T,leftTabletPadding:C,paddingUnit:S,mobilePaddingUnit:k,tabletPaddingUnit:w,btnBorderHColor:P,color:x,background:A,hColor:G,hBackground:M,sizeType:R,sizeTypeTablet:B,sizeTypeMobile:U,sizeMobile:E,sizeTablet:O,lineHeight:L,lineHeightType:H,lineHeightMobile:F,lineHeightTablet:j,iconSpace:z,iconSpaceMobile:D,iconSpaceTablet:N,fontStyle:I,transform:V,decoration:W,backgroundType:q,hoverbackgroundType:Z,gradientValue:$,gradientColor1:Y,gradientColor2:K,gradientLocation1:J,gradientLocation2:X,gradientType:Q,gradientAngle:ee,selectGradient:te,hovergradientValue:le,hovergradientColor1:ie,hovergradientColor2:oe,hovergradientLocation1:ne,hovergradientLocation2:re,hovergradientType:se,hovergradientAngle:ce,hoverselectGradient:ue,topMargin:pe,rightMargin:de,bottomMargin:be,leftMargin:ge,topMarginTablet:me,rightMarginTablet:ye,bottomMarginTablet:fe,leftMarginTablet:he,topMarginMobile:ve,rightMarginMobile:_e,bottomMarginMobile:Te,leftMarginMobile:Ce,marginType:Se,useSeparateBoxShadows:ke,boxShadowColor:we,boxShadowHOffset:Pe,boxShadowVOffset:xe,boxShadowBlur:Ae,boxShadowSpread:Ge,boxShadowPosition:Me,boxShadowColorHover:Re,boxShadowHOffsetHover:Be,boxShadowVOffsetHover:Ue,boxShadowBlurHover:Ee,boxShadowSpreadHover:Oe,boxShadowPositionHover:Le,iconColor:He,iconHColor:Fe,iconSize:je,iconSizeTablet:ze,iconSizeMobile:De,removeText:Ne,letterSpacing:Ie,letterSpacingTablet:Ve,letterSpacingMobile:We,letterSpacingType:qe,inheritFromTheme:Ze,buttonType:$e}=e,Ye="primary"===$e?".wp-block-button__link":".ast-outline-button",Ke={},Je={};let Xe={};const Qe=Zr({horizontal:Pe,vertical:xe,blur:Ae,spread:Ge,color:we,position:Me}),et=Zr({horizontal:Be,vertical:Ue,blur:Ee,spread:Oe,color:Re,position:Le,altColor:we});if(Ze)Xe[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"margin-left":Vr(ge,Se),"margin-right":Vr(de,Se),"margin-top":Vr(pe,Se),"margin-bottom":Vr(be,Se),"box-shadow":Qe},Je[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"margin-left":Vr(Ce,Se),"margin-right":Vr(_e,Se),"margin-top":Vr(ve,Se),"margin-bottom":Vr(Te,Se)},Ke[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"margin-left":Vr(he,Se),"margin-right":Vr(ye,Se),"margin-top":Vr(me,Se),"margin-bottom":Vr(fe,Se)};else{const t=Wr(e,"btn"),a=Wr(e,"btn","tablet"),l=Wr(e,"btn","mobile");if(Xe={".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater:hover .uagb-button__link":{color:G},".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater:hover":{color:G},".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater .uagb-button__link":{color:x}},Xe[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"font-size":Vr(u,R),"line-height":Vr(L,H),"font-family":s,"font-weight":c,"font-style":I,"text-transform":V,"text-decoration":W,"padding-left":Vr(g,S),"padding-right":Vr(d,S),"padding-top":Vr(p,S),"padding-bottom":Vr(b,S),"margin-left":Vr(ge,Se),"margin-right":Vr(de,Se),"margin-top":Vr(pe,Se),"margin-bottom":Vr(be,Se),color:x,"box-shadow":Qe,"letter-spacing":Vr(Ie,qe)},Xe[" .wp-block-button__link.uagb-buttons-repeater"]=t,Xe[".uagb-buttons__outer-wrap .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater:hover"]={"border-color":P},ke&&(Xe[".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater:hover"]={"box-shadow":et}),Xe[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater"]=t,Ke[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater"]=a,Je[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater"]=l,Xe[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater:hover"]={"border-color":P},Je[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"font-size":Vr(E,U),"line-height":Vr(F,H),"letter-spacing":Vr(We,qe),"padding-left":Vr(h,k),"padding-right":Vr(y,k),"padding-top":Vr(m,k),"padding-bottom":Vr(f,k),"margin-left":Vr(Ce,Se),"margin-right":Vr(_e,Se),"margin-top":Vr(ve,Se),"margin-bottom":Vr(Te,Se),...l},Ke[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"font-size":Vr(O,B),"line-height":Vr(j,H),"letter-spacing":Vr(Ve,qe),"padding-left":Vr(C,w),"padding-right":Vr(_,w),"padding-top":Vr(v,w),"padding-bottom":Vr(T,w),"margin-left":Vr(he,Se),"margin-right":Vr(ye,Se),"margin-top":Vr(me,Se),"margin-bottom":Vr(fe,Se),...a},"transparent"===q)Xe[".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater"]={background:"transparent"};else if("gradient"===q){const e=qr({backgroundType:"gradient",gradientValue:$,gradientColor1:Y,gradientColor2:K,gradientLocation1:J,gradientLocation2:X,gradientType:Q,gradientAngle:ee,selectGradient:te});Xe[".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater"]=e}else"color"===q&&(Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater"]={background:A});if("transparent"===Z)Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater:hover"]={background:"transparent"};else if("gradient"===Z){const e=qr({backgroundType:"gradient",gradientValue:le,gradientColor1:ie,gradientColor2:oe,gradientLocation1:ne,gradientLocation2:re,gradientType:se,gradientAngle:ce,selectGradient:ue});Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater:hover"]=e}else"color"===Z&&(Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater:hover"]={background:M})}if(Xe[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater .uagb-button__icon svg`]={width:Vr(us(je,"iconSize",o),"px"),height:Vr(us(je,"iconSize",o),"px"),fill:He},Ke[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater .uagb-button__icon svg`]={width:Vr(ze,"px"),height:Vr(ze,"px"),fill:He},Je[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater .uagb-button__icon svg`]={width:Vr(De,"px"),height:Vr(De,"px"),fill:He},Xe[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater:hover .uagb-button__icon > svg`]={fill:Fe||G},!Ne){const e=Vr(us(z,"iconSpace",o),"px"),t=Vr(N,"px"),a=Vr(D,"px");let l="margin-right",i="margin-left";"1"!==uagb_blocks_info.is_rtl&&(l="margin-left",i="margin-right"),Xe[" .uagb-button__icon-position-after"]={[l]:e},Xe[" .uagb-button__icon-position-before"]={[i]:e},Ke[" .uagb-button__icon-position-before"]={[i]:t},Ke[" .uagb-button__icon-position-after"]={[l]:t},Je[" .uagb-button__icon-position-before"]={[i]:a},Je[" .uagb-button__icon-position-after"]={[l]:a}}const tt=i?i+" ":".editor-styles-wrapper .uagb-block-"+r;let at=ae(Xe,tt);return("tablet"===n||"mobile"===n||i)&&(at+=ae(Ke,""+tt,!0,"tablet"),("mobile"===n||i)&&(at+=ae(Je,""+tt,!0,"mobile"))),at},gg=Object(B.memo)(e=>{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)});const mg=[{defaultAttributes:ct},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowPosition",value:"outset"},{label:"boxShadowSpread",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '}],yg=[{defaultAttributes:ct},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowPositionHover",value:"outset"},{label:"boxShadowSpreadHover",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '}];var fg=Object(F.applyFilters)("uag_buttons_child_presets",mg);const hg=[{defaultAttributes:ct},{defaultPresetAttributes:[{label:"iconSpace"},{label:"backgroundType"},{label:"hoverbackgroundType"},{label:"hBackground"},{label:"hColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidth"},{label:"btnBorderTopWidth"},{label:"btnBorderLeftWidth"},{label:"btnBorderRightWidth"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"color"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"color"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"color"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"backgroundType",value:"color"},{label:"showIcon",value:!0},{label:"iconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"btnBorderColor",value:""},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"btnBorderColor",value:""},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"showIcon",value:!0},{label:"iconSpace",value:12},{label:"btnBorderColor",value:""},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];function vg(){return(vg=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l,clientId:i}=e,{block_id:o,link:s,size:c,topPadding:u,rightPadding:p,bottomPadding:d,leftPadding:b,topMobilePadding:g,rightMobilePadding:m,bottomMobilePadding:y,leftMobilePadding:f,topTabletPadding:h,rightTabletPadding:v,bottomTabletPadding:_,leftTabletPadding:T,paddingUnit:C,mobilePaddingUnit:S,tabletPaddingUnit:k,paddingLink:w,color:P,background:x,hColor:A,hBackground:G,sizeType:M,sizeTypeMobile:R,sizeTypeTablet:B,sizeMobile:U,sizeTablet:E,lineHeight:O,lineHeightType:L,lineHeightMobile:H,lineHeightTablet:F,icon:j,iconPosition:z,iconSpace:D,iconSpaceTablet:N,iconSpaceMobile:I,opensInNewTab:V,loadGoogleFonts:W,fontFamily:q,fontWeight:Z,fontStyle:$,transform:Y,decoration:K,backgroundType:J,hoverbackgroundType:X,gradientValue:Q,hovergradientValue:ee,hovergradientColor1:te,hoverselectGradient:ae,hovergradientColor2:le,hovergradientLocation1:ie,hovergradientLocation2:oe,hovergradientType:ne,hovergradientAngle:re,gradientColor1:se,gradientColor2:ce,gradientLocation1:ue,gradientLocation2:pe,gradientType:de,gradientAngle:be,selectGradient:me,topMargin:ye,rightMargin:fe,bottomMargin:he,leftMargin:ve,topMarginTablet:_e,rightMarginTablet:Te,bottomMarginTablet:Se,leftMarginTablet:ke,topMarginMobile:we,rightMarginMobile:Pe,bottomMarginMobile:xe,leftMarginMobile:Ae,marginType:Ge,marginLink:Me,useSeparateBoxShadows:Re,boxShadowColor:Be,boxShadowHOffset:Ue,boxShadowVOffset:Oe,boxShadowBlur:He,boxShadowSpread:Fe,boxShadowPosition:ze,boxShadowColorHover:De,boxShadowHOffsetHover:Ne,boxShadowVOffsetHover:Ie,boxShadowBlurHover:Ve,boxShadowSpreadHover:We,boxShadowPositionHover:qe,iconColor:Ze,iconHColor:$e,iconSize:Ye,iconSizeTablet:Ke,iconSizeMobile:Je,removeText:Xe,noFollow:Qe,letterSpacing:et,letterSpacingTablet:tt,letterSpacingMobile:at,letterSpacingType:lt,showIcon:it,inheritFromTheme:ot,buttonType:nt}=t,rt=uagb_blocks_info.current_theme,st=uagb_blocks_info.is_astra_based_theme,{updateBlockAttributes:ct}=Object(n.useDispatch)(ge.store),ut=Object(n.select)("core/block-editor").getBlockParents(i).at(-1),pt=Object(n.select)("core/block-editor").getBlockAttributes(ut),dt=[{align:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),title:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{align:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),title:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{align:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),title:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{align:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),title:Object(r.__)("Full","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(ge.AlignmentToolbar,{value:pt.align,onChange:e=>{a({align:e}),ct(ut,{align:e})},alignmentControls:dt})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,vg({},ol,{parentProps:e}),!ot&&React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Hr,{setAttributes:a,presets:hg,presetInputType:"radioImage"})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{checked:ot,onChange:()=>a({inheritFromTheme:!ot}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),ot&&("Astra"===rt||st)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:nt,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:it,onChange:()=>a({showIcon:!it})}),it&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:j,onChange:e=>a({icon:e})}),""!==j&&!Xe&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:z,label:"iconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:"Before Text"},{value:"after",label:"After Text"}],showIcons:!1}))),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,name:"link",value:s,setAttributes:a,data:{value:s,label:"link"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:V,onChange:()=>a({opensInNewTab:!V})}),React.createElement(Le.ToggleControl,{label:Object(r.__)('Add "nofollow" to link',"ultimate-addons-for-gutenberg"),checked:Qe,onChange:()=>a({noFollow:!Qe})}),""!==j&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Remove Text","ultimate-addons-for-gutenberg"),checked:Xe,onChange:()=>a({removeText:!Xe})}))),React.createElement(il,vg({},nl,{parentProps:e}),!Xe&&!ot&&React.createElement(je,{title:Object(r.__)("Text","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:P||"",data:{value:P,label:"color"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:A||"",data:{value:A,label:"hColor"},setAttributes:a}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:W,label:"loadGoogleFonts"},fontFamily:{value:q,label:"fontFamily"},fontWeight:{value:Z,label:"fontWeight"},fontStyle:{value:$,label:"fontStyle"},transform:{value:Y,label:"transform"},decoration:{value:K,label:"decoration"},fontSizeType:{value:M,label:"sizeType"},fontSizeTypeTablet:{value:B,label:"sizeTypeTablet"},fontSizeTypeMobile:{value:R,label:"sizeTypeMobile"},fontSize:{value:c,label:"size"},fontSizeMobile:{value:U,label:"sizeMobile"},fontSizeTablet:{value:E,label:"sizeTablet"},lineHeightType:{value:L,label:"lineHeightType"},lineHeight:{value:O,label:"lineHeight"},lineHeightMobile:{value:H,label:"lineHeightMobile"},lineHeightTablet:{value:F,label:"lineHeightTablet"},letterSpacing:{value:et,label:"letterSpacing"},letterSpacingTablet:{value:tt,label:"letterSpacingTablet"},letterSpacingMobile:{value:at,label:"letterSpacingMobile"},letterSpacingType:{value:lt,label:"letterSpacingType"}})),it&&""!==j&&React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ye,label:"iconSize"},tablet:{value:Ke,label:"iconSizeTablet"},mobile:{value:Je,label:"iconSizeMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),""!==j&&!Xe&&React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:D,label:"iconSpace"},tablet:{value:N,label:"iconSpaceTablet"},mobile:{value:I,label:"iconSpaceMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ze||"",data:{value:Ze,label:"iconColor"},setAttributes:a}),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:$e||"",data:{value:$e,label:"iconHColor"},setAttributes:a})),disableBottomSeparator:!0})),!ot&&React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:J,label:"backgroundType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===J&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x||"",data:{value:x,label:"background"},setAttributes:a})),"gradient"===J&&React.createElement(jl,{backgroundGradient:{value:Q,label:"gradientValue"},backgroundGradientColor1:{value:se,label:"gradientColor1"},gradientType:{value:me,label:"selectGradient"},backgroundGradientColor2:{value:ce,label:"gradientColor2"},backgroundGradientLocation1:{value:ue,label:"gradientLocation1"},backgroundGradientLocation2:{value:pe,label:"gradientLocation2"},backgroundGradientType:{value:de,label:"gradientType"},backgroundGradientAngle:{value:be,label:"gradientAngle"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:X,label:"hoverbackgroundType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===X&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:G||"",data:{value:G,label:"hBackground"},setAttributes:a})),"gradient"===X&&React.createElement(jl,{backgroundGradient:{value:ee,label:"hovergradientValue"},backgroundGradientColor1:{value:te,label:"hovergradientColor1"},gradientType:{value:ae,label:"hoverselectGradient"},backgroundGradientColor2:{value:le,label:"hovergradientColor2"},backgroundGradientLocation1:{value:ie,label:"hovergradientLocation1"},backgroundGradientLocation2:{value:oe,label:"hovergradientLocation2"},backgroundGradientType:{value:ne,label:"hovergradientType"},backgroundGradientAngle:{value:re,label:"hovergradientAngle"},setAttributes:a})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"btn",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:Re,onChange:()=>a({useSeparateBoxShadows:!Re})}),Re?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:fg,presetInputType:"radioImage"}),React.createElement(vl,{blockId:o,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Be,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ue,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Oe,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:He,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Fe,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ze,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:yg,presetInputType:"radioImage"}),React.createElement(vl,{blockId:o,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:De,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ne,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Ie,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Ve,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:We,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:qe,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:fg,presetInputType:"radioImage"}),React.createElement(vl,{blockId:o,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Be,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ue,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Oe,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:He,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Fe,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ze,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},!ot&&React.createElement(Pl,vg({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:u,label:"topPadding"},valueRight:{value:p,label:"rightPadding"},valueBottom:{value:d,label:"bottomPadding"},valueLeft:{value:b,label:"leftPadding"},valueTopTablet:{value:h,label:"topTabletPadding"},valueRightTablet:{value:v,label:"rightTabletPadding"},valueBottomTablet:{value:_,label:"bottomTabletPadding"},valueLeftTablet:{value:T,label:"leftTabletPadding"},valueTopMobile:{value:g,label:"topMobilePadding"},valueRightMobile:{value:m,label:"rightMobilePadding"},valueBottomMobile:{value:y,label:"bottomMobilePadding"},valueLeftMobile:{value:f,label:"leftMobilePadding"},unit:{value:C,label:"paddingUnit"},mUnit:{value:S,label:"mobilePaddingUnit"},tUnit:{value:k,label:"tabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:w,label:"paddingLink"}})),React.createElement(Pl,vg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:ye,label:"topMargin"},valueRight:{value:fe,label:"rightMargin"},valueBottom:{value:he,label:"bottomMargin"},valueLeft:{value:ve,label:"leftMargin"},valueTopTablet:{value:_e,label:"topMarginTablet"},valueRightTablet:{value:Te,label:"rightMarginTablet"},valueBottomTablet:{value:Se,label:"bottomMarginTablet"},valueLeftTablet:{value:ke,label:"leftMarginTablet"},valueTopMobile:{value:we,label:"topMarginMobile"},valueRightMobile:{value:Pe,label:"rightMarginMobile"},valueBottomMobile:{value:xe,label:"bottomMarginMobile"},valueLeftMobile:{value:Ae,label:"leftMarginMobile"},unit:{value:Ge,label:"marginType"},mUnit:{value:Ge,label:"marginType"},tUnit:{value:Ge,label:"marginType"},attributes:t,setAttributes:a,link:{value:Me,label:"marginLink"}})))),React.createElement(il,vg({},rl,{parentProps:e}),Ds(bg,a,t)))))}),Tg=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,deviceType:l,context:i,labelHasDynamicContent:o}=e,{className:n,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,block_id:b,buttonType:g,inheritFromTheme:m}=t;let{label:y}=t;const f=m&&"secondary"===g,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{};if(o){const e=Object(F.applyFilters)("uag_render_text_loop_data",y,i);""!==e&&(y=e)}const _={"aria-hidden":"true",focussable:"false"},T=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s,a,_)):null,C=uagb_blocks_info.spectra_pro_status?["uagb/dynamic-content"]:[];return React.createElement("div",{className:Be()(n,"uagb-buttons__outer-wrap","uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-block-"+b,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("div",{className:Be()("uagb-buttons-repeater",""+h),style:v},T("before"),u?"":React.createElement(ge.RichText,{placeholder:Object(r.__)("Add text…","ultimate-addons-for-gutenberg"),value:y,tagName:"div",onChange:e=>{a({label:e})},className:"uagb-button__link",rel:p?"nofollow noopener":"follow noopener",keepPlaceholderOnFocus:!0,allowedFormats:C}),T("after"))))});function Cg(){return(Cg=Object.assign||function(e){for(var t=1;t{const{isSelected:t,clientId:a,attributes:l,attributes:{borderStyle:i,borderWidth:o,borderRadius:n,borderHColor:r,borderColor:s,label:c,globalBlockStyleId:u},setAttributes:p,name:d,deviceType:b,context:g}=e,[m,y]=Object(B.useState)({isURLPickerOpen:!1}),f=c&&-1!==c.indexOf('{var e;!f||null!=l&&null!==(e=l.context)&&void 0!==e&&e.postId||p(e=>({...e,context:g}))},[f,null==g?void 0:g.postId]),Object(B.useEffect)(()=>{ys()},[b]);const h=Object(B.useMemo)(()=>bg(l,a,d,b),[l,b]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:h}),React.createElement(gg,{attributes:l}),t&&React.createElement(_g,Cg({},e,{state:m,setStateValue:y})),React.createElement(Tg,e))});a(220);let kg={};kg=Object(F.applyFilters)("uagb/buttons-child",ss(kg)),Object(de.registerBlockType)("uagb/buttons-child",{...kg,title:Object(r.__)("Button","ultimate-addons-for-gutenberg"),description:Object(r.__)("This block allows you to style button.","ultimate-addons-for-gutenberg"),icon:se.buttons_child,parent:["uagb/buttons"],attributes:ct,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"buttons-child",isChildren:!0}):React.createElement(Sg,e),save:function(e){var t;const{attributes:a,className:l,setAttributes:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g,buttonType:m,inheritFromTheme:y}=a,f=y&&"secondary"===m,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{},_={"aria-hidden":"true",focussable:"false"},T=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c,i,_)):null,C=n?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+h),"aria-label":p?s:"",style:v,href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,rel:d?"nofollow noopener":"follow noopener",target:C,role:"button"},T("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),T("after"))))},deprecated:dg,usesContext:["queryId","query","queryContext","postId","postType"],supports:{anchor:!0,html:!1}});var wg=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=l.toLowerCase(),{block_id:n,headingAlign:r,headingAlignTablet:s,headingAlignMobile:c,headingColor:u,subHeadingColor:p,prefixColor:d,prefixFontSize:b,prefixFontSizeType:g,prefixFontSizeTypeMobile:m,prefixFontSizeTypeTablet:y,prefixFontSizeTablet:f,prefixFontSizeMobile:h,prefixFontFamily:v,prefixFontWeight:_,prefixLineHeightType:T,prefixLineHeight:C,prefixLineHeightTablet:S,prefixLineHeightMobile:k,prefixLetterSpacing:w,prefixLetterSpacingTablet:P,prefixLetterSpacingMobile:x,prefixLetterSpacingType:A,headFontSize:G,headFontSizeType:M,headFontSizeTypeMobile:R,headFontSizeTypeTablet:B,headFontSizeTablet:U,headFontSizeMobile:E,headFontFamily:O,headFontWeight:L,headLineHeightType:H,headLineHeight:F,headLineHeightTablet:j,headLineHeightMobile:z,headLetterSpacing:D,headLetterSpacingTablet:N,headLetterSpacingMobile:I,headLetterSpacingType:V,subHeadFontSize:W,subHeadFontSizeType:q,subHeadFontSizeTypeMobile:Z,subHeadFontSizeTypeTablet:$,subHeadFontSizeTablet:Y,subHeadFontSizeMobile:K,subHeadFontFamily:J,subHeadFontWeight:X,subHeadLineHeightType:Q,subHeadLineHeight:ee,subHeadLineHeightTablet:te,subHeadLineHeightMobile:le,separatorWidthType:ie,iconColor:oe,iconSize:ne,iconSizeType:re,iconSizeTablet:se,iconSizeMobile:ce,iconimgPosition:ue,iconHover:pe,iconimgBorderRadius:de,iconimgBorderRadiusUnit:be,seperatorStyle:ge,seperatorWidth:me,seperatorWidthTablet:ye,seperatorWidthMobile:fe,seperatorColor:he,seperatorThickness:ve,thicknessUnit:_e,ctaLinkColor:Te,ctaFontSize:Ce,ctaFontSizeType:Se,ctaFontSizeTypeMobile:ke,ctaFontSizeTypeTablet:we,ctaFontSizeMobile:Pe,ctaFontSizeTablet:xe,ctaLineHeightType:Ae,ctaLineHeight:Ge,ctaLineHeightMobile:Me,ctaLineHeightTablet:Re,ctaLetterSpacingType:Be,ctaLetterSpacing:Ue,ctaLetterSpacingTablet:Ee,ctaLetterSpacingMobile:Oe,ctaFontFamily:Le,ctaFontWeight:He,ctaBtnLinkColor:Fe,ctaBgType:je,ctaBgHoverType:ze,ctaBgColor:De,paddingBtnUnit:Ne,mobilePaddingBtnUnit:Ie,tabletPaddingBtnUnit:Ve,paddingBtnTop:We,paddingBtnBottom:qe,paddingBtnLeft:Ze,paddingBtnRight:$e,paddingBtnTopTablet:Ye,paddingBtnRightTablet:Ke,paddingBtnBottomTablet:Je,paddingBtnLeftTablet:Xe,paddingBtnTopMobile:Qe,paddingBtnRightMobile:et,paddingBtnBottomMobile:tt,paddingBtnLeftMobile:at,iconLeftMargin:lt,iconRightMargin:it,iconTopMargin:ot,iconBottomMargin:nt,iconMarginTopTablet:rt,iconMarginRightTablet:st,iconMarginBottomTablet:ct,iconMarginLeftTablet:ut,iconMarginTopMobile:pt,iconMarginRightMobile:dt,iconMarginBottomMobile:bt,iconMarginLeftMobile:gt,iconMarginUnit:mt,iconMobileMarginUnit:yt,iconTabletMarginUnit:ft,imageWidth:ht,imageWidthMobile:vt,imageWidthTablet:_t,imageWidthType:Tt,imageWidthUnit:Ct,imageWidthUnitTablet:St,imageWidthUnitMobile:kt,ctaLinkHoverColor:wt,ctaBgHoverColor:Pt,btnBorderHColor:xt,ctaIconSpace:At,ctaIconSpaceTablet:Gt,ctaIconSpaceMobile:Mt,ctaIconSpaceType:Rt,ctaTransform:Bt,ctaDecoration:Ut,prefixTransform:Et,prefixDecoration:Ot,headTransform:Lt,headDecoration:Ht,subHeadTransform:Ft,subHeadDecoration:jt,stack:zt,prefixFontStyle:Dt,headFontStyle:Nt,subHeadFontStyle:It,ctaFontStyle:Vt,ctaIconPosition:Wt,prefixTopMargin:qt,prefixRightMargin:Zt,prefixSpace:$t,prefixLeftMargin:Yt,prefixMarginTopTablet:Kt,prefixMarginRightTablet:Jt,prefixTabletSpace:Xt,prefixMarginLeftTablet:Qt,prefixMarginTopMobile:ea,prefixMarginRightMobile:ta,prefixMobileSpace:aa,prefixMarginLeftMobile:la,prefixSpaceUnit:ia,prefixMobileMarginUnit:oa,prefixTabletMarginUnit:na,headTopMargin:ra,headRightMargin:sa,headSpace:ca,headLeftMargin:ua,headMarginTopTablet:pa,headMarginRightTablet:da,headTabletSpace:ba,headMarginLeftTablet:ga,headMarginTopMobile:ma,headMarginRightMobile:ya,headMobileSpace:fa,headMarginLeftMobile:ha,headSpaceUnit:va,headMobileMarginUnit:_a,headTabletMarginUnit:Ta,separatorTopMargin:Ca,separatorRightMargin:Sa,seperatorSpace:ka,separatorLeftMargin:wa,separatorMarginTopTablet:Pa,separatorMarginRightTablet:xa,seperatorTabletSpace:Aa,separatorMarginLeftTablet:Ga,separatorMarginTopMobile:Ma,separatorMarginRightMobile:Ra,seperatorMobileSpace:Ba,separatorMarginLeftMobile:Ua,seperatorSpaceUnit:Ea,separatorMobileMarginUnit:Oa,separatorTabletMarginUnit:La,subHeadTopMargin:Ha,subHeadRightMargin:Fa,subHeadSpace:ja,subHeadLeftMargin:za,subHeadMarginTopTablet:Da,subHeadMarginRightTablet:Na,subHeadTabletSpace:Ia,subHeadMarginLeftTablet:Va,subHeadMarginTopMobile:Wa,subHeadMarginRightMobile:qa,subHeadMobileSpace:Za,subHeadMarginLeftMobile:$a,subHeadSpaceUnit:Ya,subHeadMobileMarginUnit:Ka,subHeadTabletMarginUnit:Ja,subHeadLetterSpacing:Xa,subHeadLetterSpacingTablet:Qa,subHeadLetterSpacingMobile:el,subHeadLetterSpacingType:tl,iconView:al,iconBackgroundColor:ll,iconBackgroundHoverColor:il,iconBorderWidth:ol,blockTopMargin:nl,blockRightMargin:rl,blockLeftMargin:sl,blockBottomMargin:cl,blockTopMarginTablet:ul,blockRightMarginTablet:pl,blockLeftMarginTablet:dl,blockBottomMarginTablet:bl,blockTopMarginMobile:gl,blockRightMarginMobile:ml,blockLeftMarginMobile:yl,blockBottomMarginMobile:fl,blockMarginUnit:hl,blockMarginUnitTablet:vl,blockMarginUnitMobile:_l,blockTopPadding:Tl,blockRightPadding:Cl,blockLeftPadding:Sl,blockBottomPadding:kl,blockTopPaddingTablet:wl,blockRightPaddingTablet:Pl,blockLeftPaddingTablet:xl,blockBottomPaddingTablet:Al,blockTopPaddingMobile:Gl,blockRightPaddingMobile:Ml,blockLeftPaddingMobile:Rl,blockBottomPaddingMobile:Bl,blockPaddingUnit:Ul,blockPaddingUnitTablet:El,blockPaddingUnitMobile:Ol,inheritFromTheme:Ll,infoboxBorderHColor:Hl}=e,Fl=a.replace("uagb/",""),jl=us(ve,"seperatorThickness",Fl),zl=us(ne,"iconSize",Fl),Dl=isNaN(se)?zl:se,Nl=isNaN(ce)?Dl:ce,Il=us(de,"iconimgBorderRadius",Fl),Vl=us(me,"seperatorWidth",Fl),Wl=us(ye,"seperatorWidthTablet",Fl),ql=us(fe,"seperatorWidthMobile",Fl),Zl=us(At,"ctaIconSpace",Fl),$l=isNaN(Gt)?Zl:Gt,Yl=isNaN(Mt)?$l:Mt,Kl=us(ht,"imageWidth",Fl),Jl=isNaN(_t)?Kl:_t,Xl=isNaN(vt)?Jl:vt,Ql="%"===re?"border-box":"content-box",ei="%"===Ct?"border-box":"content-box",ti="%"===St?"border-box":"content-box",ai="%"===kt?"border-box":"content-box",li=Wr(e,"infobox"),ii=Wr(e,"infobox","tablet"),oi=Wr(e,"infobox","mobile"),ni={" .uagb-ifb-content .uagb-ifb-icon-wrap svg":{"font-size":Vr(zl,re),color:oe,fill:oe,"line-height":Vr(zl,re)}," .uagb-iconbox-icon-wrap":{margin:"auto",display:"inline-flex","align-items":"center","justify-content":"center","box-sizing":"content-box",width:Vr(zl,re),height:Vr(zl,re),"line-height":Vr(zl,re),"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt)}," .uagb-ifb-content .uagb-ifb-left-title-image svg":{"font-size":Vr(zl,re),color:oe,fill:oe,width:Vr(zl,re),"line-height":Vr(zl,re)}," .uagb-ifb-content .uagb-ifb-right-title-image svg":{"font-size":Vr(zl,re),color:oe,fill:oe,width:Vr(zl,re),"line-height":Vr(zl,re)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg":{"font-size":Vr(zl,re),color:oe,fill:oe,width:Vr(zl,re),height:Vr(zl,re),"line-height":Vr(zl,re)}," .uagb-ifb-content .uagb-ifb-icon-wrap svg:hover":{fill:pe},".uagb-infobox-icon-left .uagb-ifb-icon-wrap > svg:hover":{fill:pe},".uagb-infobox-icon-right .uagb-ifb-icon-wrap:hover > svg:hover":{fill:pe},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg:hover":{fill:pe},".uagb-infobox_cta-type-all:hover .uagb-infobox__content-wrap svg":{fill:pe,color:pe},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap > svg":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt)},".uagb-infobox__content-wrap .uagb-ifb-image-content > img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be),"box-sizing":""+ei}," .block-editor-rich-text__editable.uagb-ifb-title-prefix":{"font-size":Vr(b,g),"font-family":v,"font-weight":_,"line-height":Vr(C,T),"font-style":Dt,"text-decoration":Ot,"text-transform":Et,color:d,"letter-spacing":Vr(w,A),"margin-bottom":Vr($t,ia),"margin-top":Vr(qt,ia),"margin-left":Vr(Yt,ia),"margin-right":Vr(Zt,ia)}," .block-editor-rich-text__editable.uagb-ifb-title a":{color:u}," .block-editor-rich-text__editable.uagb-ifb-title":{"font-size":Vr(G,M),"font-family":O,"font-weight":L,"line-height":Vr(F,H),"font-style":Nt,"text-decoration":Ht,"text-transform":Lt,"letter-spacing":Vr(D,V),color:u,"margin-top":Vr(ra,va),"margin-bottom":Vr(ca,va),"margin-left":Vr(ua,va),"margin-right":Vr(sa,va)}," .uagb-ifb-desc.block-editor-block-list__layout p":{color:p,"line-height":Vr(ee,Q),"text-decoration":jt}," .uagb-ifb-desc.block-editor-block-list__layout":{"font-size":Vr(W,q),"font-family":J,"font-weight":X,"font-style":It,"text-transform":Ft,"letter-spacing":Vr(Xa,tl),color:p,"margin-bottom":Vr(ja,Ya),"margin-top":Vr(Ha,Ya),"margin-left":Vr(za,Ya),"margin-right":Vr(Fa,Ya)}," .block-editor-rich-text__editable.uagb-ifb-desc":{"font-size":Vr(W,q),"font-family":J,"font-weight":X,"line-height":Vr(ee,Q),"font-style":It,"text-decoration":jt,"text-transform":Ft,"letter-spacing":Vr(Xa,tl),color:p,"margin-bottom":Vr(ja,Ya),"margin-top":Vr(Ha,Ya),"margin-left":Vr(za,Ya),"margin-right":Vr(Fa,Ya)},".uagb-infobox__content-wrap .uagb-ifb-separator":{width:Vr(Vl,ie),"border-top-width":Vr(jl,_e),"border-top-color":he,"border-top-style":ge}," .uagb-ifb-separator":{"margin-bottom":Vr(ka,Ea),"margin-top":Vr(Ca,Ea),"margin-left":Vr(wa,Ea),"margin-right":Vr(Sa,Ea)},".uagb-infobox__content-wrap .uagb-ifb-content svg":{"box-sizing":""+Ql},".uagb-infobox__content-wrap":li,".uagb-infobox__content-wrap:hover":{"border-color":Hl}};"Stacked"===al?(ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-circle"]={"background-color":ll,"border-radius":"50%"},ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-squre"]={"background-color":ll},ni[" .uagb-iconbox-icon-wrap:hover"]={"background-color":il+" !important"}):"Framed"===al&&(ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-circle"]={border:`${ol}px solid ${ll}`,"border-radius":"50%"},ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-squre"]={border:`${ol}px solid ${ll}`},ni[" .uagb-iconbox-icon-wrap:hover"]={border:`${ol}px solid ${il}`});const ri={" .uagb-iconbox-icon-wrap":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft),width:Vr(Dl,re),height:Vr(Dl,re),"line-height":Vr(Dl,re)}," .block-editor-rich-text__editable.uagb-ifb-desc":{"margin-bottom":Vr(Ia,Ja),"margin-top":Vr(Da,Ja),"margin-left":Vr(Va,Ja),"margin-right":Vr(Na,Ja),"font-size":Vr(Y,$),"line-height":Vr(te,Q),"letter-spacing":Vr(Qa,tl)}," .uagb-ifb-desc.block-editor-block-list__layout p":{"line-height":Vr(te,Q)}," .uagb-ifb-desc.block-editor-block-list__layout":{"margin-bottom":Vr(Ia,Ja),"margin-top":Vr(Da,Ja),"margin-left":Vr(Va,Ja),"margin-right":Vr(Na,Ja),"font-size":Vr(Y,$),"letter-spacing":Vr(Qa,tl)}," .block-editor-rich-text__editable.uagb-ifb-title":{"margin-top":Vr(pa,Ta),"margin-bottom":Vr(ba,Ta),"margin-left":Vr(ga,Ta),"margin-right":Vr(da,Ta),"font-size":Vr(U,B),"line-height":Vr(j,H),"letter-spacing":Vr(N,V)}," .block-editor-rich-text__editable.uagb-ifb-title-prefix":{"margin-bottom":Vr(Xt,na),"margin-top":Vr(Kt,na),"margin-left":Vr(Qt,na),"margin-right":Vr(Jt,na),"font-size":Vr(f,y),"line-height":Vr(S,T),"letter-spacing":Vr(P,A)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-image-content > img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-separator":{width:Vr(Wl,ie)}," .uagb-ifb-separator":{"margin-bottom":Vr(Aa,La),"margin-top":Vr(Pa,La),"margin-left":Vr(Ga,La),"margin-right":Vr(xa,La)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"box-sizing":""+ti}," .uagb-ifb-content .uagb-ifb-icon-wrap svg":{"font-size":Vr(Dl,re),"line-height":Vr(Dl,re)}," .uagb-ifb-content .uagb-ifb-left-title-image svg":{"font-size":Vr(Dl,re),width:Vr(Dl,re),"line-height":Vr(Dl,re)}," .uagb-ifb-content .uagb-ifb-right-title-image svg":{"font-size":Vr(Dl,re),width:Vr(Dl,re),"line-height":Vr(Dl,re)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg":{"font-size":Vr(Dl,re),width:Vr(Dl,re),height:Vr(Dl,re),"line-height":Vr(Dl,re)},".uagb-infobox__content-wrap":ii},si={" .uagb-iconbox-icon-wrap":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)}," .uagb-ifb-desc.block-editor-block-list__layout p":{"line-height":Vr(le,Q)}," .block-editor-rich-text__editable.uagb-ifb-desc":{"font-size":Vr(K,Z),"letter-spacing":Vr(el,tl),"margin-bottom":Vr(Za,Ka),"margin-top":Vr(Wa,Ka),"margin-left":Vr($a,Ka),"margin-right":Vr(qa,Ka)}," .uagb-ifb-desc.block-editor-block-list__layout":{"font-size":Vr(K,Z),"letter-spacing":Vr(el,tl),"margin-bottom":Vr(Za,Ka),"margin-top":Vr(Wa,Ka),"margin-left":Vr($a,Ka),"margin-right":Vr(qa,Ka)}," .block-editor-rich-text__editable.uagb-ifb-title":{"font-size":Vr(E,R),"line-height":Vr(z,H),"letter-spacing":Vr(I,V),"margin-top":Vr(ma,_a),"margin-bottom":Vr(fa,_a),"margin-left":Vr(ha,_a),"margin-right":Vr(ya,_a)}," .block-editor-rich-text__editable.uagb-ifb-title-prefix":{"font-size":Vr(h,m),"line-height":Vr(k,T),"letter-spacing":Vr(x,A),"margin-bottom":Vr(aa,oa),"margin-top":Vr(ea,oa),"margin-left":Vr(la,oa),"margin-right":Vr(ta,oa)}," .uagb-ifb-separator":{"margin-bottom":Vr(Ba,Oa),"margin-top":Vr(Ma,Oa),"margin-left":Vr(Ua,Oa),"margin-right":Vr(Ra,Oa)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-image-content > img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt),"box-sizing":""+ai},".uagb-infobox__content-wrap .uagb-ifb-separator":{width:Vr(ql,ie)}," .uagb-infobox-cta-link svg":{"font-size":Vr(Pe,ke),height:Vr(Pe,ke),"line-height":Vr(Pe,ke),width:Vr(Pe,ke)}," .uagb-ifb-content .uagb-ifb-icon-wrap svg":{"font-size":Vr(Nl,re),"line-height":Vr(Nl,re)}," .uagb-ifb-content .uagb-ifb-left-title-image svg":{"font-size":Vr(Nl,re),width:Vr(Nl,re),"line-height":Vr(Nl,re)}," .uagb-ifb-content .uagb-ifb-right-title-image svg":{"font-size":Vr(Nl,re),width:Vr(Nl,re),"line-height":Vr(Nl,re)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg":{"font-size":Vr(Nl,re),width:Vr(Nl,re),height:Vr(Nl,re),"line-height":Vr(Nl,re)},".uagb-infobox__content-wrap":oi};"left"!==ue&&"right"!==ue||("none"===zt?(ri[" .uagb-infobox-margin-wrapper"]={display:"flex"},si[" .uagb-infobox-margin-wrapper"]={display:"flex"}):"mobile"===zt&&(ri[" .uagb-infobox-margin-wrapper"]={display:"flex"},si[" .uagb-infobox-margin-wrapper"]={display:"block"})),"above-title"===ue&&(ni[".uagb-infobox-icon-above-title"]={"text-align":r},ri[".uagb-infobox-icon-above-title"]={"text-align":s},si[".uagb-infobox-icon-above-title"]={"text-align":c}),"below-title"===ue&&(ni[".uagb-infobox-icon-below-title"]={"text-align":r},ri[".uagb-infobox-icon-below-title"]={"text-align":s},si[".uagb-infobox-icon-below-title"]={"text-align":c}),ni[".uagb-infobox__content-wrap:not(.wp-block-uagb-info-box--has-margin)"]={"padding-top":Vr(Tl,Ul),"padding-right":Vr(Cl,Ul),"padding-bottom":Vr(kl,Ul),"padding-left":Vr(Sl,Ul)},ni[".uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper"]={"padding-top":Vr(Tl,Ul),"padding-right":Vr(Cl,Ul),"padding-bottom":Vr(kl,Ul),"padding-left":Vr(Sl,Ul),"margin-top":Vr(nl,hl),"margin-right":Vr(rl,hl),"margin-bottom":Vr(cl,hl),"margin-left":Vr(sl,hl)},ri[".uagb-infobox__content-wrap:not(.wp-block-uagb-info-box--has-margin)"]={"padding-top":Vr(wl,El),"padding-right":Vr(Pl,El),"padding-bottom":Vr(Al,El),"padding-left":Vr(xl,El)},ri[".uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper"]={"padding-top":Vr(wl,El),"padding-right":Vr(Pl,El),"padding-bottom":Vr(Al,El),"padding-left":Vr(xl,El),"margin-top":Vr(ul,vl),"margin-right":Vr(pl,vl),"margin-bottom":Vr(bl,vl),"margin-left":Vr(dl,vl)},si[".uagb-infobox__content-wrap:not(.wp-block-uagb-info-box--has-margin)"]={"padding-top":Vr(Gl,Ol),"padding-right":Vr(Ml,Ol),"padding-bottom":Vr(Bl,Ol),"padding-left":Vr(Rl,Ol)},si[".uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper"]={"padding-top":Vr(Gl,Ol),"padding-right":Vr(Ml,Ol),"padding-bottom":Vr(Bl,Ol),"padding-left":Vr(Rl,Ol),"margin-top":Vr(gl,_l),"margin-right":Vr(ml,_l),"margin-bottom":Vr(fl,_l),"margin-left":Vr(yl,_l)},Tt&&(ni[".uagb-infobox__content-wrap img"]={width:Vr(Kl,Ct)},ni[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image > img"]={width:Vr(Kl,Ct)},ni[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image > img"]={width:Vr(Kl,Ct)},ni[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-image-content > img"]={width:Vr(Kl,Ct)},ri[".uagb-infobox__content-wrap img"]={width:Vr(Jl,St)},ri[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image > img"]={width:Vr(Jl,St)},ri[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image > img"]={width:Vr(Jl,St)},ri[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-image-content > img"]={width:Vr(Jl,St)},si[".uagb-infobox__content-wrap img"]={width:Vr(Xl,kt)},si[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image > img"]={width:Vr(Xl,kt)},si[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image > img"]={width:Vr(Xl,kt)},si[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-image-content > img"]={width:Vr(Xl,kt)});const ci=Vr(Zl,Rt),ui=Vr($l,Rt),pi=Vr(Yl,Rt);if("after"===Wt){const e="1"===uagb_blocks_info.is_rtl?"margin-right":"margin-left";ni[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ci},ri[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ui},si[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:pi}}else{const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";ni[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ci},ri[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ui},si[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:pi}}if(!Ll){const t=Wr(e,"btn"),a=Wr(e,"btn","tablet"),l=Wr(e,"btn","mobile");ni[" div.uagb-ifb-cta a.uagb-infobox-cta-link"]={"font-size":Vr(Ce,Se),"font-family":Le,"font-weight":He,"font-style":Vt,"text-decoration":Ut,"text-transform":Bt,"letter-spacing":Vr(Ue,Be),"line-height":Vr(Ge,Ae),color:Te},ni[" div.uagb-ifb-cta a.uagb-infobox-cta-link:hover"]={color:wt},ni[" .uagb-infobox-cta-link svg"]={"font-size":Vr(Ce,Se),height:Vr(Ce,Se),width:Vr(Ce,Se),"line-height":Vr(Ce,Se),fill:Te},ni[" .uagb-infobox-cta-link:hover svg"]={fill:wt},ni[" div.uagb-ifb-button-wrapper a.uagb-infobox-cta-link"]={color:Fe,"background-color":"color"===je?De:"transparent","padding-top":Vr(We,Ne),"padding-bottom":Vr(qe,Ne),"padding-left":Vr(Ze,Ne),"padding-right":Vr($e,Ne)},ni[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link"]={color:Fe,"background-color":De,"padding-top":Vr(We,Ne),"padding-bottom":Vr(qe,Ne),"padding-left":Vr(Ze,Ne),"padding-right":Vr($e,Ne)},ni[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link:hover"]={color:wt,"background-color":"color"===ze?Pt:"transparent","border-color":xt},ni[" .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover"]={color:wt,"background-color":"color"===ze?Pt:"transparent","border-color":xt},ni[" .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg"]={fill:Fe},ni[" .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg"]={fill:wt},ri[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link"]={"padding-top":Vr(Ye,Ve),"padding-bottom":Vr(Je,Ve),"padding-left":Vr(Xe,Ve),"padding-right":Vr(Ke,Ve)},ri[" .uagb-infobox-cta-link"]={"font-size":Vr(xe,we),"letter-spacing":Vr(Ee,Be),"line-height":Vr(Re,Ae)},si[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link"]={"padding-top":Vr(Qe,Ie),"padding-bottom":Vr(tt,Ie),"padding-left":Vr(at,Ie),"padding-right":Vr(et,Ie)},si[" .uagb-infobox-cta-link"]={"font-size":Vr(Pe,ke),"letter-spacing":Vr(Oe,Be),"line-height":Vr(Me,Ae)},ni[" .uagb-infobox-cta-link.wp-block-button__link"]=t,si[" .uagb-infobox-cta-link.wp-block-button__link"]=l,ri[" .uagb-infobox-cta-link.wp-block-button__link"]=a}const di=".editor-styles-wrapper "+(i?i+" ":`#block-${t} .uagb-block-${n}`);let bi=ae(ni,di);return("tablet"===o||"mobile"===o||i)&&(bi+=ae(ri,""+di,!0,"tablet"),("mobile"===o||i)&&(bi+=ae(si,""+di,!0,"mobile"))),bi},Pg=Object(B.memo)(e=>{let{attributes:t}=e;const{prefixLoadGoogleFonts:a,headLoadGoogleFonts:l,subHeadLoadGoogleFonts:i,ctaLoadGoogleFonts:o,prefixFontFamily:n,prefixFontWeight:r,headFontFamily:s,headFontWeight:c,subHeadFontFamily:u,subHeadFontWeight:p,ctaFontFamily:d,ctaFontWeight:b}=t;let g,m,y,f;if(!0===a){const e={google:{families:[n+(r?":"+r:"")]}};g=React.createElement(O,{config:e})}if(!0===l){const e={google:{families:[s+(c?":"+c:"")]}};f=React.createElement(O,{config:e})}if(!0===i){const e={google:{families:[u+(p?":"+p:"")]}};m=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[d+(b?":"+b:"")]}};y=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,g,m,y,f)});const xg=[{defaultAttributes:bt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"center"},{label:"ctaType",value:"button"},{label:"showIcon",value:!0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"left"},{label:"ctaType",value:"button"},{label:"iconLeftMargin",value:0},{label:"iconRightMargin",value:0},{label:"showIcon",value:!0}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"left"},{label:"ctaType",value:"none"},{label:"showIcon",value:!0}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"center"},{label:"showIcon",value:!1},{label:"ctaType",value:"text"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"left"},{label:"showIcon",value:!1},{label:"ctaType",value:"text"}],icon:' '}];var Ag=Object(F.applyFilters)("uag_info_box_presets",xg);const Gg=[{defaultAttributes:bt},{defaultPresetAttributes:[{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"},{label:"showCtaIcon"},{label:"ctaIconSpace"},{label:"ctaBgType"},{label:"ctaBgHoverColor"},{label:"ctaBtnLinkColor"},{label:"ctaLinkHoverColor"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"showCtaIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"showCtaIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '}];function Mg(){return(Mg=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{headingAlign:i,headingAlignTablet:o,headingAlignMobile:n,headingColor:s,subHeadingColor:c,prefixColor:u,prefixFontSize:p,prefixFontSizeType:d,prefixFontSizeTypeMobile:b,prefixFontSizeTypeTablet:g,prefixFontSizeTablet:m,prefixFontSizeMobile:y,prefixFontFamily:f,prefixFontWeight:h,prefixFontStyle:v,prefixLineHeightType:_,prefixLineHeight:T,prefixLineHeightTablet:C,prefixLineHeightMobile:S,prefixTransform:k,prefixDecoration:w,prefixLoadGoogleFonts:P,prefixHeadingTag:x,headingTag:A,headFontSize:G,headFontSizeType:M,headFontSizeTypeMobile:R,headFontSizeTypeTablet:B,headFontSizeTablet:U,headFontSizeMobile:E,headFontFamily:O,headFontWeight:L,headFontStyle:H,headLineHeightType:F,headLineHeight:z,headLineHeightTablet:D,headLineHeightMobile:N,headLoadGoogleFonts:I,subHeadFontSize:V,subHeadFontSizeType:W,subHeadFontSizeTypeMobile:q,subHeadFontSizeTypeTablet:Z,subHeadFontSizeTablet:$,subHeadFontSizeMobile:Y,subHeadFontFamily:K,subHeadFontWeight:J,subHeadFontStyle:X,subHeadLineHeightType:Q,subHeadLineHeight:ee,subHeadLineHeightTablet:te,subHeadLineHeightMobile:ae,subHeadTransform:le,subHeadDecoration:ie,subHeadLoadGoogleFonts:oe,separatorWidthType:ne,icon:re,iconColor:se,iconSize:ce,iconSizeType:ue,iconSizeTablet:pe,iconSizeMobile:de,iconimgPosition:be,iconHover:me,iconimgBorderRadius:ye,iconimgBorderRadiusUnit:fe,source_type:he,sourceAlign:ve,seperatorPosition:_e,seperatorStyle:Te,seperatorWidth:Se,seperatorWidthTablet:ke,seperatorWidthMobile:we,seperatorColor:Pe,seperatorThickness:xe,thicknessUnit:Ae,ctaType:Ge,ctaButtonType:Me,ctaBgType:Re,ctaBgHoverType:Be,ctaLink:Ue,ctaTarget:Oe,showCtaIcon:He,ctaIcon:Fe,ctaIconPosition:ze,ctaIconSpace:De,ctaIconSpaceTablet:Ne,ctaIconSpaceMobile:Ie,ctaIconSpaceType:Ve,ctaLinkColor:We,ctaFontSize:qe,ctaFontSizeType:Ze,ctaFontSizeTypeMobile:$e,ctaFontSizeTypeTablet:Ye,ctaFontSizeMobile:Ke,ctaFontSizeTablet:Je,ctaTransform:Xe,ctaDecoration:Qe,ctaFontFamily:et,ctaFontWeight:tt,ctaFontStyle:at,ctaLineHeightType:lt,ctaLineHeight:it,ctaLineHeightMobile:ot,ctaLineHeightTablet:nt,ctaLetterSpacingType:rt,ctaLetterSpacing:st,ctaLetterSpacingTablet:ct,ctaLetterSpacingMobile:ut,ctaLoadGoogleFonts:pt,ctaBtnLinkColor:dt,ctaLinkHoverColor:bt,ctaBgHoverColor:gt,ctaBgColor:mt,paddingBtnUnit:yt,mobilePaddingBtnUnit:ft,tabletPaddingBtnUnit:ht,paddingBtnTop:vt,paddingBtnBottom:_t,paddingBtnLeft:Tt,paddingBtnRight:Ct,paddingBtnTopTablet:St,paddingBtnRightTablet:kt,paddingBtnBottomTablet:wt,paddingBtnLeftTablet:Pt,paddingBtnTopMobile:xt,paddingBtnRightMobile:At,paddingBtnBottomMobile:Gt,paddingBtnLeftMobile:Mt,iconLeftMargin:Rt,iconRightMargin:Bt,iconTopMargin:Ut,iconBottomMargin:Et,iconMarginTopTablet:Ot,iconMarginRightTablet:Lt,iconMarginBottomTablet:Ht,iconMarginLeftTablet:Ft,iconMarginTopMobile:jt,iconMarginRightMobile:zt,iconMarginBottomMobile:Dt,iconMarginLeftMobile:Nt,iconMarginUnit:It,iconMobileMarginUnit:Vt,iconTabletMarginUnit:Wt,iconImage:qt,imageSize:Zt,imageWidth:$t,imageWidthMobile:Yt,imageWidthTablet:Kt,imageWidthType:Jt,imageWidthUnit:Xt,imageWidthUnitTablet:Qt,imageWidthUnitMobile:ea,stack:ta,showIcon:aa,showPrefix:la,showTitle:ia,showDesc:oa,spacingLink:na,paddingspacingLink:ra,htmlTag:sa,headTransform:ca,headDecoration:ua,headLetterSpacing:pa,headLetterSpacingTablet:da,headLetterSpacingMobile:ba,headLetterSpacingType:ga,prefixTopMargin:ma,prefixRightMargin:ya,prefixSpace:fa,prefixLeftMargin:ha,prefixMarginTopTablet:va,prefixMarginRightTablet:_a,prefixTabletSpace:Ta,prefixMarginLeftTablet:Ca,prefixMarginTopMobile:Sa,prefixMarginRightMobile:ka,prefixMobileSpace:wa,prefixMarginLeftMobile:Pa,prefixSpaceUnit:xa,prefixMobileMarginUnit:Aa,prefixTabletMarginUnit:Ga,spacingPrefixLink:Ma,prefixLetterSpacing:Ra,prefixLetterSpacingTablet:Ba,prefixLetterSpacingMobile:Ua,prefixLetterSpacingType:Ea,headTopMargin:Oa,headRightMargin:La,headSpace:Ha,headLeftMargin:Fa,headMarginTopTablet:ja,headMarginRightTablet:za,headTabletSpace:Da,headMarginLeftTablet:Ia,headMarginTopMobile:Va,headMarginRightMobile:Wa,headMobileSpace:qa,headMarginLeftMobile:Za,headSpaceUnit:$a,headMobileMarginUnit:Ya,headTabletMarginUnit:Ka,spacingHeadLink:Ja,separatorTopMargin:Xa,separatorRightMargin:el,seperatorSpace:al,separatorLeftMargin:ll,separatorMarginTopTablet:sl,separatorMarginRightTablet:cl,seperatorTabletSpace:ul,separatorMarginLeftTablet:pl,separatorMarginTopMobile:dl,separatorMarginRightMobile:bl,seperatorMobileSpace:gl,separatorMarginLeftMobile:ml,seperatorSpaceUnit:yl,separatorMobileMarginUnit:fl,separatorTabletMarginUnit:vl,spacingSeparatorLink:_l,subHeadTopMargin:Tl,subHeadRightMargin:Cl,subHeadSpace:Sl,subHeadLeftMargin:kl,subHeadMarginTopTablet:wl,subHeadMarginRightTablet:xl,subHeadTabletSpace:Al,subHeadMarginLeftTablet:Gl,subHeadMarginTopMobile:Ml,subHeadMarginRightMobile:Rl,subHeadMobileSpace:Bl,subHeadMarginLeftMobile:Ul,subHeadSpaceUnit:El,subHeadMobileMarginUnit:Ol,subHeadTabletMarginUnit:Ll,spacingSubheadLink:Hl,subHeadLetterSpacing:Fl,subHeadLetterSpacingTablet:jl,subHeadLetterSpacingMobile:zl,subHeadLetterSpacingType:Dl,iconView:Nl,iconShape:Il,iconBackgroundColor:Vl,iconBackgroundHoverColor:Wl,iconBorderWidth:ql,blockTopMargin:Zl,blockRightMargin:$l,blockLeftMargin:Kl,blockBottomMargin:Jl,blockTopMarginTablet:Xl,blockRightMarginTablet:Ql,blockLeftMarginTablet:ei,blockBottomMarginTablet:ti,blockTopMarginMobile:ai,blockRightMarginMobile:li,blockLeftMarginMobile:ii,blockBottomMarginMobile:oi,blockMarginUnit:ni,blockMarginUnitTablet:ri,blockMarginUnitMobile:si,blockMarginLink:ci,blockTopPadding:ui,blockRightPadding:pi,blockLeftPadding:di,blockBottomPadding:bi,blockTopPaddingTablet:gi,blockRightPaddingTablet:mi,blockLeftPaddingTablet:yi,blockBottomPaddingTablet:fi,blockTopPaddingMobile:hi,blockRightPaddingMobile:vi,blockLeftPaddingMobile:_i,blockBottomPaddingMobile:Ti,blockPaddingUnit:Ci,blockPaddingUnitTablet:Si,blockPaddingUnitMobile:ki,blockPaddingLink:wi,inheritFromTheme:xi,enableMultilineParagraph:Ai,imageAlt:Gi}=a;qt&&qt.sizes&&(Rg=j(qt.sizes));const Mi=uagb_blocks_info.current_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,Mg({},ol,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Image/Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{checked:aa,onChange:()=>t({showIcon:!aa}),label:Object(r.__)("Enable Icon/Image","ultimate-addons-for-gutenberg")}),aa&&React.createElement(Pi,{label:Object(r.__)("Select Position","ultimate-addons-for-gutenberg"),data:{value:be,label:"iconimgPosition"},setAttributes:t,options:[{value:"above-title",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")},{value:"below-title",label:Object(r.__)("Below Title","ultimate-addons-for-gutenberg")},{value:"left-title",label:Object(r.__)("Left of Title","ultimate-addons-for-gutenberg")},{value:"right-title",label:Object(r.__)("Right of Title","ultimate-addons-for-gutenberg")},{value:"left",label:Object(r.__)("Left of Text and Title","ultimate-addons-for-gutenberg")},{value:"right",label:Object(r.__)("Right of Text and Title","ultimate-addons-for-gutenberg")}]}),("left"===be||"right"===be)&&React.createElement(Pi,{label:Object(r.__)("Stack on","ultimate-addons-for-gutenberg"),data:{value:ta,label:"stack"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: Choose on what breakpoint the Info Box will stack.","ultimate-addons-for-gutenberg")}),be&&"above-title"!==be&&"below-title"!==be&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:ve,label:"sourceAlign"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}]}),aa&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Select Source","ultimate-addons-for-gutenberg"),data:{value:he,label:"source_type"},options:[{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")}]}),!1!==aa&&"icon"===he&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:re,onChange:e=>t({icon:e})})),!1!==aa&&"image"===he&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);Rg=t}t({iconImage:e}),t({imageAlt:e.alt})}else t({iconImage:null});else t({iconImage:null})},backgroundImage:qt,onRemoveImage:()=>{t({iconImage:""})}}),React.createElement(Ss,{label:Object(r.__)("Alternate Text","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,dynamicContentType:"text",value:Gi,name:"imageAlt",setAttributes:t,data:{value:Gi,label:"imageAlt"}}),qt&&"null"!==qt.url&&""!==qt.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:Zt,label:"imageSize"},setAttributes:t,options:Rg}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:sa,label:"htmlTag"},setAttributes:t,options:[{value:"div",label:Object(r.__)("div","ultimate-addons-for-gutenberg")},{value:"header",label:Object(r.__)("header","ultimate-addons-for-gutenberg")},{value:"footer",label:Object(r.__)("footer","ultimate-addons-for-gutenberg")},{value:"main",label:Object(r.__)("main","ultimate-addons-for-gutenberg")},{value:"article",label:Object(r.__)("article","ultimate-addons-for-gutenberg")},{value:"section",label:Object(r.__)("section","ultimate-addons-for-gutenberg")},{value:"aside",label:Object(r.__)("aside","ultimate-addons-for-gutenberg")},{value:"nav",label:Object(r.__)("nav","ultimate-addons-for-gutenberg")}]}),(!1===aa||be&&("above-title"===be||"below-title"===be))&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:i,label:"headingAlign"},tablet:{value:o,label:"headingAlignTablet"},mobile:{value:n,label:"headingAlignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{checked:la,onChange:()=>t({showPrefix:!la}),label:Object(r.__)("Enable Prefix","ultimate-addons-for-gutenberg")}),la&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Prefix Tag","ultimate-addons-for-gutenberg"),data:{value:x,label:"prefixHeadingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")}]})),React.createElement(Le.ToggleControl,{checked:ia,onChange:()=>t({showTitle:!ia}),label:Object(r.__)("Enable Title","ultimate-addons-for-gutenberg")}),ia&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Title Tag","ultimate-addons-for-gutenberg"),data:{value:A,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]})),React.createElement(Le.ToggleControl,{checked:oa,onChange:()=>t({showDesc:!oa}),label:Object(r.__)("Enable Description","ultimate-addons-for-gutenberg")}),oa&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Ai,onChange:()=>t({enableMultilineParagraph:!Ai}),label:Object(r.__)("Enable Semantic Markup","ultimate-addons-for-gutenberg"),help:Ai?"":Object(r.__)("Use Core/Paragraph: Improve accessibility and SEO with semantic HTML markup. Note: Existing Rich Text content will not be preserved.","ultimate-addons-for-gutenberg")}))),React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:Te,label:"seperatorStyle"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")}]}),"none"!==Te&&React.createElement(Pi,{label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:_e,label:"seperatorPosition"},setAttributes:t,options:[{value:"after_icon",label:Object(r.__)("After Icon/Image","ultimate-addons-for-gutenberg")},{value:"after_prefix",label:Object(r.__)("After Prefix","ultimate-addons-for-gutenberg")},{value:"after_title",label:Object(r.__)("After Title","ultimate-addons-for-gutenberg")},{value:"after_desc",label:Object(r.__)("After Description","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:Ge,label:"ctaType"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"button",label:Object(r.__)("Button","ultimate-addons-for-gutenberg")},{value:"all",label:Object(r.__)("Complete Box","ultimate-addons-for-gutenberg")}]}),"button"===Ge&&React.createElement(React.Fragment,null,!xi&&React.createElement(Hr,{setAttributes:t,presets:Gg,presetInputType:"radioImage"})),"all"!==Ge&&"none"!==Ge&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:xi,onChange:()=>t({inheritFromTheme:!xi}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),xi&&"Astra"===Mi&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Me,label:"ctaButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Icon","ultimate-addons-for-gutenberg"),checked:He,onChange:()=>t({showCtaIcon:!He})}),He&&React.createElement(Mr,{label:Object(r.__)("Button Icon","ultimate-addons-for-gutenberg"),value:Fe,onChange:e=>t({ctaIcon:e})})),"none"!==Ge&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,name:"ctaLink",value:Ue,setAttributes:t,data:{value:Ue,label:"ctaLink"}}),React.createElement(Le.ToggleControl,{checked:Oe,onChange:()=>t({ctaTarget:!Oe}),label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg")})),He&&""!==Fe&&"all"!==Ge&&"none"!==Ge&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:ze,label:"ctaIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:De,label:"ctaIconSpace"},tablet:{value:Ne,label:"ctaIconSpaceTablet"},mobile:{value:Ie,label:"ctaIconSpaceMobile"}},min:-50,max:50,unit:{value:Ve,label:"ctaIconSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:t,presets:Ag,presetInputType:"radioImage"}))),React.createElement(il,Mg({},nl,{parentProps:e}),React.createElement(React.Fragment,null,(!1!==aa&&"icon"!==he&&qt&&"null"!==qt.url&&""!==qt.url||!1!==aa&&"icon"===he&&""!==re)&&React.createElement(je,{title:"Icon/Image",initialOpen:!0},React.createElement(React.Fragment,null,"icon"===he&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("View","ultimate-addons-for-gutenberg"),data:{value:Nl,label:"iconView"},setAttributes:t,options:[{value:"none",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"Stacked",label:Object(r.__)("Stacked","ultimate-addons-for-gutenberg")},{value:"Framed",label:Object(r.__)("Framed","ultimate-addons-for-gutenberg")}]}),"none"!==Nl&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Shape","ultimate-addons-for-gutenberg"),data:{value:Il,label:"iconShape"},setAttributes:t,options:[{value:"Circle",label:Object(r.__)("Circle","ultimate-addons-for-gutenberg")},{value:"Square",label:Object(r.__)("Square","ultimate-addons-for-gutenberg")}]})),"Framed"===Nl&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Set Border Width","ultimate-addons-for-gutenberg"),setAttributes:t,value:ql,data:{value:ql,label:"iconBorderWidth"},min:0,max:15,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]})),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:se||"",data:{value:se,label:"iconColor"},setAttributes:t}),"none"!==Nl&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Vl||"",data:{value:Vl,label:"iconBackgroundColor"},setAttributes:t}))),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:me||"",data:{value:me,label:"iconHover"},setAttributes:t}),"none"!==Nl&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Wl||"",data:{value:Wl,label:"iconBackgroundHoverColor"},setAttributes:t}))),disableBottomSeparator:!1}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:ce,label:"iconSize"},tablet:{value:pe,label:"iconSizeTablet"},mobile:{value:de,label:"iconSizeMobile"}},min:0,max:100,unit:{value:ue,label:"iconSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t})),"image"===he&&qt&&"null"!==qt.url&&""!==qt.url&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Jt,onChange:()=>t({imageWidthType:!Jt}),label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),help:Object(r.__)("Turn this off to inherit the natural width of Image.","ultimate-addons-for-gutenberg")}),Jt&&React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:$t,label:"imageWidth",unit:{value:Xt,label:"imageWidthUnit"}},tablet:{value:Kt,label:"imageWidthTablet",unit:{value:Qt,label:"imageWidthUnitTablet"}},mobile:{value:Yt,label:"imageWidthMobile",unit:{value:ea,label:"imageWidthUnitMobile"}}},min:0,limitMax:{px:500,"%":100,em:100},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),setAttributes:t,value:ye,data:{value:ye,label:"iconimgBorderRadius"},min:0,max:100,unit:{value:fe,label:"iconimgBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]})),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ut,label:"iconTopMargin"},valueRight:{value:Bt,label:"iconRightMargin"},valueBottom:{value:Et,label:"iconBottomMargin"},valueLeft:{value:Rt,label:"iconLeftMargin"},valueTopTablet:{value:Ot,label:"iconMarginTopTablet"},valueRightTablet:{value:Lt,label:"iconMarginRightTablet"},valueBottomTablet:{value:Ht,label:"iconMarginBottomTablet"},valueLeftTablet:{value:Ft,label:"iconMarginLeftTablet"},valueTopMobile:{value:jt,label:"iconMarginTopMobile"},valueRightMobile:{value:zt,label:"iconMarginRightMobile"},valueBottomMobile:{value:Dt,label:"iconMarginBottomMobile"},valueLeftMobile:{value:Nt,label:"iconMarginLeftMobile"},unit:{value:It,label:"iconMarginUnit"},mUnit:{value:Vt,label:"iconMobileMarginUnit"},tUnit:{value:Wt,label:"iconTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:na,label:"spacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]})))),la&&React.createElement(je,{title:"Prefix",initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"prefixColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:P,label:"prefixLoadGoogleFonts"},fontFamily:{value:f,label:"prefixFontFamily"},fontWeight:{value:h,label:"prefixFontWeight"},fontStyle:{value:v,label:"prefixFontStyle"},fontSizeType:{value:d,label:"prefixFontSizeType"},fontSizeTypeTablet:{value:g,label:"prefixFontSizeTypeTablet"},fontSizeTypeMobile:{value:b,label:"prefixFontSizeTypeMobile"},fontSize:{value:p,label:"prefixFontSize"},fontSizeMobile:{value:y,label:"prefixFontSizeMobile"},fontSizeTablet:{value:m,label:"prefixFontSizeTablet"},lineHeightType:{value:_,label:"prefixLineHeightType"},lineHeight:{value:T,label:"prefixLineHeight"},lineHeightMobile:{value:S,label:"prefixLineHeightMobile"},lineHeightTablet:{value:C,label:"prefixLineHeightTablet"},transform:{value:k,label:"prefixTransform"},decoration:{value:w,label:"prefixDecoration"},letterSpacing:{value:Ra,label:"prefixLetterSpacing"},letterSpacingTablet:{value:Ba,label:"prefixLetterSpacingTablet"},letterSpacingMobile:{value:Ua,label:"prefixLetterSpacingMobile"},letterSpacingType:{value:Ea,label:"prefixLetterSpacingType"}}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:ma,label:"prefixTopMargin"},valueRight:{value:ya,label:"prefixRightMargin"},valueBottom:{value:fa,label:"prefixSpace"},valueLeft:{value:ha,label:"prefixLeftMargin"},valueTopTablet:{value:va,label:"prefixMarginTopTablet"},valueRightTablet:{value:_a,label:"prefixMarginRightTablet"},valueBottomTablet:{value:Ta,label:"prefixTabletSpace"},valueLeftTablet:{value:Ca,label:"prefixMarginLeftTablet"},valueTopMobile:{value:Sa,label:"prefixMarginTopMobile"},valueRightMobile:{value:ka,label:"prefixMarginRightMobile"},valueBottomMobile:{value:wa,label:"prefixMobileSpace"},valueLeftMobile:{value:Pa,label:"prefixMarginLeftMobile"},unit:{value:xa,label:"prefixSpaceUnit"},mUnit:{value:Aa,label:"prefixMobileMarginUnit"},tUnit:{value:Ga,label:"prefixTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ma,label:"spacingPrefixLink"}})))),ia&&React.createElement(je,{title:"Title",initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"headingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:I,label:"headLoadGoogleFonts"},fontFamily:{value:O,label:"headFontFamily"},fontWeight:{value:L,label:"headFontWeight"},fontStyle:{value:H,label:"headFontStyle"},fontSizeType:{value:M,label:"headFontSizeType"},fontSizeTypeTablet:{value:B,label:"headFontSizeTypeTablet"},fontSizeTypeMobile:{value:R,label:"headFontSizeTypeMobile"},fontSize:{value:G,label:"headFontSize"},fontSizeMobile:{value:E,label:"headFontSizeMobile"},fontSizeTablet:{value:U,label:"headFontSizeTablet"},lineHeightType:{value:F,label:"headLineHeightType"},lineHeight:{value:z,label:"headLineHeight"},lineHeightMobile:{value:N,label:"headLineHeightMobile"},lineHeightTablet:{value:D,label:"headLineHeightTablet"},transform:{value:ca,label:"headTransform"},decoration:{value:ua,label:"headDecoration"},letterSpacing:{value:pa,label:"headLetterSpacing"},letterSpacingTablet:{value:da,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:ba,label:"headLetterSpacingMobile"},letterSpacingType:{value:ga,label:"headLetterSpacingType"}}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Oa,label:"headTopMargin"},valueRight:{value:La,label:"headRightMargin"},valueBottom:{value:Ha,label:"headSpace"},valueLeft:{value:Fa,label:"headLeftMargin"},valueTopTablet:{value:ja,label:"headMarginTopTablet"},valueRightTablet:{value:za,label:"headMarginRightTablet"},valueBottomTablet:{value:Da,label:"headTabletSpace"},valueLeftTablet:{value:Ia,label:"headMarginLeftTablet"},valueTopMobile:{value:Va,label:"headMarginTopMobile"},valueRightMobile:{value:Wa,label:"headMarginRightMobile"},valueBottomMobile:{value:qa,label:"headMobileSpace"},valueLeftMobile:{value:Za,label:"headMarginLeftMobile"},unit:{value:$a,label:"headSpaceUnit"},mUnit:{value:Ya,label:"headMobileMarginUnit"},tUnit:{value:Ka,label:"headTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ja,label:"spacingHeadLink"}}))),"none"!==Te&&React.createElement(je,{title:"Separator",initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"seperatorWidth"},tablet:{value:ke,label:"seperatorWidthTablet"},mobile:{value:we,label:"seperatorWidthMobile"}},min:0,max:"%"===ne?100:500,unit:{value:ne,label:"separatorWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:xe,data:{value:xe,label:"seperatorThickness"},min:0,max:10,unit:{value:Ae,label:"thicknessUnit"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Pe||"",data:{value:Pe,label:"seperatorColor"},setAttributes:t}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Xa,label:"separatorTopMargin"},valueRight:{value:el,label:"separatorRightMargin"},valueBottom:{value:al,label:"seperatorSpace"},valueLeft:{value:ll,label:"separatorLeftMargin"},valueTopTablet:{value:sl,label:"separatorMarginTopTablet"},valueRightTablet:{value:cl,label:"separatorMarginRightTablet"},valueBottomTablet:{value:ul,label:"seperatorTabletSpace"},valueLeftTablet:{value:pl,label:"separatorMarginLeftTablet"},valueTopMobile:{value:dl,label:"separatorMarginTopMobile"},valueRightMobile:{value:bl,label:"separatorMarginRightMobile"},valueBottomMobile:{value:gl,label:"seperatorMobileSpace"},valueLeftMobile:{value:ml,label:"separatorMarginLeftMobile"},unit:{value:yl,label:"seperatorSpaceUnit"},mUnit:{value:fl,label:"separatorMobileMarginUnit"},tUnit:{value:vl,label:"separatorTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:_l,label:"spacingSeparatorLink"}}))),oa&&React.createElement(je,{title:"Description",initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"subHeadingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:oe,label:"subHeadLoadGoogleFonts"},fontFamily:{value:K,label:"subHeadFontFamily"},fontWeight:{value:J,label:"subHeadFontWeight"},fontStyle:{value:X,label:"subHeadFontStyle"},fontSizeType:{value:W,label:"subHeadFontSizeType"},fontSizeTypeTablet:{value:Z,label:"subHeadFontSizeTypeTablet"},fontSizeTypeMobile:{value:q,label:"subHeadFontSizeTypeMobile"},fontSize:{value:V,label:"subHeadFontSize"},fontSizeMobile:{value:Y,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:$,label:"subHeadFontSizeTablet"},lineHeightType:{value:Q,label:"subHeadLineHeightType"},lineHeight:{value:ee,label:"subHeadLineHeight"},lineHeightMobile:{value:ae,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:te,label:"subHeadLineHeightTablet"},transform:{value:le,label:"subHeadTransform"},decoration:{value:ie,label:"subHeadDecoration"},letterSpacing:{value:Fl,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:jl,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:zl,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:Dl,label:"subHeadLetterSpacingType"}}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Tl,label:"subHeadTopMargin"},valueRight:{value:Cl,label:"subHeadRightMargin"},valueBottom:{value:Sl,label:"subHeadSpace"},valueLeft:{value:kl,label:"subHeadLeftMargin"},valueTopTablet:{value:wl,label:"subHeadMarginTopTablet"},valueRightTablet:{value:xl,label:"subHeadMarginRightTablet"},valueBottomTablet:{value:Al,label:"subHeadTabletSpace"},valueLeftTablet:{value:Gl,label:"subHeadMarginLeftTablet"},valueTopMobile:{value:Ml,label:"subHeadMarginTopMobile"},valueRightMobile:{value:Rl,label:"subHeadMarginRightMobile"},valueBottomMobile:{value:Bl,label:"subHeadMobileSpace"},valueLeftMobile:{value:Ul,label:"subHeadMarginLeftMobile"},unit:{value:El,label:"subHeadSpaceUnit"},mUnit:{value:Ol,label:"subHeadMobileMarginUnit"},tUnit:{value:Ll,label:"subHeadTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Hl,label:"spacingSubheadLink"}})))),"none"!==Ge&&"all"!==Ge&&!xi&&React.createElement(je,{title:"Call to Action",initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:pt,label:"ctaLoadGoogleFonts"},fontFamily:{value:et,label:"ctaFontFamily"},fontWeight:{value:tt,label:"ctaFontWeight"},fontStyle:{value:at,label:"ctaFontStyle"},fontSizeType:{value:Ze,label:"ctaFontSizeType"},fontSizeTypeTablet:{value:Ye,label:"ctaFontSizeTypeTablet"},fontSizeTypeMobile:{value:$e,label:"ctaFontSizeTypeMobile"},fontSize:{value:qe,label:"ctaFontSize"},fontSizeMobile:{value:Ke,label:"ctaFontSizeMobile"},fontSizeTablet:{value:Je,label:"ctaFontSizeTablet"},lineHeightType:{value:lt,label:"ctaLineHeightType"},lineHeight:{value:it,label:"ctaLineHeight"},lineHeightMobile:{value:ot,label:"ctaLineHeightMobile"},lineHeightTablet:{value:nt,label:"ctaLineHeightTablet"},transform:{value:Xe,label:"ctaTransform"},decoration:{value:Qe,label:"ctaDecoration"},letterSpacing:{value:st,label:"ctaLetterSpacing"},letterSpacingTablet:{value:ct,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:ut,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:rt,label:"ctaLetterSpacingType"}}),"text"===Ge&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:We||"",data:{value:We,label:"ctaLinkColor"},setAttributes:t}),hover:React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:bt||"",data:{value:bt,label:"ctaLinkHoverColor"},setAttributes:t}),disableBottomSeparator:!0}),"button"===Ge&&!xi&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Button Text Color","ultimate-addons-for-gutenberg"),colorValue:dt||"",data:{value:dt,label:"ctaBtnLinkColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Re,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===Re&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:mt||"",data:{value:mt,label:"ctaBgColor"},setAttributes:t}))),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Button Text Color","ultimate-addons-for-gutenberg"),colorValue:bt||"",data:{value:bt,label:"ctaLinkHoverColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Be,label:"ctaBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===Be&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:gt||"",data:{value:gt,label:"ctaBgHoverColor"},setAttributes:t})))}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:vt,label:"paddingBtnTop"},valueRight:{value:Ct,label:"paddingBtnRight"},valueBottom:{value:_t,label:"paddingBtnBottom"},valueLeft:{value:Tt,label:"paddingBtnLeft"},valueTopTablet:{value:St,label:"paddingBtnTopTablet"},valueRightTablet:{value:kt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:wt,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:Pt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:xt,label:"paddingBtnTopMobile"},valueRightMobile:{value:At,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Gt,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:Mt,label:"paddingBtnLeftMobile"},unit:{value:yt,label:"paddingBtnUnit"},mUnit:{value:ft,label:"mobilePaddingBtnUnit"},tUnit:{value:ht,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:ra,label:"paddingspacingLink"}})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:t,prefix:"btn",attributes:a,deviceType:l,disableBottomSeparator:!0}))))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:t,prefix:"infobox",attributes:a,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ui,label:"blockTopPadding"},valueRight:{value:pi,label:"blockRightPadding"},valueBottom:{value:bi,label:"blockBottomPadding"},valueLeft:{value:di,label:"blockLeftPadding"},valueTopTablet:{value:gi,label:"blockTopPaddingTablet"},valueRightTablet:{value:mi,label:"blockRightPaddingTablet"},valueBottomTablet:{value:fi,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:yi,label:"blockLeftPaddingTablet"},valueTopMobile:{value:hi,label:"blockTopPaddingMobile"},valueRightMobile:{value:vi,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Ti,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:_i,label:"blockLeftPaddingMobile"},unit:{value:Ci,label:"blockPaddingUnit"},mUnit:{value:ki,label:"blockPaddingUnitMobile"},tUnit:{value:Si,label:"blockPaddingUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:wi,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Zl,label:"blockTopMargin"},valueRight:{value:$l,label:"blockRightMargin"},valueBottom:{value:Jl,label:"blockBottomMargin"},valueLeft:{value:Kl,label:"blockLeftMargin"},valueTopTablet:{value:Xl,label:"blockTopMarginTablet"},valueRightTablet:{value:Ql,label:"blockRightMarginTablet"},valueBottomTablet:{value:ti,label:"blockBottomMarginTablet"},valueLeftTablet:{value:ei,label:"blockLeftMarginTablet"},valueTopMobile:{value:ai,label:"blockTopMarginMobile"},valueRightMobile:{value:li,label:"blockRightMarginMobile"},valueBottomMobile:{value:oi,label:"blockBottomMarginMobile"},valueLeftMobile:{value:ii,label:"blockLeftMarginMobile"},unit:{value:ni,label:"blockMarginUnit"},mUnit:{value:si,label:"blockMarginUnitMobile"},tUnit:{value:ri,label:"blockMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:ci,label:"blockMarginLink"}}))),React.createElement(il,Mg({},rl,{parentProps:e}),Ds(wg,t,a)))))}),Ug=function(e){let t="";return t+=" ",t+="uagb-infobox-icon-"+e.iconimgPosition+" ","left"!==e.iconimgPosition&&"left-title"!==e.iconimgPosition||(t+="uagb-infobox-left "),"right"!==e.iconimgPosition&&"right-title"!==e.iconimgPosition||(t+="uagb-infobox-right "),"left"!==e.iconimgPosition&&"right"!==e.iconimgPosition||"none"===e.stack||(t+="uagb-infobox-stacked-"+e.stack+" ","right"===e.iconimgPosition&&(t+="uagb-infobox-reverse-order-"+e.stack+" ")),"above-title"===e.iconimgPosition&&"below-title"===e.iconimgPosition||(t+="uagb-infobox-image-valign-"+e.sourceAlign+" "),[t]},Eg=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasTitleDC:s}=e;let{infoBoxTitle:c}=t;if("not_set"===a)return React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:c,className:"uagb-ifb-title"});let u=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(u=["uagb/dynamic-content"],c=e)}return React.createElement(ge.RichText,{tagName:t.headingTag,placeholder:Object(r.__)("Write a Title","ultimate-addons-for-gutenberg"),value:c,className:"uagb-ifb-title",onChange:e=>a({infoBoxTitle:e}),multiline:!1,onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:u})},Og=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasDescriptionDC:s}=e;let{headingDesc:c,enableMultilineParagraph:u}=t;const p={allowedBlocks:["core/paragraph"],template:[["core/paragraph",{content:c}]],templateLock:!1,renderAppender:!1},d=Object(ge.useInnerBlocksProps)({className:"uagb-ifb-desc"},p);if("not_set"===a&&!u)return React.createElement(ge.RichText.Content,{tagName:"p",value:c,className:"uagb-ifb-desc"});let b=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(b=["uagb/dynamic-content"],c=e)}const g=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{tagName:"p",value:c,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-ifb-desc",onChange:e=>a({headingDesc:e,tempHeadingDesc:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:b}));return React.createElement(React.Fragment,null,u?React.createElement("div",d):g)},Lg=e=>{var t,a,l,i,o,n;const{attributes:s,setAttributes:c="not_set"}=e,u=s.inheritFromTheme&&"secondary"===s.ctaButtonType,p=u?{borderWidth:"revert-layer"}:{},d="uagb-infobox-cta-link "+(u?"ast-outline-button":"wp-block-button__link"),b=u?"div":"a";let g="_self";const m="noopener noreferrer";s.ctaTarget&&(g="_blank");let y="";s.showCtaIcon&&""!==s.ctaIcon&&(y=Ce(s.ctaIcon,c));const f=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{c({ctaText:e})},allowedFormats:[]}),"after"===s.ctaIconPosition&&y);if("not_set"!==c)return React.createElement("div",{className:"uagb-ifb-cta"},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","uagb-ifb-button-type-text","wp-block-button")},React.createElement(b,{target:g,className:Be()(d),rel:m,style:p},f)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement("a",{target:g,className:Be()("uagb-infobox-cta-link"),rel:m},f),"button"===s.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement(b,{className:d,target:g,rel:m,style:p},f)));const h=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText.Content,{tagName:"span",value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===s.ctaIconPosition&&y);return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","text"===s.ctaType&&s.inheritFromTheme?"uagb-ifb-button-type-text":"","wp-block-button")},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(t=s.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?"return true;":"return false;",className:d,rel:m,style:p},h)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(l=s.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable?"return true;":"return false;",className:"uagb-infobox-cta-link",rel:m},h)),"button"===s.ctaType&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",className:d,target:g,rel:m,style:p,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(o=s.dynamicContent)&&void 0!==o&&null!==(n=o.ctaLink)&&void 0!==n&&n.enable?"return true;":"return false;"},h))))};function Hg(){return React.createElement("div",{className:"uagb-ifb-separator"})}var Fg,jg=e=>{const{attributes:t,setAttributes:a}=e,{iconView:l,iconShape:i}=t;return React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-icon-wrap"},"none"===l?React.createElement(React.Fragment,null,Ce(t.icon,a)):React.createElement(React.Fragment,null,React.createElement("div",{className:"none"===l?"uagb-iconbox-icon-wrap":"Circle"===i?"uagb-iconbox-icon-wrap uagb-infobox-shape-circle":"uagb-iconbox-icon-wrap uagb-infobox-shape-squre"},Ce(t.icon,a)))))},zg=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize,{imgTagWidth:o,imgTagHeight:n,imageWidth:r,imageWidthType:s}=t;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{src:l,alt:t.imageAlt,width:s?r:o,height:n,loading:"lazy",style:{display:l?void 0:"none"}})))}return null},Dg=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasPrefixTitleDC:s}=e;let{prefixTitle:c}=t;if("not_set"===a)return React.createElement(ge.RichText.Content,{tagName:t.prefixHeadingTag,value:c,className:"uagb-ifb-title-prefix"});let u=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(u=["uagb/dynamic-content"],c=e)}return React.createElement(ge.RichText,{tagName:t.prefixHeadingTag,value:c,placeholder:Object(r.__)("Write a Prefix","ultimate-addons-for-gutenberg"),className:"uagb-ifb-title-prefix",multiline:!1,onChange:e=>{a({prefixTitle:e})},onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:u})},Ng=a(104),Ig=0,Vg={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Wg={};Wg.locals=Ng.a.locals||{},Wg.use=function(){return Ig++||(Fg=we()(Ng.a,Vg)),Wg},Wg.unuse=function(){Ig>0&&!--Ig&&(Fg(),Fg=null)};var qg=Wg,Zg=async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const l=new Image;l.addEventListener("load",(function(){const e="height"===(null==a?void 0:a.type)?parseInt(a.value*(null==this?void 0:this.naturalWidth)/(null==this?void 0:this.naturalHeight)):null==this?void 0:this.naturalWidth,l="width"===(null==a?void 0:a.type)?parseInt(a.value*(null==this?void 0:this.naturalHeight)/(null==this?void 0:this.naturalWidth)):null==this?void 0:this.naturalHeight;t({imgTagHeight:isNaN(l)&&null!==a?null==a?void 0:a.value:l}),t({imgTagWidth:isNaN(e)&&null!==a?null==a?void 0:a.value:e})})),l.src=e},$g=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(qg.use(),()=>{qg.unuse()}),[]);const{attributes:t,setAttributes:a,deviceType:l}=e,{icon:i,iconimgPosition:o,source_type:n,seperatorPosition:r,seperatorStyle:s,ctaType:c,showPrefix:u,showTitle:p,showDesc:d,block_id:b,imageWidthType:g,imageWidth:m,blockBottomMargin:y,blockLeftMargin:f,blockRightMargin:h,blockTopMargin:v,blockBottomMarginTablet:_,blockLeftMarginTablet:T,blockRightMarginTablet:C,blockTopMarginTablet:S,blockBottomMarginMobile:k,blockLeftMarginMobile:w,blockRightMarginMobile:P,blockTopMarginMobile:x,htmlTag:A}=t;let G="";G="icon"===n&&""!==i?React.createElement(jg,{attributes:t,setAttributes:a}):React.createElement(zg,{attributes:t});const M=[y,f,h,v,_,T,C,S,k,w,P,x].some(e=>"number"==typeof e),R=A||"div";let U=G,E=r;const O=React.createElement(Hg,{attributes:t});let L=!0,H="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(H=t.iconImage.url);let F="";if(""!==H){const e=t.iconImage.sizes,a=t.imageSize;F=void 0!==e&&void 0!==e[a]?e[a].url:H}Object(B.useEffect)(()=>{g?Zg(F,a,{type:"width",value:m}):Zg(F,a)},[F,m,g]),"after_icon"!==E||"above-title"!==o&&"below-title"!==o||(L=!1,U=React.createElement(React.Fragment,null,G,"none"!==s&&O)),"after_icon"!==E||"left-title"!==o&&"right-title"!==o&&"left"!==o&&"right"!==o||(E="after_title"),"below-title"===o&&"after_title"===E&&(L=!1,U=React.createElement(React.Fragment,null,"none"!==s&&O,G));const j=React.createElement(React.Fragment,null,"none"!==s&&"after_title"===E&&L&&O,d&&React.createElement(Og,e),"none"!==s&&"after_desc"===E&&O,"none"!==c&&React.createElement(Lg,{attributes:t,setAttributes:a})),z=React.createElement("div",{className:"uagb-ifb-title-wrap"},u&&React.createElement(Dg,e),"none"!==s&&"after_prefix"===E&&O,p&&React.createElement(Eg,e)),D=React.createElement(React.Fragment,null,"left"===o&&U,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===o&&U,("above-title"===o||"below-title"===o)&&z,"below-title"===o&&U,("above-title"===o||"below-title"===o)&&j,"left-title"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},U,z),j),"right-title"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},z,U),j),("left"===o||"right"===o)&&React.createElement(React.Fragment,null,z,j)),"right"===o&&U),N=React.createElement(React.Fragment,null,"all"===c&&React.createElement("a",{className:"uagb-infobox-link-wrap uagb-infbox__link-to-all","aria-label":"Infobox Link",rel:"noopener noreferrer",href:"/"}),D);return React.createElement(R,{className:Z(["uagb-block-"+b,"uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-infobox__content-wrap","all"===c?" uagb-infobox_cta-type-all":"",...Ug(t),M?"wp-block-uagb-info-box--has-margin":""])},M?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},N):React.createElement(React.Fragment,null,N))}),Yg=Object(L.compose)(ls,fe,(function(e){return t=>{var a,l;const{attributes:i,context:o}=t,n=null==i||null===(a=i.dynamicContent)||void 0===a||null===(l=a.bgImage)||void 0===l?void 0:l.enable,r=""!==i.headingDesc&&-1!==i.headingDesc.indexOf('{const{setAttributes:t,isSelected:a,attributes:l,attributes:{ctaBorderStyle:i,ctaBorderWidth:o,ctaBorderRadius:n,ctaBorderColor:r,ctaBorderhoverColor:s,ctaBgType:c,ctaBgHoverType:u,showCtaIcon:p,UAGHideDesktop:d,UAGHideTab:b,UAGHideMob:g,globalBlockStyleId:m,enableMultilineParagraph:y,tempHeadingDesc:f},name:h,clientId:v,deviceType:_,context:T,hasDynamicImg:C,hasDescriptionDC:S,hasPrefixTitleDC:k,hasTitleDC:w}=e;Object(B.useEffect)(()=>{m||(void 0===c&&t({ctaBgType:"color"}),void 0===u&&t({ctaBgHoverType:"color"}),void 0===p&&t({showCtaIcon:!0}),y&&t({headingDesc:f}),(o||n||r||s||i)&&ue("btn",{label:"ctaBorderWidth",value:o},{label:"ctaBorderRadius",value:n},{label:"ctaBorderColor",value:r},{label:"ctaBorderhoverColor",value:s},{label:"ctaBorderStyle",value:i},t,l))},[]),Object(B.useEffect)(()=>{var e;!(C||S||k||w)||null!=l&&null!==(e=l.context)&&void 0!==e&&e.postId||t(e=>({...e,context:T}))},[C,S,k,w,null==T?void 0:T.postId]),Object(B.useEffect)(()=>{he(e)},[d,b,g,_]);const P=Object(B.useMemo)(()=>wg(l,v,h,_),[l,_]);return Object(B.useEffect)(()=>{ys()},[_]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:P}),React.createElement(Pg,{attributes:l}),a&&React.createElement(Bg,e),React.createElement($g,e))}),Kg=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasDescriptionDC:s}=e;let{headingDesc:c}=t;if("not_set"===a)return React.createElement(ge.RichText.Content,{tagName:"p",value:c,className:"uagb-ifb-desc"});let u=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(u=["uagb/dynamic-content"],c=e)}return React.createElement(ge.RichText,{tagName:"p",value:c,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-ifb-desc",onChange:e=>a({headingDesc:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:u})},Jg=e=>{const{attributes:t}=e;return React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-icon-wrap"},React.createElement("span",{className:"uagb-ifb-icon"},React.createElement("span",{className:t.icon}))))},Xg=e=>{const{attributes:t}=e;return React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-icon-wrap"},React.createElement("span",{className:"uagb-ifb-icon"},kb(t.icon))))},Qg=function(e){let t="uagb-infobox-has-image";"icon"===e.source_type&&(t="uagb-infobox-has-icon");let a="";return a+="uagb-infobox ",a+=t+" ",a+="uagb-infobox-icon-"+e.iconimgPosition+" ","left"!==e.iconimgPosition&&"left-title"!==e.iconimgPosition||(a+="uagb-infobox-left "),"right"!==e.iconimgPosition&&"right-title"!==e.iconimgPosition||(a+="uagb-infobox-right "),"left"!==e.iconimgPosition&&"right"!==e.iconimgPosition||"none"===e.stack||(a+="uagb-infobox-stacked-"+e.stack+" ","right"===e.iconimgPosition&&(a+="uagb-infobox-reverse-order-"+e.stack+" ")),"above-title"===e.iconimgPosition&&"below-title"===e.iconimgPosition||(a+="uagb-infobox-image-valign-"+e.sourceAlign+" "),e.enableBorder&&(a+="uagb-infobox-enable-border "),a+="uagb-infobox-enable-border-radius ",[a]};function em(){return React.createElement("div",{className:"uagb-ifb-separator-parent"},React.createElement("div",{className:"uagb-ifb-separator"}))}var tm=e=>{const{attributes:t}=e;let a="_self";const l="noopener noreferrer";t.ctaTarget&&(a="_blank");let i="";return""!==t.ctaIcon&&(i=React.createElement("span",{className:Be()(`uagb-ifb-${t.ctaType}-icon`,"uagb-ifb-align-icon-"+t.ctaIconPosition)},React.createElement("i",{className:t.ctaIcon}))),React.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:a,className:"uagb-infobox-cta-link",rel:l},"before"===t.ctaIconPosition&&i,React.createElement("span",{className:"uagb-inline-editing"},t.ctaText),"after"===t.ctaIconPosition&&i),"button"===t.ctaType&&React.createElement("div",{className:"uagb-ifb-button-wrapper"},React.createElement("a",{href:t.ctaLink,className:"uagb-infobox-cta-link uagb-ifb-cta-button",target:a,rel:l},i,React.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},React.createElement("span",{className:"uagb-inline-editing "},t.ctaText)))))},am=e=>{const{attributes:t,setAttributes:a="not_set"}=e;let l="uagb-infobox-cta-link uagb-ifb-cta-button";t.inheritFromTheme&&(l="wp-block-button__link");let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return""!==t.ctaIcon&&(n=React.createElement("span",{className:Be()(`uagb-ifb-${t.ctaType}-icon`,"uagb-ifb-align-icon-"+t.ctaIconPosition)},kb(t.ctaIcon))),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===t.ctaType&&React.createElement("a",{target:i,className:"uagb-infobox-cta-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement("span",{className:"uagb-inline-editing"},t.ctaText),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper",t.inheritFromTheme?"wp-block-button":null)},React.createElement("a",{className:l,target:i,rel:o},n,React.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},React.createElement("span",{className:"uagb-inline-editing "},t.ctaText))))):React.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,className:"uagb-infobox-cta-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement("span",{className:"uagb-inline-editing"},t.ctaText),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper",t.inheritFromTheme?"wp-block-button":null)},React.createElement("a",{href:t.ctaLink,className:l,target:i,rel:o,alt:""},n,React.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},React.createElement("span",{className:"uagb-inline-editing "},t.ctaText)))))},lm=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-image"},React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{className:"",src:l,alt:t.iconImage.alt}))))}return null},im=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-image"},React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{className:"uagb-ifb-img-src",src:l,alt:t.iconImage.alt}))))}return null},om={inheritFromTheme:{type:"boolean",default:!0},prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:"Prefix"},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Info Box"},headingDesc:{source:"html",selector:"p",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."},headingAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,UAGCopyPaste:{styleType:"icon-size"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-font"}},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaText:{type:"html",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string"},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},iconLeftMargin:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:"yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:""},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"number",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"number",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"number",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"number",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"number",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,UAGCopyPaste:{styleType:"icon-border-width"}},...ce("btn")},nm=e=>{const{attributes:t,setAttributes:a="not_set"}=e,l="uagb-infobox-cta-link wp-block-button__link";let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return""!==t.ctaIcon&&(n=Ce(t.ctaIcon)),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta"},"text"===t.ctaType&&React.createElement("a",{target:i,className:"uagb-infobox-cta-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText,className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})}}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:l,target:i,rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText,className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})}}),"after"===t.ctaIconPosition&&n))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,className:"uagb-infobox-cta-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText,className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("a",{href:t.ctaLink,className:l,target:i,rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText,className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n)))},rm=e=>{const{attributes:t,setAttributes:a="not_set"}=e,l="uagb-infobox-cta-link wp-block-button__link";let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return t.showCtaIcon&&""!==t.ctaIcon&&(n=Ce(t.ctaIcon,a)),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta"},"text"===t.ctaType&&React.createElement("a",{target:i,className:t.ctaLink?"uagb-infobox-cta-link":"uagb-infobox-cta-link uagb-disable-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:t.ctaLink?l:l+" uagb-disable-link",target:i,rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,className:t.ctaLink?"uagb-infobox-cta-link":"uagb-infobox-cta-link uagb-disable-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("a",{href:t.ctaLink,className:t.ctaLink?l:l+" uagb-disable-link",target:i,rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n)))},sm=e=>{const{attributes:t,setAttributes:a="not_set"}=e,l="uagb-infobox-cta-link wp-block-button__link";let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return t.showCtaIcon&&""!==t.ctaIcon&&(n=Ce(t.ctaIcon,a)),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta"},"text"===t.ctaType&&React.createElement("a",{target:i,className:"uagb-infobox-cta-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:l,target:i,rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,onClick:""===t.ctaLink||"#"===t.ctaLink?"return false;":"return true;",className:"uagb-infobox-cta-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("a",{href:t.ctaLink,className:l,target:i,rel:o,onClick:""===t.ctaLink||"#"===t.ctaLink?"return false;":"return true;",alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n)))},cm=e=>{var t,a,l,i;const{attributes:o,setAttributes:n="not_set"}=e,s="uagb-infobox-cta-link wp-block-button__link";let c="_self";const u="noopener noreferrer";o.ctaTarget&&(c="_blank");let p="";return o.showCtaIcon&&""!==o.ctaIcon&&(p=Ce(o.ctaIcon,n)),"not_set"!==n?React.createElement("div",{className:"uagb-ifb-cta"},"text"===o.ctaType&&React.createElement("a",{target:c,className:"uagb-infobox-cta-link",rel:u},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{n({ctaText:e})},allowedFormats:[]}),"after"===o.ctaIconPosition&&p),"button"===o.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:s,target:c,rel:u},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{n({ctaText:e})},allowedFormats:[]}),"after"===o.ctaIconPosition&&p))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===o.ctaType&&React.createElement("a",{href:o.ctaLink||"#",target:c,onClick:""!==o.ctaLink&&"#"!==o.ctaLink||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?"return true;":"return false;",className:"uagb-infobox-cta-link",rel:u,alt:""},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText.Content,{tagName:"span",value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===o.ctaIconPosition&&p),"button"===o.ctaType&&React.createElement("a",{href:o.ctaLink||"#",className:s,target:c,rel:u,onClick:""!==o.ctaLink&&"#"!==o.ctaLink||null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable?"return true;":"return false;",alt:""},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText.Content,{tagName:"span",value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===o.ctaIconPosition&&p)))};const um="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",pm=ce("btn");var dm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-font"}},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string"},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},iconLeftMargin:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:um},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...pm};const bm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",gm=ce("btn");var mm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBtnVertPadding:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:bm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...gm};const ym="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",fm=ce("btn");var hm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBtnVertPadding:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:ym},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...fm};const vm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",_m=ce("btn");var Tm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBtnVertPadding:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:vm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},..._m};const Cm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",Sm=ce("btn");var km={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},htmlTag:{type:"string",default:"div"},ctaType:{type:"string",default:"none"},ctaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"cta-btn-type"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:Cm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...Sm};const wm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",Pm=ce("btn");var xm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},tempHeadingDesc:{type:"string",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},enableMultilineParagraph:{type:"boolean",default:!1},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},htmlTag:{type:"string",default:"div"},ctaType:{type:"string",default:"none"},ctaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"cta-btn-type"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:wm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...Pm},Am=e=>{var t,a,l,i,o,n;const{attributes:s,setAttributes:c="not_set"}=e,u=s.inheritFromTheme&&"secondary"===s.ctaButtonType,p=u?{borderWidth:"revert-layer"}:{},d="uagb-infobox-cta-link "+(u?"ast-outline-button":"wp-block-button__link"),b=u?"div":"a";let g="_self";const m="noopener noreferrer";s.ctaTarget&&(g="_blank");let y="";s.showCtaIcon&&""!==s.ctaIcon&&(y=Ce(s.ctaIcon,c));const f=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{c({ctaText:e})},allowedFormats:[]}),"after"===s.ctaIconPosition&&y);if("not_set"!==c)return React.createElement("div",{className:"uagb-ifb-cta"},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","uagb-ifb-button-type-text","wp-block-button")},React.createElement(b,{target:g,className:Be()(d),rel:m,style:p},f)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement("a",{target:g,className:Be()("uagb-infobox-cta-link"),rel:m},f),"button"===s.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement(b,{className:d,target:g,rel:m,style:p},f)));const h=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText.Content,{tagName:"span",value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===s.ctaIconPosition&&y);return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","text"===s.ctaType&&s.inheritFromTheme?"uagb-ifb-button-type-text":"","wp-block-button")},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(t=s.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?"return true;":"return false;",className:d,rel:m,style:p,alt:""},h)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(l=s.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable?"return true;":"return false;",className:"uagb-infobox-cta-link",rel:m,alt:""},h)),"button"===s.ctaType&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",className:d,target:g,rel:m,style:p,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(o=s.dynamicContent)&&void 0!==o&&null!==(n=o.ctaLink)&&void 0!==n&&n.enable?"return true;":"return false;",alt:""},h))))},Gm=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize,{imgTagWidth:o,imgTagHeight:n,imageWidth:r,imageWidthType:s}=t;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{src:l,alt:t.iconImage.alt,width:s?r:o,height:n,loading:"lazy"})))}return null},Mm=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{src:l,alt:t.iconImage.alt})))}return null};const Rm={inheritFromTheme:{type:"boolean",default:!1},prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:"Prefix"},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Info Box"},headingDesc:{source:"html",selector:"p",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."},headingAlign:{type:"string",default:"center"},headingColor:{type:"string"},subHeadingColor:{type:"string"},prefixColor:{type:"string"},icon:{type:"string",default:"fa fa-star"},iconimgPosition:{type:"string",default:"above-title"},iconSize:{type:"number",default:40},iconHover:{type:"string",default:""},iconSizeType:{type:"String",default:"px"},prefixFontSizeType:{type:"string",default:"px"},headFontSizeType:{type:"string",default:"px"},subHeadFontSizeType:{type:"string",default:"px"},ctaIconSpaceType:{type:"string",default:"px"},thicknessUnit:{type:"string",default:"px"},ctaFontSizeType:{type:"string",default:"px"},iconMarginUnit:{type:"string",default:"px"},iconMobilePaddingUnit:{type:"string",default:"px"},iconTabletPaddingUnit:{type:"string",default:"px"},paddingBtnUnit:{type:"string",default:"px"},mobilePaddingBtnUnit:{type:"string",default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px"},prefixSpaceUnit:{type:"string",default:"px"},headSpaceUnit:{type:"string",default:"px"},seperatorSpaceUnit:{type:"string",default:"px"},subHeadSpaceUnit:{type:"string",default:"px"},imageWidthUnit:{type:"string",default:"px"},iconimgBorderRadiusUnit:{type:"string",default:"px"},iconBgHover:{type:"string",default:""},iconColor:{type:"string",default:"#333"},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number"},prefixFontSizeType:{type:"string",default:"px"},prefixFontSizeTablet:{type:"number"},prefixFontSizeMobile:{type:"number"},prefixFontFamily:{type:"string",default:"Default"},prefixFontWeight:{type:"string"},prefixFontSubset:{type:"string"},prefixLineHeightType:{type:"string",default:"em"},prefixLineHeight:{type:"number"},prefixLineHeightTablet:{type:"number"},prefixLineHeightMobile:{type:"number"},prefixLoadGoogleFonts:{type:"boolean",default:!1},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number"},headFontSizeType:{type:"string",default:"px"},headFontSizeTablet:{type:"number"},headFontSizeMobile:{type:"number"},headFontFamily:{type:"string",default:"Default"},headFontWeight:{type:"string"},headFontSubset:{type:"string"},headLineHeightType:{type:"string",default:"em"},headLineHeight:{type:"number"},headLineHeightTablet:{type:"number"},headLineHeightMobile:{type:"number"},headLoadGoogleFonts:{type:"boolean",default:!1},subHeadFontSize:{type:"number"},subHeadFontSizeType:{type:"string",default:"px"},subHeadFontSizeTablet:{type:"number"},subHeadFontSizeMobile:{type:"number"},subHeadFontFamily:{type:"string",default:"Default"},subHeadFontWeight:{type:"string"},subHeadFontSubset:{type:"string"},subHeadLineHeightType:{type:"string",default:"em"},subHeadLineHeight:{type:"number"},subHeadLineHeightTablet:{type:"number"},subHeadLineHeightMobile:{type:"number"},subHeadLoadGoogleFonts:{type:"boolean",default:!1},headSpace:{type:"number",default:10},subHeadSpace:{type:"number",default:10},seperatorSpace:{type:"number",default:10},iconimgBorderRadius:{type:"number",default:0},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5},seperatorPosition:{type:"string",default:"after_title"},seperatorStyle:{type:"string",default:"solid"},seperatorColor:{type:"string",default:"#333"},seperatorWidth:{type:"number",default:30},separatorWidthType:{type:"string",default:"%"},seperatorThickness:{type:"number",default:2},ctaType:{type:"string",default:"none"},ctaText:{type:"html",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaLinkColor:{type:"string",default:"#333"},ctaFontSize:{type:"number"},ctaFontSizeType:{type:"string",default:"px"},ctaFontSizeMobile:{type:"number"},ctaFontSizeTablet:{type:"number"},ctaFontFamily:{type:"string",default:"Default"},ctaFontWeight:{type:"string"},ctaFontSubset:{type:"string"},ctaLoadGoogleFonts:{type:"boolean",default:!1},ctaBtnLinkColor:{type:"string",default:"#333"},ctaLinkHoverColor:{type:"string",default:""},ctaBgColor:{type:"string",default:"transparent"},ctaBgHoverColor:{type:"string",default:"transparent"},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10},ctaBtnHrPadding:{type:"number",default:14},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},prefixSpace:{type:"number",default:5},iconLeftMargin:{type:"number",default:10},iconRightMargin:{type:"number",default:10},iconTopMargin:{type:"number",default:5},iconBottomMargin:{type:"number",default:5},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",default:120},imageWidthType:{type:"boolean",default:!0},stack:{type:"string",default:"tablet"},showIcon:{type:"boolean",default:!0},showPrefix:{type:"boolean",default:!0},showTitle:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconView:{type:"string",default:"none"},...ce("btn")};var Bm=[{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c}=e.attributes;let u="";u="icon"===l?React.createElement(Jg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});const p=React.createElement(React.Fragment,null,"none"!==i&&React.createElement(em,{attributes:e.attributes}),React.createElement("div",{className:"uagb-ifb-text-wrap"},React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),React.createElement(tm,{attributes:e.attributes}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),b=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&u,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&u,("above-title"==t||"below-title"==t)&&d,"below-title"==t&&u,("above-title"==t||"below-title"==t)&&p,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},u,d),p),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},d,u),p),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,d,p)),"right"==t&&u)));let g="";return s&&(g="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap",target:g,rel:"noopener noreferrer"}," ",b)),"all"!==n&&b))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y}=e.attributes;let f="";f="icon"===l&&""!==y?React.createElement(Jg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});const h=React.createElement(React.Fragment,null,"none"!==i&&React.createElement(em,{attributes:e.attributes}),React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==n&&React.createElement(tm,{attributes:e.attributes}))),v=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),_=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&f,("above-title"==t||"below-title"==t)&&v,"below-title"==t&&f,("above-title"==t||"below-title"==t)&&h,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,v),h),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},v,f),h),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,v,h)),"right"==t&&f)));let T="";return s&&(T="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap",target:T,rel:"noopener noreferrer"}," ",_)),"all"!==n&&_))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y}=e.attributes;let f="";f="icon"===l&&""!==y?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});const h=React.createElement(React.Fragment,null,"none"!==i&&React.createElement(em,{attributes:e.attributes}),React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==n&&React.createElement(am,{attributes:e.attributes}))),v=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),_=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&f,("above-title"==t||"below-title"==t)&&v,"below-title"==t&&f,("above-title"==t||"below-title"==t)&&h,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,v),h),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},v,f),h),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,v,h)),"right"==t&&f)));let T="";return s&&(T="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap",target:T,rel:"noopener noreferrer"}," ",_)),"all"!==n&&_))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y,seperatorPosition:f}=e.attributes;let h="";h="icon"===l&&""!==y?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let v=h,_=f;const T=React.createElement(em,{attributes:e.attributes});let C=!0;"after_icon"!=f||"above-title"!=t&&"below-title"!=t||(C=!1,v=React.createElement(React.Fragment,null,h,"none"!==i&&T)),"after_icon"!=f||"above-title"===t&&"below-title"===t||(_="after_title"),"below-title"==t&&"after_title"==f&&(C=!1,v=React.createElement(React.Fragment,null,"none"!==i&&T,h));const S=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==_&&C&&T,React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==_&&T,"none"!==n&&React.createElement(am,{attributes:e.attributes}))),k=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==_&&T,g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),w=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==n?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&v,("above-title"==t||"below-title"==t)&&k,"below-title"==t&&v,("above-title"==t||"below-title"==t)&&S,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},v,k),S),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},k,v),S),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,k,S)),"right"==t&&v)));let P="";return s&&(P="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:P,rel:"noopener noreferrer"}),w),"all"!==n&&w))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y,seperatorPosition:f}=e.attributes;let h="";h="icon"===l&&""!==y?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let v=h,_=f;const T=React.createElement(em,{attributes:e.attributes});let C=!0;"after_icon"!=f||"above-title"!=t&&"below-title"!=t||(C=!1,v=React.createElement(React.Fragment,null,h,"none"!==i&&T)),"after_icon"!=f||"above-title"===t&&"below-title"===t||(_="after_title"),"below-title"==t&&"after_title"==f&&(C=!1,v=React.createElement(React.Fragment,null,"none"!==i&&T,h));const S=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==_&&C&&T,React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==_&&T,"none"!==n&&React.createElement(am,{attributes:e.attributes}))),k=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==_&&T,g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),w=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==n?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&v,("above-title"==t||"below-title"==t)&&k,"below-title"==t&&v,("above-title"==t||"below-title"==t)&&S,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},v,k),S),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},k,v),S),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,k,S)),"right"==t&&v)));let P="";return s&&(P="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:P,rel:"noopener noreferrer"}),w),"all"!==n&&w))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,className:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=e.attributes;let f="";f="icon"===l&&""!==m?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let h=f,v=y;const _=React.createElement(em,{attributes:e.attributes});let T=!0;"after_icon"!=y||"above-title"!=t&&"below-title"!=t||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==i&&_)),"after_icon"!=y||"above-title"===t&&"below-title"===t||(v="after_title"),"below-title"==t&&"after_title"==y&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==i&&_,f));const C=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==v&&T&&_,React.createElement("div",{className:"uagb-ifb-text-wrap"},g&&""!==p&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==v&&_,"none"!==o&&React.createElement(am,{attributes:e.attributes}))),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==v&&_,b&&""!==u&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),k=React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==o?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&h,("above-title"==t||"below-title"==t)&&S,"below-title"==t&&h,("above-title"==t||"below-title"==t)&&C,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,S,C)),"right"==t&&h));let w="";return r&&(w="_blank"),React.createElement("div",{className:Be()(s,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"==o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),k)}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,className:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=e.attributes;let f="";f="icon"===l&&""!==m?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let h=f,v=y;const _=React.createElement(em,{attributes:e.attributes});let T=!0;"after_icon"!=y||"above-title"!=t&&"below-title"!=t||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==i&&_)),"after_icon"!=y||"above-title"===t&&"below-title"===t||(v="after_title"),"below-title"==t&&"after_title"==y&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==i&&_,f));const C=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==v&&T&&_,React.createElement("div",{className:"uagb-ifb-text-wrap"},g&&""!==p&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==v&&_,"none"!==o&&React.createElement(am,{attributes:e.attributes}))),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==v&&_,b&&""!==u&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),k=React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==o?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&h,("above-title"==t||"below-title"==t)&&S,"below-title"==t&&h,("above-title"==t||"below-title"==t)&&C,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,S,C)),"right"==t&&h));let w="";return r&&(w="_blank"),React.createElement("div",{className:Be()(s,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"==o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),k)}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,className:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=e.attributes;let f="";f="icon"===l&&""!==m?React.createElement(Xg,{attributes:e.attributes}):React.createElement(im,{attributes:e.attributes});let h=f,v=y;const _=React.createElement(em,{attributes:e.attributes});let T=!0;"after_icon"!==v||"above-title"!==t&&"below-title"!==t||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==i&&_)),"after_icon"!==v||"above-title"===t&&"below-title"===t||(v="after_title"),"below-title"===t&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==i&&_,f));const C=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===v&&T&&_,React.createElement("div",{className:"uagb-ifb-text-wrap"},g&&""!==p&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===v&&_,"none"!==o&&React.createElement(am,{attributes:e.attributes}))),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),k=React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&h,("above-title"===t||"below-title"===t)&&S,"below-title"===t&&h,("above-title"===t||"below-title"===t)&&C,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,S,C)),"right"===t&&h));let w="_self";return r&&(w="_blank"),React.createElement("div",{className:Be()(s,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"===o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),k)}},{attributes:bt,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,prefixTitle:s,infoBoxTitle:c,headingDesc:u,showPrefix:p,showTitle:d,showDesc:b,icon:g,seperatorPosition:m}=e.attributes;let y="";y="icon"===l&&""!==g?React.createElement(jg,{attributes:e.attributes}):React.createElement(Mm,{attributes:e.attributes});let f=y,h=m;const v=React.createElement(Hg,{attributes:e.attributes});let _=!0;"after_icon"!==h||"above-title"!==t&&"below-title"!==t||(_=!1,f=React.createElement(React.Fragment,null,y,"none"!==i&&v)),"after_icon"!==h||"left-title"!==t&&"right-title"!==t&&"left"!==t&&"right"!==t||(h="after_title"),"below-title"===t&&"after_title"===h&&(_=!1,f=React.createElement(React.Fragment,null,"none"!==i&&v,y));const T=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===h&&_&&v,b&&""!==u&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===h&&v,"none"!==o&&React.createElement(am,{attributes:e.attributes})),C=React.createElement("div",{className:"uagb-ifb-title-wrap"},p&&""!==s&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===h&&v,d&&""!==c&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),S=React.createElement(React.Fragment,null,"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&f,("above-title"===t||"below-title"===t)&&C,"below-title"===t&&f,("above-title"===t||"below-title"===t)&&T,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,C),T),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},C,f),T),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,C,T)),"right"===t&&f);let k="_self";return r&&(k="_blank"),React.createElement("div",{className:Be()("uagb-block-"+a,"uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Ug(e.attributes))},"all"===o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:k,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),S)}},{attributes:om,save:function(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,prefixTitle:s,infoBoxTitle:c,headingDesc:u,showPrefix:p,showTitle:d,showDesc:b,icon:g,seperatorPosition:m}=e.attributes;let y="";y="icon"===l&&""!==g?React.createElement(jg,{attributes:e.attributes}):React.createElement(zg,{attributes:e.attributes});let f=y,h=m;const v=React.createElement(Hg,{attributes:e.attributes});let _=!0;"after_icon"!==h||"above-title"!==t&&"below-title"!==t||(_=!1,f=React.createElement(React.Fragment,null,y,"none"!==i&&v)),"after_icon"!==h||"left-title"!==t&&"right-title"!==t&&"left"!==t&&"right"!==t||(h="after_title"),"below-title"===t&&"after_title"===h&&(_=!1,f=React.createElement(React.Fragment,null,"none"!==i&&v,y));const T=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===h&&_&&v,b&&""!==u&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===h&&v,"none"!==o&&React.createElement(nm,{attributes:e.attributes})),C=React.createElement("div",{className:"uagb-ifb-title-wrap"},p&&""!==s&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===h&&v,d&&""!==c&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),S=React.createElement(React.Fragment,null,"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&f,("above-title"===t||"below-title"===t)&&C,"below-title"===t&&f,("above-title"===t||"below-title"===t)&&T,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,C),T),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},C,f),T),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,C,T)),"right"===t&&f);let k="_self";return r&&(k="_blank"),React.createElement("div",{className:Be()("uagb-block-"+a,"uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Ug(e.attributes))},"all"===o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:k,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),S)}},{attributes:bt,save:function(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,prefixTitle:s,infoBoxTitle:c,headingDesc:u,showPrefix:p,showTitle:d,showDesc:b,icon:g,seperatorPosition:m}=e.attributes;let y="";y="icon"===l&&""!==g?React.createElement(jg,{attributes:e.attributes}):React.createElement(zg,{attributes:e.attributes});let f=y,h=m;const v=React.createElement(Hg,{attributes:e.attributes});let _=!0;"after_icon"!==h||"above-title"!==t&&"below-title"!==t||(_=!1,f=React.createElement(React.Fragment,null,y,"none"!==i&&v)),"after_icon"!==h||"left-title"!==t&&"right-title"!==t&&"left"!==t&&"right"!==t||(h="after_title"),"below-title"===t&&"after_title"===h&&(_=!1,f=React.createElement(React.Fragment,null,"none"!==i&&v,y));const T=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===h&&_&&v,b&&""!==u&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===h&&v,"none"!==o&&React.createElement(rm,{attributes:e.attributes})),C=React.createElement("div",{className:"uagb-ifb-title-wrap"},p&&""!==s&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===h&&v,d&&""!==c&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),S=React.createElement(React.Fragment,null,"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&f,("above-title"===t||"below-title"===t)&&C,"below-title"===t&&f,("above-title"===t||"below-title"===t)&&T,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,C),T),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},C,f),T),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,C,T)),"right"===t&&f);let k="_self";return r&&(k="_blank"),React.createElement("div",{className:Be()("uagb-block-"+a,"uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Ug(e.attributes))},"all"===o&&React.createElement("a",{href:n,className:n?"uagb-infobox-link-wrap uagb-infbox__link-to-all":"uagb-infobox-link-wrap uagb-infbox__link-to-all uagb-disable-link",target:k,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),S)}},{attributes:bt,save:function(e){const{attributes:t}=e,{iconimgPosition:a,block_id:l,source_type:i,seperatorStyle:o,ctaType:n,ctaLink:r,ctaTarget:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=t;let f="";f="icon"===i&&""!==m?React.createElement(jg,{attributes:t}):React.createElement(zg,{attributes:t});let h=f,v=y;const _=React.createElement(Hg,{attributes:t});let T=!0;"after_icon"!==v||"above-title"!==a&&"below-title"!==a||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==o&&_)),"after_icon"!==v||"left-title"!==a&&"right-title"!==a&&"left"!==a&&"right"!==a||(v="after_title"),"below-title"===a&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==o&&_,f));const C=React.createElement(React.Fragment,null,"none"!==o&&"after_title"===v&&T&&_,g&&""!==p&&React.createElement(ge.RichText.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"}),"none"!==o&&"after_desc"===v&&_,"none"!==n&&React.createElement(sm,{attributes:t})),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(ge.RichText.Content,{tagName:"span",value:t.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==o&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})),k=React.createElement(React.Fragment,null,"left"===a&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===a&&h,("above-title"===a||"below-title"===a)&&S,"below-title"===a&&h,("above-title"===a||"below-title"===a)&&C,"left-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===a||"right"===a)&&React.createElement(React.Fragment,null,S,C)),"right"===a&&h);let w="_self";return s&&(w="_blank"),React.createElement("div",{className:Be()("uagb-block-"+l,"uagb-infobox__content-wrap","all"===n?" uagb-infobox_cta-type-all":"",...Ug(t))},"all"===n&&React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:""===r||"#"===r?"return false;":"return true;"}),k)}},{attributes:dm,save:function(e){const{attributes:t}=e,{iconimgPosition:a,block_id:l,source_type:i,seperatorStyle:o,ctaType:n,ctaLink:r,ctaTarget:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=t;let f="";f="icon"===i&&""!==m?React.createElement(jg,{attributes:t}):React.createElement(zg,{attributes:t});let h=f,v=y;const _=React.createElement(Hg,{attributes:t});let T=!0;"after_icon"!==v||"above-title"!==a&&"below-title"!==a||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==o&&_)),"after_icon"!==v||"left-title"!==a&&"right-title"!==a&&"left"!==a&&"right"!==a||(v="after_title"),"below-title"===a&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==o&&_,f));const C=React.createElement(React.Fragment,null,"none"!==o&&"after_title"===v&&T&&_,g&&""!==p&&React.createElement(ge.RichText.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"}),"none"!==o&&"after_desc"===v&&_,"none"!==n&&React.createElement(cm,{attributes:t})),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(ge.RichText.Content,{tagName:"span",value:t.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==o&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})),k=React.createElement(React.Fragment,null,"left"===a&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===a&&h,("above-title"===a||"below-title"===a)&&S,"below-title"===a&&h,("above-title"===a||"below-title"===a)&&C,"left-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===a||"right"===a)&&React.createElement(React.Fragment,null,S,C)),"right"===a&&h);let w="_self";return s&&(w="_blank"),React.createElement("div",{className:Be()("uagb-block-"+l,"uagb-infobox__content-wrap","all"===n?" uagb-infobox_cta-type-all":"",...Ug(t))},"all"===n&&React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:""===r||"#"===r?"return false;":"return true;"}),k)}},{attributes:mm,save:function(e){const{attributes:t}=e,{iconimgPosition:a,block_id:l,source_type:i,seperatorStyle:o,ctaType:n,ctaLink:r,ctaTarget:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=t;let f="";f="icon"===i&&""!==m?React.createElement(jg,{attributes:t}):React.createElement(zg,{attributes:t});let h=f,v=y;const _=React.createElement(Hg,{attributes:t});let T=!0;"after_icon"!==v||"above-title"!==a&&"below-title"!==a||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==o&&_)),"after_icon"!==v||"left-title"!==a&&"right-title"!==a&&"left"!==a&&"right"!==a||(v="after_title"),"below-title"===a&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==o&&_,f));const C=React.createElement(React.Fragment,null,"none"!==o&&"after_title"===v&&T&&_,g&&""!==p&&React.createElement(ge.RichText.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"}),"none"!==o&&"after_desc"===v&&_,"none"!==n&&React.createElement(Lg,{attributes:t})),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(ge.RichText.Content,{tagName:t.prefixHeadingTag,value:t.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==o&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})),k=React.createElement(React.Fragment,null,"left"===a&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===a&&h,("above-title"===a||"below-title"===a)&&S,"below-title"===a&&h,("above-title"===a||"below-title"===a)&&C,"left-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===a||"right"===a)&&React.createElement(React.Fragment,null,S,C)),"right"===a&&h);let w="_self";return s&&(w="_blank"),React.createElement("div",{className:Be()("uagb-block-"+l,"uagb-infobox__content-wrap","all"===n?" uagb-infobox_cta-type-all":"",...Ug(t))},"all"===n&&React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:""===r||"#"===r?"return false;":"return true;"}),k)}},{attributes:hm,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_}=o;let T="";T="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});let C=T,S=_;const k=React.createElement(Hg,{attributes:o});let w=!0;"after_icon"!==S||"above-title"!==n&&"below-title"!==n||(w=!1,C=React.createElement(React.Fragment,null,T,"none"!==c&&k)),"after_icon"!==S||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(S="after_title"),"below-title"===n&&"after_title"===S&&(w=!1,C=React.createElement(React.Fragment,null,"none"!==c&&k,T));const P=React.createElement(React.Fragment,null,"none"!==c&&"after_title"===S&&w&&k,h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),"none"!==c&&"after_desc"===S&&k,"none"!==u&&React.createElement(Lg,{attributes:o})),x=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==c&&"after_prefix"===S&&k,f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),A=React.createElement(React.Fragment,null,"left"===n&&C,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&C,("above-title"===n||"below-title"===n)&&x,"below-title"===n&&C,("above-title"===n||"below-title"===n)&&P,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},C,x),P),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},x,C),P),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,x,P)),"right"===n&&C);let G="_self";d&&(G="_blank");let M="return false;";return""===p&&"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&(M="return true;"):M="return true;",React.createElement("div",{className:Be()("uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o))},"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:G,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:M}),A)}},{attributes:Tm,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_}=o;let T="";T="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});let C=T,S=_;const k=React.createElement(Hg,{attributes:o});let w=!0;"after_icon"!==S||"above-title"!==n&&"below-title"!==n||(w=!1,C=React.createElement(React.Fragment,null,T,"none"!==c&&k)),"after_icon"!==S||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(S="after_title"),"below-title"===n&&"after_title"===S&&(w=!1,C=React.createElement(React.Fragment,null,"none"!==c&&k,T));const P=React.createElement(React.Fragment,null,"none"!==c&&"after_title"===S&&w&&k,h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),"none"!==c&&"after_desc"===S&&k,"none"!==u&&React.createElement(Lg,{attributes:o})),x=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==c&&"after_prefix"===S&&k,f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),A=React.createElement(React.Fragment,null,"left"===n&&C,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&C,("above-title"===n||"below-title"===n)&&x,"below-title"===n&&C,("above-title"===n||"below-title"===n)&&P,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},C,x),P),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},x,C),P),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,x,P)),"right"===n&&C);let G="_self";d&&(G="_blank");let M="return false;";return""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&(M="return true;"):M="return true;",React.createElement("div",{className:Be()("uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o))},"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:G,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:M}),A)}},{attributes:km,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_,blockBottomMargin:T,blockLeftMargin:C,blockRightMargin:S,blockTopMargin:k,blockBottomMarginTablet:w,blockLeftMarginTablet:P,blockRightMarginTablet:x,blockTopMarginTablet:A,blockBottomMarginMobile:G,blockLeftMarginMobile:M,blockRightMarginMobile:R,blockTopMarginMobile:B,htmlTag:U}=o;let E="";const O=U||"div";E="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});const L=[T,C,S,k,w,P,x,A,G,M,R,B].some(e=>"number"==typeof e);let H=E,F=_;const j=React.createElement(Hg,{attributes:o});let z=!0;"after_icon"!==F||"above-title"!==n&&"below-title"!==n||(z=!1,H=React.createElement(React.Fragment,null,E,"none"!==c&&j)),"after_icon"!==F||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(F="after_title"),"below-title"===n&&"after_title"===F&&(z=!1,H=React.createElement(React.Fragment,null,"none"!==c&&j,E));const D=React.createElement(React.Fragment,null,"none"!==c&&"after_title"===F&&z&&j,h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),"none"!==c&&"after_desc"===F&&j,"none"!==u&&React.createElement(Lg,{attributes:o})),N=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==c&&"after_prefix"===F&&j,f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),I=React.createElement(React.Fragment,null,"left"===n&&H,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&H,("above-title"===n||"below-title"===n)&&N,"below-title"===n&&H,("above-title"===n||"below-title"===n)&&D,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},H,N),D),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},N,H),D),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,N,D)),"right"===n&&H);let V="_self";d&&(V="_blank");let W="return false;";""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&(W="return true;"):W="return true;";const q=React.createElement(React.Fragment,null,"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:V,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:W}),I);return React.createElement(O,{className:Z(["uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o),L?"wp-block-uagb-info-box--has-margin":""])},L?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},q):React.createElement(React.Fragment,null,q))}},{attributes:xm,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_,blockBottomMargin:T,blockLeftMargin:C,blockRightMargin:S,blockTopMargin:k,blockBottomMarginTablet:w,blockLeftMarginTablet:P,blockRightMarginTablet:x,blockTopMarginTablet:A,blockBottomMarginMobile:G,blockLeftMarginMobile:M,blockRightMarginMobile:R,blockTopMarginMobile:B,htmlTag:U,enableMultilineParagraph:E}=o;let O="";const L=U||"div";O="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(Gm,{attributes:o});const H=[T,C,S,k,w,P,x,A,G,M,R,B].some(e=>"number"==typeof e);let F=O,j=_;const z=React.createElement(Hg,{attributes:o});let D=!0;const N=e=>{if("none"!==c&&j===e&&D)return z};"after_icon"!==j||"above-title"!==n&&"below-title"!==n||(D=!1,F=React.createElement(React.Fragment,null,O,"none"!==c&&z)),"after_icon"!==j||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(j="after_title"),"below-title"===n&&"after_title"===j&&(D=!1,F=React.createElement(React.Fragment,null,"none"!==c&&z,O));const I=E?React.createElement(React.Fragment,null,N("after_title"),h&&React.createElement("div",{className:"uagb-ifb-desc"},React.createElement(ge.InnerBlocks.Content,null)),N("after_desc"),"none"!==u&&React.createElement(Am,{attributes:o})):React.createElement(React.Fragment,null,N("after_title"),h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),N("after_desc"),"none"!==u&&React.createElement(Am,{attributes:o})),V=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),N("after_prefix"),f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),W=React.createElement(React.Fragment,null,"left"===n&&F,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&F,("above-title"===n||"below-title"===n)&&V,"below-title"===n&&F,("above-title"===n||"below-title"===n)&&I,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},F,V),I),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},V,F),I),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,V,I)),"right"===n&&F);let q="_self";d&&(q="_blank");let $="return false;";""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&($="return true;"):$="return true;";const Y=React.createElement(React.Fragment,null,"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:q,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:$}),W);return React.createElement(L,{className:Z(["uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o),H?"wp-block-uagb-info-box--has-margin":""])},H?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},Y):React.createElement(React.Fragment,null,Y))}}];a(221);var Um={from:[{type:"block",blocks:["core/media-text"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,V,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be;const ge=(null===(a=t[0])||void 0===a?void 0:a.attributes)||{},me=Boolean(ge.content);let ye;var fe,he;if(null!=ge&&null!==(l=ge.style)&&void 0!==l&&null!==(i=l.color)&&void 0!==i&&i.text)ye=null==ge||null===(fe=ge.style)||void 0===fe||null===(he=fe.color)||void 0===he?void 0:he.text;else if(Pc(null==ge?void 0:ge.textColor))ye=Pc(null==ge?void 0:ge.textColor);else if(null!=e&&null!==(o=e.style)&&void 0!==o&&null!==(n=o.color)&&void 0!==n&&n.text){var ve,_e;ye=null==e||null===(ve=e.style)||void 0===ve||null===(_e=ve.color)||void 0===_e?void 0:_e.text}else ye=Pc(null==e?void 0:e.textColor)?Pc(null==e?void 0:e.textColor):"";return Object(de.createBlock)("uagb/info-box",{source_type:"image",infoBoxTitle:me?ge.content:"",imageSize:(null==e?void 0:e.mediaSizeSlug)||"large",headingColor:ye,iconImage:{url:e.mediaUrl},headFontWeight:(null==ge||null===(r=ge.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.fontWeight)||(null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.fontWeight)||"",headFontSize:N((null==ge||null===(p=ge.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.fontSize)||(null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.fontSize)||""),headLetterSpacing:N((null==ge||null===(m=ge.style)||void 0===m||null===(y=m.typography)||void 0===y?void 0:y.letterSpacing)||(null==e||null===(f=e.style)||void 0===f||null===(h=f.typography)||void 0===h?void 0:h.letterSpacing)||""),headLetterSpacingType:I((null==ge||null===(v=ge.style)||void 0===v||null===(_=v.typography)||void 0===_?void 0:_.letterSpacing)||(null==e||null===(T=e.style)||void 0===T||null===(C=T.typography)||void 0===C?void 0:C.letterSpacing)||""),headDecoration:(null==ge||null===(S=ge.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.textDecoration)||(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.textDecoration)||"",headTransform:(null==ge||null===(x=ge.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.textTransform)||(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.textTransform)||"",headLineHeight:N((null==ge||null===(R=ge.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.lineHeight)||(null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.lineHeight)||""),showDesc:!1,blockTopPadding:N((null==e||null===(O=e.style)||void 0===O||null===(L=O.spacing)||void 0===L||null===(H=L.padding)||void 0===H?void 0:H.top)||""),blockRightPadding:N((null==e||null===(F=e.style)||void 0===F||null===(j=F.spacing)||void 0===j||null===(z=j.padding)||void 0===z?void 0:z.right)||""),blockLeftPadding:N((null==e||null===(D=e.style)||void 0===D||null===(V=D.spacing)||void 0===V||null===(W=V.padding)||void 0===W?void 0:W.left)||""),blockBottomPadding:N((null==e||null===(q=e.style)||void 0===q||null===(Z=q.spacing)||void 0===Z||null===($=Z.padding)||void 0===$?void 0:$.bottom)||""),blockPaddingUnit:I((null==e||null===(Y=e.style)||void 0===Y||null===(K=Y.spacing)||void 0===K||null===(J=K.margin)||void 0===J?void 0:J.top)||""),headLeftMargin:N((null==ge||null===(X=ge.style)||void 0===X||null===(Q=X.spacing)||void 0===Q||null===(ee=Q.margin)||void 0===ee?void 0:ee.left)||"30"),headSpace:N((null==ge||null===(te=ge.style)||void 0===te||null===(ae=te.spacing)||void 0===ae||null===(le=ae.margin)||void 0===le?void 0:le.bottom)||""),headRightMargin:N((null==ge||null===(ie=ge.style)||void 0===ie||null===(oe=ie.spacing)||void 0===oe||null===(ne=oe.margin)||void 0===ne?void 0:ne.right)||""),headTopMargin:N((null==ge||null===(re=ge.style)||void 0===re||null===(se=re.spacing)||void 0===se||null===(ce=se.margin)||void 0===ce?void 0:ce.top)||""),headSpaceUnit:I((null==ge||null===(ue=ge.style)||void 0===ue||null===(pe=ue.spacing)||void 0===pe||null===(be=pe.margin)||void 0===be?void 0:be.top)||""),imageWidth:350,imageWidthUnit:"px",iconimgPosition:"left",sourceAlign:"middle"})}}]};let Em={};Em=Object(F.applyFilters)("uagb/info-box",ss(Em)),Object(de.registerBlockType)("uagb/info-box",{...Em,title:Object(r.__)("Info Box","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add image/icon, separator and text description using a single block.","ultimate-addons-for-gutenberg"),icon:se.info_box,keywords:[Object(r.__)("info box","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},usesContext:["postId","postType"],attributes:bt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"info-box"}):React.createElement(Yg,e),save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_,blockBottomMargin:T,blockLeftMargin:C,blockRightMargin:S,blockTopMargin:k,blockBottomMarginTablet:w,blockLeftMarginTablet:P,blockRightMarginTablet:x,blockTopMarginTablet:A,blockBottomMarginMobile:G,blockLeftMarginMobile:M,blockRightMarginMobile:R,blockTopMarginMobile:B,htmlTag:U,enableMultilineParagraph:E}=o;let O="";const L=U||"div";O="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});const H=[T,C,S,k,w,P,x,A,G,M,R,B].some(e=>"number"==typeof e);let F=O,j=_;const z=React.createElement(Hg,{attributes:o});let D=!0;const N=e=>{if("none"!==c&&j===e&&D)return z};"after_icon"!==j||"above-title"!==n&&"below-title"!==n||(D=!1,F=React.createElement(React.Fragment,null,O,"none"!==c&&z)),"after_icon"!==j||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(j="after_title"),"below-title"===n&&"after_title"===j&&(D=!1,F=React.createElement(React.Fragment,null,"none"!==c&&z,O));const I=E?React.createElement(React.Fragment,null,N("after_title"),h&&React.createElement("div",{className:"uagb-ifb-desc"},React.createElement(ge.InnerBlocks.Content,null)),N("after_desc"),"none"!==u&&React.createElement(Lg,{attributes:o})):React.createElement(React.Fragment,null,N("after_title"),h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),N("after_desc"),"none"!==u&&React.createElement(Lg,{attributes:o})),V=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),N("after_prefix"),f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),W=React.createElement(React.Fragment,null,"left"===n&&F,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&F,("above-title"===n||"below-title"===n)&&V,"below-title"===n&&F,("above-title"===n||"below-title"===n)&&I,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},F,V),I),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},V,F),I),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,V,I)),"right"===n&&F);let q="_self";d&&(q="_blank");let $="return false;";""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&($="return true;"):$="return true;";const Y=React.createElement(React.Fragment,null,"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:q,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:$}),W);return React.createElement(L,{className:Z(["uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o),H?"wp-block-uagb-info-box--has-margin":""])},H?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},Y):React.createElement(React.Fragment,null,Y))},deprecated:Bm,transforms:Um});var Om=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{stack:r,textAlign:s,titleColor:c,descColor:u,titleFontSize:p,titleFontSizeType:d,titleFontSizeTypeMobile:b,titleFontSizeTypeTablet:g,titleFontSizeMobile:m,titleFontSizeTablet:y,titleFontFamily:f,titleFontWeight:h,titleLineHeightType:v,titleLineHeight:_,titleLineHeightTablet:T,titleLineHeightMobile:C,descFontSize:S,descFontSizeType:k,descFontSizeTypeMobile:w,descFontSizeTypeTablet:P,descFontSizeMobile:x,descFontSizeTablet:A,descFontFamily:G,descFontWeight:M,descLineHeightType:R,descLineHeight:B,descLineHeightTablet:U,descLineHeightMobile:E,titleSpace:O,titleSpaceTablet:L,titleSpaceMobile:H,titleSpaceType:F,descSpace:j,descSpaceTablet:z,descSpaceMobile:D,descSpaceType:N,ctaPosition:I,ctaFontSize:V,ctaFontSizeType:W,ctaFontSizeTypeMobile:q,ctaFontSizeTypeTablet:Z,ctaFontSizeMobile:$,ctaFontSizeTablet:Y,ctaFontFamily:K,ctaFontWeight:J,ctaBtnLinkColor:X,ctaBgType:Q,ctaBgColor:ee,ctaTopPadding:te,ctaRightPadding:le,ctaBottomPadding:ie,ctaLeftPadding:oe,ctaTopPaddingTablet:ne,ctaRightPaddingTablet:re,ctaBottomPaddingTablet:se,ctaLeftPaddingTablet:ce,ctaTopPaddingMobile:ue,ctaRightPaddingMobile:pe,ctaBottomPaddingMobile:de,ctaLeftPaddingMobile:be,ctaPaddingUnit:ge,mobileCTAPaddingUnit:me,tabletCTAPaddingUnit:ye,ctaLinkHoverColor:fe,ctaBgHoverType:he,ctaBgHoverColor:ve,btnBorderHColor:_e,ctaIconSpace:Te,ctaIconSpaceTablet:Ce,ctaIconSpaceMobile:Se,contentWidth:ke,contentWidthTablet:we,contentWidthMobile:Pe,contentWidthType:xe,ctaType:Ae,titleTransform:Ge,titleDecoration:Me,descTransform:Re,descDecoration:Be,ctaTransform:Ue,ctaDecoration:Ee,titleFontStyle:Oe,descFontStyle:Le,ctaFontStyle:He,buttonAlign:Fe,ctaIconPosition:je,secondCtaBgType:ze,secondCtaBgHoverType:De,secondCtaIconSpace:Ne,secondCtaIconPosition:Ie,secondCtaFontSize:Ve,secondCtaFontSizeType:We,secondCtaFontSizeTypeMobile:qe,secondCtaFontSizeTypeTablet:Ze,secondCtaFontSizeMobile:$e,secondCtaFontSizeTablet:Ye,secondCtaFontFamily:Ke,secondCtaFontWeight:Je,secondCtaFontStyle:Xe,secondCtaFontTransform:Qe,secondCtaFontDecoration:et,secondCtaTopPadding:tt,secondCtaRightPadding:at,secondCtaBottomPadding:lt,secondCtaLeftPadding:it,secondCtaTopMobilePadding:ot,secondCtaRightMobilePadding:nt,secondCtaBottomMobilePadding:rt,secondCtaLeftMobilePadding:st,secondCtaTopTabletPadding:ct,secondCtaRightTabletPadding:ut,secondCtaBottomTabletPadding:pt,secondCtaLeftTabletPadding:dt,secondCtaPaddingUnit:bt,secondCtaMobilePaddingUnit:gt,secondCtaTabletPaddingUnit:mt,secondCtaBorderHColor:yt,secondCtaColor:ft,secondCtaBackground:ht,secondCtaHoverColor:vt,secondCtaHoverBackground:_t,stackBtn:Tt,gapBtn:Ct,gapBtnTablet:St,gapBtnMobile:kt,textAlignTablet:wt,textAlignMobile:Pt,overallBlockTopMargin:xt,overallBlockRightMargin:At,overallBlockBottomMargin:Gt,overallBlockLeftMargin:Mt,overallBlockTopMobileMargin:Rt,overallBlockRightMobileMargin:Bt,overallBlockBottomMobileMargin:Ut,overallBlockLeftMobileMargin:Et,overallBlockTopTabletMargin:Ot,overallBlockRightTabletMargin:Lt,overallBlockBottomTabletMargin:Ht,overallBlockLeftTabletMargin:Ft,overallBlockMarginUnit:jt,overallBlockMobileMarginUnit:zt,overallBlockTabletMarginUnit:Dt,overallBlockTopPadding:Nt,overallBlockRightPadding:It,overallBlockBottomPadding:Vt,overallBlockLeftPadding:Wt,overallBlockTopMobilePadding:qt,overallBlockRightMobilePadding:Zt,overallBlockBottomMobilePadding:$t,overallBlockLeftMobilePadding:Yt,overallBlockTopTabletPadding:Kt,overallBlockRightTabletPadding:Jt,overallBlockBottomTabletPadding:Xt,overallBlockLeftTabletPadding:Qt,overallBlockPaddingUnit:ea,overallBlockMobilePaddingUnit:ta,overallBlockTabletPaddingUnit:aa,buttonRightSpace:la,buttonRightSpaceTablet:ia,buttonRightSpaceMobile:oa,buttonRightSpaceType:na,secondCtaIconSpaceTablet:ra,secondCtaIconSpaceMobile:sa,titleLetterSpacing:ca,titleLetterSpacingTablet:ua,titleLetterSpacingMobile:pa,titleLetterSpacingType:da,descLetterSpacing:ba,descLetterSpacingTablet:ga,descLetterSpacingMobile:ma,descLetterSpacingType:ya,ctaLetterSpacing:fa,ctaLetterSpacingTablet:ha,ctaLetterSpacingMobile:va,ctaLetterSpacingType:_a,secondCtaLetterSpacing:Ta,secondCtaLetterSpacingTablet:Ca,secondCtaLetterSpacingMobile:Sa,secondCtaLetterSpacingType:ka,btncontentWidth:wa,btncontentWidthTablet:Pa,btncontentWidthMobile:xa,btncontentWidthType:Aa,enabledSecondCtaButton:Ga,inheritFromTheme:Ma,secInheritFromTheme:Ra,block_id:Ba}=e,Ua=Wr(e,"btn"),Ea=Wr(e,"btn","tablet"),Oa=Wr(e,"btn","mobile"),La=us(O,"titleSpace",o),Ha=us(j,"descSpace",o),Fa=us(Ne,"secondCtaIconSpace",o),ja=us(Te,"ctaIconSpace",o),za=us(ke,"contentWidth",o),Da=us(wa,"btncontentWidth",o),Na=us(Ct,"gapBtn",o),Ia=us(la,"buttonRightSpace",o),Va=Wr(e,"secondCta"),Wa=Wr(e,"secondCta","tablet"),qa=Wr(e,"secondCta","mobile"),Za={" .uagb-cta__content-wrap":{"text-align":s}," .uagb-cta__wrap":{"text-align":s},".uagb-cta__outer-wrap":{"text-align":s,"padding-top":Vr(Nt,ea),"padding-bottom":Vr(Vt,ea),"padding-left":Vr(Wt,ea),"padding-right":Vr(It,ea),"margin-top":Vr(xt,jt),"margin-bottom":Vr(Gt,jt),"margin-left":Vr(Mt,jt),"margin-right":Vr(At,jt)}," .block-editor-rich-text__editable.uagb-cta__title":{"font-size":Vr(p,d),"font-family":f,"font-style":Oe,"text-decoration":Me,"text-transform":Ge,"font-weight":h,"line-height":Vr(_,v),"letter-spacing":Vr(ca,da),color:c,"margin-bottom":Vr(La,F)}," .block-editor-rich-text__editable.uagb-cta__desc":{"font-size":Vr(S,k),"font-family":G,"font-style":Le,"text-decoration":Be,"text-transform":Re,"font-weight":M,"line-height":Vr(B,R),"letter-spacing":Vr(ba,ya),color:u,"margin-bottom":Vr(Ha,N)}," .uagb-cta__desc":{"font-size":Vr(S,k),"font-family":G,"font-style":Le,"text-transform":Re,"font-weight":M,"letter-spacing":Vr(ba,ya),color:u,"margin-bottom":Vr(Ha,N)}," .uagb-cta__desc p":{color:u,"line-height":Vr(B,R),"text-decoration":Be}};"right"===I&&(Za[".uagb-cta__outer-wrap "]={display:"inline-flex"}),Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper svg"]={"font-size":Vr(V,W),width:Vr(V,W),height:Vr(V,W),"line-height":Vr(V,W),fill:X,"letter-spacing":Vr(fa,_a)},Za[".uagb-cta__outer-wrap a.uagb-cta-second__button svg"]={"font-size":Vr(Ve,We),width:Vr(Ve,We),"line-height":Vr(Ve,We),fill:ft},Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper:hover svg"]={fill:fe},Za[".uagb-cta__outer-wrap a.uagb-cta-second__button:hover svg"]={fill:vt};const $a={" .uagb-cta__wrap":{"text-align":wt},".uagb-editor-preview-mode-tablet.uagb-cta__outer-wrap ":{"text-align":wt,"padding-top":Vr(Kt,aa),"padding-bottom":Vr(Xt,aa),"padding-left":Vr(Qt,aa),"padding-right":Vr(Jt,aa),"margin-top":Vr(Ot,Dt),"margin-bottom":Vr(Ht,Dt),"margin-left":Vr(Ft,Dt),"margin-right":Vr(Lt,Dt)}," .block-editor-rich-text__editable.uagb-cta__title":{"font-size":Vr(y,g),"line-height":Vr(T,v),"letter-spacing":Vr(ua,da),"margin-bottom":Vr(L,F)}," .block-editor-rich-text__editable.uagb-cta__desc":{"font-size":Vr(A,P),"line-height":Vr(U,R),"letter-spacing":Vr(ga,ya),"margin-bottom":Vr(z,N)}," .uagb-cta__desc":{"font-size":Vr(A,P),"letter-spacing":Vr(ga,ya),"margin-bottom":Vr(z,N)}," .uagb-cta__desc p":{"line-height":Vr(U,R)},".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper svg":{"font-size":Vr(Y,Z),height:Vr(Y,Z),width:Vr(Y,Z),"line-height":Vr(Y,Z),"letter-spacing":Vr(ha,_a)},".uagb-cta__outer-wrap a.uagb-cta-second__button svg":{"font-size":Vr(Ye,Ze),height:Vr(Ye,Ze),width:Vr(Ye,Ze),"line-height":Vr(Ye,Ze),"letter-spacing":Vr(Ca,ka)}};"right"===I&&($a[".uagb-cta__outer-wrap.uagb-cta__content-stacked-tablet "]={display:"inherit"},$a[".uagb-cta__content-stacked-tablet .uagb-cta__wrap "]={width:"100%"});const Ya={" .uagb-cta__wrap":{"text-align":Pt},".uagb-editor-preview-mode-mobile.uagb-cta__outer-wrap ":{"text-align":Pt,"padding-top":Vr(qt,ta),"padding-bottom":Vr($t,ta),"padding-left":Vr(Yt,ta),"padding-right":Vr(Zt,ta),"margin-top":Vr(Rt,zt),"margin-bottom":Vr(Ut,zt),"margin-left":Vr(Et,zt),"margin-right":Vr(Bt,zt)}," .block-editor-rich-text__editable.uagb-cta__title":{"font-size":Vr(m,b),"line-height":Vr(C,v),"letter-spacing":Vr(pa,da),"margin-bottom":Vr(H,F)}," .block-editor-rich-text__editable.uagb-cta__desc":{"font-size":Vr(x,w),"line-height":Vr(E,R),"letter-spacing":Vr(ma,ya),"margin-bottom":Vr(D,N)}," .uagb-cta__desc":{"font-size":Vr(x,w),"letter-spacing":Vr(ma,ya),"margin-bottom":Vr(D,N)}," .uagb-cta__desc p":{"line-height":Vr(E,R)}," .uagb-cta__button-wrapper a.uagb-cta-typeof-text":{"font-size":Vr($,q),"letter-spacing":Vr(va,_a)}," .uagb-cta__button-wrapper .uagb-cta-with-svg":{"font-size":Vr($,q),height:Vr($,q),width:Vr($,q),"line-height":Vr($,q),"letter-spacing":Vr(va,_a)},".uagb-cta__outer-wrap a.uagb-cta-second__button svg":{"font-size":Vr($e,qe),height:Vr($e,qe),width:Vr($e,qe),"line-height":Vr($e,qe),"letter-spacing":Vr(Sa,ka)}};"text"===Ae&&(Za[" a.uagb-cta__button-link-wrapper"]={color:X,"border-style":"none !important","text-decoration":"underline",padding:"unset !important"},Za[" a.uagb-cta__button-link-wrapper:hover "]={color:fe});const Ka=Vr(Fa,"px"),Ja=Vr(ra,"px"),Xa=Vr(sa,"px");if("before"===Ie){const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";Za[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Xa},Za[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Xa}}else{const e="1"===uagb_blocks_info.is_rtl?"margin-right":"margin-left";Za[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Xa},Za[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Xa}}const Qa=Vr(ja,"px"),el=Vr(Ce,"px"),tl=Vr(Se,"px");if("before"===je){const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:tl},Za[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:tl}}else{const e="1"===uagb_blocks_info.is_rtl?"margin-right":"margin-left";Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:tl},Za[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:tl}}let al,ll,il;"none"!==Ae&&"all"!==Ae||(Za[" .uagb-cta__wrap"]={width:"100%"}),"right"!==I||"text"!==Ae&&"button"!==Ae||(Za[" .uagb-cta__wrap"]={width:Vr(za,xe)},Za[".uagb-cta__outer-wrap > a"]={"align-self":"top"===Fe?"flex-start":"center",height:"fit-content","margin-left":"auto"},$a[" .uagb-cta__wrap"]={width:Vr(we,xe)},Ya[" .uagb-cta__wrap"]={width:Vr(Pe,xe)}),"right"===I&&(Ya[".uagb-cta__outer-wrap.uagb-cta__content-stacked-mobile "]={display:"inherit"},Ya[".uagb-cta__outer-wrap.uagb-cta__content-stacked-tablet "]={display:"inherit"},Ya[".uagb-cta__content-stacked-mobile .uagb-cta__wrap "]={width:"100%"}),"below-title"===I&&(Ya[".uagb-cta__outer-wrap "]={display:"inherit"}),"desktop"===Tt?(Za[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(Na,"px")},$a[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(St,"px")},Ya[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(kt,"px")}):"tablet"===Tt?(Za[" .uagb-cta__buttons"]={"column-gap":Vr(Na,"px"),"align-items":"center"},$a[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(St,"px")},Ya[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(kt,"px")}):"mobile"===Tt?(Za[" .uagb-cta__buttons"]={"column-gap":Vr(Na,"px"),"align-items":"center"},$a[" .uagb-cta__buttons"]={"column-gap":Vr(St,"px"),"align-items":"center"},Ya[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(kt,"px")}):"none"===Tt&&(Za[" .uagb-cta__buttons"]={"column-gap":Vr(Na,"px"),"align-items":"center"},$a[" .uagb-cta__buttons"]={"column-gap":Vr(St,"px")},Ya[" .uagb-cta__buttons"]={"column-gap":Vr(kt,"px"),"justify-content":"center"}),"button"===Ae&&Ga&&(Za[".uagb-cta__outer-wrap .uagb-cta__buttons"]={width:Vr(Da,Aa)},$a[".uagb-cta__outer-wrap .uagb-cta__buttons"]={width:Vr(Pa,Aa)},Ya[".uagb-cta__outer-wrap .uagb-cta__buttons"]={width:Vr(xa,Aa)}),al="left"===s?"flex-start":"right"===s?"flex-end":"center",ll="left"===wt?"flex-start":"right"===wt?"flex-end":"center",il="left"===Pt?"flex-start":"right"===Pt?"flex-end":"center","desktop"===r?(Za[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":al},$a[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":ll},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":il}):"tablet"===r?(Za[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},$a[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":ll},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":il}):"mobile"===r?(Za[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},$a[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":il}):"none"===r&&(Za[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},$a[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},Za[" .uagb-cta__buttons"]={"column-gap":Vr(Ct,"px"),"margin-left":Vr(Ia,na)},$a[" .uagb-cta__buttons"]={"column-gap":Vr(St,"px"),"margin-left":Vr(ia,na)},Ya[" .uagb-cta__buttons"]={"column-gap":Vr(kt,"px"),"margin-left":Vr(oa,na)}),Ma||(Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper"]={"font-size":Vr(V,W),"font-family":K,"font-style":He,"text-decoration":Ee,"text-transform":Ue,"font-weight":J,color:X,"background-color":"color"===Q?ee:"transparent","padding-top":Vr(te,ge),"padding-bottom":Vr(ie,ge),"padding-left":Vr(oe,ge),"padding-right":Vr(le,ge),...Ua,"letter-spacing":Vr(fa,_a)},Za[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper .wp-block-button__link:not(.has-background)"]={"font-size":Vr(V,W),"font-family":K,"font-style":He,"text-decoration":Ee,"text-transform":Ue,"font-weight":J,color:X,"background-color":ee,"padding-top":Vr(te,ge),"padding-bottom":Vr(ie,ge),"padding-left":Vr(oe,ge),"padding-right":Vr(le,ge),...Ua},Za[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper.wp-block-button__link:not(.has-background):hover"]={color:fe,"background-color":"color"===he?ve:"transparent","border-color":_e},$a[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper.wp-block-button__link:not(.has-background)"]={"font-size":Vr(Y,Z),"padding-top":Vr(ne,ye),"padding-bottom":Vr(se,ye),"padding-left":Vr(ce,ye),"padding-right":Vr(re,ye),"letter-spacing":Vr(ha,_a),...Ea},Ya[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper.wp-block-button__link:not(.has-background)"]={"font-size":Vr($,q),"padding-top":Vr(ue,me),"padding-bottom":Vr(de,me),"padding-left":Vr(be,me),"padding-right":Vr(pe,me),"letter-spacing":Vr(va,_a),...Oa},$a[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper"]={"font-size":Vr(Y,Z),"padding-top":Vr(ne,ye),"padding-bottom":Vr(se,ye),"padding-left":Vr(ce,ye),"padding-right":Vr(re,ye),"letter-spacing":Vr(ha,_a),...Ea},Ya[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper"]={"font-size":Vr($,q),"padding-top":Vr(ue,me),"padding-bottom":Vr(de,me),"padding-left":Vr(be,me),"padding-right":Vr(pe,me),"letter-spacing":Vr(va,_a),...Oa}),Ra||(Za[".uagb-cta__outer-wrap a.uagb-cta-second__button"]={"font-size":Vr(Ve,We),"font-family":Ke,"font-style":Xe,"text-decoration":et,"text-transform":Qe,"font-weight":Je,color:ft,"background-color":"color"===ze?ht:"transparent","padding-top":Vr(tt,bt),"padding-bottom":Vr(lt,bt),"padding-left":Vr(it,bt),"padding-right":Vr(at,bt),"align-self":"top"===Fe?"flex-start":"center",height:"fit-content",...Va,"letter-spacing":Vr(Ta,ka)},Za[".uagb-cta__outer-wrap a.uagb-cta-second__button:hover"]={color:vt,"background-color":"color"===De?_t:"transparent","border-color":yt},Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper:hover"]={color:fe,"background-color":"color"===he?ve:"transparent","border-color":_e},$a[".uagb-cta__outer-wrap a.uagb-cta-second__button"]={"font-size":Vr(Ye,Ze),"padding-top":Vr(ct,mt),"padding-bottom":Vr(pt,mt),"padding-left":Vr(dt,mt),"padding-right":Vr(ut,mt),...Wa,"letter-spacing":Vr(Ca,ka)},Ya[".uagb-cta__outer-wrap a.uagb-cta-second__button"]={"font-size":Vr($e,qe),"padding-top":Vr(ot,gt),"padding-bottom":Vr(rt,gt),"padding-left":Vr(st,gt),"padding-right":Vr(nt,gt),...qa,"letter-spacing":Vr(Sa,ka)});const ol=i?`.editor-styles-wrapper ${i} `:`.editor-styles-wrapper #block-${t} .uagb-block-${Ba}`;let nl=ae(Za,""+ol);return("tablet"===n||"mobile"===n||i)&&(nl+=ae($a,""+ol,!0,"tablet"),("mobile"===n||i)&&(nl+=ae(Ya,""+ol,!0,"mobile"))),nl};const Lm=[{defaultAttributes:Ot},{defaultPresetAttributes:[{label:"showIcon"},{label:"ctaIconSpace"},{label:"ctaBgType"},{label:"ctaBgHoverColor"},{label:"ctaBtnLinkColor"},{label:"ctaLinkHoverColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"showIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '}],Hm=[{defaultAttributes:Ot},{defaultPresetAttributes:[{label:"secondCtaBorderStyle"},{label:"secondCtaBorderTopLeftRadius"},{label:"secondCtaBorderTopRightRadius"},{label:"secondCtaBorderBottomLeftRadius"},{label:"secondCtaBorderBottomRightRadius"},{label:"secondCtaBorderBottomWidthDesktop"},{label:"secondCtaBorderTopWidthDesktop"},{label:"secondCtaBorderLeftWidthDesktop"},{label:"secondCtaBorderRightWidthDesktop"},{label:"showSecondIcon"},{label:"secondCtaIconSpace"},{label:"secondCtaBgType"},{label:"secondCtaHoverBackground"},{label:"secondCtaColor"},{label:"secondCtaHoverColor"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:0},{label:"secondCtaBorderTopRightRadius",value:0},{label:"secondCtaBorderBottomLeftRadius",value:0},{label:"secondCtaBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:30},{label:"secondCtaBorderTopRightRadius",value:30},{label:"secondCtaBorderBottomLeftRadius",value:30},{label:"secondCtaBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!0},{label:"secondCtaIconSpace",value:12},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:0},{label:"secondCtaBorderTopRightRadius",value:0},{label:"secondCtaBorderBottomLeftRadius",value:0},{label:"secondCtaBorderBottomRightRadius",value:0},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:30},{label:"secondCtaBorderTopRightRadius",value:30},{label:"secondCtaBorderBottomLeftRadius",value:30},{label:"secondCtaBorderBottomRightRadius",value:30},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"showSecondIcon",value:!0},{label:"secondCtaIconSpace",value:12},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '}];function Fm(){return(Fm=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{textAlign:i,titleColor:o,descColor:n,titleTag:s,titleFontSize:c,titleFontSizeType:u,titleFontSizeTypeMobile:p,titleFontSizeTypeTablet:d,titleFontSizeMobile:b,titleFontSizeTablet:g,titleFontFamily:m,titleFontWeight:y,titleLineHeightType:f,titleLineHeight:h,titleLineHeightTablet:v,titleLineHeightMobile:_,titleLoadGoogleFonts:T,descFontSize:C,descFontSizeType:S,descFontSizeTypeMobile:k,descFontSizeTypeTablet:w,descFontSizeMobile:P,descFontSizeTablet:x,descFontFamily:A,descFontWeight:G,descLineHeightType:M,descLineHeight:R,descLineHeightTablet:B,descLineHeightMobile:U,descLoadGoogleFonts:E,titleSpace:O,titleSpaceTablet:L,titleSpaceMobile:H,titleSpaceType:F,descSpace:j,descSpaceTablet:z,descSpaceMobile:D,descSpaceType:N,buttonAlign:I,htmlTag:V,ctaType:W,ctaText:q,ctaLink:Z,ctaTarget:$,ctaIcon:Y,ctaIconPosition:K,ctaIconSpace:J,ctaIconSpaceTablet:X,ctaIconSpaceMobile:Q,ctaFontSize:ee,ctaFontSizeType:te,ctaFontSizeTypeMobile:ae,ctaFontSizeTypeTablet:le,ctaFontSizeMobile:ie,ctaFontSizeTablet:oe,ctaFontFamily:ne,ctaFontWeight:re,ctaLoadGoogleFonts:se,contentWidth:ce,contentWidthTablet:ue,contentWidthMobile:pe,contentWidthType:de,ctaBtnLinkColor:be,ctaBgType:me,ctaBgHoverType:ye,secondCtaBgType:fe,secondCtaBgHoverType:he,ctaBgHoverColor:ve,ctaBgColor:_e,ctaTopPadding:Te,ctaRightPadding:Se,ctaBottomPadding:ke,ctaLeftPadding:we,ctaTopPaddingTablet:Pe,ctaRightPaddingTablet:xe,ctaBottomPaddingTablet:Ae,ctaLeftPaddingTablet:Ge,ctaTopPaddingMobile:Me,ctaRightPaddingMobile:Re,ctaBottomPaddingMobile:Be,ctaLeftPaddingMobile:Ue,ctaPaddingUnit:Oe,mobileCTAPaddingUnit:He,tabletCTAPaddingUnit:Fe,ctaPaddingLink:ze,stack:De,ctaLinkHoverColor:Ne,titleTransform:Ie,titleDecoration:Ve,descTransform:We,descDecoration:qe,ctaTransform:Ze,ctaDecoration:$e,titleFontStyle:Ye,descFontStyle:Ke,ctaFontStyle:Je,enabledSecondCtaButton:Xe,secondCtaLink:Qe,secondCtaLabel:et,secondCtaTarget:tt,secondCtaLoadGoogleFonts:at,secondCtaFontFamily:lt,secondCtaFontWeight:it,secondCtaFontStyle:ot,secondCtaFontTransform:nt,secondCtaFontDecoration:rt,secondCtaTopPadding:st,secondCtaRightPadding:ct,secondCtaBottomPadding:ut,secondCtaLeftPadding:pt,secondCtaTopMobilePadding:dt,secondCtaRightMobilePadding:bt,secondCtaBottomMobilePadding:gt,secondCtaLeftMobilePadding:mt,secondCtaTopTabletPadding:yt,secondCtaRightTabletPadding:ft,secondCtaBottomTabletPadding:ht,secondCtaLeftTabletPadding:vt,secondCtaPaddingUnit:_t,secondCtaMobilePaddingUnit:Tt,secondCtaTabletPaddingUnit:Ct,secondCtaPaddingLink:St,secondCtaColor:kt,secondCtaBackground:wt,secondCtaHoverColor:Pt,secondCtaHoverBackground:xt,secondCtaFontSize:At,secondCtaFontSizeType:Gt,secondCtaFontSizeTypeMobile:Mt,secondCtaFontSizeTypeTablet:Rt,secondCtaFontSizeMobile:Bt,secondCtaFontSizeTablet:Ut,secondCtaIcon:Et,secondCtaIconPosition:Ot,secondCtaIconSpace:Lt,stackBtn:Ht,gapBtn:Ft,gapBtnTablet:jt,gapBtnMobile:zt,textAlignTablet:Dt,textAlignMobile:Nt,overallBlockTopMargin:It,overallBlockRightMargin:Vt,overallBlockBottomMargin:Wt,overallBlockLeftMargin:qt,overallBlockTopMobileMargin:Zt,overallBlockRightMobileMargin:$t,overallBlockBottomMobileMargin:Yt,overallBlockLeftMobileMargin:Kt,overallBlockTopTabletMargin:Jt,overallBlockRightTabletMargin:Xt,overallBlockBottomTabletMargin:Qt,overallBlockLeftTabletMargin:ea,overallBlockMarginUnit:ta,overallBlockMobileMarginUnit:aa,overallBlockTabletMarginUnit:la,overallBlockMarginLink:ia,overallBlockTopPadding:oa,overallBlockRightPadding:na,overallBlockBottomPadding:ra,overallBlockLeftPadding:sa,overallBlockTopMobilePadding:ca,overallBlockRightMobilePadding:ua,overallBlockBottomMobilePadding:pa,overallBlockLeftMobilePadding:da,overallBlockTopTabletPadding:ba,overallBlockRightTabletPadding:ga,overallBlockBottomTabletPadding:ma,overallBlockLeftTabletPadding:ya,overallBlockPaddingUnit:fa,overallBlockMobilePaddingUnit:ha,overallBlockTabletPaddingUnit:va,overallBlockPaddingLink:_a,buttonRightSpace:Ta,buttonRightSpaceTablet:Ca,buttonRightSpaceMobile:Sa,buttonRightSpaceType:ka,secondCtaIconSpaceTablet:wa,secondCtaIconSpaceMobile:Pa,titleLetterSpacing:xa,titleLetterSpacingTablet:Aa,titleLetterSpacingMobile:Ga,titleLetterSpacingType:Ma,descLetterSpacing:Ra,descLetterSpacingTablet:Ba,descLetterSpacingMobile:Ua,descLetterSpacingType:Ea,ctaLetterSpacing:Oa,ctaLetterSpacingTablet:La,ctaLetterSpacingMobile:Ha,ctaLetterSpacingType:Fa,secondCtaLetterSpacing:ja,secondCtaLetterSpacingTablet:za,secondCtaLetterSpacingMobile:Da,secondCtaLetterSpacingType:Ia,showIcon:Va,showSecondIcon:Wa,btncontentWidth:qa,btncontentWidthTablet:Za,btncontentWidthMobile:$a,btncontentWidthType:Ya,inheritFromTheme:Ka,ctaButtonType:Ja,secCtaButtonType:Xa,secInheritFromTheme:Qa,enableMultilineParagraph:el}=a,al=uagb_blocks_info.current_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,Fm({},ol,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:V,label:"htmlTag"},setAttributes:t,options:[{value:"div",label:Object(r.__)("div","ultimate-addons-for-gutenberg")},{value:"header",label:Object(r.__)("header","ultimate-addons-for-gutenberg")},{value:"footer",label:Object(r.__)("footer","ultimate-addons-for-gutenberg")},{value:"main",label:Object(r.__)("main","ultimate-addons-for-gutenberg")},{value:"article",label:Object(r.__)("article","ultimate-addons-for-gutenberg")},{value:"section",label:Object(r.__)("section","ultimate-addons-for-gutenberg")},{value:"aside",label:Object(r.__)("aside","ultimate-addons-for-gutenberg")},{value:"nav",label:Object(r.__)("nav","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{checked:el,onChange:()=>t({enableMultilineParagraph:!el}),label:Object(r.__)("Enable Semantic Markup","ultimate-addons-for-gutenberg"),help:el?"":Object(r.__)("Use Core/Paragraph: Improve accessibility and SEO with semantic HTML markup. Note: Existing Rich Text content will not be preserved.","ultimate-addons-for-gutenberg")}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"textAlign"},tablet:{value:Dt,label:"textAlignTablet"},mobile:{value:Nt,label:"textAlignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:De,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],showIcons:!1,help:Object(r.__)("Note: Choose on what breakpoint the CTA button will stack.","ultimate-addons-for-gutenberg")}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:s,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")}]}),"all"!==W&&"none"!==W&&React.createElement(React.Fragment,null,("text"===W||"button"===W)&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Content Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:ce,label:"contentWidth"},tablet:{value:ue,label:"contentWidthTablet"},mobile:{value:pe,label:"contentWidthMobile"}},min:0,max:100,unit:{value:de,label:"contentWidthType"},units:[{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}))),"all"!==W&&"none"!==W&&"text"!==W&&React.createElement(React.Fragment,null,Xe&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Buttons Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:qa,label:"btncontentWidth"},tablet:{value:Za,label:"btncontentWidthTablet"},mobile:{value:$a,label:"btncontentWidthMobile"}},min:20,max:100,unit:{value:Ya,label:"btncontentWidthType"},units:[{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t})))),React.createElement(je,{title:Object(r.__)("Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:W,label:"ctaType"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"button",label:Object(r.__)("Button","ultimate-addons-for-gutenberg")},{value:"all",label:Object(r.__)("Complete Box","ultimate-addons-for-gutenberg")}],showIcons:!1}),"button"===W&&React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:t,presets:Lm,presetInputType:"radioImage"}),React.createElement(Le.ToggleControl,{checked:Ka,onChange:()=>t({inheritFromTheme:!Ka}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Ka&&"Astra"===al&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ja,label:"ctaButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]})),"desktop"!==De&&"all"!==W&&"none"!==W&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:I,label:"buttonAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}],showIcons:!1}),"text"===W&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:q,data:{value:q,label:"ctaText"},setAttributes:t,onChange:e=>t({ctaText:e})})),"none"!==W&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),name:"ctaLink",enableDynamicContent:!0,value:Z,setAttributes:t,data:{value:Z,label:"ctaLink"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Window","ultimate-addons-for-gutenberg"),checked:$,onChange:()=>t({ctaTarget:!$})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Icon","ultimate-addons-for-gutenberg"),checked:Va,onChange:()=>t({showIcon:!Va})})),Va&&"all"!==W&&"none"!==W&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Y,onChange:e=>t({ctaIcon:e})}),""!==Y&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:K,label:"ctaIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:J,label:"ctaIconSpace"},tablet:{value:X,label:"ctaIconSpaceTablet"},mobile:{value:Q,label:"ctaIconSpaceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:t})))),"button"===W&&React.createElement(je,{title:Object(r.__)("Additional Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Additional Button","ultimate-addons-for-gutenberg"),checked:Xe,onChange:()=>t({enabledSecondCtaButton:!Xe})}),Xe&&React.createElement(React.Fragment,null,!Qa&&React.createElement(Hr,{setAttributes:t,presets:Hm,presetInputType:"radioImage"}),React.createElement(Le.ToggleControl,{checked:Qa,onChange:()=>t({secInheritFromTheme:!Qa}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Qa&&"Astra"===al&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Xa,label:"secCtaButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack Orientation","ultimate-addons-for-gutenberg"),data:{value:Ht,label:"stackBtn"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: Choose on what breakpoint the buttons will stack.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Gap Between Buttons","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ft,label:"gapBtn"},tablet:{value:jt,label:"gapBtnTablet"},mobile:{value:zt,label:"gapBtnMobile"}},min:0,max:200,displayUnit:!1,setAttributes:t}),React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:et,data:{value:et,label:"secondCtaLabel"},setAttributes:t,onChange:e=>t({secondCtaLabel:e})}),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,name:"secondCtaLink",value:Qe,setAttributes:t,data:{value:Qe,label:"secondCtaLink"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Window","ultimate-addons-for-gutenberg"),checked:tt,onChange:()=>t({secondCtaTarget:!tt})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Icon","ultimate-addons-for-gutenberg"),checked:Wa,onChange:()=>t({showSecondIcon:!Wa})}),Wa&&React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Et,onChange:e=>t({secondCtaIcon:e})}),Wa&&""!==Et&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:Ot,label:"secondCtaIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Lt,label:"secondCtaIconSpace"},tablet:{value:wa,label:"secondCtaIconSpaceTablet"},mobile:{value:Pa,label:"secondCtaIconSpaceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:t}))))),React.createElement(il,Fm({},nl,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Heading","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:o||"",data:{value:o,label:"titleColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:T,label:"titleLoadGoogleFonts"},fontFamily:{value:m,label:"titleFontFamily"},fontWeight:{value:y,label:"titleFontWeight"},fontStyle:{value:Ye,label:"titleFontStyle"},transform:{value:Ie,label:"titleTransform"},decoration:{value:Ve,label:"titleDecoration"},fontSizeType:{value:u,label:"titleFontSizeType"},fontSizeTypeTablet:{value:d,label:"titleFontSizeTypeTablet"},fontSizeTypeMobile:{value:p,label:"titleFontSizeTypeMobile"},fontSize:{value:c,label:"titleFontSize"},fontSizeMobile:{value:b,label:"titleFontSizeMobile"},fontSizeTablet:{value:g,label:"titleFontSizeTablet"},lineHeightType:{value:f,label:"titleLineHeightType"},lineHeight:{value:h,label:"titleLineHeight"},lineHeightMobile:{value:_,label:"titleLineHeightMobile"},lineHeightTablet:{value:v,label:"titleLineHeightTablet"},letterSpacing:{value:xa,label:"titleLetterSpacing"},letterSpacingTablet:{value:Aa,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Ga,label:"titleLetterSpacingMobile"},letterSpacingType:{value:Ma,label:"titleLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:O,label:"titleSpace"},tablet:{value:L,label:"titleSpaceTablet"},mobile:{value:H,label:"titleSpaceMobile"}},min:0,max:200,unit:{value:F,label:"titleSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:t})),React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:E,label:"descLoadGoogleFonts"},fontFamily:{value:A,label:"descFontFamily"},fontWeight:{value:G,label:"descFontWeight"},fontStyle:{value:Ke,label:"descFontStyle"},transform:{value:We,label:"descTransform"},decoration:{value:qe,label:"descDecoration"},fontSizeType:{value:S,label:"descFontSizeType"},fontSizeTypeTablet:{value:w,label:"descFontSizeTypeMobile"},fontSizeTypeMobile:{value:k,label:"descFontSizeTypeMobile"},fontSize:{value:C,label:"descFontSize"},fontSizeMobile:{value:P,label:"descFontSizeMobile"},fontSizeTablet:{value:x,label:"descFontSizeTablet"},lineHeightType:{value:M,label:"descLineHeightType"},lineHeight:{value:R,label:"descLineHeight"},lineHeightMobile:{value:U,label:"descLineHeightMobile"},lineHeightTablet:{value:B,label:"descLineHeightTablet"},letterSpacing:{value:Ra,label:"descLetterSpacing"},letterSpacingTablet:{value:Ba,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:Ua,label:"descLetterSpacingMobile"},letterSpacingType:{value:Ea,label:"descLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:j,label:"descSpace"},tablet:{value:z,label:"descSpaceTablet"},mobile:{value:D,label:"descSpaceMobile"}},min:0,max:200,unit:{value:N,label:"descSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:t})),"all"!==W&&"none"!==W&&!Ka&&React.createElement(je,{title:Object(r.__)("Button","ultimate-addons-for-gutenberg"),initialOpen:!1},"text"===W&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"ctaBtnLinkColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:Ne||"",data:{value:Ne,label:"ctaLinkHoverColor"},setAttributes:t}))}),"button"===W&&!Ka&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"ctaBtnLinkColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:me,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===me&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_e||"",data:{value:_e,label:"ctaBgColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:Ne||"",data:{value:Ne,label:"ctaLinkHoverColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:ye,label:"ctaBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===ye&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ve||"",data:{value:ve,label:"ctaBgHoverColor"},setAttributes:t}))})),("text"===W||"button"===W&&!Ka)&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:se,label:"ctaLoadGoogleFonts"},fontFamily:{value:ne,label:"ctaFontFamily"},fontWeight:{value:re,label:"ctaFontWeight"},fontStyle:{value:Je,label:"ctaFontStyle"},transform:{value:Ze,label:"ctaTransform"},decoration:{value:$e,label:"ctaDecoration"},fontSizeType:{value:te,label:"ctaFontSizeType"},fontSizeTypeTablet:{value:le,label:"ctaFontSizeTypeTablet"},fontSizeTypeMobile:{value:ae,label:"ctaFontSizeTypeMobile"},fontSize:{value:ee,label:"ctaFontSize"},fontSizeMobile:{value:ie,label:"ctaFontSizeMobile"},fontSizeTablet:{value:oe,label:"ctaFontSizeTablet"},letterSpacing:{value:Oa,label:"ctaLetterSpacing"},letterSpacingTablet:{value:La,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:Ha,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:Fa,label:"ctaLetterSpacingType"},disableLineHeight:!0}),"button"===W&&!Ka&&React.createElement(React.Fragment,null,React.createElement(Hi,{setAttributes:t,prefix:"btn",attributes:a,deviceType:l,disabledBorderTitle:!1}),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Te,label:"ctaTopPadding"},valueRight:{value:Se,label:"ctaRightPadding"},valueBottom:{value:ke,label:"ctaBottomPadding"},valueLeft:{value:we,label:"ctaLeftPadding"},valueTopTablet:{value:Pe,label:"ctaTopPaddingTablet"},valueRightTablet:{value:xe,label:"ctaRightPaddingTablet"},valueBottomTablet:{value:Ae,label:"ctaBottomPaddingTablet"},valueLeftTablet:{value:Ge,label:"ctaLeftPaddingTablet"},valueTopMobile:{value:Me,label:"ctaTopPaddingMobile"},valueRightMobile:{value:Re,label:"ctaRightPaddingMobile"},valueBottomMobile:{value:Be,label:"ctaBottomPaddingMobile"},valueLeftMobile:{value:Ue,label:"ctaLeftPaddingMobile"},unit:{value:Oe,label:"ctaPaddingUnit"},mUnit:{value:He,label:"mobileCTAPaddingUnit"},tUnit:{value:Fe,label:"tabletCTAPaddingUnit"},attributes:a,setAttributes:t,link:{value:ze,label:"ctaPaddingLink"}})))),"button"===W&&Xe&&!Qa&&React.createElement(je,{title:Object(r.__)("Additional Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:at,label:"secondCtaLoadGoogleFonts"},fontFamily:{value:lt,label:"secondCtaFontFamily"},fontWeight:{value:it,label:"secondCtaFontWeight"},fontStyle:{value:ot,label:"secondCtaFontStyle"},transform:{value:nt,label:"secondCtaFontTransform"},decoration:{value:rt,label:"secondCtaFontDecoration"},fontSizeType:{value:Gt,label:"secondCtaFontSizeType"},fontSizeTypeTablet:{value:Rt,label:"secondCtaFontSizeTypeTablet"},fontSizeTypeMobile:{value:Mt,label:"secondCtaFontSizeTypeMobile"},fontSize:{value:At,label:"secondCtaFontSize"},fontSizeMobile:{value:Bt,label:"secondCtaFontSizeMobile"},fontSizeTablet:{value:Ut,label:"secondCtaFontSizeTablet"},letterSpacing:{value:ja,label:"secondCtaLetterSpacing"},letterSpacingTablet:{value:za,label:"secondCtaLetterSpacingTablet"},letterSpacingMobile:{value:Da,label:"secondCtaLetterSpacingMobile"},letterSpacingType:{value:Ia,label:"secondCtaLetterSpacingType"},disableLineHeight:!0}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:kt||"",data:{value:kt,label:"secondCtaColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:fe,label:"secondCtaBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===fe&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:wt||"",data:{value:wt,label:"secondCtaBackground"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:Pt||"",data:{value:Pt,label:"secondCtaHoverColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:he,label:"secondCtaBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===he&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:xt||"",data:{value:xt,label:"secondCtaHoverBackground"},setAttributes:t})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:t,prefix:"secondCta",attributes:a,deviceType:l,disabledBorderTitle:!1}),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:st,label:"secondCtaTopPadding"},valueRight:{value:ct,label:"secondCtaRightPadding"},valueBottom:{value:ut,label:"secondCtaBottomPadding"},valueLeft:{value:pt,label:"secondCtaLeftPadding"},valueTopTablet:{value:yt,label:"secondCtaTopTabletPadding"},valueRightTablet:{value:ft,label:"secondCtaRightTabletPadding"},valueBottomTablet:{value:ht,label:"secondCtaBottomTabletPadding"},valueLeftTablet:{value:vt,label:"secondCtaLeftTabletPadding"},valueTopMobile:{value:dt,label:"secondCtaTopMobilePadding"},valueRightMobile:{value:bt,label:"secondCtaRightMobilePadding"},valueBottomMobile:{value:gt,label:"secondCtaBottomMobilePadding"},valueLeftMobile:{value:mt,label:"secondCtaLeftMobilePadding"},unit:{value:_t,label:"secondCtaPaddingUnit"},mUnit:{value:Tt,label:"secondCtaMobilePaddingUnit"},tUnit:{value:Ct,label:"secondCtaTabletPaddingUnit"},attributes:a,setAttributes:t,link:{value:St,label:"secondCtaPaddingLink"}}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},("right"!==i&&"none"===De&&"Desktop"===l||"right"!==Dt&&"Tablet"===l&&"none"===De||"right"!==Nt&&"Mobile"===l&&"none"===De)&&React.createElement(tl,{label:Object(r.__)("Content And Buttons Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ta,label:"buttonRightSpace"},tablet:{value:Ca,label:"buttonRightSpaceTablet"},mobile:{value:Sa,label:"buttonRightSpaceMobile"}},min:0,max:200,unit:{value:ka,label:"buttonRightSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:t}),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:oa,label:"overallBlockTopPadding"},valueRight:{value:na,label:"overallBlockRightPadding"},valueBottom:{value:ra,label:"overallBlockBottomPadding"},valueLeft:{value:sa,label:"overallBlockLeftPadding"},valueTopTablet:{value:ba,label:"overallBlockTopTabletPadding"},valueRightTablet:{value:ga,label:"overallBlockRightTabletPadding"},valueBottomTablet:{value:ma,label:"overallBlockBottomTabletPadding"},valueLeftTablet:{value:ya,label:"overallBlockLeftTabletPadding"},valueTopMobile:{value:ca,label:"overallBlockTopMobilePadding"},valueRightMobile:{value:ua,label:"overallBlockRightMobilePadding"},valueBottomMobile:{value:pa,label:"overallBlockBottomMobilePadding"},valueLeftMobile:{value:da,label:"overallBlockLeftMobilePadding"},unit:{value:fa,label:"overallBlockPaddingUnit"},mUnit:{value:ha,label:"overallBlockMobilePaddingUnit"},tUnit:{value:va,label:"overallBlockTabletPaddingUnit"},attributes:a,setAttributes:t,link:{value:_a,label:"overallBlockPaddingLink"}})),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:It,label:"overallBlockTopMargin"},valueRight:{value:Vt,label:"overallBlockRightMargin"},valueBottom:{value:Wt,label:"overallBlockBottomMargin"},valueLeft:{value:qt,label:"overallBlockLeftMargin"},valueTopTablet:{value:Jt,label:"overallBlockTopTabletMargin"},valueRightTablet:{value:Xt,label:"overallBlockRightTabletMargin"},valueBottomTablet:{value:Qt,label:"overallBlockBottomTabletMargin"},valueLeftTablet:{value:ea,label:"overallBlockLeftTabletMargin"},valueTopMobile:{value:Zt,label:"overallBlockTopMobileMargin"},valueRightMobile:{value:$t,label:"overallBlockRightMobileMargin"},valueBottomMobile:{value:Yt,label:"overallBlockBottomMobileMargin"},valueLeftMobile:{value:Kt,label:"overallBlockLeftMobileMargin"},unit:{value:ta,label:"overallBlockMarginUnit"},mUnit:{value:aa,label:"overallBlockMobileMarginUnit"},tUnit:{value:la,label:"overallBlockTabletMarginUnit"},attributes:a,setAttributes:t,link:{value:ia,label:"overallBlockMarginLink"}})))),React.createElement(il,Fm({},rl,{parentProps:e}),Ds(Om,t,a)))))}),Dm=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:t.titleTag,placeholder:Object(r.__)("Write a Heading","ultimate-addons-for-gutenberg"),value:t.ctaTitle,className:"uagb-cta__title",onChange:e=>a({ctaTitle:e}),multiline:!1,onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])}):React.createElement(ge.RichText.Content,{tagName:t.titleTag,value:t.ctaTitle,className:"uagb-cta__title"})},Nm=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o}=e,{enableMultilineParagraph:n,description:s}=t,c={allowedBlocks:["core/paragraph"],template:[["core/paragraph",{content:s}]],templateLock:!1,renderAppender:!1};if("not_set"===a&&!n)return React.createElement(ge.RichText.Content,{tagName:"p",value:t.description,className:"uagb-cta__desc"});const u=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{tagName:"p",value:t.description,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-cta__desc",onChange:e=>a({description:e,tempDesc:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])})),p=Object(ge.useInnerBlocksProps)({className:"uagb-cta__desc"},c);return React.createElement(React.Fragment,null,n?React.createElement("div",p):u)},Im=e=>{var t,a;const{attributes:l,setAttributes:i}=e;let o="_self";const n="noopener noreferrer";l.ctaTarget&&(o="_blank");const r=l.inheritFromTheme&&"secondary"===l.ctaButtonType,s=r?"ast-outline-button":"wp-block-button__link",c=r?{borderWidth:"revert-layer"}:{},u=r?"div":"a";let p="";l.showIcon&&""!==l.ctaIcon&&(p="not_set"!==i?Ce(l.ctaIcon,i):Ce(l.ctaIcon));let d="/",b=e=>{e.preventDefault()};return("not_set"===i||null!=l&&null!==(t=l.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable)&&(d=l.ctaLink||"#",b=!1),"not_set"!==i?React.createElement(React.Fragment,null,("button"===l.ctaType||"text"===l.ctaType)&&React.createElement(u,{href:d,className:Be()("uagb-cta__button-link-wrapper","button"===l.ctaType?s:""),target:o,rel:n,style:c,onClick:b},"before"===l.ctaIconPosition&&p,React.createElement(ge.RichText,{value:l.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>{i({ctaText:e})},allowedFormats:[]}),"after"===l.ctaIconPosition&&p)):React.createElement(React.Fragment,null,("button"===l.ctaType||"text"===l.ctaType)&&React.createElement("a",{href:d,className:Be()("uagb-cta__button-link-wrapper","button"===l.ctaType?s:""),target:o,rel:n,style:c,onClick:b},"before"===l.ctaIconPosition&&p,React.createElement(ge.RichText.Content,{value:l.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,"")}),"after"===l.ctaIconPosition&&p))},Vm=e=>{const{attributes:t,setAttributes:a}=e;let l="_self";const i="noopener noreferrer";t.secondCtaTarget&&(l="_blank");const o=t.secInheritFromTheme&&"secondary"===t.secCtaButtonType,n=o?"ast-outline-button":"wp-block-button__link",r=o?{borderWidth:"revert-layer"}:{},s=o?"div":"a";let c="";t.showSecondIcon&&""!==t.secondCtaIcon&&(c="not_set"!==a?Ce(t.secondCtaIcon,a):Ce(t.secondCtaIcon));let u="/",p=e=>{e.preventDefault()};return"not_set"===a&&(u=t.secondCtaLink,p=!1),"not_set"!==a?React.createElement(React.Fragment,null,React.createElement(s,{href:u,className:Be()("uagb-cta-second__button",n),target:l,rel:i,style:r,onClick:p},"before"===t.secondCtaIconPosition&&c,React.createElement(ge.RichText,{value:t.secondCtaLabel.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>{a({secondCtaLabel:e})},allowedFormats:[]}),"after"===t.secondCtaIconPosition&&c)):React.createElement(React.Fragment,null,React.createElement("a",{href:u,className:Be()("uagb-cta-second__button",n),target:l,rel:i,style:r,onClick:p},"before"===t.secondCtaIconPosition&&c,React.createElement(ge.RichText.Content,{value:t.secondCtaLabel.replace(/<(?!br\s*V?)[^>]+>/g,"")}),"after"===t.secondCtaIconPosition&&c))},Wm=a(105),qm=0,Zm={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},$m={};$m.locals=Wm.a.locals||{},$m.use=function(){return qm++||(jm=we()(Wm.a,Zm)),$m},$m.unuse=function(){qm>0&&!--qm&&(jm(),jm=null)};var Ym=$m,Km=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Ym.use(),()=>{Ym.unuse()}),[]);const{setAttributes:t,attributes:a,deviceType:l}=e,{block_id:i,ctaType:o,enabledSecondCtaButton:n,htmlTag:r}=a,s=r||"div",c=React.createElement(Im,{attributes:a,setAttributes:t}),u="button"===o&&n?React.createElement(Vm,{attributes:a,setAttributes:t}):"",p=React.createElement(Nm,{attributes:a,setAttributes:t,props:e}),d=React.createElement(Dm,{attributes:a,setAttributes:t,props:e}),b=()=>React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},d,p),React.createElement("div",{className:"uagb-cta__buttons"},c,u));return React.createElement(s,{className:Be()("uagb-block-"+i,"uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-cta__outer-wrap","button"===o?"wp-block-button":"")},"all"===o&&React.createElement(React.Fragment,null,React.createElement("a",{href:"/",className:"uagb-cta__link-to-all",rel:"noopener noreferrer",onClick:e=>e.preventDefault()}," "),b()),"all"!==o&&b())}),Jm=Object(B.memo)(e=>{let{attributes:t}=e;const{secondCtaLoadGoogleFonts:a,ctaLoadGoogleFonts:l,titleLoadGoogleFonts:i,descLoadGoogleFonts:o,secondCtaFontFamily:n,secondCtaFontWeight:r,ctaFontFamily:s,ctaFontWeight:c,titleFontFamily:u,titleFontWeight:p,descFontFamily:d,descFontWeight:b}=t;let g,m,y,f;if(!0===a){const e={google:{families:[n+(r?":"+r:"")]}};f=React.createElement(O,{config:e})}if(!0===l){const e={google:{families:[s+(c?":"+c:"")]}};g=React.createElement(O,{config:e})}if(!0===i){const e={google:{families:[u+(p?":"+p:"")]}};m=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[d+(b?":"+b:"")]}};y=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,g,f,m,y)}),Xm=Object(L.compose)(ls,fe,uc)(e=>{const{isSelected:t,setAttributes:a,attributes:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n,ctaPosition:r,stack:s,ctaLeftSpace:c,overallBlockLeftMargin:u,textAlign:p,ctaBorderStyle:d,ctaBorderWidth:b,ctaBorderColor:g,ctaBorderhoverColor:m,ctaBorderRadius:y,globalBlockStyleId:f,enableMultilineParagraph:h,tempDesc:v},clientId:_,name:T,deviceType:C}=e;Object(B.useEffect)(()=>{"none"===s&&"right"===r?a({stack:"none"}):"none"===s&&"below-title"===r&&a({stack:"desktop"}),f||(c&&void 0===u&&"left"===p&&"right"===r&&a({overallBlockLeftMargin:c}),h&&a({description:v}),(b||y||g||m||d)&&ue("btn",{label:"ctaBorderWidth",value:b},{label:"ctaBorderRadius",value:y},{label:"ctaBorderColor",value:g},{label:"ctaBorderhoverColor",value:m},{label:"ctaBorderStyle",value:d},a,l))},[]),Object(B.useEffect)(()=>{ys()},[C]),Object(B.useEffect)(()=>{he(e)},[i,o,n,C]);const S=Object(B.useMemo)(()=>Om(l,_,T,C),[l,C]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:S}),React.createElement(Jm,{attributes:l}),t&&React.createElement(zm,e),React.createElement(Km,e))}),Qm=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"p",value:t.description,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-cta__desc",onChange:e=>a({description:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])}):React.createElement(ge.RichText.Content,{tagName:"p",value:t.description,className:"uagb-cta__desc"})},ey=function(e){let t="";return t+="uagb-cta__block ",t+="uagb-cta__icon-position-"+e.ctaPosition+" ","right"===e.ctaPosition&&(t+="uagb-cta__content-right "),"right"===e.ctaPosition&&"none"!==e.stack&&(t+="uagb-cta__content-stacked-"+e.stack+" "),"below-title"!==e.ctaPosition&&(t+="uagb-cta__button-valign-"+e.buttonAlign+" "),"text"!==e.ctaType&&"button"!==e.ctaType&&(t+="uagb-cta__button-type-none "),[t]},ty=e=>{const{attributes:t,setAttributes:a}=e,l="uagb-cta__block-link uagb-cta__button-link-wrapper uagb-cta-typeof-"+t.ctaType;let i="_self";t.ctaTarget&&(i="_blank");let o="";""!==t.ctaIcon&&(o=React.createElement("span",{className:Be()(`uagb-cta-${t.ctaType}-icon`,"uagb-cta__align-button-"+t.ctaIconPosition)},React.createElement("i",{className:t.ctaIcon})));let n="javascript:void(0)";return"not_set"===a&&(n=t.ctaLink),React.createElement("div",{className:"uagb-cta__link-wrapper uagb-cta__block-link-style"},("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("div",{className:"uagb-cta__button-wrapper"},React.createElement("a",{href:n,className:l,target:i,rel:"noopener noreferrer"},"before"===t.ctaIconPosition&&o,React.createElement("span",{className:"uagb-cta__link-content-inner"},React.createElement("span",null,t.ctaText)),"after"===t.ctaIconPosition&&o)))},ay=e=>{const{attributes:t,setAttributes:a}=e;let l="_self";t.ctaTarget&&(l="_blank");let i="";""!==t.ctaIcon&&(i=React.createElement("span",{className:Be()(`uagb-cta-${t.ctaType}-icon`,"uagb-cta__align-button-"+t.ctaIconPosition,"uagb-cta-with-svg")},kb(t.ctaIcon)));let o="/";return"not_set"===a&&(o=t.ctaLink),React.createElement("div",{className:"uagb-cta__link-wrapper uagb-cta__block-link-style"},("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("div",{className:Be()("uagb-cta__button-wrapper",t.inheritFromTheme&&"button"===t.ctaType?"wp-block-button":null)},React.createElement("a",{href:o,className:Be()("uagb-cta__button-link-wrapper",t.inheritFromTheme?null:"uagb-cta__block-link",t.inheritFromTheme?null:"uagb-cta-typeof-"+t.ctaType,t.inheritFromTheme&&"button"===t.ctaType?"wp-block-button__link":null),target:l,rel:"noopener noreferrer"},"before"===t.ctaIconPosition&&i,React.createElement("span",{className:"uagb-cta__link-content-inner"},React.createElement("span",null,t.ctaText)),"after"===t.ctaIconPosition&&i)))},ly={showIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},showSecondIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-second-show-icon"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-bg-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-bg-hover-type"}},secondCtaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"second-btn-bg-type"}},secondCtaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"second-btn-bg-type"}},inheritFromTheme:{type:"boolean",default:!1},ctaTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Call To Action"},classMigrate:{type:"boolean",default:!1},description:{source:"html",selector:"p",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."},textAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"main-title-align"}},titleColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},descColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},ctaPosition:{type:"string",default:"right",UAGCopyPaste:{styleType:"btn-position"}},titleTag:{type:"string",default:"h3"},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},descFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},titleSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},titleSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},titleSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-type"}},descSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-margin"}},descSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},descSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},descSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-bottom-margin-unit-type"}},block_id:{type:"string",default:"not_set"},buttonAlign:{type:"string",default:"middle",UAGCopyPaste:{styleType:"btn-align"}},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaType:{type:"string",default:"button"},ctaText:{type:"html",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"},default:14},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",UAGCopyPaste:{styleType:"btn-font-family"},default:"Default"},ctaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"},default:"normal"},ctaTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},contentWidth:{type:"number",default:70,UAGCopyPaste:{styleType:"desc-width"}},contentWidthTablet:{type:"number",UAGCopyPaste:{styleType:"desc-width"}},contentWidthMobile:{type:"number",UAGCopyPaste:{styleType:"desc-width"}},contentWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"desc-width-type"}},ctaBtnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBtnVertPadding:{type:"number",UAGCopyPaste:{styleType:"btn-vertical-padding"},default:""},ctaBtnHrPadding:{type:"number",UAGCopyPaste:{styleType:"btn-horizontal-padding"},default:""},stack:{type:"string",default:"tablet"},ctaLeftSpace:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-right-margin"}},ctaTopPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},ctaBottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},ctaLeftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},ctaRightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},ctaLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},ctaRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},ctaTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},ctaBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},ctaLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},ctaRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},ctaTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},ctaBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},ctaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobileCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},ctaPaddingLink:{type:"boolean",default:!1},enabledSecondCtaButton:{type:"boolean",default:!1},secondCtaLabel:{type:"html",default:"Click Here"},secondCtaLink:{type:"string",default:"#"},secondCtaTarget:{type:"boolean",default:!1},secondCtaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},secondCtaFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},secondCtaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},secondCtaFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"btn-font-style"}},secondCtaFontTransform:{type:"string",UAGCopyPaste:{styleType:"btn-font-transform"}},secondCtaFontDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-font-decoration"}},secondCtaTopPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},secondCtaRightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},secondCtaBottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},secondCtaLeftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},secondCtaTopMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},secondCtaRightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},secondCtaBottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},secondCtaLeftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},secondCtaTopTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},secondCtaRightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},secondCtaBottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},secondCtaLeftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},secondCtaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},secondCtaMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},secondCtaTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},secondCtaPaddingLink:{type:"boolean",default:!1},secondCtaBorderWidth:{type:"number",default:""},secondCtaBorderRadius:{type:"number",default:""},secondCtaBorderStyle:{type:"string",default:"none"},secondCtaBorderColor:{type:"string",default:""},secondCtaBorderHColor:{type:"string",default:""},secondCtaColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},secondCtaBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},secondCtaHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},secondCtaHoverBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},secondCtaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-size"},default:14},secondCtaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},secondCtaFontSizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},secondCtaFontSizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},secondCtaIcon:{type:"string",default:""},secondCtaIconPosition:{type:"string",default:"after"},secondCtaIconSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-icon-space"}},secondCtaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},secondCtaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},isPreview:{type:"boolean",default:!1},stackBtn:{type:"string",default:"none"},gapBtn:{type:"number",default:15},gapBtnTablet:{type:"number"},gapBtnMobile:{type:"number"},textAlignTablet:{type:"string",default:"center"},textAlignMobile:{type:"string",default:"center"},overallBlockTopPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},overallBlockRightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},overallBlockBottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},overallBlockLeftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},overallBlockTopMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},overallBlockRightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},overallBlockBottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},overallBlockLeftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},overallBlockTopTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},overallBlockRightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},overallBlockBottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},overallBlockLeftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},overallBlockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},overallBlockMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},overallBlockTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},overallBlockPaddingLink:{type:"boolean",default:!1},overallBlockTopMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},overallBlockRightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},overallBlockBottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},overallBlockLeftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},overallBlockTopMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},overallBlockRightMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},overallBlockBottomMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},overallBlockLeftMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},overallBlockTopTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},overallBlockRightTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},overallBlockBottomTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},overallBlockLeftTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},overallBlockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit"}},overallBlockMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-mobile"}},overallBlockTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-tablet"}},overallBlockMarginLink:{type:"boolean",default:!1},buttonRightSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-button-bottom-margin"}},buttonRightSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"main-button-bottom-margin-tablet"}},buttonRightSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"main-button-bottom-margin-mobile"}},buttonRightSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-button-unit-type"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},...ce("btn"),...ce("secondCta"),titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},ctaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},secondCtaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"secondCta-letter-spacing"}},secondCtaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"secondCta-letter-spacing-tablet"}},secondCtaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"secondCta-letter-spacing-mobile"}},secondCtaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"secondCta-letter-spacing-type"}}},iy=e=>{const{attributes:t,setAttributes:a}=e;let l="_self";const i="noopener noreferrer";t.ctaTarget&&(l="_blank");let o="";t.showIcon&&""!==t.ctaIcon&&(o="not_set"!==a?Ce(t.ctaIcon,a):Ce(t.ctaIcon));let n="/",r=e=>{e.preventDefault()};return"not_set"===a&&(n=t.ctaLink,r=!1),"not_set"!==a?React.createElement(React.Fragment,null,("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("a",{href:n,className:Be()("uagb-cta__button-link-wrapper","button"===t.ctaType?"wp-block-button__link":""),target:l,rel:i,onClick:r},"before"===t.ctaIconPosition&&o,React.createElement(ge.RichText,{value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&o)):React.createElement(React.Fragment,null,("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("a",{href:n,className:Be()("uagb-cta__button-link-wrapper","button"===t.ctaType?"wp-block-button__link":""),target:l,rel:i,onClick:r},"before"===t.ctaIconPosition&&o,React.createElement(ge.RichText.Content,{value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,"")}),"after"===t.ctaIconPosition&&o))};const oy=ce("btn"),ny=ce("secondCta");var ry=[{attributes:ly,save(e){const{ctaPosition:t,block_id:a,ctaType:l,ctaLink:i,ctaTarget:o,className:n,ctaTitle:r,description:s}=e.attributes,c=React.createElement(ty,{attributes:e.attributes,setAttributes:"not_set"}),u=React.createElement(React.Fragment,null,""!==s&&React.createElement("div",{className:"uagb-cta-text-wrap"},React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"}))),p=React.createElement(React.Fragment,null,""!==r&&React.createElement("div",{className:"uagb-cta__title-wrap"},React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-cta__content-wrap",...ey(e.attributes))},React.createElement("div",{className:"uagb-cta__left-right-wrap"},"left"==t&&c,React.createElement("div",{className:"uagb-cta__content"},"above-title"==t&&React.createElement(React.Fragment,null,c,p,u),"below-title"==t&&React.createElement(React.Fragment,null,p,u,c),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,p,u)),"right"==t&&c)));let b="";return o&&(b="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(n,"uagb-cta__outer-wrap"),id:"uagb-cta-block-"+a},"all"==l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__block-link-wrap uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==l&&d))}},{attributes:ly,save(e){const{ctaPosition:t,block_id:a,ctaType:l,ctaLink:i,ctaTarget:o,className:n,ctaTitle:r,description:s}=e.attributes,c=React.createElement(ay,{attributes:e.attributes,setAttributes:"not_set"}),u=React.createElement(React.Fragment,null,""!==s&&React.createElement("div",{className:"uagb-cta-text-wrap"},React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"}))),p=React.createElement(React.Fragment,null,""!==r&&React.createElement("div",{className:"uagb-cta__title-wrap"},React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-cta__content-wrap",...ey(e.attributes))},React.createElement("div",{className:"uagb-cta__left-right-wrap"},"left"==t&&c,React.createElement("div",{className:"uagb-cta__content"},"above-title"==t&&React.createElement(React.Fragment,null,c,p,u),"below-title"==t&&React.createElement(React.Fragment,null,p,u,c),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,p,u)),"right"==t&&c)));let b="";return o&&(b="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(n,"uagb-cta__outer-wrap"),id:"uagb-cta-block-"+a},"all"==l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__block-link-wrap uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==l&&d))}},{attributes:ly,save(e){const{ctaPosition:t,block_id:a,ctaType:l,ctaLink:i,ctaTarget:o,className:n,ctaTitle:r,description:s}=e.attributes,c=React.createElement(ay,{attributes:e.attributes,setAttributes:"not_set"}),u=React.createElement(React.Fragment,null,""!==s&&React.createElement("div",{className:"uagb-cta-text-wrap"},React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"}))),p=React.createElement(React.Fragment,null,""!==r&&React.createElement("div",{className:"uagb-cta__title-wrap"},React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-cta__content-wrap",...ey(e.attributes))},React.createElement("div",{className:"uagb-cta__left-right-wrap"},"left"==t&&c,React.createElement("div",{className:"uagb-cta__content"},"above-title"==t&&React.createElement(React.Fragment,null,c,p,u),"below-title"==t&&React.createElement(React.Fragment,null,p,u,c),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,p,u)),"right"==t&&c)));let b="";return o&&(b="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(n,"uagb-cta__outer-wrap","uagb-block-"+a)},"all"==l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__block-link-wrap uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==l&&d))}},{attributes:ly,save(e){const{block_id:t,ctaType:a,ctaLink:l,ctaTarget:i,ctaTitle:o,description:n,enabledSecondCtaButton:r}=e.attributes,s=React.createElement(Im,{attributes:e.attributes,setAttributes:"not_set"}),c="button"===a&&r?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",u=React.createElement(React.Fragment,null,""!==n&&React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"})),p=React.createElement(React.Fragment,null,""!==o&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),d=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},p,u),React.createElement("div",{className:"uagb-cta__buttons"},s,c));let b="";return i&&(b="_blank"),React.createElement("div",{className:Be()("uagb-block-"+t,"button"===a?"wp-block-button":"")},"all"===a&&React.createElement(React.Fragment,null,React.createElement("a",{href:l,className:"uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==a&&d)}},{attributes:ly,saveV2_7_0:function(e){const{block_id:t,ctaType:a,ctaLink:l,ctaTarget:i,ctaTitle:o,description:n,enabledSecondCtaButton:r}=e.attributes,s=React.createElement(iy,{attributes:e.attributes,setAttributes:"not_set"}),c="button"===a&&r?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",u=React.createElement(React.Fragment,null,""!==n&&React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"})),p=React.createElement(React.Fragment,null,""!==o&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),d=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},p,u),React.createElement("div",{className:"uagb-cta__buttons"},s,c));let b="";return i&&(b="_blank"),React.createElement("div",{className:Be()("uagb-block-"+t,"button"===a?"wp-block-button":"")},"all"===a&&React.createElement(React.Fragment,null,React.createElement("a",{href:l,className:"uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==a&&d)}},{attributes:{inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},ctaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"cta-btn-type"}},secCtaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"sec-cta-btn-type"}},secInheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},ctaTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},description:{source:"html",selector:"p",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},textAlign:{type:"string",default:"left",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-align"}},titleColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},descColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},ctaPosition:{type:"string",default:"right",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-position"}},titleTag:{type:"string",default:"h3"},titleFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},titleFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},titleFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontFamily:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},titleTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},descFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},descFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},descFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},descLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},descLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},titleSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},titleSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},titleSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-type"}},descSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},descSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},descSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},descSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-bottom-margin-unit-type"}},block_id:{type:"string",default:"not_set"},buttonAlign:{type:"string",default:"middle",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},ctaTarget:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},showSecondIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-second-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},htmlTag:{type:"string",default:"div"},ctaType:{type:"string",default:"button"},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:"#"},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"},default:"Default"},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"},default:"normal"},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},contentWidth:{type:"number",default:70,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},contentWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},contentWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},contentWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"desc-width-type"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-bg-type"}},ctaBgHoverType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-type"}},secondCtaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"second-btn-bg-type"}},secondCtaBgHoverType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"second-btn-bg-type"}},ctaBgColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBtnVertPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"},default:""},ctaBtnHrPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"},default:""},stack:{type:"string",default:"tablet"},ctaLeftSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},ctaTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},ctaBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},ctaLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},ctaRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},ctaLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},ctaRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},ctaTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},ctaBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},ctaLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},ctaRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},ctaTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},ctaBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},ctaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobileCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},ctaPaddingLink:{type:"boolean",default:!1},enabledSecondCtaButton:{type:"boolean",default:!1},secondCtaLabel:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},secondCtaLink:{type:"string",default:"#"},secondCtaTarget:{type:"boolean",default:!1},secondCtaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},secondCtaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},secondCtaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},secondCtaFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},secondCtaFontTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-transform"}},secondCtaFontDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-decoration"}},secondCtaTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},secondCtaRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},secondCtaBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},secondCtaLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},secondCtaTopMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},secondCtaRightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},secondCtaBottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},secondCtaLeftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},secondCtaTopTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},secondCtaRightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},secondCtaBottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},secondCtaLeftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},secondCtaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},secondCtaMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},secondCtaTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},secondCtaPaddingLink:{type:"boolean",default:!1},secondCtaBorderWidth:{type:"number",default:""},secondCtaBorderRadius:{type:"number",default:""},secondCtaBorderStyle:{type:"string",default:"none"},secondCtaBorderColor:{type:"string",default:""},secondCtaBorderHColor:{type:"string",default:""},secondCtaColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},secondCtaBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},secondCtaHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},secondCtaHoverBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},secondCtaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"},default:14},secondCtaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},secondCtaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},secondCtaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},secondCtaFontSizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},secondCtaFontSizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},secondCtaIcon:{type:"string",default:"right-long"},secondCtaIconPosition:{type:"string",default:"after"},secondCtaIconSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},secondCtaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},secondCtaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},isPreview:{type:"boolean",default:!1},stackBtn:{type:"string",default:"none"},gapBtn:{type:"number",default:15},gapBtnTablet:{type:"number"},gapBtnMobile:{type:"number"},textAlignTablet:{type:"string",default:"center"},textAlignMobile:{type:"string",default:"center"},overallBlockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},overallBlockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},overallBlockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},overallBlockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},overallBlockTopMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},overallBlockRightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},overallBlockBottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},overallBlockLeftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},overallBlockTopTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},overallBlockRightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},overallBlockBottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},overallBlockLeftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},overallBlockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},overallBlockMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},overallBlockTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},overallBlockPaddingLink:{type:"boolean",default:!1},overallBlockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},overallBlockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},overallBlockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},overallBlockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},overallBlockTopMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},overallBlockRightMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},overallBlockBottomMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},overallBlockLeftMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},overallBlockTopTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},overallBlockRightTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},overallBlockBottomTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},overallBlockLeftTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},overallBlockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit"}},overallBlockMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-mobile"}},overallBlockTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-tablet"}},overallBlockMarginLink:{type:"boolean",default:!1},buttonRightSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-button-bottom-margin"}},buttonRightSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-button-bottom-margin-tablet"}},buttonRightSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-button-bottom-margin-mobile"}},buttonRightSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-button-unit-type"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},...oy,...ny,titleLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},secondCtaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"secondCta-letter-spacing"}},secondCtaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"secondCta-letter-spacing-tablet"}},secondCtaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"secondCta-letter-spacing-mobile"}},secondCtaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"secondCta-letter-spacing-type"}},btncontentWidth:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},btncontentWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},btncontentWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},btncontentWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"desc-width-type"}}},save:function(e){const{block_id:t,htmlTag:a,ctaType:l,ctaLink:i,ctaTarget:o,ctaTitle:n,description:r,enabledSecondCtaButton:s}=e.attributes,c=React.createElement(Im,{attributes:e.attributes,setAttributes:"not_set"}),u="button"===l&&s?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",p=React.createElement(React.Fragment,null,""!==r&&React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"})),d=React.createElement(React.Fragment,null,""!==n&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),b=a||"div",g=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},d,p),React.createElement("div",{className:"uagb-cta__buttons"},c,u));let m="";return o&&(m="_blank"),React.createElement(b,{className:Be()("uagb-block-"+t,"button"===l?"wp-block-button":"")},"all"===l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__link-to-all",target:m,rel:"noopener noreferrer"}),g),"all"!==l&&g)}}];a(222);let sy={};sy=Object(F.applyFilters)("uagb/call-to-action",ss(sy)),Object(de.registerBlockType)("uagb/call-to-action",{...sy,title:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a button along with heading and description.","ultimate-addons-for-gutenberg"),icon:se.call_to_action,keywords:[Object(r.__)("cta","ultimate-addons-for-gutenberg"),Object(r.__)("call to action","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Ot,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"call-to-action"}):React.createElement(Xm,e),save:function(e){const{block_id:t,htmlTag:a,ctaType:l,ctaLink:i,ctaTarget:o,ctaTitle:n,description:r,enabledSecondCtaButton:s,enableMultilineParagraph:c}=e.attributes,u=React.createElement(Im,{attributes:e.attributes,setAttributes:"not_set"}),p="button"===l&&s?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",d=c?React.createElement("div",{className:"uagb-cta__desc"}," ",React.createElement(ge.InnerBlocks.Content,null)," "):""!==r&&React.createElement(Nm,{attributes:e.attributes,setAttributes:"not_set"}),b=React.createElement(React.Fragment,null,""!==n&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),g=a||"div",m=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},b,d),React.createElement("div",{className:"uagb-cta__buttons"},u,p));let y="";return o&&(y="_blank"),React.createElement(g,{className:Be()("uagb-block-"+t,"button"===l?"wp-block-button":"")},"all"===l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__link-to-all",target:y,rel:"noopener noreferrer"}),m),"all"!==l&&m)},deprecated:ry});var cy=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{block_id:r,iconSize:s,iconSizeTablet:c,iconSizeMobile:u,iconSizeUnit:p,align:d,alignTablet:b,alignMobile:g,rotation:m,rotationUnit:y,iconColor:f,iconBackgroundColorType:h,iconBackgroundColor:v,iconBackgroundGradientColor:_,iconHoverColor:T,iconHoverBackgroundColorType:C,iconHoverBackgroundColor:S,iconHoverBackgroundGradientColor:k,iconTopPadding:w,iconRightPadding:P,iconBottomPadding:x,iconLeftPadding:A,iconTopTabletPadding:G,iconRightTabletPadding:M,iconBottomTabletPadding:R,iconLeftTabletPadding:B,iconTopMobilePadding:U,iconRightMobilePadding:E,iconBottomMobilePadding:O,iconLeftMobilePadding:L,iconPaddingUnit:H,iconMobilePaddingUnit:F,iconTabletPaddingUnit:j,iconTopMargin:z,iconRightMargin:D,iconBottomMargin:N,iconLeftMargin:I,iconTopTabletMargin:V,iconRightTabletMargin:W,iconBottomTabletMargin:q,iconLeftTabletMargin:Z,iconTopMobileMargin:$,iconRightMobileMargin:Y,iconBottomMobileMargin:K,iconLeftMobileMargin:J,iconMarginUnit:X,iconMobileMarginUnit:Q,iconTabletMarginUnit:ee,iconBorderStyle:te,iconBorderColor:le,iconBorderHColor:ie,iconShadowColor:oe,iconShadowHOffset:ne,iconShadowVOffset:re,iconShadowBlur:se,useSeparateBoxShadows:ce,iconBoxShadowColor:ue,iconBoxShadowHOffset:pe,iconBoxShadowVOffset:de,iconBoxShadowBlur:be,iconBoxShadowSpread:ge,iconBoxShadowPosition:me,iconBoxShadowColorHover:ye,iconBoxShadowHOffsetHover:fe,iconBoxShadowVOffsetHover:he,iconBoxShadowBlurHover:ve,iconBoxShadowSpreadHover:_e,iconBoxShadowPositionHover:Te}=e,Ce=us(s,"iconSize",o),Se=Vr(us(m,"rotation",o),y),ke="classic"===h?v:_,we="classic"===C?S:k,Pe=Zr({horizontal:ne,vertical:re,blur:se,color:oe}),xe=Zr({horizontal:pe,vertical:de,blur:be,spread:ge,color:ue,position:me}),Ae=Zr({horizontal:fe,vertical:he,blur:ve,spread:_e,color:ye,position:Te,altColor:ue}),Ge={".uagb-icon-wrapper":{"text-align":d},".uagb-icon-wrapper svg":{width:Vr(Ce,p),height:Vr(Ce,p),"box-sizing":"content-box",transform:`rotate(${Se})`,fill:f,filter:Pe?`drop-shadow( ${Pe} )`:""},".uagb-icon-wrapper .uagb-svg-wrapper":{display:"inline-flex",background:ke,"padding-top":Vr(w,H),"padding-right":Vr(P,H),"padding-bottom":Vr(x,H),"padding-left":Vr(A,H),"border-style":te,"border-color":le,...Wr(e,"icon"),"box-shadow":xe},".uagb-icon-wrapper.wp-block-uagb-icon--has-margin .uagb-icon-margin-wrapper":{"margin-top":Vr(z,X),"margin-right":Vr(D,X),"margin-bottom":Vr(N,X),"margin-left":Vr(I,X)},".uagb-icon-wrapper .uagb-svg-wrapper:hover":{"border-color":ie,background:we},".uagb-icon-wrapper .uagb-svg-wrapper:hover svg":{fill:T}};ce&&(Ge[".uagb-icon-wrapper .uagb-svg-wrapper:hover"]={"box-shadow":Ae,background:we,"border-color":ie});const Me={".uagb-icon-wrapper":{"text-align":b},".uagb-icon-wrapper .uagb-svg-wrapper":{"padding-top":Vr(G,j),"padding-right":Vr(M,j),"padding-bottom":Vr(R,j),"padding-left":Vr(B,j),...Wr(e,"icon","tablet")},".uagb-icon-wrapper.wp-block-uagb-icon--has-margin .uagb-icon-margin-wrapper":{"margin-top":Vr(V,ee),"margin-right":Vr(W,ee),"margin-bottom":Vr(q,ee),"margin-left":Vr(Z,ee)},".uagb-icon-wrapper .uagb-svg-wrapper svg":{width:Vr(c,p),height:Vr(c,p)}},Re={".uagb-icon-wrapper":{"text-align":g},".uagb-icon-wrapper .uagb-svg-wrapper":{"padding-top":Vr(U,F),"padding-right":Vr(E,F),"padding-bottom":Vr(O,F),"padding-left":Vr(L,F),...Wr(e,"icon","mobile")},".uagb-icon-wrapper.wp-block-uagb-icon--has-margin .uagb-icon-margin-wrapper":{"margin-top":Vr($,Q),"margin-right":Vr(Y,Q),"margin-bottom":Vr(K,Q),"margin-left":Vr(J,Q)},".uagb-icon-wrapper .uagb-svg-wrapper svg":{width:Vr(u,p),height:Vr(u,p)}};let Be="";const Ue=i||".uagb-block-"+r;return Be=ae(Ge,Ue),("tablet"===n||"mobile"===n||i)&&(Be+=ae(Me,""+Ue,!0,"tablet"),("mobile"===n||i)&&(Be+=ae(Re,""+Ue,!0,"mobile"))),Be};const uy=[{defaultAttributes:Tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:2},{label:"iconShadowVOffset",value:4},{label:"iconShadowBlur",value:3}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:5},{label:"iconShadowBlur",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:2},{label:"iconShadowBlur",value:3}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:1},{label:"iconShadowBlur",value:3}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:5},{label:"iconShadowBlur",value:5}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:5},{label:"iconShadowBlur",value:8}],icon:' '}],py=[{defaultAttributes:Tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:3},{label:"iconBoxShadowVOffset",value:8},{label:"iconBoxShadowBlur",value:12},{label:"iconBoxShadowSpread",value:0},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:18},{label:"iconBoxShadowBlur",value:40},{label:"iconBoxShadowSpread",value:-10},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:4},{label:"iconBoxShadowBlur",value:12},{label:"iconBoxShadowSpread",value:0},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:2},{label:"iconBoxShadowBlur",value:5},{label:"iconBoxShadowSpread",value:-1},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:50},{label:"iconBoxShadowBlur",value:50},{label:"iconBoxShadowSpread",value:-30},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:20},{label:"iconBoxShadowBlur",value:30},{label:"iconBoxShadowSpread",value:0},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '}],dy=[{defaultAttributes:Tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:3},{label:"iconBoxShadowVOffsetHover",value:8},{label:"iconBoxShadowBlurHover",value:12},{label:"iconBoxShadowSpreadHover",value:0},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:18},{label:"iconBoxShadowBlurHover",value:40},{label:"iconBoxShadowSpreadHover",value:-10},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:4},{label:"iconBoxShadowBlurHover",value:12},{label:"iconBoxShadowSpreadHover",value:0},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:2},{label:"iconBoxShadowBlurHover",value:5},{label:"iconBoxShadowSpreadHover",value:-1},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:50},{label:"iconBoxShadowBlurHover",value:50},{label:"iconBoxShadowSpreadHover",value:-30},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:20},{label:"iconBoxShadowBlurHover",value:30},{label:"iconBoxShadowSpreadHover",value:0},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '}],by=[{defaultAttributes:Tt},{defaultPresetAttributes:[{label:"iconBackgroundColor"},{label:"iconBorderTopLeftRadius"},{label:"iconBorderTopRightRadius"},{label:"iconBorderBottomRightRadius"},{label:"iconBorderBottomLeftRadius"},{label:"iconBorderTopWidth"},{label:"iconBorderRightWidth"},{label:"iconBorderBottomWidth"},{label:"iconBorderLeftWidth"},{label:"iconBorderStyle"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:"#DCF1FF"},{label:"iconBorderStyle",value:""},{label:"iconBorderTopLeftRadius",value:50},{label:"iconBorderTopRightRadius",value:50},{label:"iconBorderBottomRightRadius",value:50},{label:"iconBorderBottomLeftRadius",value:50},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:""},{label:"iconBorderStyle",value:"solid"},{label:"iconBorderTopLeftRadius",value:50},{label:"iconBorderTopRightRadius",value:50},{label:"iconBorderBottomRightRadius",value:50},{label:"iconBorderBottomLeftRadius",value:50},{label:"iconBorderTopWidth",value:2},{label:"iconBorderRightWidth",value:2},{label:"iconBorderBottomWidth",value:2},{label:"iconBorderLeftWidth",value:2},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:"#DCF1FF"},{label:"iconBorderStyle",value:""},{label:"iconBorderTopLeftRadius",value:6},{label:"iconBorderTopRightRadius",value:6},{label:"iconBorderBottomRightRadius",value:6},{label:"iconBorderBottomLeftRadius",value:6},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:""},{label:"iconBorderStyle",value:"solid"},{label:"iconBorderTopWidth",value:2},{label:"iconBorderRightWidth",value:2},{label:"iconBorderBottomWidth",value:2},{label:"iconBorderLeftWidth",value:2},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''}];var gy=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{icon:l,iconSize:i,iconSizeTablet:o,iconSizeMobile:n,iconSizeUnit:s,align:c,alignTablet:u,alignMobile:p,rotation:d,rotationUnit:b,link:g,target:m,disableLink:y,iconAccessabilityMode:f,iconAccessabilityDesc:h}=t;return React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:l,onChange:e=>a({icon:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Accessibility Mode","ultimate-addons-for-gutenberg"),data:{value:f,label:"iconAccessabilityMode"},options:[{value:"svg",label:Object(r.__)("SVG","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")},{value:"presentation",label:Object(r.__)("Decorative","ultimate-addons-for-gutenberg")}]}),"presentation"!==f&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Accessibility Label","ultimate-addons-for-gutenberg"),data:{value:h,label:"iconAccessabilityDesc"},value:h,setAttributes:a,onChange:e=>a({iconAccessabilityDesc:e})})),React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"iconSize"},tablet:{value:o,label:"iconSizeTablet"},mobile:{value:n,label:"iconSizeMobile"}},min:0,max:200,unit:{value:s,label:"iconSizeUnit"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"align"},tablet:{value:u,label:"alignTablet"},mobile:{value:p,label:"alignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Qa,{label:Object(r.__)("Rotation","ultimate-addons-for-gutenberg"),setAttributes:a,value:d,data:{value:d,label:"rotation"},min:-180,max:180,unit:{value:b,label:"rotationUnit"},units:[{name:Object(r.__)("Degree","ultimate-addons-for-gutenberg"),unitValue:"deg"}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),checked:y,onChange:()=>a({disableLink:!y})}),y&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:g,data:{value:g,label:"link"},setAttributes:a,onChange:e=>a({link:e}),placeholder:Object(r.__)("Enter URL","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Tab","ultimate-addons-for-gutenberg"),checked:m,onChange:()=>a({target:!m})}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:by,presetInputType:"radioImage"})))});function my(){return(my=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{block_id:i,iconColor:o,iconBackgroundColorType:n,iconBackgroundColor:s,iconBackgroundGradientColor:c,iconHoverColor:u,iconHoverBackgroundColorType:p,iconHoverBackgroundColor:d,iconHoverBackgroundGradientColor:b,iconTopPadding:g,iconRightPadding:m,iconBottomPadding:y,iconLeftPadding:f,iconTopTabletPadding:h,iconRightTabletPadding:v,iconBottomTabletPadding:_,iconLeftTabletPadding:T,iconTopMobilePadding:C,iconRightMobilePadding:S,iconBottomMobilePadding:k,iconLeftMobilePadding:w,iconPaddingUnit:P,iconMobilePaddingUnit:x,iconTabletPaddingUnit:A,iconPaddingLink:G,iconTopMargin:M,iconRightMargin:R,iconBottomMargin:B,iconLeftMargin:U,iconTopTabletMargin:E,iconRightTabletMargin:O,iconBottomTabletMargin:L,iconLeftTabletMargin:H,iconTopMobileMargin:F,iconRightMobileMargin:j,iconBottomMobileMargin:z,iconLeftMobileMargin:D,iconMarginUnit:N,iconMobileMarginUnit:I,iconTabletMarginUnit:V,iconMarginLink:W,iconShadowColor:q,iconShadowHOffset:Z,iconShadowVOffset:$,iconShadowBlur:Y,useSeparateBoxShadows:K,iconBoxShadowColor:J,iconBoxShadowHOffset:X,iconBoxShadowVOffset:Q,iconBoxShadowBlur:ee,iconBoxShadowSpread:te,iconBoxShadowPosition:ae,iconBoxShadowColorHover:le,iconBoxShadowHOffsetHover:ie,iconBoxShadowVOffsetHover:oe,iconBoxShadowBlurHover:ne,iconBoxShadowSpreadHover:re,iconBoxShadowPositionHover:se}=t;return React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:o||"",data:{value:o,label:"iconColor"},setAttributes:a}),React.createElement(Jp,{label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),type:{value:n,label:"iconBackgroundColorType"},classic:{value:s,label:"iconBackgroundColor"},gradient:{value:c,label:"iconBackgroundGradientColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"iconHoverColor"},setAttributes:a}),React.createElement(Jp,{label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),type:{value:p,label:"iconHoverBackgroundColorType"},classic:{value:d,label:"iconHoverBackgroundColor"},gradient:{value:b,label:"iconHoverBackgroundGradientColor"},setAttributes:a})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:a,prefix:"icon",attributes:t,deviceType:l,disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Drop Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:uy,presetInputType:"radioImage"}),React.createElement(Xp,{blockId:i,setAttributes:a,textShadowColor:{value:q,label:"iconShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},textShadowHOffset:{value:Z,label:"iconShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},textShadowVOffset:{value:$,label:"iconShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},textShadowBlur:{value:Y,label:"iconShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},popup:!1})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:K,onChange:()=>a({useSeparateBoxShadows:!K})}),K?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:py,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,boxShadowColor:{value:J,label:"iconBoxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:X,label:"iconBoxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Q,label:"iconBoxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ee,label:"iconBoxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:te,label:"iconBoxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ae,label:"iconBoxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:dy,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,boxShadowColor:{value:le,label:"iconBoxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ie,label:"iconBoxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:oe,label:"iconBoxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ne,label:"iconBoxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:re,label:"iconBoxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:se,label:"iconBoxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:py,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,boxShadowColor:{value:J,label:"iconBoxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:X,label:"iconBoxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Q,label:"iconBoxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ee,label:"iconBoxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:te,label:"iconBoxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ae,label:"iconBoxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,my({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:g,label:"iconTopPadding"},valueRight:{value:m,label:"iconRightPadding"},valueBottom:{value:y,label:"iconBottomPadding"},valueLeft:{value:f,label:"iconLeftPadding"},valueTopTablet:{value:h,label:"iconTopTabletPadding"},valueRightTablet:{value:v,label:"iconRightTabletPadding"},valueBottomTablet:{value:_,label:"iconBottomTabletPadding"},valueLeftTablet:{value:T,label:"iconLeftTabletPadding"},valueTopMobile:{value:C,label:"iconTopMobilePadding"},valueRightMobile:{value:S,label:"iconRightMobilePadding"},valueBottomMobile:{value:k,label:"iconBottomMobilePadding"},valueLeftMobile:{value:w,label:"iconLeftMobilePadding"},unit:{value:P,label:"iconPaddingUnit"},mUnit:{value:x,label:"iconMobilePaddingUnit"},tUnit:{value:A,label:"iconTabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:G,label:"iconPaddingLink"}})),React.createElement(Pl,my({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:M,label:"iconTopMargin"},valueRight:{value:R,label:"iconRightMargin"},valueBottom:{value:B,label:"iconBottomMargin"},valueLeft:{value:U,label:"iconLeftMargin"},valueTopTablet:{value:E,label:"iconTopTabletMargin"},valueRightTablet:{value:O,label:"iconRightTabletMargin"},valueBottomTablet:{value:L,label:"iconBottomTabletMargin"},valueLeftTablet:{value:H,label:"iconLeftTabletMargin"},valueTopMobile:{value:F,label:"iconTopMobileMargin"},valueRightMobile:{value:j,label:"iconRightMobileMargin"},valueBottomMobile:{value:z,label:"iconBottomMobileMargin"},valueLeftMobile:{value:D,label:"iconLeftMobileMargin"},unit:{value:N,label:"iconMarginUnit"},mUnit:{value:I,label:"iconMobileMarginUnit"},tUnit:{value:V,label:"iconTabletMarginUnit"},attributes:t,setAttributes:a,link:{value:W,label:"iconMarginLink"}}))))});function fy(){return(fy=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,fy({},ol,{parentProps:e}),React.createElement(gy,e)),React.createElement(il,fy({},nl,{parentProps:e}),React.createElement(yy,e)),React.createElement(il,fy({},rl,{parentProps:e}),Ds(cy,a,t))))}),vy=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,deviceType:l}=e,{icon:i,block_id:o,iconAccessabilityMode:n,iconAccessabilityDesc:r,iconBottomMargin:s,iconLeftMargin:c,iconRightMargin:u,iconTopMargin:p,iconTopTabletMargin:d,iconRightTabletMargin:b,iconLeftTabletMargin:g,iconBottomTabletMargin:m,iconTopMobileMargin:y,iconRightMobileMargin:f,iconLeftMobileMargin:h,iconBottomMobileMargin:v}=t,_={..."presentation"!==n&&{role:"svg"===n?"graphics-symbol":"image","aria-label":r},"aria-hidden":"presentation"===n},T=[s,c,u,p,d,b,g,m,y,f,h,v].some(e=>"number"==typeof e),C=Ce(i||"circle-check",a,_),S=T?"wp-block-uagb-icon--has-margin":"",k=Object(ge.useBlockProps)({className:`uagb-block-${o} uagb-icon-wrapper uagb-editor-preview-mode-${l.toLowerCase()} ${S}`}),w=()=>React.createElement("span",{className:"uagb-svg-wrapper"},C);return React.createElement("div",k,T?React.createElement("div",{className:"uagb-icon-margin-wrapper"},w()):w())}),_y=Object(L.compose)(ls,fe,uc)(e=>{const{attributes:t,attributes:{UAGHideDesktop:a,UAGHideTab:l,UAGHideMob:i},isSelected:o,name:n,deviceType:r,clientId:s}=e,c=Object(B.useMemo)(()=>cy(t,s,n,r),[t,r]);return Object(B.useEffect)(()=>{ys()},[r]),Object(B.useEffect)(()=>{he(e)},[a,l,i,r]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),o&&React.createElement(hy,e),React.createElement(vy,e))});a(223);var Ty=[{attributes:{icon:{type:"string",default:"circle-check"},iconSize:{type:"number",default:40,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},alignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},alignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},iconBorderColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-color"}},iconBackgroundColorType:{type:"string",default:"classic",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-background-color-type"}},iconBackgroundColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-background-color"}},iconBackgroundGradientColor:{type:"string",default:"linear-gradient(90deg, rgb(155, 81, 224) 0%, rgb(6, 147, 227) 100%)",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-background-gradient-color"}},iconHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconHoverBackgroundColorType:{type:"string",default:"classic",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-background-color-type"}},iconHoverBackgroundColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-background-color"}},iconHoverBackgroundGradientColor:{type:"string",default:"linear-gradient(90deg, rgb(155, 81, 224) 0%, rgb(6, 147, 227) 100%)",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-background-gradient-color"}},rotation:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-rotation"}},rotationUnit:{type:"string",default:"deg",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-rotation-type"}},block_id:{type:"string"},link:{type:"string",default:""},target:{type:"boolean",default:!1},disableLink:{type:"boolean",default:!1},iconAccessabilityMode:{type:"string",default:"svg"},iconAccessabilityDesc:{type:"string",default:""},iconTopPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-padding"}},iconRightPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-padding"}},iconLeftPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-padding"}},iconBottomPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-padding"}},iconTopTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-tablet-padding"}},iconRightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-tablet-padding"}},iconLeftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-tablet-padding"}},iconBottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-tablet-padding"}},iconTopMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-mobile-padding"}},iconRightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-mobile-padding"}},iconLeftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-mobile-padding"}},iconBottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-mobile-padding"}},iconPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-padding-unit"}},iconTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-tablet-padding-unit"}},iconMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-mobile-padding-unit"}},iconPaddingLink:{type:"boolean",default:!1},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconTopTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-tablet-margin"}},iconRightTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-tablet-margin"}},iconLeftTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-tablet-margin"}},iconBottomTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-tablet-margin"}},iconTopMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-mobile-margin"}},iconRightMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-mobile-margin"}},iconLeftMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-mobile-margin"}},iconBottomMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-mobile-margin"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-tablet-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-mobile-margin-unit"}},iconMarginLink:{type:"boolean",default:!1},isPreview:{type:"boolean",default:!1},...ce("icon"),iconBorderStyle:{type:"string",default:"default",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-style"}},useSeparateBoxShadows:{type:"boolean",default:!0},iconShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-color"}},iconShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-hoffset"}},iconShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-voffset"}},iconShadowBlur:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-blur"}},iconBoxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-color"}},iconBoxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-hoffset"}},iconBoxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-voffset"}},iconBoxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-blur"}},iconBoxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-spread"}},iconBoxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-position"}},iconShadowColorHover:{type:"string",default:"#00000070",UAGCopyPaste:{styleType:"icon-shadow-color-hover"}},iconShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-shadow-hoffset-hover"}},iconShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-shadow-voffset-hover"}},iconShadowBlurHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-shadow-blur-hover"}},iconBoxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"icon-box-shadow-color-hover"}},iconBoxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-box-shadow-hoffset-hover"}},iconBoxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-box-shadow-voffset-hover"}},iconBoxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"icon-box-shadow-blur-hover"}},iconBoxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"icon-box-shadow-spread-hover"}},iconBoxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"icon-box-shadow-position-hover"}}},save:function(e){const{attributes:t}=e,{icon:a,block_id:l,link:i,target:o,disableLink:n}=t;let r="";const s=o?"_blank":"_self";let c=n?i:"#";"#"!==c&&(c=Object(Od.getProtocol)(c)?c:Object(Od.prependHTTP)(c)),r=n&&c?React.createElement("a",{rel:"noopener noreferrer",href:c||"#",target:s},Ce(a||"circle-check")):Ce(a||"circle-check");const u=ge.useBlockProps.save({className:`uagb-block-${l} uagb-icon-wrapper`});return React.createElement("div",u,React.createElement("span",{className:"uagb-svg-wrapper"},r))}}];let Cy={};Cy=Object(F.applyFilters)("uagb/icon",ss(Cy)),Object(de.registerBlockType)("uagb/icon",{...Cy,apiVersion:2,title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add stunning customizable icons to your website.","ultimate-addons-for-gutenberg"),icon:se.icon,keywords:[Object(r.__)("icon","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:Tt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"icon"}):React.createElement(_y,e),save:()=>null,deprecated:Ty});const Sy=ce("box"),ky={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},timerType:{type:"string",default:"date"},ariaLiveType:{type:"string",default:"off"},endDateTime:{type:"string",default:"2023-01-01T00:00:00Z"},displayEndDateTime:{type:"string",default:"2023-01-01T00:00:00Z"},endDateTimeCopy:{type:"string"},timeModified:{type:"boolean",default:!1},showDays:{type:"boolean",default:!0},showHours:{type:"boolean",default:!0},showMinutes:{type:"boolean",default:!0},showLabels:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"countdown-show-labels"}},labelDays:{type:"string",default:Object(r.__)("DAYS","ultimate-addons-for-gutenberg")},labelHours:{type:"string",default:Object(r.__)("HOURS","ultimate-addons-for-gutenberg")},labelMinutes:{type:"string",default:Object(r.__)("MINUTES","ultimate-addons-for-gutenberg")},labelSeconds:{type:"string",default:Object(r.__)("SECONDS","ultimate-addons-for-gutenberg")},showSeparator:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"countdown-show-separator"}},separatorType:{type:"string",default:":",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-separator-type"}},timerEndAction:{type:"string",default:"zero"},redirectURL:{type:"object"},digitLoadGoogleFonts:{type:"boolean",default:!1},digitColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-color"}},digitFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-family"}},digitFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-weight"}},digitFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-style"}},digitTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-transform"}},digitDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-decoration"}},digitFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"digit-font-size-type"}},digitFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"digit-font-size-type-tablet"}},digitFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"digit-font-size-type-mobile"}},digitLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"digit-line-height-type"}},digitLetterSpacingType:{type:"string",default:"em",UAGCopyPaste:{styleType:"digit-letter-spacing-type"}},digitFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-size"}},digitFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-tablet"}},digitFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-size-mobile"}},digitLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-line-height"}},digitLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-line-height-tablet"}},digitLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-line-height-mobile"}},digitLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-letter-spacing"}},digitLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-letter-spacing-tablet"}},digitLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-letter-spacing-mobile"}},labelLoadGoogleFonts:{type:"boolean",default:!1},labelColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-color"}},labelFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-family"}},labelFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-weight"}},labelFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-style"}},labelTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-transform"}},labelDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-decoration"}},labelFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-font-size-type"}},labelFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-font-size-type-tablet"}},labelFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-font-size-type-mobile"}},labelLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"label-line-height-type"}},labelLetterSpacingType:{type:"string",default:"em",UAGCopyPaste:{styleType:"label-letter-spacing-type"}},labelFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-size"}},labelFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-tablet"}},labelFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-size-mobile"}},labelLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-line-height"}},labelLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-line-height-tablet"}},labelLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-line-height-mobile"}},labelLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-letter-spacing"}},labelLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-letter-spacing-tablet"}},labelLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-letter-spacing-mobile"}},separatorLoadGoogleFonts:{type:"boolean",default:!1},separatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"}},separatorFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-family"}},separatorFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-weight"}},separatorFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-style"}},separatorFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-font-size-type"}},separatorFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-font-size-type-tablet"}},separatorFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-font-size-type-mobile"}},separatorLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"separator-line-height-type"}},separatorFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-size"}},separatorFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-tablet"}},separatorFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-size-mobile"}},separatorLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-line-height"}},separatorLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-line-height-tablet"}},separatorLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-line-height-mobile"}},separatorRightSpacing:{type:"number",default:26,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-spacing"}},separatorRightSpacingTablet:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-spacing-tablet"}},separatorRightSpacingMobile:{type:"number",default:12,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-spacing-mobile"}},separatorTopSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-spacing"}},separatorTopSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-spacing-tablet"}},separatorTopSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-spacing-mobile"}},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-desktop"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-desktop"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-desktop"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-desktop"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-desktop"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!1},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-desktop"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-desktop"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-desktop"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-desktop"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!1},boxTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-top-padding-desktop"}},boxRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-right-padding-desktop"}},boxLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-left-padding-desktop"}},boxBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bottom-padding-desktop"}},boxTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-top-padding-tablet"}},boxRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-right-padding-tablet"}},boxLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-left-padding-tablet"}},boxBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bottom-padding-tablet"}},boxTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-top-padding-mobile"}},boxRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-right-padding-mobile"}},boxLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-left-padding-mobile"}},boxBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bottom-padding-mobile"}},boxPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"countdown-box-padding-unit"}},boxPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"countdown-box-padding-unit-tablet"}},boxPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"countdown-box-padding-unit-mobile"}},boxPaddingLink:{type:"boolean",default:!1},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},alignTablet:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},alignMobile:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},boxAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-alignment"}},boxAlignTablet:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-alignment-tablet"}},boxAlignMobile:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-alignment-mobile"}},boxWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-width"}},boxWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-width-tablet"}},boxWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-width-mobile"}},isSquareBox:{type:"boolean",default:!0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-square"}},boxSpacing:{type:"number",default:38,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-gap"}},boxSpacingTablet:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-gap-tablet"}},boxSpacingMobile:{type:"number",default:18,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-gap-mobile"}},internalBoxSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-internal-box-gap"}},internalBoxSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-internal-box-gap-tablet"}},internalBoxSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-internal-box-gap-mobile"}},boxFlex:{type:"string",default:"column",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-flex-direction"}},boxFlexTablet:{type:"string",default:"column",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-flex-direction-tablet"}},boxFlexMobile:{type:"string",default:"column",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-flex-direction-mobile"}},labelVerticalAlignment:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-label-vertical-alignment"}},labelVerticalAlignmentTablet:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-label-vertical-alignment-tablet"}},labelVerticalAlignmentMobile:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-label-vertical-alignment-mobile"}},boxBgType:{type:"string",default:"transparent",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bg-type"}},boxBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bg-color"}},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-hoffset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-voffset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-position-hover"}},...Sy,boxBorderStyle:{type:"string",default:"default",isGBSStyle:!0,UAGCopyPaste:{styleType:"box-border-style"}}};var wy=e=>React.createElement("div",{className:Z(["wp-block-uagb-countdown__box","wp-block-uagb-countdown__box-"+e.unitType])},React.createElement("div",{role:e.role,"aria-live":e.ariaLiveType,className:Z(["wp-block-uagb-countdown__time","wp-block-uagb-countdown__time-"+e.unitType])},"-"),e.showLabels&&React.createElement("div",{className:"wp-block-uagb-countdown__label"},e.label)),Py=[{attributes:ky,save:function(e){const{attributes:{block_id:t,showLabels:a,labelDays:l,labelHours:i,labelMinutes:o,labelSeconds:n,timerEndAction:r},name:s}=e,c=ge.useBlockProps.save({className:`uagb-block-${t} wp-block-uagb-countdown`}),u=!!uagb_blocks_info.spectra_pro_status&&"content"===r&&React.createElement("div",{className:`uagb-block-countdown-innerblocks-${t} wp-block-uagb-countdown-innerblocks`},Object(F.applyFilters)("spectra.countdown.save-innerblocks","",s));return React.createElement(React.Fragment,null,React.createElement("div",c,React.createElement(wy,{unitType:"days",showLabels:a,label:l}),React.createElement(wy,{unitType:"hours",showLabels:a,label:i}),React.createElement(wy,{unitType:"minutes",showLabels:a,label:o}),React.createElement(wy,{unitType:"seconds",showLabels:a,label:n}),u))}}];function xy(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=l.toLowerCase(),{block_id:n,showDays:r,showHours:s,showMinutes:c,showSeconds:u,digitFontFamily:p,digitFontWeight:d,digitFontStyle:b,digitFontSize:g,digitColor:m,digitDecoration:y,digitFontSizeType:f,digitFontSizeTypeMobile:h,digitFontSizeTypeTablet:v,digitFontSizeMobile:_,digitFontSizeTablet:T,digitLineHeight:C,digitLineHeightType:S,digitLineHeightMobile:k,digitLineHeightTablet:w,digitLetterSpacing:P,digitLetterSpacingType:x,digitLetterSpacingMobile:A,digitLetterSpacingTablet:G,labelFontFamily:M,labelFontWeight:R,labelFontStyle:B,labelFontSize:U,labelColor:E,labelTransform:O,labelDecoration:L,labelFontSizeType:H,labelFontSizeTypeMobile:j,labelFontSizeTypeTablet:z,labelFontSizeMobile:D,labelFontSizeTablet:N,labelLineHeight:I,labelLineHeightType:V,labelLineHeightMobile:W,labelLineHeightTablet:q,labelLetterSpacing:Z,labelLetterSpacingType:$,labelLetterSpacingMobile:Y,labelLetterSpacingTablet:K,separatorFontFamily:J,separatorFontWeight:X,separatorFontStyle:Q,separatorFontSize:ee,separatorColor:te,separatorFontSizeType:le,separatorFontSizeTypeMobile:ie,separatorFontSizeTypeTablet:oe,separatorFontSizeMobile:ne,separatorFontSizeTablet:re,separatorLineHeight:se,separatorLineHeightType:ce,separatorLineHeightMobile:ue,separatorLineHeightTablet:pe,separatorRightSpacing:de,separatorRightSpacingTablet:be,separatorRightSpacingMobile:ge,separatorTopSpacing:me,separatorTopSpacingTablet:ye,separatorTopSpacingMobile:fe,blockTopMargin:he,blockRightMargin:ve,blockLeftMargin:_e,blockBottomMargin:Te,blockTopMarginTablet:Ce,blockRightMarginTablet:Se,blockLeftMarginTablet:ke,blockBottomMarginTablet:we,blockTopMarginMobile:Pe,blockRightMarginMobile:xe,blockLeftMarginMobile:Ae,blockBottomMarginMobile:Ge,blockMarginUnit:Me,blockMarginUnitTablet:Re,blockMarginUnitMobile:Be,blockTopPadding:Ue,blockRightPadding:Ee,blockLeftPadding:Oe,blockBottomPadding:Le,blockTopPaddingTablet:He,blockRightPaddingTablet:Fe,blockLeftPaddingTablet:je,blockBottomPaddingTablet:ze,blockTopPaddingMobile:De,blockRightPaddingMobile:Ne,blockLeftPaddingMobile:Ie,blockBottomPaddingMobile:Ve,blockPaddingUnit:We,blockPaddingUnitTablet:qe,blockPaddingUnitMobile:Ze,boxTopPadding:$e,boxRightPadding:Ye,boxLeftPadding:Ke,boxBottomPadding:Je,boxTopPaddingTablet:Xe,boxRightPaddingTablet:Qe,boxLeftPaddingTablet:et,boxBottomPaddingTablet:tt,boxTopPaddingMobile:at,boxRightPaddingMobile:lt,boxLeftPaddingMobile:it,boxBottomPaddingMobile:ot,boxPaddingUnit:nt,boxPaddingUnitTablet:rt,boxPaddingUnitMobile:st,align:ct,alignTablet:ut,alignMobile:pt,boxAlign:dt,boxAlignTablet:bt,boxAlignMobile:gt,boxWidth:mt,boxWidthTablet:yt,boxWidthMobile:ft,isSquareBox:ht,labelVerticalAlignment:vt,labelVerticalAlignmentTablet:_t,labelVerticalAlignmentMobile:Tt,boxSpacing:Ct,boxSpacingTablet:St,boxSpacingMobile:kt,internalBoxSpacing:wt,internalBoxSpacingTablet:Pt,internalBoxSpacingMobile:xt,boxFlex:At,boxFlexTablet:Gt,boxFlexMobile:Mt,boxBgType:Rt,boxBgColor:Bt,useSeparateBoxShadows:Ut,boxShadowColor:Et,boxShadowHOffset:Ot,boxShadowVOffset:Lt,boxShadowBlur:Ht,boxShadowSpread:Ft,boxShadowPosition:jt,boxShadowColorHover:zt,boxShadowHOffsetHover:Dt,boxShadowVOffsetHover:Nt,boxShadowBlurHover:It,boxShadowSpreadHover:Vt,boxShadowPositionHover:Wt,showSeparator:qt,separatorType:Zt,boxBorderHColor:$t,globalBlockStyleId:Yt}=e,Kt=a.replace("uagb/",""),Jt="1"===uagb_blocks_info.is_rtl,Xt=Jt?"first":"last",Qt=Jt?"before":"after",ea=".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:"+Xt+"-child) .wp-block-uagb-countdown__time::"+Qt,ta=".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:"+Xt+"-child) .wp-block-uagb-countdown__time.wp-block-uagb-countdown__time-minutes::"+Qt,aa=".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:"+Xt+"-child) .wp-block-uagb-countdown__time.wp-block-uagb-countdown__time-hours::"+Qt,la=".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:"+Xt+"-child) .wp-block-uagb-countdown__time.wp-block-uagb-countdown__time-days::"+Qt,ia=us(Ct,"boxSpacing",Kt),oa=isNaN(St)?Ct:St,na=isNaN(kt)?St:kt,ra=us(wt,"internalBoxSpacing",Kt),sa=isNaN(Pt)?wt:Pt,ca=isNaN(xt)?Pt:xt,ua=us(de,"separatorRightSpacing",Kt),pa=isNaN(be)?de:be,da=isNaN(ge)?be:ge,ba=us(me,"separatorTopSpacing",Kt),ga=isNaN(ye)?me:ye,ma=isNaN(fe)?ye:fe,ya=Wr(e,"box"),fa=Wr(e,"box","tablet"),ha=Wr(e,"box","mobile"),va=Zr({horizontal:Ot,vertical:Lt,blur:Ht,spread:Ft,color:Et,position:jt}),_a=Zr({horizontal:Dt,vertical:Nt,blur:It,spread:Vt,color:zt,position:Wt,altColor:Et});let Ta={},Ca={},Sa={".wp-block-uagb-countdown":{"justify-content":ct,"margin-top":Vr(he,Me),"margin-right":Vr(ve,Me),"margin-bottom":Vr(Te,Me),"margin-left":Vr(_e,Me),"padding-top":Vr(Ue,We),"padding-right":Vr(Ee,We),"padding-bottom":Vr(Le,We),"padding-left":Vr(Oe,We)},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days":{display:r?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours":{display:s?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes":{display:c?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-seconds":{display:u?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box":{"aspect-ratio":ht?1:Yt?"":"auto",width:Vr(mt,"px"),height:ht?Vr(mt,"px"):Yt?"":"auto","flex-direction":At,"justify-content":"column"!==At?dt:"center","align-items":"row"!==At?dt:"center","background-color":"transparent"!==Rt?Bt:"transparent","padding-top":Vr($e,nt),"padding-right":Vr(Ye,nt),"padding-bottom":Vr(Je,nt),"padding-left":Vr(Ke,nt),"row-gap":Vr(ra,"px"),"column-gap":Vr(ra,"px"),"box-shadow":va,...ya},".wp-block-uagb-countdown:hover .wp-block-uagb-countdown__box":{"border-color":$t},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:last-child)":{"margin-right":u?Vr(ia,"px"):"unset"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:last-child)":{"margin-right":u||c?Vr(ia,"px"):"unset"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:last-child)":{"margin-right":u||c||s?Vr(ia,"px"):"unset"},".wp-block-uagb-countdown .wp-block-uagb-countdown__time":{"font-family":p,"font-style":b,"text-decoration":y,"font-weight":d,"font-size":Vr(g,f),"line-height":Vr(C,S),"letter-spacing":Vr(P,x),color:m},".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:last-child) .wp-block-uagb-countdown__time::after":{},".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)":{},".wp-block-uagb-countdown div.wp-block-uagb-countdown__label":{"align-self":ht||"row"!==At?"unset":vt,"font-family":M,"font-style":B,"text-decoration":L,"text-transform":O,"font-weight":R,"font-size":Vr(U,H),"line-height":Vr(I,V),"letter-spacing":Vr(Z,$),color:E}};if(Ut&&(Sa[".wp-block-uagb-countdown:hover .wp-block-uagb-countdown__box"]["box-shadow"]=_a),Ta[".wp-block-uagb-countdown"]={"justify-content":ut,"margin-top":Vr(Ce,Re),"margin-right":Vr(Se,Re),"margin-bottom":Vr(we,Re),"margin-left":Vr(ke,Re),"padding-top":Vr(He,qe),"padding-right":Vr(Fe,qe),"padding-bottom":Vr(ze,qe),"padding-left":Vr(je,qe)},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box"]={width:Vr(yt,"px"),height:ht?Vr(yt,"px"):Yt?"":"auto","flex-direction":Gt,"justify-content":"column"!==Gt?bt:"center","align-items":"row"!==Gt?bt:"center","padding-top":Vr(Xe,rt),"padding-right":Vr(Qe,rt),"padding-bottom":Vr(tt,rt),"padding-left":Vr(et,rt),"row-gap":Vr(sa,"px"),"column-gap":Vr(sa,"px"),...fa},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:last-child)"]={"margin-right":u?Vr(oa,"px"):"unset"},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:last-child)"]={"margin-right":u||c?Vr(oa,"px"):"unset"},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:last-child)"]={"margin-right":u||c||s?Vr(oa,"px"):"unset"},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)"]={},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__time"]={"font-size":Vr(T,v),"line-height":Vr(w,S),"letter-spacing":Vr(G,x)},Ta[".wp-block-uagb-countdown div.wp-block-uagb-countdown__label"]={"align-self":ht||"row"!==Gt?"unset":_t,"font-size":Vr(N,z),"line-height":Vr(q,V),"letter-spacing":Vr(K,$)},Ca[".wp-block-uagb-countdown"]={"justify-content":pt,"margin-top":Vr(Pe,Be),"margin-right":Vr(xe,Be),"margin-bottom":Vr(Ge,Be),"margin-left":Vr(Ae,Be),"padding-top":Vr(De,Ze),"padding-right":Vr(Ne,Ze),"padding-bottom":Vr(Ve,Ze),"padding-left":Vr(Ie,Ze)},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box"]={width:Vr(ft,"px"),height:ht?Vr(ft,"px"):Yt?"":"auto","flex-direction":Mt,"justify-content":"column"!==Mt?gt:"center","align-items":"row"!==Mt?gt:"center","padding-top":Vr(at,st),"padding-right":Vr(lt,st),"padding-bottom":Vr(ot,st),"padding-left":Vr(it,st),"row-gap":Vr(ca,"px"),"column-gap":Vr(ca,"px"),...ha},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:last-child)"]={"margin-right":u?Vr(na,"px"):"unset"},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:last-child)"]={"margin-right":u||c?Vr(na,"px"):"unset"},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:last-child)"]={"margin-right":u||c||s?Vr(na,"px"):"unset"},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)"]={},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__time"]={"font-size":Vr(_,h),"line-height":Vr(k,S),"letter-spacing":Vr(A,x)},Ca[".wp-block-uagb-countdown div.wp-block-uagb-countdown__label"]={"align-self":ht||"row"!==Mt?"unset":Tt,"font-size":Vr(D,j),"line-height":Vr(W,V),"letter-spacing":Vr(Y,$)},qt&&(Sa[ea]={content:Zt?`'${Zt}'`:"","font-family":J,"font-style":Q,"font-weight":X,"font-size":Vr(ee,le),"line-height":Vr(se,ce),color:te,right:ua?Vr(-ua,"px"):"",top:Vr(ba,"px")},Sa[ta]={display:u?"":"none"},Sa[aa]={display:c||u?"":"none"},Sa[la]={display:s||c||u?"":"none"},Ta[ea]={"font-size":Vr(re,oe),"line-height":Vr(pe,ce),right:pa?Vr(-pa,"px"):"",top:Vr(ga,"px")},Ca[ea]={"font-size":Vr(ne,ie),"line-height":Vr(ue,ce),right:da?Vr(-da,"px"):"",top:Vr(ma,"px")}),Jt){const e=".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:last-child)",t=".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)";Sa[e]["margin-right"]="unset",Ta[e]["margin-right"]="unset",Ca[e]["margin-right"]="unset",Sa[t]["margin-right"]=Vr(ia,"px"),Ta[t]["margin-right"]=Vr(oa,"px"),Ca[t]["margin-right"]=Vr(na,"px")}const ka=".editor-styles-wrapper "+(i||".uagb-block-"+n);Sa=Object(F.applyFilters)(`spectra.${Kt}.styling`,Sa,e),Ta=Object(F.applyFilters)(`spectra.${Kt}.tabletStyling`,Ta,e),Ca=Object(F.applyFilters)(`spectra.${Kt}.mobileStyling`,Ca,e);let wa=ae(Sa,ka);return("tablet"===o||"mobile"===o||i)&&(wa+=ae(Ta,""+ka,!0,"tablet"),("mobile"===o||i)&&(wa+=ae(Ca,""+ka,!0,"mobile"))),wa}const Ay=[{defaultAttributes:Ea},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!0},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"column"},{label:"boxFlexTablet",value:"column"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgColor",value:"#f0f0f1"},{label:"boxBgType",value:"color"},{label:"boxBorderBottomLeftRadius",value:50},{label:"boxBorderBottomRightRadius",value:50},{label:"boxBorderTopLeftRadius",value:50},{label:"boxBorderTopRightRadius",value:50},{label:"boxBorderBottomLeftRadiusTablet",value:50},{label:"boxBorderBottomRightRadiusTablet",value:50},{label:"boxBorderTopLeftRadiusTablet",value:50},{label:"boxBorderTopRightRadiusTablet",value:50},{label:"boxBorderBottomLeftRadiusMobile",value:50},{label:"boxBorderBottomRightRadiusMobile",value:50},{label:"boxBorderTopLeftRadiusMobile",value:50},{label:"boxBorderTopRightRadiusMobile",value:50},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:40},{label:"boxSpacingTablet",value:20},{label:"boxSpacingMobile",value:18},{label:"boxWidth",value:""},{label:"boxWidthTablet",value:""},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:""},{label:"boxRightPadding",value:""},{label:"boxLeftPadding",value:""},{label:"boxBottomPadding",value:""},{label:"boxTopPaddingTablet",value:""},{label:"boxRightPaddingTablet",value:""},{label:"boxLeftPaddingTablet",value:""},{label:"boxBottomPaddingTablet",value:""},{label:"boxTopPaddingMobile",value:5},{label:"boxRightPaddingMobile",value:5},{label:"boxLeftPaddingMobile",value:5},{label:"boxBottomPaddingMobile",value:5},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:4},{label:"internalBoxSpacingTablet",value:4},{label:"internalBoxSpacingMobile",value:2},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:56},{label:"digitFontSizeTablet",value:32},{label:"digitFontSizeMobile",value:26},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:"normal"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:12},{label:"labelFontSizeTablet",value:8},{label:"labelFontSizeMobile",value:8},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:"normal"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"none"}],icon:''},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!0},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"column"},{label:"boxFlexTablet",value:"column"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!0},{label:"separatorType",value:":"},{label:"separatorRightSpacing",value:40},{label:"separatorRightSpacingTablet",value:27},{label:"separatorRightSpacingMobile",value:16},{label:"boxBgType",value:"transparent"},{label:"boxBorderBottomLeftRadius",value:50},{label:"boxBorderBottomRightRadius",value:50},{label:"boxBorderTopLeftRadius",value:50},{label:"boxBorderTopRightRadius",value:50},{label:"boxBorderBottomLeftRadiusTablet",value:50},{label:"boxBorderBottomRightRadiusTablet",value:50},{label:"boxBorderTopLeftRadiusTablet",value:50},{label:"boxBorderTopRightRadiusTablet",value:50},{label:"boxBorderBottomLeftRadiusMobile",value:50},{label:"boxBorderBottomRightRadiusMobile",value:50},{label:"boxBorderTopLeftRadiusMobile",value:50},{label:"boxBorderTopRightRadiusMobile",value:50},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:60},{label:"boxSpacingTablet",value:40},{label:"boxSpacingMobile",value:20},{label:"boxWidth",value:""},{label:"boxWidthTablet",value:""},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:""},{label:"boxRightPadding",value:""},{label:"boxLeftPadding",value:""},{label:"boxBottomPadding",value:""},{label:"boxTopPaddingTablet",value:""},{label:"boxRightPaddingTablet",value:""},{label:"boxLeftPaddingTablet",value:""},{label:"boxBottomPaddingTablet",value:""},{label:"boxTopPaddingMobile",value:5},{label:"boxRightPaddingMobile",value:5},{label:"boxLeftPaddingMobile",value:5},{label:"boxBottomPaddingMobile",value:5},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:5},{label:"internalBoxSpacingTablet",value:5},{label:"internalBoxSpacingMobile",value:2},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:56},{label:"digitFontSizeTablet",value:32},{label:"digitFontSizeMobile",value:26},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:"normal"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:12},{label:"labelFontSizeTablet",value:8},{label:"labelFontSizeMobile",value:8},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:"normal"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"solid"},{label:"boxBorderColor",value:"rgba(33,33,33,0.67)"},{label:"boxBorderTopWidth",value:2},{label:"boxBorderTopWidthTablet",value:2},{label:"boxBorderTopWidthMobile",value:2},{label:"boxBorderBottomWidth",value:2},{label:"boxBorderBottomWidthTablet",value:2},{label:"boxBorderBottomWidthMobile",value:2},{label:"boxBorderLeftWidth",value:2},{label:"boxBorderLeftWidthTablet",value:2},{label:"boxBorderLeftWidthMobile",value:2},{label:"boxBorderRightWidth",value:2},{label:"boxBorderRightWidthTablet",value:2},{label:"boxBorderRightWidthMobile",value:2}],icon:''},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!1},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"column"},{label:"boxFlexTablet",value:"column"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgColor",value:"#2B2B2B"},{label:"boxBgType",value:"color"},{label:"boxBorderBottomLeftRadius",value:4},{label:"boxBorderBottomRightRadius",value:4},{label:"boxBorderTopLeftRadius",value:4},{label:"boxBorderTopRightRadius",value:4},{label:"boxBorderBottomLeftRadiusTablet",value:4},{label:"boxBorderBottomRightRadiusTablet",value:4},{label:"boxBorderTopLeftRadiusTablet",value:4},{label:"boxBorderTopRightRadiusTablet",value:4},{label:"boxBorderBottomLeftRadiusMobile",value:4},{label:"boxBorderBottomRightRadiusMobile",value:4},{label:"boxBorderTopLeftRadiusMobile",value:4},{label:"boxBorderTopRightRadiusMobile",value:4},{label:"boxBorderRadiusUnit",value:"px"},{label:"boxBorderRadiusUnitTablet",value:"px"},{label:"boxBorderRadiusUnitMobile",value:"px"},{label:"boxSpacing",value:40},{label:"boxSpacingTablet",value:40},{label:"boxSpacingMobile",value:15},{label:"boxWidth",value:160},{label:"boxWidthTablet",value:75},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:15},{label:"boxRightPadding",value:10},{label:"boxLeftPadding",value:10},{label:"boxBottomPadding",value:15},{label:"boxTopPaddingTablet",value:15},{label:"boxRightPaddingTablet",value:10},{label:"boxLeftPaddingTablet",value:10},{label:"boxBottomPaddingTablet",value:15},{label:"boxTopPaddingMobile",value:12},{label:"boxRightPaddingMobile",value:12},{label:"boxLeftPaddingMobile",value:12},{label:"boxBottomPaddingMobile",value:12},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:4},{label:"internalBoxSpacingTablet",value:4},{label:"internalBoxSpacingMobile",value:2},{label:"digitColor",value:"#ffffff"},{label:"digitFontSize",value:52},{label:"digitFontSizeTablet",value:32},{label:"digitFontSizeMobile",value:30},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:"normal"},{label:"showLabels",value:!0},{label:"labelColor",value:"#f4f4f4"},{label:"labelFontSize",value:11},{label:"labelFontSizeTablet",value:11},{label:"labelFontSizeMobile",value:10},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:"normal"},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxBorderStyle",value:"none"}],icon:''},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!1},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"row"},{label:"boxFlexTablet",value:"row"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgType",value:"transparent"},{label:"boxBorderBottomLeftRadius",value:4},{label:"boxBorderBottomRightRadius",value:4},{label:"boxBorderTopLeftRadius",value:4},{label:"boxBorderTopRightRadius",value:4},{label:"boxBorderBottomLeftRadiusTablet",value:4},{label:"boxBorderBottomRightRadiusTablet",value:4},{label:"boxBorderTopLeftRadiusTablet",value:4},{label:"boxBorderTopRightRadiusTablet",value:4},{label:"boxBorderBottomLeftRadiusMobile",value:4},{label:"boxBorderBottomRightRadiusMobile",value:4},{label:"boxBorderTopLeftRadiusMobile",value:4},{label:"boxBorderTopRightRadiusMobile",value:4},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:30},{label:"boxSpacingTablet",value:30},{label:"boxSpacingMobile",value:15},{label:"boxWidth",value:170},{label:"boxWidthTablet",value:130},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:20},{label:"boxRightPadding",value:30},{label:"boxLeftPadding",value:30},{label:"boxBottomPadding",value:20},{label:"boxTopPaddingTablet",value:""},{label:"boxRightPaddingTablet",value:""},{label:"boxLeftPaddingTablet",value:""},{label:"boxBottomPaddingTablet",value:""},{label:"boxTopPaddingMobile",value:15},{label:"boxRightPaddingMobile",value:15},{label:"boxLeftPaddingMobile",value:15},{label:"boxBottomPaddingMobile",value:15},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:5},{label:"internalBoxSpacingTablet",value:5},{label:"internalBoxSpacingMobile",value:5},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:48},{label:"digitFontSizeTablet",value:35},{label:"digitFontSizeMobile",value:24},{label:"digitFontSizeType",value:"px"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:13},{label:"labelFontSizeTablet",value:13},{label:"labelFontSizeMobile",value:10},{label:"labelFontSizeType",value:"px"},{label:"labelVerticalAlignment",value:"center"},{label:"labelVerticalAlignmentTablet",value:"center"},{label:"labelVerticalAlignmentMobile",value:"center"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"solid"},{label:"boxBorderColor",value:"rgba(33,33,33,0.67)"},{label:"boxBorderTopWidth",value:2},{label:"boxBorderTopWidthTablet",value:2},{label:"boxBorderTopWidthMobile",value:2},{label:"boxBorderBottomWidth",value:2},{label:"boxBorderBottomWidthTablet",value:2},{label:"boxBorderBottomWidthMobile",value:2},{label:"boxBorderLeftWidth",value:2},{label:"boxBorderLeftWidthTablet",value:2},{label:"boxBorderLeftWidthMobile",value:2},{label:"boxBorderRightWidth",value:2},{label:"boxBorderRightWidthTablet",value:2},{label:"boxBorderRightWidthMobile",value:2}],icon:''},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!1},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"row"},{label:"boxFlexTablet",value:"row"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgType",value:"transparent"},{label:"boxBorderBottomLeftRadius",value:4},{label:"boxBorderBottomRightRadius",value:4},{label:"boxBorderTopLeftRadius",value:4},{label:"boxBorderTopRightRadius",value:4},{label:"boxBorderBottomLeftRadiusTablet",value:4},{label:"boxBorderBottomRightRadiusTablet",value:4},{label:"boxBorderTopLeftRadiusTablet",value:4},{label:"boxBorderTopRightRadiusTablet",value:4},{label:"boxBorderBottomLeftRadiusMobile",value:4},{label:"boxBorderBottomRightRadiusMobile",value:4},{label:"boxBorderTopLeftRadiusMobile",value:4},{label:"boxBorderTopRightRadiusMobile",value:4},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:22},{label:"boxSpacingTablet",value:22},{label:"boxSpacingMobile",value:15},{label:"boxWidth",value:""},{label:"boxWidthTablet",value:130},{label:"boxWidthMobile",value:25},{label:"boxTopPadding",value:25},{label:"boxRightPadding",value:25},{label:"boxLeftPadding",value:25},{label:"boxBottomPadding",value:25},{label:"boxTopPaddingTablet",value:25},{label:"boxRightPaddingTablet",value:25},{label:"boxLeftPaddingTablet",value:25},{label:"boxBottomPaddingTablet",value:25},{label:"boxTopPaddingMobile",value:25},{label:"boxRightPaddingMobile",value:25},{label:"boxLeftPaddingMobile",value:25},{label:"boxBottomPaddingMobile",value:25},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:10},{label:"internalBoxSpacingTablet",value:4},{label:"internalBoxSpacingMobile",value:6},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:""},{label:"digitFontSizeTablet",value:""},{label:"digitFontSizeMobile",value:""},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:.8},{label:"digitLineHeightType",value:"em"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:""},{label:"labelFontSizeTablet",value:""},{label:"labelFontSizeMobile",value:""},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:1},{label:"labelLineHeightType",value:"em"},{label:"labelVerticalAlignment",value:"end"},{label:"labelVerticalAlignmentTablet",value:"end"},{label:"labelVerticalAlignmentMobile",value:"end"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"none"}],icon:''}],Gy=[{defaultAttributes:Ea},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowColor",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '}],My=[{defaultAttributes:Ea},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:15},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '}];var Ry=a(14);function By(){return(By=Object.assign||function(e){for(var t=1;t{let e=!0;if(!o)return!1;switch(o){case"date":e=!0;break;case"evergreen":e=!t}return e})()&&React.createElement("div",{className:"uagb-countdown__datetime-picker"},React.createElement("div",null,React.createElement("h2",null,Object(r.__)("Timer End Date & Time","ultimate-addons-for-gutenberg"))),React.createElement(Le.DateTimePicker,{className:"uagb-date-picker",currentDate:n,onChange:e=>{const t=new Date(e+"Z");t.setMilliseconds(t.getMilliseconds()-60*ya.offset*60*1e3),a({endDateTime:t,endDateTimeCopy:t,displayEndDateTime:e})},is12Hour:!0,__nextRemoveResetButton:!0,__nextRemoveHelpButton:!0})),React.createElement(fi,null),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Days","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>{(c||u||p)&&a({showDays:!s})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Hours","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>{(s||u||p)&&a({showHours:!c})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Minutes","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>{(s||c||p)&&a({showMinutes:!u})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Seconds","ultimate-addons-for-gutenberg"),checked:p,onChange:()=>{(s||c||u)&&a({showSeconds:!p})}}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Aria Live Type","ultimate-addons-for-gutenberg"),data:{value:v,label:"ariaLiveType"},options:[{value:"off",label:Object(r.__)("Off","ultimate-addons-for-gutenberg")},{value:"polite",label:Object(r.__)("Polite","ultimate-addons-for-gutenberg")},{value:"assertive",label:Object(r.__)("Assertive","ultimate-addons-for-gutenberg")}]})),ha=React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:Ay,presetInputType:"radioImage"})),va=React.createElement(je,{title:Object(r.__)("Labels","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Labels","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>a({showLabels:!d})}),d&&React.createElement(React.Fragment,null,s&&React.createElement(Ss,{label:Object(r.__)("Days","ultimate-addons-for-gutenberg"),variant:"full-width",value:b,data:{value:b,label:"labelDays"},setAttributes:a}),c&&React.createElement(Ss,{label:Object(r.__)("Hours","ultimate-addons-for-gutenberg"),variant:"full-width",value:g,data:{value:g,label:"labelHours"},setAttributes:a}),u&&React.createElement(Ss,{label:Object(r.__)("Minutes","ultimate-addons-for-gutenberg"),variant:"full-width",value:m,data:{value:m,label:"labelMinutes"},setAttributes:a}),p&&React.createElement(Ss,{label:Object(r.__)("Seconds","ultimate-addons-for-gutenberg"),variant:"full-width",value:y,data:{value:y,label:"labelSeconds"},setAttributes:a}))),_a=React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Separator","ultimate-addons-for-gutenberg"),checked:f,onChange:()=>a({showSeparator:!f})}),f&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Separator Type","ultimate-addons-for-gutenberg"),data:{value:h,label:"separatorType"},options:[{value:":",label:Object(r.__)("Colon","ultimate-addons-for-gutenberg")},{value:"|",label:Object(r.__)("Line","ultimate-addons-for-gutenberg")},{value:"/",label:Object(r.__)("Slash","ultimate-addons-for-gutenberg")}]}))),Ta=React.createElement(je,{title:Object(r.__)("Box","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Square Shaped Box","ultimate-addons-for-gutenberg"),checked:Ot,onChange:()=>a({isSquareBox:!Ot})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:Gt,label:"align"},tablet:{value:Mt,label:"alignTablet"},mobile:{value:Rt,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:ga,showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Inner Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:Bt,label:"boxAlign"},tablet:{value:Ut,label:"boxAlignTablet"},mobile:{value:Et,label:"boxAlignMobile"}},className:"uagb-multi-button-alignment-control",options:ma,showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Label Position","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:$t,label:"boxFlex"},tablet:{value:Yt,label:"boxFlexTablet"},mobile:{value:Kt,label:"boxFlexMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"row",icon:React.createElement(Le.Icon,{icon:ze("flex-direction-row")}),tooltip:Object(r.__)("Row","ultimate-addons-for-gutenberg")},{value:"column",icon:React.createElement(Le.Icon,{icon:ze("flex-direction-column")}),tooltip:Object(r.__)("Column","ultimate-addons-for-gutenberg")}],showIcons:!0}),!Ot&&("Desktop"===da&&"row"===$t||"Tablet"===da&&"row"===Yt||"Mobile"===da&&"row"===Kt)&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Label Vertical Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:Lt,label:"labelVerticalAlignment"},tablet:{value:Ht,label:"labelVerticalAlignmentTablet"},mobile:{value:Ft,label:"labelVerticalAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"start",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"end",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}],showIcons:!1,help:Object(r.__)("This feature works best after adding line-height to the label.","ultimate-addons-for-gutenberg")})),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Jt,label:"boxBgType"},className:"uagb-multi-button-alignment-control",options:ba}),"color"===Jt&&React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Xt||"",data:{value:Xt,label:"boxBgColor"},setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Box Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:jt,label:"boxWidth"},tablet:{value:zt,label:"boxWidthTablet"},mobile:{value:Dt,label:"boxWidthMobile"}},min:0,max:250,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Boxes","ultimate-addons-for-gutenberg"),data:{desktop:{value:Nt,label:"boxSpacing"},tablet:{value:It,label:"boxSpacingTablet"},mobile:{value:Vt,label:"boxSpacingMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Digits & Labels","ultimate-addons-for-gutenberg"),data:{desktop:{value:Wt,label:"internalBoxSpacing"},tablet:{value:qt,label:"internalBoxSpacingTablet"},mobile:{value:Zt,label:"internalBoxSpacingMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:a,prefix:"box",attributes:l,deviceType:da,disableBottomSeparator:!1}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:bt,label:"boxTopPadding"},valueRight:{value:gt,label:"boxRightPadding"},valueBottom:{value:yt,label:"boxBottomPadding"},valueLeft:{value:mt,label:"boxLeftPadding"},valueTopTablet:{value:ft,label:"boxTopPaddingTablet"},valueRightTablet:{value:ht,label:"boxRightPaddingTablet"},valueBottomTablet:{value:_t,label:"boxBottomPaddingTablet"},valueLeftTablet:{value:vt,label:"boxLeftPaddingTablet"},valueTopMobile:{value:Tt,label:"boxTopPaddingMobile"},valueRightMobile:{value:Ct,label:"boxRightPaddingMobile"},valueBottomMobile:{value:kt,label:"boxBottomPaddingMobile"},valueLeftMobile:{value:St,label:"boxLeftPaddingMobile"},unit:{value:wt,label:"boxPaddingUnit"},mUnit:{value:xt,label:"boxPaddingUnitMobile"},tUnit:{value:Pt,label:"boxPaddingUnitTablet"},deviceType:da,attributes:l,setAttributes:a,link:{value:At,label:"boxPaddingLink"}})),Ca=React.createElement(je,{title:Object(r.__)("Digit","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:w||"",data:{value:w,label:"digitColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:a,loadGoogleFonts:{value:_,label:"digitLoadGoogleFonts"},fontFamily:{value:T,label:"digitFontFamily"},fontWeight:{value:C,label:"digitFontWeight"},fontStyle:{value:S,label:"digitFontStyle"},disableTransform:!0,decoration:{value:P,label:"digitDecoration"},fontSizeType:{value:x,label:"digitFontSizeType"},fontSizeTypeTablet:{value:G,label:"digitFontSizeTypeTablet"},fontSizeTypeMobile:{value:A,label:"digitFontSizeTypeMobile"},fontSize:{value:k,label:"digitFontSize"},fontSizeMobile:{value:M,label:"digitFontSizeMobile"},fontSizeTablet:{value:R,label:"digitFontSizeTablet"},lineHeightType:{value:U,label:"digitLineHeightType"},lineHeight:{value:B,label:"digitLineHeight"},lineHeightMobile:{value:E,label:"digitLineHeightMobile"},lineHeightTablet:{value:O,label:"digitLineHeightTablet"},letterSpacingType:{value:H,label:"digitLetterSpacingType"},letterSpacing:{value:L,label:"digitLetterSpacing"},letterSpacingMobile:{value:j,label:"digitLetterSpacingMobile"},letterSpacingTablet:{value:z,label:"digitLetterSpacingTablet"}})),Sa=React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:q||"",data:{value:q,label:"labelColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:a,loadGoogleFonts:{value:D,label:"labelLoadGoogleFonts"},fontFamily:{value:N,label:"labelFontFamily"},fontWeight:{value:I,label:"labelFontWeight"},fontStyle:{value:V,label:"labelFontStyle"},transform:{value:Z,label:"labelTransform"},decoration:{value:$,label:"labelDecoration"},fontSizeType:{value:Y,label:"labelFontSizeType"},fontSizeTypeTablet:{value:J,label:"labelFontSizeTypeTablet"},fontSizeTypeMobile:{value:K,label:"labelFontSizeTypeMobile"},fontSize:{value:W,label:"labelFontSize"},fontSizeMobile:{value:X,label:"labelFontSizeMobile"},fontSizeTablet:{value:Q,label:"labelFontSizeTablet"},lineHeightType:{value:te,label:"labelLineHeightType"},lineHeight:{value:ee,label:"labelLineHeight"},lineHeightMobile:{value:ae,label:"labelLineHeightMobile"},lineHeightTablet:{value:le,label:"labelLineHeightTablet"},letterSpacingType:{value:oe,label:"labelLetterSpacingType"},letterSpacing:{value:ie,label:"labelLetterSpacing"},letterSpacingMobile:{value:ne,label:"labelLetterSpacingMobile"},letterSpacingTablet:{value:re,label:"labelLetterSpacingTablet"}})),ka=React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"separatorColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:a,loadGoogleFonts:{value:se,label:"separatorLoadGoogleFonts"},fontFamily:{value:ce,label:"separatorFontFamily"},fontWeight:{value:ue,label:"separatorFontWeight"},fontStyle:{value:pe,label:"separatorFontStyle"},disableTransform:!0,disableDecoration:!0,fontSizeType:{value:me,label:"separatorFontSizeType"},fontSizeTypeTablet:{value:fe,label:"separatorFontSizeTypeTablet"},fontSizeTypeMobile:{value:ye,label:"separatorFontSizeTypeMobile"},fontSize:{value:de,label:"separatorFontSize"},fontSizeMobile:{value:he,label:"separatorFontSizeMobile"},fontSizeTablet:{value:ve,label:"separatorFontSizeTablet"},lineHeightType:{value:Te,label:"separatorLineHeightType"},lineHeight:{value:_e,label:"separatorLineHeight"},lineHeightMobile:{value:Se,label:"separatorLineHeightMobile"},lineHeightTablet:{value:ke,label:"separatorLineHeightTablet"}}),React.createElement(tl,{label:Object(r.__)("Separator Right Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:we,label:"separatorRightSpacing"},tablet:{value:Pe,label:"separatorRightSpacingTablet"},mobile:{value:xe,label:"separatorRightSpacingMobile"}},min:0,max:300,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Separator Top Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ae,label:"separatorTopSpacing"},tablet:{value:Ge,label:"separatorTopSpacingTablet"},mobile:{value:Me,label:"separatorTopSpacingMobile"}},min:0,max:300,displayUnit:!1,setAttributes:a})),wa=React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:Qt,onChange:()=>a({useSeparateBoxShadows:!Qt})}),Qt?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:Gy,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:ea,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ta,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:aa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:la,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ia,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:oa,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:My,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:na,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ra,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:sa,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ca,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ua,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:pa,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:Gy,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:ea,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ta,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:aa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:la,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ia,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:oa,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),Pa=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Je,label:"blockTopPadding"},valueRight:{value:Xe,label:"blockRightPadding"},valueBottom:{value:et,label:"blockBottomPadding"},valueLeft:{value:Qe,label:"blockLeftPadding"},valueTopTablet:{value:tt,label:"blockTopPaddingTablet"},valueRightTablet:{value:at,label:"blockRightPaddingTablet"},valueBottomTablet:{value:it,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:lt,label:"blockLeftPaddingTablet"},valueTopMobile:{value:ot,label:"blockTopPaddingMobile"},valueRightMobile:{value:nt,label:"blockRightPaddingMobile"},valueBottomMobile:{value:st,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:rt,label:"blockLeftPaddingMobile"},unit:{value:ct,label:"blockPaddingUnit"},mUnit:{value:pt,label:"blockPaddingUnitMobile"},tUnit:{value:ut,label:"blockPaddingUnitTablet"},deviceType:da,attributes:l,setAttributes:a,link:{value:dt,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Re,label:"blockTopMargin"},valueRight:{value:Be,label:"blockRightMargin"},valueBottom:{value:Oe,label:"blockBottomMargin"},valueLeft:{value:Ue,label:"blockLeftMargin"},valueTopTablet:{value:He,label:"blockTopMarginTablet"},valueRightTablet:{value:Fe,label:"blockRightMarginTablet"},valueBottomTablet:{value:Ne,label:"blockBottomMarginTablet"},valueLeftTablet:{value:De,label:"blockLeftMarginTablet"},valueTopMobile:{value:Ie,label:"blockTopMarginMobile"},valueRightMobile:{value:Ve,label:"blockRightMarginMobile"},valueBottomMobile:{value:qe,label:"blockBottomMarginMobile"},valueLeftMobile:{value:We,label:"blockLeftMarginMobile"},unit:{value:Ze,label:"blockMarginUnit"},mUnit:{value:Ye,label:"blockMarginUnitMobile"},tUnit:{value:$e,label:"blockMarginUnitTablet"},deviceType:da,attributes:l,setAttributes:a,link:{value:Ke,label:"blockMarginLink"}}));return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,By({},ol,{parentProps:e}),fa,va,_a,Object(F.applyFilters)("spectra.countdown.expiry-settings"),ha),React.createElement(il,By({},nl,{parentProps:e}),Ta,Ca,d&&Sa,f&&ka,wa,Pa),React.createElement(il,By({},rl,{parentProps:e}),Ds(xy,a,l)))))})),Oy=a(106),Ly=0,Hy={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Fy={};Fy.locals=Oy.a.locals||{},Fy.use=function(){return Ly++||(Uy=we()(Oy.a,Hy)),Fy},Fy.unuse=function(){Ly>0&&!--Ly&&(Uy(),Uy=null)};var jy=Fy,zy=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(jy.use(),()=>{jy.unuse()}),[]);const t=e.countdownRef,{attributes:{block_id:a,name:l,showLabels:i,labelDays:o,labelHours:n,labelMinutes:r,labelSeconds:s,timerEndAction:c},deviceType:u}=e,p=Object(ge.useBlockProps)({className:`uagb-block-${a} uagb-editor-preview-mode-${u.toLowerCase()}`,ref:t}),d=!!uagb_blocks_info.spectra_pro_status&&"content"===c&&React.createElement("div",{className:`uagb-block-countdown-innerblocks-${a} wp-block-uagb-countdown-innerblocks`},Object(F.applyFilters)("spectra.countdown.render-innerblocks","",l));return React.createElement(React.Fragment,null,React.createElement("div",p,React.createElement(wy,{unitType:"days",showLabels:i,label:o}),React.createElement(wy,{unitType:"hours",showLabels:i,label:n}),React.createElement(wy,{unitType:"minutes",showLabels:i,label:r}),React.createElement(wy,{unitType:"seconds",showLabels:i,label:s}),d))}),Dy=Object(B.memo)(e=>{let{attributes:t}=e;const{digitLoadGoogleFonts:a,digitFontFamily:l,digitFontWeight:i,labelLoadGoogleFonts:o,labelFontFamily:n,labelFontWeight:r,separatorLoadGoogleFonts:s,separatorFontFamily:c,separatorFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function Ny(){return(Ny=Object.assign||function(e){for(var t=1;t{const{isSelected:t,clientId:a,attributes:l,attributes:{block_id:i,timeModified:o,endDateTime:n,showDays:r,showHours:s,showMinutes:c,UAGHideDesktop:u,UAGHideTab:p,UAGHideMob:d},setAttributes:b,name:g,deviceType:m}=e,[y,f]=Object(B.useState)(0);Object(B.useEffect)(()=>{if(!o){const{timezone:e}=Object(Ry.getSettings)(),t=new Date,a=new Date;t.setMilliseconds(t.getMilliseconds()+6048e5),a.setMilliseconds(a.getMilliseconds()+6048e5),a.setMilliseconds(a.getMilliseconds()+(60*a.getTimezoneOffset()*1e3+60*e.offset*60*1e3)),b({endDateTime:t,endDateTimeCopy:t,displayEndDateTime:a,timeModified:!0})}},[]);const h=Object(B.useRef)(null);Object(B.useEffect)(()=>{let e=null;return h&&i&&(e=setTimeout(()=>{UAGBCountdown.editorInit(".uagb-block-"+i,l,h.current)})),()=>{null===e&&clearInterval(e)}},[h,i]);const v=Object(B.useMemo)(()=>xy(l,a,g,m),[l,m]);Object(B.useEffect)(()=>{i&&1===y&&UAGBCountdown.changeEndTime(".uagb-block-"+i,l,h.current),f(1)},[n,r,s,c]),Object(B.useEffect)(()=>{he(e)},[u,p,d,m]);const _=Object(F.applyFilters)("spectra.countdown.toolbar-hook","",g);return React.createElement(React.Fragment,null,"content"===l.timerEndAction&&_,React.createElement(Dy,{attributes:l}),React.createElement(me,{blockStyling:v}),t&&React.createElement(Ey,e),React.createElement(zy,Ny({countdownRef:h},e)))});let Vy={};Vy=Object(F.applyFilters)("uagb/countdown",ss(Vy)),Object(de.registerBlockType)("uagb/countdown",{...Vy,apiVersion:2,title:Object(r.__)("Countdown","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create a sense of urgency among your visitors.","ultimate-addons-for-gutenberg"),icon:se.countdown,keywords:[Object(r.__)("countdown","ultimate-addons-for-gutenberg"),Object(r.__)("timer","ultimate-addons-for-gutenberg"),Object(r.__)("sale","ultimate-addons-for-gutenberg"),Object(r.__)("offer","ultimate-addons-for-gutenberg"),Object(r.__)("discount","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Ea,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"countdown"}):React.createElement(Iy,e),save:function(e){const{attributes:{block_id:t,showLabels:a,labelDays:l,labelHours:i,labelMinutes:o,labelSeconds:n,timerEndAction:r,ariaLiveType:s},name:c}=e,u=ge.useBlockProps.save({className:`uagb-block-${t} wp-block-uagb-countdown`}),p=!!uagb_blocks_info.spectra_pro_status&&"content"===r&&React.createElement("div",{className:`uagb-block-countdown-innerblocks-${t} wp-block-uagb-countdown-innerblocks`},Object(F.applyFilters)("spectra.countdown.save-innerblocks","",c));return React.createElement(React.Fragment,null,React.createElement("div",u,React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"days",showLabels:a,label:l}),React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"hours",showLabels:a,label:i}),React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"minutes",showLabels:a,label:o}),React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"seconds",showLabels:a,label:n}),p))},deprecated:Py});var Wy=Object(B.memo)(e=>{let{attributes:t}=e;const{descLoadGoogleFonts:a,authorLoadGoogleFonts:l,tweetBtnLoadGoogleFonts:i,descFontFamily:o,descFontWeight:n,authorFontFamily:r,authorFontWeight:s,tweetBtnFontFamily:c,tweetBtnFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[o+(n?":"+n:"")]}};p=React.createElement(O,{config:e})}if(!0===l){const e={google:{families:[r+(s?":"+s:"")]}};d=React.createElement(O,{config:e})}if(!0===i){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function qy(){return(qy=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{skinStyle:i,align:o,authorColor:n,descColor:s,descFontSize:c,descFontSizeType:u,descFontSizeTablet:p,descFontSizeMobile:d,descFontFamily:b,descFontWeight:g,descFontStyle:m,descLineHeightType:y,descLineHeight:f,descLineHeightTablet:h,descLineHeightMobile:v,descLoadGoogleFonts:_,authorFontSize:T,authorFontSizeType:C,authorFontSizeTablet:S,authorFontSizeMobile:k,authorFontFamily:w,authorFontWeight:P,authorFontStyle:x,authorLineHeightType:A,authorLineHeight:G,authorLineHeightTablet:M,authorLineHeightMobile:R,authorLoadGoogleFonts:B,descSpace:U,descSpaceTablet:E,descSpaceMobile:O,authorSpace:L,authorSpaceTablet:H,authorSpaceMobile:F,borderColor:j,borderStyle:z,borderWidth:D,borderGap:N,borderGapTablet:I,borderGapMobile:V,verticalPadding:W,verticalPaddingTablet:q,verticalPaddingMobile:Z,quoteColor:$,quoteBgColor:Y,quoteSize:K,quoteSizeType:J,quoteSizeTablet:X,quoteSizeMobile:Q,quotePadding:ee,quotePaddingType:te,quotePaddingTablet:ae,quotePaddingMobile:le,quoteBorderRadius:ie,quoteStyle:oe,enableTweet:ne,tweetLinkColor:re,tweetBtnColor:se,tweetBtnHoverColor:ce,tweetBtnBgColor:ue,tweetBtnBgHoverColor:pe,tweetBtnFontSize:de,tweetBtnFontSizeType:be,tweetBtnFontSizeTablet:me,tweetBtnFontSizeMobile:ye,tweetBtnFontFamily:fe,tweetBtnFontWeight:he,tweetBtnFontStyle:ve,tweetBtnLineHeightType:_e,tweetBtnLineHeight:Te,tweetBtnLineHeightTablet:Se,tweetBtnLineHeightMobile:ke,tweetBtnLoadGoogleFonts:we,tweetIconSpacing:Pe,tweetIconSpacingUnit:xe,iconView:Ae,iconSkin:Ge,iconLabel:Me,iconShareVia:Re,iconTargetUrl:Be,customUrl:Ue,authorImage:Oe,authorImageWidth:He,authorImageWidthTablet:Fe,authorImageWidthMobile:ze,authorImageWidthUnit:De,authorImageGap:Ne,authorImageGapTablet:Ie,authorImageGapMobile:Ve,authorImageGapUnit:We,authorImageSize:qe,authorImgBorderRadius:Ze,authorImgBorderRadiusTablet:$e,authorImgBorderRadiusMobile:Ye,authorImgPosition:Ke,quoteTopMargin:Je,quoteBottomMargin:Xe,quoteLeftMargin:Qe,quoteRightMargin:et,quoteHoverColor:tt,quoteBgHoverColor:at,borderHoverColor:lt,authorImgBorderRadiusUnit:it,borderWidthUnit:ot,quoteBorderRadiusUnit:nt,quoteUnit:rt,quotemobileUnit:st,quotetabletUnit:ct,borderGapUnit:ut,descSpaceUnit:pt,authorSpaceUnit:dt,verticalPaddingUnit:bt,paddingBtnTop:gt,paddingBtnBottom:mt,paddingBtnLeft:yt,paddingBtnRight:ft,paddingBtnTopTablet:ht,paddingBtnRightTablet:vt,paddingBtnBottomTablet:_t,paddingBtnLeftTablet:Tt,paddingBtnTopMobile:Ct,paddingBtnRightMobile:St,paddingBtnBottomMobile:kt,paddingBtnLeftMobile:wt,paddingBtnUnit:Pt,mobilePaddingBtnUnit:xt,tabletPaddingBtnUnit:At,btnspacingLink:Gt,spacingLink:Mt,descTransform:Rt,authorTransform:Bt,tweetBtnTransform:Ut,descDecoration:Et,authorDecoration:Ot,tweetBtnDecoration:Lt,quoteTopMarginTablet:Ht,quoteBottomMarginTablet:Ft,quoteLeftMarginTablet:jt,quoteRightMarginTablet:zt,quoteTopMarginMobile:Dt,quoteBottomMarginMobile:Nt,quoteLeftMarginMobile:It,quoteRightMarginMobile:Vt,author:Wt,descLetterSpacing:qt,descLetterSpacingTablet:Zt,descLetterSpacingMobile:$t,descLetterSpacingType:Yt,authorLetterSpacing:Kt,authorLetterSpacingTablet:Jt,authorLetterSpacingMobile:Xt,authorLetterSpacingType:Qt,tweetBtnLetterSpacing:ea,tweetBtnLetterSpacingTablet:ta,tweetBtnLetterSpacingMobile:aa,tweetBtnLetterSpacingType:la}=a,ia=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}],oa=React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{e&&e.url?e.type&&"image"===e.type&&t({authorImage:e}):t({authorImage:null})},backgroundImage:Oe,onRemoveImage:()=>{t({authorImage:null})},label:Object(r.__)("Author Image","ultimate-addons-for-gutenberg"),slug:"author-image"}),Oe&&"null"!==Oe.url&&""!==Oe.url&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Author Image Position","ultimate-addons-for-gutenberg"),data:{value:Ke,label:"authorImgPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",label:"Left"},{value:"top",label:"Top"},{value:"right",label:"Right"}],showIcons:!1}))),na=React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"quoteSize"},tablet:{value:X,label:"quoteSizeTablet"},mobile:{value:Q,label:"quoteSizeMobile"}},min:0,max:50,unit:{value:J,label:"quoteSizeType"},setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:ee,label:"quotePadding"},tablet:{value:ae,label:"quotePaddingTablet"},mobile:{value:le,label:"quotePaddingMobile"}},min:0,max:200,unit:{value:te,label:"quotePaddingType"},setAttributes:t}),Y&&React.createElement(Qa,{label:Object(r.__)("Quote Icon Border Radius","ultimate-addons-for-gutenberg"),setAttributes:t,value:ie,data:{value:ie,label:"quoteBorderRadius"},min:0,max:100,unit:{value:nt,label:"quoteBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),ra=React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg")},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:i,label:"skinStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"border",label:Object(r.__)("Border","ultimate-addons-for-gutenberg")},{value:"quotation",label:Object(r.__)("Quotation","ultimate-addons-for-gutenberg")}],showIcons:!1}),"quotation"===i&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Quotation Type","ultimate-addons-for-gutenberg"),data:{value:oe,label:"quoteStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"style_1",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"style_2",label:Object(r.__)("Inline","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),oa),sa=React.createElement(je,{title:Object(r.__)("Quote","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Quote Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Quote Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:_,label:"descLoadGoogleFonts"},fontFamily:{value:b,label:"descFontFamily"},fontWeight:{value:g,label:"descFontWeight"},fontStyle:{value:m,label:"descFontStyle"},fontSizeType:{value:u,label:"descFontSizeType"},fontSize:{value:c,label:"descFontSize"},fontSizeMobile:{value:d,label:"descFontSizeMobile"},fontSizeTablet:{value:p,label:"descFontSizeTablet"},lineHeightType:{value:y,label:"descLineHeightType"},lineHeight:{value:f,label:"descLineHeight"},lineHeightMobile:{value:v,label:"descLineHeightMobile"},lineHeightTablet:{value:h,label:"descLineHeightTablet"},letterSpacing:{value:qt,label:"descLetterSpacing"},letterSpacingTablet:{value:Zt,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:$t,label:"descLetterSpacingMobile"},letterSpacingType:{value:Yt,label:"descLetterSpacingType"},transform:{value:Rt,label:"descTransform"},decoration:{value:Et,label:"descDecoration"}})),ca=React.createElement(je,{title:Object(r.__)("Author","ultimate-addons-for-gutenberg"),initialOpen:!1},""!==Wt&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Author Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"authorColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Author Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:B,label:"authorLoadGoogleFonts"},fontFamily:{value:w,label:"authorFontFamily"},fontWeight:{value:P,label:"authorFontWeight"},fontStyle:{value:x,label:"authorFontStyle"},fontSizeType:{value:C,label:"authorFontSizeType"},fontSize:{value:T,label:"authorFontSize"},fontSizeMobile:{value:k,label:"authorFontSizeMobile"},fontSizeTablet:{value:S,label:"authorFontSizeTablet"},lineHeightType:{value:A,label:"authorLineHeightType"},lineHeight:{value:G,label:"authorLineHeight"},lineHeightMobile:{value:R,label:"authorLineHeightMobile"},lineHeightTablet:{value:M,label:"authorLineHeightTablet"},letterSpacing:{value:Kt,label:"authorLetterSpacing"},letterSpacingTablet:{value:Jt,label:"authorLetterSpacingTablet"},letterSpacingMobile:{value:Xt,label:"authorLetterSpacingMobile"},letterSpacingType:{value:Qt,label:"authorLetterSpacingType"},transform:{value:Bt,label:"authorTransform"},decoration:{value:Ot,label:"authorDecoration"}})),Oe&&"null"!==Oe.url&&""!==Oe.url&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Author Image Size","ultimate-addons-for-gutenberg"),data:{value:qe,label:"authorImageSize"},setAttributes:t,options:ia}),React.createElement(tl,{label:Object(r.__)("Author Image Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:He,label:"authorImageWidth"},tablet:{value:Fe,label:"authorImageWidthTablet"},mobile:{value:ze,label:"authorImageWidthMobile"}},min:0,max:500,unit:{value:De,label:"authorImageWidthUnit"},setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Image Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ze,label:"authorImgBorderRadius"},tablet:{value:$e,label:"authorImgBorderRadiusTablet"},mobile:{value:Ye,label:"authorImgBorderRadiusMobile"}},min:0,max:50,unit:{value:it,label:"authorImgBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}))),ua=React.createElement(je,{title:Object(r.__)("Twitter Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:ne,onChange:()=>t({enableTweet:!ne})}),ne&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Twitter Username","ultimate-addons-for-gutenberg"),data:{value:Re,label:"iconShareVia"},setAttributes:t,value:Re,onChange:e=>t({iconShareVia:e})}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon View","ultimate-addons-for-gutenberg"),data:{value:Ae,label:"iconView"},className:"uagb-multi-button-alignment-control",options:[{value:"icon_text",label:Object(r.__)("Both","ultimate-addons-for-gutenberg")},{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Style","ultimate-addons-for-gutenberg"),data:{value:Ge,label:"iconSkin"},className:"uagb-multi-button-alignment-control",options:[{value:"classic",label:Object(r.__)("Classic","ultimate-addons-for-gutenberg")},{value:"bubble",label:Object(r.__)("Bubble","ultimate-addons-for-gutenberg")},{value:"link",label:Object(r.__)("Link","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Target URL","ultimate-addons-for-gutenberg"),data:{value:Be,label:"iconTargetUrl"},className:"uagb-multi-button-alignment-control",options:[{value:"current",label:Object(r.__)("Current Page","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(r.__)("Custom URL","ultimate-addons-for-gutenberg")}],showIcons:!1}),"custom"===Be&&React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:Ue,data:{value:Ue,label:"customUrl"},setAttributes:t,onChange:e=>t({customUrl:e})})),ne&&"icon"!==Ae&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Label","ultimate-addons-for-gutenberg"),value:Me,data:{value:Me,label:"iconLabel"},setAttributes:t,onChange:e=>t({iconLabel:e})}))),pa=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},Oe&&Oe.url&&React.createElement(tl,{label:Object(r.__)("Author - Image Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ne,label:"authorImageGap"},tablet:{value:Ie,label:"authorImageGapTablet"},mobile:{value:Ve,label:"authorImageGapMobile"}},min:0,max:500,unit:{value:We,label:"authorImageGapUnit"},setAttributes:t}),"quotation"===i&&React.createElement(Pl,qy({},e,{label:Object(r.__)("Quote Icon Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Je,label:"quoteTopMargin"},valueRight:{value:et,label:"quoteRightMargin"},valueBottom:{value:Xe,label:"quoteBottomMargin"},valueLeft:{value:Qe,label:"quoteLeftMargin"},valueTopTablet:{value:Ht,label:"quoteTopMarginTablet"},valueRightTablet:{value:zt,label:"quoteRightMarginTablet"},valueBottomTablet:{value:Ft,label:"quoteBottomMarginTablet"},valueLeftTablet:{value:jt,label:"quoteLeftMarginTablet"},valueTopMobile:{value:Dt,label:"quoteTopMarginMobile"},valueRightMobile:{value:Vt,label:"quoteRightMarginMobile"},valueBottomMobile:{value:Nt,label:"quoteBottomMarginMobile"},valueLeftMobile:{value:It,label:"quoteLeftMarginMobile"},unit:{value:rt,label:"quoteUnit"},mUnit:{value:st,label:"quotemobileUnit"},tUnit:{value:ct,label:"quotetabletUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Mt,label:"spacingLink"}})),"border"===i&&React.createElement(tl,{label:Object(r.__)("Border - Quote Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:N,label:"borderGap"},tablet:{value:I,label:"borderGapTablet"},mobile:{value:V,label:"borderGapMobile"}},min:0,max:200,unit:{value:ut,label:"borderGapUnit"},setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Quote Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:U,label:"descSpace"},tablet:{value:E,label:"descSpaceTablet"},mobile:{value:O,label:"descSpaceMobile"}},min:0,max:200,unit:{value:pt,label:"descSpaceUnit"},setAttributes:t}),"center"===o&&"border"!==i&&React.createElement(tl,{label:Object(r.__)("Author Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:L,label:"authorSpace"},tablet:{value:H,label:"authorSpaceTablet"},mobile:{value:F,label:"authorSpaceMobile"}},min:0,max:200,unit:{value:dt,label:"authorSpaceUnit"},setAttributes:t}),"border"===i&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Vertical Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:W,label:"verticalPadding"},tablet:{value:q,label:"verticalPaddingTablet"},mobile:{value:Z,label:"verticalPaddingMobile"}},min:0,max:500,unit:{value:bt,label:"verticalPaddingUnit"},setAttributes:t})));return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{key:"controls"}),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,ra,ua),React.createElement(il,nl,(()=>{const e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:$||"",data:{value:$,label:"quoteColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Y||"",data:{value:Y,label:"quoteBgColor"},setAttributes:t})),a=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:tt||"",data:{value:tt,label:"quoteHoverColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:at||"",data:{value:at,label:"quoteBgHoverColor"},setAttributes:t}));return React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},"border"===i&&(()=>{const e=React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:j||"",data:{value:j,label:"borderColor"},setAttributes:t}),a=React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:lt||"",data:{value:lt,label:"borderHoverColor"},setAttributes:t});return React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Border Style","ultimate-addons-for-gutenberg"),data:{value:z,label:"borderStyle"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(r.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(r.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(r.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(r.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!==z&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:D,data:{value:D,label:"borderWidth"},min:0,max:50,unit:{value:ot,label:"borderWidthUnit"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:e,hover:a,disableBottomSeparator:!0})))})(),"quotation"===i&&na,"quotation"===i&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:e,hover:a,disableBottomSeparator:!0}))})(),ne&&React.createElement(je,{title:Object(r.__)("Twitter Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},"link"===Ge&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:re||"",data:{value:re,label:"tweetLinkColor"},setAttributes:t}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ce||"",data:{value:ce,label:"tweetBtnHoverColor"},setAttributes:t})}),"link"!==Ge&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:se||"",data:{value:se,label:"tweetBtnColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ue||"",data:{value:ue,label:"tweetBtnBgColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ce||"",data:{value:ce,label:"tweetBtnHoverColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:pe||"",data:{value:pe,label:"tweetBtnBgHoverColor"},setAttributes:t}))}),"icon_text"===Ae&&React.createElement(Qa,{label:Object(r.__)("Icon & Text Spacing","ultimate-addons-for-gutenberg"),setAttributes:t,value:Pe,data:{value:Pe,label:"tweetIconSpacing"},min:0,max:20,unit:{value:xe,label:"tweetIconSpacingUnit"},initialPosition:5}),"link"!==Ge&&React.createElement(Pl,qy({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:gt,label:"paddingBtnTop"},valueRight:{value:ft,label:"paddingBtnRight"},valueBottom:{value:mt,label:"paddingBtnBottom"},valueLeft:{value:yt,label:"paddingBtnLeft"},valueTopTablet:{value:ht,label:"paddingBtnTopTablet"},valueRightTablet:{value:vt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:_t,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:Tt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:Ct,label:"paddingBtnTopMobile"},valueRightMobile:{value:St,label:"paddingBtnRightMobile"},valueBottomMobile:{value:kt,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:wt,label:"paddingBtnLeftMobile"},unit:{value:Pt,label:"paddingBtnUnit"},mUnit:{value:xt,label:"mobilePaddingBtnUnit"},tUnit:{value:At,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Gt,label:"btnspacingLink"}})),"icon"!==Ae&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:we,label:"tweetBtnLoadGoogleFonts"},fontFamily:{value:fe,label:"tweetBtnFontFamily"},fontWeight:{value:he,label:"tweetBtnFontWeight"},fontStyle:{value:ve,label:"tweetBtnFontStyle"},fontSizeType:{value:be,label:"tweetBtnFontSizeType"},fontSize:{value:de,label:"tweetBtnFontSize"},fontSizeMobile:{value:ye,label:"tweetBtnFontSizeMobile"},fontSizeTablet:{value:me,label:"tweetBtnFontSizeTablet"},lineHeightType:{value:_e,label:"tweetBtnLineHeightType"},lineHeight:{value:Te,label:"tweetBtnLineHeight"},lineHeightMobile:{value:ke,label:"tweetBtnLineHeightMobile"},lineHeightTablet:{value:Se,label:"tweetBtnLineHeightTablet"},letterSpacing:{value:ea,label:"tweetBtnLetterSpacing"},letterSpacingTablet:{value:ta,label:"tweetBtnLetterSpacingTablet"},letterSpacingMobile:{value:aa,label:"tweetBtnLetterSpacingMobile"},letterSpacingType:{value:la,label:"tweetBtnLetterSpacingType"},transform:{value:Ut,label:"tweetBtnTransform"},decoration:{value:Lt,label:"tweetBtnDecoration"}})),sa,ca,pa),React.createElement(il,qy({},rl,{parentProps:e})))))}),Yy=e=>{let{attributes:t,setAttributes:a,props:l}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:t.descriptionText,placeholder:Object(r.__)("Write a Quote","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__content",onChange:e=>a({descriptionText:e}),onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;nl.onReplace([])}):React.createElement(ge.RichText.Content,{tagName:"div",value:t.descriptionText,className:"uagb-blockquote__content"})},Ky=e=>{let{attributes:t}=e,a="";void 0!==t.authorImage&&null!==t.authorImage&&""!==t.authorImage&&(a=t.authorImage.url);let l="";if(""!==a){const e=t.authorImage.sizes,{authorImageSize:i,authorImageWidth:o}=t;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("img",{className:"",src:l,alt:t.authorImage.alt,width:o,height:o,loading:"lazy"})}return null},Jy=e=>{let{attributes:t,setAttributes:a,props:l}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:t.author,placeholder:Object(r.__)("Author","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__author",onChange:e=>a({author:e}),onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;nl.onReplace([])}):React.createElement(ge.RichText.Content,{tagName:"cite",value:t.author,className:"uagb-blockquote__author"})},Xy=function(e){const{attributes:t}=e;return React.createElement("a",{onClick:e=>e.preventDefault(),href:"/",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon,t.iconLabel),"icon"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon),"text"===t.iconView&&React.createElement(React.Fragment,null,t.iconLabel))},Qy=a(107),ef=0,tf={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},af={};af.locals=Qy.a.locals||{},af.use=function(){return ef++||(Zy=we()(Qy.a,tf)),af},af.unuse=function(){ef>0&&!--ef&&(Zy(),Zy=null)};var lf=af,of=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(lf.use(),()=>{lf.unuse()}),[]);const{className:t,setAttributes:a,attributes:l,deviceType:i}=e,{block_id:o,skinStyle:n,align:r,stack:s,quoteStyle:c,enableTweet:u,iconView:p,iconSkin:d,authorImage:b,authorImgPosition:g}=l;return React.createElement("div",{className:Be()(t,"uagb-block-"+o,"uagb-editor-preview-mode-"+i.toLowerCase(),"uagb-blockquote__skin-"+n,"border"!==n?"uagb-blockquote__align-"+r:"","quotation"===n?"uagb-blockquote__style-"+c:"",u?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${d} uagb-blockquote__tweet-${p}`:"","uagb-blockquote__stack-img-"+s)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===n&&React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon),React.createElement(Yy,{attributes:l,setAttributes:a,props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==b?"uagb-blockquote__author-at-"+g:"")},React.createElement(Ky,{attributes:l}),React.createElement(Jy,{attributes:l,setAttributes:a,props:e})),u&&React.createElement(Xy,{attributes:l}))))}),nf=Object(L.compose)(ls,fe)(e=>{const{attributes:t,attributes:{UAGHideDesktop:a,UAGHideTab:l,UAGHideMob:i,authorImageWidthUnit:o,authorImgBorderRadiusUnit:n},isSelected:r,setAttributes:s,clientId:c,name:u,deviceType:p}=e;Object(B.useEffect)(()=>{void 0===o&&s({authorImageWidthUnit:"px"}),void 0===n&&s({authorImgBorderRadiusUnit:"%"})},[]),Object(B.useEffect)(()=>{ys()},[p]),Object(B.useEffect)(()=>{he(e)},[a,l,i,p]);const d=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,skinStyle:r,align:s,authorColor:c,descColor:u,descFontSize:p,descFontSizeType:d,descFontSizeTablet:b,descFontSizeMobile:g,descFontFamily:m,descFontWeight:y,descLineHeightType:f,descLineHeight:h,descLineHeightTablet:v,descLineHeightMobile:_,authorFontSize:T,authorFontSizeType:C,authorFontSizeTablet:S,authorFontSizeMobile:k,authorFontFamily:w,authorFontWeight:P,authorLineHeightType:x,authorLineHeight:A,authorLineHeightTablet:G,authorLineHeightMobile:M,descSpace:R,descSpaceTablet:B,descSpaceMobile:U,authorSpace:E,authorSpaceTablet:O,authorSpaceMobile:L,borderColor:H,borderStyle:F,borderWidth:j,borderGap:z,borderGapTablet:D,borderGapMobile:N,verticalPadding:I,verticalPaddingTablet:V,verticalPaddingMobile:W,verticalPaddingUnit:q,quoteColor:Z,quoteSize:$,quoteSizeType:Y,quoteSizeTablet:K,quoteSizeMobile:J,quoteBgColor:X,enableTweet:Q,tweetBtnFontSize:ee,tweetBtnFontSizeType:te,tweetBtnFontSizeTablet:le,tweetBtnFontSizeMobile:ie,tweetBtnFontFamily:oe,tweetBtnFontWeight:ne,tweetBtnLineHeightType:re,tweetBtnLineHeight:se,tweetBtnLineHeightTablet:ce,tweetBtnLineHeightMobile:ue,tweetLinkColor:pe,tweetBtnColor:de,tweetBtnBgColor:be,tweetBtnHoverColor:ge,tweetBtnBgHoverColor:me,tweetIconSpacing:ye,tweetIconSpacingUnit:fe,authorImageWidth:he,authorImageWidthTablet:ve,authorImageWidthMobile:_e,authorImageWidthUnit:Te,authorImageGap:Ce,authorImageGapTablet:Se,authorImageGapMobile:ke,authorImageGapUnit:we,authorImgBorderRadius:Pe,authorImgBorderRadiusTablet:xe,authorImgBorderRadiusMobile:Ae,quoteBorderRadius:Ge,quoteTopMargin:Me,quoteBottomMargin:Re,quoteLeftMargin:Be,quoteRightMargin:Ue,quoteHoverColor:Ee,quoteBgHoverColor:Oe,borderHoverColor:Le,quotePadding:He,quotePaddingType:Fe,quotePaddingTablet:je,quotePaddingMobile:ze,authorImgBorderRadiusUnit:De,borderWidthUnit:Ne,quoteBorderRadiusUnit:Ie,quoteUnit:Ve,borderGapUnit:We,descSpaceUnit:qe,authorSpaceUnit:Ze,paddingBtnTop:$e,paddingBtnBottom:Ye,paddingBtnLeft:Ke,paddingBtnRight:Je,paddingBtnTopTablet:Xe,paddingBtnRightTablet:Qe,paddingBtnBottomTablet:et,paddingBtnLeftTablet:tt,paddingBtnTopMobile:at,paddingBtnRightMobile:lt,paddingBtnBottomMobile:it,paddingBtnLeftMobile:ot,paddingBtnUnit:nt,mobilePaddingBtnUnit:rt,tabletPaddingBtnUnit:st,descTransform:ct,authorTransform:ut,tweetBtnTransform:pt,descDecoration:dt,authorDecoration:bt,tweetBtnDecoration:gt,quoteTopMarginTablet:mt,quoteBottomMarginTablet:yt,quoteLeftMarginTablet:ft,quoteRightMarginTablet:ht,quoteTopMarginMobile:vt,quoteBottomMarginMobile:_t,quoteLeftMarginMobile:Tt,quoteRightMarginMobile:Ct,quotemobileUnit:St,quotetabletUnit:kt,descFontStyle:wt,authorFontStyle:Pt,tweetBtnFontStyle:xt,stack:At,descLetterSpacing:Gt,descLetterSpacingTablet:Mt,descLetterSpacingMobile:Rt,descLetterSpacingType:Bt,authorLetterSpacing:Ut,authorLetterSpacingTablet:Et,authorLetterSpacingMobile:Ot,authorLetterSpacingType:Lt,tweetBtnLetterSpacing:Ht,tweetBtnLetterSpacingTablet:Ft,tweetBtnLetterSpacingMobile:jt,tweetBtnLetterSpacingType:zt}=e;let Dt=E,Nt=O,It=L;"center"===s&&"border"!==r||(Dt=0,Nt=0,It=0);const Vt=us(R,"descSpace",i),Wt=us(B,"descSpaceTablet",i),qt=us(U,"descSpaceMobile",i),Zt=us(j,"borderWidth",i),$t=us(z,"borderGap",i),Yt=us(D,"borderGapTablet",i),Kt=us(N,"borderGapMobile",i),Jt=us(Ge,"quoteBorderRadius",i),Xt=us($,"quoteSize",i),Qt=us(K,"quoteSizeTablet",i),ea=us(J,"quoteSizeMobile",i),ta=us(Dt,"authorSpace",i),aa=us(Nt,"authorSpaceTablet",i),la=us(It,"authorSpaceMobile",i),ia=us(he,"authorImageWidth",i),oa=us(ve,"authorImageWidthTablet",i),na=us(_e,"authorImageWidthMobile",i),ra=us(Ce,"authorImageGap",i),sa=us(Se,"authorImageGapTablet",i),ca=us(ke,"authorImageGapMobile",i),ua=us(ye,"tweetIconSpacing",i);let pa=s;"border"===r&&(pa="left");const da={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":Vr(p,d),"font-family":m,"font-weight":y,"line-height":Vr(h,f),"font-style":wt,"text-decoration":dt,"text-transform":ct,color:u,"margin-bottom":Vr(Vt,qe),"text-align":pa,"letter-spacing":Vr(Gt,Bt)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":Vr(T,C),"font-family":w,"font-weight":P,"line-height":Vr(A,x),"font-style":Pt,"text-decoration":bt,"text-transform":ut,color:c,"text-align":pa,"letter-spacing":Vr(Ut,Lt)},".uagb-blockquote__skin-border blockquote.uagb-blockquote":{"border-color":H,"border-left-style":F,"border-left-width":Vr(Zt,Ne),"padding-left":Vr($t,We),"padding-top":Vr(I,q),"padding-bottom":Vr(I,q)},".uagb-blockquote__skin-border blockquote.uagb-blockquote:hover":{"border-left-color":Le},".uagb-blockquote__skin-quotation .uagb-blockquote__icon":{background:X,"border-radius":Vr(Jt,Ie),"margin-top":Vr(Me,Ve),"margin-bottom":Vr(Re,Ve),"margin-left":Vr(Be,Ve),"margin-right":Vr(Ue,Ve),padding:Vr(He,Fe)},".uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{width:Vr(Xt,Y),height:Vr(Xt,Y),fill:Z},".uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover":{background:Oe},".uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg":{fill:Ee},".uagb-blockquote__style-style_1 .uagb-blockquote":{"text-align":s}," .uagb-blockquote__author-wrap":{"margin-bottom":Vr(ta,Ze)}," .uagb-blockquote__author-wrap img":{width:Vr(ia,Te),height:Vr(ia,Te),"border-radius":Vr(Pe,De)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right img":{"margin-left":Vr(ra,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top img":{"margin-bottom":Vr(ra,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left img":{"margin-right":Vr(ra,we)}};if(Q){da[" a.uagb-blockquote__tweet-button"]={"font-size":Vr(ee,te),"font-family":oe,"font-weight":ne,"line-height":Vr(se,re),"font-style":xt,"text-decoration":gt,"text-transform":pt,"letter-spacing":Vr(Ht,zt)},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"]={color:pe},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"]={fill:pe},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"]={color:de,"background-color":be,"padding-left":Vr(Ke,nt),"padding-right":Vr(Je,nt),"padding-top":Vr($e,nt),"padding-bottom":Vr(Ye,nt)},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"]={color:de,"background-color":be,"padding-left":Vr(Ke,nt),"padding-right":Vr(Je,nt),"padding-top":Vr($e,nt),"padding-bottom":Vr(Ye,nt)},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"]={fill:de},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"]={fill:de},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"]={"border-right-color":be},da[" a.uagb-blockquote__tweet-button svg"]={width:Vr(ee,te),height:Vr(ee,te)};const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";da[".uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"]={[e]:Vr(ua,fe)},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"]={color:ge},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"]={fill:ge},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"]={color:ge,"background-color":me},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"]={fill:ge,"background-color":me},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover "]={color:ge,"background-color":me},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"]={fill:ge,"background-color":me},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"]={"border-right-color":me}}const ba={".uagb-blockquote__skin-quotation .uagb-blockquote__icon":{"margin-top":Vr(mt,kt),"margin-bottom":Vr(yt,kt),"margin-left":Vr(ft,kt),"margin-right":Vr(ht,kt),padding:Vr(je,Fe)}," .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":Vr(b,d),"line-height":Vr(v,f),"margin-bottom":Vr(Wt,qe),"letter-spacing":Vr(Mt,Bt)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":Vr(S,C),"line-height":Vr(G,x),"letter-spacing":Vr(Et,Lt)}," a.uagb-blockquote__tweet-button":{"font-size":Vr(le,te),"line-height":Vr(ce,re),"letter-spacing":Vr(Ft,zt)}," a.uagb-blockquote__tweet-button svg":{width:Vr(le,te),height:Vr(le,te)},".uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{width:Vr(Qt,Y),height:Vr(Qt,Y)},".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button":{"padding-left":Vr(tt,st),"padding-right":Vr(Qe,st),"padding-top":Vr(Xe,st),"padding-bottom":Vr(et,st)},".uagb-blockquote__skin-border blockquote.uagb-blockquote":{"padding-top":Vr(V,q),"padding-bottom":Vr(V,q),"padding-left":Vr(Yt,We)}," .uagb-blockquote__author-wrap":{"margin-bottom":Vr(aa,Ze)}," .uagb-blockquote__author-wrap img":{width:Vr(oa,Te),height:Vr(oa,Te),"border-radius":Vr(xe,De)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right img":{"margin-left":"tablet"===At?"0px":Vr(sa,we),"margin-bottom":"tablet"===At?Vr(sa,we):"0px"}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top img":{"margin-bottom":Vr(sa,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left img":{"margin-right":"tablet"===At?"0px":Vr(sa,we),"margin-bottom":"tablet"===At?Vr(sa,we):"0px"}},ga={".uagb-blockquote__skin-quotation .uagb-blockquote__icon":{"margin-top":Vr(vt,St),"margin-bottom":Vr(_t,St),"margin-left":Vr(Tt,St),"margin-right":Vr(Ct,St),padding:Vr(ze,Fe)}," .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":Vr(g,d),"line-height":Vr(_,f),"margin-bottom":Vr(qt,qe),"letter-spacing":Vr(Rt,Bt)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":Vr(k,C),"line-height":Vr(M,x),"letter-spacing":Vr(Ot,Lt)}," a.uagb-blockquote__tweet-button":{"font-size":Vr(ie,te),"line-height":Vr(ue,re),"letter-spacing":Vr(jt,zt)}," a.uagb-blockquote__tweet-button svg":{width:Vr(ie,te),height:Vr(ie,te)},".uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{width:Vr(ea,Y),height:Vr(ea,Y)},".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button":{"padding-left":Vr(ot,rt),"padding-right":Vr(lt,rt),"padding-top":Vr(at,rt),"padding-bottom":Vr(it,rt)},".uagb-blockquote__skin-border blockquote.uagb-blockquote":{"padding-top":Vr(W,q),"padding-bottom":Vr(W,q),"padding-left":Vr(Kt,We)}," .uagb-blockquote__author-wrap":{"margin-bottom":Vr(la,Ze)}," .uagb-blockquote__author-wrap img":{width:Vr(na,Te),height:Vr(na,Te),"border-radius":Vr(Ae,De)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right img":{"margin-left":"none"!==At?"0px":Vr(ca,we),"margin-bottom":"none"!==At?Vr(ca,we):"0px"}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top img":{"margin-bottom":Vr(ca,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left img":{"margin-right":"none"!==At?"0px":Vr(ca,we),"margin-bottom":"none"!==At?Vr(ca,we):"0px"}},ma=".editor-styles-wrapper .uagb-block-"+n;let ya=ae(da,ma);return"tablet"!==o&&"mobile"!==o||(ya+=ae(ba,""+ma,!0,"tablet"),"mobile"===o&&(ya+=ae(ga,""+ma,!0,"mobile"))),ya}(t,0,u,p),[t,p]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:d}),React.createElement(Wy,{attributes:t}),r&&React.createElement($y,e),React.createElement(of,e))});a(224);var rf=e=>{let{attributes:t}=e;return React.createElement("a",{href:"/",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon,React.createElement("span",{className:"uagb-blockquote__tweet-label"},t.iconLabel)),"icon"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon),"text"===t.iconView&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-blockquote__tweet-label"},t.iconLabel)))},sf=e=>{let{attributes:t}=e,a="";void 0!==t.authorImage&&null!==t.authorImage&&""!==t.authorImage&&(a=t.authorImage.url);let l="";if(""!==a){const e=t.authorImage.sizes,i=t.authorImageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("div",{className:"uagb-blockquote__author-image"},React.createElement("img",{className:"",src:l,alt:t.authorImage.alt}))}return null},cf=e=>{let{attributes:t}=e,a="";void 0!==t.authorImage&&null!==t.authorImage&&""!==t.authorImage&&(a=t.authorImage.url);let l="";if(""!==a){const e=t.authorImage.sizes,i=t.authorImageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("img",{className:"",src:l,alt:t.authorImage.alt})}return null};const uf={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"},quoteBorderRadiusUnit:{type:"string",default:"%"},paddingBtnUnit:{type:"string",default:"px"},mobilePaddingBtnUnit:{type:"string",default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px"},tweetIconSpacingUnit:{type:"string",default:"px"},quoteUnit:{type:"string",default:"px"},quotemobileUnit:{type:"string",default:"px"},quotetabletUnit:{type:"string",default:"px"},descSpaceUnit:{type:"string",default:"px"},borderWidthUnit:{type:"string",default:"px"},borderGapUnit:{type:"string",default:"px"},verticalPaddingUnit:{type:"string",default:"px"}};var pf=[{attributes:uf,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-"+t},React.createElement("div",{className:Be()("uagb-blockquote__wrap","uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("div",{className:"uagb-blockquote__icon-wrap"},React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon)),React.createElement("div",{className:"uagb-blockquote__content-wrap"},""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(sf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(rf,{attributes:e.attributes}))))))}},{attributes:uf,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-"+t},React.createElement("div",{className:Be()("uagb-blockquote__wrap","uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("div",{className:"uagb-blockquote__icon-wrap"},React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon)),React.createElement("div",{className:"uagb-blockquote__content-wrap"},""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(sf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(rf,{attributes:e.attributes}))))))}},{attributes:uf,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-blockquote__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()("uagb-blockquote__wrap","uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("div",{className:"uagb-blockquote__icon-wrap"},React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon)),React.createElement("div",{className:"uagb-blockquote__content-wrap"},""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(sf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(rf,{attributes:e.attributes}))))))}},{attributes:jt,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon),""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(cf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(Xy,{attributes:e.attributes}))))}}],df={from:[{type:"block",blocks:["core/quote"],transform:e=>Object(de.createBlock)("uagb/blockquote",{descriptionText:e.value,author:e.citation,align:e.align,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)})},{type:"block",blocks:["core/pullquote"],transform:e=>{var t,a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,V;return Object(de.createBlock)("uagb/blockquote",{descriptionText:e.value,author:(null==e?void 0:e.citation)||"",align:(null==e?void 0:e.textAlign)||"center",enableTweet:!1,descColor:(null==e||null===(t=e.style)||void 0===t||null===(a=t.color)||void 0===a?void 0:a.text)||Pc(null==e?void 0:e.textColor)||"",authorColor:(null==e||null===(l=e.style)||void 0===l||null===(i=l.color)||void 0===i?void 0:i.text)||Pc(null==e?void 0:e.textColor)||"",descFontSize:N((null==e||null===(o=e.style)||void 0===o||null===(n=o.typography)||void 0===n?void 0:n.fontSize)||"16"),authorFontSize:N((null==e||null===(r=e.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.fontSize)||"16"),descFontSizeType:I((null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.fontSize)||""),authorFontSizeType:I((null==e||null===(p=e.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.fontSize)||""),descFontWeight:(null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.fontWeight)||"",authorFontWeight:(null==e||null===(m=e.style)||void 0===m||null===(y=m.typography)||void 0===y?void 0:y.fontWeight)||"",descLetterSpacing:N((null==e||null===(f=e.style)||void 0===f||null===(h=f.typography)||void 0===h?void 0:h.letterSpacing)||"0"),authorLetterSpacing:N((null==e||null===(v=e.style)||void 0===v||null===(_=v.typography)||void 0===_?void 0:_.letterSpacing)||"0"),descLetterSpacingType:I((null==e||null===(T=e.style)||void 0===T||null===(C=T.typography)||void 0===C?void 0:C.letterSpacing)||""),authorLetterSpacingType:I((null==e||null===(S=e.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.letterSpacing)||""),descDecoration:(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.textDecoration)||"",authorDecoration:(null==e||null===(x=e.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.textDecoration)||"",descTransform:(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.textTransform)||"",authorTransform:(null==e||null===(R=e.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.textTransform)||"",descLineHeight:N((null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.lineHeight)||"1.5"),authorLineHeight:N((null==e||null===(O=e.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.lineHeight)||"1.5"),skinStyle:"quotation",quoteStyle:"style_1",descFontStyle:"normal",quoteColor:(null==e||null===(H=e.style)||void 0===H||null===(F=H.color)||void 0===F?void 0:F.text)||Pc(null==e?void 0:e.textColor)||"",quoteSize:N((null==e||null===(j=e.style)||void 0===j||null===(z=j.typography)||void 0===z?void 0:z.fontSize)||"16"),quoteSizeType:I((null==e||null===(D=e.style)||void 0===D||null===(V=D.typography)||void 0===V?void 0:V.fontSize)||"")})}},{type:"block",blocks:["core/heading"],transform:e=>Object(de.createBlock)("uagb/blockquote",{descriptionText:e.content,align:e.textAlign,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)})},{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("uagb/blockquote",{descriptionText:e.content,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)})},{type:"block",blocks:["core/list"],transform:(e,t)=>{const a=[];return t.forEach((e,l)=>{a.push({text:t[l].attributes.content})}),a.map(t=>Object(de.createBlock)("uagb/blockquote",{descriptionText:t.text,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)}))}}],to:[{type:"block",blocks:["core/quote"],transform:e=>Object(de.createBlock)("core/quote",{value:`

${e.descriptionText}

`,citation:e.author,align:e.align})},{type:"block",blocks:["core/heading"],transform:e=>Object(de.createBlock)("core/heading",{content:e.descriptionText,align:e.align})},{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/paragraph",{content:e.descriptionText,align:e.align})}]};let bf={};bf=Object(F.applyFilters)("uagb/blockquote",ss(bf)),Object(de.registerBlockType)("uagb/blockquote",{...bf,title:Object(r.__)("Blockquote","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display qoutes/quoted texts using blockquote.","ultimate-addons-for-gutenberg"),icon:se.blockquote,keywords:[Object(r.__)("blockquote","ultimate-addons-for-gutenberg"),Object(r.__)("quote","ultimate-addons-for-gutenberg"),Object(r.__)("uagb","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:jt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"blockquote"}):React.createElement(nf,e),save:function(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon),""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(Ky,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(Xy,{attributes:e.attributes}))))},deprecated:pf,transforms:df}),a(58);var gf=function(e,t){let a="uagb-timeline__arrow-top ";"center"===e.arrowlinAlignment?a="uagb-timeline__arrow-center ":"bottom"===e.arrowlinAlignment&&(a="uagb-timeline__arrow-bottom ");let l=t;"Desktop"===t&&(l="");const i=void 0!==e["timelinAlignment"+l]?e["timelinAlignment"+l]:e.timelinAlignment;let o="uagb-timeline__center-block ";return"left"===i?o="uagb-timeline__left-block ":"right"===i&&(o="uagb-timeline__right-block "),o+=a+"",o+=" uagb-timeline",[o]},mf=function(e,t,a){let l="",i=a;"Desktop"===a&&(i="");const o=void 0!==e["timelinAlignment"+i]?e["timelinAlignment"+i]:e.timelinAlignment;return"left"===o?l="uagb-timeline__left":"right"===o?l="uagb-timeline__right":"center"===o&&(l=t%2==0?"uagb-timeline__right":"uagb-timeline__left"),[l]},yf=function(e,t,a){let l="",i=a;"Desktop"===a&&(i="");const o=void 0!==e["timelinAlignment"+i]?e["timelinAlignment"+i]:e.timelinAlignment;return"left"===o?l="uagb-timeline__day-new uagb-timeline__day-left":"right"===o?l="uagb-timeline__day-new uagb-timeline__day-right":"center"===o&&(l=t%2==0?"uagb-timeline__day-new uagb-timeline__day-right":"uagb-timeline__day-new uagb-timeline__day-left"),[l]};function ff(e){var t="uagb-timeline__arrow-top ";"center"==e.arrowlinAlignment?t="uagb-timeline__arrow-center ":"bottom"==e.arrowlinAlignment&&(t="uagb-timeline__arrow-bottom ");var a="uagb-timeline__center-block ";return"left"==e.timelinAlignment?a="uagb-timeline__left-block ":"right"==e.timelinAlignment&&(a="uagb-timeline__right-block "),a+=t+"",[a+="uagb-timeline__responsive-"+e.stack+" uagb-timeline"]}var hf=[{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,stack:s,className:c}=e.attributes,u=(Array.isArray(n)&&n.length,Object(Ry.getSettings)().formats.date);let p=mf(e.attributes,0),d=yf(e.attributes,0),b=!1;return React.createElement("div",{className:Be()(c,"uagb-timeline__outer-wrap"),id:"uagb-ctm-"+t},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{"center"==l&&(b=!0,p=mf(e.attributes,n),d=yf(e.attributes,n));const s="uagb-timeline__icon-new out-view-uagb-timeline__icon "+o;return React.createElement("article",{className:"uagb-timeline__field uagb-timeline__animate-border",key:n},React.createElement("div",{className:Be()(...p)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:s})),React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},Object(Ry.dateI18n)(u,r[n].title))),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),b&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},Object(Ry.dateI18n)(u,r[n].title)))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,stack:s,className:c}=e.attributes,u=(Array.isArray(n)&&n.length,Object(Ry.getSettings)().formats.date);let p=mf(e.attributes,0),d=yf(e.attributes,0),b=!1;return React.createElement("div",{className:Be()(c,"uagb-timeline__outer-wrap"),id:"uagb-ctm-"+t},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{"center"==l&&(b=!0,p=mf(e.attributes,n),d=yf(e.attributes,n));const s="uagb-timeline__icon-new out-view-uagb-timeline__icon "+o;let c=Object(Ry.dateI18n)(u,r[n].title);return"Invalid date"===c&&(c=r[n].title),React.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},React.createElement("div",{className:Be()(...p)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:s})),React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},c)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),b&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},c))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,date_icon:s,stack:c,timelineItem:u}=e.attributes,p=(Array.isArray(n)&&n.length,Object(Ry.getSettings)().formats.date);let d=mf(e.attributes,0),b=yf(e.attributes,0),g=!1;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap"),id:"uagb-ctm-"+t},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{if(u<=n)return;"center"==l&&(g=!0,d=mf(e.attributes,n),b=yf(e.attributes,n));let s=Object(Ry.dateI18n)(p,r[n].title);return"Invalid date"===s&&(s=r[n].title),React.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:"uagb-timeline__icon-new out-view-uagb-timeline__icon "},kb(o))),React.createElement("div",{className:Be()(...b)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},s)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),g&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},s))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,date_icon:s,stack:c,timelineItem:u,dateFormat:p}=e.attributes;Array.isArray(n)&&n.length;let d=mf(e.attributes,0),b=yf(e.attributes,0),g=!1;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{if(u<=n)return;"center"==l&&(g=!0,d=mf(e.attributes,n),b=yf(e.attributes,n));let s=r[n].title;return"custom"!=p&&(s=Object(Ry.dateI18n)(p,r[n].title),"Invalid date"===s&&(s=r[n].title)),React.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:"uagb-timeline__icon-new out-view-uagb-timeline__icon "},kb(o))),React.createElement("div",{className:Be()(...b)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},s)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),g&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},s))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...ff(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},React.createElement(ge.InnerBlocks.Content,null)),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}}];function vf(){return(vf=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,clientId:a,attributes:{headSpace:l,headSpaceTablet:i,headSpaceMobile:o,headingColor:s,subHeadingColor:c,backgroundColor:u,separatorColor:p,separatorFillColor:d,separatorBg:b,separatorBorder:g,borderFocus:m,headingTag:y,headFontSizeType:f,headFontSize:h,headFontSizeTablet:v,headFontSizeMobile:_,headFontFamily:T,headFontWeight:C,headFontStyle:S,headLineHeightType:k,headLineHeight:w,headLineHeightTablet:P,headLineHeightMobile:x,headLoadGoogleFonts:A,timelinAlignment:G,timelinAlignmentTablet:M,timelinAlignmentMobile:R,arrowlinAlignment:B,subHeadFontSizeType:U,subHeadFontSize:E,subHeadFontSizeTablet:O,subHeadFontSizeMobile:L,subHeadFontFamily:H,subHeadFontWeight:F,subHeadFontStyle:j,subHeadLineHeightType:z,subHeadLineHeight:D,subHeadLineHeightTablet:N,subHeadLineHeightMobile:I,subHeadLoadGoogleFonts:V,separatorwidth:W,borderwidth:q,connectorBgsize:Z,connectorBgsizeTablet:$,connectorBgsizeMobile:Y,dateBottomspace:K,dateBottomspaceTablet:J,dateBottomspaceMobile:X,align:Q,alignTablet:ee,alignMobile:te,icon:ae,iconColor:le,dateColor:ie,dateFontSizeType:oe,dateFontSize:ne,dateFontSizeTablet:re,dateFontSizeMobile:se,dateFontFamily:ce,dateFontWeight:ue,dateFontStyle:pe,dateLineHeightType:de,dateLineHeight:be,dateLineHeightTablet:me,dateLineHeightMobile:ye,dateLoadGoogleFonts:fe,iconSize:he,iconSizeTablet:ve,iconSizeMobile:_e,borderRadius:Te,borderRadiusTablet:Se,borderRadiusMobile:ke,iconFocus:we,iconBgFocus:Pe,displayPostDate:xe,dateFormat:Ae,topPadding:Ge,rightPadding:Me,bottomPadding:Re,leftPadding:Be,topPaddingTablet:Ue,rightPaddingTablet:Oe,bottomPaddingTablet:He,leftPaddingTablet:Fe,topPaddingMobile:ze,rightPaddingMobile:De,bottomPaddingMobile:Ne,leftPaddingMobile:Ie,paddingUnit:Ve,mobilePaddingUnit:We,tabletPaddingUnit:qe,paddingLink:Ze,headTransform:$e,subHeadTransform:Ye,dateTransform:Ke,headDecoration:Je,subHeadDecoration:Xe,headLetterSpacing:Qe,headLetterSpacingTablet:et,headLetterSpacingMobile:tt,headLetterSpacingType:at,subHeadLetterSpacing:lt,subHeadLetterSpacingTablet:it,subHeadLetterSpacingMobile:ot,subHeadLetterSpacingType:nt,dateLetterSpacing:rt,dateLetterSpacingTablet:st,dateLetterSpacingMobile:ct,dateLetterSpacingType:ut,dateDecoration:pt,verticalSpace:dt,verticalSpaceTablet:bt,verticalSpaceMobile:gt,verticalSpaceUnit:mt,verticalSpaceUnitTablet:yt,verticalSpaceUnitMobile:ft,horizontalSpace:ht,horizontalSpaceTablet:vt,horizontalSpaceMobile:_t,horizontalSpaceUnit:Tt,horizontalSpaceUnitTablet:Ct,horizontalSpaceUnitMobile:St}}=e,kt=new Date;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Orientation","ultimate-addons-for-gutenberg"),data:{desktop:{value:G,label:"timelinAlignment"},tablet:{value:M,label:"timelinAlignmentTablet"},mobile:{value:R,label:"timelinAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Q,label:"align"},tablet:{value:ee,label:"alignTablet"},mobile:{value:te,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Arrow Alignment","ultimate-addons-for-gutenberg"),data:{value:B,label:"arrowlinAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement("h2",null,Object(r.__)("Date","ultimate-addons-for-gutenberg")),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Date","ultimate-addons-for-gutenberg"),checked:xe,onChange:()=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(e=>{e.attributes.displayPostDate=xe}),t({displayPostDate:!xe})}}),xe&&React.createElement(Pi,{label:Object(r.__)("Date Format","ultimate-addons-for-gutenberg"),data:{value:Ae},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.dateFormat=e}),t({dateFormat:e})},options:[{value:"M j, Y",label:Object(Ry.dateI18n)("M j, Y",kt)},{value:"F j, Y",label:Object(Ry.dateI18n)("F j, Y",kt)},{value:"m/d/Y",label:Object(Ry.dateI18n)("m/d/Y",kt)},{value:"m-d-Y",label:Object(Ry.dateI18n)("m-d-Y",kt)},{value:"m.d.Y",label:Object(Ry.dateI18n)("m.d.Y",kt)},{value:"d M Y",label:Object(Ry.dateI18n)("d M Y",kt)},{value:"d F Y",label:Object(Ry.dateI18n)("d F Y",kt)},{value:"d-m-Y",label:Object(Ry.dateI18n)("d-m-Y",kt)},{value:"d.m.Y",label:Object(Ry.dateI18n)("d.m.Y",kt)},{value:"d/m/Y",label:Object(Ry.dateI18n)("d/m/Y",kt)},{value:"Y-m-d",label:Object(Ry.dateI18n)("Y-m-d",kt)},{value:"Y.m.d",label:Object(Ry.dateI18n)("Y.m.d",kt)},{value:"Y/m/d",label:Object(Ry.dateI18n)("Y/m/d",kt)},{value:"M, Y",label:Object(Ry.dateI18n)("M, Y",kt)},{value:"M Y",label:Object(Ry.dateI18n)("M Y",kt)},{value:"F, Y",label:Object(Ry.dateI18n)("F, Y",kt)},{value:"F Y",label:Object(Ry.dateI18n)("F Y",kt)},{value:"custom",label:Object(r.__)("Normal Text","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Timeline Item","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:y,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:ae,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.icon=e}),t({icon:e})}}),ae&&React.createElement(tl,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:he,label:"iconSize"},tablet:{value:ve,label:"iconSizeTablet"},mobile:{value:_e,label:"iconSizeMobile"}},min:0,max:30,displayUnit:!1,setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Icon Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Z,label:"connectorBgsize"},tablet:{value:$,label:"connectorBgsizeTablet"},mobile:{value:Y,label:"connectorBgsizeMobile"}},min:0,max:90,displayUnit:!1,setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Border Width","ultimate-addons-for-gutenberg"),setAttributes:t,value:q,data:{value:q,label:"borderwidth"},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.borderwidth=e}),t({borderwidth:e})},min:1,max:10,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Connector Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:W,data:{value:W,label:"separatorwidth"},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.separatorwidth=e}),t({separatorwidth:e})},min:1,max:10,displayUnit:!1}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pl,vf({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ge,label:"topPadding"},valueRight:{value:Me,label:"rightPadding"},valueBottom:{value:Re,label:"bottomPadding"},valueLeft:{value:Be,label:"leftPadding"},valueTopTablet:{value:Ue,label:"topPaddingTablet"},valueRightTablet:{value:Oe,label:"rightPaddingTablet"},valueBottomTablet:{value:He,label:"bottomPaddingTablet"},valueLeftTablet:{value:Fe,label:"leftPaddingTablet"},valueTopMobile:{value:ze,label:"topPaddingMobile"},valueRightMobile:{value:De,label:"rightPaddingMobile"},valueBottomMobile:{value:Ne,label:"bottomPaddingMobile"},valueLeftMobile:{value:Ie,label:"leftPaddingMobile"},unit:{value:Ve,label:"paddingUnit"},mUnit:{value:We,label:"mobilePaddingUnit"},tUnit:{value:qe,label:"tabletPaddingUnit"},attributes:e,setAttributes:t,link:{value:Ze,label:"paddingLink"}})),React.createElement(tl,{label:Object(r.__)("Timeline - Marker Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:ht,label:"horizontalSpace",unit:{value:Tt,label:"horizontalSpaceUnit"}},tablet:{value:vt,label:"horizontalSpaceTablet",unit:{value:Ct,label:"horizontalSpaceUnitTablet"}},mobile:{value:_t,label:"horizontalSpaceMobile",unit:{value:St,label:"horizontalSpaceUnitMobile"}}},min:0,limitMax:{px:50,"%":100,em:50},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Timeline Item Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:dt,label:"verticalSpace",unit:{value:mt,label:"verticalSpaceUnit"}},tablet:{value:bt,label:"verticalSpaceTablet",unit:{value:yt,label:"verticalSpaceUnitTablet"}},mobile:{value:gt,label:"verticalSpaceMobile",unit:{value:ft,label:"verticalSpaceUnitMobile"}}},min:0,limitMax:{px:100,"%":100,em:100},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t})),React.createElement(je,{title:Object(r.__)("Timeline Item","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement("h2",null,Object(r.__)("Heading","ultimate-addons-for-gutenberg")),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"headingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:t,loadGoogleFonts:{value:A,label:"headLoadGoogleFonts"},fontFamily:{value:T,label:"headFontFamily"},fontWeight:{value:C,label:"headFontWeight"},fontStyle:{value:S,label:"headFontStyle"},fontSizeType:{value:f,label:"headFontSizeType"},fontSize:{value:h,label:"headFontSize"},fontSizeMobile:{value:_,label:"headFontSizeMobile"},fontSizeTablet:{value:v,label:"headFontSizeTablet"},lineHeightType:{value:k,label:"headLineHeightType"},lineHeight:{value:w,label:"headLineHeight"},lineHeightMobile:{value:x,label:"headLineHeightMobile"},lineHeightTablet:{value:P,label:"headLineHeightTablet"},letterSpacing:{value:Qe,label:"headLetterSpacing"},letterSpacingTablet:{value:et,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:tt,label:"headLetterSpacingMobile"},letterSpacingType:{value:at,label:"headLetterSpacingType"},transform:{value:$e,label:"headTransform"},decoration:{value:Je,label:"headDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"headSpace"},tablet:{value:i,label:"headSpaceTablet"},mobile:{value:o,label:"headSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t}),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement("h2",null,Object(r.__)("Description","ultimate-addons-for-gutenberg")),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"subHeadingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:t,loadGoogleFonts:{value:V,label:"subHeadLoadGoogleFonts"},fontFamily:{value:H,label:"subHeadFontFamily"},fontWeight:{value:F,label:"subHeadFontWeight"},fontStyle:{value:j,label:"subHeadFontStyle"},fontSizeType:{value:U,label:"subHeadFontSizeType"},fontSize:{value:E,label:"subHeadFontSize"},fontSizeMobile:{value:L,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:O,label:"subHeadFontSizeTablet"},lineHeightType:{value:z,label:"subHeadLineHeightType"},lineHeight:{value:D,label:"subHeadLineHeight"},lineHeightMobile:{value:I,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:N,label:"subHeadLineHeightTablet"},letterSpacing:{value:lt,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:it,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:nt,label:"subHeadLetterSpacingType"},transform:{value:Ye,label:"subHeadTransform"},decoration:{value:Xe,label:"subHeadDecoration"}}),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement("h2",null,Object(r.__)("Timeline","ultimate-addons-for-gutenberg")),React.createElement(tl,{label:Object(r.__)("Border radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:Te,label:"borderRadius"},tablet:{value:Se,label:"borderRadiusTablet"},mobile:{value:ke,label:"borderRadiusMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"backgroundColor"},setAttributes:t})),xe&&React.createElement(je,{title:Object(r.__)("Date","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ie||"",data:{value:ie,label:"dateColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:t,loadGoogleFonts:{value:fe,label:"dateLoadGoogleFonts"},fontFamily:{value:ce,label:"dateFontFamily"},fontWeight:{value:ue,label:"dateFontWeight"},fontStyle:{value:pe,label:"dateFontStyle"},fontSizeType:{value:oe,label:"dateFontSizeType"},fontSize:{value:ne,label:"dateFontSize"},fontSizeMobile:{value:se,label:"dateFontSizeMobile"},fontSizeTablet:{value:re,label:"dateFontSizeTablet"},lineHeightType:{value:de,label:"dateLineHeightType"},lineHeight:{value:be,label:"dateLineHeight"},lineHeightMobile:{value:ye,label:"dateLineHeightMobile"},lineHeightTablet:{value:me,label:"dateLineHeightTablet"},letterSpacing:{value:rt,label:"dateLetterSpacing"},letterSpacingTablet:{value:st,label:"dateLetterSpacingTablet"},letterSpacingMobile:{value:ct,label:"dateLetterSpacingMobile"},letterSpacingType:{value:ut,label:"dateLetterSpacingType"},transform:{value:Ke,label:"dateTransform"},decoration:{value:pt,label:"dateDecoration"}}),"center"!==G&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"dateBottomspace"},tablet:{value:J,label:"dateBottomspaceTablet"},mobile:{value:X,label:"dateBottomspaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),(()=>{const e=React.createElement(je,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"separatorColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:le||"",data:{value:le,label:"iconColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"separatorBg"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"separatorBorder"},setAttributes:t})),a=React.createElement(je,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"separatorFillColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:we||"",data:{value:we,label:"iconFocus"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Pe||"",data:{value:Pe,label:"iconBgFocus"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"borderFocus"},setAttributes:t}));return React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"focus",title:Object(r.__)("Focus","ultimate-addons-for-gutenberg")}],normal:e,focus:a,disableBottomSeparator:!0}))})()),React.createElement(il,vf({},rl,{parentProps:e})))))}),Cf=a(108),Sf=0,kf={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},wf={};wf.locals=Cf.a.locals||{},wf.use=function(){return Sf++||(_f=we()(Cf.a,kf)),wf},wf.unuse=function(){Sf>0&&!--Sf&&(_f(),_f=null)};var Pf=wf;const xf=["uagb/content-timeline-child"];var Af=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Pf.use(),()=>{Pf.unuse()}),[]);const{className:t,attributes:{tm_content:a,timelineItem:l,block_id:i},attributes:o,deviceType:n}=e,r=Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,dateLoadGoogleFonts:s,dateFontFamily:c,dateFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),Mf=Object(L.compose)(ls,fe)(e=>{const{setAttributes:t,clientId:a,attributes:l,attributes:{timelinAlignmentTablet:i,timelinAlignmentMobile:o,stack:r,UAGHideDesktop:s,UAGHideTab:c,UAGHideMob:u,dateFontSizeType:p,dateFontSize:d,dateFontSizeTablet:b,dateFontSizeMobile:g,dateFontsizeType:m,dateFontsize:y,dateFontsizeTablet:f,dateFontsizeMobile:h},isSelected:v,name:_,deviceType:T}=e;Object(B.useEffect)(()=>{l.timelinAlignment&&("none"===r?(void 0===i&&t({timelinAlignmentTablet:l.timelinAlignment}),void 0===o&&t({timelinAlignmentMobile:l.timelinAlignment})):(void 0===i&&"tablet"===r&&(t({timelinAlignmentTablet:"left"}),t({timelinAlignmentMobile:"left"})),void 0===o&&"mobile"===r&&(t({timelinAlignmentMobile:"left"}),t({timelinAlignmentTablet:l.timelinAlignment}))))},[]),Object(B.useEffect)(()=>{void 0===p&&t({dateFontSizeType:m}),void 0===d&&t({dateFontSize:y}),void 0===b&&t({dateFontSizeTablet:f}),void 0===g&&t({dateFontSizeMobile:h})},[]),Object(B.useEffect)(()=>{if(null===Object(n.select)("core/block-editor").getBlocksByClientId(a)[0])return;let e=T;"Desktop"===T&&(e="");const t=void 0!==l["timelinAlignment"+e]?l["timelinAlignment"+e]:l.timelinAlignment;Object(n.select)("core/block-editor").getBlocksByClientId(a)[0].innerBlocks.forEach((function(e,a){let l="";"left"===t?l="uagb-timeline__left":"right"===t?l="uagb-timeline__right":"center"===t&&(l=a%2==0?"uagb-timeline__right":"uagb-timeline__left");let i="";"left"===t?i="uagb-timeline__day-new uagb-timeline__day-left":"right"===t?i="uagb-timeline__day-new uagb-timeline__day-right":"center"===t&&(i=a%2==0?"uagb-timeline__day-new uagb-timeline__day-right":"uagb-timeline__day-new uagb-timeline__day-left"),Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{content_class:l}),Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{dayalign_class:i})})),Object(n.select)("core/block-editor").getBlocks(a).forEach(e=>{e.attributes.headingTag=l.headingTag,e.attributes.dateFormat=l.dateFormat})},[e,T]),Object(B.useEffect)(()=>{he(e)},[s,c,u,T]),Object(B.useEffect)(()=>{ys()},[T]);const C=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,dateBottomspace:r,dateBottomspaceTablet:s,dateBottomspaceMobile:c,backgroundColor:u,separatorColor:p,separatorFillColor:d,separatorBg:b,separatorBorder:g,borderFocus:m,separatorwidth:y,borderwidth:f,connectorBgsize:h,connectorBgsizeTablet:v,connectorBgsizeMobile:_,borderRadius:T,borderRadiusTablet:C,borderRadiusMobile:S,iconColor:k,dateFontSizeType:w,dateFontSize:P,dateFontSizeTablet:x,dateFontSizeMobile:A,dateFontFamily:G,dateFontWeight:M,dateLineHeightType:R,dateLineHeight:B,dateLineHeightTablet:U,dateLineHeightMobile:E,dateColor:O,iconSize:L,iconSizeTablet:H,iconSizeMobile:F,iconBgFocus:j,headFontSizeType:z,headFontSize:D,headFontSizeTablet:N,headFontSizeMobile:I,headFontFamily:V,headFontWeight:W,headLineHeightType:q,headLineHeight:Z,headLineHeightTablet:$,headLineHeightMobile:Y,align:K,alignTablet:J,alignMobile:X,headingColor:Q,headSpace:ee,headSpaceTablet:te,headSpaceMobile:le,subHeadFontSizeType:ie,subHeadFontSize:oe,subHeadFontSizeTablet:ne,subHeadFontSizeMobile:re,subHeadFontFamily:se,subHeadFontWeight:ce,subHeadLineHeightType:ue,subHeadLineHeight:pe,subHeadLineHeightTablet:de,subHeadLineHeightMobile:be,subHeadingColor:ge,topPadding:me,rightPadding:ye,bottomPadding:fe,leftPadding:he,topPaddingTablet:ve,rightPaddingTablet:_e,bottomPaddingTablet:Te,leftPaddingTablet:Ce,topPaddingMobile:Se,rightPaddingMobile:ke,bottomPaddingMobile:we,leftPaddingMobile:Pe,paddingUnit:xe,mobilePaddingUnit:Ae,tabletPaddingUnit:Ge,headFontStyle:Me,subHeadFontStyle:Re,dateFontStyle:Be,headTransform:Ue,subHeadTransform:Ee,dateTransform:Oe,headDecoration:Le,subHeadDecoration:He,dateDecoration:Fe,iconFocus:je,headLetterSpacing:ze,headLetterSpacingTablet:De,headLetterSpacingMobile:Ne,headLetterSpacingType:Ie,subHeadLetterSpacing:Ve,subHeadLetterSpacingTablet:We,subHeadLetterSpacingMobile:qe,subHeadLetterSpacingType:Ze,dateLetterSpacing:$e,dateLetterSpacingTablet:Ye,dateLetterSpacingMobile:Ke,dateLetterSpacingType:Je,verticalSpace:Xe,verticalSpaceTablet:Qe,verticalSpaceMobile:et,verticalSpaceUnit:tt,verticalSpaceUnitTablet:at,verticalSpaceUnitMobile:lt,horizontalSpace:it,horizontalSpaceTablet:ot,horizontalSpaceMobile:nt,horizontalSpaceUnit:rt,horizontalSpaceUnitTablet:st,horizontalSpaceUnitMobile:ct}=e,ut=us(f,"borderwidth",i),pt=us(y,"separatorwidth",i),dt=us(ee,"headSpace",i),bt=us(T,"borderRadius",i),gt=us(r,"dateBottomspace",i),mt=us(L,"iconSize",i),yt=us(H,"iconSizeTablet",i),ft=us(F,"iconSizeMobile",i),ht=us(h,"connectorBgsize",i),vt=us(v,"connectorBgsizeTablet",i),_t=us(_,"connectorBgsizeMobile",i),Tt={" .uagb-timeline__heading.rich-text":{"font-size":Vr(D,z),"font-family":V,"font-weight":W,"line-height":Vr(Z,q),"text-align":K,color:Q,"font-style":Me,"text-decoration":Le,"text-transform":Ue,"letter-spacing":Vr(ze,Ie)}," .uagb-timeline__heading a":{"font-size":Vr(D,z),"font-family":V,"font-weight":W,"line-height":Vr(Z,q),"text-align":K,color:Q,"font-style":Me,"text-decoration":Le,"text-transform":Ue,"letter-spacing":Vr(ze,Ie)}," .uagb-timeline__heading":{"margin-bottom":Vr(dt,"px")}," p.uagb-timeline-desc-content":{"font-size":Vr(oe,ie),"font-family":se,"font-weight":ce,"line-height":Vr(pe,ue),"text-align":K,color:ge,"font-style":Re,"text-decoration":He,"text-transform":Ee,"letter-spacing":Vr(Ve,Ze)}," .uagb-timeline__day-new":{"text-align":K}," .uagb-timeline__date-inner":{"text-align":K}," .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u,"border-right-color":u}," .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-left-color":u,"border-right-color":u}," .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u}," .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u}," .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-left-color":u}," .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u}," .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u}," .uagb-timeline__line__inner":{"background-color":d}," .uagb-timeline__line":{"background-color":p,width:Vr(pt,"px")},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+ht+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+ht+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+ht+"px / 2 )"}," .uagb-timeline__marker":{"background-color":b,"min-height":Vr(ht,"px"),"min-width":Vr(ht,"px"),"line-height":Vr(ht,"px"),border:ut+"px solid "+g},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__marker":{"margin-left":Vr(it,rt),"margin-right":Vr(it,rt)},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__marker":{"margin-left":Vr(it,rt),"margin-right":Vr(it,rt)}," .uagb-timeline__field":{"margin-bottom":Vr(Xe,tt)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"margin-bottom":Vr(gt,"px"),color:O,"font-size":Vr(P,w),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-align":K,"font-style":Be,"text-decoration":Fe,"text-transform":Oe,"letter-spacing":Vr($e,Je)}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"margin-bottom":Vr(gt,"px"),color:O,"font-size":Vr(P,w),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-align":K,"font-style":Be,"text-decoration":Fe,"text-transform":Oe,"letter-spacing":Vr($e,Je)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-right":Vr(it,rt)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(it,rt)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(it,rt)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(it,rt)}," .uagb-timeline__date-new":{color:O,"font-size":Vr(P,w),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"font-style":Be,"text-decoration":Fe,"text-transform":Oe,"letter-spacing":Vr($e,Je)}," .uagb-timeline__events-inner-new":{"background-color":u,"border-radius":Vr(bt,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(he,xe),"padding-right":Vr(ye,xe),"padding-top":Vr(me,xe),"padding-bottom":Vr(fe,xe)}," svg":{fill:k,"font-size":Vr(mt,"px"),width:Vr(mt,"px")}," .uagb-timeline__marker.uagb-timeline__in-view-icon":{background:j,"border-color":m}," .uagb-timeline__marker.uagb-timeline__in-view-icon svg":{fill:je}},Ct={" .uagb-timeline__heading.rich-text":{"text-align":J}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"font-size":Vr(x,w),"line-height":Vr(U,R),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Ye,Je)}," svg":{"font-size":Vr(yt,"px"),width:Vr(yt,"px")}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"font-size":Vr(x,w),"line-height":Vr(U,R),"margin-bottom":Vr(s,"px"),"text-align":J,"letter-spacing":Vr(Ye,Je)}," .uagb-timeline__date-new":{"font-size":Vr(x,w),"line-height":Vr(U,R),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Ye,Je)}," .uagb-timeline__heading":{"text-align":J,"font-size":Vr(N,z),"line-height":Vr($,q),"margin-bottom":Vr(te,"px"),"letter-spacing":Vr(De,Ie)}," .uagb-timeline__heading a":{"font-size":Vr(N,z),"line-height":Vr($,q),"text-align":J,"letter-spacing":Vr(De,Ie)}," p.uagb-timeline-desc-content":{"font-size":Vr(ne,ie),"line-height":Vr(de,ue),"text-align":J,"letter-spacing":Vr(We,Ze)},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(ot,st),"margin-right":Vr(ot,st)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-right":Vr(ot,st)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(ot,st)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(ot,st)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(ot,st)}," .uagb-timeline__field":{"margin-bottom":Vr(Qe,at)}," .uagb-timeline__events-inner-new":{"border-radius":Vr(C,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(Ce,Ge),"padding-right":Vr(_e,Ge),"padding-top":Vr(ve,Ge),"padding-bottom":Vr(Te,Ge)}," .uagb-timeline__day-new":{"text-align":J}," .uagb-timeline__date-inner":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__heading":{"text-align":J}," .uagb-timeline__center-block p.uagb-timeline-desc-content":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__day-new":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__date-inner":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__author-link":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__link_parent":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__image a":{"text-align":J}," .uagb-timeline__center-block a.uagb-timeline__image":{"text-align":J},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+vt+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+vt+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+vt+"px / 2 )"}," .uagb-timeline__marker":{"min-height":Vr(vt,"px"),"min-width":Vr(vt,"px"),"line-height":Vr(vt,"px")},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(vt,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(vt,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(vt,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(vt,"px")}},St={" .uagb-timeline__heading.rich-text":{"text-align":X}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"font-size":Vr(A,w),"line-height":Vr(E,R),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ke,Je)}," svg":{"font-size":Vr(ft,"px"),width:Vr(ft,"px")}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"font-size":Vr(A,w),"line-height":Vr(E,R),"margin-bottom":Vr(c,"px"),"text-align":X,"letter-spacing":Vr(Ke,Je)}," .uagb-timeline__date-new":{"font-size":Vr(A,w),"line-height":Vr(E,R),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ke,Je)}," .uagb-timeline__heading":{"font-size":Vr(I,z),"line-height":Vr(Y,q),"margin-bottom":Vr(le,"px"),"text-align":X,"letter-spacing":Vr(Ne,Ie)}," .uagb-timeline__heading a":{"font-size":Vr(I,z),"line-height":Vr(Y,q),"text-align":X,"letter-spacing":Vr(Ne,Ie)}," p.uagb-timeline-desc-content":{"font-size":Vr(re,ie),"line-height":Vr(be,ue),"text-align":X,"letter-spacing":Vr(qe,Ze)},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":0,"margin-right":0},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-right":Vr(nt,ct)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(nt,ct)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(nt,ct)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(nt,ct)}," .uagb-timeline__events-inner-new":{"border-radius":Vr(S,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(Pe,Ae),"padding-right":Vr(ke,Ae),"padding-top":Vr(Se,Ae),"padding-bottom":Vr(we,Ae)}," .uagb-timeline__field":{"margin-bottom":Vr(et,lt)}," .uagb-timeline__day-new":{"text-align":X}," .uagb-timeline__date-inner":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__heading":{"text-align":X}," .uagb-timeline__center-block p.uagb-timeline-desc-content":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__day-new":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__date-inner":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__author-link":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__link_parent":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__image a":{"text-align":X}," .uagb-timeline__center-block a.uagb-timeline__image":{"text-align":X},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+_t+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+_t+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+_t+"px / 2 )"}," .uagb-timeline__marker":{"min-height":Vr(_t,"px"),"min-width":Vr(_t,"px"),"line-height":Vr(_t,"px")},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(_t,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(_t,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(_t,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(_t,"px")}};let kt="";const wt=`.editor-styles-wrapper .uagb-block-${n}.uagb-timeline__outer-wrap`;return kt=ae(Tt,wt),"tablet"!==o&&"mobile"!==o||(kt+=ae(Ct,""+wt,!0,"tablet"),"mobile"===o&&(kt+=ae(St,""+wt,!0,"mobile"))),kt}(l,0,_,T),[l,T]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:C}),React.createElement(Gf,{attributes:l}),v&&React.createElement(Tf,e),React.createElement(Af,e))});const Rf=Object(L.compose)(Object(n.withSelect)(e=>({selected:e("core/block-editor").getSelectedBlock()}))),Bf=Object(L.createHigherOrderComponent)(e=>Rf(t=>{let{...a}=t;return React.createElement(e,a)}),"withcontentTimeline");let Uf={};function Ef(){return(Ef=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"content-timeline"}):React.createElement(Mf,e),save:function(e){const{block_id:t}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap","uagb-block-"+t,"uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"})))},deprecated:hf}),Object(F.addFilter)("editor.BlockEdit","uagb/content-timeline",Bf),a(225);var Of,Lf=Object(B.memo)(e=>{const{setAttributes:t,attributes:{t_date:a,displayPostDate:l}}=e;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,l?"":React.createElement(je,{initialOpen:!0},React.createElement(Ss,{label:Object(r.__)("Date (mm/dd/yyyy)","ultimate-addons-for-gutenberg"),value:a,data:{value:a,label:"t_date"},setAttributes:t,onChange:e=>t({t_date:e})}))),React.createElement(il,Ef({},rl,{parentProps:e}))))}),Hf=a(109),Ff=0,jf={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},zf={};zf.locals=Hf.a.locals||{},zf.use=function(){return Ff++||(Of=we()(Hf.a,jf)),zf},zf.unuse=function(){Ff>0&&!--Ff&&(Of(),Of=null)};var Df=zf,Nf=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Df.use(),()=>{Df.unuse()}),[]);const{setAttributes:t,insertBlocksAfter:a,mergeBlocks:l,onReplace:i,attributes:o,attributes:{block_id:s,headingTag:c,t_date:u,displayPostDate:p,dateFormat:d,time_heading:b,time_desc:g,content:m,icon:y},deviceType:f,clientId:h}=e,v=Object(n.select)("core/block-editor").getBlockParents(h).at(-1),_=Object(n.select)("core/block-editor").getBlockAttributes(v);Object(B.useEffect)(()=>{null!=_&&_.icon&&t({icon:_.icon})},[null==_?void 0:_.icon]);let T=!1;const C=u;return"center"===(void 0!==o["timelinAlignment"+f]?o["timelinAlignment"+f]:o.timelinAlignment)&&(T=!0),React.createElement("article",{className:Be()("wp-block-uagb-content-timeline-child uagb-timeline__field","uagb-timeline-child-"+s,e.attributes.content_class)},React.createElement("div",{className:"uagb-timeline__marker uagb-timeline__out-view-icon"},Ce(y,t)),React.createElement("div",{className:Be()(e.attributes.dayalign_class,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},!0!==p&&u&&React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__inner-date-new"},"custom"!==d&&Object(Ry.format)(d,C)||C),React.createElement(ge.RichText,{tagName:c,value:b,onChange:e=>t({time_heading:e}),placeholder:Object(r.__)("Write a Heading","ultimate-addons-for-gutenberg"),className:"uagb-timeline__heading",onMerge:l,onSplit:a?function(e,l){t({content:e});for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;ni([])}),React.createElement(ge.RichText,{tagName:"p",value:g,onChange:e=>t({time_desc:e}),placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-timeline-desc-content",onMerge:l,onSplit:function(e,l){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;ri([])}),React.createElement("div",{className:"uagb-timeline__arrow"}))),T&&React.createElement("div",{className:"uagb-timeline__date-new"},!0!==p&&u&&React.createElement(React.Fragment,null,"custom"!==d&&Object(Ry.format)(d,C)||C)))}),If=Object(L.compose)(ls)(e=>{const{isSelected:t,deviceType:a}=e;return Object(B.useEffect)(()=>{const e=new CustomEvent("UAGTimelineEditor",{detail:{}});document.dispatchEvent(e)},[e,a]),React.createElement(React.Fragment,null,t&&React.createElement(Lf,e),React.createElement(Nf,e))});Rt.time_desc.default=Object(r.__)("This is Timeline description, you can change me anytime click here ","ultimate-addons-for-gutenberg");var Vf=[{attributes:Rt,save(e){const{block_id:t,headingTag:a,displayPostDate:l,icon:i,t_date:o,dateFormat:n,time_heading:r,time_desc:s}=e.attributes;let c=o;"custom"!=n&&(c=Object(Ry.dateI18n)(n,o),"Invalid date"===c&&(c=o));let u="",p="";return"undefined"!=e.attributes.dayalign_class&&"undefined"!=e.attributes.content_class&&(u=e.attributes.content_class,p=e.attributes.dayalign_class),React.createElement("article",{className:Be()("uagb-timeline__field uagb-timeline__field-wrap","uagb-timeline-child-"+t)},React.createElement("div",{className:Be()(u)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:"uagb-timeline__icon-new out-view-uagb-timeline__icon "},kb(i))),React.createElement("div",{className:Be()(p)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},React.createElement("div",{className:"uagb-timeline__inner-date-new"},c)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:r,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:s,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),React.createElement("div",{className:"uagb-timeline__date-new"},1!=l&&o&&React.createElement("div",{className:"uagb-timeline__date-new"},c))))}},{attributes:Rt,save(e){const{block_id:t,headingTag:a,displayPostDate:l,icon:i,t_date:o,dateFormat:n,time_heading:r,time_desc:s}=e.attributes;let c=o;"custom"!==n&&(c=Object(Ry.format)(n,o),"Invalid date"===Object(Ry.format)(n,c)&&(c=o));let u="",p="";return"undefined"!==e.attributes.dayalign_class&&"undefined"!==e.attributes.content_class&&(u=e.attributes.content_class,p=e.attributes.dayalign_class),React.createElement("article",{className:Be()("uagb-timeline__field","uagb-timeline-child-"+t,u)},React.createElement("div",{className:Be()("uagb-timeline__marker out-view-uagb-timeline__icon")},Ce(i)),React.createElement("div",{className:Be()(p,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},!0!==l&&o&&React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__inner-date-new"},"custom"!==n&&Object(Ry.format)(n,c)||c),React.createElement(ge.RichText.Content,{tagName:a,value:r,className:"uagb-timeline__heading"}),React.createElement(ge.RichText.Content,{tagName:"p",value:s,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))),React.createElement("div",{className:"uagb-timeline__date-new"},!0!==l&&o&&React.createElement(React.Fragment,null,"custom"!==n&&Object(Ry.format)(n,c)||c)))}}];let Wf={};function qf(){return(qf=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"content-timeline-child",isChildren:!0}):React.createElement(If,e),save:function(e){const{block_id:t,headingTag:a,displayPostDate:l,icon:i,t_date:o,dateFormat:n,time_heading:r,time_desc:s}=e.attributes;let c=o;"custom"!==n&&(c=Object(Ry.format)(n,o),"Invalid date"===Object(Ry.format)(n,c)&&(c=o));let u="",p="";return"undefined"!==e.attributes.dayalign_class&&"undefined"!==e.attributes.content_class&&(u=e.attributes.content_class,p=e.attributes.dayalign_class),React.createElement("article",{className:Be()("uagb-timeline__field","uagb-timeline-child-"+t,u)},React.createElement("div",{className:Be()("uagb-timeline__marker out-view-uagb-timeline__icon")},Ce(i)?Ce(i):React.createElement("svg",{xmlns:"",viewBox:"0 0 256 512"})),React.createElement("div",{className:Be()(p,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},!0!==l&&o&&React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__inner-date-new"},"custom"!==n&&Object(Ry.format)(n,c)||c),React.createElement(ge.RichText.Content,{tagName:a,value:r,className:"uagb-timeline__heading"}),React.createElement(ge.RichText.Content,{tagName:"p",value:s,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))),React.createElement("div",{className:"uagb-timeline__date-new"},!0!==l&&o&&React.createElement(React.Fragment,null,"custom"!==n&&Object(Ry.format)(n,c)||c)))},deprecated:Vf}),Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 6","ultimate-addons-for-gutenberg");let Zf=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}];function $f(e){const{setAttributes:t,attributes:a,deviceType:l}=e,{block_id:i,startNumber:o,endNumber:n,decimalPlaces:s,align:c,alignTablet:u,alignMobile:p,totalNumber:d,numberPrefix:b,numberSuffix:g,animationDuration:m,thousandSeparator:y,layout:f,headingLoadGoogleFonts:h,headingFontFamily:v,headingFontWeight:_,headingFontStyle:T,headingFontSize:C,headingColor:S,headingTransform:k,headingDecoration:w,headingFontSizeType:P,headingFontSizeMobile:x,headingFontSizeTablet:A,headingLineHeight:G,headingLineHeightType:M,headingLineHeightMobile:R,headingLineHeightTablet:U,headingTopMargin:E,headingRightMargin:O,headingLeftMargin:L,headingBottomMargin:H,headingTopMarginTablet:F,headingRightMarginTablet:z,headingLeftMarginTablet:D,headingBottomMarginTablet:N,headingTopMarginMobile:I,headingRightMarginMobile:V,headingLeftMarginMobile:W,headingBottomMarginMobile:q,headingMarginUnit:Z,headingMarginUnitTablet:$,headingMarginUnitMobile:Y,headingMarginLink:K,headingLetterSpacingType:J,headingLetterSpacing:X,headingLetterSpacingTablet:Q,headingLetterSpacingMobile:ee,blockTopMargin:te,blockRightMargin:ae,blockLeftMargin:le,blockBottomMargin:ie,blockTopMarginTablet:oe,blockRightMarginTablet:ne,blockLeftMarginTablet:re,blockBottomMarginTablet:se,blockTopMarginMobile:ce,blockRightMarginMobile:ue,blockLeftMarginMobile:pe,blockBottomMarginMobile:de,blockMarginUnit:be,blockMarginUnitTablet:me,blockMarginUnitMobile:ye,blockMarginLink:fe,blockTopPadding:he,blockRightPadding:ve,blockLeftPadding:_e,blockBottomPadding:Te,blockTopPaddingTablet:Se,blockRightPaddingTablet:ke,blockLeftPaddingTablet:we,blockBottomPaddingTablet:Pe,blockTopPaddingMobile:xe,blockRightPaddingMobile:Ae,blockLeftPaddingMobile:Ge,blockBottomPaddingMobile:Me,blockPaddingUnit:Re,blockPaddingUnitTablet:Be,blockPaddingUnitMobile:Ue,blockPaddingLink:Oe,numberLoadGoogleFonts:He,numberFontFamily:Fe,numberFontWeight:ze,numberFontStyle:De,numberFontSize:Ne,numberColor:Ie,numberTransform:Ve,numberDecoration:We,numberFontSizeType:qe,numberFontSizeMobile:Ze,numberFontSizeTablet:$e,numberLineHeight:Ye,numberLineHeightType:Ke,numberLineHeightMobile:Je,numberLineHeightTablet:Xe,numberTopMargin:Qe,numberRightMargin:et,numberLeftMargin:tt,numberBottomMargin:at,numberTopMarginTablet:lt,numberRightMarginTablet:it,numberLeftMarginTablet:ot,numberBottomMarginTablet:nt,numberTopMarginMobile:rt,numberRightMarginMobile:st,numberLeftMarginMobile:ct,numberBottomMarginMobile:ut,numberMarginUnit:pt,numberMarginUnitTablet:dt,numberMarginUnitMobile:bt,numberMarginLink:gt,numberLetterSpacingType:mt,numberLetterSpacing:yt,numberLetterSpacingTablet:ft,numberLetterSpacingMobile:ht,prefixRightDistance:vt,prefixRightDistanceTablet:_t,prefixRightDistanceMobile:Tt,suffixLeftDistance:Ct,suffixLeftDistanceTablet:St,suffixLeftDistanceMobile:kt,circleSize:wt,circleStokeSize:Pt,circleForeground:xt,circleBackground:At,barSize:Gt,barForeground:Mt,barBackground:Rt,barFlip:Bt,boxShadowColor:Ut,boxShadowHOffset:Et,boxShadowVOffset:Ot,boxShadowBlur:Lt,boxShadowSpread:Ht,boxShadowPosition:Ft,boxShadowColorHover:jt,boxShadowHOffsetHover:zt,boxShadowVOffsetHover:Dt,boxShadowBlurHover:Nt,boxShadowSpreadHover:It,boxShadowPositionHover:Vt,showIcon:Wt,icon:qt,iconColor:Zt,iconBackgroundColor:$t,iconHoverColor:Yt,iconBackgroundHoverColor:Kt,iconSize:Jt,iconSizeTablet:Xt,iconSizeMobile:Qt,iconSizeType:ea,iconSizeTypeTablet:ta,iconSizeTypeMobile:aa,iconImgPosition:la,iconImage:ia,imageSize:oa,sourceType:na,imageWidthType:ra,imageWidth:sa,imageWidthTablet:ca,imageWidthMobile:ua,imageWidthUnit:pa,imageWidthUnitTablet:da,imageWidthUnitMobile:ba,iconTopPadding:ga,iconRightPadding:ma,iconLeftPadding:ya,iconBottomPadding:fa,iconTopPaddingTablet:ha,iconRightPaddingTablet:va,iconLeftPaddingTablet:_a,iconBottomPaddingTablet:Ta,iconTopPaddingMobile:Ca,iconRightPaddingMobile:Sa,iconLeftPaddingMobile:ka,iconBottomPaddingMobile:wa,iconPaddingUnit:xa,iconPaddingUnitTablet:Aa,iconPaddingUnitMobile:Ga,iconPaddingLink:Ma,iconTopMargin:Ra,iconRightMargin:Ba,iconLeftMargin:Ua,iconBottomMargin:Ea,iconTopMarginTablet:Oa,iconRightMarginTablet:La,iconLeftMarginTablet:Ha,iconBottomMarginTablet:Fa,iconTopMarginMobile:ja,iconRightMarginMobile:za,iconLeftMarginMobile:Da,iconBottomMarginMobile:Ia,iconMarginUnit:Va,iconMarginUnitTablet:Wa,iconMarginUnitMobile:qa,iconMarginLink:Za}=a;Object(B.useEffect)(()=>{"circle"!==f||"top"===la&&"bottom"===la||t({iconImgPosition:"top"})},[f]),Object(B.useEffect)(()=>{const e=parseFloat(o),a=parseFloat(n),l=parseFloat(d);t({startNumber:e}),t({endNumber:a}),t({totalNumber:l})},[o,n,d]);const[$a,Ya]=Object(B.useState)(Pa.endNumber.default),Ka=us(o,"startNumber","counter"),Ja=us(n,"endNumber","counter");Object(B.useEffect)(()=>{Ya(KaJa?Ka:Ja)},[o,n]),Object(B.useEffect)(()=>{dt({barFlip:!Bt}),label:Object(r.__)("Flip Title and Bar Positions","ultimate-addons-for-gutenberg")})),React.createElement(Ks,{label:Object(r.__)("Starting Number","ultimate-addons-for-gutenberg"),value:o,data:{value:o,label:"startNumber"},displayUnit:!1,setAttributes:t,min:"number"!==f&&0,required:"number"!==f,help:"number"!==f&&Object(r.__)("Note: Please use positive values for Circle and Bar layouts.","ultimate-addons-for-gutenberg"),showControlHeader:!1,enableDynamicContent:!0,dynamicContentType:"text",name:"startNumber"}),React.createElement(Ks,{label:Object(r.__)("Ending Number","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"endNumber"},displayUnit:!1,setAttributes:t,min:"number"!==f&&0,required:"number"!==f,help:"number"!==f&&Object(r.__)("Note: Please use positive values for Circle and Bar layouts.","ultimate-addons-for-gutenberg"),showControlHeader:!1,enableDynamicContent:!0,dynamicContentType:"text",name:"endNumber"}),"number"!==f&&React.createElement(Ks,{label:Object(r.__)("Total Number","ultimate-addons-for-gutenberg"),value:d,data:{value:d,label:"totalNumber"},displayUnit:!1,setAttributes:t,min:$a,required:!0,help:Object(r.__)("Note: Total Number should be more than or equal to the Ending Number (or the Starting number in case you want to animate the Counter in reverse direction).","ultimate-addons-for-gutenberg"),showControlHeader:!1,enableDynamicContent:!0,dynamicContentType:"text",name:"totalNumber"}),React.createElement(Qa,{label:Object(r.__)("Decimal Places","ultimate-addons-for-gutenberg"),setAttributes:t,value:s,data:{value:s,label:"decimalPlaces"},min:0,step:1,max:10,displayUnit:!1}),React.createElement(Ss,{variant:"inline",label:Object(r.__)("Number Prefix","ultimate-addons-for-gutenberg"),value:b,data:{value:b,label:"numberPrefix"},setAttributes:t,onChange:e=>t({numberPrefix:e})}),React.createElement(Ss,{variant:"inline",label:Object(r.__)("Number Suffix","ultimate-addons-for-gutenberg"),value:g,data:{value:g,label:"numberSuffix"},setAttributes:t,onChange:e=>t({numberSuffix:e})}),React.createElement(Ks,{label:Object(r.__)("Animation Duration","ultimate-addons-for-gutenberg"),value:m,data:{value:m,label:"animationDuration"},displayUnit:!1,setAttributes:t,min:1,step:100,required:!0,showControlHeader:!1}),React.createElement(Pi,{label:Object(r.__)("Thousand(s)","ultimate-addons-for-gutenberg"),data:{value:y,label:"thousandSeparator"},setAttributes:t,options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:",",label:Object(r.__)("Comma","ultimate-addons-for-gutenberg")},{value:".",label:Object(r.__)("Dot","ultimate-addons-for-gutenberg")},{value:" ",label:Object(r.__)("Whitespace","ultimate-addons-for-gutenberg")},{value:"'",label:Object(r.__)("Apostrophe","ultimate-addons-for-gutenberg")}]})),ll=React.createElement(je,{title:Object(r.__)("Image/Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{checked:Wt,onChange:()=>t({showIcon:!Wt}),label:Object(r.__)("Enable Icon/Image","ultimate-addons-for-gutenberg")}),Wt&&("circle"===f||"number"===f)&&React.createElement(Pi,{label:Object(r.__)("Select Position","ultimate-addons-for-gutenberg"),data:{value:la,label:"iconImgPosition"},setAttributes:t,options:"circle"===f?el:Xa}),Wt&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Select Source","ultimate-addons-for-gutenberg"),data:{value:na,label:"sourceType"},options:[{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")}]}),!1!==Wt&&"icon"===na&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:qt,onChange:e=>t({icon:e})})),!1!==Wt&&"image"===na&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);Zf=t}t({iconImage:e})}else t({iconImage:null});else t({iconImage:null})},backgroundImage:ia,onRemoveImage:()=>{t({iconImage:""})},disableDynamicContent:!0}),ia&&"null"!==ia.url&&""!==ia.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:oa,label:"imageSize"},setAttributes:t,options:Zf}))),sl=React.createElement(je,{title:Object(r.__)("Image/Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},"image"===na&&React.createElement(Le.ToggleControl,{checked:ra,onChange:()=>t({imageWidthType:!ra}),label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),help:Object(r.__)("Turn this off to inherit the natural width of Image.","ultimate-addons-for-gutenberg")}),"image"===na&&ra&&React.createElement(tl,{label:Object(r.__)("Image Width","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:sa,label:"imageWidth",unit:{value:pa,label:"imageWidthUnit"}},tablet:{value:ca,label:"imageWidthTablet",unit:{value:da,label:"imageWidthUnitTablet"}},mobile:{value:ua,label:"imageWidthMobile",unit:{value:ba,label:"imageWidthUnitMobile"}}},limitMin:{px:0,"%":0,em:0},limitMax:{px:500,"%":100,em:100},unit:{value:pa,label:"imageWidthUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]}),"icon"===na&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:Jt,label:"iconSize",unit:{value:ea,label:"iconSizeType"}},tablet:{value:Xt,label:"iconSizeTablet",unit:{value:ta,label:"iconSizeTypeTablet"}},mobile:{value:Qt,label:"iconSizeMobile",unit:{value:aa,label:"iconSizeTypeMobile"}}},limitMin:{px:0,"%":0,em:0},limitMax:{px:500,"%":100,em:100},unit:{value:ea,label:"iconSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Zt||"",data:{value:Zt,label:"iconColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:$t||"",data:{value:$t,label:"iconBackgroundColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Yt||"",data:{value:Yt,label:"iconHoverColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Kt||"",data:{value:Kt,label:"iconBackgroundHoverColor"},setAttributes:t})),disableBottomSeparator:!1})),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:t,prefix:"iconWrap",attributes:a,deviceType:l,disableBottomSeparator:!1}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ga,label:"iconTopPadding"},valueRight:{value:ma,label:"iconRightPadding"},valueBottom:{value:fa,label:"iconBottomPadding"},valueLeft:{value:ya,label:"iconLeftPadding"},valueTopTablet:{value:ha,label:"iconTopPaddingTablet"},valueRightTablet:{value:va,label:"iconRightPaddingTablet"},valueBottomTablet:{value:Ta,label:"iconBottomPaddingTablet"},valueLeftTablet:{value:_a,label:"iconLeftPaddingTablet"},valueTopMobile:{value:Ca,label:"iconTopPaddingMobile"},valueRightMobile:{value:Sa,label:"iconRightPaddingMobile"},valueBottomMobile:{value:wa,label:"iconBottomPaddingMobile"},valueLeftMobile:{value:ka,label:"iconLeftPaddingMobile"},unit:{value:xa,label:"iconPaddingUnit"},mUnit:{value:Ga,label:"iconPaddingUnitMobile"},tUnit:{value:Aa,label:"iconPaddingUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ma,label:"iconPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Ra,label:"iconTopMargin"},valueRight:{value:Ba,label:"iconRightMargin"},valueBottom:{value:Ea,label:"iconBottomMargin"},valueLeft:{value:Ua,label:"iconLeftMargin"},valueTopTablet:{value:Oa,label:"iconTopMarginTablet"},valueRightTablet:{value:La,label:"iconRightMarginTablet"},valueBottomTablet:{value:Fa,label:"iconBottomMarginTablet"},valueLeftTablet:{value:Ha,label:"iconLeftMarginTablet"},valueTopMobile:{value:ja,label:"iconTopMarginMobile"},valueRightMobile:{value:za,label:"iconRightMarginMobile"},valueBottomMobile:{value:Ia,label:"iconBottomMarginMobile"},valueLeftMobile:{value:Da,label:"iconLeftMarginMobile"},unit:{value:Va,label:"iconMarginUnit"},mUnit:{value:qa,label:"iconMarginUnitMobile"},tUnit:{value:Wa,label:"iconMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:Za,label:"iconMarginLink"}})),cl=React.createElement(je,{title:Object(r.__)("Headline","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:S||"",data:{value:S,label:"headingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:t,loadGoogleFonts:{value:h,label:"headingLoadGoogleFonts"},fontFamily:{value:v,label:"headingFontFamily"},fontWeight:{value:_,label:"headingFontWeight"},fontStyle:{value:T,label:"headingFontStyle"},transform:{value:k,label:"headingTransform"},decoration:{value:w,label:"headingDecoration"},fontSizeType:{value:P,label:"headingFontSizeType"},fontSize:{value:C,label:"headingFontSize"},fontSizeMobile:{value:x,label:"headingFontSizeMobile"},fontSizeTablet:{value:A,label:"headingFontSizeTablet"},lineHeightType:{value:M,label:"headingLineHeightType"},lineHeight:{value:G,label:"headingLineHeight"},lineHeightMobile:{value:R,label:"headingLineHeightMobile"},lineHeightTablet:{value:U,label:"headingLineHeightTablet"},letterSpacingType:{value:J,label:"headingLetterSpacingType"},letterSpacing:{value:X,label:"headingLetterSpacing"},letterSpacingTablet:{value:Q,label:"headingLetterSpacingTablet"},letterSpacingMobile:{value:ee,label:"headingLetterSpacingMobile"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:E,label:"headingTopMargin"},valueRight:{value:O,label:"headingRightMargin"},valueBottom:{value:H,label:"headingBottomMargin"},valueLeft:{value:L,label:"headingLeftMargin"},valueTopTablet:{value:F,label:"headingTopMarginTablet"},valueRightTablet:{value:z,label:"headingRightMarginTablet"},valueBottomTablet:{value:N,label:"headingBottomMarginTablet"},valueLeftTablet:{value:D,label:"headingLeftMarginTablet"},valueTopMobile:{value:I,label:"headingTopMarginMobile"},valueRightMobile:{value:V,label:"headingRightMarginMobile"},valueBottomMobile:{value:q,label:"headingBottomMarginMobile"},valueLeftMobile:{value:W,label:"headingLeftMarginMobile"},unit:{value:Z,label:"headingMarginUnit"},mUnit:{value:Y,label:"headingMarginUnitMobile"},tUnit:{value:$,label:"headingMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:K,label:"headingMarginLink"}})),ul=React.createElement(je,{title:Object(r.__)("Number","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ie||"",data:{value:Ie,label:"numberColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:t,loadGoogleFonts:{value:He,label:"numberLoadGoogleFonts"},fontFamily:{value:Fe,label:"numberFontFamily"},fontWeight:{value:ze,label:"numberFontWeight"},fontStyle:{value:De,label:"numberFontStyle"},transform:{value:Ve,label:"numberTransform"},decoration:{value:We,label:"numberDecoration"},fontSizeType:{value:qe,label:"numberFontSizeType"},fontSize:{value:Ne,label:"numberFontSize"},fontSizeMobile:{value:Ze,label:"numberFontSizeMobile"},fontSizeTablet:{value:$e,label:"numberFontSizeTablet"},lineHeightType:{value:Ke,label:"numberLineHeightType"},lineHeight:{value:Ye,label:"numberLineHeight"},lineHeightMobile:{value:Je,label:"numberLineHeightMobile"},lineHeightTablet:{value:Xe,label:"numberLineHeightTablet"},letterSpacingType:{value:mt,label:"numberLetterSpacingType"},letterSpacing:{value:yt,label:"numberLetterSpacing"},letterSpacingTablet:{value:ft,label:"numberLetterSpacingTablet"},letterSpacingMobile:{value:ht,label:"numberLetterSpacingMobile"}}),React.createElement(Pl,{label:"bars"!==f?Object(r.__)("Margin","ultimate-addons-for-gutenberg"):Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Qe,label:"numberTopMargin"},valueRight:{value:et,label:"numberRightMargin"},valueBottom:{value:at,label:"numberBottomMargin"},valueLeft:{value:tt,label:"numberLeftMargin"},valueTopTablet:{value:lt,label:"numberTopMarginTablet"},valueRightTablet:{value:it,label:"numberRightMarginTablet"},valueBottomTablet:{value:nt,label:"numberBottomMarginTablet"},valueLeftTablet:{value:ot,label:"numberLeftMarginTablet"},valueTopMobile:{value:rt,label:"numberTopMarginMobile"},valueRightMobile:{value:st,label:"numberRightMarginMobile"},valueBottomMobile:{value:ut,label:"numberBottomMarginMobile"},valueLeftMobile:{value:ct,label:"numberLeftMarginMobile"},unit:{value:pt,label:"numberMarginUnit"},mUnit:{value:bt,label:"numberMarginUnitMobile"},tUnit:{value:dt,label:"numberMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:gt,label:"numberMarginLink"}}),React.createElement(tl,{label:Object(r.__)("Prefix Right Margin","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:vt,label:"prefixRightDistance"},tablet:{value:_t,label:"prefixRightDistanceTablet"},mobile:{value:Tt,label:"prefixRightDistanceMobile"}},min:0,step:1,max:100,displayUnit:!1}),React.createElement(tl,{label:Object(r.__)("Suffix Left Margin","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:Ct,label:"suffixLeftDistance"},tablet:{value:St,label:"suffixLeftDistanceTablet"},mobile:{value:kt,label:"suffixLeftDistanceMobile"}},min:0,step:1,max:100,displayUnit:!1})),pl=React.createElement(je,{title:Object(r.__)("Circle","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Circle Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:wt,data:{value:wt,label:"circleSize"},min:10,step:10,max:500,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Stroke Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:Pt,data:{value:Pt,label:"circleStokeSize"},min:0,step:1,max:100,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Progress Color","ultimate-addons-for-gutenberg"),colorValue:xt||"",data:{value:xt,label:"circleForeground"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:At||"",data:{value:At,label:"circleBackground"},setAttributes:t})),dl=React.createElement(je,{title:Object(r.__)("Bar","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Bar Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:Gt,data:{value:Gt,label:"barSize"},min:0,step:1,max:100,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Progress Color","ultimate-addons-for-gutenberg"),colorValue:Mt||"",data:{value:Mt,label:"barForeground"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Rt||"",data:{value:Rt,label:"barBackground"},setAttributes:t})),bl=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:te,label:"blockTopMargin"},valueRight:{value:ae,label:"blockRightMargin"},valueBottom:{value:ie,label:"blockBottomMargin"},valueLeft:{value:le,label:"blockLeftMargin"},valueTopTablet:{value:oe,label:"blockTopMarginTablet"},valueRightTablet:{value:ne,label:"blockRightMarginTablet"},valueBottomTablet:{value:se,label:"blockBottomMarginTablet"},valueLeftTablet:{value:re,label:"blockLeftMarginTablet"},valueTopMobile:{value:ce,label:"blockTopMarginMobile"},valueRightMobile:{value:ue,label:"blockRightMarginMobile"},valueBottomMobile:{value:de,label:"blockBottomMarginMobile"},valueLeftMobile:{value:pe,label:"blockLeftMarginMobile"},unit:{value:be,label:"blockMarginUnit"},mUnit:{value:ye,label:"blockMarginUnitMobile"},tUnit:{value:me,label:"blockMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:fe,label:"blockMarginLink"}}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:he,label:"blockTopPadding"},valueRight:{value:ve,label:"blockRightPadding"},valueBottom:{value:Te,label:"blockBottomPadding"},valueLeft:{value:_e,label:"blockLeftPadding"},valueTopTablet:{value:Se,label:"blockTopPaddingTablet"},valueRightTablet:{value:ke,label:"blockRightPaddingTablet"},valueBottomTablet:{value:Pe,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:we,label:"blockLeftPaddingTablet"},valueTopMobile:{value:xe,label:"blockTopPaddingMobile"},valueRightMobile:{value:Ae,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Me,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:Ge,label:"blockLeftPaddingMobile"},unit:{value:Re,label:"blockPaddingUnit"},mUnit:{value:Ue,label:"blockPaddingUnitMobile"},tUnit:{value:Be,label:"blockPaddingUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:Oe,label:"blockPaddingLink"}}));return Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),Object(r.__)("Normal","ultimate-addons-for-gutenberg"),Object(r.__)("Hover","ultimate-addons-for-gutenberg"),React.Fragment,Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),Object(r.__)("Color","ultimate-addons-for-gutenberg"),Object(r.__)("Horizontal","ultimate-addons-for-gutenberg"),Object(r.__)("Vertical","ultimate-addons-for-gutenberg"),Object(r.__)("Blur","ultimate-addons-for-gutenberg"),Object(r.__)("Spread","ultimate-addons-for-gutenberg"),Object(r.__)("Position","ultimate-addons-for-gutenberg"),React.Fragment,Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),Object(r.__)("Color","ultimate-addons-for-gutenberg"),Object(r.__)("Horizontal","ultimate-addons-for-gutenberg"),Object(r.__)("Vertical","ultimate-addons-for-gutenberg"),Object(r.__)("Blur","ultimate-addons-for-gutenberg"),Object(r.__)("Spread","ultimate-addons-for-gutenberg"),Object(r.__)("Position","ultimate-addons-for-gutenberg"),React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{key:"controls"},React.createElement(ge.AlignmentToolbar,{value:c,onChange:e=>t({align:e})})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,al,"bars"!==f&&ll),React.createElement(il,nl,ul,cl,"circle"===f&&pl,"bars"===f&&dl,"bars"!==f&&Wt&&sl,bl),React.createElement(il,qf({},rl,{parentProps:e})))))}var Yf=e=>{const{attributes:t,setAttributes:a}=e;if("icon"===t.sourceType)return React.createElement("span",{className:"wp-block-uagb-counter__icon"},Ce(t.icon,a));if("image"===t.sourceType){let e="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(e=t.iconImage.url);let a="";if(""!==e){const l=t.iconImage.sizes,i=t.imageSize;return a=void 0!==l&&void 0!==l[i]?l[i].url:e,React.createElement("span",{className:"wp-block-uagb-counter__image-wrap"},React.createElement("img",{className:"wp-block-uagb-counter__image",src:a,alt:t.iconImage.alt,width:t.imageWidthType&&t.imageWidth?t.imageWidth:t.imgTagWidth,height:t.imgTagHeight,loading:"lazy"}))}}return null};const Kf=e=>{const{attributes:t,setAttributes:a,className:l,deviceType:i,name:o}=e,{block_id:n,layout:s,heading:c,numberPrefix:u,numberSuffix:p,startNumber:d,endNumber:b,totalNumber:g,decimalPlaces:m,animationDuration:y,thousandSeparator:f,circleSize:h,circleStokeSize:v,icon:_,showIcon:T,iconImgPosition:C,sourceType:S,iconImage:k,imageSize:w,imageWidthType:P,imageWidth:x}=t;let A="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(A=t.iconImage.url);let G="";if(""!==A){const e=t.iconImage.sizes;G=void 0!==e&&void 0!==e[w]?e[w].url:A}Object(B.useEffect)(()=>{P&&x?Zg(G,a,{type:"width",value:x}):Zg(G,a)},[G,x,P,w]),Object(B.useEffect)(()=>{UAGBCounter.init(".uagb-block-"+n,t)},[s,y,d,b,g,f,m,n,h,v]);const M=us(d,"startNumber","counter"),R=us(b,"endNumber","counter"),U=o.replace("uagb/",""),E=us(h,"circleSize",U),O=T&&("icon"===S&&""!==_||"image"===S&&""!==k.url);let L="";O&&(L=React.createElement(Yf,{attributes:t,setAttributes:a}));const H=React.createElement(ge.RichText,{tagName:"div",className:"wp-block-uagb-counter__title",value:c,onChange:e=>a({heading:e}),placeholder:Object(r.__)("Title…","ultimate-addons-for-gutenberg")}),F=React.createElement(React.Fragment,null,O&&"number"===s&&"top"===C&&L,React.createElement("div",{className:"wp-block-uagb-counter__number"},O&&"number"===s&&"left-number"===C&&L,u&&React.createElement("span",{className:"uagb-counter-block-prefix"},u),React.createElement("span",{className:"uagb-counter-block-number","data-duration":y/1e3,"data-to-value":R,"data-from-value":M,"data-delimiter":f}),p&&React.createElement("span",{className:"uagb-counter-block-suffix"},p),O&&"number"===s&&"right-number"===C&&L),"number"===s&&H,O&&"number"===s&&"bottom"===C&&L),j=React.createElement("div",{className:"wp-block-uagb-counter-bars-container"},F),z=React.createElement("div",{className:"wp-block-uagb-counter-circle-container"},React.createElement("div",{className:"wp-block-uagb-counter-circle-container__content"},O&&"top"===C&&L,F,H,O&&"bottom"===C&&L),React.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:`0 0 ${E} ${E}`,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{className:"uagb-counter-circle__background"}),React.createElement("circle",{className:"uagb-counter-circle__progress"})));return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(l,"uagb-block-"+n,"uagb-editor-preview-mode-"+i.toLowerCase(),"wp-block-uagb-counter","wp-block-uagb-counter--"+s)},"number"===s&&F,"bars"===s&&j,"circle"===s&&z,"circle"!==s&&"number"!==s&&H))};Kf.propTypes={},Kf.defaultProps={};var Jf=Kf,Xf=Object(B.memo)(e=>{let{attributes:t}=e;const{numberLoadGoogleFonts:a,numberFontFamily:l,numberFontWeight:i,headingLoadGoogleFonts:o,headingFontFamily:n,headingFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,c,s)});a(164);var Qf=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,clientId:a,attributes:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n},name:r,deviceType:s}=e,c=Object(B.useMemo)(()=>function(e,t,a,l){const i=l.toLowerCase(),{block_id:o,align:n,alignTablet:r,alignMobile:s,layout:c,endNumber:u,headingFontFamily:p,headingFontWeight:d,headingFontStyle:b,headingFontSize:g,headingColor:m,headingTransform:y,headingDecoration:f,headingFontSizeType:h,headingFontSizeMobile:v,headingFontSizeTablet:_,headingLineHeight:T,headingLineHeightType:C,headingLineHeightMobile:S,headingLineHeightTablet:k,headingTopMargin:w,headingRightMargin:P,headingLeftMargin:x,headingBottomMargin:A,headingTopMarginTablet:G,headingRightMarginTablet:M,headingLeftMarginTablet:R,headingBottomMarginTablet:B,headingTopMarginMobile:U,headingRightMarginMobile:E,headingLeftMarginMobile:O,headingBottomMarginMobile:L,headingMarginUnit:H,headingMarginUnitTablet:F,headingMarginUnitMobile:j,headingLetterSpacingType:z,headingLetterSpacing:D,headingLetterSpacingTablet:N,headingLetterSpacingMobile:I,numberFontFamily:V,numberFontWeight:W,numberFontStyle:q,numberFontSize:Z,numberColor:$,numberTransform:Y,numberDecoration:K,numberFontSizeType:J,numberFontSizeMobile:X,numberFontSizeTablet:Q,numberLineHeight:ee,numberLineHeightType:te,numberLineHeightMobile:le,numberLineHeightTablet:ie,numberTopMargin:oe,numberRightMargin:ne,numberLeftMargin:re,numberBottomMargin:se,numberTopMarginTablet:ce,numberRightMarginTablet:ue,numberLeftMarginTablet:pe,numberBottomMarginTablet:de,numberTopMarginMobile:be,numberRightMarginMobile:ge,numberLeftMarginMobile:me,numberBottomMarginMobile:ye,numberMarginUnit:fe,numberMarginUnitTablet:he,numberMarginUnitMobile:ve,numberLetterSpacingType:_e,numberLetterSpacing:Te,numberLetterSpacingTablet:Ce,numberLetterSpacingMobile:Se,prefixRightDistance:ke,prefixRightDistanceTablet:we,prefixRightDistanceMobile:Pe,suffixLeftDistance:xe,suffixLeftDistanceTablet:Ae,suffixLeftDistanceMobile:Ge,circleSize:Me,circleStokeSize:Re,circleForeground:Be,circleBackground:Ue,barSize:Ee,barForeground:Oe,barBackground:Le,barFlip:He,blockTopMargin:Fe,blockRightMargin:je,blockLeftMargin:ze,blockBottomMargin:De,blockTopMarginTablet:Ne,blockRightMarginTablet:Ie,blockLeftMarginTablet:Ve,blockBottomMarginTablet:We,blockTopMarginMobile:qe,blockRightMarginMobile:Ze,blockLeftMarginMobile:$e,blockBottomMarginMobile:Ye,blockMarginUnit:Ke,blockMarginUnitTablet:Je,blockMarginUnitMobile:Xe,blockTopPadding:Qe,blockRightPadding:et,blockLeftPadding:tt,blockBottomPadding:at,blockTopPaddingTablet:lt,blockRightPaddingTablet:it,blockLeftPaddingTablet:ot,blockBottomPaddingTablet:nt,blockTopPaddingMobile:rt,blockRightPaddingMobile:st,blockLeftPaddingMobile:ct,blockBottomPaddingMobile:ut,blockPaddingUnit:pt,blockPaddingUnitTablet:dt,blockPaddingUnitMobile:bt,boxShadowColor:gt,boxShadowHOffset:mt,boxShadowVOffset:yt,boxShadowBlur:ft,boxShadowSpread:ht,boxShadowPosition:vt,boxShadowColorHover:_t,boxShadowHOffsetHover:Tt,boxShadowVOffsetHover:Ct,boxShadowBlurHover:St,boxShadowSpreadHover:kt,boxShadowPositionHover:wt,iconImgPosition:Pt,iconColor:xt,iconBackgroundColor:At,iconHoverColor:Gt,iconBackgroundHoverColor:Mt,iconSize:Rt,iconSizeTablet:Bt,iconSizeMobile:Ut,iconSizeType:Et,iconSizeTypeTablet:Ot,iconSizeTypeMobile:Lt,iconWrapBorderHColor:Ht,imageWidthType:Ft,imageWidth:jt,imageWidthTablet:zt,imageWidthMobile:Dt,imageWidthUnit:Nt,imageWidthUnitTablet:It,imageWidthUnitMobile:Vt,iconTopPadding:Wt,iconRightPadding:qt,iconLeftPadding:Zt,iconBottomPadding:$t,iconTopPaddingTablet:Yt,iconRightPaddingTablet:Kt,iconLeftPaddingTablet:Jt,iconBottomPaddingTablet:Xt,iconTopPaddingMobile:Qt,iconRightPaddingMobile:ea,iconLeftPaddingMobile:ta,iconBottomPaddingMobile:aa,iconPaddingUnit:la,iconPaddingUnitTablet:ia,iconPaddingUnitMobile:oa,iconTopMargin:na,iconRightMargin:ra,iconLeftMargin:sa,iconBottomMargin:ca,iconTopMarginTablet:ua,iconRightMarginTablet:pa,iconLeftMarginTablet:da,iconBottomMarginTablet:ba,iconTopMarginMobile:ga,iconRightMarginMobile:ma,iconLeftMarginMobile:ya,iconBottomMarginMobile:fa,iconMarginUnit:ha,iconMarginUnitTablet:va,iconMarginUnitMobile:_a}=e,Ta=a.replace("uagb/",""),Ca=us(u,"endNumber","counter"),Sa=us(Me,"circleSize",Ta),ka=us(Re,"circleStokeSize",Ta),wa=us(Ee,"barSize",Ta),Pa=us(ke,"prefixRightDistance",Ta),xa=isNaN(we)?ke:we,Aa=isNaN(Pe)?we:Pe,Ga=us(xe,"suffixLeftDistance",Ta),Ma=isNaN(Ae)?xe:Ae,Ra=isNaN(Ge)?Ae:Ge,Ba=us(Rt,"iconSize",Ta),Ua=isNaN(Bt)?Rt:Bt,Ea=isNaN(Ut)?Bt:Ut,Oa=us(jt,"imageWidth",Ta),La=isNaN(zt)?Oa:zt,Ha=isNaN(Dt)?La:Dt,Fa=Wr(e,"iconWrap"),ja=Wr(e,"iconWrap","tablet"),za=Wr(e,"iconWrap","mobile"),Da=Sa/2,Na=Da-ka/2,Ia=parseFloat(2*Math.PI*Na).toFixed(2),Va={"padding-top":Vr(Wt,la),"padding-right":Vr(qt,la),"padding-bottom":Vr($t,la),"padding-left":Vr(Zt,la),"margin-top":Vr(na,ha),"margin-right":Vr(ra,ha),"margin-bottom":Vr(ca,ha),"margin-left":Vr(sa,ha)},Wa={"padding-top":Vr(Yt,ia),"padding-right":Vr(Kt,ia),"padding-bottom":Vr(Xt,ia),"padding-left":Vr(Jt,ia),"margin-top":Vr(ua,va),"margin-right":Vr(pa,va),"margin-bottom":Vr(ba,va),"margin-left":Vr(da,va)},qa={"padding-top":Vr(Qt,oa),"padding-right":Vr(ea,oa),"padding-bottom":Vr(aa,oa),"padding-left":Vr(ta,oa),"margin-top":Vr(ga,_a),"margin-right":Vr(ma,_a),"margin-bottom":Vr(fa,_a),"margin-left":Vr(ya,_a)};let Za=vt;"outset"===vt&&(Za="");let $a=wt;"outset"===wt&&($a="");const Ya={".wp-block-uagb-counter":{"text-align":n,"margin-top":Vr(Fe,Ke),"margin-right":Vr(je,Ke),"margin-bottom":Vr(De,Ke),"margin-left":Vr(ze,Ke),"padding-top":Vr(Qe,pt),"padding-right":Vr(et,pt),"padding-bottom":Vr(at,pt),"padding-left":Vr(tt,pt)},".wp-block-uagb-counter .wp-block-uagb-counter__icon":{"background-color":At,...Va,...Fa},".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap":{...Va},".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap img":{...Fa},".wp-block-uagb-counter:hover .wp-block-uagb-counter__image-wrap img":{"border-color":Ht},".wp-block-uagb-counter:hover .wp-block-uagb-counter__icon":{"background-color":Mt,"border-color":Ht},".wp-block-uagb-counter .wp-block-uagb-counter__icon svg":{width:Vr(Ba,Et),height:Vr(Ba,Et),fill:xt},".wp-block-uagb-counter:hover .wp-block-uagb-counter__icon svg":{fill:Gt},".wp-block-uagb-counter .wp-block-uagb-counter__title":{"font-family":p,"font-style":b,"text-decoration":f,"text-transform":y,"font-weight":d,"font-size":Vr(g,h),"line-height":Vr(T,C),"letter-Spacing":Vr(D,z),color:m,"margin-top":Vr(w,H),"margin-right":Vr(P,H),"margin-bottom":Vr(A,H),"margin-left":Vr(x,H)},".wp-block-uagb-counter .wp-block-uagb-counter__number":{"font-family":V,"font-style":q,"text-decoration":K,"text-transform":Y,"font-weight":W,"font-size":Vr(Z,J),"line-height":Vr(ee,te),"letter-Spacing":Vr(Te,_e),color:$,"margin-top":Vr(oe,fe),"margin-right":Vr(ne,fe),"margin-bottom":Vr(se,fe),"margin-left":Vr(re,fe)},".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-prefix":{"margin-right":Vr(Pa,"px")},".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-suffix":{"margin-left":Vr(Ga,"px")},".wp-block-uagb-counter--circle .wp-block-uagb-counter-circle-container":{"max-width":Vr(Sa,"px")},".wp-block-uagb-counter--circle .wp-block-uagb-counter-circle-container svg circle":{"stroke-width":Vr(ka,"px"),stroke:Ue,r:Vr(Na,"px"),cx:Vr(Da,"px"),cy:Vr(Da,"px")},".wp-block-uagb-counter--circle .wp-block-uagb-counter-circle-container svg .uagb-counter-circle__progress":{stroke:Be,"stroke-dasharray":Vr(Ia,"px"),"stroke-dashoffset":Vr(Ia,"px")},".wp-block-uagb-counter--bars":{"flex-direction":He?"column-reverse":"column"},".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container":{background:Le},".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container .wp-block-uagb-counter__number":{height:Vr(wa,"px"),background:Oe,"padding-top":Vr(oe,fe),"padding-right":Vr(ne,fe),"padding-bottom":Vr(se,fe),"padding-left":Vr(re,fe)}},Ka=".editor-styles-wrapper .uagb-block-"+o,Ja={},Xa={};if(Ja[".wp-block-uagb-counter"]={"text-align":r,"margin-top":Vr(Ne,Je),"margin-right":Vr(Ie,Je),"margin-bottom":Vr(We,Je),"margin-left":Vr(Ve,Je),"padding-top":Vr(lt,dt),"padding-right":Vr(it,dt),"padding-bottom":Vr(nt,dt),"padding-left":Vr(ot,dt)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__icon"]={...Wa,...ja},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap"]={...Wa},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap img"]={...ja},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__icon svg"]={width:Vr(Ua,Ot),height:Vr(Ua,Ot)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(_,h),"line-height":Vr(k,C),"letter-Spacing":Vr(N,z),"margin-top":Vr(G,F),"margin-right":Vr(M,F),"margin-bottom":Vr(B,F),"margin-left":Vr(R,F)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number"]={"font-size":Vr(Q,J),"line-height":Vr(ie,te),"letter-Spacing":Vr(Ce,_e),"margin-top":Vr(ce,he),"margin-right":Vr(ue,he),"margin-bottom":Vr(de,he),"margin-left":Vr(pe,he)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(_,h),"line-height":Vr(k,C),"letter-Spacing":Vr(N,z),"margin-top":Vr(G,F),"margin-right":Vr(M,F),"margin-bottom":Vr(B,F),"margin-left":Vr(R,F)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number"]={"font-size":Vr(Q,J),"line-height":Vr(ie,te),"letter-Spacing":Vr(Ce,_e),"margin-top":Vr(ce,he),"margin-right":Vr(ue,he),"margin-bottom":Vr(de,he),"margin-left":Vr(pe,he)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-prefix"]={"margin-right":Vr(xa,"px")},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-suffix"]={"margin-left":Vr(Ma,"px")},Ja[".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container"]={"padding-top":Vr(ce,he),"padding-right":Vr(ue,he),"padding-bottom":Vr(de,he),"padding-left":Vr(pe,he)},Xa[".wp-block-uagb-counter"]={"text-align":s,"margin-top":Vr(qe,Xe),"margin-right":Vr(Ze,Xe),"margin-bottom":Vr(Ye,Xe),"margin-left":Vr($e,Xe),"padding-top":Vr(rt,bt),"padding-right":Vr(st,bt),"padding-bottom":Vr(ut,dt),"padding-left":Vr(ct,bt)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__icon"]={...qa,...za},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap"]={...qa},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap img"]={...za},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__icon svg"]={width:Vr(Ea,Lt),height:Vr(Ea,Lt)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(v,h),"line-height":Vr(S,C),"letter-Spacing":Vr(I,z),"margin-top":Vr(U,j),"margin-right":Vr(E,j),"margin-bottom":Vr(L,j),"margin-left":Vr(O,j)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(v,h),"line-height":Vr(S,C),"letter-Spacing":Vr(I,z),"margin-top":Vr(U,j),"margin-right":Vr(E,j),"margin-bottom":Vr(L,j),"margin-left":Vr(O,j)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__number"]={"font-size":Vr(X,J),"line-height":Vr(le,te),"letter-spacing":Vr(Se,_e),"margin-top":Vr(be,ve),"margin-right":Vr(ge,ve),"margin-bottom":Vr(ye,ve),"margin-left":Vr(me,ve)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-prefix"]={"margin-right":Vr(Aa,"px")},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-suffix"]={"margin-left":Vr(Ra,"px")},Xa[".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container"]={"padding-top":Vr(be,ve),"padding-right":Vr(ge,ve),"padding-bottom":Vr(ye,ve),"padding-left":Vr(me,ve)},Ft&&(Ya[" .wp-block-uagb-counter__image-wrap .wp-block-uagb-counter__image"]={width:Vr(Oa,Nt)},Ja[" .wp-block-uagb-counter__image-wrap .wp-block-uagb-counter__image"]={width:Vr(La,It)},Xa[" .wp-block-uagb-counter__image-wrap .wp-block-uagb-counter__image"]={width:Vr(Ha,Vt)}),"number"!==c||"left-number"!==Pt&&"right-number"!==Pt||(Ya[" .wp-block-uagb-counter__number"]={display:"flex","align-items":"center","justify-content":n},Ja[" .wp-block-uagb-counter__number"]={"justify-content":r},Xa[" .wp-block-uagb-counter__number"]={"justify-content":s}),"bars"===c){const e=".wp-block-uagb-counter .wp-block-uagb-counter__number";Ya[e]["margin-top"]="unset",Ya[e]["margin-bottom"]="unset",Ya[e]["margin-left"]="unset",Ya[e]["margin-right"]="unset",Ja[e]["margin-top"]="unset",Ja[e]["margin-bottom"]="unset",Ja[e]["margin-left"]="unset",Ja[e]["margin-right"]="unset",Xa[e]["margin-top"]="unset",Xa[e]["margin-bottom"]="unset",Xa[e]["margin-left"]="unset",Xa[e]["margin-right"]="unset",0===Ca&&(Ya[e]["padding-left"]="unset",Ya[e]["padding-right"]="unset",Ja[e]["padding-left"]="unset",Ja[e]["padding-right"]="unset",Xa[e]["padding-left"]="unset",Xa[e]["padding-right"]="unset");const t=".wp-block-uagb-counter:hover .wp-block-uagb-counter-bars-container";Ya[".wp-block-uagb-counter .wp-block-uagb-counter-bars-container"]={"box-shadow":Vr(mt,"px")+" "+Vr(yt,"px")+" "+Vr(ft,"px")+" "+Vr(ht,"px")+" "+gt+" "+Za},Ya[t]={"box-shadow":""};const a=isNaN(St)?"":St,l=_t||"";if(""!==l||""!==a){const e=""===a?"":Vr(a,"px");Ya[t]["box-shadow"]=Vr(Tt,"px")+" "+Vr(Ct,"px")+" "+e+" "+Vr(kt,"px")+" "+l+" "+$a}}let Qa=ae(Ya,Ka);return"tablet"!==i&&"mobile"!==i||(Qa+=ae(Ja,""+Ka,!0,"tablet"),"mobile"===i&&(Qa+=ae(Xa,""+Ka,!0,"mobile"))),Qa}(l,0,r,s),[l,s]);return Object(B.useEffect)(()=>{he(e)},[i,o,n,s]),React.createElement(React.Fragment,null,React.createElement(Xf,{attributes:l}),React.createElement(me,{blockStyling:c}),t&&React.createElement($f,e),React.createElement(Jf,e))});let eh={};eh=Object(F.applyFilters)("uagb/counter",ss(eh)),Object(de.registerBlockType)("uagb/counter",{...eh,title:Object(r.__)("Counter","ultimate-addons-for-gutenberg"),description:Object(r.__)("This block allows you to add number counter.","ultimate-addons-for-gutenberg"),icon:se.counter,keywords:[Object(r.__)("counter","ultimate-addons-for-gutenberg"),Object(r.__)("number","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Pa,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"counter"}):React.createElement(Qf,e),save:function(e){const{attributes:t}=e,{block_id:a,layout:l,heading:i,numberPrefix:o,numberSuffix:n,startNumber:r,endNumber:s,animationDuration:c,thousandSeparator:u,circleSize:p,icon:d,showIcon:b,iconImgPosition:g,sourceType:m,iconImage:y}=t,f=us(r,"startNumber","counter"),h=us(s,"endNumber","counter"),v=us(p,"circleSize","counter"),_=b&&("icon"===m&&""!==d||"image"===m&&""!==y.url);let T="";_&&(T=React.createElement(Yf,{attributes:t}));const C=React.createElement(ge.RichText.Content,{tagName:"div",className:"wp-block-uagb-counter__title",value:i}),S=React.createElement(React.Fragment,null,_&&"number"===l&&"top"===g&&T,React.createElement("div",{className:"wp-block-uagb-counter__number"},_&&"number"===l&&"left-number"===g&&T,o&&React.createElement("span",{className:"uagb-counter-block-prefix"},o),React.createElement("span",{className:"uagb-counter-block-number","data-duration":c/1e3,"data-to-value":h,"data-from-value":f,"data-delimiter":u}),n&&React.createElement("span",{className:"uagb-counter-block-suffix"},n),_&&"number"===l&&"right-number"===g&&T),"number"===l&&C,_&&"number"===l&&"bottom"===g&&T),k=React.createElement("div",{className:"wp-block-uagb-counter-bars-container"},S),w=React.createElement("div",{className:"wp-block-uagb-counter-circle-container"},React.createElement("div",{className:"wp-block-uagb-counter-circle-container__content"},_&&"top"===g&&T,S,C,_&&"bottom"===g&&T),React.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:`0 0 ${v} ${v}`,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{className:"uagb-counter-circle__background"}),React.createElement("circle",{className:"uagb-counter-circle__progress"})));return React.createElement("div",{className:Be()(e.className,"uagb-block-"+a,"wp-block-uagb-counter","wp-block-uagb-counter--"+l)},"number"===l&&S,"bars"===l&&k,"circle"===l&&w,"circle"!==l&&"number"!==l&&C)}});const th=[{defaultAttributes:$t},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:15},{label:"hquestionPaddingDesktop",value:15},{label:"vquestionPaddingDesktop",value:15},{label:"questionBottomPaddingDesktop",value:15},{label:"answerTopPadding",value:0},{label:"answerRightPadding",value:15},{label:"answerBottomPadding",value:15},{label:"answerLeftPadding",value:15},{label:"overallBorderStyle",value:"solid"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:4},{label:"overallBorderRightRadius",value:4},{label:"overallBorderBottomRadius",value:4},{label:"overallBorderLeftRadius",value:4},{label:"boxBgType",value:"transparent"},{label:"layout",value:"accordion"},{label:"enableSeparator",value:!1}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:15},{label:"hquestionPaddingDesktop",value:15},{label:"vquestionPaddingDesktop",value:15},{label:"questionBottomPaddingDesktop",value:15},{label:"answerTopPadding",value:0},{label:"answerRightPadding",value:15},{label:"answerBottomPadding",value:15},{label:"answerLeftPadding",value:15},{label:"overallBorderStyle",value:"none"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:4},{label:"overallBorderRightRadius",value:4},{label:"overallBorderBottomRadius",value:4},{label:"overallBorderLeftRadius",value:4},{label:"boxBgType",value:"color"},{label:"boxBgHoverType",value:"color"},{label:"boxBgColor",value:"#F5F5F5"},{label:"layout",value:"accordion"},{label:"enableSeparator",value:!1}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:20},{label:"hquestionPaddingDesktop",value:20},{label:"vquestionPaddingDesktop",value:20},{label:"questionBottomPaddingDesktop",value:20},{label:"answerTopPadding",value:20},{label:"answerRightPadding",value:20},{label:"answerBottomPadding",value:20},{label:"answerLeftPadding",value:20},{label:"overallBorderStyle",value:"solid"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:5},{label:"overallBorderRightRadius",value:5},{label:"overallBorderBottomRadius",value:5},{label:"overallBorderLeftRadius",value:5},{label:"boxBgType",value:"transparent"},{label:"layout",value:"grid"},{label:"enableSeparator",value:!0}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:25},{label:"hquestionPaddingDesktop",value:25},{label:"vquestionPaddingDesktop",value:25},{label:"questionBottomPaddingDesktop",value:25},{label:"answerTopPadding",value:25},{label:"answerRightPadding",value:25},{label:"answerBottomPadding",value:25},{label:"answerLeftPadding",value:25},{label:"overallBorderStyle",value:"none"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:5},{label:"overallBorderRightRadius",value:5},{label:"overallBorderBottomRadius",value:5},{label:"overallBorderLeftRadius",value:5},{label:"boxBgType",value:"color"},{label:"boxBgHoverType",value:"color"},{label:"boxBgColor",value:"#F5F5F5"},{label:"layout",value:"grid"},{label:"enableSeparator",value:!0}],icon:' '}];var ah=Object(F.applyFilters)("uag_faq_presets",th);function lh(){return(lh=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l,clientId:i}=e,{layout:o,inactiveOtherItems:s,expandFirstItem:c,enableSchemaSupport:u,rowsGap:p,rowsGapTablet:d,rowsGapMobile:b,rowsGapUnit:g,columnsGap:m,columnsGapTablet:y,columnsGapMobile:f,columnsGapUnit:h,align:v,enableSeparator:_,boxBgType:T,boxBgHoverType:C,boxBgColor:S,questionTextColor:k,questionTextBgColor:w,questionTextActiveColor:P,questionTextActiveBgColor:x,questionPaddingTypeDesktop:A,questionPaddingTypeMobile:G,questionPaddingTypeTablet:M,answerTextColor:R,answerPaddingTypeDesktop:B,answerPaddingTypeMobile:U,answerPaddingTypeTablet:E,iconColor:O,iconActiveColor:L,gapBtwIconQUestion:H,gapBtwIconQUestionTablet:F,gapBtwIconQUestionMobile:j,questionloadGoogleFonts:z,questionFontFamily:D,questionFontWeight:N,questionFontSizeType:I,questionFontSize:V,questionFontSizeMobile:W,questionFontSizeTablet:q,questionLineHeightType:Z,questionLineHeight:$,questionLineHeightMobile:Y,questionLineHeightTablet:K,answerloadGoogleFonts:J,answerFontFamily:X,answerFontWeight:Q,answerFontSizeType:ee,answerFontSize:te,answerFontSizeMobile:ae,answerFontSizeTablet:le,answerLineHeightType:ie,answerLineHeight:oe,answerLineHeightMobile:ne,answerLineHeightTablet:re,icon:se,iconActive:ce,iconAlign:ue,iconSizeType:pe,iconSizeMobile:de,iconSizeTablet:be,iconSize:me,columns:ye,tcolumns:fe,mcolumns:he,enableToggle:ve,equalHeight:_e,questionLeftPaddingTablet:Te,hquestionPaddingTablet:Se,vquestionPaddingTablet:ke,questionBottomPaddingTablet:we,questionLeftPaddingDesktop:Pe,hquestionPaddingDesktop:xe,vquestionPaddingDesktop:Ae,questionBottomPaddingDesktop:Ge,questionLeftPaddingMobile:Me,hquestionPaddingMobile:Re,vquestionPaddingMobile:Be,questionBottomPaddingMobile:Ue,headingTag:Oe,answerSpacingLink:He,questionSpacingLink:Fe,answerTopPadding:ze,answerRightPadding:De,answerBottomPadding:Ne,answerLeftPadding:Ie,answerTopPaddingTablet:Ve,answerRightPaddingTablet:We,answerBottomPaddingTablet:qe,answerLeftPaddingTablet:Ze,answerTopPaddingMobile:$e,answerRightPaddingMobile:Ye,answerBottomPaddingMobile:Ke,answerLeftPaddingMobile:Je,answerFontStyle:Xe,answerTransform:Qe,answerDecoration:et,questionFontStyle:tt,questionTransform:at,questionDecoration:lt,questionLetterSpacing:it,questionLetterSpacingTablet:ot,questionLetterSpacingMobile:nt,questionLetterSpacingType:rt,answerLetterSpacing:st,answerLetterSpacingTablet:ct,answerLetterSpacingMobile:ut,answerLetterSpacingType:pt,boxBgHoverColor:dt,iconBgColor:bt,iconBgSize:gt,iconBgSizeTablet:mt,iconBgSizeMobile:yt,iconBgSizeType:ft,blockTopPadding:ht,blockRightPadding:vt,blockLeftPadding:_t,blockBottomPadding:Tt,blockTopPaddingTablet:Ct,blockRightPaddingTablet:St,blockLeftPaddingTablet:kt,blockBottomPaddingTablet:wt,blockTopPaddingMobile:Pt,blockRightPaddingMobile:xt,blockLeftPaddingMobile:At,blockBottomPaddingMobile:Gt,blockPaddingUnit:Mt,blockPaddingUnitTablet:Rt,blockPaddingUnitMobile:Bt,blockPaddingLink:Ut,blockTopMargin:Et,blockRightMargin:Ot,blockLeftMargin:Lt,blockBottomMargin:Ht,blockTopMarginTablet:Ft,blockRightMarginTablet:jt,blockLeftMarginTablet:zt,blockBottomMarginTablet:Dt,blockTopMarginMobile:Nt,blockRightMarginMobile:It,blockLeftMarginMobile:Vt,blockBottomMarginMobile:Wt,blockMarginUnit:qt,blockMarginUnitTablet:Zt,blockMarginUnitMobile:$t,blockMarginLink:Yt}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:o,label:"layout"},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.layout=e}),a({layout:e})},options:[{value:"accordion",label:Object(r.__)("Accordion","ultimate-addons-for-gutenberg")},{value:"grid",label:Object(r.__)("Grid","ultimate-addons-for-gutenberg")}]}),"accordion"===o&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Collapse other items","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({inactiveOtherItems:!s})}),!0===s&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Expand First Item","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({expandFirstItem:!c})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Toggle","ultimate-addons-for-gutenberg"),checked:ve,onChange:()=>a({enableToggle:!ve})})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Schema Support","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>a({enableSchemaSupport:!u})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Separator","ultimate-addons-for-gutenberg"),checked:_,onChange:()=>a({enableSeparator:!_})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Question Tag","ultimate-addons-for-gutenberg"),data:{value:Oe,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}],onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.headingTag=e}),a({headingTag:e})})(e)}),"grid"===o&&React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:ye,label:"columns",min:1,max:6},tablet:{value:fe,label:"tcolumns",min:1,max:4},mobile:{value:he,label:"mcolumns",min:1,max:2}},min:1,max:6,displayUnit:!1,setAttributes:a}),"grid"===o&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:v,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),"accordion"===o&&React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(Mr,{label:Object(r.__)("Inactive Icon","ultimate-addons-for-gutenberg"),value:se,onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.icon=e}),a({icon:e})})(e)}),React.createElement(Mr,{label:Object(r.__)("Active Icon","ultimate-addons-for-gutenberg"),value:ce,onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.iconActive=e}),a({iconActive:e})})(e)}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Icon Alignment","ultimate-addons-for-gutenberg"),data:{value:ue,label:"iconAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"row",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"row-reverse",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:ah,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Container","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:T,label:"boxBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===T&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:S,data:{value:S,label:"boxBgColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:C,label:"boxBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===C&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:dt,data:{value:dt,label:"boxBgHoverColor"},setAttributes:a}))}),React.createElement(tl,{label:Object(r.__)("Rows Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"rowsGap"},tablet:{value:d,label:"rowsGapTablet"},mobile:{value:b,label:"rowsGapMobile"}},min:0,max:50,unit:{value:g,label:"rowsGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}),"grid"===o&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Columns Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"columnsGap"},tablet:{value:y,label:"columnsGapTablet"},mobile:{value:f,label:"columnsGapMobile"}},min:0,max:50,unit:{value:h,label:"columnsGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:_e,onChange:()=>a({equalHeight:!_e})})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{setAttributes:a,prefix:"overall",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),"accordion"!==o?"":React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:me,label:"iconSize"},tablet:{value:be,label:"iconSizeTablet"},mobile:{value:de,label:"iconSizeMobile"}},min:0,max:100,unit:{value:pe,label:"iconSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:gt,label:"iconBgSize"},tablet:{value:mt,label:"iconBgSizeTablet"},mobile:{value:yt,label:"iconBgSizeMobile"}},min:0,max:100,unit:{value:ft,label:"iconBgSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap between Icon and Question","ultimate-addons-for-gutenberg"),data:{desktop:{value:H,label:"gapBtwIconQUestion"},tablet:{value:F,label:"gapBtwIconQUestionTablet"},mobile:{value:j,label:"gapBtwIconQUestionMobile"}},min:-100,max:100,displayUnit:!1,setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:O,data:{value:O,label:"iconColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Active Color","ultimate-addons-for-gutenberg"),colorValue:L,data:{value:L,label:"iconActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:bt,data:{value:bt,label:"iconBgColor"},setAttributes:a}),React.createElement(Hi,{setAttributes:a,prefix:"icon",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Question","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:z,label:"questionloadGoogleFonts"},fontFamily:{value:D,label:"questionFontFamily"},fontWeight:{value:N,label:"questionFontWeight"},fontStyle:{value:tt,label:"questionFontStyle"},transform:{value:at,label:"questionTransform"},decoration:{value:lt,label:"questionDecoration"},fontSizeType:{value:I,label:"questionFontSizeType"},fontSize:{value:V,label:"questionFontSize"},fontSizeMobile:{value:W,label:"questionFontSizeMobile"},fontSizeTablet:{value:q,label:"questionFontSizeTablet"},lineHeightType:{value:Z,label:"questionLineHeightType"},lineHeight:{value:$,label:"questionLineHeight"},lineHeightMobile:{value:Y,label:"questionLineHeightMobile"},lineHeightTablet:{value:K,label:"questionLineHeightTablet"},letterSpacing:{value:it,label:"questionLetterSpacing"},letterSpacingTablet:{value:ot,label:"questionLetterSpacingTablet"},letterSpacingMobile:{value:nt,label:"questionLetterSpacingMobile"},letterSpacingType:{value:rt,label:"questionLetterSpacingType"}}),"accordion"===o&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active/Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:k,data:{value:k,label:"questionTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:w,data:{value:w,label:"questionTextBgColor"},setAttributes:a})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:P,data:{value:P,label:"questionTextActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:x,data:{value:x,label:"questionTextActiveBgColor"},setAttributes:a}))}),"grid"===o&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:k,data:{value:k,label:"questionTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:w,data:{value:w,label:"questionTextBgColor"},setAttributes:a})),React.createElement(Pl,lh({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ae,label:"vquestionPaddingDesktop"},valueRight:{value:xe,label:"hquestionPaddingDesktop"},valueBottom:{value:Ge,label:"questionBottomPaddingDesktop"},valueLeft:{value:Pe,label:"questionLeftPaddingDesktop"},valueTopTablet:{value:ke,label:"vquestionPaddingTablet"},valueRightTablet:{value:Se,label:"hquestionPaddingTablet"},valueBottomTablet:{value:we,label:"questionBottomPaddingTablet"},valueLeftTablet:{value:Te,label:"questionLeftPaddingTablet"},valueTopMobile:{value:Be,label:"vquestionPaddingMobile"},valueRightMobile:{value:Re,label:"hquestionPaddingMobile"},valueBottomMobile:{value:Ue,label:"questionBottomPaddingMobile"},valueLeftMobile:{value:Me,label:"questionLeftPaddingMobile"},unit:{value:A,label:"questionPaddingTypeDesktop"},mUnit:{value:G,label:"questionPaddingTypeMobile"},tUnit:{value:M,label:"questionPaddingTypeTablet"},attributes:t,setAttributes:a,link:{value:Fe,label:"questionSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}))),React.createElement(je,{title:Object(r.__)("Answer","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:R,data:{value:R,label:"answerTextColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:J,label:"answerloadGoogleFonts"},fontFamily:{value:X,label:"answerFontFamily"},fontWeight:{value:Q,label:"answerFontWeight"},fontStyle:{value:Xe,label:"answerFontStyle"},transform:{value:Qe,label:"answerTransform"},decoration:{value:et,label:"answerDecoration"},fontSizeType:{value:ee,label:"answerFontSizeType"},fontSize:{value:te,label:"answerFontSize"},fontSizeMobile:{value:ae,label:"answerFontSizeMobile"},fontSizeTablet:{value:le,label:"answerFontSizeTablet"},lineHeightType:{value:ie,label:"answerLineHeightType"},lineHeight:{value:oe,label:"answerLineHeight"},lineHeightMobile:{value:ne,label:"answerLineHeightMobile"},lineHeightTablet:{value:re,label:"answerLineHeightTablet"},letterSpacing:{value:st,label:"answerLetterSpacing"},letterSpacingTablet:{value:ct,label:"answerLetterSpacingTablet"},letterSpacingMobile:{value:ut,label:"answerLetterSpacingMobile"},letterSpacingType:{value:pt,label:"answerLetterSpacingType"}}),React.createElement(Pl,lh({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ze,label:"answerTopPadding"},valueRight:{value:De,label:"answerRightPadding"},valueBottom:{value:Ne,label:"answerBottomPadding"},valueLeft:{value:Ie,label:"answerLeftPadding"},valueTopTablet:{value:Ve,label:"answerTopPaddingTablet"},valueRightTablet:{value:We,label:"answerRightPaddingTablet"},valueBottomTablet:{value:qe,label:"answerBottomPaddingTablet"},valueLeftTablet:{value:Ze,label:"answerLeftPaddingTablet"},valueTopMobile:{value:$e,label:"answerTopPaddingMobile"},valueRightMobile:{value:Ye,label:"answerRightPaddingMobile"},valueBottomMobile:{value:Ke,label:"answerBottomPaddingMobile"},valueLeftMobile:{value:Je,label:"answerLeftPaddingMobile"},unit:{value:B,label:"answerPaddingTypeDesktop"},mUnit:{value:U,label:"answerPaddingTypeMobile"},tUnit:{value:E,label:"answerPaddingTypeTablet"},attributes:t,setAttributes:a,link:{value:He,label:"answerSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ht,label:"blockTopPadding"},valueRight:{value:vt,label:"blockRightPadding"},valueBottom:{value:Tt,label:"blockBottomPadding"},valueLeft:{value:_t,label:"blockLeftPadding"},valueTopTablet:{value:Ct,label:"blockTopPaddingTablet"},valueRightTablet:{value:St,label:"blockRightPaddingTablet"},valueBottomTablet:{value:wt,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:kt,label:"blockLeftPaddingTablet"},valueTopMobile:{value:Pt,label:"blockTopPaddingMobile"},valueRightMobile:{value:xt,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Gt,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:At,label:"blockLeftPaddingMobile"},unit:{value:Mt,label:"blockPaddingUnit"},mUnit:{value:Bt,label:"blockPaddingUnitMobile"},tUnit:{value:Rt,label:"blockPaddingUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ut,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Et,label:"blockTopMargin"},valueRight:{value:Ot,label:"blockRightMargin"},valueBottom:{value:Ht,label:"blockBottomMargin"},valueLeft:{value:Lt,label:"blockLeftMargin"},valueTopTablet:{value:Ft,label:"blockTopMarginTablet"},valueRightTablet:{value:jt,label:"blockRightMarginTablet"},valueBottomTablet:{value:Dt,label:"blockBottomMarginTablet"},valueLeftTablet:{value:zt,label:"blockLeftMarginTablet"},valueTopMobile:{value:Nt,label:"blockTopMarginMobile"},valueRightMobile:{value:It,label:"blockRightMarginMobile"},valueBottomMobile:{value:Wt,label:"blockBottomMarginMobile"},valueLeftMobile:{value:Vt,label:"blockLeftMarginMobile"},unit:{value:qt,label:"blockMarginUnit"},mUnit:{value:$t,label:"blockMarginUnitMobile"},tUnit:{value:Zt,label:"blockMarginUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Yt,label:"blockMarginLink"}}))),React.createElement(il,lh({},rl,{parentProps:e})))))}),nh=a(110),rh=0,sh={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},ch={};ch.locals=nh.a.locals||{},ch.use=function(){return rh++||(ih=we()(nh.a,sh)),ch},ch.unuse=function(){rh>0&&!--rh&&(ih(),ih=null)};var uh=ch;const ph=["uagb/faq-child"],dh=[];var bh=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(uh.use(),()=>{uh.unuse()}),[]);const{attributes:t,deviceType:a}=e,{equalHeight:l,block_id:i}=t,o=Object(B.useMemo)(()=>{const e=[];for(let t=0;t<2;t++)e.push(["uagb/faq-child",dh[t]]);return e},[2,dh]),n=l?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()("uagb-faq__outer-wrap","uagb-editor-preview-mode-"+a.toLowerCase(),"uagb-block-"+i,"uagb-faq-icon-"+t.iconAlign,"uagb-faq-layout-"+t.layout,"uagb-faq-expand-first-"+t.expandFirstItem,"uagb-faq-inactive-other-"+t.inactiveOtherItems,n),"data-faqtoggle":t.enableToggle,role:"tablist"},React.createElement(ge.InnerBlocks,{template:o,templateLock:!1,allowedBlocks:ph,__experimentalMoverDirection:"vertical"}))}),gh=Object(B.memo)(e=>{let{attributes:t}=e;const{questionloadGoogleFonts:a,questionFontFamily:l,questionFontWeight:i,answerloadGoogleFonts:o,answerFontFamily:n,answerFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),mh=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,setAttributes:a,attributes:l,attributes:{questionBottomPaddingDesktop:i,vquestionPaddingDesktop:o,questionLeftPaddingDesktop:r,hquestionPaddingDesktop:s,questionBottomPaddingTablet:c,vquestionPaddingTablet:u,questionLeftPaddingTablet:p,hquestionPaddingTablet:d,questionBottomPaddingMobile:b,vquestionPaddingMobile:g,questionLeftPaddingMobile:m,hquestionPaddingMobile:y,borderStyle:f,borderWidth:h,borderRadius:v,borderColor:_,borderHoverColor:T,UAGHideDesktop:C,UAGHideTab:S,UAGHideMob:k},clientId:w,name:P,deviceType:x}=e;Object(B.useEffect)(()=>{10===i&&10!==o&&a({questionBottomPaddingDesktop:o}),10===r&&10!==s&&a({questionLeftPaddingDesktop:s}),10===c&&10!==u&&a({questionBottomPaddingTablet:u}),10===p&&10!==d&&a({questionLeftPaddingTablet:d}),10===b&&10!==g&&a({questionBottomPaddingMobile:g}),10===m&&10!==y&&a({questionLeftPaddingMobile:y}),(h||v||_||T||f)&&ue("overall",{label:"borderWidth",value:h},{label:"borderRadius",value:v},{label:"borderColor",value:_},{label:"borderHoverColor",value:T},{label:"borderStyle",value:f},a,l)},[]),Object(B.useEffect)(()=>{Object(n.select)("core/block-editor").getBlocks(w).forEach(e=>{e.attributes.headingTag=l.headingTag}),l.vanswerPaddingDesktop&&(""===l.answerTopPadding&&a({answerTopPadding:l.vanswerPaddingDesktop}),""===l.answerBottomPadding&&a({answerBottomPadding:l.vanswerPaddingDesktop})),l.hanswerPaddingDesktop&&(""===l.answerRightPadding&&a({answerRightPadding:l.hanswerPaddingDesktop}),""===l.answerLeftPadding&&a({answerLeftPadding:l.hanswerPaddingDesktop})),l.vanswerPaddingTablet&&(""===l.answerTopPaddingTablet&&a({answerTopPaddingTablet:l.vanswerPaddingTablet}),""===l.answerBottomPaddingTablet&&a({answerBottomPaddingTablet:l.vanswerPaddingTablet})),l.hanswerPaddingTablet&&(""===l.answerRightPaddingTablet&&a({answerRightPaddingTablet:l.hanswerPaddingTablet}),""===l.answerLeftPaddingTablet&&a({answerLeftPaddingTablet:l.hanswerPaddingTablet})),l.vanswerPaddingMobile&&(""===l.answerTopPaddingMobile&&a({answerTopPaddingMobile:l.vanswerPaddingMobile}),""===l.answerBottomPaddingMobile&&a({answerBottomPaddingMobile:l.vanswerPaddingMobile})),l.hanswerPaddingMobile&&(""===l.answerRightPaddingMobile&&a({answerRightPaddingMobile:l.hanswerPaddingMobile}),""===l.answerLeftPaddingMobile&&a({answerLeftPaddingMobile:l.hanswerPaddingMobile}))},[l]);const A=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,layout:r,inactiveOtherItems:s,expandFirstItem:c,rowsGap:u,rowsGapTablet:p,rowsGapMobile:d,rowsGapUnit:b,columnsGapUnit:g,columnsGap:m,columnsGapTablet:y,columnsGapMobile:f,align:h,enableSeparator:v,boxBgType:_,boxBgHoverType:T,boxBgColor:C,boxBgHoverColor:S,overallBorderHColor:k,overallBorderColor:w,overallBorderTopWidth:P,questionTextColor:x,questionTextBgColor:A,questionTextActiveColor:G,questionTextActiveBgColor:M,questionPaddingTypeDesktop:R,questionPaddingTypeMobile:B,questionPaddingTypeTablet:U,vquestionPaddingMobile:E,vquestionPaddingTablet:O,vquestionPaddingDesktop:L,hquestionPaddingMobile:H,hquestionPaddingTablet:F,hquestionPaddingDesktop:j,answerTextColor:z,answerPaddingTypeDesktop:D,answerPaddingTypeMobile:N,answerPaddingTypeTablet:I,answerTopPadding:V,answerBottomPadding:W,answerRightPadding:q,answerLeftPadding:Z,answerTopPaddingTablet:$,answerBottomPaddingTablet:Y,answerRightPaddingTablet:K,answerLeftPaddingTablet:J,answerTopPaddingMobile:X,answerBottomPaddingMobile:Q,answerRightPaddingMobile:ee,answerLeftPaddingMobile:te,iconColor:le,iconActiveColor:ie,gapBtwIconQUestion:oe,gapBtwIconQUestionTablet:ne,gapBtwIconQUestionMobile:re,questionFontFamily:se,questionFontWeight:ce,questionFontSizeType:ue,questionFontSize:pe,questionFontSizeMobile:de,questionFontSizeTablet:be,questionLineHeightType:ge,questionLineHeight:me,questionLineHeightMobile:ye,questionLineHeightTablet:fe,answerFontFamily:he,answerFontWeight:ve,answerFontSizeType:_e,answerFontSize:Te,answerFontSizeMobile:Ce,answerFontSizeTablet:Se,answerLineHeightType:ke,answerLineHeight:we,answerLineHeightMobile:Pe,answerLineHeightTablet:xe,iconAlign:Ae,iconSize:Ge,iconSizeType:Me,iconSizeMobile:Re,iconSizeTablet:Be,columns:Ue,tcolumns:Ee,mcolumns:Oe,questionLeftPaddingTablet:Le,questionBottomPaddingTablet:He,questionLeftPaddingDesktop:Fe,questionBottomPaddingDesktop:je,questionLeftPaddingMobile:ze,questionBottomPaddingMobile:De,answerFontStyle:Ne,answerTransform:Ie,answerDecoration:Ve,questionFontStyle:We,questionTransform:qe,questionDecoration:Ze,questionLetterSpacing:$e,questionLetterSpacingTablet:Ye,questionLetterSpacingMobile:Ke,questionLetterSpacingType:Je,answerLetterSpacing:Xe,answerLetterSpacingTablet:Qe,answerLetterSpacingMobile:et,answerLetterSpacingType:tt,iconBgColor:at,iconBgSize:lt,iconBgSizeTablet:it,iconBgSizeMobile:ot,iconBgSizeType:nt,iconBorderHColor:rt,blockTopPadding:st,blockRightPadding:ct,blockLeftPadding:ut,blockBottomPadding:pt,blockTopPaddingTablet:dt,blockRightPaddingTablet:bt,blockLeftPaddingTablet:gt,blockBottomPaddingTablet:mt,blockTopPaddingMobile:yt,blockRightPaddingMobile:ft,blockLeftPaddingMobile:ht,blockBottomPaddingMobile:vt,blockPaddingUnit:_t,blockPaddingUnitTablet:Tt,blockPaddingUnitMobile:Ct,blockTopMargin:St,blockRightMargin:kt,blockLeftMargin:wt,blockBottomMargin:Pt,blockTopMarginTablet:xt,blockRightMarginTablet:At,blockLeftMarginTablet:Gt,blockBottomMarginTablet:Mt,blockTopMarginMobile:Rt,blockRightMarginMobile:Bt,blockLeftMarginMobile:Ut,blockBottomMarginMobile:Et,blockMarginUnit:Ot,blockMarginUnitTablet:Lt,blockMarginUnitMobile:Ht}=e,Ft=Wr(e,"overall",""),jt=Wr(e,"overall","tablet"),zt=Wr(e,"overall","mobile"),Dt=Wr(e,"icon",""),Nt=Wr(e,"icon","tablet"),It=Wr(e,"icon","mobile");let Vt={},Wt={},qt={},Zt=le,$t=ie;void 0===le&&(Zt=x),void 0===ie&&($t=G),Vt={" .uagb-icon svg":{width:Vr(us(Ge,"iconSize",i),Me),height:Vr(us(Ge,"iconSize",i),Me),"font-size":Vr(us(Ge,"iconSize",i),Me),fill:Zt}," .uagb-icon-active svg":{width:Vr(us(Ge,"iconSize",i),Me),height:Vr(us(Ge,"iconSize",i),Me),"font-size":Vr(us(Ge,"iconSize",i),Me),fill:$t}," .uagb-faq-child__outer-wrap":{"margin-bottom":Vr(us(u,"rowsGap",i),b)},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":Vr(us(m,"columnsGap",i),g),"grid-row-gap":Vr(us(u,"rowsGap",i),b)}," .uagb-faq-item":{"background-color":"color"===_?C:"transparent",...Ft}," .uagb-faq-item:hover":{"background-color":"color"===T?S:"transparent","border-color":k}," .uagb-faq-item .uagb-question":{color:x}," .uagb-faq-item.uagb-faq-item-active .uagb-question":{color:G}," .uagb-faq-item:hover .uagb-question":{color:G}," .uagb-faq-item.uagb-faq-item-active .uagb-faq-questions-button":{"background-color":M}," .uagb-faq-item:hover .uagb-faq-questions-button":{"background-color":M}," .uagb-faq-questions-button":{"padding-top":Vr(L,R),"padding-bottom":Vr(je,R),"padding-right":Vr(j,R),"padding-left":Vr(Fe,R),"background-color":A}," .uagb-faq-content":{"padding-top":Vr(V,D),"padding-bottom":Vr(W,D),"padding-right":Vr(q,D),"padding-left":Vr(Z,D)},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":Vr(us(oe,"gapBtwIconQUestion",i),"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":Vr(us(oe,"gapBtwIconQUestion",i),"px")}," .uagb-faq-item .uagb-faq-icon-wrap":{"background-color":at,padding:Vr(lt,nt),...Dt}," .uagb-faq-item .uagb-faq-icon-wrap:hover":{"border-color":rt}," .uagb-faq-item:hover .uagb-icon svg":{fill:$t}," .uagb-faq-item .uagb-faq-questions-button.uagb-faq-questions":{"flex-direction":Ae}," .uagb-faq-questions-button .uagb-question":{"font-size":Vr(pe,ue),"line-height":Vr(me,ge),"font-family":se,"font-style":We,"text-decoration":Ze,"text-transform":qe,"font-weight":ce,"letter-spacing":Vr($e,Je)}," .uagb-faq-item .uagb-faq-content":{"font-size":Vr(Te,_e),"line-height":Vr(we,ke),"font-family":he,"font-style":Ne,"text-decoration":Ve,"text-transform":Ie,"font-weight":ve,color:z,"letter-spacing":Vr(Xe,tt)},".uagb-faq__outer-wrap":{"margin-top":Vr(St,Ot),"margin-right":Vr(kt,Ot),"margin-bottom":Vr(Pt,Ot),"margin-left":Vr(wt,Ot),"padding-top":Vr(st,_t),"padding-right":Vr(ct,_t),"padding-bottom":Vr(pt,_t),"padding-left":Vr(ut,_t)}},Wt={" .uagb-faq-questions-button":{"padding-top":Vr(O,U),"padding-bottom":Vr(He,U),"padding-right":Vr(F,U),"padding-left":Vr(Le,U)}," .uagb-faq-item .uagb-faq-icon-wrap":{padding:Vr(it,nt),...Nt}," .uagb-faq-item":{...jt}," .uagb-faq-content":{"padding-top":Vr($,I),"padding-bottom":Vr(Y,I),"padding-right":Vr(K,I),"padding-left":Vr(J,I)}," .uagb-faq-questions-button .uagb-question":{"font-size":Vr(be,ue),"line-height":Vr(fe,ge),"letter-spacing":Vr(Ye,Je)}," .uagb-faq-item .uagb-faq-content":{"font-size":Vr(Se,_e),"line-height":Vr(xe,ke),"letter-spacing":Vr(Qe,tt)}," .uagb-icon svg":{width:Vr(Be,Me),height:Vr(Be,Me),"font-size":Vr(Be,Me)},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":Vr(ne,"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":Vr(ne,"px")}," .uagb-icon-active svg":{width:Vr(Be,Me),height:Vr(Be,Me),"font-size":Vr(Be,Me)}," .uagb-faq-child__outer-wrap":{"margin-bottom":Vr(p,b)},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":Vr(y,g),"grid-row-gap":Vr(p,b)},".uagb-faq__outer-wrap":{"margin-top":Vr(xt,Lt),"margin-right":Vr(At,Lt),"margin-bottom":Vr(Mt,Lt),"margin-left":Vr(Gt,Lt),"padding-top":Vr(dt,Tt),"padding-right":Vr(bt,Tt),"padding-bottom":Vr(mt,Tt),"padding-left":Vr(gt,Tt)}},qt={" .uagb-faq-item":{...zt}," .uagb-faq-item .uagb-faq-icon-wrap":{padding:Vr(ot,nt),...It},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":Vr(re,"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":Vr(re,"px")}," .uagb-faq-questions-button":{"padding-top":Vr(E,B),"padding-bottom":Vr(De,B),"padding-right":Vr(H,B),"padding-left":Vr(ze,B)}," .uagb-faq-content":{"padding-top":Vr(X,N),"padding-bottom":Vr(Q,N),"padding-right":Vr(ee,N),"padding-left":Vr(te,N)}," .uagb-faq-questions-button .uagb-question":{"font-size":Vr(de,ue),"line-height":Vr(ye,ge),"letter-spacing":Vr(Ke,Je)}," .uagb-faq-item .uagb-faq-content":{"font-size":Vr(Ce,_e),"line-height":Vr(Pe,ke),"letter-spacing":Vr(et,tt)}," .uagb-icon svg":{width:Vr(Re,Me),height:Vr(Re,Me),"font-size":Vr(Re,Me)}," .uagb-icon-active svg":{width:Vr(Re,Me),height:Vr(Re,Me),"font-size":Vr(Re,Me)}," .uagb-faq-child__outer-wrap":{"margin-bottom":Vr(d,b)},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":Vr(f,g),"grid-row-gap":Vr(d,b)},".uagb-faq__outer-wrap":{"margin-top":Vr(Rt,Ht),"margin-right":Vr(Bt,Ht),"margin-bottom":Vr(Et,Ht),"margin-left":Vr(Ut,Ht),"padding-top":Vr(yt,Ct),"padding-right":Vr(ft,Ct),"padding-bottom":Vr(vt,Ct),"padding-left":Vr(ht,Ct)}},"accordion"===r&&!0===s&&(Vt[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"none"}),"accordion"===r&&!1===s&&(Vt[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap.uagb-faq-item .uagb-faq-questions-button .uagb-icon-active"]={display:"flex"},Vt[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap.uagb-faq-item .uagb-faq-questions-button .uagb-icon"]={display:"none"}),"accordion"===r&&!0===c&&(Vt[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"block"},Vt[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap.uagb-faq-item .uagb-faq-questions-button .uagb-icon-active "]={display:"flex"},Vt[" .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===v&&(Vt[".uagb-faq__outer-wrap .uagb-faq-child__outer-wrap .uagb-faq-content "]={"border-style":"solid","border-top-color":w,"border-top-width":Vr(P,"px")},Vt[".uagb-faq__outer-wrap .uagb-faq-child__outer-wrap .uagb-faq-content:hover "]={"border-top-color":k}),"grid"===r&&(Vt[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap "]={"text-align":h},Vt[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+us(Ue,"columns",i)+", 1fr)"},Wt[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+us(Ee,"tcolumns",i)+", 1fr)"},qt[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+us(Oe,"mcolumns",i)+", 1fr)"});let Yt="";const Kt=".uagb-block-"+n;return Yt=ae(Vt,Kt),"tablet"!==o&&"mobile"!==o||(Yt+=ae(Wt,""+Kt,!0,"tablet"),"mobile"===o&&(Yt+=ae(qt,""+Kt,!0,"mobile"))),Yt}(l,0,P,x),[l,x]);return Object(B.useEffect)(()=>{ys()},[x]),Object(B.useEffect)(()=>{he(e)},[C,S,k,x]),React.createElement(React.Fragment,null,React.createElement(gh,{attributes:l}),React.createElement(me,{blockStyling:A}),t&&React.createElement(oh,e),React.createElement(bh,e))});a(226);var yh={block_id:{type:"string"},layout:{type:"string",default:"accordion"},inactiveOtherItems:{type:"boolean",default:!0},expandFirstItem:{type:"boolean",default:!0},enableSchemaSupport:{type:"boolean",default:!1},align:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!0},enableSeparator:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"enable-separator"}},rowsGap:{type:"number",default:10,UAGCopyPaste:{styleType:"row-gap"}},rowsGapTablet:{type:"number",UAGCopyPaste:{styleType:"row-gap-tablet"}},rowsGapMobile:{type:"number",UAGCopyPaste:{styleType:"row-gap-mobile"}},rowsGapUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"row-gap-type"}},columnsGap:{type:"number",default:10,UAGCopyPaste:{styleType:"column-gap"}},columnsGapTablet:{type:"number",UAGCopyPaste:{styleType:"column-gap-tablet"}},columnsGapMobile:{type:"number",UAGCopyPaste:{styleType:"column-gap-mobile"}},columnsGapUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"column-gap-type"}},boxBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"faq-bg-type"}},boxBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"faq-bg-hover-type"}},boxBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"faq-bg-color"}},boxBgHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"faq-bg-hover-color"}},boxPaddingTypeMobile:{type:"string",UAGCopyPaste:{styleType:"faq-padding-type-mobile"},default:"px"},boxPaddingTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"faq-padding-type-tablet"}},boxPaddingTypeDesktop:{type:"string",default:"px",UAGCopyPaste:{styleType:"faq-padding-type-desktop"}},vBoxPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-vertical-padding-mobile"}},hBoxPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-horizontal-padding-mobile"}},vBoxPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-vertical-padding-tablet"}},hBoxPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-horizontal-padding-tablet"}},vBoxPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-vertical-padding-desktop"}},hBoxPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-horizontal-padding-desktop"}},borderHoverColor:{type:"string"},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderColor:{type:"string",default:"#D2D2D2"},questionTextColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},questionTextActiveColor:{type:"string",UAGCopyPaste:{styleType:"main-title-hover-color"}},questionTextBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},questionTextActiveBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},questionPaddingTypeDesktop:{type:"string",UAGCopyPaste:{styleType:"main-title-padding-type-desktop"},default:"px"},questionPaddingTypeTablet:{type:"string",UAGCopyPaste:{styleType:"main-title-padding-type-tablet"},default:"px"},questionPaddingTypeMobile:{type:"string",UAGCopyPaste:{styleType:"main-title-padding-type-mobile"},default:"px"},vquestionPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding-mobile"},default:10},vquestionPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding-tablet"},default:10},vquestionPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding-desktop"},default:10},hquestionPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding-mobile"},default:10},hquestionPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding-tablet"},default:10},hquestionPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding-desktop"},default:10},answerTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},answerPaddingTypeDesktop:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-type-desktop"}},answerPaddingTypeTablet:{type:"string",UAGCopyPaste:{styleType:"desc-padding-type-tablet"},default:"px"},answerPaddingTypeMobile:{type:"string",UAGCopyPaste:{styleType:"desc-padding-type-mobile"},default:"px"},vanswerPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding-mobile"},default:10},vanswerPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding-tablet"},default:10},vanswerPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding-desktop"},default:10},hanswerPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding-mobile"},default:10},hanswerPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding-tablet"},default:10},hanswerPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding-desktop"},default:10},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconActiveColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},gapBtwIconQUestion:{type:"number",default:10,UAGCopyPaste:{styleType:"icon-spacing"}},gapBtwIconQUestionTablet:{type:"number",UAGCopyPaste:{styleType:"icon-spacing-tablet"}},gapBtwIconQUestionMobile:{type:"number",UAGCopyPaste:{styleType:"icon-spacing-mobile"}},questionloadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},answerloadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"desc-load-google-fonts"},default:!1},questionFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},questionFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},questionFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},questionTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},questionDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},questionFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},questionFontSizeType:{type:"string",UAGCopyPaste:{styleType:"main-title-font-size-type"},default:"px"},questionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},questionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},questionLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},questionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},questionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},questionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},answerFontFamily:{type:"string",UAGCopyPaste:{styleType:"desc-font-family"},default:"Default"},answerFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},answerFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"},default:"normal"},answerTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},answerDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},answerFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},answerFontSizeType:{type:"string",UAGCopyPaste:{styleType:"desc-font-size-type"},default:"px"},answerFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},answerFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},answerLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},answerLineHeightType:{type:"string",UAGCopyPaste:{styleType:"desc-line-height-type"},default:"em"},answerLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},answerLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},icon:{type:"string",default:"plus"},iconActive:{type:"string",default:"minus"},iconAlign:{type:"string",default:"row",UAGCopyPaste:{styleType:"icon-align"}},iconSize:{type:"number",default:12,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconBgSize:{type:"number",UAGCopyPaste:{styleType:"icon-bg-size"}},iconBgSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-bg-size-tablet"}},iconBgSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-bg-size-mobile"}},iconBgSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-bg-size-type"}},columns:{type:"number",default:2,UAGCopyPaste:{styleType:"column-count"}},tcolumns:{type:"number",default:2,UAGCopyPaste:{styleType:"column-count-tablet"}},mcolumns:{type:"number",default:1,UAGCopyPaste:{styleType:"column-count-mobile"}},schema:{type:"string",default:""},enableToggle:{type:"boolean",default:!0},equalHeight:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"equal-height"}},questionLeftPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},questionBottomPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},questionLeftPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-left-padding-desktop"}},questionBottomPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-padding-desktop"}},questionLeftPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},questionBottomPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"},questionSpacingLink:{type:"boolean",default:!1},answerSpacingLink:{type:"boolean",default:!1},answerTopPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-top-padding"}},answerRightPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-right-padding"}},answerBottomPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-padding"}},answerLeftPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-left-padding"}},answerTopPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},answerRightPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},answerBottomPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},answerLeftPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},answerTopPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},answerRightPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},answerBottomPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},answerLeftPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},isPreview:{type:"boolean",default:!1},...ce("overall"),questionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},questionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},questionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},questionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},answerLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},answerLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},answerLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},answerLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},iconBgColor:{type:"string",UAGCopyPaste:{styleType:"icon-bg-color"}},...ce("icon")};const fh={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"},rowsGapUnit:{type:"string",default:"px"},...ce("overall")};var hh=[{attributes:fh,save(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,n),"data-faqtoggle":e.attributes.enableToggle},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:fh,save(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,n),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:fh,save(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,n),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:yh,save:function(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,"uagb-faq__wrap","uagb-buttons-layout-wrap",n),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement(ge.InnerBlocks.Content,null))}}];const vh=Object(L.compose)(Object(n.withSelect)(e=>({selected:e("core/block-editor").getSelectedBlock()}))),_h=Object(L.createHigherOrderComponent)(e=>vh(t=>{let{...a}=t;return React.createElement(e,a)}),"withFaq");let Th={};function Ch(){return(Ch=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"faq"}):React.createElement(mh,e),supports:{anchor:!0,html:!1},save:function(){return React.createElement(ge.InnerBlocks.Content,null)}}),Object(F.addFilter)("editor.BlockEdit","uagb/faq",_h);var Sh,kh=Object(B.memo)(e=>React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("For the styling options please select the Parent Block.","ultimate-addons-for-gutenberg")))),React.createElement(il,Ch({},rl,{parentProps:e})))))),wh=a(111),Ph=0,xh={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Ah={};Ah.locals=wh.a.locals||{},Ah.use=function(){return Ph++||(Sh=we()(wh.a,xh)),Ah},Ah.unuse=function(){Ph>0&&!--Ph&&(Sh(),Sh=null)};var Gh=Ah,Mh=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Gh.use(),()=>{Gh.unuse()}),[]);const{attributes:t,setAttributes:a,state:l,isSelected:i}=e,{question:o,answer:n,icon:s,iconActive:c,layout:u,headingTag:p,block_id:d}=t;return React.createElement("div",{className:Be()("uagb-faq-child__outer-wrap","uagb-faq-item","uagb-block-"+d,i&&!1!==l.isFocused?"uagb-faq__active":""),role:"tab",tabIndex:"0"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===u&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},Ce(s,a)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Ce(c,a))),React.createElement(ge.RichText,{tagName:"span"!==p?p:"div",placeholder:Object(r.__)("Question","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({question:e}),className:"uagb-question",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),React.createElement(ge.RichText,{className:"uagb-faq-content",tagName:"p",placeholder:Object(r.__)("Answer","ultimate-addons-for-gutenberg"),value:n,onChange:e=>a({answer:e}),multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"]})))});function Rh(){return(Rh=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a}=e,[l,i]=Object(B.useState)({isFocused:"false"});return Object(B.useEffect)(()=>{Bh=t},[]),Object(B.useEffect)(()=>{!t&&Bh&&l.isFocused&&i({isFocused:"false"}),t&&!Bh&&i({isFocused:!0}),Bh=t},[a]),React.createElement(React.Fragment,null,t&&React.createElement(kh,e),React.createElement(Mh,Rh({},e,{state:l})))});a(227);var Eh=[{attributes:Yt,save(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-block-"+a)},React.createElement("div",{className:"uagb-faq-child__wrapper"},React.createElement("div",{className:"uagb-faq-item"},React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},kb(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},kb(n))),React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-question"})),React.createElement("div",{className:"uagb-faq-content"},React.createElement("span",null,React.createElement(ge.RichText.Content,{tagName:"p",value:i}))))))}},{attributes:Yt,save(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r,headingTag:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-block-"+a)},React.createElement("div",{className:"uagb-faq-child__wrapper"},React.createElement("div",{className:"uagb-faq-item",role:"tab",tabIndex:"0"},React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},kb(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},kb(n))),React.createElement(ge.RichText.Content,{tagName:s,value:l,className:"uagb-question"})),React.createElement("div",{className:"uagb-faq-content"},React.createElement("span",null,React.createElement(ge.RichText.Content,{tagName:"p",value:i}))))))}},{attributes:Yt,save:function(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r,headingTag:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-faq-item","uagb-block-"+a),role:"tab",tabIndex:"0"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},Ce(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Ce(n))),React.createElement(ge.RichText.Content,{tagName:s,value:l,className:"uagb-question"})),React.createElement(ge.RichText.Content,{className:"uagb-faq-content",tagName:"p",value:i})))}},{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},question:{type:"html",default:Object(r.__)("What is FAQ?","ultimate-addons-for-gutenberg")},answer:{type:"html",default:Object(r.__)("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:"plus"},iconActive:{type:"html",default:"minus"},layout:{type:"string",default:"accordion"},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"}},save:function(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r,headingTag:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-faq-item","uagb-block-"+a),role:"tab",tabIndex:"0"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},Ce(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Ce(n))),React.createElement(ge.RichText.Content,{tagName:s,value:l,className:"uagb-question"})),React.createElement("div",{className:"uagb-faq-content"},React.createElement(ge.RichText.Content,{tagName:"p",value:i}))))}}];let Oh={};Oh=Object(F.applyFilters)("uagb/faq-child",ss(Oh)),Object(de.registerBlockType)("uagb/faq-child",{...Oh,title:Object(r.__)("FAQ Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a frequently asked question/accordion to display information.","ultimate-addons-for-gutenberg"),icon:se.faq_child,parent:["uagb/faq"],attributes:Yt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"faq-child",isChildren:!0}):React.createElement(Uh,e),supports:{anchor:!0,html:!1},save:()=>null,deprecated:Eh});const Lh=[{defaultAttributes:oa},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"bgColor",value:"#ffffff"},{label:"fieldBorderTopLeftRadius",value:2},{label:"fieldBorderTopRightRadius",value:2},{label:"fieldBorderBottomLeftRadius",value:2},{label:"fieldBorderBottomRightRadius",value:2},{label:"paddingFieldTop",value:12},{label:"paddingFieldRight",value:12},{label:"paddingFieldBottom",value:12},{label:"paddingFieldLeft",value:12},{label:"formStyle",value:"boxed"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"bgColor",value:"#ffffff"},{label:"fieldBorderTopLeftRadius",value:3},{label:"fieldBorderTopRightRadius",value:3},{label:"fieldBorderBottomLeftRadius",value:3},{label:"fieldBorderBottomRightRadius",value:3},{label:"paddingFieldTop",value:0},{label:"paddingFieldRight",value:10},{label:"paddingFieldBottom",value:10},{label:"paddingFieldLeft",value:0},{label:"formStyle",value:"underlined"}],icon:' '}];var Hh=Object(F.applyFilters)("uag_forms_presets",Lh);const Fh=[{defaultAttributes:oa},{defaultPresetAttributes:[{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderTopWidth"},{label:"btnBorderLeftWidth"},{label:"btnBorderRightWidth"},{label:"btnBorderBottomWidth"},{label:"submitBgType"},{label:"submitBgColorHover"},{label:"submitColor"},{label:"submitColorHover"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderBottomWidth",value:1},{label:"submitBgType",value:"transparent"},{label:"submitBgColorHover",value:"#3a3a3a"},{label:"submitColor",value:"#0170b9"},{label:"submitColorHover",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderBottomWidth",value:1},{label:"submitBgType",value:"transparent"},{label:"submitBgColorHover",value:"#3a3a3a"},{label:"submitColor",value:"#0170b9"},{label:"submitColorHover",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderBottomWidth",value:1},{label:"submitBgType",value:"transparent"},{label:"submitBgColorHover",value:"#3a3a3a"},{label:"submitColor",value:"#0170b9"},{label:"submitColorHover",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '}];function jh(){return(jh=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{formPaddingTop:i,formPaddingRight:o,formPaddingBottom:n,formPaddingLeft:s,formPaddingTopTab:c,formPaddingRightTab:u,formPaddingBottomTab:p,formPaddingLeftTab:d,formPaddingTopMob:b,formPaddingRightMob:g,formPaddingBottomMob:m,formPaddingLeftMob:y,formPaddingUnit:f,formPaddingUnitTab:h,formPaddingUnitMob:v,formPaddingLink:_,formLabel:T,buttonAlign:C,buttonAlignTablet:S,buttonAlignMobile:k,buttonSize:w,confirmationType:P,confirmationMessage:x,failedMessage:A,confirmationUrl:G,afterSubmitToEmail:M,afterSubmitCcEmail:R,afterSubmitBccEmail:B,afterSubmitEmailSubject:U,submitColor:E,submitColorHover:O,submitBgType:L,submitBgHoverType:H,submitBgColor:F,submitBgColorHover:j,submitTextloadGoogleFonts:z,submitTextFontFamily:D,submitTextFontWeight:N,submitTextFontSize:I,submitTextFontSizeType:V,submitTextFontSizeTablet:W,submitTextFontSizeMobile:q,submitTextLineHeightType:Z,submitTextLineHeight:$,submitTextLineHeightTablet:Y,submitTextLineHeightMobile:K,inheritFromTheme:J,submitButtonType:X,labelloadGoogleFonts:Q,labelFontFamily:ee,labelFontWeight:te,labelFontSize:ae,labelFontSizeType:le,labelFontSizeTablet:ie,labelFontSizeMobile:oe,labelLineHeightType:ne,labelLineHeight:re,labelLineHeightTablet:se,labelLineHeightMobile:ce,inputloadGoogleFonts:ue,inputFontFamily:pe,inputFontWeight:de,inputFontSize:be,inputFontSizeType:me,inputFontSizeTablet:ye,inputFontSizeMobile:fe,inputLineHeightType:he,inputLineHeight:ve,inputLineHeightTablet:_e,inputLineHeightMobile:Te,toggleSize:Se,toggleSizeTablet:ke,toggleSizeMobile:we,toggleWidthSize:Pe,toggleWidthSizeTablet:xe,toggleWidthSizeMobile:Ae,toggleColor:Ge,toggleActiveColor:Me,toggleDotColor:Re,toggleDotActiveColor:Be,labelColor:Ue,labelHoverColor:Oe,inputColor:He,bgColor:Fe,bgHoverColor:ze,bgActiveColor:De,inputplaceholderColor:Ne,inputplaceholderHoverColor:Ie,inputplaceholderActiveColor:Ve,fieldGap:We,fieldGapTablet:qe,fieldGapMobile:Ze,formStyle:$e,overallAlignment:Ye,overallAlignmentTablet:Ke,overallAlignmentMobile:Je,labelAlignment:Xe,labelAlignmentTablet:Qe,labelAlignmentMobile:et,reCaptchaEnable:tt,reCaptchaType:at,successMessageTextColor:lt,successMessageBGColor:it,failedMessageTextColor:ot,failedMessageBGColor:nt,paddingBtnTop:rt,paddingBtnRight:st,paddingBtnBottom:ct,paddingBtnLeft:ut,paddingBtnTopTablet:pt,paddingBtnRightTablet:dt,paddingBtnBottomTablet:bt,paddingBtnLeftTablet:gt,paddingBtnTopMobile:mt,paddingBtnRightMobile:yt,paddingBtnBottomMobile:ft,paddingBtnLeftMobile:ht,paddingBtnUnit:vt,mobilePaddingBtnUnit:_t,tabletPaddingBtnUnit:Tt,paddingspacingLink:Ct,submitTextTransform:St,submitTextDecoration:kt,labelTransform:wt,labelDecoration:Pt,inputTransform:xt,inputDecoration:At,fieldGapType:Gt,paddingFieldTop:Mt,paddingFieldRight:Rt,paddingFieldBottom:Bt,paddingFieldLeft:Ut,paddingFieldTopTablet:Et,paddingFieldRightTablet:Ot,paddingFieldBottomTablet:Lt,paddingFieldLeftTablet:Ht,paddingFieldTopMobile:Ft,paddingFieldRightMobile:jt,paddingFieldBottomMobile:zt,paddingFieldLeftMobile:Dt,paddingFieldUnit:Nt,paddingFieldUnitmobile:It,paddingFieldUnitTablet:Vt,paddingFieldLink:Wt,toggleSizeType:qt,submitTextFontStyle:Zt,labelFontStyle:$t,inputFontStyle:Yt,hidereCaptchaBatch:Kt,labelGap:Jt,labelGapTablet:Xt,labelGapMobile:Qt,labelGapUnit:ea,displayLabels:ta,labelLetterSpacing:aa,labelLetterSpacingTablet:la,labelLetterSpacingMobile:ia,labelLetterSpacingType:oa,inputLetterSpacing:na,inputLetterSpacingTablet:ra,inputLetterSpacingMobile:sa,inputLetterSpacingType:ca,submitTextLetterSpacing:ua,submitTextLetterSpacingTablet:pa,submitTextLetterSpacingMobile:da,submitTextLetterSpacingType:ba,gradientValue:ga,gradientHValue:ma,gradientHColor1:ya,selectHGradient:fa,gradientHColor2:ha,gradientHLocation1:va,gradientHLocation2:_a,gradientHType:Ta,gradientHAngle:Ca,gradientColor1:Sa,gradientColor2:ka,gradientLocation1:wa,gradientLocation2:Pa,gradientType:xa,gradientAngle:Aa,selectGradient:Ga}=t,Ma=uagb_blocks_info.current_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Labels","ultimate-addons-for-gutenberg"),checked:ta,onChange:()=>a({displayLabels:!ta})}),React.createElement(Ss,{label:Object(r.__)("Hidden Field Label","ultimate-addons-for-gutenberg"),value:T,data:{value:T,label:"formLabel"},setAttributes:a,onChange:e=>a({formLabel:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:$e,label:"formStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"boxed",label:"Boxed"},{value:"underlined",label:"Underlined"}],showIcons:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Label Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Xe,label:"labelAlignment"},tablet:{value:Qe,label:"labelAlignmentTablet"},mobile:{value:et,label:"labelAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Placeholder Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ye,label:"overallAlignment"},tablet:{value:Ke,label:"overallAlignmentTablet"},mobile:{value:Je,label:"overallAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Confirmation Type","ultimate-addons-for-gutenberg"),data:{value:P,label:"confirmationType"},className:"uagb-multi-button-alignment-control",options:[{value:"message",label:"Message"},{value:"url",label:"URL Text"}],showIcons:!1}),"message"===P&&React.createElement(React.Fragment,null,React.createElement(Ss,{variant:"textarea",setAttributes:a,label:Object(r.__)("Success Message Text","ultimate-addons-for-gutenberg"),help:Object(r.__)("Enter a message you want to display after successfull form submission","ultimate-addons-for-gutenberg"),value:x,data:{value:x,label:"confirmationMessage"},onChange:e=>a({confirmationMessage:e})}),React.createElement(Ss,{variant:"textarea",setAttributes:a,label:Object(r.__)("Error Message Text","ultimate-addons-for-gutenberg"),help:Object(r.__)("Enter a message you want to display after unsuccessfull form submission","ultimate-addons-for-gutenberg"),value:A,data:{value:A,label:"failedMessage"},onChange:e=>a({failedMessage:e})})),"url"===P&&React.createElement(Ss,{label:Object(r.__)("Success Redirect URL","ultimate-addons-for-gutenberg"),help:Object(r.__)("Enter a URL you want to redirect your page to after form Submission","ultimate-addons-for-gutenberg"),value:G,data:{value:G,label:"confirmationUrl"},setAttributes:a,onChange:e=>a({confirmationUrl:e})})),React.createElement(je,{title:Object(r.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg"),checked:J,onChange:()=>a({inheritFromTheme:!J})}),J&&"Astra"===Ma&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:X,label:"submitButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:C,label:"buttonAlign"},tablet:{value:S,label:"buttonAlignTablet"},mobile:{value:k,label:"buttonAlignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full Width","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),!J&&React.createElement(Hr,{setAttributes:a,presets:Fh,presetInputType:"radioImage"})),React.createElement(je,{title:Object(r.__)("Actions","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("Note: Enter an e-mail address to receive submissions. Defaults to the site e-mail address.","ultimate-addons-for-gutenberg")),React.createElement(Ui,{tabs:[{name:"to",title:Object(r.__)("To","ultimate-addons-for-gutenberg")},{name:"cc",title:Object(r.__)("CC","ultimate-addons-for-gutenberg")},{name:"bcc",title:Object(r.__)("BCC","ultimate-addons-for-gutenberg")}],to:React.createElement(Ss,{label:Object(r.__)("Email Address","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:M,data:{value:M,label:"afterSubmitToEmail"},setAttributes:a,onChange:e=>a({afterSubmitToEmail:e})}),cc:React.createElement(Ss,{label:Object(r.__)("Email Address","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:R,data:{value:R,label:"afterSubmitCcEmail"},setAttributes:a,onChange:e=>a({afterSubmitCcEmail:e})}),bcc:React.createElement(Ss,{label:Object(r.__)("Email Address","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:B,data:{value:B,label:"afterSubmitBccEmail"},setAttributes:a,onChange:e=>a({afterSubmitBccEmail:e})}),disableBottomSeparator:!1}),React.createElement(Ss,{label:Object(r.__)("Subject","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Subject","ultimate-addons-for-gutenberg"),value:U,data:{value:U,label:"afterSubmitEmailSubject"},setAttributes:a,onChange:e=>a({afterSubmitEmailSubject:e})})),React.createElement(je,{title:Object(r.__)("Google reCAPTCHA","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("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")),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable reCAPTCHA ","ultimate-addons-for-gutenberg"),checked:tt,onChange:()=>a({reCaptchaEnable:!tt})}),tt&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("Please configure the Google reCAPTCHA Site & Secret key from","ultimate-addons-for-gutenberg"),React.createElement("a",{target:"_blank",href:uagb_blocks_info.uagb_home_url+"/wp-admin/admin.php?page=spectra&path=settings&settings=block-settings",rel:"noreferrer"},Object(r.__)("here.","ultimate-addons-for-gutenberg"))),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Select Version","ultimate-addons-for-gutenberg"),data:{value:at,label:"reCaptchaType"},className:"uagb-multi-button-alignment-control",options:[{value:"v2",label:"V2",tooltip:Object(r.__)("V2","ultimate-addons-for-gutenberg")},{value:"v3",label:"V3",tooltip:Object(r.__)("V3","ultimate-addons-for-gutenberg")}],showIcons:!1})),tt&&"v3"===at&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide reCAPTCHA Badge","ultimate-addons-for-gutenberg"),checked:Kt,onChange:()=>a({hidereCaptchaBatch:!Kt})})),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:Hh,presetInputType:"radioImage"}))),React.createElement(il,nl,ta&&React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ue||"",data:{value:Ue,label:"labelColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Oe||"",data:{value:Oe,label:"labelHoverColor"},setAttributes:a}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Q,label:"labelloadGoogleFonts"},fontFamily:{value:ee,label:"labelFontFamily"},fontWeight:{value:te,label:"labelFontWeight"},fontStyle:{value:$t,label:"labelFontStyle"},fontSizeType:{value:le,label:"labelFontSizeType"},fontSize:{value:ae,label:"labelFontSize"},fontSizeMobile:{value:oe,label:"labelFontSizeMobile"},fontSizeTablet:{value:ie,label:"labelFontSizeTablet"},lineHeightType:{value:ne,label:"labelLineHeightType"},lineHeight:{value:re,label:"labelLineHeight"},lineHeightMobile:{value:ce,label:"labelLineHeightMobile"},lineHeightTablet:{value:se,label:"labelLineHeightTablet"},letterSpacing:{value:aa,label:"labelLetterSpacing"},letterSpacingTablet:{value:la,label:"labelLetterSpacingTablet"},letterSpacingMobile:{value:ia,label:"labelLetterSpacingMobile"},letterSpacingType:{value:oa,label:"labelLetterSpacingType"},transform:{value:wt,label:"labelTransform"},decoration:{value:Pt,label:"labelDecoration"}}),React.createElement(tl,{label:Object(r.__)("Row Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:We,label:"fieldGap"},tablet:{value:qe,label:"fieldGapTablet"},mobile:{value:Ze,label:"fieldGapMobile"}},min:0,max:100,unit:{value:Gt,label:"fieldGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Label Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:Jt,label:"labelGap"},tablet:{value:Xt,label:"labelGapTablet"},mobile:{value:Qt,label:"labelGapMobile"}},min:0,max:100,unit:{value:ea,label:"labelGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a})),React.createElement(je,{title:Object(r.__)("Input","ultimate-addons-for-gutenberg"),initialOpen:!ta},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:He||"",data:{value:He,label:"inputColor"},setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Placeholder Color","ultimate-addons-for-gutenberg"),colorValue:Ne||"",data:{value:Ne,label:"inputplaceholderColor"},setAttributes:a}),"underlined"!==$e&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Fe||"",data:{value:Fe,label:"bgColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Placeholder Color","ultimate-addons-for-gutenberg"),colorValue:Ie||"",data:{value:Ie,label:"inputplaceholderHoverColor"},setAttributes:a}),"underlined"!==$e&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ze||"",data:{value:ze,label:"bgHoverColor"},setAttributes:a})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Placeholder Color","ultimate-addons-for-gutenberg"),colorValue:Ve||"",data:{value:Ve,label:"inputplaceholderActiveColor"},setAttributes:a}),"underlined"!==$e&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:De||"",data:{value:De,label:"bgActiveColor"},setAttributes:a})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:a,prefix:"field",disabledBorderTitle:!1,attributes:t,deviceType:l}),React.createElement(Pl,jh({},e,{label:Object(r.__)("Input Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Mt,label:"paddingFieldTop"},valueRight:{value:Rt,label:"paddingFieldRight"},valueBottom:{value:Bt,label:"paddingFieldBottom"},valueLeft:{value:Ut,label:"paddingFieldLeft"},valueTopTablet:{value:Et,label:"paddingFieldTopTablet"},valueRightTablet:{value:Ot,label:"paddingFieldRightTablet"},valueBottomTablet:{value:Lt,label:"paddingFieldBottomTablet"},valueLeftTablet:{value:Ht,label:"paddingFieldLeftTablet"},valueTopMobile:{value:Ft,label:"paddingFieldTopMobile"},valueRightMobile:{value:jt,label:"paddingFieldRightMobile"},valueBottomMobile:{value:zt,label:"paddingFieldBottomMobile"},valueLeftMobile:{value:Dt,label:"paddingFieldLeftMobile"},unit:{value:Nt,label:"paddingFieldUnit"},mUnit:{value:It,label:"paddingFieldUnitmobile"},tUnit:{value:Vt,label:"paddingFieldUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Wt,label:"paddingFieldLink"}})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:ue,label:"inputloadGoogleFonts"},fontFamily:{value:pe,label:"inputFontFamily"},fontWeight:{value:de,label:"inputFontWeight"},fontStyle:{value:Yt,label:"inputFontStyle"},fontSizeType:{value:me,label:"inputFontSizeType"},fontSize:{value:be,label:"inputFontSize"},fontSizeMobile:{value:fe,label:"inputFontSizeMobile"},fontSizeTablet:{value:ye,label:"inputFontSizeTablet"},lineHeightType:{value:he,label:"inputLineHeightType"},lineHeight:{value:ve,label:"inputLineHeight"},lineHeightMobile:{value:Te,label:"inputLineHeightMobile"},lineHeightTablet:{value:_e,label:"inputLineHeightTablet"},letterSpacing:{value:na,label:"inputLetterSpacing"},letterSpacingTablet:{value:ra,label:"inputLetterSpacingTablet"},letterSpacingMobile:{value:sa,label:"inputLetterSpacingMobile"},letterSpacingType:{value:ca,label:"inputLetterSpacingType"},transform:{value:xt,label:"inputTransform"},decoration:{value:At,label:"inputDecoration"}})),React.createElement(je,{title:Object(r.__)("Checkbox/Toggle/Radio","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Checkbox/Radio Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"toggleSize"},tablet:{value:ke,label:"toggleSizeTablet"},mobile:{value:we,label:"toggleSizeMobile"}},min:0,max:50,unit:{value:qt,label:"toggleSizeType"},setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Toggle Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Pe,label:"toggleWidthSize"},tablet:{value:xe,label:"toggleWidthSizeTablet"},mobile:{value:Ae,label:"toggleWidthSizeMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a}),React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("Note: It is required to set border style and border width for toggle. Else you will not able to resize the toggle.","ultimate-addons-for-gutenberg")),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Ge||"",data:{value:Ge,label:"toggleColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Element Color","ultimate-addons-for-gutenberg"),colorValue:Re||"",data:{value:Re,label:"toggleDotColor"},setAttributes:a})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Me||"",data:{value:Me,label:"toggleActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Element Color","ultimate-addons-for-gutenberg"),colorValue:Be||"",data:{value:Be,label:"toggleDotActiveColor"},setAttributes:a})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:a,prefix:"checkBoxToggle",disabledBorderTitle:!1,attributes:t,deviceType:l,borderHoverColorLabel:Object(r.__)("Color","ultimate-addons-for-gutenberg"),hoverTabLabel:Object(r.__)("Active","ultimate-addons-for-gutenberg"),disableBottomSeparator:!0,borderRadiusHelp:Object(r.__)("Border radius will be applied to Radio & Toggle only when the layout for those blocks is set to Square.","ultimate-addons-for-gutenberg")})),!J&&React.createElement(je,{title:Object(r.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},!J&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Button Size","ultimate-addons-for-gutenberg"),data:{value:w,label:"buttonSize"},setAttributes:a,options:[{value:"default",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"small",label:Object(r.__)("Small","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"large",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")},{value:"extralarge",label:Object(r.__)("Extra Large","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Full","ultimate-addons-for-gutenberg")}]}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:E||"",data:{value:E,label:"submitColor"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:L,label:"submitBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===L&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:F||"",data:{value:F,label:"submitBgColor"},setAttributes:a}),"gradient"===L&&React.createElement(jl,{backgroundGradient:{value:ga,label:"gradientValue"},backgroundGradientColor1:{value:Sa,label:"gradientColor1"},gradientType:{value:Ga,label:"selectGradient"},backgroundGradientColor2:{value:ka,label:"gradientColor2"},backgroundGradientLocation1:{value:wa,label:"gradientLocation1"},backgroundGradientLocation2:{value:Pa,label:"gradientLocation2"},backgroundGradientType:{value:xa,label:"gradientType"},backgroundGradientAngle:{value:Aa,label:"gradientAngle"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:O||"",data:{value:O,label:"submitColorHover"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:H,label:"submitBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===H&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:j||"",data:{value:j,label:"submitBgColorHover"},setAttributes:a}),"gradient"===H&&React.createElement(jl,{backgroundGradient:{value:ma,label:"gradientHValue"},backgroundGradientColor1:{value:ya,label:"gradientHColor1"},gradientType:{value:fa,label:"selectHGradient"},backgroundGradientColor2:{value:ha,label:"gradientHColor2"},backgroundGradientLocation1:{value:va,label:"gradientHLocation1"},backgroundGradientLocation2:{value:_a,label:"gradientHLocation2"},backgroundGradientType:{value:Ta,label:"gradientHType"},backgroundGradientAngle:{value:Ca,label:"gradientHAngle"},setAttributes:a}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:z,label:"submitTextloadGoogleFonts"},fontFamily:{value:D,label:"submitTextFontFamily"},fontWeight:{value:N,label:"submitTextFontWeight"},fontStyle:{value:Zt,label:"submitTextFontStyle"},fontSizeType:{value:V,label:"submitTextFontSizeType"},fontSize:{value:I,label:"submitTextFontSize"},fontSizeMobile:{value:q,label:"submitTextFontSizeMobile"},fontSizeTablet:{value:W,label:"submitTextFontSizeTablet"},lineHeightType:{value:Z,label:"submitTextLineHeightType"},lineHeight:{value:$,label:"submitTextLineHeight"},lineHeightMobile:{value:K,label:"submitTextLineHeightMobile"},lineHeightTablet:{value:Y,label:"submitTextLineHeightTablet"},letterSpacing:{value:ua,label:"submitTextLetterSpacing"},letterSpacingTablet:{value:pa,label:"submitTextLetterSpacingTablet"},letterSpacingMobile:{value:da,label:"submitTextLetterSpacingMobile"},letterSpacingType:{value:ba,label:"submitTextLetterSpacingType"},transform:{value:St,label:"submitTextTransform"},decoration:{value:kt,label:"submitTextDecoration"}}),React.createElement(Pl,jh({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:rt,label:"paddingBtnTop"},valueRight:{value:st,label:"paddingBtnRight"},valueBottom:{value:ct,label:"paddingBtnBottom"},valueLeft:{value:ut,label:"paddingBtnLeft"},valueTopTablet:{value:pt,label:"paddingBtnTopTablet"},valueRightTablet:{value:dt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:bt,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:gt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:mt,label:"paddingBtnTopMobile"},valueRightMobile:{value:yt,label:"paddingBtnRightMobile"},valueBottomMobile:{value:ft,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:ht,label:"paddingBtnLeftMobile"},unit:{value:vt,label:"paddingBtnUnit"},mUnit:{value:_t,label:"mobilePaddingBtnUnit"},tUnit:{value:Tt,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ct,label:"paddingspacingLink"}})),React.createElement(Hi,{setAttributes:a,prefix:"btn",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0}))),React.createElement(je,{title:Object(r.__)("Messages","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"success",title:Object(r.__)("Success","ultimate-addons-for-gutenberg")},{name:"error",title:Object(r.__)("Error","ultimate-addons-for-gutenberg")}],success:"message"===P&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:lt||"",data:{value:lt,label:"successMessageTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:it||"",data:{value:it,label:"successMessageBGColor"},setAttributes:a}),React.createElement(Hi,{setAttributes:a,prefix:"successMsg",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),error:"message"===P&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:ot||"",data:{value:ot,label:"failedMessageTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:nt||"",data:{value:nt,label:"failedMessageBGColor"},setAttributes:a}),React.createElement(Hi,{setAttributes:a,prefix:"errorMsg",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,jh({},e,{label:Object(r.__)("Form Padding","ultimate-addons-for-gutenberg"),valueTop:{value:i,label:"formPaddingTop"},valueRight:{value:o,label:"formPaddingRight"},valueBottom:{value:n,label:"formPaddingBottom"},valueLeft:{value:s,label:"formPaddingLeft"},valueTopTablet:{value:c,label:"formPaddingTopTab"},valueRightTablet:{value:u,label:"formPaddingRightTab"},valueBottomTablet:{value:p,label:"formPaddingBottomTab"},valueLeftTablet:{value:d,label:"formPaddingLeftTab"},valueTopMobile:{value:b,label:"formPaddingTopMob"},valueRightMobile:{value:g,label:"formPaddingRightMob"},valueBottomMobile:{value:m,label:"formPaddingBottomMob"},valueLeftMobile:{value:y,label:"formPaddingLeftMob"},unit:{value:f,label:"formPaddingUnit"},tUnit:{value:h,label:"formPaddingUnitTab"},mUnit:{value:v,label:"formPaddingUnitMob"},deviceType:l,attributes:t,setAttributes:a,link:{value:_,label:"formPaddingLink"}})))),React.createElement(il,jh({},rl,{parentProps:e})))))});const Dh=["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"];var Nh,Ih=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,deviceType:l}=e,{block_id:i,submitButtonText:o,formLabel:n,buttonSize:s,reCaptchaEnable:c,reCaptchaType:u,submitButtonType:p,inheritFromTheme:d}=t,b=d&&"secondary"===p,g=b?{borderWidth:"revert-layer"}:{},m="uagb-forms-main-submit-button "+(b?"ast-outline-button":"wp-block-button__link"),y=b?"div":"button",f=Object(B.useCallback)(e=>{e.preventDefault()});return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+i,`uagb-forms__${s}-btn`,"uagb-editor-preview-mode-"+l.toLowerCase())},React.createElement("form",{className:"uagb-forms-main-form",name:"uagb-form-"+i},React.createElement(ge.InnerBlocks,{allowedBlocks:Dh}),React.createElement("div",{className:"uagb-forms-form-hidden-data"},c&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",name:"uagb_forms_form_label",value:n}),React.createElement("input",{type:"hidden",name:"uagb_forms_form_id",value:"uagb-form-"+i})),c&&"v2"===u&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+i}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement(y,{onClick:f,className:m,style:g},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Submit","ultimate-addons-for-gutenberg"),value:o.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>a({submitButtonText:e}),className:"uagb-forms-main-submit-button-text",multiline:!1,allowedFormats:[]}))))))}),Vh=a(112),Wh=0,qh={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Zh={};Zh.locals=Vh.a.locals||{},Zh.use=function(){return Wh++||(Nh=we()(Vh.a,qh)),Zh},Zh.unuse=function(){Wh>0&&!--Wh&&(Nh(),Nh=null)};var $h=Zh,Yh=Object(B.memo)(e=>{let{attributes:t}=e;const{submitTextloadGoogleFonts:a,submitTextFontFamily:l,submitTextFontWeight:i,labelloadGoogleFonts:o,labelFontFamily:n,labelFontWeight:r,inputloadGoogleFonts:s,inputFontFamily:c,inputFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function Kh(){return(Kh=Object.assign||function(e){for(var t=1;t{const{clientId:t,setAttributes:a,defaultVariation:l}=e,{replaceInnerBlocks:i}=Object(n.useDispatch)("core/block-editor");return React.createElement("div",Kh({},Object(ge.useBlockProps)(),{className:"uagb-forms-variations uagb-variation-picker uagb-variation-picker--fill"}),React.createElement(ge.__experimentalBlockVariationPicker,{icon:se.forms,label:Object(r.__)("Forms","ultimate-addons-for-gutenberg"),instructions:Object(r.__)("Select a form layout to start with.","ultimate-addons-for-gutenberg"),variations:Jh,onSelect:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;e.attributes&&a(e.attributes),e.innerBlocks&&i(t,Object(de.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))}(e)}))};function Qh(){return(Qh=Object.assign||function(e){for(var t=1;tt=>{var a;const l=Z([(null==t?void 0:t.className)||"",(null==t||null===(a=t.attributes)||void 0===a?void 0:a.className)||""]);return React.createElement(e,Qh({},t,{className:l||null}))},"addAdvancedClasses");Object(F.addFilter)("editor.BlockListBlock","uagb/forms",ev);var tv=Object(L.compose)(Le.withNotices,ev,ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{reCaptchaSiteKeyV2:l,reCaptchaSecretKeyV2:i,reCaptchaSiteKeyV3:o,reCaptchaSecretKeyV3:r,reCaptchaEnable:s,toggleColor:c,bgColor:u,inputborderStyle:p,inputborderWidth:d,inputborderColor:b,inputborderHoverColor:g,inputborderRadius:m,submitborderWidth:y,submitborderRadius:f,submitborderColor:h,submitborderHoverColor:v,submitborderStyle:_,UAGHideDesktop:T,UAGHideTab:C,UAGHideMob:S,variationSelected:k,overallAlignment:w,labelAlignment:P},setAttributes:x,clientId:A,name:G,deviceType:M}=e,{variations:R,hasInnerBlocks:U,defaultVariation:E}=Object(n.useSelect)(e=>{const{getBlockVariations:t,getDefaultBlockVariation:a}=e("core/blocks");return{hasInnerBlocks:e("core/block-editor").getBlocks(A).length>0,defaultVariation:void 0===a?null:a(G),variations:void 0===t?null:t(G)}});Object(B.useLayoutEffect)(()=>($h.use(),()=>{$h.unuse()}),[]),Object(B.useEffect)(()=>{null===P&&x({labelAlignment:w})},[]),Object(B.useEffect)(()=>{!k&&U&&x({variationSelected:!0})},[U]),Object(B.useEffect)(()=>{u&&void 0===c&&x({toggleColor:u});const e=A;if(window.addEventListener("load",L(e)),s){const e={};""===uagb_blocks_info.recaptcha_site_key_v2&&""===uagb_blocks_info.recaptcha_secret_key_v2&&l&&i&&(e.reCaptchaSiteKeyV2=l,e.reCaptchaSecretKeyV2=i),""===uagb_blocks_info.recaptcha_site_key_v3&&""===uagb_blocks_info.recaptcha_secret_key_v3&&o&&r&&(e.reCaptchaSiteKeyV3=o,e.reCaptchaSecretKeyV3=r);const t={nonce:uagb_blocks_info.uagb_ajax_nonce,value:JSON.stringify(e)};0!==Object.keys(e).length&&$l({url:uagb_blocks_info.ajax_url,action:"uagb_forms_recaptcha",data:t}).then(()=>{})}(d||m||b||g||p)&&(ue("field",{label:"inputborderWidth",value:d},{label:"inputborderRadius",value:m},{label:"inputborderColor",value:b},{label:"inputborderHoverColor",value:g},{label:"inputborderStyle",value:p},x,a),ue("checkBoxToggle",{label:"inputborderWidth",value:d},{label:"inputborderRadius",value:m},{label:"inputborderColor",value:b},{label:"inputborderHoverColor",value:g},{label:"inputborderStyle",value:p},x,a)),(y||f||h||v||_)&&ue("btn",{label:"submitborderWidth",value:y},{label:"submitborderRadius",value:f},{label:"submitborderColor",value:h},{label:"submitborderHoverColor",value:v},{label:"submitborderStyle",value:_},x,a)},[]);const O=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,formPaddingTop:r,formPaddingRight:s,formPaddingBottom:c,formPaddingLeft:u,formPaddingTopTab:p,formPaddingRightTab:d,formPaddingBottomTab:b,formPaddingLeftTab:g,formPaddingTopMob:m,formPaddingRightMob:y,formPaddingBottomMob:f,formPaddingLeftMob:h,formPaddingUnit:v,formPaddingUnitTab:_,formPaddingUnitMob:T,buttonAlign:C,buttonAlignTablet:S,buttonAlignMobile:k,submitColor:w,submitColorHover:P,submitBgType:x,submitBgHoverType:A,submitBgColor:G,submitBgColorHover:M,toggleWidthSize:R,toggleWidthSizeTablet:B,toggleWidthSizeMobile:U,btnBorderHColor:E,submitTextFontFamily:O,submitTextFontWeight:L,submitTextFontSize:H,submitTextFontSizeType:F,submitTextFontSizeTablet:j,submitTextFontSizeMobile:z,submitTextLineHeightType:D,submitTextLineHeight:N,submitTextLineHeightTablet:I,submitTextLineHeightMobile:V,labelFontFamily:W,labelFontWeight:q,labelFontSize:Z,labelFontSizeType:$,labelFontSizeTablet:Y,labelFontSizeMobile:K,labelLineHeightType:J,labelLineHeight:X,labelLineHeightTablet:Q,labelLineHeightMobile:ee,inputFontFamily:te,inputFontWeight:le,inputFontSize:ie,inputFontSizeType:oe,inputFontSizeTablet:ne,inputFontSizeMobile:re,inputLineHeightType:se,inputLineHeight:ce,inputLineHeightTablet:ue,inputLineHeightMobile:pe,toggleColor:de,toggleActiveColor:be,toggleDotColor:ge,toggleDotActiveColor:me,checkBoxToggleBorderStyle:ye,checkBoxToggleBorderBottomWidth:fe,toggleBorderRadius:he,checkBoxToggleBorderColor:ve,checkBoxToggleBorderHColor:_e,labelColor:Te,labelHoverColor:Ce,inputColor:Se,bgColor:ke,bgHoverColor:we,bgActiveColor:Pe,inputplaceholderColor:xe,inputplaceholderHoverColor:Ae,inputplaceholderActiveColor:Ge,fieldBorderHColor:Me,fieldGap:Re,fieldGapTablet:Be,fieldGapMobile:Ue,formStyle:Ee,overallAlignment:Oe,overallAlignmentTablet:Le,overallAlignmentMobile:He,labelAlignment:Fe,labelAlignmentTablet:je,labelAlignmentMobile:ze,toggleSize:De,toggleSizeTablet:Ne,toggleSizeMobile:Ie,paddingBtnTop:Ve,paddingBtnRight:We,paddingBtnBottom:qe,paddingBtnLeft:Ze,paddingBtnTopTablet:$e,paddingBtnRightTablet:Ye,paddingBtnBottomTablet:Ke,paddingBtnLeftTablet:Je,paddingBtnTopMobile:Xe,paddingBtnRightMobile:Qe,paddingBtnBottomMobile:et,paddingBtnLeftMobile:tt,paddingBtnUnit:at,mobilePaddingBtnUnit:lt,tabletPaddingBtnUnit:it,submitTextTransform:ot,submitTextDecoration:nt,labelTransform:rt,labelDecoration:st,inputTransform:ct,inputDecoration:ut,fieldGapType:pt,paddingFieldTop:dt,paddingFieldRight:bt,paddingFieldBottom:gt,paddingFieldLeft:mt,paddingFieldTopTablet:yt,paddingFieldRightTablet:ft,paddingFieldBottomTablet:ht,paddingFieldLeftTablet:vt,paddingFieldTopMobile:_t,paddingFieldRightMobile:Tt,paddingFieldBottomMobile:Ct,paddingFieldLeftMobile:St,paddingFieldUnit:kt,paddingFieldUnitmobile:wt,paddingFieldUnitTablet:Pt,toggleSizeType:xt,submitTextFontStyle:At,labelFontStyle:Gt,inputFontStyle:Mt,labelGap:Rt,labelGapTablet:Bt,labelGapMobile:Ut,labelGapUnit:Et,displayLabels:Ot,labelLetterSpacing:Lt,labelLetterSpacingTablet:Ht,labelLetterSpacingMobile:Ft,labelLetterSpacingType:jt,inputLetterSpacing:zt,inputLetterSpacingTablet:Dt,inputLetterSpacingMobile:Nt,inputLetterSpacingType:It,submitTextLetterSpacing:Vt,submitTextLetterSpacingTablet:Wt,submitTextLetterSpacingMobile:qt,submitTextLetterSpacingType:Zt,gradientHValue:$t,gradientValue:Yt,gradientHColor1:Kt,gradientHColor2:Jt,gradientHLocation1:Xt,gradientHLocation2:Qt,gradientHType:ea,gradientHAngle:ta,selectHGradient:aa,gradientColor1:la,gradientColor2:ia,gradientLocation1:oa,gradientLocation2:na,gradientType:ra,gradientAngle:sa,selectGradient:ca,inheritFromTheme:ua}=e;let pa={},da={},ba={};const ga=us(Re,"fieldGap",i),ma=us(Rt,"labelGap",i),ya=us(De,"toggleSize",i),fa=isNaN(Ne)?ya:Ne,ha=isNaN(Ie)?fa:Ie,va=us(Ne,"toggleSizeTablet",i),_a=us(Ie,"toggleSizeMobile",i),Ta=us(R,"toggleWidthSize",i),Ca=isNaN(B)?Ta:B,Sa=isNaN(U)?Ca:U,ka=Wr(e,"field"),wa=Wr(e,"field","tablet"),Pa=Wr(e,"field","mobile"),xa=Wr(e,"checkBoxToggle"),Aa=Wr(e,"checkBoxToggle","tablet"),Ga=Wr(e,"checkBoxToggle","mobile");let Ma=ps(xa["border-top-left-radius"],"checkBoxToggleBorderTopLeftRadius",i),Ra=ps(xa["border-top-right-radius"],"checkBoxToggleBorderTopRightRadius",i),Ba=ps(xa["border-bottom-right-radius"],"checkBoxToggleBorderBottomRightRadius",i),Ua=ps(xa["border-bottom-left-radius"],"checkBoxToggleBorderBottomLeftRadius",i);Ma=isNaN(Ma)?Ma:Ma+"px",Ra=isNaN(Ra)?Ra:Ra+"px",Ba=isNaN(Ba)?Ba:Ba+"px",Ua=isNaN(Ua)?Ua:Ua+"px";const Ea=""!==Aa["border-top-left-radius"]&&"px"!==Aa["border-top-left-radius"]?Aa["border-top-left-radius"]:Ma,Oa=""!==Aa["border-top-right-radius"]&&"px"!==Aa["border-top-right-radius"]?Aa["border-top-right-radius"]:Ra,La=""!==Aa["border-bottom-right-radius"]&&"px"!==Aa["border-bottom-right-radius"]?Aa["border-bottom-right-radius"]:Ba,Ha=""!==Aa["border-bottom-left-radius"]&&"px"!==Aa["border-bottom-left-radius"]?Aa["border-bottom-left-radius"]:Ua,Fa=""!==Ga["border-top-left-radius"]&&"px"!==Ga["border-top-left-radius"]?Ga["border-top-left-radius"]:Ea,ja=""!==Ga["border-top-right-radius"]&&"px"!==Ga["border-top-right-radius"]?Ga["border-top-right-radius"]:Oa,za=""!==Ga["border-bottom-right-radius"]&&"px"!==Ga["border-bottom-right-radius"]?Ga["border-bottom-right-radius"]:La,Da=""!==Ga["border-bottom-left-radius"]&&"px"!==Ga["border-bottom-left-radius"]?Ga["border-bottom-left-radius"]:Ha;let Na=void 0!==xa["border-top-width"]?ps(xa["border-top-width"],"checkBoxToggleBorderTopWidth",i):"",Ia=void 0!==xa["border-left-width"]?ps(xa["border-left-width"],"checkBoxToggleBorderLeftWidth",i):"",Va=void 0!==xa["border-bottom-width"]?ps(xa["border-bottom-width"],"checkBoxToggleBorderBottomWidth",i):"",Wa=void 0!==xa["border-right-width"]?ps(xa["border-right-width"],"checkBoxToggleBorderBottomRight",i):"";Na=isNaN(Na)?Na:Na+"px",Wa=isNaN(Wa)?Wa:Wa+"px",Va=isNaN(Va)?Va:Va+"px",Ia=isNaN(Ia)?Ia:Ia+"px";const qa="px"!==Aa["border-top-width"]&&""!==Aa["border-top-width"]?Aa["border-top-width"]:Na,Za="px"!==Aa["border-right-width"]&&""!==Aa["border-right-width"]?Aa["border-right-width"]:Wa,$a="px"!==Aa["border-bottom-width"]&&""!==Aa["border-bottom-width"]?Aa["border-bottom-width"]:Va,Ya="px"!==Aa["border-left-width"]&&""!==Aa["border-left-width"]?Aa["border-left-width"]:Ia,Ka="px"!==Ga["border-top-width"]&&""!==Ga["border-top-width"]?Ga["border-top-width"]:qa,Ja="px"!==Ga["border-right-width"]&&""!==Ga["border-right-width"]?Ga["border-right-width"]:Za,Xa="px"!==Ga["border-bottom-width"]&&""!==Ga["border-bottom-width"]?Ga["border-bottom-width"]:$a,Qa="px"!==Ga["border-left-width"]&&""!==Ga["border-left-width"]?Ga["border-left-width"]:Ya,el=Wr(e,"btn"),tl=Wr(e,"btn","tablet"),al=Wr(e,"btn","mobile");if(pa={".uagb-forms__outer-wrap":{"padding-top":Vr(r,v),"padding-right":Vr(s,v),"padding-bottom":Vr(c,v),"padding-left":Vr(u,v)}," .uagb-forms-input":{"text-align":Oe}," .uagb-forms-input-label":{display:Ot?"block":"none","text-align":Fe}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":Vr(ga,pt)}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":Vr(Z,$),"line-height":Vr(X,J),"font-family":W,"font-style":Gt,"text-transform":rt,"text-decoration":st,"font-weight":q,color:Te,"margin-bottom":Vr(ma,Et),"letter-spacing":Vr(Lt,jt)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It)}," .uagb-forms-main-form input":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It)}," .components-input-control__container":{"background-color":ke}," .uagb-forms-main-form textarea":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It),"text-align":Oe}," .uagb-forms-main-form select":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It)}," .uagb-forms-main-form .uagb-forms-input:focus":{outline:" none !important",border:Me,"background-color":Pe+" !important"}," .uagb-forms-main-form .components-select-control__input:focus":{"background-color":Pe+" !important"}," .uagb-forms-main-form .uagb-forms-input:focus::placeholder":{color:Ge+" !important"}," .uagb-forms-main-form .uagb-forms-phone-flex":{height:`calc(${ce?Vr(ce,se):"2em"} + ${Vr(dt,kt)} + ${Vr(gt,kt)})`}," .uagb-switch":{height:`calc(${xa["border-bottom-width"]} + ${xa["border-top-width"]} + ${Vr(parseInt(20+Ta+(20+Ta)/3),"px")})`,width:`calc(${xa["border-left-width"]} + ${xa["border-right-width"]} + ${Vr(parseInt(2.5*(20+Ta)+(20+Ta)/3),"px")})`}," .uagb-switch input:checked + .uagb-slider":{"background-color":be,"border-color":_e}," .uagb-switch input:checked + .uagb-slider:before":{"background-color":me}," .uagb-switch input:focus + .uagb-slider":{"box-shadow":"0 0 1px"+be}," .uagb-slider:before":{height:Vr(20+Ta,"px"),width:Vr(20+Ta,"px"),top:Vr(parseInt((20+Ta)/6),"px"),bottom:Vr(parseInt((20+Ta)/6),"px"),left:Vr(parseInt((20+Ta)/6),"px"),"background-color":ge,"border-radius":`${Ma} ${Ra} ${Ba} ${Ua}`}," .uagb-slider.round":{"border-radius":Vr(20+Ta,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:`translateX(${Vr(parseInt(2.5*(20+Ta)-(20+Ta)),"px")})`,"background-color":me}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"background-color":me,"border-color":_e+" !important","box-shadow":"inset 0 0 0 4px "+be,"font-size":"calc("+ya+xt+" / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{"background-color":de,width:Vr(ya,xt),height:Vr(ya,xt)}," .uagb-forms-radio-wrap > label":{color:Se}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{color:me,"background-color":be,"border-color":_e+" !important","font-size":"calc("+ya+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{"background-color":de,"border-radius":Vr(he,"px"),width:Vr(ya,"px"),height:Vr(ya,"px")}," .uagb-forms-checkbox-wrap > label":{color:Se}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{color:me,"background-color":be,"border-color":_e+" !important","font-size":"calc("+ya+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{"border-radius":Vr(he,"px"),"background-color":de,width:Vr(ya,"px"),height:Vr(ya,"px")}," .uagb-forms-accept-wrap > label":{color:Se}," .uagb-forms-field-set:hover .uagb-forms-input-label":{color:Ce}," .uagb-forms-field-set:hover .uagb-forms-input":{"background-color":we,"border-color":Me}," .uagb-forms-field-set:hover .uagb-forms-input::placeholder":{color:Ae}," .uagb-forms-field-set .uagb-forms-input select":{color:Se}," .uagb-forms-phone-flex:hover .components-base-control__field .components-select-control__input":{"background-color":we}," .uagb-forms-phone-flex .components-base-control__field .components-select-control__input":{height:"auto"}},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap"]="full"!==C?{"text-align":C}:{display:"grid"},da={".uagb-forms__outer-wrap":{"padding-top":Vr(p,_),"padding-right":Vr(d,_),"padding-bottom":Vr(b,_),"padding-left":Vr(g,_)}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":Vr(Be,pt)}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"font-size":"calc("+fa+xt+" / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{width:Vr(va,xt),height:Vr(va,xt)}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+fa+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{width:Vr(va,"px"),height:Vr(va,"px")}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+fa+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{width:Vr(va,"px"),height:Vr(va,"px")}," .uagb-switch":{height:`calc(${qa} + ${$a} + ${Vr(parseInt(20+Ca+(20+Ca)/3),"px")})`,width:`calc(${Ya} + ${Za} + ${Vr(parseInt(2.5*(20+Ca)+(20+Ca)/3),"px")})`}," .uagb-switch .uagb-slider:before":{height:Vr(20+Ca,"px"),width:Vr(20+Ca,"px"),top:Vr(parseInt((20+Ca)/6),"px"),bottom:Vr(parseInt((20+Ca)/6),"px"),left:Vr(parseInt((20+Ca)/6),"px"),"background-color":ge,"border-radius":`${Ea} ${Oa} ${La} ${Ha}`}," .uagb-slider.round":{"border-radius":Vr(20+Ca,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:`translateX(${Vr(parseInt(2.5*(20+Ca)-(20+Ca)),"px")})`}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":Vr(Y,$),"line-height":Vr(Q,J),"margin-bottom":Vr(Bt,Et),"letter-spacing":Vr(Ht,jt)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":Vr(ne,oe),"line-height":Vr(ue,se),"letter-spacing":Vr(Dt,It)}," .uagb-forms-input":{"text-align":Le}," .uagb-forms-input-label":{display:Ot?"block":"none","text-align":je}," .uagb-forms-main-form textarea":{"text-align":Le}},da[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap"]="full"!==S?{"text-align":S}:{display:"grid"},ba={".uagb-forms__outer-wrap":{"padding-top":Vr(m,T),"padding-right":Vr(y,T),"padding-bottom":Vr(f,T),"padding-left":Vr(h,T)}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"font-size":"calc("+ha+xt+" / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{width:Vr(_a,xt),height:Vr(_a,xt)}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+ha+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{width:Vr(_a,"px"),height:Vr(_a,"px")}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+ha+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{width:Vr(_a,"px"),height:Vr(_a,"px")}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":Vr(Ue,pt)}," .uagb-switch":{height:`calc(${Ka} + ${Xa} + ${Vr(parseInt(20+Sa+(20+Sa)/3),"px")})`,width:`calc(${Qa} + ${Ja} + ${Vr(parseInt(2.5*(20+Sa)+(20+Sa)/3),"px")})`}," .uagb-switch .uagb-slider:before":{height:Vr(20+Sa,"px"),width:Vr(20+Sa,"px"),top:Vr(parseInt((20+Sa)/6),"px"),bottom:Vr(parseInt((20+Sa)/6),"px"),left:Vr(parseInt((20+Sa)/6),"px"),"background-color":ge,"border-radius":`${Fa} ${ja} ${za} ${Da}`}," .uagb-slider.round":{"border-radius":Vr(20+Sa,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:`translateX(${Vr(parseInt(2.5*(20+Sa)-(20+Sa)),"px")})`}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":Vr(K,$),"line-height":Vr(ee,J),"margin-bottom":Vr(Ut,Et),"letter-spacing":Vr(Ft,jt)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":Vr(re,oe),"line-height":Vr(pe,se),"letter-spacing":Vr(Nt,It)}," .uagb-forms-input":{"text-align":He}," .uagb-forms-input-label":{display:Ot?"block":"none","text-align":ze}," .uagb-forms-main-form textarea":{"text-align":He}},ba[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap"]="full"!==k?{"text-align":k}:{display:"grid"},"boxed"===Ee?(pa[" .uagb-forms-main-form .uagb-forms-input"]={...ka,"background-color":ke,color:Se,"padding-top":Vr(dt,kt),"padding-bottom":Vr(gt,kt),"padding-left":Vr(mt,kt),"padding-right":Vr(bt,kt)},da[" .uagb-forms-main-form .uagb-forms-input"]={...wa,"padding-top":Vr(yt,Pt),"padding-bottom":Vr(ht,Pt),"padding-left":Vr(vt,Pt),"padding-right":Vr(ft,Pt)},ba[" .uagb-forms-main-form .uagb-forms-input"]={...Pa,"padding-top":Vr(_t,wt),"padding-bottom":Vr(Ct,wt),"padding-left":Vr(St,wt),"padding-right":Vr(Tt,wt)},pa[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]=xa,pa[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]=xa,pa[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]=xa,pa[" .uagb-slider "]={...xa,"background-color":de},ba[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]=Ga,ba[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]=Ga,ba[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]=Ga,ba[" .uagb-slider "]=Ga,da[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]=Aa,da[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]=Aa,da[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]=Aa,da[" .uagb-slider "]=Aa):"underlined"===Ee&&(pa[".uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-input"]={"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,background:"transparent",...ka,color:Se,"padding-top":Vr(dt,kt),"padding-bottom":Vr(gt,kt),"padding-left":Vr(mt,kt),"padding-right":Vr(bt,kt)},pa[" .uagb-forms-main-form .uagb-forms-input:focus"]={"border-top-width":0,"border-right-width":0,"border-left-width":0,"box-shadow":"unset"},da[".uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-input"]={"padding-top":Vr(yt,Pt),"padding-bottom":Vr(ht,Pt),"padding-left":Vr(vt,Pt),"padding-right":Vr(ft,Pt),...wa},ba[".uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-input"]={"padding-top":Vr(_t,wt),"padding-bottom":Vr(Ct,wt),"padding-left":Vr(St,wt),"padding-right":Vr(Tt,wt),...Pa},pa[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]={"border-bottom":Vr(fe,"px")+" "+ye+" "+ve},pa[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]={"border-bottom":Vr(fe,"px")+" "+ye+" "+ve},pa[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]={"border-bottom":Vr(fe,"px")+" "+ye+" "+ve},pa[" .uagb-slider "]={"background-color":de,"border-bottom":Vr(fe,"px")+" "+ye+" "+ve}),!ua){if("color"===x)pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button.wp-block-button__link"]={"background-color":G};else if("gradient"===x){const e=qr({backgroundType:"gradient",gradientValue:Yt,gradientColor1:la,gradientColor2:ia,gradientLocation1:oa,gradientLocation2:na,gradientType:ra,gradientAngle:sa,selectGradient:ca});pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button.wp-block-button__link"]=e}else"transparent"===x&&(pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button.wp-block-button__link"]={background:"transparent"});if("color"===A)pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap:hover .uagb-forms-main-submit-button.wp-block-button__link"]={"background-color":M};else if("gradient"===A){const e=qr({backgroundType:"gradient",gradientValue:$t,gradientColor1:Kt,gradientColor2:Jt,gradientLocation1:Xt,gradientLocation2:Qt,gradientType:ea,gradientAngle:ta,selectGradient:aa});pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap:hover .uagb-forms-main-submit-button.wp-block-button__link"]=e}else"transparent"===A&&(pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap:hover .uagb-forms-main-submit-button.wp-block-button__link"]={background:"transparent"});pa[".uagb-forms__small-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"5px 10px"},pa[".uagb-forms__medium-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"12px 24px"},pa[".uagb-forms__large-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"20px 30px"},pa[".uagb-forms__extralarge-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"30px 65px"},pa[".uagb-forms__full-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={width:"100%",padding:"10px 15px"},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background)"]={color:w,"font-size":Vr(H,F),"line-height":Vr(N,D),"font-family":O,"font-style":At,"text-transform":ot,"text-decoration":nt,"font-weight":L,...el,"padding-top":Vr(Ve,at),"padding-bottom":Vr(qe,at),"padding-left":Vr(Ze,at),"padding-right":Vr(We,at)},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={color:w,"font-size":Vr(H,F),"line-height":Vr(N,D),"font-family":O,"font-style":At,"text-transform":ot,"text-decoration":nt,"font-weight":L,...el,"padding-top":Vr(Ve,at),"padding-bottom":Vr(qe,at),"padding-left":Vr(Ze,at),"padding-right":Vr(We,at),"letter-spacing":Vr(Vt,Zt)},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background):hover"]={color:P,"border-color":E},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button:hover"]={color:P,"border-color":E},da[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background)"]=tl,da[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={"padding-top":Vr($e,it),"padding-bottom":Vr(Ke,it),"padding-left":Vr(Je,it),"padding-right":Vr(Ye,it),"font-size":Vr(j,F),"line-height":Vr(I,D),"letter-spacing":Vr(Wt,Zt),...tl},ba[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background)"]=al,ba[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={"padding-top":Vr(Xe,lt),"padding-bottom":Vr(et,lt),"padding-left":Vr(tt,lt),"padding-right":Vr(Qe,lt),"font-size":Vr(z,F),"line-height":Vr(V,D),...al,"letter-spacing":Vr(qt,Zt)}}let ll="";const il=".editor-styles-wrapper .uagb-block-"+n;return ll=ae(pa,il),"tablet"!==o&&"mobile"!==o||(ll+=ae(da,""+il,!0,"tablet"),"mobile"===o&&(ll+=ae(ba,""+il,!0,"mobile"))),ll}(a,0,G,M),[a,M]);Object(B.useEffect)(()=>{ys();const e=A;window.addEventListener("load",L(e))},[M]),Object(B.useEffect)(()=>{he(e)},[T,C,S,M]);const L=Object(B.useCallback)(e=>{const t=document.querySelector("iframe[name='editor-canvas']");let a,l;var i;if(t?(a=t.contentDocument.getElementById("block-"+e),l=a.getElementsByClassName("uagb-forms__outer-wrap")):(a=document.getElementById("block-"+e),l=null===(i=a)||void 0===i?void 0:i.getElementsByClassName("uagb-forms__outer-wrap")),l&&l[0]){const e=l[0].children[0].children[0].getElementsByClassName("block-editor-block-list__layout")[0].children;for(let t=0;t]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),"message"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}},{attributes:rv,save:function(e){const{attributes:t}=e,{block_id:a,formLabel:l,submitButtonText:i,confirmationType:o,confirmationMessage:n,failedMessage:r,reCaptchaEnable:s,reCaptchaType:c,buttonSize:u}=t;if(0!==e.innerBlocks.length)return React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+a,`uagb-forms__${u}-btn`)},React.createElement("form",{className:"uagb-forms-main-form",method:"post",autoComplete:"on",name:"uagb-form-"+a},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-forms-form-hidden-data"},s&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-"+a})),s&&"v2"===c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+a}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement("button",{className:"uagb-forms-main-submit-button wp-block-button__link"},React.createElement(ge.RichText.Content,{tagName:"div",value:i.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),"message"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}},{attributes:rv,save:function(e){const{attributes:t}=e,{block_id:a,formLabel:l,submitButtonText:i,confirmationType:o,confirmationMessage:n,failedMessage:r,reCaptchaEnable:s,reCaptchaType:c,buttonSize:u}=t;return React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+a,`uagb-forms__${u}-btn`)},React.createElement("form",{className:"uagb-forms-main-form",method:"post",autoComplete:"on",name:"uagb-form-"+a},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-forms-form-hidden-data"},s&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-"+a})),s&&"v2"===c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+a}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement("button",{className:"uagb-forms-main-submit-button wp-block-button__link"},React.createElement(ge.RichText.Content,{tagName:"div",value:i.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}}];let dv={};dv=Object(F.applyFilters)("uagb/forms",ss(dv)),Object(de.registerBlockType)("uagb/forms",{...dv,title:Object(r.__)("Form","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add easily customizable forms to gather information.","ultimate-addons-for-gutenberg"),icon:se.forms,keywords:[Object(r.__)("forms","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],attributes:oa,category:uagb_blocks_info.category,variations:Jh,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form"}):React.createElement(tv,e),supports:{anchor:!0,html:!1},deprecated:pv,save:function(e){const{attributes:t}=e,{block_id:a,formLabel:l,submitButtonText:i,confirmationType:o,confirmationMessage:n,failedMessage:r,reCaptchaEnable:s,reCaptchaType:c,buttonSize:u,variationSelected:p,inheritFromTheme:d,submitButtonType:b}=t,g=d&&"secondary"===b,m=g?{borderWidth:"revert-layer"}:{},y="uagb-forms-main-submit-button "+(g?"ast-outline-button":"wp-block-button__link");if(p)return React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+a,`uagb-forms__${u}-btn`)},React.createElement("form",{className:"uagb-forms-main-form",method:"post",autoComplete:"on",name:"uagb-form-"+a},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-forms-form-hidden-data"},s&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-"+a})),s&&"v2"===c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+a}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement("button",{className:y,style:m},React.createElement(ge.RichText.Content,{tagName:"div",value:i.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}});var bv,gv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{nameRequired:l,placeholder:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,help:Object(r.__)("Duplicated name fields must be assigned distinct label names to send the data.","ultimate-addons-for-gutenberg")},React.createElement("option",{value:"off"},Object(r.__)("Off","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"name"},Object(r.__)("Full Name","ultimate-addons-for-gutenberg")),React.createElement("optgroup",{label:"Name Breakdown"},React.createElement("option",{value:"honorific-prefix"},Object(r.__)("Prefix","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"given-name"},Object(r.__)("First Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"additional-name"},Object(r.__)("Middle Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"family-name"},Object(r.__)("Last Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"honorific-suffix"},Object(r.__)("Suffix","ultimate-addons-for-gutenberg"))),React.createElement("option",{value:"username"},Object(r.__)("Username","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"nickname"},Object(r.__)("Nickname","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"organization"},Object(r.__)("Company Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"organization-title"},Object(r.__)("Job Title","ultimate-addons-for-gutenberg")),React.createElement("optgroup",{label:"Address Lines"},React.createElement("option",{value:"address-line1"},Object(r.__)("Address Line 1","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"address-line2"},Object(r.__)("Address Line 2","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"address-line3"},Object(r.__)("Address Line 3","ultimate-addons-for-gutenberg"))),React.createElement("option",{value:"country-name"},Object(r.__)("Country","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"postal-code"},Object(r.__)("Postal / ZIP Code","ultimate-addons-for-gutenberg"))),React.createElement(Ss,{label:"Placeholder",value:i,data:{value:i,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e}),placeholder:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({nameRequired:!l})}))),React.createElement(il,rl)))}),mv=a(113),yv=0,fv={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},hv={};hv.locals=mv.a.locals||{},hv.use=function(){return yv++||(bv=we()(mv.a,fv)),hv},hv.unuse=function(){yv>0&&!--yv&&(bv(),bv=null)};var vv=hv,_v=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(vv.use(),()=>{vv.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,nameRequired:i,name:o,placeholder:n}=t,s=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-name-label ${s} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("input",{type:"text",placeholder:n,required:i,className:"uagb-forms-name-input uagb-forms-input",name:l})))}),Tv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(gv,e),React.createElement(_v,e))),Cv=[{attributes:{block_id:{type:"string"},nameRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("Name","ultimate-addons-for-gutenberg")},placeholder:{type:"string",default:Object(r.__)("John Doe","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,nameRequired:a,name:l,placeholder:i}=e.attributes,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-name-label ${o} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"text",placeholder:i,required:a,className:"uagb-forms-name-input uagb-forms-input",name:t}))}}],Sv={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},nameRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("Name","ultimate-addons-for-gutenberg")},placeholder:{type:"string",default:Object(r.__)("John Doe","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"name"}},save:e=>{const{attributes:{block_id:t,nameRequired:a,name:l,placeholder:i,autocomplete:o}}=e,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-name-label ${n} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"text",placeholder:i,required:a,className:"uagb-forms-name-input uagb-forms-input",name:t,autoComplete:o}))}};let kv={};kv=Object(F.applyFilters)("uagb/forms-name",ss(kv)),Object(de.registerBlockType)("uagb/forms-name",{...kv,title:Object(r.__)("Name","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a name field in your form.","ultimate-addons-for-gutenberg"),icon:se.name,parent:["uagb/forms"],attributes:ca,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(Tv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,nameRequired:l,name:i,placeholder:o,autocomplete:n}=t,r=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-name-label ${r} uagb-forms-input-label`,id:a}),React.createElement("input",{type:"text",placeholder:o,required:l,className:"uagb-forms-name-input uagb-forms-input",name:a,autoComplete:n}))},deprecated:[Sv,Cv]});var wv,Pv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{required:l,placeholder:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("email","ultimate-addons-for-gutenberg"),value:"email"}]}),React.createElement(Ss,{label:"Placeholder",value:i,data:{value:i,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e}),placeholder:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({required:!l})}))),React.createElement(il,rl)))}),xv=a(114),Av=0,Gv={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Mv={};Mv.locals=xv.a.locals||{},Mv.use=function(){return Av++||(wv=we()(xv.a,Gv)),Mv},Mv.unuse=function(){Av>0&&!--Av&&(wv(),wv=null)};var Rv=Mv,Bv=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Rv.use(),()=>{Rv.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,name:i,required:o,placeholder:n}=t,s=o?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:i,onChange:e=>a({name:e}),className:`uagb-forms-email-label ${s} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("input",{type:"text",className:"uagb-forms-email-input uagb-forms-input",placeholder:n,required:o,name:l})))}),Uv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(Pv,e),React.createElement(Bv,e))),Ev={attributes:{block_id:{type:"string"},name:{type:"string",default:Object(r.__)("Email","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("example@mail.com","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,name:a,required:l,placeholder:i}=e.attributes,o=l?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:a,className:`uagb-forms-email-label ${o} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:i,required:l,name:t}))}},Ov={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},name:{type:"string",default:Object(r.__)("Email","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("example@mail.com","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"email"}},save:e=>{const{attributes:{block_id:t,name:a,required:l,placeholder:i,autocomplete:o}}=e,n=l?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:a,className:`uagb-forms-email-label ${n} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:i,required:l,name:t,autoComplete:o}))}};let Lv={};Lv=Object(F.applyFilters)("uagb/forms-email",ss(Lv)),Object(de.registerBlockType)("uagb/forms-email",{...Lv,title:Object(r.__)("Email","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add an email address field in your form.","ultimate-addons-for-gutenberg"),icon:se.email,parent:["uagb/forms"],attributes:ra,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(Uv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,name:l,required:i,placeholder:o,autocomplete:n}=t,r=i?"required":"";return React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-email-label ${r} uagb-forms-input-label`,id:a}),React.createElement("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:o,required:i,name:a,autoComplete:n}))},deprecated:[Ov,Ev]});var Hv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{hidden_field_value:l}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Ss,{label:Object(r.__)("Value","ultimate-addons-for-gutenberg"),value:l,data:{value:l,label:"hidden_field_value"},setAttributes:a,onChange:e=>a({hidden_field_value:e})}))),React.createElement(il,rl))))}),Fv=Object(B.memo)(e=>{const{attributes:t,isSelected:a}=e,{block_id:l,hidden_field_name:i,hidden_field_value:o}=t,n=i.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-hidden-wrap","uagb-block-"+l)},a&&React.createElement("input",{type:"text",className:"uagb-forms-hidden-input",onChange:t=>{const{setAttributes:a}=e;a({hidden_field_name:t.target.value})},value:i}),!a&&React.createElement(React.Fragment,null,React.createElement("label",{className:"uagb-forms-hidden-label uagb-form-hidden-"+n,htmlFor:n},i),React.createElement("input",{id:n,type:"hidden",className:"uagb-forms-hidden-input",value:o}))))}),jv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(Hv,e),React.createElement(Fv,e))),zv=[{attributes:sa,save(e){const{block_id:t,hidden_field_value:a}=e.attributes;return React.createElement("div",{className:Be()("uagb-forms-hidden-wrap","uagb-block-"+t)},React.createElement("input",{type:"hidden",className:"uagb-forms-hidden-input",value:a}))}}];let Dv={};Dv=Object(F.applyFilters)("uagb/forms-hidden",ss(Dv)),Object(de.registerBlockType)("uagb/forms-hidden",{...Dv,title:Object(r.__)("Hidden","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a hidden field in your form to pass data.","ultimate-addons-for-gutenberg"),icon:se.hidden,parent:["uagb/forms"],attributes:sa,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-hidden",isChildren:!0}):React.createElement(jv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,hidden_field_value:l,hidden_field_name:i}=t;return React.createElement("div",{className:Be()("uagb-forms-hidden-wrap","uagb-block-"+a)},React.createElement("input",{type:"hidden",id:"hidden",className:"uagb-forms-hidden-input",value:l,name:i}))},deprecated:zv});var Nv,Iv={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},phoneName:{type:"string",default:Object(r.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(r.__)("[0-9]{3}s?[0-9]{3}s?[0-9]{4}","ultimate-addons-for-gutenberg")},selectPhoneCode:{type:"string",default:"+44"},autocomplete:{type:"string",default:"tel-national"}},Vv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{phoneRequired:l,pattern:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("Phone","ultimate-addons-for-gutenberg"),value:"tel-national"}]}),React.createElement(Pi,{label:Object(r.__)("Pattern","ultimate-addons-for-gutenberg"),data:{value:i,label:"pattern"},setAttributes:a,options:[{label:"None",value:""},{label:"123-45-678",value:Object(r.__)("[0-9]{3}-?[0-9]{2}-?[0-9]{3}","ultimate-addons-for-gutenberg")},{label:"123-456-7890",value:Object(r.__)("[0-9]{3}-?[0-9]{3}-?[0-9]{4}","ultimate-addons-for-gutenberg")},{label:"123 456 7890",value:Object(r.__)("[0-9]{3}s?[0-9]{3}s?[0-9]{4}","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({phoneRequired:!l})}))),React.createElement(il,rl)))}),Wv=[React.createElement("option",{key:"","data-countryCode":"GB",value:"+44"},"UK (+44)"),React.createElement("option",{key:"","data-countryCode":"US",value:"+1"},"USA / Canada (+1)"),React.createElement("option",{key:"","data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),React.createElement("option",{key:"","data-countryCode":"AD",value:"+376"},"Andorra (+376)"),React.createElement("option",{key:"","data-countryCode":"AO",value:"+244"},"Angola (+244)"),React.createElement("option",{key:"","data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),React.createElement("option",{key:"","data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),React.createElement("option",{key:"","data-countryCode":"AR",value:"+54"},"Argentina (+54)"),React.createElement("option",{key:"","data-countryCode":"AM",value:"+374"},"Armenia (+374)"),React.createElement("option",{key:"","data-countryCode":"AW",value:"+297"},"Aruba (+297)"),React.createElement("option",{key:"","data-countryCode":"AU",value:"+61"},"Australia (+61)"),React.createElement("option",{key:"","data-countryCode":"AT",value:"+43"},"Austria (+43)"),React.createElement("option",{key:"","data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),React.createElement("option",{key:"","data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),React.createElement("option",{key:"","data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),React.createElement("option",{key:"","data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),React.createElement("option",{key:"","data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),React.createElement("option",{key:"","data-countryCode":"BY",value:"+375"},"Belarus (+375)"),React.createElement("option",{key:"","data-countryCode":"BE",value:"+32"},"Belgium (+32)"),React.createElement("option",{key:"","data-countryCode":"BZ",value:"+501"},"Belize (+501)"),React.createElement("option",{key:"","data-countryCode":"BJ",value:"+229"},"Benin (+229)"),React.createElement("option",{key:"","data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),React.createElement("option",{key:"","data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),React.createElement("option",{key:"","data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),React.createElement("option",{key:"","data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),React.createElement("option",{key:"","data-countryCode":"BW",value:"+267"},"Botswana (+267)"),React.createElement("option",{key:"","data-countryCode":"BR",value:"+55"},"Brazil (+55)"),React.createElement("option",{key:"","data-countryCode":"BN",value:"+673"},"Brunei (+673)"),React.createElement("option",{key:"","data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),React.createElement("option",{key:"","data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),React.createElement("option",{key:"","data-countryCode":"BI",value:"+257"},"Burundi (+257)"),React.createElement("option",{key:"","data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),React.createElement("option",{key:"","data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),React.createElement("option",{key:"","data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),React.createElement("option",{key:"","data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),React.createElement("option",{key:"","data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),React.createElement("option",{key:"","data-countryCode":"CL",value:"+56"},"Chile (+56)"),React.createElement("option",{key:"","data-countryCode":"CN",value:"+86"},"China (+86)"),React.createElement("option",{key:"","data-countryCode":"CO",value:"+57"},"Colombia (+57)"),React.createElement("option",{key:"","data-countryCode":"KM",value:"+269"},"Comoros (+269)"),React.createElement("option",{key:"","data-countryCode":"CG",value:"+242"},"Congo (+242)"),React.createElement("option",{key:"","data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),React.createElement("option",{key:"","data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),React.createElement("option",{key:"","data-countryCode":"HR",value:"+385"},"Croatia (+385)"),React.createElement("option",{key:"","data-countryCode":"CU",value:"+53"},"Cuba (+53)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),React.createElement("option",{key:"","data-countryCode":"CZ",value:"+420"},"Czech Republic (+420)"),React.createElement("option",{key:"","data-countryCode":"DK",value:"+45"},"Denmark (+45)"),React.createElement("option",{key:"","data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),React.createElement("option",{key:"","data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),React.createElement("option",{key:"","data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),React.createElement("option",{key:"","data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),React.createElement("option",{key:"","data-countryCode":"EG",value:"+20"},"Egypt (+20)"),React.createElement("option",{key:"","data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),React.createElement("option",{key:"","data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),React.createElement("option",{key:"","data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),React.createElement("option",{key:"","data-countryCode":"EE",value:"+372"},"Estonia (+372)"),React.createElement("option",{key:"","data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),React.createElement("option",{key:"","data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),React.createElement("option",{key:"","data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),React.createElement("option",{key:"","data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),React.createElement("option",{key:"","data-countryCode":"FI",value:"+358"},"Finland (+358)"),React.createElement("option",{key:"","data-countryCode":"FR",value:"+33"},"France (+33)"),React.createElement("option",{key:"","data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),React.createElement("option",{key:"","data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),React.createElement("option",{key:"","data-countryCode":"GA",value:"+241"},"Gabon (+241)"),React.createElement("option",{key:"","data-countryCode":"GM",value:"+220"},"Gambia (+220)"),React.createElement("option",{key:"","data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),React.createElement("option",{key:"","data-countryCode":"DE",value:"+49"},"Germany (+49)"),React.createElement("option",{key:"","data-countryCode":"GH",value:"+233"},"Ghana (+233)"),React.createElement("option",{key:"","data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),React.createElement("option",{key:"","data-countryCode":"GR",value:"+30"},"Greece (+30)"),React.createElement("option",{key:"","data-countryCode":"GL",value:"+299"},"Greenland (+299)"),React.createElement("option",{key:"","data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),React.createElement("option",{key:"","data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),React.createElement("option",{key:"","data-countryCode":"GU",value:"+671"},"Guam (+671)"),React.createElement("option",{key:"","data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),React.createElement("option",{key:"","data-countryCode":"GN",value:"+224"},"Guinea (+224)"),React.createElement("option",{key:"","data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),React.createElement("option",{key:"","data-countryCode":"GY",value:"+592"},"Guyana (+592)"),React.createElement("option",{key:"","data-countryCode":"HT",value:"+509"},"Haiti (+509)"),React.createElement("option",{key:"","data-countryCode":"HN",value:"+504"},"Honduras (+504)"),React.createElement("option",{key:"","data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),React.createElement("option",{key:"","data-countryCode":"HU",value:"+36"},"Hungary (+36)"),React.createElement("option",{key:"","data-countryCode":"IS",value:"+354"},"Iceland (+354)"),React.createElement("option",{key:"","data-countryCode":"IN",value:"+91"},"India (+91)"),React.createElement("option",{key:"","data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),React.createElement("option",{key:"","data-countryCode":"IR",value:"+98"},"Iran (+98)"),React.createElement("option",{key:"","data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),React.createElement("option",{key:"","data-countryCode":"IE",value:"+353"},"Ireland (+353)"),React.createElement("option",{key:"","data-countryCode":"IL",value:"+972"},"Israel (+972)"),React.createElement("option",{key:"","data-countryCode":"IT",value:"+39"},"Italy (+39)"),React.createElement("option",{key:"","data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),React.createElement("option",{key:"","data-countryCode":"JP",value:"+81"},"Japan (+81)"),React.createElement("option",{key:"","data-countryCode":"JO",value:"+962"},"Jordan (+962)"),React.createElement("option",{key:"","data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),React.createElement("option",{key:"","data-countryCode":"KE",value:"+254"},"Kenya (+254)"),React.createElement("option",{key:"","data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),React.createElement("option",{key:"","data-countryCode":"KP",value:"+850"},"Korea North (+850)"),React.createElement("option",{key:"","data-countryCode":"KR",value:"+82"},"Korea South (+82)"),React.createElement("option",{key:"","data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),React.createElement("option",{key:"","data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),React.createElement("option",{key:"","data-countryCode":"LA",value:"+856"},"Laos (+856)"),React.createElement("option",{key:"","data-countryCode":"LV",value:"+371"},"Latvia (+371)"),React.createElement("option",{key:"","data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),React.createElement("option",{key:"","data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),React.createElement("option",{key:"","data-countryCode":"LR",value:"+231"},"Liberia (+231)"),React.createElement("option",{key:"","data-countryCode":"LY",value:"+218"},"Libya (+218)"),React.createElement("option",{key:"","data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),React.createElement("option",{key:"","data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),React.createElement("option",{key:"","data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),React.createElement("option",{key:"","data-countryCode":"MO",value:"+853"},"Macao (+853)"),React.createElement("option",{key:"","data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),React.createElement("option",{key:"","data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),React.createElement("option",{key:"","data-countryCode":"MW",value:"+265"},"Malawi (+265)"),React.createElement("option",{key:"","data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),React.createElement("option",{key:"","data-countryCode":"MV",value:"+960"},"Maldives (+960)"),React.createElement("option",{key:"","data-countryCode":"ML",value:"+223"},"Mali (+223)"),React.createElement("option",{key:"","data-countryCode":"MT",value:"+356"},"Malta (+356)"),React.createElement("option",{key:"","data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),React.createElement("option",{key:"","data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),React.createElement("option",{key:"","data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),React.createElement("option",{key:"","data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),React.createElement("option",{key:"","data-countryCode":"MX",value:"+52"},"Mexico (+52)"),React.createElement("option",{key:"","data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),React.createElement("option",{key:"","data-countryCode":"MD",value:"+373"},"Moldova (+373)"),React.createElement("option",{key:"","data-countryCode":"MC",value:"+377"},"Monaco (+377)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),React.createElement("option",{key:"","data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),React.createElement("option",{key:"","data-countryCode":"MA",value:"+212"},"Morocco (+212)"),React.createElement("option",{key:"","data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),React.createElement("option",{key:"","data-countryCode":"NA",value:"+264"},"Namibia (+264)"),React.createElement("option",{key:"","data-countryCode":"NR",value:"+674"},"Nauru (+674)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+977"},"Nepal (+977)"),React.createElement("option",{key:"","data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),React.createElement("option",{key:"","data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),React.createElement("option",{key:"","data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),React.createElement("option",{key:"","data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),React.createElement("option",{key:"","data-countryCode":"NE",value:"+227"},"Niger (+227)"),React.createElement("option",{key:"","data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),React.createElement("option",{key:"","data-countryCode":"NU",value:"+683"},"Niue (+683)"),React.createElement("option",{key:"","data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),React.createElement("option",{key:"","data-countryCode":"NO",value:"+47"},"Norway (+47)"),React.createElement("option",{key:"","data-countryCode":"OM",value:"+968"},"Oman (+968)"),React.createElement("option",{key:"","data-countryCode":"PW",value:"+680"},"Palau (+680)"),React.createElement("option",{key:"","data-countryCode":"PA",value:"+507"},"Panama (+507)"),React.createElement("option",{key:"","data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),React.createElement("option",{key:"","data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),React.createElement("option",{key:"","data-countryCode":"PE",value:"+51"},"Peru (+51)"),React.createElement("option",{key:"","data-countryCode":"PH",value:"+63"},"Philippines (+63)"),React.createElement("option",{key:"","data-countryCode":"PL",value:"+48"},"Poland (+48)"),React.createElement("option",{key:"","data-countryCode":"PT",value:"+351"},"Portugal (+351)"),React.createElement("option",{key:"","data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),React.createElement("option",{key:"","data-countryCode":"QA",value:"+974"},"Qatar (+974)"),React.createElement("option",{key:"","data-countryCode":"RE",value:"+262"},"Reunion (+262)"),React.createElement("option",{key:"","data-countryCode":"RO",value:"+40"},"Romania (+40)"),React.createElement("option",{key:"","data-countryCode":"RU",value:"+7"},"Russia (+7)"),React.createElement("option",{key:"","data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),React.createElement("option",{key:"","data-countryCode":"SM",value:"+378"},"San Marino (+378)"),React.createElement("option",{key:"","data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),React.createElement("option",{key:"","data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),React.createElement("option",{key:"","data-countryCode":"SN",value:"+221"},"Senegal (+221)"),React.createElement("option",{key:"","data-countryCode":"CS",value:"+381"},"Serbia (+381)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),React.createElement("option",{key:"","data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),React.createElement("option",{key:"","data-countryCode":"SG",value:"+65"},"Singapore (+65)"),React.createElement("option",{key:"","data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),React.createElement("option",{key:"","data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),React.createElement("option",{key:"","data-countryCode":"SO",value:"+252"},"Somalia (+252)"),React.createElement("option",{key:"","data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),React.createElement("option",{key:"","data-countryCode":"ES",value:"+34"},"Spain (+34)"),React.createElement("option",{key:"","data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),React.createElement("option",{key:"","data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),React.createElement("option",{key:"","data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),React.createElement("option",{key:"","data-countryCode":"SD",value:"+249"},"Sudan (+249)"),React.createElement("option",{key:"","data-countryCode":"SR",value:"+597"},"Suriname (+597)"),React.createElement("option",{key:"","data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),React.createElement("option",{key:"","data-countryCode":"SE",value:"+46"},"Sweden (+46)"),React.createElement("option",{key:"","data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+963"},"Syria (+963)"),React.createElement("option",{key:"","data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),React.createElement("option",{key:"","data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),React.createElement("option",{key:"","data-countryCode":"TH",value:"+66"},"Thailand (+66)"),React.createElement("option",{key:"","data-countryCode":"TG",value:"+228"},"Togo (+228)"),React.createElement("option",{key:"","data-countryCode":"TO",value:"+676"},"Tonga (+676)"),React.createElement("option",{key:"","data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),React.createElement("option",{key:"","data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),React.createElement("option",{key:"","data-countryCode":"TR",value:"+90"},"Turkey (+90)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),React.createElement("option",{key:"","data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),React.createElement("option",{key:"","data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),React.createElement("option",{key:"","data-countryCode":"UG",value:"+256"},"Uganda (+256)"),React.createElement("option",{key:"","data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),React.createElement("option",{key:"","data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),React.createElement("option",{key:"","data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),React.createElement("option",{key:"","data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),React.createElement("option",{key:"","data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),React.createElement("option",{key:"","data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),React.createElement("option",{key:"","data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),React.createElement("option",{key:"","data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),React.createElement("option",{key:"","data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),React.createElement("option",{key:"","data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),React.createElement("option",{key:"","data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),React.createElement("option",{key:"","data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),React.createElement("option",{key:"","data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")],qv=a(115),Zv=0,$v={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Yv={};Yv.locals=qv.a.locals||{},Yv.use=function(){return Zv++||(Nv=we()(qv.a,$v)),Yv},Yv.unuse=function(){Zv>0&&!--Zv&&(Nv(),Nv=null)};var Kv=Yv,Jv=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Kv.use(),()=>{Kv.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,phoneRequired:i,phoneName:o,pattern:n,selectPhoneCode:s,autocomplete:c}=t;Object(B.useLayoutEffect)(()=>{"+42"===s&&a({selectPhoneCode:"+420"})},[]);let u="",p="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===n?p=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===n?p=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===n&&(p=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg")),u=""!==n?React.createElement("input",{type:"tel",placeholder:p,pattern:n,required:i,className:"uagb-forms-phone-input uagb-forms-input",name:l,autoComplete:c}):React.createElement("input",{type:"tel",required:i,className:"uagb-forms-phone-input uagb-forms-input",name:l,autoComplete:c});const d=[];Wv.map((e,t)=>d.push({value:e.props.value,label:e.props.children}));const b=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Phone Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({phoneName:e}),className:`uagb-forms-phone-label ${b} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement(Le.SelectControl,{className:"uagb-forms-input uagb-form-phone-country uagb-form-phone-country-editor",options:d,value:s,onChange:e=>a({selectPhoneCode:e})}),u)))}),Xv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(Vv,e),React.createElement(Jv,e))),Qv=[React.createElement("option",{"data-countryCode":"GB",value:"+44"},"UK (+44)"),React.createElement("option",{"data-countryCode":"US",value:"+1"},"USA (+1)"),React.createElement("option",{"data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),React.createElement("option",{"data-countryCode":"AD",value:"+376"},"Andorra (+376)"),React.createElement("option",{"data-countryCode":"AO",value:"+244"},"Angola (+244)"),React.createElement("option",{"data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),React.createElement("option",{"data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),React.createElement("option",{"data-countryCode":"AR",value:"+54"},"Argentina (+54)"),React.createElement("option",{"data-countryCode":"AM",value:"+374"},"Armenia (+374)"),React.createElement("option",{"data-countryCode":"AW",value:"+297"},"Aruba (+297)"),React.createElement("option",{"data-countryCode":"AU",value:"+61"},"Australia (+61)"),React.createElement("option",{"data-countryCode":"AT",value:"+43"},"Austria (+43)"),React.createElement("option",{"data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),React.createElement("option",{"data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),React.createElement("option",{"data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),React.createElement("option",{"data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),React.createElement("option",{"data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),React.createElement("option",{"data-countryCode":"BY",value:"+375"},"Belarus (+375)"),React.createElement("option",{"data-countryCode":"BE",value:"+32"},"Belgium (+32)"),React.createElement("option",{"data-countryCode":"BZ",value:"+501"},"Belize (+501)"),React.createElement("option",{"data-countryCode":"BJ",value:"+229"},"Benin (+229)"),React.createElement("option",{"data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),React.createElement("option",{"data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),React.createElement("option",{"data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),React.createElement("option",{"data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),React.createElement("option",{"data-countryCode":"BW",value:"+267"},"Botswana (+267)"),React.createElement("option",{"data-countryCode":"BR",value:"+55"},"Brazil (+55)"),React.createElement("option",{"data-countryCode":"BN",value:"+673"},"Brunei (+673)"),React.createElement("option",{"data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),React.createElement("option",{"data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),React.createElement("option",{"data-countryCode":"BI",value:"+257"},"Burundi (+257)"),React.createElement("option",{"data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),React.createElement("option",{"data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),React.createElement("option",{"data-countryCode":"CA",value:"+1"},"Canada (+1)"),React.createElement("option",{"data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),React.createElement("option",{"data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),React.createElement("option",{"data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),React.createElement("option",{"data-countryCode":"CL",value:"+56"},"Chile (+56)"),React.createElement("option",{"data-countryCode":"CN",value:"+86"},"China (+86)"),React.createElement("option",{"data-countryCode":"CO",value:"+57"},"Colombia (+57)"),React.createElement("option",{"data-countryCode":"KM",value:"+269"},"Comoros (+269)"),React.createElement("option",{"data-countryCode":"CG",value:"+242"},"Congo (+242)"),React.createElement("option",{"data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),React.createElement("option",{"data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),React.createElement("option",{"data-countryCode":"HR",value:"+385"},"Croatia (+385)"),React.createElement("option",{"data-countryCode":"CU",value:"+53"},"Cuba (+53)"),React.createElement("option",{"data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),React.createElement("option",{"data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),React.createElement("option",{"data-countryCode":"CZ",value:"+42"},"Czech Republic (+42)"),React.createElement("option",{"data-countryCode":"DK",value:"+45"},"Denmark (+45)"),React.createElement("option",{"data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),React.createElement("option",{"data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),React.createElement("option",{"data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),React.createElement("option",{"data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),React.createElement("option",{"data-countryCode":"EG",value:"+20"},"Egypt (+20)"),React.createElement("option",{"data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),React.createElement("option",{"data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),React.createElement("option",{"data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),React.createElement("option",{"data-countryCode":"EE",value:"+372"},"Estonia (+372)"),React.createElement("option",{"data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),React.createElement("option",{"data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),React.createElement("option",{"data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),React.createElement("option",{"data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),React.createElement("option",{"data-countryCode":"FI",value:"+358"},"Finland (+358)"),React.createElement("option",{"data-countryCode":"FR",value:"+33"},"France (+33)"),React.createElement("option",{"data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),React.createElement("option",{"data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),React.createElement("option",{"data-countryCode":"GA",value:"+241"},"Gabon (+241)"),React.createElement("option",{"data-countryCode":"GM",value:"+220"},"Gambia (+220)"),React.createElement("option",{"data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),React.createElement("option",{"data-countryCode":"DE",value:"+49"},"Germany (+49)"),React.createElement("option",{"data-countryCode":"GH",value:"+233"},"Ghana (+233)"),React.createElement("option",{"data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),React.createElement("option",{"data-countryCode":"GR",value:"+30"},"Greece (+30)"),React.createElement("option",{"data-countryCode":"GL",value:"+299"},"Greenland (+299)"),React.createElement("option",{"data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),React.createElement("option",{"data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),React.createElement("option",{"data-countryCode":"GU",value:"+671"},"Guam (+671)"),React.createElement("option",{"data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),React.createElement("option",{"data-countryCode":"GN",value:"+224"},"Guinea (+224)"),React.createElement("option",{"data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),React.createElement("option",{"data-countryCode":"GY",value:"+592"},"Guyana (+592)"),React.createElement("option",{"data-countryCode":"HT",value:"+509"},"Haiti (+509)"),React.createElement("option",{"data-countryCode":"HN",value:"+504"},"Honduras (+504)"),React.createElement("option",{"data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),React.createElement("option",{"data-countryCode":"HU",value:"+36"},"Hungary (+36)"),React.createElement("option",{"data-countryCode":"IS",value:"+354"},"Iceland (+354)"),React.createElement("option",{"data-countryCode":"IN",value:"+91"},"India (+91)"),React.createElement("option",{"data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),React.createElement("option",{"data-countryCode":"IR",value:"+98"},"Iran (+98)"),React.createElement("option",{"data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),React.createElement("option",{"data-countryCode":"IE",value:"+353"},"Ireland (+353)"),React.createElement("option",{"data-countryCode":"IL",value:"+972"},"Israel (+972)"),React.createElement("option",{"data-countryCode":"IT",value:"+39"},"Italy (+39)"),React.createElement("option",{"data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),React.createElement("option",{"data-countryCode":"JP",value:"+81"},"Japan (+81)"),React.createElement("option",{"data-countryCode":"JO",value:"+962"},"Jordan (+962)"),React.createElement("option",{"data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),React.createElement("option",{"data-countryCode":"KE",value:"+254"},"Kenya (+254)"),React.createElement("option",{"data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),React.createElement("option",{"data-countryCode":"KP",value:"+850"},"Korea North (+850)"),React.createElement("option",{"data-countryCode":"KR",value:"+82"},"Korea South (+82)"),React.createElement("option",{"data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),React.createElement("option",{"data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),React.createElement("option",{"data-countryCode":"LA",value:"+856"},"Laos (+856)"),React.createElement("option",{"data-countryCode":"LV",value:"+371"},"Latvia (+371)"),React.createElement("option",{"data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),React.createElement("option",{"data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),React.createElement("option",{"data-countryCode":"LR",value:"+231"},"Liberia (+231)"),React.createElement("option",{"data-countryCode":"LY",value:"+218"},"Libya (+218)"),React.createElement("option",{"data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),React.createElement("option",{"data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),React.createElement("option",{"data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),React.createElement("option",{"data-countryCode":"MO",value:"+853"},"Macao (+853)"),React.createElement("option",{"data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),React.createElement("option",{"data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),React.createElement("option",{"data-countryCode":"MW",value:"+265"},"Malawi (+265)"),React.createElement("option",{"data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),React.createElement("option",{"data-countryCode":"MV",value:"+960"},"Maldives (+960)"),React.createElement("option",{"data-countryCode":"ML",value:"+223"},"Mali (+223)"),React.createElement("option",{"data-countryCode":"MT",value:"+356"},"Malta (+356)"),React.createElement("option",{"data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),React.createElement("option",{"data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),React.createElement("option",{"data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),React.createElement("option",{"data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),React.createElement("option",{"data-countryCode":"MX",value:"+52"},"Mexico (+52)"),React.createElement("option",{"data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),React.createElement("option",{"data-countryCode":"MD",value:"+373"},"Moldova (+373)"),React.createElement("option",{"data-countryCode":"MC",value:"+377"},"Monaco (+377)"),React.createElement("option",{"data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),React.createElement("option",{"data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),React.createElement("option",{"data-countryCode":"MA",value:"+212"},"Morocco (+212)"),React.createElement("option",{"data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),React.createElement("option",{"data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),React.createElement("option",{"data-countryCode":"NA",value:"+264"},"Namibia (+264)"),React.createElement("option",{"data-countryCode":"NR",value:"+674"},"Nauru (+674)"),React.createElement("option",{"data-countryCode":"NP",value:"+977"},"Nepal (+977)"),React.createElement("option",{"data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),React.createElement("option",{"data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),React.createElement("option",{"data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),React.createElement("option",{"data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),React.createElement("option",{"data-countryCode":"NE",value:"+227"},"Niger (+227)"),React.createElement("option",{"data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),React.createElement("option",{"data-countryCode":"NU",value:"+683"},"Niue (+683)"),React.createElement("option",{"data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),React.createElement("option",{"data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),React.createElement("option",{"data-countryCode":"NO",value:"+47"},"Norway (+47)"),React.createElement("option",{"data-countryCode":"OM",value:"+968"},"Oman (+968)"),React.createElement("option",{"data-countryCode":"PW",value:"+680"},"Palau (+680)"),React.createElement("option",{"data-countryCode":"PA",value:"+507"},"Panama (+507)"),React.createElement("option",{"data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),React.createElement("option",{"data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),React.createElement("option",{"data-countryCode":"PE",value:"+51"},"Peru (+51)"),React.createElement("option",{"data-countryCode":"PH",value:"+63"},"Philippines (+63)"),React.createElement("option",{"data-countryCode":"PL",value:"+48"},"Poland (+48)"),React.createElement("option",{"data-countryCode":"PT",value:"+351"},"Portugal (+351)"),React.createElement("option",{"data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),React.createElement("option",{"data-countryCode":"QA",value:"+974"},"Qatar (+974)"),React.createElement("option",{"data-countryCode":"RE",value:"+262"},"Reunion (+262)"),React.createElement("option",{"data-countryCode":"RO",value:"+40"},"Romania (+40)"),React.createElement("option",{"data-countryCode":"RU",value:"+7"},"Russia (+7)"),React.createElement("option",{"data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),React.createElement("option",{"data-countryCode":"SM",value:"+378"},"San Marino (+378)"),React.createElement("option",{"data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),React.createElement("option",{"data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),React.createElement("option",{"data-countryCode":"SN",value:"+221"},"Senegal (+221)"),React.createElement("option",{"data-countryCode":"CS",value:"+381"},"Serbia (+381)"),React.createElement("option",{"data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),React.createElement("option",{"data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),React.createElement("option",{"data-countryCode":"SG",value:"+65"},"Singapore (+65)"),React.createElement("option",{"data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),React.createElement("option",{"data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),React.createElement("option",{"data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),React.createElement("option",{"data-countryCode":"SO",value:"+252"},"Somalia (+252)"),React.createElement("option",{"data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),React.createElement("option",{"data-countryCode":"ES",value:"+34"},"Spain (+34)"),React.createElement("option",{"data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),React.createElement("option",{"data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),React.createElement("option",{"data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),React.createElement("option",{"data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),React.createElement("option",{"data-countryCode":"SD",value:"+249"},"Sudan (+249)"),React.createElement("option",{"data-countryCode":"SR",value:"+597"},"Suriname (+597)"),React.createElement("option",{"data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),React.createElement("option",{"data-countryCode":"SE",value:"+46"},"Sweden (+46)"),React.createElement("option",{"data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),React.createElement("option",{"data-countryCode":"SI",value:"+963"},"Syria (+963)"),React.createElement("option",{"data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),React.createElement("option",{"data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),React.createElement("option",{"data-countryCode":"TH",value:"+66"},"Thailand (+66)"),React.createElement("option",{"data-countryCode":"TG",value:"+228"},"Togo (+228)"),React.createElement("option",{"data-countryCode":"TO",value:"+676"},"Tonga (+676)"),React.createElement("option",{"data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),React.createElement("option",{"data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),React.createElement("option",{"data-countryCode":"TR",value:"+90"},"Turkey (+90)"),React.createElement("option",{"data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),React.createElement("option",{"data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),React.createElement("option",{"data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),React.createElement("option",{"data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),React.createElement("option",{"data-countryCode":"UG",value:"+256"},"Uganda (+256)"),React.createElement("option",{"data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),React.createElement("option",{"data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),React.createElement("option",{"data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),React.createElement("option",{"data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),React.createElement("option",{"data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),React.createElement("option",{"data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),React.createElement("option",{"data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),React.createElement("option",{"data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),React.createElement("option",{"data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),React.createElement("option",{"data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),React.createElement("option",{"data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),React.createElement("option",{"data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),React.createElement("option",{"data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),React.createElement("option",{"data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),React.createElement("option",{"data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")],e_=[{attributes:{block_id:{type:"string"},phoneName:{type:"string",default:Object(r.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(r.__)("[0-9]{3}-[0-9]{3}-[0-9]{4}","ultimate-addons-for-gutenberg")},selectPhoneCode:{type:"string",default:"+44"},autocomplete:{type:"string",default:"tel-national"}},save(e){const{block_id:t,phoneRequired:a,phoneName:l,pattern:i}=e.attributes;let o="";"[0-9]{3}-[0-9]{2}-[0-9]{3}"===i?o=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-[0-9]{3}-[0-9]{4}"===i&&(o=Object(r.__)("123-456-6789","ultimate-addons-for-gutenberg"));let n="";n=""!==i?React.createElement("input",{type:"tel",placeholder:o,pattern:i,required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]"}):React.createElement("input",{type:"tel",required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]"});const s=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-phone-label ${s} uagb-forms-input-label`,id:t}),React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+t,name:l+"[]"},Qv.map((e,t)=>React.createElement("option",{value:e.props.value,key:t},e.props.children))),n)}}],t_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},phoneName:{type:"string",default:Object(r.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(r.__)("[0-9]{3}s?[0-9]{3}s?[0-9]{4}","ultimate-addons-for-gutenberg")},selectPhoneCode:{type:"string",default:"+44"},autocomplete:{type:"string",default:"tel-national"}},save(e){const{attributes:{block_id:t,phoneRequired:a,phoneName:l,pattern:i,selectPhoneCode:o,autocomplete:n}}=e;let s="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===i?s=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===i?s=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===i&&(s=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg"));let c="";c=""!==i?React.createElement("input",{type:"tel",placeholder:s,pattern:i,required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n}):React.createElement("input",{type:"tel",required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n});const u=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-phone-label ${u} uagb-forms-input-label`,id:t}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+t,name:l+"[]"},Wv.map((e,t)=>React.createElement("option",{value:e.props.value,key:t,selected:e.props.value===o},e.props.children))),c))}}],a_=[React.createElement("option",{key:"","data-countryCode":"GB",value:"+44"},"UK (+44)"),React.createElement("option",{key:"","data-countryCode":"US",value:"+1"},"USA / Canada (+1)"),React.createElement("option",{key:"","data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),React.createElement("option",{key:"","data-countryCode":"AD",value:"+376"},"Andorra (+376)"),React.createElement("option",{key:"","data-countryCode":"AO",value:"+244"},"Angola (+244)"),React.createElement("option",{key:"","data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),React.createElement("option",{key:"","data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),React.createElement("option",{key:"","data-countryCode":"AR",value:"+54"},"Argentina (+54)"),React.createElement("option",{key:"","data-countryCode":"AM",value:"+374"},"Armenia (+374)"),React.createElement("option",{key:"","data-countryCode":"AW",value:"+297"},"Aruba (+297)"),React.createElement("option",{key:"","data-countryCode":"AU",value:"+61"},"Australia (+61)"),React.createElement("option",{key:"","data-countryCode":"AT",value:"+43"},"Austria (+43)"),React.createElement("option",{key:"","data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),React.createElement("option",{key:"","data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),React.createElement("option",{key:"","data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),React.createElement("option",{key:"","data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),React.createElement("option",{key:"","data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),React.createElement("option",{key:"","data-countryCode":"BY",value:"+375"},"Belarus (+375)"),React.createElement("option",{key:"","data-countryCode":"BE",value:"+32"},"Belgium (+32)"),React.createElement("option",{key:"","data-countryCode":"BZ",value:"+501"},"Belize (+501)"),React.createElement("option",{key:"","data-countryCode":"BJ",value:"+229"},"Benin (+229)"),React.createElement("option",{key:"","data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),React.createElement("option",{key:"","data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),React.createElement("option",{key:"","data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),React.createElement("option",{key:"","data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),React.createElement("option",{key:"","data-countryCode":"BW",value:"+267"},"Botswana (+267)"),React.createElement("option",{key:"","data-countryCode":"BR",value:"+55"},"Brazil (+55)"),React.createElement("option",{key:"","data-countryCode":"BN",value:"+673"},"Brunei (+673)"),React.createElement("option",{key:"","data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),React.createElement("option",{key:"","data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),React.createElement("option",{key:"","data-countryCode":"BI",value:"+257"},"Burundi (+257)"),React.createElement("option",{key:"","data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),React.createElement("option",{key:"","data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),React.createElement("option",{key:"","data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),React.createElement("option",{key:"","data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),React.createElement("option",{key:"","data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),React.createElement("option",{key:"","data-countryCode":"CL",value:"+56"},"Chile (+56)"),React.createElement("option",{key:"","data-countryCode":"CN",value:"+86"},"China (+86)"),React.createElement("option",{key:"","data-countryCode":"CO",value:"+57"},"Colombia (+57)"),React.createElement("option",{key:"","data-countryCode":"KM",value:"+269"},"Comoros (+269)"),React.createElement("option",{key:"","data-countryCode":"CG",value:"+242"},"Congo (+242)"),React.createElement("option",{key:"","data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),React.createElement("option",{key:"","data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),React.createElement("option",{key:"","data-countryCode":"HR",value:"+385"},"Croatia (+385)"),React.createElement("option",{key:"","data-countryCode":"CU",value:"+53"},"Cuba (+53)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),React.createElement("option",{key:"","data-countryCode":"CZ",value:"+42"},"Czech Republic (+42)"),React.createElement("option",{key:"","data-countryCode":"DK",value:"+45"},"Denmark (+45)"),React.createElement("option",{key:"","data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),React.createElement("option",{key:"","data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),React.createElement("option",{key:"","data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),React.createElement("option",{key:"","data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),React.createElement("option",{key:"","data-countryCode":"EG",value:"+20"},"Egypt (+20)"),React.createElement("option",{key:"","data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),React.createElement("option",{key:"","data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),React.createElement("option",{key:"","data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),React.createElement("option",{key:"","data-countryCode":"EE",value:"+372"},"Estonia (+372)"),React.createElement("option",{key:"","data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),React.createElement("option",{key:"","data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),React.createElement("option",{key:"","data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),React.createElement("option",{key:"","data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),React.createElement("option",{key:"","data-countryCode":"FI",value:"+358"},"Finland (+358)"),React.createElement("option",{key:"","data-countryCode":"FR",value:"+33"},"France (+33)"),React.createElement("option",{key:"","data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),React.createElement("option",{key:"","data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),React.createElement("option",{key:"","data-countryCode":"GA",value:"+241"},"Gabon (+241)"),React.createElement("option",{key:"","data-countryCode":"GM",value:"+220"},"Gambia (+220)"),React.createElement("option",{key:"","data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),React.createElement("option",{key:"","data-countryCode":"DE",value:"+49"},"Germany (+49)"),React.createElement("option",{key:"","data-countryCode":"GH",value:"+233"},"Ghana (+233)"),React.createElement("option",{key:"","data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),React.createElement("option",{key:"","data-countryCode":"GR",value:"+30"},"Greece (+30)"),React.createElement("option",{key:"","data-countryCode":"GL",value:"+299"},"Greenland (+299)"),React.createElement("option",{key:"","data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),React.createElement("option",{key:"","data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),React.createElement("option",{key:"","data-countryCode":"GU",value:"+671"},"Guam (+671)"),React.createElement("option",{key:"","data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),React.createElement("option",{key:"","data-countryCode":"GN",value:"+224"},"Guinea (+224)"),React.createElement("option",{key:"","data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),React.createElement("option",{key:"","data-countryCode":"GY",value:"+592"},"Guyana (+592)"),React.createElement("option",{key:"","data-countryCode":"HT",value:"+509"},"Haiti (+509)"),React.createElement("option",{key:"","data-countryCode":"HN",value:"+504"},"Honduras (+504)"),React.createElement("option",{key:"","data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),React.createElement("option",{key:"","data-countryCode":"HU",value:"+36"},"Hungary (+36)"),React.createElement("option",{key:"","data-countryCode":"IS",value:"+354"},"Iceland (+354)"),React.createElement("option",{key:"","data-countryCode":"IN",value:"+91"},"India (+91)"),React.createElement("option",{key:"","data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),React.createElement("option",{key:"","data-countryCode":"IR",value:"+98"},"Iran (+98)"),React.createElement("option",{key:"","data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),React.createElement("option",{key:"","data-countryCode":"IE",value:"+353"},"Ireland (+353)"),React.createElement("option",{key:"","data-countryCode":"IL",value:"+972"},"Israel (+972)"),React.createElement("option",{key:"","data-countryCode":"IT",value:"+39"},"Italy (+39)"),React.createElement("option",{key:"","data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),React.createElement("option",{key:"","data-countryCode":"JP",value:"+81"},"Japan (+81)"),React.createElement("option",{key:"","data-countryCode":"JO",value:"+962"},"Jordan (+962)"),React.createElement("option",{key:"","data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),React.createElement("option",{key:"","data-countryCode":"KE",value:"+254"},"Kenya (+254)"),React.createElement("option",{key:"","data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),React.createElement("option",{key:"","data-countryCode":"KP",value:"+850"},"Korea North (+850)"),React.createElement("option",{key:"","data-countryCode":"KR",value:"+82"},"Korea South (+82)"),React.createElement("option",{key:"","data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),React.createElement("option",{key:"","data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),React.createElement("option",{key:"","data-countryCode":"LA",value:"+856"},"Laos (+856)"),React.createElement("option",{key:"","data-countryCode":"LV",value:"+371"},"Latvia (+371)"),React.createElement("option",{key:"","data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),React.createElement("option",{key:"","data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),React.createElement("option",{key:"","data-countryCode":"LR",value:"+231"},"Liberia (+231)"),React.createElement("option",{key:"","data-countryCode":"LY",value:"+218"},"Libya (+218)"),React.createElement("option",{key:"","data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),React.createElement("option",{key:"","data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),React.createElement("option",{key:"","data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),React.createElement("option",{key:"","data-countryCode":"MO",value:"+853"},"Macao (+853)"),React.createElement("option",{key:"","data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),React.createElement("option",{key:"","data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),React.createElement("option",{key:"","data-countryCode":"MW",value:"+265"},"Malawi (+265)"),React.createElement("option",{key:"","data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),React.createElement("option",{key:"","data-countryCode":"MV",value:"+960"},"Maldives (+960)"),React.createElement("option",{key:"","data-countryCode":"ML",value:"+223"},"Mali (+223)"),React.createElement("option",{key:"","data-countryCode":"MT",value:"+356"},"Malta (+356)"),React.createElement("option",{key:"","data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),React.createElement("option",{key:"","data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),React.createElement("option",{key:"","data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),React.createElement("option",{key:"","data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),React.createElement("option",{key:"","data-countryCode":"MX",value:"+52"},"Mexico (+52)"),React.createElement("option",{key:"","data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),React.createElement("option",{key:"","data-countryCode":"MD",value:"+373"},"Moldova (+373)"),React.createElement("option",{key:"","data-countryCode":"MC",value:"+377"},"Monaco (+377)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),React.createElement("option",{key:"","data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),React.createElement("option",{key:"","data-countryCode":"MA",value:"+212"},"Morocco (+212)"),React.createElement("option",{key:"","data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),React.createElement("option",{key:"","data-countryCode":"NA",value:"+264"},"Namibia (+264)"),React.createElement("option",{key:"","data-countryCode":"NR",value:"+674"},"Nauru (+674)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+977"},"Nepal (+977)"),React.createElement("option",{key:"","data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),React.createElement("option",{key:"","data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),React.createElement("option",{key:"","data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),React.createElement("option",{key:"","data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),React.createElement("option",{key:"","data-countryCode":"NE",value:"+227"},"Niger (+227)"),React.createElement("option",{key:"","data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),React.createElement("option",{key:"","data-countryCode":"NU",value:"+683"},"Niue (+683)"),React.createElement("option",{key:"","data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),React.createElement("option",{key:"","data-countryCode":"NO",value:"+47"},"Norway (+47)"),React.createElement("option",{key:"","data-countryCode":"OM",value:"+968"},"Oman (+968)"),React.createElement("option",{key:"","data-countryCode":"PW",value:"+680"},"Palau (+680)"),React.createElement("option",{key:"","data-countryCode":"PA",value:"+507"},"Panama (+507)"),React.createElement("option",{key:"","data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),React.createElement("option",{key:"","data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),React.createElement("option",{key:"","data-countryCode":"PE",value:"+51"},"Peru (+51)"),React.createElement("option",{key:"","data-countryCode":"PH",value:"+63"},"Philippines (+63)"),React.createElement("option",{key:"","data-countryCode":"PL",value:"+48"},"Poland (+48)"),React.createElement("option",{key:"","data-countryCode":"PT",value:"+351"},"Portugal (+351)"),React.createElement("option",{key:"","data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),React.createElement("option",{key:"","data-countryCode":"QA",value:"+974"},"Qatar (+974)"),React.createElement("option",{key:"","data-countryCode":"RE",value:"+262"},"Reunion (+262)"),React.createElement("option",{key:"","data-countryCode":"RO",value:"+40"},"Romania (+40)"),React.createElement("option",{key:"","data-countryCode":"RU",value:"+7"},"Russia (+7)"),React.createElement("option",{key:"","data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),React.createElement("option",{key:"","data-countryCode":"SM",value:"+378"},"San Marino (+378)"),React.createElement("option",{key:"","data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),React.createElement("option",{key:"","data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),React.createElement("option",{key:"","data-countryCode":"SN",value:"+221"},"Senegal (+221)"),React.createElement("option",{key:"","data-countryCode":"CS",value:"+381"},"Serbia (+381)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),React.createElement("option",{key:"","data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),React.createElement("option",{key:"","data-countryCode":"SG",value:"+65"},"Singapore (+65)"),React.createElement("option",{key:"","data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),React.createElement("option",{key:"","data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),React.createElement("option",{key:"","data-countryCode":"SO",value:"+252"},"Somalia (+252)"),React.createElement("option",{key:"","data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),React.createElement("option",{key:"","data-countryCode":"ES",value:"+34"},"Spain (+34)"),React.createElement("option",{key:"","data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),React.createElement("option",{key:"","data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),React.createElement("option",{key:"","data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),React.createElement("option",{key:"","data-countryCode":"SD",value:"+249"},"Sudan (+249)"),React.createElement("option",{key:"","data-countryCode":"SR",value:"+597"},"Suriname (+597)"),React.createElement("option",{key:"","data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),React.createElement("option",{key:"","data-countryCode":"SE",value:"+46"},"Sweden (+46)"),React.createElement("option",{key:"","data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+963"},"Syria (+963)"),React.createElement("option",{key:"","data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),React.createElement("option",{key:"","data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),React.createElement("option",{key:"","data-countryCode":"TH",value:"+66"},"Thailand (+66)"),React.createElement("option",{key:"","data-countryCode":"TG",value:"+228"},"Togo (+228)"),React.createElement("option",{key:"","data-countryCode":"TO",value:"+676"},"Tonga (+676)"),React.createElement("option",{key:"","data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),React.createElement("option",{key:"","data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),React.createElement("option",{key:"","data-countryCode":"TR",value:"+90"},"Turkey (+90)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),React.createElement("option",{key:"","data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),React.createElement("option",{key:"","data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),React.createElement("option",{key:"","data-countryCode":"UG",value:"+256"},"Uganda (+256)"),React.createElement("option",{key:"","data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),React.createElement("option",{key:"","data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),React.createElement("option",{key:"","data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),React.createElement("option",{key:"","data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),React.createElement("option",{key:"","data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),React.createElement("option",{key:"","data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),React.createElement("option",{key:"","data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),React.createElement("option",{key:"","data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),React.createElement("option",{key:"","data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),React.createElement("option",{key:"","data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),React.createElement("option",{key:"","data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),React.createElement("option",{key:"","data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),React.createElement("option",{key:"","data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")],l_={attributes:Iv,save(e){const{block_id:t,phoneRequired:a,phoneName:l,pattern:i,selectPhoneCode:o,autocomplete:n}=e.attributes;let s="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===i?s=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===i?s=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===i&&(s=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg"));let c="";c=""!==i?React.createElement("input",{type:"tel",placeholder:s,pattern:i,required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n}):React.createElement("input",{type:"tel",required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n});const u=a?"required":"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-phone-label ${u} uagb-forms-input-label`,id:t}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+t,name:l+"[]"},a_.map((e,t)=>React.createElement("option",{value:e.props.value,key:t,selected:e.props.value===o},e.props.children))),c))}};let i_={};i_=Object(F.applyFilters)("uagb/forms-phone",ss(i_)),Object(de.registerBlockType)("uagb/forms-phone",{...i_,title:Object(r.__)("Phone","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a phone number field in your form.","ultimate-addons-for-gutenberg"),icon:se.phone,parent:["uagb/forms"],attributes:Iv,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-phone",isChildren:!0}):React.createElement(Xv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,phoneRequired:l,phoneName:i,pattern:o,selectPhoneCode:n,autocomplete:s}=t;let c="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===o?c=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===o?c=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===o&&(c=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg"));let u="";u=""!==o?React.createElement("input",{type:"tel",placeholder:c,pattern:o,required:l,className:"uagb-forms-phone-input uagb-forms-input",name:i+"[]",autoComplete:s}):React.createElement("input",{type:"tel",required:l,className:"uagb-forms-phone-input uagb-forms-input",name:i+"[]",autoComplete:s});const p=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-phone-label ${p} uagb-forms-input-label`,id:a}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+a,name:i+"[]"},Wv.map((e,t)=>React.createElement("option",{value:e.props.value,key:t,selected:e.props.value===n},e.props.children))),u))},deprecated:[t_,e_,l_]});var o_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{textareaRequired:l,rows:i,placeholder:o,autocomplete:n}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:n,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("Address","ultimate-addons-for-gutenberg"),value:"street-address"}]}),React.createElement(Ss,{label:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg"),value:o,data:{value:o,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e})}),React.createElement(Qa,{label:Object(r.__)("Number of lines","ultimate-addons-for-gutenberg"),setAttributes:a,value:i,data:{value:i,label:"rows"},min:2,max:10,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({textareaRequired:!l})}))),React.createElement(il,rl))))}),n_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,name:l}=e,i=l.replace("uagb/",""),{block_id:o,textareaRequired:n,textareaName:s,rows:c,placeholder:u}=t,p=n?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+o)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Textarea Name","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({textareaName:e}),className:`uagb-forms-textarea-label ${p} uagb-forms-input-label`,multiline:!1,id:o}),React.createElement("textarea",{required:n,className:"uagb-forms-textarea-input uagb-forms-input",rows:us(c,"rows",i),placeholder:u,name:o})))}),r_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(o_,e),React.createElement(n_,e))),s_=[{attributes:{block_id:{type:"string"},textareaName:{type:"string",default:Object(r.__)("Message","ultimate-addons-for-gutenberg")},textareaRequired:{type:"boolean",default:!1},rows:{type:"number",default:4},placeholder:{type:"string",default:Object(r.__)("Enter your message","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,textareaRequired:a,textareaName:l,rows:i,placeholder:o}=e.attributes,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-textarea-label ${n} uagb-forms-input-label`,id:t}),React.createElement("textarea",{required:a,className:"uagb-forms-textarea-input uagb-forms-input",rows:i,placeholder:o,name:t}))}}],c_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},textareaName:{type:"string",default:Object(r.__)("Message","ultimate-addons-for-gutenberg")},textareaRequired:{type:"boolean",default:!1},rows:{type:"number",default:4},placeholder:{type:"string",default:Object(r.__)("Enter your message","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"off"}},save(e){const{attributes:{block_id:t,textareaRequired:a,textareaName:l,rows:i,placeholder:o,autocomplete:n}}=e,s=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-textarea-label ${s} uagb-forms-input-label`,id:t}),React.createElement("textarea",{required:a,className:"uagb-forms-textarea-input uagb-forms-input",rows:us(i,"rows","forms-textarea"),placeholder:o,name:t,autoComplete:n}))}}];let u_={};u_=Object(F.applyFilters)("uagb/forms-textarea",ss(u_)),Object(de.registerBlockType)("uagb/forms-textarea",{...u_,title:Object(r.__)("Textarea","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a text field in your form.","ultimate-addons-for-gutenberg"),icon:se.textarea,parent:["uagb/forms"],attributes:da,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-textarea",isChildren:!0}):React.createElement(r_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,textareaRequired:l,textareaName:i,rows:o,placeholder:n,autocomplete:r}=t,s=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-textarea-label ${s} uagb-forms-input-label`,id:a}),React.createElement("textarea",{required:l,className:"uagb-forms-textarea-input uagb-forms-input",rows:us(o,"rows","forms-textarea"),placeholder:n,name:a,autoComplete:r}))},deprecated:[c_,s_]});var p_,d_={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},checkboxName:{type:"string",default:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},b_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{checkboxRequired:l}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({checkboxRequired:!l})}))),React.createElement(il,rl)))}),g_=a(116),m_=0,y_={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},f_={};f_.locals=g_.a.locals||{},f_.use=function(){return m_++||(p_=we()(g_.a,y_)),f_},f_.unuse=function(){m_>0&&!--m_&&(p_(),p_=null)};var h_=f_,v_=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(h_.use(),()=>{h_.unuse()}),[]);const{attributes:t,setAttributes:a,isSelected:l}=e,{block_id:i,checkboxRequired:o,options:n,checkboxName:s}=t,c=o?"required":"",u=n.map((e,t)=>React.createElement("div",{key:t,className:"uagb-form-checkbox-option"},React.createElement("input",{type:"checkbox",name:"checkbox-"+i,value:e.optiontitle,id:e.optiontitle,required:o}),React.createElement("label",{htmlFor:e.optiontitle}," "),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optiontitle,onChange:e=>d({optiontitle:e.target.value,optionvalue:e.target.value},t),type:"text",value:e.optiontitle,required:o}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optionvalue,onChange:e=>d({optionvalue:e.target.value},t),type:"text",value:e.optionvalue,required:o}),React.createElement(Le.Button,{className:"uagb-form-checkbox-option-delete",icon:"trash",label:"Remove",onClick:()=>b(t)}))),p=()=>n.map(e=>{const t=e.optionvalue.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${t}-${i}`,name:s+"[]",value:t,required:o}),React.createElement("label",{htmlFor:`checkbox-${t}-${i}`},e.optiontitle),React.createElement("br",null))}),d=(e,t)=>{const l=n.map((a,l)=>(t===l&&(a={...a,...e}),a));a({options:l})},b=e=>{const t=n.map((t,a)=>(e===a&&(n.splice(e,1),t={options:n}),t));a({deleteOptions:t})};return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+i)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({checkboxName:e}),className:`uagb-forms-checkbox-label ${c} uagb-forms-input-label`,multiline:!1,id:i}),l&&React.createElement(React.Fragment,null,u,React.createElement("div",{className:"uagb-forms-checkbox-controls"},React.createElement("div",null,React.createElement(Le.Button,{isSecondary:!0,onClick:()=>{const e={optiontitle:Object(r.__)("Option Name ","ultimate-addons-for-gutenberg")+""+(n.length+1),optionvalue:Object(r.__)("Option Value ","ultimate-addons-for-gutenberg")+""+(n.length+1)},t=[...n,e];a({options:t})}},Object(r.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!l&&React.createElement(p,null)))}),T_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(b_,e),React.createElement(v_,e))),C_={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},checkboxName:{type:"string",default:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save:e=>{const{attributes:{block_id:t,checkboxRequired:a,options:l,checkboxName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-checkbox-label ${o} uagb-forms-input-label`,id:t}),l.map((e,l)=>{const o=e.optionvalue,n=o.replace(/\s+/g,"-").toLowerCase();return React.createElement(B.Fragment,{key:l},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${n}-${t}`,name:i+"[]",value:o,required:a,onInvalid:"this.setCustomValidity('Please check this box if you want to proceed.')"}),React.createElement("label",{htmlFor:`checkbox-${n}-${t}`},e.optiontitle),React.createElement("br",null))}))}},S_={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},checkboxName:{type:"string",default:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save:e=>{const{attributes:{block_id:t,checkboxRequired:a,options:l,checkboxName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-checkbox-label ${o} uagb-forms-input-label`,id:t}),l.map((e,l)=>{const o=e.optionvalue,n=o.replace(/\s+/g,"-").toLowerCase();return React.createElement(B.Fragment,{key:l},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${n}-${t}`,name:i+"[]",value:o,required:a}),React.createElement("label",{htmlFor:`checkbox-${n}-${t}`},e.optiontitle),React.createElement("br",null))}))}};let k_={};k_=Object(F.applyFilters)("uagb/forms-checkbox",ss(k_)),Object(de.registerBlockType)("uagb/forms-checkbox",{...k_,title:Object(r.__)("Checkbox","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add checkboxes to allow multiple choices from options.","ultimate-addons-for-gutenberg"),icon:se.checkbox,parent:["uagb/forms"],attributes:d_,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-checkbox",isChildren:!0}):React.createElement(T_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,checkboxRequired:l,options:i,checkboxName:o}=t,n=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:o,className:`uagb-forms-checkbox-label ${n} uagb-forms-input-label`,id:a}),i.map((e,t)=>{const i=e.optionvalue,n=i.replace(/\s+/g,"-").toLowerCase();return React.createElement(B.Fragment,{key:t},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${n}-${a}`,name:o+"[]",value:i,required:l}),React.createElement("label",{htmlFor:`checkbox-${n}-${a}`},e.optiontitle),React.createElement("br",null))}))},deprecated:[S_,C_]});var w_,P_={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},radioName:{type:"string",default:Object(r.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]},layout:{type:"string",default:"round"}},x_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{radioRequired:l,layout:i}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({radioRequired:!l})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:i,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"",label:"Square"},{value:"round",label:"Round"}],showIcons:!1}))),React.createElement(il,rl)))}),A_=a(117),G_=0,M_={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},R_={};R_.locals=A_.a.locals||{},R_.use=function(){return G_++||(w_=we()(A_.a,M_)),R_},R_.unuse=function(){G_>0&&!--G_&&(w_(),w_=null)};var B_=R_,U_=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(B_.use(),()=>{B_.unuse()}),[]);const{attributes:t,setAttributes:a,isSelected:l}=e,{block_id:i,radioRequired:o,options:n,radioName:s,layout:c}=t,u=n.map((e,t)=>React.createElement("div",{key:t,className:"uagb-form-radio-option"},React.createElement("input",{type:"radio",name:"radio-"+i,value:e.optiontitle,id:e.optiontitle,className:c}),React.createElement("label",{htmlFor:e.optiontitle}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optiontitle,onChange:e=>d({optiontitle:e.target.value,optionvalue:e.target.value},t),type:"text",value:e.optiontitle}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optionvalue,onChange:e=>d({optionvalue:e.target.value},t),type:"text",value:e.optionvalue}),React.createElement(Le.Button,{className:"uagb-form-radio-option-delete",icon:"trash",label:"Remove",onClick:()=>b(t)}))),p=()=>n.map(e=>{const t=e.optionvalue,a=t.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:a,name:i,value:t,required:o,className:c}),React.createElement("label",{htmlFor:a},e.optiontitle),React.createElement("br",null))}),d=(e,t)=>{const l=n.map((a,l)=>(t===l&&(a={...a,...e}),a));a({options:l})},b=e=>{const t=n.map((t,a)=>(e===a&&(n.splice(e,1),t={options:n}),t));a({deleteOptions:t})},g=o?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+i)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Radio Title","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({radioName:e}),className:`uagb-forms-radio-label ${g} uagb-forms-input-label`,multiline:!1,id:i}),l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-forms-radio-controls"},u,React.createElement("div",null,React.createElement(Le.Button,{isSecondary:!0,onClick:()=>{const e={optiontitle:Object(r.__)("Option Name ","ultimate-addons-for-gutenberg")+""+(n.length+1),optionvalue:Object(r.__)("Option Value ","ultimate-addons-for-gutenberg")+""+(n.length+1)};n[n.length]=e;const t=n.map(e=>e);a({options:t})}},Object(r.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!l&&React.createElement(p,null)))}),E_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(x_,e),React.createElement(U_,e))),O_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},radioName:{type:"string",default:Object(r.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]},layout:{type:"string",default:"round"}},save(e){const{block_id:t,radioRequired:a,options:l,radioName:i}=e.attributes,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-radio-label ${o} uagb-forms-input-label`,id:t}),l.map(e=>{const l=e.optionvalue,i=l.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:`radio-${i}-${t}`,name:t,value:l,required:a}),React.createElement("label",{htmlFor:`radio-${i}-${t}`},e.optiontitle),React.createElement("br",null))}))}}],L_={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},radioName:{type:"string",default:Object(r.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]},layout:{type:"string",default:"round"}},save:e=>{const{attributes:{block_id:t,radioRequired:a,options:l,radioName:i,layout:o}}=e,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-radio-label ${n} uagb-forms-input-label`,id:t}),l.map(e=>{const l=e.optionvalue,i=l.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:`radio-${i}-${t}`,name:t,value:l,required:a,className:o}),React.createElement("label",{htmlFor:`radio-${i}-${t}`},e.optiontitle),React.createElement("br",null))}))}};let H_={};H_=Object(F.applyFilters)("uagb/forms-radio",ss(H_)),Object(de.registerBlockType)("uagb/forms-radio",{...H_,title:Object(r.__)("Radio","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add radio select boxes to allow a single choice from options.","ultimate-addons-for-gutenberg"),icon:se.radio,parent:["uagb/forms"],attributes:P_,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-radio",isChildren:!0}):React.createElement(E_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,radioRequired:l,options:i,radioName:o,layout:n}=t,r=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:o,className:`uagb-forms-radio-label ${r} uagb-forms-input-label`,id:a}),i.map(e=>{const t=e.optionvalue,i=t.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:`radio-${i}-${a}`,name:a,value:t,required:l,className:n}),React.createElement("label",{htmlFor:`radio-${i}-${a}`},e.optiontitle),React.createElement("br",null))}))},deprecated:[L_,O_]});var F_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{required:l,placeholder:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:"url"}]}),React.createElement(Ss,{label:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg"),value:i,data:{value:i,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({required:!l})}))),React.createElement(il,rl)))}),j_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{block_id:l,required:i,name:o,placeholder:n}=t,s=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("URL Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-url-label ${s} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("input",{type:"url",name:l,placeholder:n,required:i,className:"uagb-forms-url-input uagb-forms-input"})))}),z_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(F_,e),React.createElement(j_,e))),D_=[{attributes:{block_id:{type:"string"},name:{type:"string",default:Object(r.__)("URL","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("https://example.com","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,required:a,name:l,placeholder:i}=e.attributes,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-url-label ${o} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"url",name:t,required:a,placeholder:i,className:"uagb-forms-url-input uagb-forms-input"}))}}],N_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},name:{type:"string",default:Object(r.__)("URL","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("https://example.com","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"url"}},save(e){const{attributes:{block_id:t,required:a,name:l,placeholder:i,autocomplete:o}}=e,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-url-label ${n} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"url",name:t,required:a,placeholder:i,className:"uagb-forms-url-input uagb-forms-input",autoComplete:o}))}}];let I_={};I_=Object(F.applyFilters)("uagb/forms-url",ss(I_)),Object(de.registerBlockType)("uagb/forms-url",{...I_,title:Object(r.__)("URL","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a URL input field in your form.","ultimate-addons-for-gutenberg"),icon:se.url,parent:["uagb/forms"],attributes:pa,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(z_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,required:l,name:i,placeholder:o,autocomplete:n}=t,r=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-url-label ${r} uagb-forms-input-label`,id:a}),React.createElement("input",{type:"url",name:a,required:l,placeholder:o,className:"uagb-forms-url-input uagb-forms-input",autoComplete:n}))},deprecated:[N_,D_]});var V_,W_={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},selectName:{type:"string",default:Object(r.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},q_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{selectRequired:l}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({selectRequired:!l})}))),React.createElement(il,rl)))}),Z_=a(118),$_=0,Y_={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},K_={};K_.locals=Z_.a.locals||{},K_.use=function(){return $_++||(V_=we()(Z_.a,Y_)),K_},K_.unuse=function(){$_>0&&!--$_&&(V_(),V_=null)};var J_=K_,X_=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(J_.use(),()=>{J_.unuse()}),[]);const{attributes:t,setAttributes:a,isSelected:l}=e,{block_id:i,selectRequired:o,options:n,selectName:s}=t,c=n.map((e,t)=>React.createElement("div",{key:t,className:"uagb-form-select-option"},React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optiontitle,onChange:e=>p({optiontitle:e.target.value,optionvalue:e.target.value},t),type:"text",value:e.optiontitle}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optionvalue,onChange:e=>p({optionvalue:e.target.value},t),type:"text",value:e.optionvalue}),React.createElement(Le.Button,{className:"uagb-form-select-option-delete",icon:"trash",label:"Remove",onClick:()=>d(t)}))),u=()=>{const e=n.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle));return React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:o,name:i,defaultValue:""},React.createElement("option",{value:"",disabled:!0},Object(r.__)("Select your option","ultimate-addons-for-gutenberg")),e)},p=(e,t)=>{const l=n.map((a,l)=>(t===l&&(a={...a,...e}),a));a({options:l})},d=e=>{const t=n.map((t,a)=>(e===a&&(n.splice(e,1),t={options:n}),t));a({deleteCurrentOptions:t})},b=o?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+i)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Select Title","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({selectName:e}),className:`uagb-forms-select-label ${b} uagb-forms-input-label`,multiline:!1,id:i}),l&&React.createElement(React.Fragment,null,c,React.createElement("div",{className:"uagb-forms-select-controls"},React.createElement("div",null,React.createElement(Le.Button,{isSecondary:!0,onClick:()=>{const e={optiontitle:Object(r.__)("Option Name ","ultimate-addons-for-gutenberg")+""+(n.length+1),optionvalue:Object(r.__)("Option Value ","ultimate-addons-for-gutenberg")+""+(n.length+1)};n[n.length]=e;const t=n.map(e=>e);a({options:t})}},Object(r.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!l&&React.createElement(u,null)))}),Q_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(q_,e),React.createElement(X_,e))),eT=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},selectName:{type:"string",default:Object(r.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save(e){const{attributes:{block_id:t,selectRequired:a,options:l,selectName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-select-label ${o} uagb-forms-input-label`,id:t}),React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:a,name:t},React.createElement("option",{value:"",disabled:!0,selected:!0},"Select your option"),l.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle))))}}],tT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},selectName:{type:"string",default:Object(r.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save:e=>{const{attributes:{block_id:t,selectRequired:a,options:l,selectName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-select-label ${o} uagb-forms-input-label`,id:t}),React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:a,name:t},React.createElement("option",{value:"",disabled:!0,selected:!0},Object(r.__)("Select your option","ultimate-addons-for-gutenberg")),l.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle))))}};let aT={};aT=Object(F.applyFilters)("uagb/forms-select",ss(aT)),Object(de.registerBlockType)("uagb/forms-select",{...aT,title:Object(r.__)("Select","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a select dropdown to list choices.","ultimate-addons-for-gutenberg"),icon:se.select,parent:["uagb/forms"],attributes:W_,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(Q_,e),save:function(e){const{attributes:t}=e,{block_id:a,selectRequired:l,options:i,selectName:o}=t,n=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:o,className:`uagb-forms-select-label ${n} uagb-forms-input-label`,id:a}),React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:l,name:a},React.createElement("option",{value:"",disabled:!0,selected:!0},Object(r.__)("Select your option","ultimate-addons-for-gutenberg")),i.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle))))},deprecated:[tT,eT]});var lT,iT=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{toggleRequired:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Ss,{label:Object(r.__)("True State","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"trueValue"},setAttributes:a,onChange:e=>a({trueValue:e})}),React.createElement(Ss,{label:Object(r.__)("False State","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"falseValue"},setAttributes:a,onChange:e=>a({falseValue:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:o,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"",label:"Square"},{value:"round",label:"Round"}],showIcons:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({toggleRequired:!l})}),React.createElement(Le.ToggleControl,{label:i?Object(r.__)("ON State","ultimate-addons-for-gutenberg"):Object(r.__)("OFF State","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({toggleStatus:!i})}),React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("Leaving the toggle in On/Off state will set it as a default value on page load for the user.","ultimate-addons-for-gutenberg")))),React.createElement(il,rl)))}),oT=a(119),nT=0,rT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},sT={};sT.locals=oT.a.locals||{},sT.use=function(){return nT++||(lT=we()(oT.a,rT)),sT},sT.unuse=function(){nT>0&&!--nT&&(lT(),lT=null)};var cT=sT,uT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(cT.use(),()=>{cT.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,toggleRequired:i,name:o,toggleStatus:n,layout:s,trueValue:c,falseValue:u}=t,p=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-toggle-label ${p} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("label",{htmlFor:l,className:"uagb-switch"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:n,"data-truestate":c,"data-falsestate":u,value:n?c:u,required:i,name:l}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",readOnly:!0,checked:n,"data-truestate":c,"data-falsestate":u,value:n?c:u,required:i,name:l}),React.createElement("span",{className:"uagb-slider "+s}))))}),pT=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(iT,e),React.createElement(uT,e))),dT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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"}},save:e=>{const{attributes:{block_id:t,toggleRequired:a,name:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:t}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("span",{className:"uagb-slider "+o})))}},bT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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"}},save:e=>{const{attributes:{block_id:t,toggleRequired:a,name:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:t}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("span",{className:"uagb-slider "+o})))}},gT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("Toggle","ultimate-addons-for-gutenberg")},toggleStatus:{type:"boolean",default:!1},layout:{type:"string",default:"round"},trueValue:{type:"string",default:"on"},falseValue:{type:"string",default:"off"}},save:e=>{const{attributes:{block_id:t,toggleRequired:a,name:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:t}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t,"aria-label":l}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t,"aria-label":l}),React.createElement("span",{className:"uagb-slider "+o})))}};let mT={};mT=Object(F.applyFilters)("uagb/forms-toggle",ss(mT)),Object(de.registerBlockType)("uagb/forms-toggle",{...mT,title:Object(r.__)("Toggle","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a toggle button in your form.","ultimate-addons-for-gutenberg"),icon:se.toggle,parent:["uagb/forms"],attributes:ua,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-toggle",isChildren:!0}):React.createElement(pT,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,toggleRequired:l,name:i,toggleStatus:o,layout:n,trueValue:r,falseValue:s}=t,c=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:a}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:o,"data-truestate":r,"data-falsestate":s,value:o?r:s,required:l,name:a,"aria-label":i}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:o,"data-truestate":r,"data-falsestate":s,value:o?r:s,required:l,name:a,"aria-label":i}),React.createElement("span",{className:"uagb-slider "+n})))},deprecated:[gT,bT,dT]});var yT={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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:""},autocomplete:{type:"string",default:"bday"}};const fT=[{label:"YYYY",value:""}],hT=[{label:"MM",value:""}],vT=[{label:"DD",value:""}];let _T;for(_T=1930;_T<=2030;_T++)fT.push({label:""+_T,value:""+_T});for(_T=1;_T<=12;_T++){const e=_T<10?"0"+_T:""+_T;hT.push({label:e,value:e})}for(_T=1;_T<=31;_T++){const e=_T<10?"0"+_T:""+_T;vT.push({label:e,value:e})}var TT,CT=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{dateRequired:l,additonalVal:i,minYear:o,minMonth:n,minDay:s,maxYear:c,maxMonth:u,maxDay:p}=t;let d="",b="";o&&n&&s&&(d=o+"-"+n+"-"+s),c&&u&&p&&(b=c+"-"+u+"-"+p);let g="";return Date.parse(d)>Date.parse(b)&&(g=React.createElement("p",{className:"uagb-forms-date-invalidate"},Object(r.__)("Invalid date range selected","ultimate-addons-for-gutenberg"))),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({dateRequired:!l})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Additional Validation","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({additonalVal:!i}),help:Object(r.__)("Helps to set range of calender","ultimate-addons-for-gutenberg")}),i&&React.createElement(React.Fragment,null,React.createElement(fi,null),React.createElement("p",null,Object(r.__)("From","ultimate-addons-for-gutenberg")," :"),React.createElement(Pi,{label:Object(r.__)("Year","ultimate-addons-for-gutenberg"),data:{value:o,label:"minYear"},setAttributes:a,options:fT}),React.createElement(Pi,{label:Object(r.__)("Month","ultimate-addons-for-gutenberg"),data:{value:n,label:"minMonth"},setAttributes:a,options:hT}),React.createElement(Pi,{label:Object(r.__)("Date","ultimate-addons-for-gutenberg"),data:{value:s,label:"minDay"},setAttributes:a,options:vT}),React.createElement(fi,null),React.createElement("p",null,Object(r.__)("To","ultimate-addons-for-gutenberg")," :"),React.createElement(Pi,{label:Object(r.__)("Year","ultimate-addons-for-gutenberg"),data:{value:c,label:"maxYear"},setAttributes:a,options:fT}),React.createElement(Pi,{label:Object(r.__)("Month","ultimate-addons-for-gutenberg"),data:{value:u,label:"maxMonth"},setAttributes:a,options:hT}),React.createElement(Pi,{label:Object(r.__)("Date","ultimate-addons-for-gutenberg"),data:{value:p,label:"maxDay"},setAttributes:a,options:vT}),g))),React.createElement(il,rl))))}),ST=a(120),kT=0,wT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},PT={};PT.locals=ST.a.locals||{},PT.use=function(){return kT++||(TT=we()(ST.a,wT)),PT},PT.unuse=function(){kT>0&&!--kT&&(TT(),TT=null)};var xT=PT,AT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(xT.use(),()=>{xT.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,dateRequired:i,name:o,additonalVal:n,minYear:s,minMonth:c,minDay:u}=t;let p="";s&&c&&u&&(p=s+"-"+c+"-"+u);let d="";d=n?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:i,min:p,max:"",name:l}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:i,name:l});const b=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Date","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-date-label ${b} uagb-forms-input-label`,multiline:!1,id:l}),d))}),GT=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(CT,e),React.createElement(AT,e))),MT={attributes:{block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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:""}},save:e=>{const{attributes:{block_id:t,dateRequired:a,name:l,additonalVal:i,minYear:o,minMonth:n,minDay:s,maxYear:c,maxMonth:u,maxDay:p,autocomplete:d}}=e;let b="",g="";o&&n&&s&&(b=o+"-"+n+"-"+s),c&&u&&p&&(g=c+"-"+u+"-"+p);let m="";m=i?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,min:b,max:g,name:t,autoComplete:d}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,name:t,autoComplete:d});const y=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-date-label ${y} uagb-forms-input-label`,id:t}),m)}},RT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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:""},autocomplete:{type:"string",default:"bday"}},save:e=>{const{attributes:{block_id:t,dateRequired:a,name:l,additonalVal:i,minYear:o,minMonth:n,minDay:s,maxYear:c,maxMonth:u,maxDay:p,autocomplete:d}}=e;let b="",g="";o&&n&&s&&(b=o+"-"+n+"-"+s),c&&u&&p&&(g=c+"-"+u+"-"+p);let m="";m=i?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,min:b,max:g,name:t,autoComplete:d,"aria-label":l}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,name:t,autoComplete:d,"aria-label":l});const y=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-date-label ${y} uagb-forms-input-label`,id:t}),m)}};let BT={};BT=Object(F.applyFilters)("uagb/forms-date",ss(BT)),Object(de.registerBlockType)("uagb/forms-date",{...BT,title:Object(r.__)("Datepicker","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a calendar based date picker in your form.","ultimate-addons-for-gutenberg"),icon:se.datepicker,parent:["uagb/forms"],attributes:yT,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(GT,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,dateRequired:l,name:i,additonalVal:o,minYear:n,minMonth:r,minDay:s,maxYear:c,maxMonth:u,maxDay:p,autocomplete:d}=t;let b="",g="";n&&r&&s&&(b=n+"-"+r+"-"+s),c&&u&&p&&(g=c+"-"+u+"-"+p);let m="";m=o?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:l,min:b,max:g,name:a,autoComplete:d,"aria-label":i}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:l,name:a,autoComplete:d,"aria-label":i});const y=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-date-label ${y} uagb-forms-input-label`,id:a}),m)},deprecated:[RT,MT]});var UT,ET=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{acceptRequired:l,acceptText:i,showLink:o,linkLabel:n,link:s,linkInNewTab:c}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Ss,{variant:"textarea",label:Object(r.__)("Acceptance Text","ultimate-addons-for-gutenberg"),help:Object(r.__)("Label to display as acceptance message.","ultimate-addons-for-gutenberg"),value:i,data:{value:i,label:"acceptText"},setAttributes:a,onChange:e=>a({acceptText:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({acceptRequired:!l})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Privacy Link","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({showLink:!o})}),o&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link Label","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"linkLabel"},setAttributes:a,onChange:e=>a({linkLabel:e})}),React.createElement(Ss,{className:"uagb-forms-editor-privacy-link",label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"link"},setAttributes:a,onChange:e=>a({link:e}),help:""===s?Object(r.__)("Enter a valid link.","ultimate-addons-for-gutenberg"):""}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new tab","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({linkInNewTab:!c})})))),React.createElement(il,rl))))}),OT=a(121),LT=0,HT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},FT={};FT.locals=OT.a.locals||{},FT.use=function(){return LT++||(UT=we()(OT.a,HT)),FT},FT.unuse=function(){LT>0&&!--LT&&(UT(),UT=null)};var jT=FT,zT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(jT.use(),()=>{jT.unuse()}),[]);const{attributes:t}=e,{block_id:a,acceptRequired:l,acceptText:i,showLink:o,linkLabel:n,link:r,linkInNewTab:s}=t,c=l?"required":"",u=s?"_blank":"_self";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-"+a)},o&&React.createElement("div",{className:"uagb-forms-accept-privacy-link"},React.createElement("a",{href:r,target:u,rel:"noopener noreferrer"},n)),React.createElement("input",{type:"checkbox",id:"uagb-forms-accept-"+a,className:"uagb-forms-checkbox",name:a,required:l,value:"Agree"}),React.createElement("label",{name:a,htmlFor:"uagb-forms-accept-"+a,className:"uagb-forms-accept-label "+c},i),React.createElement("br",null)))}),DT=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(ET,e),React.createElement(zT,e))),NT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},acceptRequired:{type:"boolean",default:!1},acceptText:{type:"string",default:Object(r.__)("I have read and agree to the Privacy Policy.","ultimate-addons-for-gutenberg")},showLink:{type:"boolean",default:!1},linkLabel:{type:"string",default:Object(r.__)("Privacy Policy","ultimate-addons-for-gutenberg")},link:{type:"string",default:"#"},linkInNewTab:{type:"boolean",default:!0}},save:e=>{const{attributes:{block_id:t,acceptRequired:a,acceptText:l,showLink:i,linkLabel:o,link:n,linkInNewTab:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"",u=s?Object(r.__)("_blank","ultimate-addons-for-gutenberg"):Object(r.__)("_self","ultimate-addons-for-gutenberg");return React.createElement("div",{className:Be()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-"+t)},i&&React.createElement("div",{className:"uagb-forms-accept-privacy-link"},React.createElement("a",{href:n,target:u,rel:"noopener noreferrer"},o)),React.createElement("input",{type:"checkbox",name:t,required:a,value:"Agree",className:"uagb-forms-checkbox",id:"uagb-forms-accept-"+t}),React.createElement("label",{name:t,htmlFor:"uagb-forms-accept-"+t,className:"uagb-forms-accept-label "+c,id:t},l),React.createElement("br",null))}};let IT={};IT=Object(F.applyFilters)("uagb/forms-accept",ss(IT)),Object(de.registerBlockType)("uagb/forms-accept",{...IT,title:Object(r.__)("Accept","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a consent statement with a checkbox in your form.","ultimate-addons-for-gutenberg"),icon:se.accept,parent:["uagb/forms"],attributes:na,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-accept",isChildren:!0}):React.createElement(DT,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,acceptRequired:l,acceptText:i,showLink:o,linkLabel:n,link:r,linkInNewTab:s}=t,c=l?"required":"",u=s?"_blank":"_self";return React.createElement("div",{className:Be()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-"+a)},o&&React.createElement("div",{className:"uagb-forms-accept-privacy-link"},React.createElement("a",{href:r,target:u,rel:"noopener noreferrer"},n)),React.createElement("input",{type:"checkbox",name:a,required:l,value:"Agree",className:"uagb-forms-checkbox",id:"uagb-forms-accept-"+a}),React.createElement("label",{name:a,htmlFor:"uagb-forms-accept-"+a,className:"uagb-forms-accept-label "+c,id:a},i),React.createElement("br",null))},deprecated:[NT]}),a(229);function VT(){return(VT=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:{height:a,heightTablet:l,heightMobile:i,zoom:o,address:n,language:s,enableSatelliteView:c}}=e,u=c?21:22;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("This block uses Spectra's API key to display the map. You don't need to create your own API key or worry about renewing it.","ultimate-addons-for-gutenberg")),React.createElement(Ss,{label:Object(r.__)("Address","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,dynamicContentType:"text",value:n,name:"address",data:{value:n,label:"address"},setAttributes:t,placeholder:Object(r.__)("Type the address","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Satellite View","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>t({enableSatelliteView:!c})}),React.createElement(Qa,{label:Object(r.__)("Zoom","ultimate-addons-for-gutenberg"),value:o,setAttributes:t,data:{value:o,label:"zoom"},min:1,max:u,displayUnit:!1}),React.createElement(tl,{label:Object(r.__)("Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:a,label:"height"},tablet:{value:l,label:"heightTablet"},mobile:{value:i,label:"heightMobile"}},min:0,max:1e3,displayUnit:!1,setAttributes:t,responsive:!0}),React.createElement(Pi,{label:Object(r.__)("Language","ultimate-addons-for-gutenberg"),data:{value:s,label:"language"},setAttributes:t,options:[{value:"af",label:Object(r.__)("Afrikaans","ultimate-addons-for-gutenberg")},{value:"sq",label:Object(r.__)("Albanian","ultimate-addons-for-gutenberg")},{value:"am",label:Object(r.__)("Amharic","ultimate-addons-for-gutenberg")},{value:"ar",label:Object(r.__)("Arabic","ultimate-addons-for-gutenberg")},{value:"hy",label:Object(r.__)("Armenian","ultimate-addons-for-gutenberg")},{value:"az",label:Object(r.__)("Azerbaijani","ultimate-addons-for-gutenberg")},{value:"eu",label:Object(r.__)("Basque","ultimate-addons-for-gutenberg")},{value:"be",label:Object(r.__)("Belarusian","ultimate-addons-for-gutenberg")},{value:"bn",label:Object(r.__)("Bengali","ultimate-addons-for-gutenberg")},{value:"bs",label:Object(r.__)("Bosnian","ultimate-addons-for-gutenberg")},{value:"bg",label:Object(r.__)("Bulgarian","ultimate-addons-for-gutenberg")},{value:"my",label:Object(r.__)("Burmese","ultimate-addons-for-gutenberg")},{value:"ca",label:Object(r.__)("Catalan","ultimate-addons-for-gutenberg")},{value:"zh",label:Object(r.__)("Chinese","ultimate-addons-for-gutenberg")},{value:"hr",label:Object(r.__)("Croatian","ultimate-addons-for-gutenberg")},{value:"cs",label:Object(r.__)("Czech","ultimate-addons-for-gutenberg")},{value:"da",label:Object(r.__)("Danish","ultimate-addons-for-gutenberg")},{value:"nl",label:Object(r.__)("Dutch","ultimate-addons-for-gutenberg")},{value:"en",label:Object(r.__)("English","ultimate-addons-for-gutenberg")},{value:"et",label:Object(r.__)("Estonian","ultimate-addons-for-gutenberg")},{value:"fa",label:Object(r.__)("Farsi","ultimate-addons-for-gutenberg")},{value:"fi",label:Object(r.__)("Finnish","ultimate-addons-for-gutenberg")},{value:"fr",label:Object(r.__)("French","ultimate-addons-for-gutenberg")},{value:"gl",label:Object(r.__)("Galician","ultimate-addons-for-gutenberg")},{value:"ka",label:Object(r.__)("Georgian","ultimate-addons-for-gutenberg")},{value:"de",label:Object(r.__)("German","ultimate-addons-for-gutenberg")},{value:"el",label:Object(r.__)("Greek","ultimate-addons-for-gutenberg")},{value:"gu",label:Object(r.__)("Gujarati","ultimate-addons-for-gutenberg")},{value:"iw",label:Object(r.__)("Hebrew","ultimate-addons-for-gutenberg")},{value:"hi",label:Object(r.__)("Hindi","ultimate-addons-for-gutenberg")},{value:"hu",label:Object(r.__)("Hungarian","ultimate-addons-for-gutenberg")},{value:"is",label:Object(r.__)("Icelandic","ultimate-addons-for-gutenberg")},{value:"id",label:Object(r.__)("Indonesian","ultimate-addons-for-gutenberg")},{value:"it",label:Object(r.__)("Italian","ultimate-addons-for-gutenberg")},{value:"ja",label:Object(r.__)("Japanese","ultimate-addons-for-gutenberg")},{value:"kn",label:Object(r.__)("Kannada","ultimate-addons-for-gutenberg")},{value:"kk",label:Object(r.__)("Kazakh","ultimate-addons-for-gutenberg")},{value:"km",label:Object(r.__)("Khmer","ultimate-addons-for-gutenberg")},{value:"ko",label:Object(r.__)("Korean","ultimate-addons-for-gutenberg")},{value:"ky",label:Object(r.__)("Kyrgyz","ultimate-addons-for-gutenberg")},{value:"lo",label:Object(r.__)("Lao","ultimate-addons-for-gutenberg")},{value:"lv",label:Object(r.__)("Latvian","ultimate-addons-for-gutenberg")},{value:"lt",label:Object(r.__)("Lithuanian","ultimate-addons-for-gutenberg")},{value:"mk",label:Object(r.__)("Macedonian","ultimate-addons-for-gutenberg")},{value:"ms",label:Object(r.__)("Malay","ultimate-addons-for-gutenberg")},{value:"ml",label:Object(r.__)("Malayalam","ultimate-addons-for-gutenberg")},{value:"mr",label:Object(r.__)("Marathi","ultimate-addons-for-gutenberg")},{value:"mn",label:Object(r.__)("Mongolian","ultimate-addons-for-gutenberg")},{value:"ne",label:Object(r.__)("Nepali","ultimate-addons-for-gutenberg")},{value:"no",label:Object(r.__)("Norwegian","ultimate-addons-for-gutenberg")},{value:"pl",label:Object(r.__)("Polish","ultimate-addons-for-gutenberg")},{value:"pt",label:Object(r.__)("Portuguese","ultimate-addons-for-gutenberg")},{value:"pa",label:Object(r.__)("Punjabi","ultimate-addons-for-gutenberg")},{value:"ro",label:Object(r.__)("Romanian","ultimate-addons-for-gutenberg")},{value:"ru",label:Object(r.__)("Russian","ultimate-addons-for-gutenberg")},{value:"sr",label:Object(r.__)("Serbian","ultimate-addons-for-gutenberg")},{value:"si",label:Object(r.__)("Sinhalese","ultimate-addons-for-gutenberg")},{value:"sk",label:Object(r.__)("Slovak","ultimate-addons-for-gutenberg")},{value:"sl",label:Object(r.__)("Slovenian","ultimate-addons-for-gutenberg")},{value:"es",label:Object(r.__)("Spanish","ultimate-addons-for-gutenberg")},{value:"sw",label:Object(r.__)("Swahili","ultimate-addons-for-gutenberg")},{value:"sv",label:Object(r.__)("Swedish","ultimate-addons-for-gutenberg")},{value:"ta",label:Object(r.__)("Tamil","ultimate-addons-for-gutenberg")},{value:"te",label:Object(r.__)("Telugu","ultimate-addons-for-gutenberg")},{value:"th",label:Object(r.__)("Thai","ultimate-addons-for-gutenberg")},{value:"tr",label:Object(r.__)("Turkish","ultimate-addons-for-gutenberg")},{value:"uk",label:Object(r.__)("Ukrainian","ultimate-addons-for-gutenberg")},{value:"ur",label:Object(r.__)("Urdu","ultimate-addons-for-gutenberg")},{value:"uz",label:Object(r.__)("Uzbek","ultimate-addons-for-gutenberg")},{value:"vi",label:Object(r.__)("Vietnamese","ultimate-addons-for-gutenberg")},{value:"zu",label:Object(r.__)("Zulu","ultimate-addons-for-gutenberg")}]}))),React.createElement(il,VT({},rl,{parentProps:e}))))}),ZT=a(122),$T=0,YT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},KT={};KT.locals=ZT.a.locals||{},KT.use=function(){return $T++||(WT=we()(ZT.a,YT)),KT},KT.unuse=function(){$T>0&&!--$T&&(WT(),WT=null)};var JT=KT,XT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(JT.use(),()=>{JT.unuse()}),[]);const{className:t,attributes:{zoom:a,address:l,language:i,height:o,block_id:n,enableSatelliteView:s},deviceType:c,name:u}=e,p=u.replace("uagb/",""),d=i||"en",b=s?"k":"m",g=`https://maps.google.com/maps?q=${encodeURI(l)}&z=${us(a,"zoom",p)}&hl=${d}&t=${b}&output=embed&iwloc=near`;return React.createElement("div",{className:Be()(t,"uagb-google-map__wrap","uagb-block-"+n,"uagb-editor-preview-mode-"+c.toLowerCase())},React.createElement("embed",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for ","ultimate-addons-for-gutenberg")+l,src:g,width:"640",height:o,loading:"lazy"}))}),QT=Object(L.compose)(ls,fe,(function(e){return t=>{var a,l,i,o,r,s,c,u,p,d,b,g;const{attributes:m,context:y}=t;if(null==m||null===(a=m.dynamicContent)||void 0===a||null===(l=a.address)||void 0===l||!l.enable)return React.createElement(e,t);const[f="",h]=((null==m||null===(i=m.dynamicContent)||void 0===i||null===(o=i.address)||void 0===o?void 0:o.source)||"").split("|"),[v="",_=""]=((null==m||null===(r=m.dynamicContent)||void 0===r||null===(s=r.address)||void 0===s?void 0:s.field)||"").split("|"),T=Object(n.select)("core/editor"),C=null!=T&&T.getCurrentPostType?T.getCurrentPostType():null,S="current_post"===v?C:f,k=`${null==m?void 0:m.address}`,w=Object(F.applyFilters)("uag_render_text_loop_data",k,y);return t={...t,attributes:{...m,address:w}},React.createElement(e,t)}}))(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,enableSatelliteView:n,zoom:r},name:s,deviceType:c,setAttributes:u}=e,p=Object(B.useMemo)(()=>function(e,t,a){const l=t.replace("uagb/",""),i=a.toLowerCase(),{block_id:o,height:n,heightTablet:r,heightMobile:s}=e,c=us(n,"height",l),u=us(r,"heightTablet",l),p=us(s,"heightMobile",l);let d={},b={};const g={" .uagb-google-map__iframe":{height:Vr(c,"px")}};d={" .uagb-google-map__iframe":{height:Vr(u,"px")}},b={" .uagb-google-map__iframe":{height:Vr(p,"px")}};const m=".editor-styles-wrapper .uagb-block-"+o;let y=ae(g,m);return"tablet"!==i&&"mobile"!==i||(y+=ae(d,""+m,!0,"tablet"),"mobile"===i&&(y+=ae(b,""+m,!0,"mobile"))),y}(a,s,c),[a,c]);return Object(B.useEffect)(()=>{ys()},[c]),Object(B.useEffect)(()=>{he(e)},[l,i,o,c]),Object(B.useEffect)(()=>{n&&22===r&&u({zoom:21})},[n]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:p}),t&&React.createElement(qT,e),React.createElement(XT,e))});const eC={block_id:{type:"string"},address:{type:"string",default:"Brainstorm Force"},height:{type:"number",default:300},zoom:{type:"number",default:12},language:{type:"string",default:"en"}};var tC=[{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i}=e.attributes,o=encodeURI(i),n=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${l}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for "+i),src:n,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i}=e.attributes,o=encodeURI(i),n=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${l}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap"),id:"uagb-google-map-"+t},React.createElement("iframe",{className:"uagb-google-map__iframe",src:n,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i}=e.attributes,o=encodeURI(i),n=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${l}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",src:n,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i,language:o}=e.attributes;let n=encodeURI(i);var s=o||"en";let c=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${n}&zoom=${l}&language=${s}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for "+i),src:c,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,zoom:a,address:l,language:i}=e.attributes,o=encodeURI(l),n=i||"en",s=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${us(a,"zoom","google-map")}&language=${n}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for ","ultimate-addons-for-gutenberg")+l,src:s}))}},{attributes:{block_id:{type:"string"},address:{type:"string",default:"Brainstorm Force"},height:{type:"number",default:300,UAGCopyPaste:{styleType:"map-height"}},heightTablet:{type:"number",default:300,UAGCopyPaste:{styleType:"map-height"}},heightMobile:{type:"number",default:300,UAGCopyPaste:{styleType:"map-height"}},zoom:{type:"number",default:12},language:{type:"string",default:"en"},isPreview:{type:"boolean",default:!1}},save:function(e){const{block_id:t,zoom:a,address:l,language:i,height:o}=e.attributes,n=encodeURI(l),s=i||"en",c=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${n}&zoom=${us(a,"zoom","google-map")}&language=${s}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for ","ultimate-addons-for-gutenberg")+l,src:c,width:"640",height:o,loading:"lazy"}))}}];wp.uagb_google_api_key="AIzaSyAsd_d46higiozY-zNqtr7zdA81Soswje4";let aC={};aC=Object(F.applyFilters)("uagb/google-map",ss(aC)),Object(de.registerBlockType)("uagb/google-map",{...aC,title:Object(r.__)("Google Maps","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show a Google Map location on your website.","ultimate-addons-for-gutenberg"),icon:se.google_map,keywords:[Object(r.__)("google","ultimate-addons-for-gutenberg"),Object(r.__)("maps","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:_t,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"google-maps"}):React.createElement(QT,e),save:()=>null,deprecated:tC});var lC=function(e){const{headingTitle:t,headingDesc:a,mainimage:l,showTotaltime:i,showTools:o,showMaterials:s,timeNeeded:c,showEstcost:u,estCost:p,cost:d,currencyType:b,tools:g,materials:m,clientId:y,minsValue:f,timeInHours:h,timeInDays:v,timeInMonths:_,timeInYears:T}=e,C=[],S=Object(n.select)("core/block-editor").getBlocks(y);let k=!1;S.forEach(e=>{var t,a,l;"uagb/how-to-step"===e.name||""!==e.attributes.ctaLink&&"#"!==e.attributes.ctaLink&&""!==e.attributes.infoBoxTitle&&""!==e.attributes.headingDesc&&""!==(null===(t=e.attributes.iconImage)||void 0===t?void 0:t.url)||(k=!0),"uagb/how-to-step"!==e.name||""!==e.attributes.url&&"#"!==e.attributes.url&&""!==e.attributes.name&&""!==e.attributes.description&&""!==(null===(a=e.attributes)||void 0===a||null===(l=a.image)||void 0===l?void 0:l.url)||(k=!0)}),void 0!==t&&""!==t||C.push("How-To Title"),void 0!==a&&""!==a||C.push("Description"),l&&"null"!==l&&"null"!==l.url&&""!==l.url||C.push("Main Image"),!0!==i||void 0!==c&&""!==c||C.push("Time Needed Label"),!0!==i||void 0!==f&&""!==f||void 0!==h&&""!==h||void 0!==v&&""!==v||void 0!==_&&""!==_||void 0!==T&&""!==T||C.push("Time"),!0!==u||void 0!==p&&""!==p||C.push("Total Cost Label"),!0!==u||void 0!==d&&""!==d||C.push("Cost"),!0!==u||void 0!==b&&""!==b||C.push("Currency Unit"),!0!==o||void 0!==g&&0!==g.length&&""!==g[0].add_required_tools||C.push("Tools"),!0!==s||void 0!==m&&0!==m.length&&""!==m[0].add_required_materials||C.push("Materials"),(void 0===S||2>S.length)&&C.push("Atleast 2 Steps are required"),!0===k&&C.push("The Heading, Description, Image & Link may required for each Step. ");const w=C.map(e=>React.createElement("li",{key:e}," ",e," "));return React.createElement(React.Fragment,null,0!==C.length?React.createElement("div",{className:"how-to-schema-notices"},React.createElement("h6",null," ",Object(r.__)("It seems 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")," "),React.createElement("ul",{className:"how-to-schema-notices-list"},w),React.createElement("p",null,Object(r.__)("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")," ",React.createElement("a",{href:"https://developers.google.com/search/docs/data-types/how-to",target:"_blank",rel:"noreferrer"},Object(r.__)("Read more.","ultimate-addons-for-gutenberg")))):"")};function iC(){return(iC=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,attributes:{overallAlignment:l,showEstcost:i,showTotaltime:o,showMaterials:n,showTools:s,showTotaltimecolor:c,tools_count:u,material_count:p,tools:d,materials:b,mainimage:g,imgSize:m,headingColor:y,subHeadingColor:f,headingTag:h,headFontFamily:v,headFontWeight:_,headFontSizeType:T,headFontSize:C,headFontSizeMobile:S,headFontSizeTablet:k,headLineHeightType:w,headLineHeight:P,headLineHeightMobile:x,headLineHeightTablet:A,subHeadFontFamily:G,subHeadFontWeight:M,subHeadFontSize:R,subHeadFontSizeType:B,subHeadFontSizeMobile:U,subHeadFontSizeTablet:E,subHeadLineHeight:O,subHeadLineHeightType:L,subHeadLineHeightMobile:H,subHeadLineHeightTablet:F,headLoadGoogleFonts:z,subHeadLoadGoogleFonts:D,priceFontSizeType:N,priceFontSize:I,priceFontSizeTablet:V,priceFontSizeMobile:W,priceFontFamily:q,priceFontWeight:Z,priceLineHeightType:$,priceLineHeight:Y,priceLineHeightTablet:K,priceLineHeightMobile:J,priceLoadGoogleFonts:X,timeSpace:Q,costSpace:ee,row_gap:te,rowGapTablet:ae,rowGapMobile:le,step_gap:ie,timeInHours:oe,timeInDays:ne,timeInMonths:re,timeInYears:se,timeInMins:ce,time:ue,priceFontStyle:pe,priceTransform:de,priceDecoration:be,headFontStyle:me,headTransform:ye,headDecoration:fe,subHeadFontStyle:he,subHeadTransform:ve,subHeadDecoration:_e,headLetterSpacing:Te,headLetterSpacingTablet:Se,headLetterSpacingMobile:ke,headLetterSpacingType:we,priceLetterSpacing:Pe,priceLetterSpacingTablet:xe,priceLetterSpacingMobile:Ae,priceLetterSpacingType:Ge,subHeadLetterSpacing:Me,subHeadLetterSpacingTablet:Re,subHeadLetterSpacingMobile:Be,subHeadLetterSpacingType:Ue}}=e;g&&g.sizes&&(oC=j(g.sizes));const Oe=ce||ue;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Tag","ultimate-addons-for-gutenberg"),data:{value:h,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:l,label:"overallAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({mainimage:e}):a({mainimage:null})},backgroundImage:g,onRemoveImage:()=>{a({mainimage:""})},disableLabel:!0}),g&&"null"!==g.url&&""!==g.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:m,label:"imgSize"},setAttributes:a,options:oC})),React.createElement(je,{title:Object(r.__)("Time","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Total Time","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({showTotaltime:!o}),help:Object(r.__)("Note: Time is recommended field for schema. It should be ON","ultimate-addons-for-gutenberg")}),o&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Years","ultimate-addons-for-gutenberg"),setAttributes:a,value:se,data:{value:se,label:"timeInYears"},min:1,max:10,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Months","ultimate-addons-for-gutenberg"),setAttributes:a,value:re,data:{value:re,label:"timeInMonths"},min:1,max:12,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Days","ultimate-addons-for-gutenberg"),setAttributes:a,value:ne,data:{value:ne,label:"timeInDays"},min:1,max:31,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Hours","ultimate-addons-for-gutenberg"),setAttributes:a,value:oe,data:{value:oe,label:"timeInHours"},min:1,max:24,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Minutes","ultimate-addons-for-gutenberg"),setAttributes:a,value:Oe,data:{value:ce,label:"timeInMins"},min:1,max:60,displayUnit:!1}))),React.createElement(je,{title:Object(r.__)("Cost","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Estimated Cost","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({showEstcost:!i}),help:Object(r.__)("Note: Cost is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),React.createElement(Le.ExternalLink,{href:"https://en.wikipedia.org/wiki/List_of_circulating_currencies"},Object(r.__)("Click here to find your countrys ISO code.","ultimate-addons-for-gutenberg"))),React.createElement(je,{title:Object(r.__)("Tools","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Tools","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({showTools:!s}),help:Object(r.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),s&&React.createElement(Qa,{label:Object(r.__)("Number of Tools","ultimate-addons-for-gutenberg"),setAttributes:a,value:u,data:{value:u,label:"tools_count"},onChange:e=>{const t=[...d],l=us(e,"tools_count","how-to");if(t.lengtha({showMaterials:!n}),help:Object(r.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),n&&React.createElement(Qa,{label:Object(r.__)("Number of Materials","ultimate-addons-for-gutenberg"),setAttributes:a,value:p,data:{value:p,label:"material_count"},onChange:e=>{const t=[...b],l=us(e,"material_count","how-to");if(t.length0&&!--cC&&(nC(),nC=null)};var dC=pC,bC=["uagb/how-to-step"];"yes"===uagb_blocks_info.uagb_old_user_less_than_2&&(bC=["uagb/info-box","uagb/how-to-step"]);var gC=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(dC.use(),()=>{dC.unuse()}),[]);const{className:t,attributes:a,setAttributes:l,insertBlocksAfter:i,mergeBlocks:o,onReplace:n,attributes:{currencyType:s,showEstcost:c,showTotaltime:u,showMaterials:p,showTools:d,toolsTitle:b,materialTitle:g,stepsTitle:m,tools:y,materials:f,timeNeeded:h,estCost:v,mainimage:_,headingTitle:T,headingDesc:C,headingTag:S,time:k,cost:w,timeInMins:P,timeInHours:x,timeInDays:A,timeInMonths:G,timeInYears:M,imgTagHeight:R,imgTagWidth:U,block_id:E},deviceType:O,name:L}=e,H=L.replace("uagb/",""),F=function(e,t){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s{Zg(D,l)},[D]),_&&_.url&&(I=React.createElement("img",{className:"uagb-howto__source-image",src:D,title:z,width:U,height:R,loading:"lazy",alt:N}));const V=us(P,"timeInMins",H)?us(P,"timeInMins",H):k,W=[["uagb/how-to-step",{name:"Step 1",description:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")}],["uagb/how-to-step",{name:"Step 2",description:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")}],["uagb/how-to-step",{name:"Step 3",description:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")}]],q=us(M,"timeInYears",H)>1?Object(r.__)("Years","ultimate-addons-for-gutenberg"):Object(r.__)("Year","ultimate-addons-for-gutenberg"),Z=us(G,"timeInMonths",H)>1?Object(r.__)(" Months ","ultimate-addons-for-gutenberg"):Object(r.__)(" Month ","ultimate-addons-for-gutenberg"),$=us(A,"timeInDays",H)>1?Object(r.__)(" Days ","ultimate-addons-for-gutenberg"):Object(r.__)(" Day ","ultimate-addons-for-gutenberg"),Y=us(x,"timeInHours",H)>1?Object(r.__)("Hours ","ultimate-addons-for-gutenberg"):Object(r.__)(" Hour ","ultimate-addons-for-gutenberg"),K=V>1?Object(r.__)(" Minutes ","ultimate-addons-for-gutenberg"):Object(r.__)(" Minute ","ultimate-addons-for-gutenberg");return React.createElement("div",{className:Be()(t,"uagb-editor-preview-mode-"+O.toLowerCase(),"uagb-block-"+E,"uagb-how-to-main-wrap")},React.createElement(ge.RichText,{tagName:S,placeholder:Object(r.__)("How to configure HowTo Schema in UAG?","ultimate-addons-for-gutenberg"),value:T,className:"uagb-howto-heading-text",multiline:!1,onChange:e=>{l({headingTitle:e})},onMerge:o,onSplit:i?function(e,t){l({content:e});for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;nn([])}),React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("So to get started, you will just need to drag-n-drop the How-to block in the Gutenberg editor. The How-to 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:C,className:"uagb-howto-desc-text",onChange:e=>l({headingDesc:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),I,React.createElement("span",{className:"uagb-howto__time-wrap"},u&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("Total Time Needed ( Minutes ):","ultimate-addons-for-gutenberg"),value:h,className:"uagb-howto-timeNeeded-text",onChange:e=>l({timeNeeded:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),u&&React.createElement(React.Fragment,null,us(M,"timeInYears",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",us(M,"timeInYears",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",q)),us(G,"timeInMonths",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(G,"timeInMonths",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"},Z)),us(A,"timeInDays",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(A,"timeInDays",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"},$)),us(x,"timeInHours",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(x,"timeInHours",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"},Y)),V&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},V),React.createElement("p",{className:"uagb-howto-timeINmin-text"},K)))),React.createElement("span",{className:"uagb-howto__cost-wrap"},c&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("Total Cost:","ultimate-addons-for-gutenberg"),value:v,className:"uagb-howto-estcost-text",onChange:e=>l({estCost:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),c&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("30","ultimate-addons-for-gutenberg"),value:w,className:"uagb-howto-estcost-value",onChange:e=>l({cost:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),c&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("USD","ultimate-addons-for-gutenberg"),value:s,className:"uagb-howto-estcost-type",onChange:e=>l({currencyType:e}),onMerge:o,onSplit:F,onRemove:()=>n([])})),d&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("requirements tools:","ultimate-addons-for-gutenberg"),value:b,className:"uagb-howto-req-tools-text",onChange:e=>l({toolsTitle:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),d&&React.createElement(React.Fragment,null,y.map((e,t)=>React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Requirements Tools:","ultimate-addons-for-gutenberg"),value:e.add_required_tools,onChange:e=>{((e,t)=>{const a=y.map((a,l)=>(t===l&&(a={...a,...e}),a));l({tools:a})})({add_required_tools:e},t)},className:"uagb-tools__label "+t,multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"],key:t}))),p&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("requirements materials:","ultimate-addons-for-gutenberg"),value:g,className:"uagb-howto-req-materials-text",onChange:e=>l({materialTitle:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),p&&React.createElement(React.Fragment,null,f.map((e,t)=>React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Requirements Materials:","ultimate-addons-for-gutenberg"),value:e.add_required_materials,onChange:e=>{((e,t)=>{const a=f.map((a,l)=>(t===l&&(a={...a,...e}),a));l({materials:a})})({add_required_materials:e},t)},className:"uagb-materials__label "+t,multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"],key:t}))),React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("requirements Steps:","ultimate-addons-for-gutenberg"),value:m,className:"uagb-howto-req-steps-text",onChange:e=>l({stepsTitle:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),React.createElement(ge.InnerBlocks,{template:W,allowedBlocks:bC}))}),mC=Object(B.memo)(e=>{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,priceLoadGoogleFonts:s,priceFontFamily:c,priceFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),yC=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,setAttributes:l,attributes:{currencyType:i,showEstcost:o,showTotaltime:r,tools:s,materials:c,timeNeeded:u,estCost:p,mainimage:d,headingTitle:b,headingDesc:g,cost:m,timeInMins:y,timeInHours:f,timeInDays:h,timeInMonths:v,timeInYears:_,UAGHideDesktop:T,UAGHideTab:C,UAGHideMob:S,schema:k},clientId:w,name:P,deviceType:x}=e,[A,G]=Object(B.useState)(""),{schemaJsonData:M}=Object(n.useSelect)(e=>{let t="";"undefined"!==a.mainimage&&null!==a.mainimage&&""!==a.mainimage&&(t=a.mainimage.url);let l={},i={},o={};const n={"@context":"https://schema.org","@type":"HowTo",name:a.headingTitle,description:a.headingDesc,image:{"@type":"ImageObject",url:t,height:"406",width:"305"},totalTime:"",estimatedCost:[],tool:[],supply:[],step:[]},r=a.timeInYears?a.timeInYears:0,s=a.timeInMonths?a.timeInMonths:0,c=a.timeInDays?a.timeInDays:0,u=a.timeInHours?a.timeInHours:0;a.time=r||s||c||0!==u?"":"30";const p=a.timeInMins?a.timeInMins:a.time;return a.showTotaltime&&(n.totalTime="P"+r+"Y"+s+"M"+c+"DT"+u+"H"+p+"M"),a.showEstcost&&(n.estimatedCost={"@type":"MonetaryAmount",currency:a.currencyType,value:a.cost}),a.showTools&&a.tools.forEach((e,t)=>{l={"@type":"HowToTool",name:e.add_required_tools},n.tool[t]=l}),a.showMaterials&&a.materials.forEach((e,t)=>{i={"@type":"HowToSupply",name:e.add_required_materials},n.supply[t]=i}),e("core/block-editor").getBlocks(w).forEach((e,t)=>{var a,l,i,r,s,c,u,p,d,b;o={"@type":"HowToStep",url:(null===(a=e.attributes)||void 0===a?void 0:a.ctaLink)||(null===(l=e.attributes)||void 0===l?void 0:l.url),name:(null===(i=e.attributes)||void 0===i?void 0:i.infoBoxTitle)||(null===(r=e.attributes)||void 0===r?void 0:r.name),text:(null===(s=e.attributes)||void 0===s?void 0:s.headingDesc)||(null===(c=e.attributes)||void 0===c?void 0:c.description),image:(null===(u=e.attributes)||void 0===u||null===(p=u.iconImage)||void 0===p?void 0:p.url)||(null===(d=e.attributes)||void 0===d||null===(b=d.image)||void 0===b?void 0:b.url)},n.step[t]=o}),{schemaJsonData:n}});Object(B.useEffect)(()=>{k||(l({schema:JSON.stringify(M)}),G(M))},[]),Object(B.useEffect)(()=>{JSON.stringify(M)!==JSON.stringify(A)&&(l(e=>({...e,schema:JSON.stringify(M)})),G(M))},[a,x]);const R=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{overallAlignment:n,headingTag:r,showTotaltimecolor:s,headingColor:c,headSpace:u,subHeadingColor:p,headFontFamily:d,headFontWeight:b,headFontSize:g,headFontSizeType:m,headFontSizeMobile:y,headFontSizeTablet:f,headLineHeight:h,headLineHeightType:v,headLineHeightMobile:_,headLineHeightTablet:T,subHeadFontFamily:C,subHeadFontWeight:S,subHeadFontSize:k,subHeadFontSizeType:w,subHeadFontSizeMobile:P,subHeadFontSizeTablet:x,subHeadLineHeight:A,subHeadLineHeightType:G,subHeadLineHeightMobile:M,subHeadLineHeightTablet:R,priceFontSizeType:B,priceFontSize:U,priceFontSizeTablet:E,priceFontSizeMobile:O,priceFontFamily:L,priceFontWeight:H,priceLineHeightType:F,priceLineHeight:j,priceLineHeightTablet:z,priceLineHeightMobile:D,timeSpace:N,costSpace:I,row_gap:V,rowGapTablet:W,rowGapMobile:q,step_gap:Z,priceFontStyle:$,priceTransform:Y,priceDecoration:K,headFontStyle:J,headTransform:X,headDecoration:Q,subHeadFontStyle:ee,subHeadTransform:te,subHeadDecoration:le,headLetterSpacing:ie,headLetterSpacingTablet:oe,headLetterSpacingMobile:ne,headLetterSpacingType:re,priceLetterSpacing:se,priceLetterSpacingTablet:ce,priceLetterSpacingMobile:ue,priceLetterSpacingType:pe,subHeadLetterSpacing:de,subHeadLetterSpacingTablet:be,subHeadLetterSpacingMobile:ge,subHeadLetterSpacingType:me,block_id:ye}=e;let fe={},he={},ve=""!==us(Z,"step_gap",i)?us(Z,"step_gap",i):0;ve+=30;const _e={" .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p,"letter-spacing":Vr(de,me)},".uagb-how-to-main-wrap p":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-tools__wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-image":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px"),"justify-content":n},".uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px"),"justify-content":n}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":Vr(us(V,"row_gap",i),"px")}," h4.uagb-howto-req-steps-text":{"margin-top":Vr(us(V,"row_gap",i),"px"),"margin-bottom":Vr(us(V,"row_gap",i),"px")}," h4.uagb-howto-req-materials-text":{"margin-top":Vr(us(V,"row_gap",i),"px")}," .uagb-infobox__content-wrap":{"margin-bottom":Vr(ve,"px")}," .uagb-how-to-step-wrap":{"margin-bottom":Vr(ve,"px")}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s,"letter-spacing":Vr(se,pe)}," .uagb-howto-timeNeeded-value":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p,"margin-left":Vr(us(N,"timeSpace",i),"px")}," .uagb-howto-timeINmin-text ":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p,"margin-left":Vr(us(I,"costSpace",i),"px")}," h4.block-editor-rich-text__editable":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F)}," p.block-editor-rich-text__editable":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-tools__label":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-howto-req-steps-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-materials__label":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}};_e[".uagb-how-to-main-wrap"]={"text-align":n,display:"block"},_e[` ${r}.block-editor-rich-text__editable.uagb-howto-heading-text`]={"font-family":d,"font-style":J,"text-decoration":Q,"text-transform":X,"font-weight":b,"font-size":Vr(g,m),"line-height":Vr(h,v),color:c,"margin-bottom":Vr(u,"px"),"letter-spacing":Vr(ie,re)},he={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":Vr(y,m),"line-height":Vr(_,v),"letter-spacing":Vr(ne,re)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":Vr(P,w),"line-height":Vr(M,G),"letter-spacing":Vr(ge,me)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":Vr(O,B),"line-height":Vr(D,F),"letter-spacing":Vr(ue,pe)}," .uagb-howto-timeNeeded-value":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .uagb-howto-timeINmin-text ":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":Vr(O,B),"line-height":Vr(D,F)},".uagb-how-to-main-wrap p":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-tools__wrap":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-image":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")}," h4.uagb-howto-req-steps-text":{"margin-top":Vr(us(q,"rowGapMobile",i),"px"),"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")}," h4.uagb-howto-req-materials-text":{"margin-top":Vr(us(q,"rowGapMobile",i),"px")}},he[` ${r}.block-editor-rich-text__editable.uagb-howto-heading-text`]={"font-size":Vr(y,m),"line-height":Vr(_,v),"letter-spacing":Vr(ne,re)},fe={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":Vr(f,m),"line-height":Vr(T,v),"letter-spacing":Vr(oe,re)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":Vr(x,w),"line-height":Vr(R,G),"letter-spacing":Vr(be,me)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":Vr(E,B),"line-height":Vr(z,F),"letter-spacing":Vr(ce,pe)}," .uagb-howto-timeNeeded-value":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .uagb-howto-timeINmin-text ":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":Vr(E,B),"line-height":Vr(z,F)},".uagb-how-to-main-wrap p":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-tools__wrap":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-image":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")}," h4.uagb-howto-req-steps-text":{"margin-top":Vr(us(W,"rowGapTablet",i),"px"),"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")}," h4.uagb-howto-req-materials-text":{"margin-top":Vr(us(W,"rowGapTablet",i),"px")}},fe[` ${r}.block-editor-rich-text__editable.uagb-howto-heading-text`]={"font-size":Vr(f,m),"line-height":Vr(T,v),"letter-spacing":Vr(oe,re)};const Te=".editor-styles-wrapper .uagb-block-"+ye;let Ce=ae(_e,Te);return"tablet"!==o&&"mobile"!==o||(Ce+=ae(fe,""+Te,!0,"tablet"),"mobile"===o&&(Ce+=ae(he,""+Te,!0,"mobile"))),Ce}(a,0,P,x),[a,x]);return Object(B.useEffect)(()=>{ys()},[x]),Object(B.useEffect)(()=>{he(e)},[T,C,S,x]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:R}),React.createElement(mC,{attributes:a}),React.createElement(lC,{headingTitle:b,headingDesc:g,mainimage:d,showTotaltime:r,timeNeeded:u,minsValue:y,timeInHours:f,timeInDays:h,timeInMonths:v,timeInYears:_,showEstcost:o,estCost:p,cost:m,currencyType:i,tools:s,materials:c,clientId:w}),t&&React.createElement(rC,e),React.createElement(gC,e))}),fC=[{attributes:qt,save(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,timeIn:c,estCost:u,cost:p,currencyType:d,mainimage:b,toolsTitle:g,stepsTitle:m,materialTitle:y,tools:f,materials:h,schema:v,showTotaltime:_,showEstcost:T,showTools:C,showMaterials:S}=t;let k="",w="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(k=t.mainimage.url,w=t.mainimage.title);let P="";if(""!==k){const e=t.mainimage.sizes,a=t.imgSize;P=void 0!==e&&void 0!==e[a]?e[a].url:k}let x="";return b&&b.url&&(x=React.createElement("img",{className:"uagb-howto__source-image",src:P,title:w})),React.createElement("div",{className:Be()(a,"uagb-block-"+l)},React.createElement("script",{type:"application/ld+json"},v),React.createElement("div",{className:"uagb-how-to-main-wrap"},React.createElement("div",{className:"uagb-howto__wrap"},React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),b.url&&React.createElement("div",{className:"uagb-howto__source-wrap"},x),_&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(ge.RichText.Content,{value:s,tagName:"p",className:"uagb-howto-timeNeeded-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:c,className:"uagb-howto-timeINmin-text"})),T&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:u,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:p,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:d,className:"uagb-howto-estcost-type"}))),C&&React.createElement("div",{className:"uagb-how-to-tools__wrap"},React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-tools-text"})),C&&React.createElement("div",{className:"uagb-tools__wrap"},f.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-tools-"+t,"uagb-how-to-tools-child__wrapper"),key:t},React.createElement("div",{className:"uagb-tools"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"}))))),S&&React.createElement("div",{className:"uagb-how-to-materials__wrap"},React.createElement(ge.RichText.Content,{value:y,tagName:"h4",className:"uagb-howto-req-materials-text"})),S&&React.createElement("div",{className:"uagb-how-to-materials"},h.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-materials-"+t,"uagb-how-to-materials-child__wrapper")},React.createElement("div",{className:"uagb-materials"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"}))))),React.createElement("div",{className:"uagb-how-to-steps__wrap"},React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement("div",{className:"uagb-howto-steps__wrap"},React.createElement(ge.InnerBlocks.Content,null)))))}},{attributes:qt,save(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,timeIn:c,estCost:u,cost:p,currencyType:d,mainimage:b,toolsTitle:g,stepsTitle:m,materialTitle:y,tools:f,materials:h,schema:v,showTotaltime:_,showEstcost:T,showTools:C,showMaterials:S,timeInMins:k,timeInHours:w,timeInDays:P,timeInMonths:x,timeInYears:A}=t;let G="",M="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(G=t.mainimage.url,M=t.mainimage.title);let R="";if(""!==G){const e=t.mainimage.sizes,a=t.imgSize;R=void 0!==e&&void 0!==e[a]?e[a].url:G}let B="";b&&b.url&&(B=React.createElement("img",{className:"uagb-howto__source-image",src:R,title:M}));const U=A>1?" Years ":" Year ",E=x>1?" Months ":" Month ",O=P>1?" Days ":" Day ",L=w>1?"Hours ":" Hour ",H=k||s,F=H>1?" Minutes ":" Minute ";return React.createElement("div",{className:Be()(a,"uagb-block-"+l)},React.createElement("script",{type:"application/ld+json"},v),React.createElement("div",{className:"uagb-how-to-main-wrap"},React.createElement("div",{className:"uagb-howto__wrap"},React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),b.url&&React.createElement("div",{className:"uagb-howto__source-wrap"},B),_&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(React.Fragment,null,A&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",A),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",U)),x&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},x),React.createElement("p",{className:"uagb-howto-timeINmin-text"},E)),P&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},P),React.createElement("p",{className:"uagb-howto-timeINmin-text"},O)),w&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},w),React.createElement("p",{className:"uagb-howto-timeINmin-text"},L)),H&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},H),React.createElement("p",{className:"uagb-howto-timeINmin-text"},F)))),T&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:u,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:p,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:d,className:"uagb-howto-estcost-type"}))),C&&React.createElement("div",{className:"uagb-how-to-tools__wrap"},React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-tools-text"})),C&&React.createElement("div",{className:"uagb-tools__wrap"},f.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-tools-"+t,"uagb-how-to-tools-child__wrapper"),key:t},React.createElement("div",{className:"uagb-tools"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"}))))),S&&React.createElement("div",{className:"uagb-how-to-materials__wrap"},React.createElement(ge.RichText.Content,{value:y,tagName:"h4",className:"uagb-howto-req-materials-text"})),S&&React.createElement("div",{className:"uagb-how-to-materials"},h.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-materials-"+t,"uagb-how-to-materials-child__wrapper")},React.createElement("div",{className:"uagb-materials"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"}))))),React.createElement("div",{className:"uagb-how-to-steps__wrap"},React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement("div",{className:"uagb-howto-steps__wrap"},React.createElement(ge.InnerBlocks.Content,null)))))}},{attributes:qt,save(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,estCost:c,cost:u,currencyType:p,mainimage:d,toolsTitle:b,stepsTitle:g,materialTitle:m,tools:y,materials:f,schema:h,showTotaltime:v,showEstcost:_,showTools:T,showMaterials:C,timeInMins:S,timeInHours:k,timeInDays:w,timeInMonths:P,timeInYears:x}=t;let A="",G="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(A=t.mainimage.url,G=t.mainimage.title);let M="";if(""!==A){const e=t.mainimage.sizes,a=t.imgSize;M=void 0!==e&&void 0!==e[a]?e[a].url:A}let R="";d&&d.url&&(R=React.createElement("img",{className:"uagb-howto__source-image",src:M,title:G,alt:""}));const B=us(x,"timeInYears","how-to")>1?" Years ":" Year ",U=us(P,"timeInMonths","how-to")>1?" Months ":" Month ",E=us(w,"timeInDays","how-to")>1?" Days ":" Day ",O=us(k,"timeInHours","how-to")>1?"Hours ":" Hour ",L=us(S,"timeInMins","how-to")?us(S,"timeInMins","how-to"):s,H=L>1?" Minutes ":" Minute ";return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-how-to-main-wrap")},React.createElement("script",{type:"application/ld+json"},h),React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),R,v&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(React.Fragment,null,us(x,"timeInYears","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",us(x,"timeInYears","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",B)),us(P,"timeInMonths","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(P,"timeInMonths","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},U)),us(w,"timeInDays","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(w,"timeInDays","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},E)),us(k,"timeInHours","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(k,"timeInHours","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},O)),L&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},L),React.createElement("p",{className:"uagb-howto-timeINmin-text"},H)))),_&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:u,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:p,className:"uagb-howto-estcost-type"})),T&&React.createElement(ge.RichText.Content,{value:b,tagName:"h4",className:"uagb-howto-req-tools-text"}),T&&React.createElement(React.Fragment,null,y.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label "+t,key:t}))),C&&React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-materials-text"}),C&&React.createElement(React.Fragment,null,f.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label "+t,key:t}))),React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement(ge.InnerBlocks.Content,null))}}];let hC={};hC=Object(F.applyFilters)("uagb/how-to",ss(hC)),Object(de.registerBlockType)("uagb/how-to",{...hC,title:Object(r.__)("How To","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add instructions/steps on processes using how to block.","ultimate-addons-for-gutenberg"),icon:se.how_to,keywords:[Object(r.__)("how to","ultimate-addons-for-gutenberg"),Object(r.__)("schema","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:qt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"how-to"}):React.createElement(yC,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,estCost:c,cost:u,currencyType:p,mainimage:d,toolsTitle:b,stepsTitle:g,materialTitle:m,tools:y,materials:f,schema:h,showTotaltime:v,showEstcost:_,showTools:T,showMaterials:C,timeInMins:S,timeInHours:k,timeInDays:w,timeInMonths:P,timeInYears:x,imgTagHeight:A,imgTagWidth:G}=t;let M="",R="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(M=t.mainimage.url,R=t.mainimage.title);let B="";if(""!==M){const e=t.mainimage.sizes,a=t.imgSize;B=void 0!==e&&void 0!==e[a]?e[a].url:M}const U=d&&null!=d&&d.alt?null==d?void 0:d.alt:"";let E="";d&&d.url&&(E=React.createElement("img",{className:"uagb-howto__source-image",src:B,title:R,width:G,height:A,loading:"lazy",alt:U}));const O=us(x,"timeInYears","how-to")>1?" Years ":" Year ",L=us(P,"timeInMonths","how-to")>1?" Months ":" Month ",H=us(w,"timeInDays","how-to")>1?" Days ":" Day ",F=us(k,"timeInHours","how-to")>1?"Hours ":" Hour ",j=us(S,"timeInMins","how-to")?us(S,"timeInMins","how-to"):s,z=j>1?" Minutes ":" Minute ";return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-how-to-main-wrap")},React.createElement("script",{type:"application/ld+json"},h),React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),E,v&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(React.Fragment,null,us(x,"timeInYears","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",us(x,"timeInYears","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",O)),us(P,"timeInMonths","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(P,"timeInMonths","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},L)),us(w,"timeInDays","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(w,"timeInDays","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},H)),us(k,"timeInHours","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(k,"timeInHours","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},F)),j&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},j),React.createElement("p",{className:"uagb-howto-timeINmin-text"},z)))),_&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:u,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:p,className:"uagb-howto-estcost-type"})),T&&React.createElement(ge.RichText.Content,{value:b,tagName:"h4",className:"uagb-howto-req-tools-text"}),T&&React.createElement(React.Fragment,null,y.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label "+t,key:t}))),C&&React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-materials-text"}),C&&React.createElement(React.Fragment,null,f.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label "+t,key:t}))),React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement(ge.InnerBlocks.Content,null))},deprecated:fC});let vC=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}];var _C,TC=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{url:l,urlType:i,image:o,imageSize:n,urlText:s,urlFontSize:c,urlFontSizeType:u,urlFontSizeMobile:p,urlFontSizeTablet:d,urlFontFamily:b,urlFontWeight:g,urlLoadGoogleFonts:m,titleFontSize:y,titleFontSizeType:f,titleFontSizeMobile:h,titleFontSizeTablet:v,titleFontFamily:_,titleFontWeight:T,titleLoadGoogleFonts:C,descriptionFontSize:S,descriptionFontSizeType:k,descriptionFontSizeMobile:w,descriptionFontSizeTablet:P,descriptionFontFamily:x,descriptionFontWeight:A,descriptionLoadGoogleFonts:G,urlTarget:M,imgPosition:R,titleColor:B,descriptionColor:U,urlColor:E,urlFontStyle:O,urlTransform:L,urlDecoration:H,titleFontStyle:F,titleTransform:z,titleDecoration:D,descriptionFontStyle:N,descriptionTransform:I,descriptionDecoration:V,titleLetterSpacing:W,titleLetterSpacingTablet:q,titleLetterSpacingMobile:Z,titleLetterSpacingType:$,descriptionLetterSpacing:Y,descriptionLetterSpacingTablet:K,descriptionLetterSpacingMobile:J,descriptionLetterSpacingType:X,titleLineHeight:Q,titleLineHeightTablet:ee,titleLineHeightMobile:te,titleLineHeightType:ae,descriptionLineHeight:le,descriptionLineHeightType:ie,descriptionLineHeightTablet:oe,descriptionLineHeightMobile:ne,urlLineHeight:re,urlLineHeightTablet:se,urlLineHeightMobile:ce,urlLineHeightType:ue,urlLetterSpacing:pe,urlLetterSpacingTablet:de,urlLetterSpacingMobile:be,urlLetterSpacingType:me}=t;return vC.map(e=>(e.label=e.label.replace(/\w/,e=>e.toUpperCase()),e)),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{initialOpen:!0,title:Object(r.__)("Image","ultimate-addons-for-gutenberg")},React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?(e.sizes&&(vC=j(e.sizes)),a({image:e})):a({image:null})},backgroundImage:o,onRemoveImage:()=>{a({image:""})},disableLabel:!0}),o&&"null"!==o.url&&""!==o.url&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:n,label:"imageSize"},setAttributes:a,options:vC}),React.createElement(Pi,{label:Object(r.__)("Select Position","ultimate-addons-for-gutenberg"),data:{value:R,label:"imgPosition"},setAttributes:a,options:[{value:"above-title",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")},{value:"left-title",label:Object(r.__)("Left of Title","ultimate-addons-for-gutenberg")},{value:"right-title",label:Object(r.__)("Right of Title","ultimate-addons-for-gutenberg")}]}))),React.createElement(je,{title:Object(r.__)("Add Link","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:i,label:"urlType"},setAttributes:a,options:[{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"all",label:Object(r.__)("Complete Box","ultimate-addons-for-gutenberg")},{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")}]}),"text"===i&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"urlText"},setAttributes:a,onChange:e=>a({urlText:e})})),"none"!==i&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:l,data:{value:l,label:"url"},setAttributes:a,onChange:e=>a({url:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:M,onChange:()=>a({urlTarget:!M})})))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:C,label:"titleLoadGoogleFonts"},fontFamily:{value:_,label:"titleFontFamily"},fontWeight:{value:T,label:"titleFontWeight"},fontStyle:{value:F,label:"titleFontStyle"},transform:{value:z,label:"titleTransform"},decoration:{value:D,label:"titleDecoration"},fontSizeType:{value:f,label:"titleFontSizeType"},fontSize:{value:y,label:"titleFontSize"},fontSizeMobile:{value:h,label:"titleFontSizeMobile"},fontSizeTablet:{value:v,label:"titleFontSizeTablet"},lineHeightType:{value:ae,label:"titleLineHeightType"},lineHeight:{value:Q,label:"titleLineHeight"},lineHeightMobile:{value:te,label:"titleLineHeightMobile"},lineHeightTablet:{value:ee,label:"titleLineHeightTablet"},letterSpacing:{value:W,label:"titleLetterSpacing"},letterSpacingTablet:{value:q,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Z,label:"titleLetterSpacingMobile"},letterSpacingType:{value:$,label:"titleLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"titleColor"},setAttributes:a})),React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:G,label:"descriptionLoadGoogleFonts"},fontFamily:{value:x,label:"descriptionFontFamily"},fontWeight:{value:A,label:"descriptionFontWeight"},fontStyle:{value:N,label:"descriptionFontStyle"},transform:{value:I,label:"descriptionTransform"},decoration:{value:V,label:"descriptionDecoration"},fontSizeType:{value:k,label:"descriptionFontSizeType"},fontSize:{value:S,label:"descriptionFontSize"},fontSizeMobile:{value:w,label:"descriptionFontSizeMobile"},fontSizeTablet:{value:P,label:"descriptionFontSizeTablet"},lineHeightType:{value:ie,label:"descriptionLineHeightType"},lineHeight:{value:le,label:"descriptionLineHeight"},lineHeightMobile:{value:ne,label:"descriptionLineHeightMobile"},lineHeightTablet:{value:oe,label:"descriptionLineHeightTablet"},letterSpacing:{value:Y,label:"descriptionLetterSpacing"},letterSpacingTablet:{value:K,label:"descriptionLetterSpacingTablet"},letterSpacingMobile:{value:J,label:"descriptionLetterSpacingMobile"},letterSpacingType:{value:X,label:"descriptionLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:U||"",data:{value:U,label:"descriptionColor"},setAttributes:a})),"text"===i&&React.createElement(je,{title:Object(r.__)("Link","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:m,label:"urlLoadGoogleFonts"},fontFamily:{value:b,label:"urlFontFamily"},fontWeight:{value:g,label:"urlFontWeight"},fontStyle:{value:O,label:"urlFontStyle"},transform:{value:L,label:"urlTransform"},decoration:{value:H,label:"urlDecoration"},fontSizeType:{value:u,label:"urlFontSizeType"},fontSize:{value:c,label:"urlFontSize"},fontSizeMobile:{value:p,label:"urlFontSizeMobile"},fontSizeTablet:{value:d,label:"urlFontSizeTablet"},lineHeightType:{value:ue,label:"urlLineHeightType"},lineHeight:{value:re,label:"urlLineHeight"},lineHeightMobile:{value:ce,label:"urlLineHeightMobile"},lineHeightTablet:{value:se,label:"urlLineHeightTablet"},letterSpacing:{value:pe,label:"urlLetterSpacing"},letterSpacingTablet:{value:de,label:"urlLetterSpacingTablet"},letterSpacingMobile:{value:be,label:"urlLetterSpacingMobile"},letterSpacingType:{value:me,label:"urlLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:E||"",data:{value:E,label:"urlColor"},setAttributes:a}))),React.createElement(il,rl))))}),CC=a(124),SC=0,kC={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},wC={};wC.locals=CC.a.locals||{},wC.use=function(){return SC++||(_C=we()(CC.a,kC)),wC},wC.unuse=function(){SC>0&&!--SC&&(_C(),_C=null)};var PC=wC,xC=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(PC.use(),()=>{PC.unuse()}),[]);const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,deviceType:n}=e,{block_id:s,name:c,description:u,url:p,urlType:d,image:b,imageSize:g,urlText:m,urlTarget:y,imgPosition:f,imgTagHeight:h,imgTagWidth:v}=t;let _="";null!=b&&""!==b&&(_=b.url);let T="";if(""!==_){const e=b.sizes;T=void 0!==e&&void 0!==e[g]?e[g].url:_}let C="_self";y&&(C="_blank"),Object(B.useEffect)(()=>{Zg(T,a)},[T]);const S=(null==b?void 0:b.alt)||"",k=React.createElement("img",{className:"uagb-how-to-step-image",src:T,alt:S,width:v,height:h,loading:"lazy"}),w=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText,{tagName:"div",className:"uagb-how-to-step-name",placeholder:Object(r.__)("Name","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({name:e}),multiline:!1}),React.createElement(ge.RichText,{tagName:"p",value:u,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-how-to-step-description",onChange:e=>a({description:e}),onMerge:l,onSplit:i?function(e,t){a({description:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])}),"text"===d&&React.createElement(React.Fragment,null,""!==p?React.createElement("a",{href:p,target:C,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},m)):React.createElement("span",{className:"uagb-step-link-text"},m)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-editor-preview-mode-"+n.toLowerCase(),"uagb-block-"+s)},("all"===d||"none"===d)&&React.createElement(React.Fragment,null,""!==p&&"all"===d&&React.createElement("a",{className:"uagb-step-link","aria-label":"Step Link",rel:"noopener noreferrer",target:C}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+f},T&&k,w)),"text"===d&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+f},T&&k,w))}),AC=Object(B.memo)(e=>{let{attributes:t}=e;const{urlLoadGoogleFonts:a,urlFontFamily:l,urlFontWeight:i,titleLoadGoogleFonts:o,titleFontFamily:n,titleFontWeight:r,descriptionLoadGoogleFonts:s,descriptionFontFamily:c,descriptionFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),GC=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,clientId:l,deviceType:i}=e,o=Object(B.useMemo)(()=>function(e,t,a){const l=a.toLowerCase(),{urlFontSize:i,urlFontSizeType:o,urlFontSizeMobile:n,urlFontSizeTablet:r,urlFontFamily:s,urlFontWeight:c,titleFontSize:u,titleFontSizeType:p,titleFontSizeMobile:d,titleFontSizeTablet:b,titleFontFamily:g,titleFontWeight:m,descriptionFontSize:y,descriptionFontSizeType:f,descriptionFontSizeMobile:h,descriptionFontSizeTablet:v,descriptionFontFamily:_,descriptionFontWeight:T,titleColor:C,descriptionColor:S,urlColor:k,urlFontStyle:w,urlTransform:P,urlDecoration:x,titleFontStyle:A,titleTransform:G,titleDecoration:M,descriptionFontStyle:R,descriptionTransform:B,descriptionDecoration:U,titleLetterSpacing:E,titleLetterSpacingTablet:O,titleLetterSpacingMobile:L,titleLetterSpacingType:H,descriptionLetterSpacing:F,descriptionLetterSpacingTablet:j,descriptionLetterSpacingMobile:z,descriptionLetterSpacingType:D,titleLineHeight:N,titleLineHeightTablet:I,titleLineHeightMobile:V,titleLineHeightType:W,descriptionLineHeight:q,descriptionLineHeightType:Z,descriptionLineHeightTablet:$,descriptionLineHeightMobile:Y,urlLineHeight:K,urlLineHeightTablet:J,urlLineHeightMobile:X,urlLineHeightType:Q,urlLetterSpacing:ee,urlLetterSpacingTablet:te,urlLetterSpacingMobile:le,urlLetterSpacingType:ie,block_id:oe}=e;let ne={},re={};const se={" .uagb-step-link-text":{color:k,"font-family":s,"font-style":w,"text-transform":P,"text-decoration":x,"font-weight":c,"font-size":Vr(i,o),"line-height":Vr(K,Q),"letter-spacing":Vr(ee,ie)}," .block-editor-rich-text__editable.uagb-how-to-step-name":{color:C,"font-family":g,"font-style":A,"text-transform":G,"text-decoration":M,"font-weight":m,"font-size":Vr(u,p),"line-height":Vr(N,W),"letter-spacing":Vr(E,H)}," .block-editor-rich-text__editable.uagb-how-to-step-description":{color:S,"font-family":_,"font-style":R,"text-transform":B,"text-decoration":U,"font-weight":T,"font-size":Vr(y,f),"line-height":Vr(q,Z),"letter-spacing":Vr(F,D)}};re={" .uagb-step-link-text":{"font-size":Vr(n,o),"line-height":Vr(X,Q),"letter-spacing":Vr(le,ie)}," .block-editor-rich-text__editable.uagb-how-to-step-name":{"font-size":Vr(d,p),"line-height":Vr(V,W),"letter-spacing":Vr(L,H)}," .block-editor-rich-text__editable.uagb-how-to-step-description":{"font-size":Vr(h,f),"line-height":Vr(Y,Z),"letter-spacing":Vr(z,D)}},ne={" .uagb-step-link-text":{"font-size":Vr(r,o),"line-height":Vr(J,Q),"letter-spacing":Vr(te,ie)}," .block-editor-rich-text__editable.uagb-how-to-step-name":{"font-size":Vr(b,p),"line-height":Vr(I,W),"letter-spacing":Vr(O,H)}," .block-editor-rich-text__editable.uagb-how-to-step-description":{"font-size":Vr(v,f),"line-height":Vr($,Z),"letter-spacing":Vr(j,D)}};const ce=".editor-styles-wrapper .uagb-block-"+oe;let ue=ae(se,ce);return"tablet"!==l&&"mobile"!==l||(ue+=ae(ne,""+ce,!0,"tablet"),"mobile"===l&&(ue+=ae(re,""+ce,!0,"mobile"))),ue}(a,0,i),[a,i]);return Object(B.useEffect)(()=>{ys()},[i]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),React.createElement(AC,{attributes:a}),t&&React.createElement(TC,e),React.createElement(xC,e))}),MC=[{attributes:{block_id:{type:"string"},name:{type:"string",default:Object(r.__)("Step","ultimate-addons-for-gutenberg")},description:{type:"string",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.")},url:{type:"string",default:"#"},urlType:{type:"string",default:"all"},urlText:{type:"string",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},urlTarget:{type:"boolean",default:!1},image:{type:"object",default:{url:"",alt:"Image Placeholder"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},urlFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},urlFontSizeType:{type:"string",UAGCopyPaste:{styleType:"prefix-font-size-type"},default:"px"},urlFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},urlFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},urlFontFamily:{type:"string",UAGCopyPaste:{styleType:"prefix-font-family"},default:"Default"},urlFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},urlFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"prefix-font-style"}},urlTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},urlDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},urlLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-fonts"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",UAGCopyPaste:{styleType:"main-title-font-size-type"},default:"px"},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleLoadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},descriptionFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descriptionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descriptionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descriptionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descriptionFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descriptionFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descriptionFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descriptionTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descriptionDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descriptionLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},imgPosition:{type:"string",default:"above-title"},titleColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},descriptionColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},urlColor:{type:"string",UAGCopyPaste:{styleType:"prefix-color"}},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLineHeightType:{type:"string",UAGCopyPaste:{styleType:"main-title-line-height-type"},default:"em"},descriptionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descriptionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descriptionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descriptionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},descriptionLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descriptionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descriptionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descriptionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},urlLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},urlLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},urlLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},urlLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},urlLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},urlLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},urlLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},urlLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}}},save(e){const{attributes:t}=e,{block_id:a,name:l,description:i,url:o,urlType:n,image:r,imageSize:s,urlText:c,urlTarget:u,imgPosition:p}=t;let d="";null!=r&&""!==r&&(d=r.url);let b="";if(""!==d){const e=r.sizes;b=void 0!==e&&void 0!==e[s]?e[s].url:d}let g="_self";u&&(g="_blank");const m=React.createElement("img",{className:"uagb-how-to-step-image",src:b,alt:r.alt}),y=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText.Content,{tagName:"div",className:"uagb-how-to-step-name",value:l}),React.createElement(ge.RichText.Content,{tagName:"p",className:"uagb-how-to-step-description",value:i}),"text"===n&&React.createElement("a",{href:o,target:g,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},c)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-block-"+a)},"all"===n&&React.createElement(React.Fragment,null,React.createElement("a",{href:o,target:g,className:"uagb-step-link-all",rel:"noopener noreferrer"}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y)),"text"===n&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y))}},{attributes:Zt,save(e){const{attributes:t}=e,{block_id:a,name:l,description:i,url:o,urlType:n,image:r,imageSize:s,urlText:c,urlTarget:u,imgPosition:p}=t;let d="";null!=r&&""!==r&&(d=r.url);let b="";if(""!==d){const e=r.sizes;b=void 0!==e&&void 0!==e[s]?e[s].url:d}let g="_self";u&&(g="_blank");const m=React.createElement("img",{className:"uagb-how-to-step-image",src:b,alt:r.alt}),y=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText.Content,{tagName:"div",className:"uagb-how-to-step-name",value:l}),React.createElement(ge.RichText.Content,{tagName:"p",className:"uagb-how-to-step-description",value:i}),"text"===n&&React.createElement(React.Fragment,null,""!==o?React.createElement("a",{href:o,target:g,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},c)):React.createElement("span",{className:"uagb-step-link-text"},c)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-block-"+a)},("all"===n||"none"===n)&&React.createElement(React.Fragment,null,""!==o&&"all"===n&&React.createElement("a",{href:o,target:g,className:"uagb-step-link-all",rel:"noopener noreferrer"}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y)),"text"===n&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y))}}];let RC={};RC=Object(F.applyFilters)("uagb/how-to-step",ss(RC)),Object(de.registerBlockType)("uagb/how-to-step",{...RC,title:Object(r.__)("Step","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add relevant content for this step.","ultimate-addons-for-gutenberg"),icon:se.how_to_step,parent:["uagb/how-to"],attributes:Zt,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"how-to-step",isChildren:!0}):React.createElement(GC,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,name:l,description:i,url:o,urlType:n,image:r,imageSize:s,urlText:c,urlTarget:u,imgPosition:p,imgTagHeight:d,imgTagWidth:b}=t;let g="";null!=r&&""!==r&&(g=r.url);let m="";if(""!==g){const e=r.sizes;m=void 0!==e&&void 0!==e[s]?e[s].url:g}let y="_self";u&&(y="_blank");const f=(null==r?void 0:r.alt)||"",h=React.createElement("img",{className:"uagb-how-to-step-image",src:m,alt:f,width:b,height:d,loading:"lazy"}),v=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText.Content,{tagName:"div",className:"uagb-how-to-step-name",value:l}),React.createElement(ge.RichText.Content,{tagName:"p",className:"uagb-how-to-step-description",value:i}),"text"===n&&React.createElement(React.Fragment,null,""!==o?React.createElement("a",{href:o,target:y,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},c)):React.createElement("span",{className:"uagb-step-link-text"},c)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-block-"+a)},("all"===n||"none"===n)&&React.createElement(React.Fragment,null,""!==o&&"all"===n&&React.createElement("a",{href:o,target:y,className:"uagb-step-link-all",rel:"noopener noreferrer"}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},m&&h,v)),"text"===n&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},m&&h,v))},deprecated:MC});const BC=[{defaultAttributes:St},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"size",value:20},{label:"bgSize",value:""},{label:"borderRadius",value:100},{label:"border",value:0},{label:"iconColor",value:"#0170B9"},{label:"iconBgColor",value:""},{label:"gap",value:10},{label:"gapTablet",value:""},{label:"gapMobile",value:""},{label:"gapType",value:"px"},{label:"inner_gap",value:15},{label:"innerGapTablet",value:""},{label:"innerGapMobile",value:""},{label:"innerGapType",value:"px"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"bgSize",value:10},{label:"size",value:20},{label:"borderRadius",value:100},{label:"border",value:0},{label:"iconColor",value:"#fff"},{label:"iconBgColor",value:"#0170B9"},{label:"gap",value:10},{label:"gapTablet",value:""},{label:"gapMobile",value:""},{label:"gapType",value:"px"},{label:"inner_gap",value:15},{label:"innerGapTablet",value:""},{label:"innerGapMobile",value:""},{label:"innerGapType",value:"px"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"bgSize",value:10},{label:"size",value:20},{label:"borderRadius",value:100},{label:"border",value:2},{label:"iconColor",value:"#0170B9"},{label:"iconBorderColor",value:"#0170B9"},{label:"iconBgColor",value:""},{label:"gap",value:10},{label:"gapTablet",value:""},{label:"gapMobile",value:""},{label:"gapType",value:"px"},{label:"inner_gap",value:15},{label:"innerGapTablet",value:""},{label:"innerGapMobile",value:""},{label:"innerGapType",value:"px"}],icon:' '}];var UC=Object(F.applyFilters)("uag_icon_list_presets",BC);function EC(){return(EC=Object.assign||function(e){for(var t=1;t{const{attributes:t,deviceType:a,setAttributes:l,clientId:i}=e,{align:o,alignTablet:s,alignMobile:c,gap:u,gapTablet:p,gapMobile:d,gapType:b,inner_gap:g,innerGapTablet:m,innerGapMobile:y,innerGapType:f,icon_layout:h,iconLayoutTablet:v,iconLayoutMobile:_,iconPosition:T,iconPositionTablet:C,iconPositionMobile:S,iconPlacement:k,size:w,sizeType:P,sizeMobile:x,sizeTablet:A,hideLabel:G,borderRadius:M,borderRadiusTablet:R,borderRadiusMobile:B,borderRadiusType:U,bgSize:E,bgSizeType:O,bgSizeTablet:L,bgSizeMobile:H,border:F,borderTablet:j,borderMobile:z,borderType:D,fontSize:N,fontSizeType:I,fontSizeMobile:V,fontSizeTablet:W,fontFamily:q,fontWeight:Z,lineHeight:$,lineHeightType:Y,lineHeightMobile:K,lineHeightTablet:J,loadGoogleFonts:X,fontStyle:Q,fontTransform:ee,fontDecoration:te,labelLetterSpacing:ae,labelLetterSpacingTablet:le,labelLetterSpacingMobile:ie,labelLetterSpacingType:oe,iconColor:ne,labelColor:re,iconHoverColor:se,labelHoverColor:ce,iconBgColor:ue,iconBgHoverColor:pe,iconBorderColor:de,iconBorderHoverColor:be,blockTopMargin:me,blockRightMargin:ye,blockLeftMargin:fe,blockBottomMargin:he,blockTopMarginTablet:ve,blockRightMarginTablet:_e,blockLeftMarginTablet:Te,blockBottomMarginTablet:Se,blockTopMarginMobile:ke,blockRightMarginMobile:we,blockLeftMarginMobile:Pe,blockBottomMarginMobile:xe,blockMarginUnit:Ae,blockMarginUnitTablet:Ge,blockMarginUnitMobile:Me,blockMarginLink:Re,parentIcon:Be,blockTopPadding:Ue,blockRightPadding:Oe,blockLeftPadding:He,blockBottomPadding:Fe,blockTopPaddingTablet:ze,blockRightPaddingTablet:De,blockLeftPaddingTablet:Ne,blockBottomPaddingTablet:Ie,blockTopPaddingMobile:Ve,blockRightPaddingMobile:We,blockLeftPaddingMobile:qe,blockBottomPaddingMobile:Ze,blockPaddingUnit:$e,blockPaddingUnitTablet:Ye,blockPaddingUnitMobile:Ke,blockPaddingLink:Je}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Be,onChange:e=>l({parentIcon:e})})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:l,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"icon_layout"},tablet:{value:v,label:"iconLayoutTablet"},mobile:{value:_,label:"iconLayoutMobile"}},options:[{value:"horizontal",label:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},{value:"vertical",label:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")}],showIcons:!1,responsive:!0}),React.createElement(Na,{setAttributes:l,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:o,label:"align"},tablet:{value:s,label:"alignTablet"},mobile:{value:c,label:"alignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),!G&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:l,label:Object(r.__)("Icon Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:T,label:"iconPosition"},tablet:{value:C,label:"iconPositionTablet"},mobile:{value:S,label:"iconPositionMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:"Top"},{value:"middle",label:"Middle"}],showIcons:!1,help:Object(r.__)("Note: This manages the Icon Position with respect to the Label.","ultimate-addons-for-gutenberg"),responsive:!0})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide Labels","ultimate-addons-for-gutenberg"),checked:G,onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.hideLabel=e}),l({hideLabel:e})})(e)}),!G&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:l,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:k,label:"iconPlacement"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:"Before"},{value:"after",label:"After"}],showIcons:!1}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:l,presets:UC,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Icon/Image","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:w,label:"size"},tablet:{value:A,label:"sizeTablet"},mobile:{value:x,label:"sizeMobile"}},min:0,max:200,unit:{value:P,label:"sizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:l}),React.createElement(tl,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:E,label:"bgSize"},tablet:{value:L,label:"bgSizeTablet"},mobile:{value:H,label:"bgSizeMobile"}},setAttributes:l,min:0,max:50,unit:{value:O,label:"bgSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],help:Object(r.__)("Note: Background Size option is useful when one adds background color to the icons.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Border","ultimate-addons-for-gutenberg"),data:{desktop:{value:F,label:"border"},tablet:{value:j,label:"borderTablet"},mobile:{value:z,label:"borderMobile"}},min:0,max:10,unit:{value:D,label:"borderType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l}),(ue||pe||F||j||z)&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:M,label:"borderRadius"},tablet:{value:R,label:"borderRadiusTablet"},mobile:{value:B,label:"borderRadiusMobile"}},min:0,max:100,unit:{value:U,label:"borderRadiusType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l,help:Object(r.__)("Note: Border Radius option is useful when one adds background color or border to the icons.","ultimate-addons-for-gutenberg")})),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:ne||"",data:{value:ne,label:"iconColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ue||"",data:{value:ue,label:"iconBgColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:de||"",data:{value:de,label:"iconBorderColor"},setAttributes:l})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:se||"",data:{value:se,label:"iconHoverColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:pe||"",data:{value:pe,label:"iconBgHoverColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"iconBorderHoverColor"},setAttributes:l})),disableBottomSeparator:!0})),!G&&React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Gap between Icon and Label","ultimate-addons-for-gutenberg"),data:{desktop:{value:g,label:"inner_gap"},tablet:{value:m,label:"innerGapTablet"},mobile:{value:y,label:"innerGapMobile"}},min:-100,max:100,unit:{value:f,label:"innerGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:re,data:{value:re,label:"labelColor"},setAttributes:l}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ce,data:{value:ce,label:"labelHoverColor"},setAttributes:l})}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:l,loadGoogleFonts:{value:X,label:"loadGoogleFonts"},fontFamily:{value:q,label:"fontFamily"},fontWeight:{value:Z,label:"fontWeight"},fontStyle:{value:Q,label:"fontStyle"},transform:{value:ee,label:"fontTransform"},decoration:{value:te,label:"fontDecoration"},fontSizeType:{value:I,label:"fontSizeType"},fontSize:{value:N,label:"fontSize"},fontSizeMobile:{value:V,label:"fontSizeMobile"},fontSizeTablet:{value:W,label:"fontSizeTablet"},lineHeightType:{value:Y,label:"lineHeightType"},lineHeight:{value:$,label:"lineHeight"},lineHeightMobile:{value:K,label:"lineHeightMobile"},lineHeightTablet:{value:J,label:"lineHeightTablet"},letterSpacing:{value:ae,label:"labelLetterSpacing"},letterSpacingTablet:{value:le,label:"labelLetterSpacingTablet"},letterSpacingMobile:{value:ie,label:"labelLetterSpacingMobile"},letterSpacingType:{value:oe,label:"labelLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Gap between Items","ultimate-addons-for-gutenberg"),data:{desktop:{value:u,label:"gap"},tablet:{value:p,label:"gapTablet"},mobile:{value:d,label:"gapMobile"}},min:0,max:100,unit:{value:b,label:"gapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l,help:Object(r.__)("Note: For better editing experience, the gap between items might look larger than applied. Viewing in frontend will show the actual results.","ultimate-addons-for-gutenberg")}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:me,label:"blockTopMargin"},valueRight:{value:ye,label:"blockRightMargin"},valueBottom:{value:he,label:"blockBottomMargin"},valueLeft:{value:fe,label:"blockLeftMargin"},valueTopTablet:{value:ve,label:"blockTopMarginTablet"},valueRightTablet:{value:_e,label:"blockRightMarginTablet"},valueBottomTablet:{value:Se,label:"blockBottomMarginTablet"},valueLeftTablet:{value:Te,label:"blockLeftMarginTablet"},valueTopMobile:{value:ke,label:"blockTopMarginMobile"},valueRightMobile:{value:we,label:"blockRightMarginMobile"},valueBottomMobile:{value:xe,label:"blockBottomMarginMobile"},valueLeftMobile:{value:Pe,label:"blockLeftMarginMobile"},unit:{value:Ae,label:"blockMarginUnit"},mUnit:{value:Me,label:"blockMarginUnitMobile"},tUnit:{value:Ge,label:"blockMarginUnitTablet"},deviceType:a,attributes:t,setAttributes:l,link:{value:Re,label:"blockMarginLink"}}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ue,label:"blockTopPadding"},valueRight:{value:Oe,label:"blockRightPadding"},valueBottom:{value:Fe,label:"blockBottomPadding"},valueLeft:{value:He,label:"blockLeftPadding"},valueTopTablet:{value:ze,label:"blockTopPaddingTablet"},valueRightTablet:{value:De,label:"blockRightPaddingTablet"},valueBottomTablet:{value:Ie,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:Ne,label:"blockLeftPaddingTablet"},valueTopMobile:{value:Ve,label:"blockTopPaddingMobile"},valueRightMobile:{value:We,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Ze,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:qe,label:"blockLeftPaddingMobile"},unit:{value:$e,label:"blockPaddingUnit"},mUnit:{value:Ke,label:"blockPaddingUnitMobile"},tUnit:{value:Ye,label:"blockPaddingUnitTablet"},deviceType:a,attributes:t,setAttributes:l,link:{value:Je,label:"blockPaddingLink"}}))),React.createElement(il,EC({},rl,{parentProps:e})))))}),HC=a(125),FC=0,jC={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},zC={};zC.locals=HC.a.locals||{},zC.use=function(){return FC++||(OC=we()(HC.a,jC)),zC},zC.unuse=function(){FC>0&&!--FC&&(OC(),OC=null)};var DC=zC;const NC=["uagb/icon-list-child"];var IC=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(DC.use(),()=>{DC.unuse()}),[]);const{attributes:t,deviceType:a}=e,{className:l,icon_count:i,block_id:o}=t,n=Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)}),WC=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:r,name:s,deviceType:c}=e;Object(B.useEffect)(()=>{ys()},[c]);const u=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{align:n,alignTablet:r,alignMobile:s,gap:c,gapTablet:u,gapMobile:p,gapType:d,inner_gap:b,innerGapTablet:g,innerGapMobile:m,innerGapType:y,icon_layout:f,iconLayoutTablet:h,iconLayoutMobile:v,size:_,sizeType:T,sizeTablet:C,sizeMobile:S,fontSize:k,fontSizeType:w,fontSizeMobile:P,fontSizeTablet:x,fontFamily:A,fontWeight:G,lineHeightType:M,lineHeight:R,lineHeightTablet:B,lineHeightMobile:U,border:E,borderTablet:O,borderMobile:L,borderType:H,bgSize:F,bgSizeType:j,bgSizeTablet:z,bgSizeMobile:D,borderRadius:N,borderRadiusTablet:I,borderRadiusMobile:V,borderRadiusType:W,fontStyle:q,fontTransform:Z,fontDecoration:$,iconPosition:Y,iconPositionTablet:K,iconPositionMobile:J,hideLabel:X,labelLetterSpacing:Q,labelLetterSpacingTablet:ee,labelLetterSpacingMobile:te,labelLetterSpacingType:le,iconColor:ie,labelColor:oe,iconHoverColor:ne,labelHoverColor:re,iconBgColor:se,iconBgHoverColor:ce,iconBorderColor:ue,iconBorderHoverColor:pe,iconPlacement:de,blockTopMargin:be,blockRightMargin:ge,blockLeftMargin:me,blockBottomMargin:ye,blockTopMarginTablet:fe,blockRightMarginTablet:he,blockLeftMarginTablet:ve,blockBottomMarginTablet:_e,blockTopMarginMobile:Te,blockRightMarginMobile:Ce,blockLeftMarginMobile:Se,blockBottomMarginMobile:ke,blockMarginUnit:we,blockMarginUnitTablet:Pe,blockMarginUnitMobile:xe,blockTopPadding:Ae,blockRightPadding:Ge,blockLeftPadding:Me,blockBottomPadding:Re,blockTopPaddingTablet:Be,blockRightPaddingTablet:Ue,blockLeftPaddingTablet:Ee,blockBottomPaddingTablet:Oe,blockTopPaddingMobile:Le,blockRightPaddingMobile:He,blockLeftPaddingMobile:Fe,blockBottomPaddingMobile:je,blockPaddingUnit:ze,blockPaddingUnitTablet:De,blockPaddingUnitMobile:Ne,block_id:Ie}=e,Ve=us(c,"gap",i),We=us(F,"bgSize",i),qe=us(N,"borderRadius",i),Ze=us(I,"borderRadiusTablet",i),$e=us(V,"borderRadiusMobile",i),Ye=us(E,"border",i),Ke=us(_,"size",i),Je=us(b,"inner_gap",i),Xe=us(g,"innerGapTablet",i),Qe=us(m,"innerGapMobile",i),et=isNaN(C)?Ke:C,tt=isNaN(S)?et:S,at=isNaN(z)?We:z,lt=isNaN(D)?at:D,it=isNaN(O)?Ye:O,ot=isNaN(L)?it:L,nt=isNaN(u)?Ve:u,rt=isNaN(p)?nt:p;let st={},ct={},ut={},pt="";pt="left"===n?"flex-start":"right"===n?"flex-end":"center";let dt=pt;"left"===r?dt="flex-start":"right"===r?dt="flex-end":"center"===r&&(dt="center");let bt=dt;"left"===s?bt="flex-start":"right"===s?bt="flex-end":"center"===s&&(bt="center");const gt=f,mt=h||gt,yt=v||mt,ft="top"===Y?"flex-start":"center";let ht="",vt="";ht="top"===K?"flex-start":"middle"===K?"center":ft,vt="top"===J?"flex-start":"middle"===J?"center":ht,st={" .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap":{background:se,"border-color":ue,padding:Vr(We,j),"border-radius":Vr(qe,W),"border-style":0===Ye||void 0===Ye?"none":"solid","border-width":Vr(Ye,H),"align-self":ft}," .uagb-icon-list__source-image":{width:Vr(Ke,T)}," .uagb-icon-list__wrap .block-editor-inner-blocks":{"text-align":n,"margin-top":Vr(be,we),"margin-right":Vr(ge,we),"margin-bottom":Vr(ye,we),"margin-left":Vr(me,we),"padding-top":Vr(Ae,ze),"padding-right":Vr(Ge,ze),"padding-bottom":Vr(Re,ze),"padding-left":Vr(Me,ze)}," .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap svg":{color:ie,fill:ie}," .wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap svg":{color:ne,fill:ne}," .wp-block-uagb-icon-list-child .uagb-icon-list__label":{color:oe}," .wp-block-uagb-icon-list-child:hover .uagb-icon-list__label":{color:re}," .wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap":{background:ce,"border-color":pe}},ct={" .uagb-icon-list__source-image":{width:Vr(et,T)}," .uagb-icon-list__wrap .block-editor-inner-blocks":{"text-align":r,"margin-top":Vr(fe,Pe),"margin-right":Vr(he,Pe),"margin-bottom":Vr(_e,Pe),"margin-left":Vr(ve,Pe),"padding-top":Vr(Be,De),"padding-right":Vr(Ue,De),"padding-bottom":Vr(Oe,De),"padding-left":Vr(Ee,De)}},ut={" .uagb-icon-list__source-image":{width:Vr(tt,T)}," .uagb-icon-list__wrap .block-editor-inner-blocks":{"text-align":s,"margin-top":Vr(Te,xe),"margin-right":Vr(Ce,xe),"margin-bottom":Vr(ke,xe),"margin-left":Vr(Se,xe),"padding-top":Vr(Le,Ne),"padding-right":Vr(He,Ne),"padding-bottom":Vr(je,Ne),"padding-left":Vr(Fe,Ne)}},st[" .uagb-icon-list__source-wrap svg"]={width:Vr(Ke,T),height:Vr(Ke,T),"font-size":Vr(Ke,T)},ct[" .uagb-icon-list__source-wrap svg"]={width:Vr(et,T),height:Vr(et,T),"font-size":Vr(et,T)},ut[" .uagb-icon-list__source-wrap svg"]={width:Vr(tt,T),height:Vr(tt,T),"font-size":Vr(tt,T)},"horizontal"===gt?(st[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"justify-content":pt,"-webkit-box-pack":pt,"-ms-flex-pack":pt,"align-items":"center",display:"inline-flex","flex-direction":"row"},st[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]']={"margin-right":Vr(Ve/2,d)},st[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]:not(:first-child)']={"margin-left":Vr(Ve/2,d)}):"vertical"===gt&&(st[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"flex-direction":"column"},st[' .wp-block[data-type="uagb/icon-list-child"]']={display:"block","margin-left":0,"margin-right":0,"margin-bottom":Vr(Ve,d)}),"horizontal"===mt?(ct[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"justify-content":dt,"-webkit-box-pack":dt,"-ms-flex-pack":dt,"align-items":"center",display:"inline-flex","flex-direction":"row"},ct[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]']={"margin-right":Vr(nt/2,d)},ct[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]:not(:first-child)']={"margin-left":Vr(nt/2,d)}):"vertical"===mt&&(ct[' .wp-block[data-type="uagb/icon-list-child"]']={"margin-left":"0 !important","margin-right":"0 !important","margin-bottom":Vr(nt,d)},ct[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"flex-direction":"column","align-items":"flex-start"}),"horizontal"===yt?(ut[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"justify-content":bt,"-webkit-box-pack":bt,"-ms-flex-pack":bt,"align-items":"center",display:"inline-flex","flex-direction":"row"},ut[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]']={"margin-right":Vr(rt/2,d)},ut[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]:not(:first-child)']={"margin-left":Vr(rt/2,d)}):"vertical"===yt&&(ut[' .wp-block[data-type="uagb/icon-list-child"]']={display:"block","margin-left":"0 !important","margin-right":"0 !important","margin-bottom":Vr(rt,d)},ut[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"flex-direction":"column","align-items":"flex-start"}),"right"===n&&X?(st[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Je,y)},ut[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Qe,y)},ct[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Xe,y)},st[" .wp-block-uagb-icon-list-child "]={"flex-direction":"row-reverse"}):"before"!==de||X?"after"!==de||X||(st[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Je,y)},ut[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Qe,y)},ct[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Xe,y)},st[" .wp-block-uagb-icon-list-child "]={"flex-direction":"row-reverse"}):(st[" .uagb-icon-list__source-wrap"]={"margin-right":Vr(Je,y)},ut[" .uagb-icon-list__source-wrap"]={"margin-right":Vr(Qe,y)},ct[" .uagb-icon-list__source-wrap"]={"margin-right":Vr(Xe,y)}),st[" .wp-block-uagb-icon-list-child .uagb-icon-list__label"]={"font-size":Vr(k,w),"font-family":A,"font-style":q,"text-decoration":$,"text-transform":Z,"font-weight":G,"line-height":Vr(R,M),"letter-spacing":Vr(Q,le),color:oe},ut[" .wp-block-uagb-icon-list-child .uagb-icon-list__label"]={"font-size":Vr(P,w),"line-height":Vr(U,M),"letter-spacing":Vr(te,le)},ct[" .wp-block-uagb-icon-list-child .uagb-icon-list__label"]={"font-size":Vr(x,w),"line-height":Vr(B,M),"letter-spacing":Vr(ee,le)},ut[" .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap"]={"border-radius":Vr($e,W),padding:Vr(lt,"px"),"border-style":0===ot||void 0===ot?"none":"solid","border-width":Vr(ot,H),"align-self":vt},ct[" .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap"]={"border-radius":Vr(Ze,W),padding:Vr(at,"px"),"border-style":0===it||void 0===it?"none":"solid","border-width":Vr(it,H),"align-self":ht};let _t="";const Tt=".uagb-block-"+Ie;return _t=ae(st,Tt),"tablet"!==o&&"mobile"!==o||(_t+=ae(ct,""+Tt,!0,"tablet"),"mobile"===o&&(_t+=ae(ut,""+Tt,!0,"mobile"))),_t}(a,0,s,c),[a,c]);return Object(B.useEffect)(()=>{he(e)},[l,i,o,c]),Object(B.useEffect)(()=>{var e;null===(e=Object(n.select)("core/block-editor").getBlocksByClientId(r)[0])||void 0===e||e.innerBlocks.forEach((function(e){Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{fromParentIcon:a.parentIcon,hideLabel:a.hideLabel,imageSizeChild:a.size})}))},[a.parentIcon,a.hideLabel,a.size]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:u}),React.createElement(VC,{attributes:a}),t&&React.createElement(LC,e),React.createElement(IC,e))}),qC=[{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,disableLink:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:Be()(e.icon,"uagb-icon-list__source-icon")})):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=s?"javascript:void(0);":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,disableLink:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=s?"javascript:void(0);":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,iconPosition:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,"top"==s?"uagb-icon-list__icon-at-top":"",c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=e.disableLink?"javascript:void(0);":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,iconPosition:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,"top"==s?"uagb-icon-list__icon-at-top":"",c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=e.disableLink?"/":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,iconPosition:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,"top"==s?"uagb-icon-list__icon-at-top":"",c,"uagb-block-"+l)},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon&&e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))),e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=e.disableLink?"/":e.link;return e.disableLink?React.createElement("div",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"})))):React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icon_layout:i,hideLabel:o,iconPosition:n}=t,r=o?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+i,"top"===n?"uagb-icon-list__icon-at-top":"",r,"uagb-block-"+l)},React.createElement("div",{className:"uagb-icon-list__wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];a(230);var ZC={from:[{type:"block",blocks:["core/list"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,V,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le;const ie=t.map(t=>{var a,l;return Object(de.createBlock)("uagb/icon-list-child",{label:t.attributes.content,label_color:(null==e||null===(a=e.style)||void 0===a||null===(l=a.color)||void 0===l?void 0:l.text)||Pc(null==e?void 0:e.textColor)||""})});return Object(de.createBlock)("uagb/icon-list",{iconColor:(null==e||null===(a=e.style)||void 0===a||null===(l=a.color)||void 0===l?void 0:l.text)||Pc(null==e?void 0:e.textColor)||"",fontWeight:(null==e||null===(i=e.style)||void 0===i||null===(o=i.typography)||void 0===o?void 0:o.fontWeight)||"",fontSize:N((null==e||null===(n=e.style)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.fontSize)||"16"),fontSizeType:I((null==e||null===(s=e.style)||void 0===s||null===(c=s.typography)||void 0===c?void 0:c.fontSize)||""),labelColor:(null==e||null===(u=e.style)||void 0===u||null===(p=u.color)||void 0===p?void 0:p.text)||Pc(null==e?void 0:e.textColor)||"",labelLetterSpacing:N((null==e||null===(d=e.style)||void 0===d||null===(b=d.typography)||void 0===b?void 0:b.letterSpacing)||"0"),labelLetterSpacingType:I((null==e||null===(g=e.style)||void 0===g||null===(m=g.typography)||void 0===m?void 0:m.letterSpacing)||""),lineHeight:N((null==e||null===(y=e.style)||void 0===y||null===(f=y.typography)||void 0===f?void 0:f.lineHeight)||"0.6"),fontDecoration:(null==e||null===(h=e.style)||void 0===h||null===(v=h.typography)||void 0===v?void 0:v.textDecoration)||"",fontTransform:(null==e||null===(_=e.style)||void 0===_||null===(T=_.typography)||void 0===T?void 0:T.textTransform)||"",blockTopMargin:N((null==e||null===(C=e.style)||void 0===C||null===(S=C.spacing)||void 0===S||null===(k=S.margin)||void 0===k?void 0:k.top)||"16"),blockRightMargin:N((null==e||null===(w=e.style)||void 0===w||null===(P=w.spacing)||void 0===P||null===(x=P.margin)||void 0===x?void 0:x.right)||"0"),blockLeftMargin:N((null==e||null===(A=e.style)||void 0===A||null===(G=A.spacing)||void 0===G||null===(M=G.margin)||void 0===M?void 0:M.left)||"0"),blockBottomMargin:N((null==e||null===(R=e.style)||void 0===R||null===(B=R.spacing)||void 0===B||null===(U=B.margin)||void 0===U?void 0:U.bottom)||"16"),blockMarginUnit:I((null==e||null===(E=e.style)||void 0===E||null===(O=E.spacing)||void 0===O||null===(L=O.margin)||void 0===L?void 0:L.top)||"px"),blockTopPadding:N((null==e||null===(H=e.style)||void 0===H||null===(F=H.spacing)||void 0===F||null===(j=F.padding)||void 0===j?void 0:j.top)||"20"),blockRightPadding:N((null==e||null===(z=e.style)||void 0===z||null===(D=z.spacing)||void 0===D||null===(V=D.padding)||void 0===V?void 0:V.right)||"38"),blockLeftPadding:N((null==e||null===(W=e.style)||void 0===W||null===(q=W.spacing)||void 0===q||null===(Z=q.padding)||void 0===Z?void 0:Z.left)||"38"),blockBottomPadding:N((null==e||null===($=e.style)||void 0===$||null===(Y=$.spacing)||void 0===Y||null===(K=Y.padding)||void 0===K?void 0:K.bottom)||"20"),blockPaddingUnit:I((null==e||null===(J=e.style)||void 0===J||null===(X=J.spacing)||void 0===X||null===(Q=X.padding)||void 0===Q?void 0:Q.top)||"px"),size:N((null==e||null===(ee=e.style)||void 0===ee||null===(te=ee.typography)||void 0===te?void 0:te.fontSize)||"16"),sizeType:I((null==e||null===(ae=e.style)||void 0===ae||null===(le=ae.typography)||void 0===le?void 0:le.fontSize)||"")},ie)}}]};let $C={};$C=Object(F.applyFilters)("uagb/icon-list",ss($C)),Object(de.registerBlockType)("uagb/icon-list",{...$C,title:Object(r.__)("Icon List","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create a list highlighted with icons/images.","ultimate-addons-for-gutenberg"),icon:se.icon_list,keywords:[Object(r.__)("icon list","ultimate-addons-for-gutenberg"),Object(r.__)("image list","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:St,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"icon-list"}):React.createElement(WC,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l)},React.createElement("div",{className:"uagb-icon-list__wrap"},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:qC,transforms:ZC});function YC(){return(YC=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{image_icon:i,icon:o,image:n,icon_color:s,label_color:c,icon_hover_color:u,label_hover_color:p,icon_bg_color:d,icon_bg_hover_color:b,icon_border_color:g,icon_border_hover_color:m,link:y,target:f,disableLink:h,childTopMargin:v,childRightMargin:_,childLeftMargin:T,childBottomMargin:C,childTopMarginTablet:S,childRightMarginTablet:k,childLeftMarginTablet:w,childBottomMarginTablet:P,childTopMarginMobile:x,childRightMarginMobile:A,childLeftMarginMobile:G,childBottomMarginMobile:M,childMarginUnit:R,childMarginUnitTablet:B,childMarginUnitMobile:U,childMarginLink:E,childTopPadding:O,childRightPadding:L,childLeftPadding:H,childBottomPadding:F,childTopPaddingTablet:j,childRightPaddingTablet:z,childLeftPaddingTablet:D,childBottomPaddingTablet:N,childTopPaddingMobile:I,childRightPaddingMobile:V,childLeftPaddingMobile:W,childBottomPaddingMobile:q,childPaddingUnit:Z,childPaddingUnitTablet:$,childPaddingUnitMobile:Y,childPaddingLink:K,hideLabel:J}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:i,label:"image_icon"},className:"uagb-multi-button-alignment-control",options:[{value:"icon",label:"Icon"},{value:"image",label:"Image"},{value:"none",label:"None"}],showIcons:!1}),"icon"===i&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({icon:e})})),"image"===i&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({image:e}):a({image:null})},backgroundImage:n,onRemoveImage:()=>{a({image:""})}})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),checked:h,onChange:()=>a({disableLink:!h})}),h&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:y,data:{value:y,label:"link"},setAttributes:a,onChange:e=>a({link:e}),placeholder:Object(r.__)("Enter URL","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Tab","ultimate-addons-for-gutenberg"),checked:f,onChange:()=>a({target:!f})})))),React.createElement(il,nl,!J&&React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"label_color"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"label_hover_color"},setAttributes:a}),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,"icon"===i&&""!==o&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"icon_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"icon_bg_color"},setAttributes:a})),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"icon_border_color"},setAttributes:a})),hover:React.createElement(React.Fragment,null,"icon"===i&&""!==o&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"icon_hover_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"icon_bg_hover_color"},setAttributes:a})),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"icon_border_hover_color"},setAttributes:a})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:v,label:"childTopMargin"},valueRight:{value:_,label:"childRightMargin"},valueBottom:{value:C,label:"childBottomMargin"},valueLeft:{value:T,label:"childLeftMargin"},valueTopTablet:{value:S,label:"childTopMarginTablet"},valueRightTablet:{value:k,label:"childRightMarginTablet"},valueBottomTablet:{value:P,label:"childBottomMarginTablet"},valueLeftTablet:{value:w,label:"childLeftMarginTablet"},valueTopMobile:{value:x,label:"childTopMarginMobile"},valueRightMobile:{value:A,label:"childRightMarginMobile"},valueBottomMobile:{value:M,label:"childBottomMarginMobile"},valueLeftMobile:{value:G,label:"childLeftMarginMobile"},unit:{value:R,label:"childMarginUnit"},mUnit:{value:U,label:"childMarginUnitMobile"},tUnit:{value:B,label:"childMarginUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:E,label:"childMarginLink"}}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:O,label:"childTopPadding"},valueRight:{value:L,label:"childRightPadding"},valueBottom:{value:F,label:"childBottomPadding"},valueLeft:{value:H,label:"childLeftPadding"},valueTopTablet:{value:j,label:"childTopPaddingTablet"},valueRightTablet:{value:z,label:"childRightPaddingTablet"},valueBottomTablet:{value:N,label:"childBottomPaddingTablet"},valueLeftTablet:{value:D,label:"childLeftPaddingTablet"},valueTopMobile:{value:I,label:"childTopPaddingMobile"},valueRightMobile:{value:V,label:"childRightPaddingMobile"},valueBottomMobile:{value:q,label:"childBottomPaddingMobile"},valueLeftMobile:{value:W,label:"childLeftPaddingMobile"},unit:{value:Z,label:"childPaddingUnit"},mUnit:{value:Y,label:"childPaddingUnitMobile"},tUnit:{value:$,label:"childPaddingUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:K,label:"childPaddingLink"}}))),React.createElement(il,YC({},rl,{parentProps:e}))))}),XC=a(126),QC=0,eS={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},tS={};tS.locals=XC.a.locals||{},tS.use=function(){return QC++||(KC=we()(XC.a,eS)),tS},tS.unuse=function(){QC>0&&!--QC&&(KC(),KC=null)};var aS=tS,lS=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(aS.use(),()=>{aS.unuse()}),[]);const{attributes:t,setAttributes:a,className:l,deviceType:i,onReplace:o,mergeBlocks:n}=e,{label:s,image_icon:c,icon:u,image:p,block_id:d,link:b,target:g,disableLink:m,hideLabel:y,fromParentIcon:f,imageSizeChild:h,imgTagHeight:v}=t,_=p&&null!=p&&p.alt?null==p?void 0:p.alt:"";let T="";Object(B.useEffect)(()=>{p&&p.url&&"none"!==c&&Zg(null==p?void 0:p.url,a,{type:"width",value:h})},[p,h]),"icon"===c?(u||f)&&(T=Ce(u||f,a)):p&&p.url&&"none"!==c&&(T=React.createElement("img",{className:"uagb-icon-list__source-image",alt:_,src:p.url,width:h,height:v,loading:"lazy"}));const C=g?"_blank":"_self",S=m?b:"/";return React.createElement("div",{className:Be()(l,"uagb-block-"+d,"uagb-editor-preview-mode-"+i.toLowerCase())},m&&React.createElement("a",{target:C,rel:"noopener noreferrer","aria-label":s.replace(/(<([^>]+)>)/gi,""),href:S}," "),T&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},T),!y&&React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Label Name","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({label:e}),className:"uagb-icon-list__label",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"],onMerge:n,onSplit:e=>e?Object(de.createBlock)("uagb/icon-list-child",{...t,label:e}):Object(de.createBlock)("uagb/icon-list-child"),onReplace:o,onRemove:()=>o([])}))});function iS(){return(iS=Object.assign||function(e){for(var t=1;t{const{isSelected:t,clientId:a,attributes:l,deviceType:i}=e,o=Object(B.useMemo)(()=>function(e,t,a){const l=a.toLowerCase(),{icon_color:i,label_color:o,icon_hover_color:n,label_hover_color:r,icon_bg_color:s,icon_bg_hover_color:c,icon_border_color:u,icon_border_hover_color:p,childTopMargin:d,childRightMargin:b,childLeftMargin:g,childBottomMargin:m,childTopMarginTablet:y,childRightMarginTablet:f,childLeftMarginTablet:h,childBottomMarginTablet:v,childTopMarginMobile:_,childRightMarginMobile:T,childLeftMarginMobile:C,childBottomMarginMobile:S,childMarginUnit:k,childMarginUnitTablet:w,childMarginUnitMobile:P,childTopPadding:x,childRightPadding:A,childLeftPadding:G,childBottomPadding:M,childTopPaddingTablet:R,childRightPaddingTablet:B,childLeftPaddingTablet:U,childBottomPaddingTablet:E,childTopPaddingMobile:O,childRightPaddingMobile:L,childLeftPaddingMobile:H,childBottomPaddingMobile:F,childPaddingUnit:j,childPaddingUnitTablet:z,childPaddingUnitMobile:D,block_id:N}=e,I={".wp-block-uagb-icon-list-child":{"margin-top":Vr(d,k),"margin-right":Vr(b,k),"margin-bottom":Vr(m,k),"margin-left":Vr(g,k),"padding-top":Vr(x,j),"padding-right":Vr(A,j),"padding-bottom":Vr(M,j),"padding-left":Vr(G,j)},".wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap svg":{color:i,fill:i},".wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap svg":{color:n,fill:n},".wp-block-uagb-icon-list-child .uagb-icon-list__label":{color:o},".wp-block-uagb-icon-list-child:hover .uagb-icon-list__label":{color:r},".wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap":{background:s,"border-color":u},".wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap":{background:c,"border-color":p}};let V={},W={};V={".wp-block-uagb-icon-list-child":{"margin-top":Vr(y,w),"margin-right":Vr(f,w),"margin-bottom":Vr(v,w),"margin-left":Vr(h,w),"padding-top":Vr(R,z),"padding-right":Vr(B,z),"padding-bottom":Vr(E,z),"padding-left":Vr(U,z)}},W={".wp-block-uagb-icon-list-child":{"margin-top":Vr(_,P),"margin-right":Vr(T,P),"margin-bottom":Vr(S,P),"margin-left":Vr(C,P),"padding-top":Vr(O,D),"padding-right":Vr(L,D),"padding-bottom":Vr(F,D),"padding-left":Vr(H,D)}};let q="";const Z=".uagb-block-"+N;return q=ae(I,Z),"tablet"!==l&&"mobile"!==l||(q+=ae(V,""+Z,!0,"tablet"),"mobile"===l&&(q+=ae(W,""+Z,!0,"mobile"))),q}(l,0,i),[l,i]);return Object(B.useEffect)(()=>{ys()},[i]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),t&&React.createElement(JC,iS({},e,{hideLabel:void 0})),React.createElement(lS,e))});a(231);const nS={block_id:{type:"string"},label:{type:"html",selector:".uagb-icon-list__label",default:"#Label"},image_icon:{type:"string",default:"icon"},hideLabel:{type:"boolean",default:!1},icon:{type:"string",default:"fab fa-arrow-circle-right"},image:{type:"object"},icon_color:{type:"string",default:"#3a3a3a"},label_color:{type:"string"},icon_hover_color:{type:"string"},label_hover_color:{type:"string"},icon_bg_color:{type:"string"},icon_bg_hover_color:{type:"string"},icon_border_color:{type:"string"},icon_border_hover_color:{type:"string"},link:{type:"string",default:"#"},target:{type:"boolean",default:!1},disableLink:{type:"boolean",default:!0},deviceType:{type:"string",default:"Desktop"}};var rS=[{attributes:nS,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t;let b="";"icon"==i?(o||d)&&(b=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(o||d))):n&&n.url&&"none"!==i&&(b=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url}));const g=c?"_blank":"_self",m=u?"/":s;return React.createElement("div",{className:Be()("uagb-icon-list-repeater","uagb-icon-list__wrapper",a,"uagb-block-"+r)},!u&&React.createElement("a",{target:g,rel:"noopener noreferrer",href:m}),React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},b),!p&&""!=l&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))))}},{attributes:nS,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p}=t;let d="";"icon"===i?o&&(d=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(o))):n&&n.url&&(d=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:n.alt}));const b=c?"_blank":"_self",g=u?"/":s;return React.createElement("div",{className:Be()("uagb-icon-list-repeater","uagb-icon-list__wrapper",a,"uagb-block-"+r)},!u&&React.createElement("a",{target:b,"aria-label":l,rel:"noopener noreferrer",href:g}," "),React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},d),!p&&""!==l&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))))}},{attributes:nS,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t,b=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let g="";"icon"===i?(o||d)&&(g=Ce(o||d)):n&&n.url&&"none"!==i&&(g=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:b}));const m=c?"_blank":"_self",y=u?s:"/";return React.createElement("div",{className:Be()(a,"uagb-block-"+r)},u&&React.createElement("a",{target:m,"aria-label":l,rel:"noopener noreferrer",href:y}," "),g&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},g),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))}},{attributes:kt,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t,b=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let g="";"icon"===i?(o||d)&&(g=Ce(o||d)):n&&n.url&&"none"!==i&&(g=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:b}));const m=c?"_blank":"_self",y=u?s:"/";return React.createElement("div",{className:Be()(a,"uagb-block-"+r)},u&&React.createElement("a",{target:m,"aria-label":l.replace(/(<([^>]+)>)/gi,""),rel:"noopener noreferrer",href:y}," "),g&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},g),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))}},{attributes:{block_id:{type:"string"},label:{type:"html",selector:".uagb-icon-list__label",default:Object(r.__)("List item","ultimate-addons-for-gutenberg")},image_icon:{type:"string",default:"icon"},hideLabel:{type:"boolean",default:!1},disableIcon:{type:"boolean",default:!1},icon:{type:"string",default:""},image:{type:"object"},icon_color:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-color"}},label_color:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},icon_hover_color:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},label_hover_color:{type:"string",UAGCopyPaste:{styleType:"main-title-hover-color"}},icon_bg_color:{type:"string",UAGCopyPaste:{styleType:"icon-bg-color"},default:""},icon_bg_hover_color:{type:"string",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},icon_border_color:{type:"string",UAGCopyPaste:{styleType:"icon-border-color"},default:""},icon_border_hover_color:{type:"string",UAGCopyPaste:{styleType:"icon-border-hover-color"}},link:{type:"string",default:"#"},target:{type:"boolean",default:!1},disableLink:{type:"boolean",default:!1},fromParentIcon:{type:"string",default:"circle-arrow-right"},childTopMargin:{type:"number",UAGCopyPaste:{styleType:"child-top-margin"}},childRightMargin:{type:"number",UAGCopyPaste:{styleType:"child-right-margin"}},childLeftMargin:{type:"number",UAGCopyPaste:{styleType:"child-left-margin"}},childBottomMargin:{type:"number",UAGCopyPaste:{styleType:"child-bottom-margin"}},childTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-top-margin-tablet"}},childRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-right-margin-tablet"}},childLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-left-margin-tablet"}},childBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-bottom-margin-tablet"}},childTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-top-margin-mobile"}},childRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-right-margin-mobile"}},childLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-left-margin-mobile"}},childBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-bottom-margin-mobile"}},childMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-margin-unit"}},childMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-margin-unit-tablet"}},childMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-margin-unit-mobile"}},childMarginLink:{type:"boolean",default:!1},childTopPadding:{type:"number",UAGCopyPaste:{styleType:"child-top-padding"}},childRightPadding:{type:"number",UAGCopyPaste:{styleType:"child-right-padding"}},childLeftPadding:{type:"number",UAGCopyPaste:{styleType:"child-left-padding"}},childBottomPadding:{type:"number",UAGCopyPaste:{styleType:"child-bottom-padding"}},childTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-top-padding-tablet"}},childRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-right-padding-tablet"}},childLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-left-padding-tablet"}},childBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-bottom-padding-tablet"}},childTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-top-padding-mobile"}},childRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-right-padding-mobile"}},childLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-left-padding-mobile"}},childBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-bottom-padding-mobile"}},childPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-padding-unit"}},childPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-padding-unit-tablet"}},childPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-padding-unit-mobile"}},childPaddingLink:{type:"boolean",default:!0}},save:function(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t,b=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let g="";"icon"===i?(o||d)&&(g=Ce(o||d)):n&&n.url&&"none"!==i&&(g=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:b}));const m=c?"_blank":"_self",y=u?s:"/";let f=u;return"yes"===uagb_blocks_info.uagb_old_user_less_than_2&&(f=!u),React.createElement("div",{className:Be()(a,"uagb-block-"+r)},f&&React.createElement("a",{target:m,"aria-label":l.replace(/(<([^>]+)>)/gi,""),rel:"noopener noreferrer",href:y}," "),g&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},g),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))}}];let sS={};function cS(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=e.split(" ")[t-1];switch(a){case"flex":switch(l){case"top":case"left":l="flex-start";break;case"bottom":case"right":l="flex-end"}}return l}sS=Object(F.applyFilters)("uagb/icon-list-child",ss(sS)),Object(de.registerBlockType)("uagb/icon-list-child",{...sS,title:Object(r.__)("List Item","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add and customize content for this list component.","ultimate-addons-for-gutenberg"),icon:se.icon_list_child,parent:["uagb/icon-list"],attributes:kt,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"icon-list-child",isChildren:!0}):React.createElement(oS,e),save:function(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d,imageSizeChild:b,imgTagHeight:g}=t,m=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let y="";"icon"===i?(o||d)&&(y=Ce(o||d)):n&&n.url&&"none"!==i&&(y=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,width:b,height:g,loading:"lazy",alt:m}));const f=c?"_blank":"_self",h=u?s:"/";return React.createElement("div",{className:Be()(a,"uagb-block-"+r)},u&&React.createElement("a",{target:f,"aria-label":l.replace(/(<([^>]+)>)/gi,""),rel:"noopener noreferrer",href:h}," "),y&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},y),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))},deprecated:rS});var uS=e=>{var t,a;const{slug:l="media",label:i=Object(r.__)("Media","ultimate-addons-for-gutenberg"),disableLabel:o=!1,mediaType:n,onSelectMedia:s,mediaGallery:c,mediaIDs:u,onRemoveMedia:p,allowedTypes:d,createGallery:b,help:g=!1}=e,m=se.gallery_placeholder;let y,f;switch(n){case"images":y=Object(r.__)("Select Images","ultimate-addons-for-gutenberg"),f=Object(r.__)("Replace Images","ultimate-addons-for-gutenberg");break;default:y=Object(r.__)("Select Media","ultimate-addons-for-gutenberg"),f=Object(r.__)("Replace Media","ultimate-addons-for-gutenberg")}b&&(f=Object(r.__)("Edit Gallery","ultimate-addons-for-gutenberg"));const h=e=>React.createElement("div",{className:"spectra-media-control__button spectra-media-control__button--"+e},se[e]);return React.createElement(Le.BaseControl,{className:"spectra-media-control",id:"uagb-option-selector-"+l,label:i,hideLabelFromVision:o},React.createElement("div",{className:"spectra-media-control__wrapper"},(null===(t=c[0])||void 0===t?void 0:t.url)&&React.createElement("div",{className:"spectra-media-control__icon spectra-media-control__icon--stroke"},m),React.createElement(ge.MediaUpload,{title:y,onSelect:s,allowedTypes:d||["image","video","audio"],multiple:!0,value:u,gallery:b,render:e=>{let{open:t}=e;return(e=>{var t;const a=null!==(t=c[0])&&void 0!==t&&t.url?"replace":"add";return React.createElement("button",{className:"spectra-media-control__clickable spectra-media-control__clickable--"+a,onClick:e},"add"===a?h(a):React.createElement("div",{className:"uag-control-label"},f))})(t)}}),p&&(null===(a=c[0])||void 0===a?void 0:a.url)&&React.createElement("button",{className:"spectra-media-control__clickable spectra-media-control__clickable--close",onClick:p},h("close"))),React.createElement(De,{text:g}))};const pS=[{defaultAttributes:Ra},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:3},{label:"imageBoxShadowVOffset",value:8},{label:"imageBoxShadowBlur",value:12},{label:"imageBoxShadowSpread",value:0},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:18},{label:"imageBoxShadowBlur",value:40},{label:"imageBoxShadowSpread",value:-10},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:4},{label:"imageBoxShadowBlur",value:12},{label:"imageBoxShadowSpread",value:0},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:2},{label:"imageBoxShadowBlur",value:5},{label:"imageBoxShadowSpread",value:-1},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:50},{label:"imageBoxShadowBlur",value:50},{label:"imageBoxShadowSpread",value:-30},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:20},{label:"imageBoxShadowBlur",value:30},{label:"imageBoxShadowSpread",value:0},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '}],dS=[{defaultAttributes:Ra},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:3},{label:"imageBoxShadowVOffsetHover",value:8},{label:"imageBoxShadowBlurHover",value:12},{label:"imageBoxShadowSpreadHover",value:15},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:18},{label:"imageBoxShadowBlurHover",value:40},{label:"imageBoxShadowSpreadHover",value:-10},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:4},{label:"imageBoxShadowBlurHover",value:12},{label:"imageBoxShadowSpreadHover",value:0},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:2},{label:"imageBoxShadowBlurHover",value:5},{label:"imageBoxShadowSpreadHover",value:-1},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:50},{label:"imageBoxShadowBlurHover",value:50},{label:"imageBoxShadowSpreadHover",value:-30},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:20},{label:"imageBoxShadowBlurHover",value:30},{label:"imageBoxShadowSpreadHover",value:0},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '}];function bS(){return(bS=Object.assign||function(e){for(var t=1;t{const{lightboxPreview:t,setLightboxPreview:a,attributes:l,setAttributes:i,clientId:o,deviceType:s}=e,{block_id:c,readyToRender:u,mediaGallery:p,mediaIDs:d,feedLayout:b,imageDisplayCaption:g,galleryImageSize:m,galleryImageSizeTablet:y,galleryImageSizeMobile:f,imageClickEvent:h,lightboxDisplayCaptions:v,lightboxThumbnails:_,lightboxDisplayCount:T,lightboxCloseIcon:C,lightboxCaptionHeight:S,lightboxCaptionHeightTablet:k,lightboxCaptionHeightMobile:w,lightboxIconSize:P,lightboxIconSizeTablet:x,lightboxIconSizeMobile:A,columnsDesk:G,columnsTab:M,columnsMob:R,gridImageGap:U,gridImageGapTab:E,gridImageGapMob:O,gridImageGapUnit:L,gridImageGapUnitTab:H,gridImageGapUnitMob:j,captionVisibility:z,captionDisplayType:D,imageCaptionAlignment:N,imageCaptionAlignment01:I,imageCaptionAlignment02:V,imageDefaultCaption:W,captionPaddingTop:q,captionPaddingRight:Z,captionPaddingBottom:$,captionPaddingLeft:Y,captionPaddingTopTab:K,captionPaddingRightTab:J,captionPaddingBottomTab:X,captionPaddingLeftTab:Q,captionPaddingTopMob:ee,captionPaddingRightMob:te,captionPaddingBottomMob:ae,captionPaddingLeftMob:le,captionPaddingUnit:ie,captionPaddingUnitTab:oe,captionPaddingUnitMob:ne,captionPaddingUnitLink:re,captionGap:se,captionGapUnit:ce,feedMarginTop:ue,feedMarginRight:pe,feedMarginBottom:de,feedMarginLeft:be,feedMarginTopTab:me,feedMarginRightTab:ye,feedMarginBottomTab:fe,feedMarginLeftTab:he,feedMarginTopMob:ve,feedMarginRightMob:_e,feedMarginBottomMob:Te,feedMarginLeftMob:Se,feedMarginUnit:ke,feedMarginUnitTab:we,feedMarginUnitMob:Pe,feedMarginUnitLink:xe,carouselStartAt:Ae,carouselSquares:Ge,carouselLoop:Me,carouselAutoplay:Re,carouselAutoplaySpeed:Be,carouselPauseOnHover:Ue,carouselTransitionSpeed:Oe,feedPagination:He,paginateUseArrows:Fe,paginateUseDots:ze,paginateUseLoader:De,paginateLimit:Ne,paginateButtonAlign:Ie,paginateButtonPaddingTop:Ve,paginateButtonPaddingRight:We,paginateButtonPaddingBottom:qe,paginateButtonPaddingLeft:Ze,paginateButtonPaddingTopTab:$e,paginateButtonPaddingRightTab:Ye,paginateButtonPaddingBottomTab:Ke,paginateButtonPaddingLeftTab:Je,paginateButtonPaddingTopMob:Xe,paginateButtonPaddingRightMob:Qe,paginateButtonPaddingBottomMob:et,paginateButtonPaddingLeftMob:tt,paginateButtonPaddingUnit:at,paginateButtonPaddingUnitTab:lt,paginateButtonPaddingUnitMob:it,paginateButtonPaddingUnitLink:ot,imageEnableZoom:nt,imageZoomType:rt,captionBackgroundEnableBlur:st,captionBackgroundBlurAmount:ct,captionBackgroundBlurAmountHover:ut,lightboxEdgeDistance:pt,lightboxEdgeDistanceTablet:dt,lightboxEdgeDistanceMobile:bt,lightboxBackgroundEnableBlur:gt,lightboxBackgroundBlurAmount:mt,lightboxBackgroundColor:yt,lightboxCaptionColor:ft,lightboxCaptionBackgroundColor:ht,lightboxIconColor:vt,captionLoadGoogleFonts:_t,captionFontFamily:Tt,captionFontWeight:Ct,captionFontStyle:St,captionTransform:kt,captionDecoration:wt,captionFontSizeType:Pt,captionFontSize:xt,captionFontSizeMob:At,captionFontSizeTab:Gt,captionLineHeightType:Mt,captionLineHeight:Rt,captionLineHeightMob:Bt,captionLineHeightTab:Ut,loadMoreLoadGoogleFonts:Et,loadMoreFontFamily:Ot,loadMoreFontWeight:Lt,loadMoreFontStyle:Ht,loadMoreTransform:Ft,loadMoreDecoration:jt,loadMoreFontSizeType:zt,loadMoreFontSize:Dt,loadMoreFontSizeMob:Nt,loadMoreFontSizeTab:It,loadMoreLineHeightType:Vt,loadMoreLineHeight:Wt,loadMoreLineHeightMob:qt,loadMoreLineHeightTab:Zt,lightboxLoadGoogleFonts:$t,lightboxFontFamily:Yt,lightboxFontWeight:Kt,lightboxFontStyle:Jt,lightboxTransform:Xt,lightboxDecoration:Qt,lightboxFontSizeType:ea,lightboxFontSize:ta,lightboxFontSizeMob:aa,lightboxFontSizeTab:la,lightboxLineHeightType:ia,lightboxLineHeight:oa,lightboxLineHeightMob:na,lightboxLineHeightTab:ra,captionBackgroundEffect:sa,captionBackgroundEffectHover:ca,captionBackgroundEffectAmount:ua,captionBackgroundEffectAmountHover:pa,captionColor:da,captionColorHover:ba,captionBackgroundColor:ga,captionBackgroundColorHover:ma,overlayColor:ya,overlayColorHover:fa,captionSeparateColors:ha,paginateArrowDistance:va,paginateArrowDistanceUnit:_a,paginateArrowSize:Ta,paginateDotDistance:Ca,paginateDotDistanceUnit:Sa,paginateLoaderSize:ka,paginateButtonTextColor:wa,paginateButtonTextColorHover:Pa,paginateColor:xa,paginateColorHover:Aa,imageBoxShadowColor:Ga,imageBoxShadowHOffset:Ma,imageBoxShadowVOffset:Ra,imageBoxShadowBlur:Ba,imageBoxShadowSpread:Ua,imageBoxShadowPosition:Ea,imageBoxShadowColorHover:Oa,imageBoxShadowHOffsetHover:La,imageBoxShadowVOffsetHover:Ha,imageBoxShadowBlurHover:Fa,imageBoxShadowSpreadHover:ja,imageBoxShadowPositionHover:za,disableLazyLoad:Da}=l,{imageSizes:Ia}=Object(n.useSelect)(e=>{const{getSettings:t}=e(ge.store),{imageSizes:a}=t();return{imageSizes:a}},[o]),Va=Ia.reduce((e,t)=>(e.push({label:t.name,value:t.slug}),e),[]);let Wa,qa,Za,$a;const Ya="masonry"!==b||De?Object(r.__)("Color","ultimate-addons-for-gutenberg"):Object(r.__)("Background Color","ultimate-addons-for-gutenberg");switch(D){case"overlay":Wa=Object(r.__)("Overlay Color","ultimate-addons-for-gutenberg");break;case"bar-inside":case"bar-outside":Wa=Object(r.__)("Bar Color","ultimate-addons-for-gutenberg");break;default:Wa=Object(r.__)("Background Color","ultimate-addons-for-gutenberg")}switch(sa){case"grayscale":qa=Object(r.__)("Grayscale Amount","ultimate-addons-for-gutenberg");break;case"sepia":qa=Object(r.__)("Sepia Amount","ultimate-addons-for-gutenberg");break;default:qa=Object(r.__)("Effect Amount","ultimate-addons-for-gutenberg")}switch(ca){case"grayscale":Za=Object(r.__)("Grayscale Amount","ultimate-addons-for-gutenberg");break;case"sepia":Za=Object(r.__)("Sepia Amount","ultimate-addons-for-gutenberg");break;default:Za=Object(r.__)("Effect Amount","ultimate-addons-for-gutenberg")}switch(b){case"carousel":$a=Object(r.__)("Carousel","ultimate-addons-for-gutenberg");break;case"tiled":$a=Object(r.__)("Tiled","ultimate-addons-for-gutenberg");break;default:$a=Object(r.__)("Pagination","ultimate-addons-for-gutenberg")}Object(B.useEffect)(()=>{i({imageCaptionAlignment:`${I} ${V}`})},[I,V]);Object(B.useEffect)(()=>{"bar-outside"!==D||"tiled"!==b&&"grid"!==b||i({captionDisplayType:"bar-inside"}),"tiled"===b&&(G<4&&i({columnsDesk:4}),M<4&&i({columnsTab:4}),R<4&&i({columnsMob:4}))},[b]),Object(B.useEffect)(()=>{"bar-outside"===D&&(i({captionVisibility:"always"}),"center"===I&&i({imageCaptionAlignment01:"bottom"}))},[D]),Object(B.useEffect)(()=>{"lightbox"!==h&&a(!1)},[h]),Object(F.doAction)("spectra.image-gallery.settings.actions",l,i);const Ka=e=>React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:e?ba||"":da||"",data:{value:e?ba:da,label:e?"captionColorHover":"captionColor"},setAttributes:i}),React.createElement(hl,{label:Wa,colorValue:e?ma||"":ga||"",data:{value:e?ma:ga,label:e?"captionBackgroundColorHover":"captionBackgroundColor"},setAttributes:i})),Ja=e=>React.createElement(React.Fragment,null,st&&React.createElement(Qa,{label:Object(r.__)("Blur Amount","ultimate-addons-for-gutenberg"),setAttributes:i,value:e?ut:ct,data:{value:e?ut:ct,label:e?"captionBackgroundBlurAmountHover":"captionBackgroundBlurAmount"},min:0,max:10,displayUnit:!1}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Effect","ultimate-addons-for-gutenberg"),data:{value:e?ca:sa,label:e?"captionBackgroundEffectHover":"captionBackgroundEffect"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"grayscale",label:Object(r.__)("Grayscale","ultimate-addons-for-gutenberg")},{value:"sepia",label:Object(r.__)("Sepia","ultimate-addons-for-gutenberg")}]}),Xa(e?ca:sa,e),!g&&React.createElement(hl,{label:Object(r.__)("Overlay Color","ultimate-addons-for-gutenberg"),colorValue:e?fa||"":ya||"",data:{value:e?fa:ya,label:e?"overlayColorHover":"overlayColor"},setAttributes:i})),Xa=(e,t)=>{switch(e){case"grayscale":case"sepia":return React.createElement(Qa,{label:t?Za:qa,setAttributes:i,value:t?pa:ua,data:{value:t?pa:ua,label:t?"captionBackgroundEffectAmountHover":"captionBackgroundEffectAmount"},min:0,max:100,displayUnit:!1})}},el=e=>React.createElement(React.Fragment,null,React.createElement(hl,{label:Ya,colorValue:e?Aa||"":xa||"",data:{value:e?Aa:xa,label:e?"paginateColorHover":"paginateColor"},setAttributes:i}),"masonry"===b&&!De&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:e?Pa||"":wa||"",data:{value:e?Pa:wa,label:e?"paginateButtonTextColorHover":"paginateButtonTextColor"},setAttributes:i}))),al=()=>React.createElement("p",{style:{padding:"16px"}},Object(r.__)("Upload images to enable settings","ultimate-addons-for-gutenberg")),ll=Boolean(uagb_blocks_info.spectra_pro_status),sl=[{label:Object(r.__)("None","ultimate-addons-for-gutenberg"),value:"none",disabled:!1},{label:Object(r.__)("Lightbox","ultimate-addons-for-gutenberg"),value:"lightbox",disabled:!1},{label:Object(r.__)("Open Image","ultimate-addons-for-gutenberg"),value:"image",disabled:!1},{label:Object(r.__)("Custom URL (Spectra Pro)","ultimate-addons-for-gutenberg"),value:"url",disabled:!ll}];return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,!u&&al(),u&&React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(uS,{slug:"gallery",label:Object(r.__)("Update Gallery","ultimate-addons-for-gutenberg"),disableLabel:!0,mediaType:"images",onSelectMedia:e=>{let t=!0;const a=[];e.forEach(e=>{e&&e.url&&e.type&&"image"===e.type?a.push(e.id):t=!1}),i(t?{mediaGallery:e,mediaIDs:a,readyToRender:!0}:{mediaGallery:p,mediaIDs:d,readyToRender:!!d})},mediaGallery:p,mediaIDs:d,allowedTypes:["image"],createGallery:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Disable Lazy Loading","ultimate-addons-for-gutenberg"),checked:Da,onChange:()=>{i({disableLazyLoad:!Da})}}),React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:b,label:"feedLayout"},setAttributes:i,options:[{label:Object(r.__)("Grid","ultimate-addons-for-gutenberg"),value:"grid"},{label:Object(r.__)("Masonry","ultimate-addons-for-gutenberg"),value:"masonry"},{label:Object(r.__)("Carousel","ultimate-addons-for-gutenberg"),value:"carousel"},{label:Object(r.__)("Tiled","ultimate-addons-for-gutenberg"),value:"tiled"}]}),React.createElement(Td,{data:{sizeSlug:{label:"galleryImageSize",value:m},sizeSlugTablet:{label:"galleryImageSizeTablet",value:y},sizeSlugMobile:{label:"galleryImageSizeMobile",value:f}},setAttributes:i,imageSizeOptions:Va,isResizable:!1}),React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:G,label:"columnsDesk"},tablet:{value:M,label:"columnsTab"},mobile:{value:R,label:"columnsMob"}},min:"tiled"===b?4:1,max:"tiled"===b&&Math.min(8,p.length)<4?4:Math.min(8,p.length),displayUnit:!1,setAttributes:i}),React.createElement(Pi,{label:Object(r.__)("Click Event","ultimate-addons-for-gutenberg"),data:{value:h,label:"imageClickEvent"},setAttributes:i,options:sl})),u&&"tiled"!==b&&React.createElement(je,{title:$a,initialOpen:!1},"carousel"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Starting Image","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ae+1,data:{value:Ae,label:"carouselStartAt"},onChange:e=>i({carouselStartAt:e-1}),min:1,max:p.length,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:i,value:Oe,data:{value:Oe,label:"carouselTransitionSpeed"},min:0,max:9999,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Crop Images to Squares","ultimate-addons-for-gutenberg"),checked:Ge,onChange:()=>i({carouselSquares:!Ge})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Carousel","ultimate-addons-for-gutenberg"),checked:Me,onChange:()=>i({carouselLoop:!Me})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Dots","ultimate-addons-for-gutenberg"),checked:ze,onChange:()=>i({paginateUseDots:!ze})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Arrows","ultimate-addons-for-gutenberg"),checked:Fe,onChange:()=>i({paginateUseArrows:!Fe})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:Re,onChange:()=>i({carouselAutoplay:!Re})}),Re&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:i,value:Be,data:{value:Be,label:"carouselAutoplaySpeed"},min:0,max:5e3,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Pause on Hover","ultimate-addons-for-gutenberg"),checked:Ue,onChange:()=>i({carouselPauseOnHover:!Ue})}))),("grid"===b||"masonry"===b)&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),checked:He,onChange:()=>{switch(b){case"grid":return i({paginateUseArrows:!He,paginateUseDots:!He,feedPagination:!He});case"masonry":return i({paginateUseLoader:!He,feedPagination:!He})}}}),He&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Images Per Page","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ne,data:{value:Ne,label:"paginateLimit"},min:1,max:100,displayUnit:!1}),"masonry"===b&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:i,label:Object(r.__)("Pagination Type","ultimate-addons-for-gutenberg"),data:{value:De,label:"paginateUseLoader"},options:[{value:!0,label:Object(r.__)("Loader","ultimate-addons-for-gutenberg")},{value:!1,label:Object(r.__)("Button","ultimate-addons-for-gutenberg")}]}),!De&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:i,label:Object(r.__)("Button Alignment","ultimate-addons-for-gutenberg"),data:{value:Ie,label:"paginateButtonAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"flex-start",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"flex-end",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})))))),u&&"lightbox"===h&&React.createElement(je,{title:Object(r.__)("Lightbox","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Preview Lightbox (Desktop)","ultimate-addons-for-gutenberg"),checked:"Desktop"===s&&t,disabled:"Desktop"!==s||void 0,onChange:()=>a(!t),help:"Desktop"===s?Object(r.__)("Note: The lightbox preview will automatically close when the page reloads, and it will be displayed in fullscreen mode on the front end. ","ultimate-addons-for-gutenberg"):Object(r.__)("To preview this in the editor, use Desktop mode.","ultimate-addons-for-gutenberg")}),React.createElement(Mr,{label:Object(r.__)("Close Icon","ultimate-addons-for-gutenberg"),value:C,onChange:e=>i({lightboxCloseIcon:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Image Number","ultimate-addons-for-gutenberg"),checked:T,onChange:()=>i({lightboxDisplayCount:!T})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Captions","ultimate-addons-for-gutenberg"),checked:v,onChange:()=>i({lightboxDisplayCaptions:!v})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Thumbnails","ultimate-addons-for-gutenberg"),checked:_,onChange:()=>i({lightboxThumbnails:!_})}),(C||T)&&React.createElement(tl,{label:Object(r.__)("Icon/Number Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:P,label:"lightboxIconSize"},tablet:{value:x,label:"lightboxIconSizeTablet"},mobile:{value:A,label:"lightboxIconSizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:i}),v&&React.createElement(tl,{label:Object(r.__)("Caption Min Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:S,label:"lightboxCaptionHeight"},tablet:{value:k,label:"lightboxCaptionHeightTablet"},mobile:{value:w,label:"lightboxCaptionHeightMobile"}},min:0,max:300,displayUnit:!1,setAttributes:i})),u&&React.createElement(je,{title:Object(r.__)("Caption","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Captions","ultimate-addons-for-gutenberg"),checked:g,onChange:()=>i({imageDisplayCaption:!g})}),g&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:D,label:"captionDisplayType"},setAttributes:i,options:"grid"===b||"tiled"===b?[{label:Object(r.__)("Overlay","ultimate-addons-for-gutenberg"),value:"overlay"},{label:Object(r.__)("Bar Over Image","ultimate-addons-for-gutenberg"),value:"bar-inside"}]:[{label:Object(r.__)("Overlay","ultimate-addons-for-gutenberg"),value:"overlay"},{label:Object(r.__)("Bar Over Image","ultimate-addons-for-gutenberg"),value:"bar-inside"},{label:Object(r.__)("Bar Outside Image","ultimate-addons-for-gutenberg"),value:"bar-outside"}]}),"bar-outside"!==D?React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Visibility","ultimate-addons-for-gutenberg"),data:{value:z,label:"captionVisibility"},setAttributes:i},React.createElement("option",{value:"hover"},"Show on hover"),React.createElement("option",{value:"antiHover"},"Hide on hover"),React.createElement("option",{value:"always"},"Always Visible")),React.createElement($i,{data:{label:"imageCaptionAlignment",value:N},onChange:e=>{var t;i({imageCaptionAlignment01:cS(t=e,1),imageCaptionAlignment02:cS(t,2)})}})):React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:i,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:V,label:"imageCaptionAlignment02"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Bar Position","ultimate-addons-for-gutenberg"),data:{value:I,label:"imageCaptionAlignment01"},options:[{value:"top",label:Object(r.__)("Above","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Below","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Qa,{label:Object(r.__)("Gap","ultimate-addons-for-gutenberg"),setAttributes:i,value:se,data:{value:se,label:"captionGap"},min:0,max:100,unit:{value:ce,label:"captionGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),React.createElement(Ss,{label:Object(r.__)("Default","ultimate-addons-for-gutenberg"),data:{value:W,label:"imageDefaultCaption"},setAttributes:i,value:W,variant:"inline"})))),React.createElement(il,nl,!u&&al(),u&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Hover Zoom","ultimate-addons-for-gutenberg"),checked:nt,onChange:()=>i({imageEnableZoom:!nt})}),nt&&React.createElement(Na,{setAttributes:i,label:Object(r.__)("Zoom Type","ultimate-addons-for-gutenberg"),data:{value:rt,label:"imageZoomType"},options:[{value:"zoom-in",label:Object(r.__)("Zoom In","ultimate-addons-for-gutenberg")},{value:"zoom-out",label:Object(r.__)("Zoom Out","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Blur Overlay","ultimate-addons-for-gutenberg"),checked:st,onChange:()=>i({captionBackgroundEnableBlur:!st})}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:Ja(!1),hover:Ja(!0)}),React.createElement(Hi,{setAttributes:i,prefix:"image",attributes:l,deviceType:s}),React.createElement(tl,{label:Object(r.__)("Gap Between Images","ultimate-addons-for-gutenberg"),data:{desktop:{value:U,label:"gridImageGap",unit:{value:L,label:"gridImageGapUnit"}},tablet:{value:E,label:"gridImageGapTab",unit:{value:H,label:"gridImageGapUnitTab"}},mobile:{value:O,label:"gridImageGapMob",unit:{value:j,label:"gridImageGapUnitMob"}}},min:0,max:100,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:i})),u&&"lightbox"===h&&React.createElement(je,{title:Object(r.__)("Lightbox","ultimate-addons-for-gutenberg"),initialOpen:!1},(v||T)&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:$t,label:"lightboxLoadGoogleFonts"},fontFamily:{value:Yt,label:"lightboxFontFamily"},fontWeight:{value:Kt,label:"lightboxFontWeight"},fontStyle:{value:Jt,label:"lightboxFontStyle"},transform:{value:Xt,label:"lightboxTransform"},decoration:{value:Qt,label:"lightboxDecoration"},fontSizeType:{value:ea,label:"lightboxFontSizeType"},fontSize:{value:ta,label:"lightboxFontSize"},fontSizeMobile:{value:aa,label:"lightboxFontSizeMob"},fontSizeTablet:{value:la,label:"lightboxFontSizeTab"},lineHeightType:{value:ia,label:"lightboxLineHeightType"},lineHeight:{value:oa,label:"lightboxLineHeight"},lineHeightMobile:{value:na,label:"lightboxLineHeightMob"},lineHeightTablet:{value:ra,label:"lightboxLineHeightTab"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Blur Background","ultimate-addons-for-gutenberg"),checked:gt,onChange:()=>i({lightboxBackgroundEnableBlur:!gt})}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:yt||"",data:{value:yt,label:"lightboxBackgroundColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Accent Color","ultimate-addons-for-gutenberg"),colorValue:vt||"",data:{value:vt,label:"lightboxIconColor"},setAttributes:i,hint:Object(r.__)("This color affects the Image Count, Close Button, and Arrows","ultimate-addons-for-gutenberg")}),v&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Caption Color","ultimate-addons-for-gutenberg"),colorValue:ft||"",data:{value:ft,label:"lightboxCaptionColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Caption Background","ultimate-addons-for-gutenberg"),colorValue:ht||"",data:{value:ht,label:"lightboxCaptionBackgroundColor"},setAttributes:i})),gt&&React.createElement(Qa,{label:Object(r.__)("Blur Amount","ultimate-addons-for-gutenberg"),setAttributes:i,value:mt,data:{value:mt,label:"lightboxBackgroundBlurAmount"},min:0,max:10,displayUnit:!1}),React.createElement(tl,{label:Object(r.__)("Edge Distance","ultimate-addons-for-gutenberg"),data:{desktop:{value:pt,label:"lightboxEdgeDistance"},tablet:{value:dt,label:"lightboxEdgeDistanceTablet"},mobile:{value:bt,label:"lightboxEdgeDistanceMobile"}},min:0,max:100,displayUnit:!1,setAttributes:i})),u&&g&&React.createElement(je,{title:Object(r.__)("Caption","ultimate-addons-for-gutenberg"),initialOpen:!1},"always"===z&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Hover Colors","ultimate-addons-for-gutenberg"),checked:ha,onChange:()=>i({captionSeparateColors:!ha})}),"always"===z&&ha?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:Ka(!1),hover:Ka(!0),disableBottomSeparator:"overlay"===D}):React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:da||"",data:{value:da,label:"captionColor"},setAttributes:i}),React.createElement(hl,{label:Wa,colorValue:ga||"",data:{value:ga,label:"captionBackgroundColor"},setAttributes:i})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:_t,label:"captionLoadGoogleFonts"},fontFamily:{value:Tt,label:"captionFontFamily"},fontWeight:{value:Ct,label:"captionFontWeight"},fontStyle:{value:St,label:"captionFontStyle"},transform:{value:kt,label:"captionTransform"},decoration:{value:wt,label:"captionDecoration"},fontSizeType:{value:Pt,label:"captionFontSizeType"},fontSize:{value:xt,label:"captionFontSize"},fontSizeMobile:{value:At,label:"captionFontSizeMob"},fontSizeTablet:{value:Gt,label:"captionFontSizeTab"},lineHeightType:{value:Mt,label:"captionLineHeightType"},lineHeight:{value:Rt,label:"captionLineHeight"},lineHeightMobile:{value:Bt,label:"captionLineHeightMob"},lineHeightTablet:{value:Ut,label:"captionLineHeightTab"}}),React.createElement(Pl,bS({},e,{label:Object(r.__)("Caption Padding","ultimate-addons-for-gutenberg"),valueTop:{value:q,label:"captionPaddingTop"},valueRight:{value:Z,label:"captionPaddingRight"},valueBottom:{value:$,label:"captionPaddingBottom"},valueLeft:{value:Y,label:"captionPaddingLeft"},valueTopTablet:{value:K,label:"captionPaddingTopTab"},valueRightTablet:{value:J,label:"captionPaddingRightTab"},valueBottomTablet:{value:X,label:"captionPaddingBottomTab"},valueLeftTablet:{value:Q,label:"captionPaddingLeftTab"},valueTopMobile:{value:ee,label:"captionPaddingTopMob"},valueRightMobile:{value:te,label:"captionPaddingRightMob"},valueBottomMobile:{value:ae,label:"captionPaddingBottomMob"},valueLeftMobile:{value:le,label:"captionPaddingLeftMob"},unit:{value:ie,label:"captionPaddingUnit"},tUnit:{value:oe,label:"captionPaddingUnitTab"},mUnit:{value:ne,label:"captionPaddingUnitMob"},attributes:l,setAttributes:i,link:{value:re,label:"captionPaddingUnitLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),"overlay"!==D&&React.createElement(Hi,{setAttributes:i,prefix:"mainTitle",attributes:l,deviceType:s,disableBottomSeparator:!0})),u&&"tiled"!==b&&(He&&"carousel"!==b||"carousel"===b&&(Fe||ze))&&React.createElement(je,{title:"carousel"===b?Object(r.__)("Arrows & Dots","ultimate-addons-for-gutenberg"):Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Top Margin","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ca,data:{value:Ca,label:"paginateDotDistance"},min:0,max:100,unit:{value:Sa,label:"paginateDotDistanceUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:el(!1),hover:el(!0),disableBottomSeparator:!0})),Fe&&"carousel"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Arrow Position","ultimate-addons-for-gutenberg"),setAttributes:i,value:va,data:{value:va,label:"paginateArrowDistance"},min:-100,max:100,unit:{value:_a,label:"paginateArrowDistanceUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}),React.createElement(Qa,{label:Object(r.__)("Arrow Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ta,data:{value:Ta,label:"paginateArrowSize"},min:0,max:50,displayUnit:!1})),ze&&"carousel"===b&&React.createElement(Qa,{label:Object(r.__)("Dot Position","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ca,data:{value:Ca,label:"paginateDotDistance"},min:0,max:100,displayUnit:!1}),(Fe||ze)&&"carousel"===b&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:el(!1),hover:el(!0),disableBottomSeparator:!Fe}),Fe&&"carousel"===b&&React.createElement(Hi,{setAttributes:i,prefix:"arrow",attributes:l,deviceType:s,disableBottomSeparator:!0}),"masonry"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Top Margin","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ca,data:{value:Ca,label:"paginateDotDistance"},min:0,max:100,unit:{value:Sa,label:"paginateDotDistanceUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}),De?React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Loader Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:ka,data:{value:ka,label:"paginateLoaderSize"},min:0,max:50,displayUnit:!1}),el(!1)):React.createElement(React.Fragment,null,React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:Et,label:"loadMoreLoadGoogleFonts"},fontFamily:{value:Ot,label:"loadMoreFontFamily"},fontWeight:{value:Lt,label:"loadMoreFontWeight"},fontStyle:{value:Ht,label:"loadMoreFontStyle"},transform:{value:Ft,label:"loadMoreTransform"},decoration:{value:jt,label:"loadMoreDecoration"},fontSizeType:{value:zt,label:"loadMoreFontSizeType"},fontSize:{value:Dt,label:"loadMoreFontSize"},fontSizeMobile:{value:Nt,label:"loadMoreFontSizeMob"},fontSizeTablet:{value:It,label:"loadMoreFontSizeTab"},lineHeightType:{value:Vt,label:"loadMoreLineHeightType"},lineHeight:{value:Wt,label:"loadMoreLineHeight"},lineHeightMobile:{value:qt,label:"loadMoreLineHeightMob"},lineHeightTablet:{value:Zt,label:"loadMoreLineHeightTab"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:el(!1),hover:el(!0)}),React.createElement(Hi,{setAttributes:i,prefix:"btn",attributes:l,deviceType:s,disableBottomSeparator:!!De}))),!De&&React.createElement(React.Fragment,null,React.createElement(Pl,bS({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ve,label:"paginateButtonPaddingTop"},valueRight:{value:We,label:"paginateButtonPaddingRight"},valueBottom:{value:qe,label:"paginateButtonPaddingBottom"},valueLeft:{value:Ze,label:"paginateButtonPaddingLeft"},valueTopTablet:{value:$e,label:"paginateButtonPaddingTopTab"},valueRightTablet:{value:Ye,label:"paginateButtonPaddingRightTab"},valueBottomTablet:{value:Ke,label:"paginateButtonPaddingBottomTab"},valueLeftTablet:{value:Je,label:"paginateButtonPaddingLeftTab"},valueTopMobile:{value:Xe,label:"paginateButtonPaddingTopMob"},valueRightMobile:{value:Qe,label:"paginateButtonPaddingRightMob"},valueBottomMobile:{value:et,label:"paginateButtonPaddingBottomMob"},valueLeftMobile:{value:tt,label:"paginateButtonPaddingLeftMob"},unit:{value:at,label:"paginateButtonPaddingUnit"},tUnit:{value:lt,label:"paginateButtonPaddingUnitTab"},mUnit:{value:it,label:"paginateButtonPaddingUnitMob"},attributes:l,setAttributes:i,link:{value:ot,label:"paginateButtonPaddingUnitLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})))),u&&React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:i,presets:pS,presetInputType:"radioImage"}),React.createElement(vl,{blockId:c,setAttributes:i,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ga,label:"imageBoxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ma,label:"imageBoxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Ra,label:"imageBoxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Ba,label:"imageBoxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Ua,label:"imageBoxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:Ea,label:"imageBoxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:i,presets:dS,presetInputType:"radioImage"}),React.createElement(vl,{blockId:c,setAttributes:i,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Oa,label:"imageBoxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:La,label:"imageBoxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Ha,label:"imageBoxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Fa,label:"imageBoxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ja,label:"imageBoxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:za,label:"imageBoxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0})),u&&React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,bS({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ue,label:"feedMarginTop"},valueRight:{value:pe,label:"feedMarginRight"},valueBottom:{value:de,label:"feedMarginBottom"},valueLeft:{value:be,label:"feedMarginLeft"},valueTopTablet:{value:me,label:"feedMarginTopTab"},valueRightTablet:{value:ye,label:"feedMarginRightTab"},valueBottomTablet:{value:fe,label:"feedMarginBottomTab"},valueLeftTablet:{value:he,label:"feedMarginLeftTab"},valueTopMobile:{value:ve,label:"feedMarginTopMob"},valueRightMobile:{value:_e,label:"feedMarginRightMob"},valueBottomMobile:{value:Te,label:"feedMarginBottomMob"},valueLeftMobile:{value:Se,label:"feedMarginLeftMob"},unit:{value:ke,label:"feedMarginUnit"},tUnit:{value:we,label:"feedMarginUnitTab"},mUnit:{value:Pe,label:"feedMarginUnitMob"},attributes:l,setAttributes:i,link:{value:xe,label:"feedMarginUnitLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})))),React.createElement(il,bS({},rl,{parentProps:e})))))}),mS=e=>{let{attributes:t,setAttributes:a}=e;const{mediaGallery:l,mediaIDs:i}=t;return"inapplicable"!==a&&React.createElement("div",{className:"spectra-image-gallery-init-wrapper"},React.createElement("div",{className:"spectra-image-gallery-init-wrapper__title"},se.image_gallery,Object(r.__)("Image Gallery","ultimate-addons-for-gutenberg")),React.createElement("p",{className:"spectra-image-gallery-init-wrapper__help-text"},Object(r.__)("Select your images to get started","ultimate-addons-for-gutenberg")),React.createElement(ge.MediaUpload,{title:Object(r.__)("Select Images","ultimate-addons-for-gutenberg"),onSelect:e=>{let t=!0;const l=[];e.forEach(e=>{e&&e.url&&e.type&&"image"===e.type?l.push(e.id):t=!1}),t&&a({mediaGallery:e,mediaIDs:l,readyToRender:!0})},allowedTypes:["image"],multiple:!0,value:i,gallery:!0,render:e=>{var t;let{open:a}=e;return React.createElement(Le.Button,{isSecondary:!0,onClick:a},null!==(t=l[0])&&void 0!==t&&t.url?Object(r.__)("Replace Images","ultimate-addons-for-gutenberg"):Object(r.__)("Select Images","ultimate-addons-for-gutenberg"))}}))},yS=a(55),fS=a.n(yS),hS=a(38),vS=a.n(hS);function _S(){return(_S=Object.assign||function(e){for(var t=1;t{let{attributes:t,setAttributes:a,name:l}=e;const i=l.replace("uagb/",""),{tileSize:o,focusList:n,focusListObject:s,mediaGallery:c,feedLayout:u,imageDisplayCaption:p,galleryImageSize:d,galleryImageSizeTablet:b,galleryImageSizeMobile:g,feedMarginTop:m,feedMarginRight:y,feedMarginBottom:f,feedMarginLeft:h,feedMarginTopTab:v,feedMarginRightTab:_,feedMarginBottomTab:T,feedMarginLeftTab:C,feedMarginTopMob:S,feedMarginRightMob:k,feedMarginBottomMob:w,feedMarginLeftMob:P,feedMarginUnit:x,feedMarginUnitTab:A,feedMarginUnitMob:G,gridImageGap:M,gridImageGapTab:R,gridImageGapMob:U,gridImageGapUnit:E,gridImageGapUnitTab:O,gridImageGapUnitMob:L,captionDisplayType:H,imageCaptionAlignment:j,imageDefaultCaption:z,carouselStartAt:D,carouselLoop:N,carouselAutoplay:I,carouselAutoplaySpeed:V,carouselPauseOnHover:W,carouselTransitionSpeed:q,gridPages:$,gridPageNumber:Y,feedPagination:K,paginateUseArrows:J,paginateUseDots:X,paginateUseLoader:Q,paginateLimit:ee,paginateButtonText:te,columnsDesk:ae,columnsTab:ie,columnsMob:oe,disableLazyLoad:ne}=t,re=us(D,"carouselStartAt",i),ce=us(q,"carouselTransitionSpeed",i),ue=us(V,"carouselAutoplaySpeed",i),pe=us(ee,"paginateLimit",i),de=us(ae,"columnsDesk",i),be=isNaN(ie)?de:ie,me=isNaN(oe)?be:oe,ye=K&&("grid"===u||"masonry"===u),[fe,he]=Object(B.useState)(0),[ve,_e]=Object(B.useState)(!1),[Te,Ce]=Object(B.useState)(!1),Se=Object(B.useRef)(null),ke=Object(B.useRef)([]),we=Object(B.useRef)(null),Pe=le();Object(B.useEffect)(()=>{c.lengthde?Se.current.children[0].querySelector(".slick-dots").clientHeight:0:"Tablet"===Pe?c.length>be?Se.current.children[0].querySelector(".slick-dots").clientHeight:0:c.length>me?Se.current.children[0].querySelector(".slick-dots").clientHeight:0):"tiled"===u&&c.forEach(e=>{void 0!==ke.current[e.id]&&null!==ke.current[e.id]&&s[e.id]&&!ke.current[e.id].classList.contains("spectra-image-gallery__media-wrapper--focus")&&ke.current[e.id].classList.add("spectra-image-gallery__media-wrapper--focus")})},[u,JSON.stringify(c),Pe]),Object(B.useEffect)(()=>{"tiled"===u&&(we.current.style.display="initial",a({tileSize:Math.round(null==we?void 0:we.current.getBoundingClientRect().width)}),Ce(!1))},[Te,Pe,u,ae,ie,oe,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,U,E,O,L]),Object(B.useEffect)(()=>{"tiled"===u&&setTimeout(()=>{const e=ke.current;for(const t in e)null===e[t]&&delete e[t];imagesLoaded(e).on("progress",Be),imagesLoaded(e).off("progress",Be),imagesLoaded(e).on("always",()=>Ce(!0))},250)},[u,JSON.stringify(c)]),Object(B.useEffect)(()=>{we&&we.current&&setTimeout(()=>{we.current.style.display="none"},1e3)},[o]),Object(B.useEffect)(()=>{if(!ve)return;const e=s;Object.keys(e).forEach(t=>{void 0!==ke.current[t]&&null!==ke.current[t]&&(e[t]&&!ke.current[t].classList.contains("spectra-image-gallery__media-wrapper--focus")?ke.current[t].classList.add("spectra-image-gallery__media-wrapper--focus"):e[t]||(ke.current[t].classList.remove("spectra-image-gallery__media-wrapper--focus"),delete e[t]))}),a({focusListObject:{...e}}),_e(!1)},[ve]),Object(B.useEffect)(()=>{Array.isArray(n)&&!n.length&&_e(!0)},[n]);const xe=()=>React.createElement("button",{type:"button","data-role":"none",className:Z(["spectra-image-gallery__control-arrows","spectra-image-gallery__control-arrows--"+u,"carousel"===u&&"slick-next","carousel"===u&&"slick-arrow"]),"aria-label":"Next",tabIndex:"0","data-direction":"Next",disabled:"grid"===u&&Y===$},se.carousel_right),Ae=()=>React.createElement("button",{type:"button","data-role":"none",className:Z(["spectra-image-gallery__control-arrows","spectra-image-gallery__control-arrows--"+u,"carousel"===u&&"slick-prev","carousel"===u&&"slick-arrow"]),"aria-label":"Prev",tabIndex:"0","data-direction":"Prev",disabled:"grid"===u&&1===Y},se.carousel_left);let Ge=de;switch(Pe){case"Tablet":Ge=be;break;case"Mobile":Ge=me;break;default:Ge=de}const Me={arrows:J,dots:X,initialSlide:re,infinite:N,autoplay:I,autoplaySpeed:ue,pauseOnHover:W,speed:ce,slidesToShow:Ge,nextArrow:React.createElement(xe,null),prevArrow:React.createElement(Ae,null),responsive:[{breakpoint:1024,settings:{slidesToShow:be}},{breakpoint:767,settings:{slidesToShow:me}}]},Re=(e,t)=>{const l=s;l[e]=t,a({focusListObject:{...l}}),_e(!0)},Be=(e,t)=>{if(t&&t.isLoaded){const e=t.img,a=e.parentElement,l=e.parentElement.parentElement;l.classList.contains("spectra-image-gallery__media-wrapper--focus")||(e.naturalWidth>=2*e.naturalHeight-e.naturalHeight/2?(l.classList.add("spectra-image-gallery__media-wrapper--wide"),a.classList.add("spectra-image-gallery__media--tiled-wide")):e.naturalHeight>=2*e.naturalWidth-e.naturalWidth/2&&(l.classList.add("spectra-image-gallery__media-wrapper--tall"),a.classList.add("spectra-image-gallery__media--tiled-tall")))}},Ue=e=>{switch(Pe){case"Desktop":return e.sizes[d]?e.sizes[d].url:e.url;case"Tablet":return e.sizes[b]?e.sizes[b].url:e.url;case"Mobile":return e.sizes[g]?e.sizes[g].url:e.url;default:return e.url}},Ee=()=>(ye&&a({gridPages:Math.ceil(c.length/pe)}),(ye?c.slice((Y-1)*pe,Y*pe):c).map(e=>"masonry"===u?Oe(e):Le(e))),Oe=e=>React.createElement("div",{className:"spectra-image-gallery__media-wrapper--isotope",key:e.id},Le(e)),Le=e=>React.createElement("div",{className:"spectra-image-gallery__media-wrapper",key:e.id,ref:t=>ke.current[e.id]=t},He(e),"tiled"===u&&(e=>{return s[e.id]?(t=e.id,React.createElement("button",{className:"spectra-image-gallery__control-focus",onClick:()=>{Re(t,!1)}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"37 0.083 24 24"},React.createElement("path",{d:"M45.791,10.375c1.1,0,2-0.9,2-2V4h-1.5v4.375c0,0.3-0.2,0.5-0.5,0.5h-4.376v1.5H45.791z"}),React.createElement("path",{d:"M51.041,8.376c0,1.1,0.9,2,2,2h4.375v-1.5h-4.375c-0.299,0-0.5-0.2-0.5-0.5V4h-1.5V8.376z"}),React.createElement("path",{d:"M45.791,13.625c1.1,0,2,0.9,2,2V20h-1.5v-4.375c0-0.3-0.2-0.5-0.5-0.5h-4.376v-1.5H45.791z"}),React.createElement("path",{d:"M51.041,15.625c0-1.1,0.9-2,2-2h4.375v1.5h-4.375c-0.299,0-0.5,0.199-0.5,0.5V20h-1.5V15.625z"})))):(e=>React.createElement("button",{className:"spectra-image-gallery__control-focus",onClick:()=>{Re(e,!0)}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},React.createElement("path",{d:"M6,4C4.9,4,4,4.9,4,6v4.375h1.5V6c0-0.3,0.2-0.5,0.5-0.5h4.376V4H6z"}),React.createElement("path",{d:"M20,6c0-1.1-0.9-2-2-2h-4.375v1.5H18c0.299,0,0.5,0.2,0.5,0.5v4.376H20V6z"}),React.createElement("path",{d:"M6,20c-1.1,0-2-0.9-2-2v-4.375h1.5V18c0,0.3,0.2,0.5,0.5,0.5h4.376V20H6z"}),React.createElement("path",{d:"M20,18c0,1.1-0.9,2-2,2h-4.375v-1.5H18c0.299,0,0.5-0.199,0.5-0.5v-4.375H20V18z"}))))(e.id);var t})(e)),He=e=>React.createElement(React.Fragment,null,p&&"bar-outside"===H&&"top"===cS(j,1)&&React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--"+H])},Fe(e)),React.createElement("div",{className:Z(["spectra-image-gallery__media","spectra-image-gallery__media--"+u])},React.createElement("img",{className:Z(["spectra-image-gallery__media-thumbnail","spectra-image-gallery__media-thumbnail--"+u]),src:Ue(e),alt:e.alt,loading:ne?void 0:"lazy",tabIndex:"0"}),React.createElement("div",{className:"spectra-image-gallery__media-thumbnail-blurrer"}),p?"bar-outside"!==H&&React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--"+H])},Fe(e)):React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--overlay"])})),p&&"bar-outside"===H&&"top"!==cS(j,1)&&React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--"+H])},Fe(e))),Fe=e=>e.caption?React.createElement(ge.RichText,{tagName:"div",placeholder:z,value:e.caption,onChange:t=>e.caption=t,className:Z(["spectra-image-gallery__media-thumbnail-caption","spectra-image-gallery__media-thumbnail-caption--"+H]),multiline:!1}):e.url?React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("No Caption","ultimate-addons-for-gutenberg"),value:z,onChange:e=>a({imageDefaultCaption:e}),className:Z(["spectra-image-gallery__media-thumbnail-caption","spectra-image-gallery__media-thumbnail-caption--"+H]),multiline:!1}):Object(r.__)("Unable to load image","ultimate-addons-for-gutenberg");return c?React.createElement(React.Fragment,null,(()=>{switch(u){case"grid":const e="grid";return React.createElement(React.Fragment,null,React.createElement("div",{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+e,`spectra-image-gallery__layout--${e}-col-${de}`,`spectra-image-gallery__layout--${e}-col-tab-${be}`,`spectra-image-gallery__layout--${e}-col-mob-${me}`])},Ee()),K&&React.createElement("div",{className:"spectra-image-gallery__control-wrapper"},React.createElement(Ae,null),React.createElement("ul",{className:"spectra-image-gallery__control-dots"},[...Array($)].map((e,t)=>React.createElement("li",{key:t,className:Z(["spectra-image-gallery__control-dot",t===Y-1&&"spectra-image-gallery__control-dot--active"]),"data-go-to":t+1},React.createElement("button",null)))),React.createElement(xe,null)));case"masonry":return React.createElement(React.Fragment,null,React.createElement(fS.a,{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+u,`spectra-image-gallery__layout--${u}-col-${de}`,`spectra-image-gallery__layout--${u}-col-tab-${be}`,`spectra-image-gallery__layout--${u}-col-mob-${me}`]),updateOnEachImageLoad:!0},Ee()),K&&(c.length<=pe?null:React.createElement(React.Fragment,null,Q?React.createElement("div",{className:"spectra-image-gallery__control-loader wp-block-button"},React.createElement("div",{className:"wp-block-button__link spectra-image-gallery__control-loader--1"}),React.createElement("div",{className:"wp-block-button__link spectra-image-gallery__control-loader--2"}),React.createElement("div",{className:"wp-block-button__link spectra-image-gallery__control-loader--3"})):React.createElement("div",{className:"spectra-image-gallery__control-wrapper wp-block-button"},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Load More Images","ultimate-addons-for-gutenberg"),value:te,onChange:e=>a({paginateButtonText:e}),className:"spectra-image-gallery__control-button wp-block-button__link",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})))));case"tiled":return React.createElement("div",{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+u,`spectra-image-gallery__layout--${u}-col-${de}`,`spectra-image-gallery__layout--${u}-col-tab-${be}`,`spectra-image-gallery__layout--${u}-col-mob-${me}`])},Ee(),React.createElement("div",{className:"spectra-image-gallery__media-sizer",ref:we}));case"carousel":return React.createElement("div",{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+u]),ref:Se,style:{marginBottom:fe+"px"}},React.createElement(vS.a,_S({className:"uagb-slick-carousel"},Me),Ee()))}})(),Object(F.applyFilters)("spectra.image-gallery.render.customLinks",null,ke,t,a)):React.createElement("div",{className:"spectra-image-gallery-init-wrapper"},se.image_gallery,React.createElement("h3",null,Object(r.__)("Image Gallery","ultimate-addons-for-gutenberg")),React.createElement("p",null,Object(r.__)("No images to display…","ultimate-addons-for-gutenberg")))};function CS(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function SS(e={},t={}){Object.keys(t).forEach(a=>{void 0===e[a]?e[a]=t[a]:CS(t[a])&&CS(e[a])&&Object.keys(t[a]).length>0&&SS(e[a],t[a])})}const kS={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wS(){const e="undefined"!=typeof document?document:{};return SS(e,kS),e}const PS={document:kS,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function xS(){const e="undefined"!=typeof window?window:{};return SS(e,PS),e}class AS extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function GS(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...GS(e)):t.push(e)}),t}function MS(e,t){return Array.prototype.filter.call(e,t)}function RS(e,t){const a=xS(),l=wS();let i=[];if(!t&&e instanceof AS)return e;if(!e)return new AS(i);if("string"==typeof e){const a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let e="div";0===a.indexOf("e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this},removeClass:function(...e){const t=GS(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this},hasClass:function(...e){const t=GS(e.map(e=>e.split(" ")));return MS(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0},toggleClass:function(...e){const t=GS(e.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(t=>{e.classList.toggle(t)})})},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let a=0;a=0;e-=1){const a=n[e];l&&a.listener===l||l&&a.listener&&a.listener.dom7proxy&&a.listener.dom7proxy===l?(o.removeEventListener(t,a.proxyListener,i),n.splice(e,1)):l||(o.removeEventListener(t,a.proxyListener,i),n.splice(e,1))}}}return this},trigger:function(...e){const t=xS(),a=e[0].split(" "),l=e[1];for(let i=0;it>0),i.dispatchEvent(a),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function a(l){l.target===this&&(e.call(this,l),t.off("transitionend",a))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=xS();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=xS(),t=wS(),a=this[0],l=a.getBoundingClientRect(),i=t.body,o=a.clientTop||i.clientTop||0,n=a.clientLeft||i.clientLeft||0,r=a===e?e.scrollY:a.scrollTop,s=a===e?e.scrollX:a.scrollLeft;return{top:l.top+r-o,left:l.left+s-n}}return null},css:function(e,t){const a=xS();let l;if(1===arguments.length){if("string"!=typeof e){for(l=0;l{e.apply(t,[t,a])}),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return RS([]);if(e<0){const a=t+e;return RS(a<0?[]:[this[a]])}return RS([this[e]])},append:function(...e){let t;const a=wS();for(let l=0;l=0;l-=1)this[a].insertBefore(i.childNodes[l],this[a].childNodes[0])}else if(e instanceof AS)for(l=0;l0?e?this[0].nextElementSibling&&RS(this[0].nextElementSibling).is(e)?RS([this[0].nextElementSibling]):RS([]):this[0].nextElementSibling?RS([this[0].nextElementSibling]):RS([]):RS([])},nextAll:function(e){const t=[];let a=this[0];if(!a)return RS([]);for(;a.nextElementSibling;){const l=a.nextElementSibling;e?RS(l).is(e)&&t.push(l):t.push(l),a=l}return RS(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&RS(t.previousElementSibling).is(e)?RS([t.previousElementSibling]):RS([]):t.previousElementSibling?RS([t.previousElementSibling]):RS([])}return RS([])},prevAll:function(e){const t=[];let a=this[0];if(!a)return RS([]);for(;a.previousElementSibling;){const l=a.previousElementSibling;e?RS(l).is(e)&&t.push(l):t.push(l),a=l}return RS(t)},parent:function(e){const t=[];for(let a=0;a{Object.defineProperty(RS.fn,e,{value:ES[e],writable:!0})});var OS=RS;function LS(e,t=0){return setTimeout(e,t)}function HS(){return Date.now()}function FS(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function jS(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let i=1;ia.indexOf(e)<0);for(let a=0,l=e.length;ai?"next":"prev",c=(e,t)=>"next"===s&&e>=t||"prev"===s&&e<=t,u=()=>{o=(new Date).getTime(),null===n&&(n=o);const s=Math.max(Math.min((o-n)/r,1),0),p=.5-Math.cos(s*Math.PI)/2;let d=i+p*(t-i);if(c(d,t)&&(d=t),e.wrapperEl.scrollTo({[a]:d}),c(d,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:d})}),void l.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=l.requestAnimationFrame(u)};u()}let NS,IS,VS;function WS(){return NS||(NS=function(){const e=xS(),t=wS();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const a=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,a)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),NS}function qS({swiper:e,runCallbacks:t,direction:a,step:l}){const{activeIndex:i,previousIndex:o}=e;let n=a;if(n||(n=i>o?"next":i0)return;if(i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,p=e.composedPath?e.composedPath():e.path;u&&s.target&&s.target.shadowRoot&&p&&(c=OS(p[0]));const d=o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass,b=!(!s.target||!s.target.shadowRoot);if(o.noSwiping&&(b?function(e,t=this){return function t(a){if(!a||a===wS()||a===xS())return null;a.assignedSlot&&(a=a.assignedSlot);const l=a.closest(e);return l||a.getRootNode?l||t(a.getRootNode().host):null}(t)}(d,c[0]):c.closest(d)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;n.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,n.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;const g=n.currentX,m=n.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,f=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(g<=f||g>=l.innerWidth-f)){if("prevent"!==y)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=g,n.startY=m,i.touchStartTime=HS(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==s.type){let e=!0;c.is(i.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(i.isTouched=!1)),a.activeElement&&OS(a.activeElement).is(i.focusableElements)&&a.activeElement!==c[0]&&a.activeElement.blur();const l=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!l||c[0].isContentEditable||s.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function $S(e){const t=wS(),a=this,l=a.touchEventsData,{params:i,touches:o,rtlTranslate:n,enabled:r}=a;if(!r)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),!l.isTouched)return void(l.startMoving&&l.isScrolling&&a.emit("touchMoveOpposite",s));if(l.isTouchEvent&&"touchmove"!==s.type)return;const c="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),u="touchmove"===s.type?c.pageX:s.pageX,p="touchmove"===s.type?c.pageY:s.pageY;if(s.preventedByNestedSwiper)return o.startX=u,void(o.startY=p);if(!a.allowTouchMove)return OS(s.target).is(l.focusableElements)||(a.allowClick=!1),void(l.isTouched&&(Object.assign(o,{startX:u,startY:p,currentX:u,currentY:p}),l.touchStartTime=HS()));if(l.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(a.isVertical()){if(po.startY&&a.translate>=a.minTranslate())return l.isTouched=!1,void(l.isMoved=!1)}else if(uo.startX&&a.translate>=a.minTranslate())return;if(l.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&OS(s.target).is(l.focusableElements))return l.isMoved=!0,void(a.allowClick=!1);if(l.allowTouchCallbacks&&a.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;o.currentX=u,o.currentY=p;const d=o.currentX-o.startX,b=o.currentY-o.startY;if(a.params.threshold&&Math.sqrt(d**2+b**2)=25&&(e=180*Math.atan2(Math.abs(b),Math.abs(d))/Math.PI,l.isScrolling=a.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(l.isScrolling&&a.emit("touchMoveOpposite",s),void 0===l.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(l.startMoving=!0)),l.isScrolling)return void(l.isTouched=!1);if(!l.startMoving)return;a.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation(),l.isMoved||(i.loop&&!i.cssMode&&a.loopFix(),l.startTranslate=a.getTranslate(),a.setTransition(0),a.animating&&a.$wrapperEl.trigger("webkitTransitionEnd transitionend"),l.allowMomentumBounce=!1,!i.grabCursor||!0!==a.allowSlideNext&&!0!==a.allowSlidePrev||a.setGrabCursor(!0),a.emit("sliderFirstMove",s)),a.emit("sliderMove",s),l.isMoved=!0;let g=a.isHorizontal()?d:b;o.diff=g,g*=i.touchRatio,n&&(g=-g),a.swipeDirection=g>0?"prev":"next",l.currentTranslate=g+l.startTranslate;let m=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),g>0&&l.currentTranslate>a.minTranslate()?(m=!1,i.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+g)**y)):g<0&&l.currentTranslatel.startTranslate&&(l.currentTranslate=l.startTranslate),a.allowSlidePrev||a.allowSlideNext||(l.currentTranslate=l.startTranslate),i.threshold>0){if(!(Math.abs(g)>i.threshold||l.allowThresholdMove))return void(l.currentTranslate=l.startTranslate);if(!l.allowThresholdMove)return l.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,l.currentTranslate=l.startTranslate,void(o.diff=a.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&a.freeMode||i.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),a.params.freeMode&&i.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(l.currentTranslate),a.setTranslate(l.currentTranslate))}function YS(e){const t=this,a=t.touchEventsData,{params:l,touches:i,rtlTranslate:o,slidesGrid:n,enabled:r}=t;if(!r)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",s),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&l.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);l.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=HS(),u=c-a.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target),t.emit("tap click",s),u<300&&c-a.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(a.lastClickTime=HS(),LS(()=>{t.destroyed||(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||0===i.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);let p;if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,p=l.followFinger?o?t.translate:-t.translate:-a.currentTranslate,l.cssMode)return;if(t.params.freeMode&&l.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let d=0,b=t.slidesSizesGrid[0];for(let e=0;e=n[e]&&p=n[e]&&(d=e,b=n[n.length-1]-n[n.length-2])}let g=null,m=null;l.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const y=(p-n[d])/b,f=dl.longSwipesMs){if(!l.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?g:d+f):t.slideTo(d)),"prev"===t.swipeDirection&&(y>1-l.longSwipesRatio?t.slideTo(d+f):null!==m&&y<0&&Math.abs(y)>l.longSwipesRatio?t.slideTo(m):t.slideTo(d))}else{if(!l.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:d+f),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:d)):s.target===t.navigation.nextEl?t.slideTo(d+f):t.slideTo(d)}}function KS(){const{params:e,el:t}=this;if(t&&0===t.offsetWidth)return;e.breakpoints&&this.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:l,snapGrid:i}=this;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=l,this.allowSlideNext=a,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}function JS(e){this.enabled&&(this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function XS(){const{wrapperEl:e,rtlTranslate:t,enabled:a}=this;if(!a)return;let l;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();const i=this.maxTranslate()-this.minTranslate();l=0===i?0:(this.translate-this.minTranslate())/i,l!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}let QS=!1;function ek(){}const tk=(e,t)=>{const a=wS(),{params:l,touchEvents:i,el:o,wrapperEl:n,device:r,support:s}=e,c=!!l.nested,u="on"===t?"addEventListener":"removeEventListener",p=t;if(s.touch){const t=!("touchstart"!==i.start||!s.passiveListener||!l.passiveListeners)&&{passive:!0,capture:!1};o[u](i.start,e.onTouchStart,t),o[u](i.move,e.onTouchMove,s.passiveListener?{passive:!1,capture:c}:c),o[u](i.end,e.onTouchEnd,t),i.cancel&&o[u](i.cancel,e.onTouchEnd,t)}else o[u](i.start,e.onTouchStart,!1),a[u](i.move,e.onTouchMove,c),a[u](i.end,e.onTouchEnd,!1);(l.preventClicks||l.preventClicksPropagation)&&o[u]("click",e.onClick,!0),l.cssMode&&n[u]("scroll",e.onScroll),l.updateOnWindowResize?e[p](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",KS,!0):e[p]("observerUpdate",KS,!0)},ak=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var lk={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function ik(e,t){return function(a={}){const l=Object.keys(a)[0],i=a[l];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(l)>=0&&!0===e[l]&&(e[l]={auto:!0}),l in e&&"enabled"in i?(!0===e[l]&&(e[l]={enabled:!0}),"object"!=typeof e[l]||"enabled"in e[l]||(e[l].enabled=!0),e[l]||(e[l]={enabled:!1}),jS(t,a)):jS(t,a)):jS(t,a)}}const ok={eventsEmitter:{on(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed)return l;if("function"!=typeof t)return l;const i=a?"unshift":"push";return e.split(" ").forEach(e=>{l.eventsListeners[e]||(l.eventsListeners[e]=[]),l.eventsListeners[e][i](t)}),l},once(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed)return l;if("function"!=typeof t)return l;function i(...a){l.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(l,a)}return i.__emitterProxy=t,l.on(e,i,a)},onAny(e,t){if(!this.eventsListeners||this.destroyed)return this;if("function"!=typeof e)return this;const a=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[a](e),this},offAny(e){if(!this.eventsListeners||this.destroyed)return this;if(!this.eventsAnyListeners)return this;const t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){const a=this;return!a.eventsListeners||a.destroyed?a:a.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e]&&a.eventsListeners[e].forEach((l,i)=>{(l===t||l.__emitterProxy&&l.__emitterProxy===t)&&a.eventsListeners[e].splice(i,1)})}),a):a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let a,l,i;return"string"==typeof e[0]||Array.isArray(e[0])?(a=e[0],l=e.slice(1,e.length),i=t):(a=e[0].events,l=e[0].data,i=e[0].context||t),l.unshift(i),(Array.isArray(a)?a:a.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...l])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,l)})}),t}},update:{updateSize:function(){let e,t;const a=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:a[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:a[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(a.css("padding-left")||0,10)-parseInt(a.css("padding-right")||0,10),t=t-parseInt(a.css("padding-top")||0,10)-parseInt(a.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function a(e,a){return parseFloat(e.getPropertyValue(t(a))||0)}const l=e.params,{$wrapperEl:i,size:o,rtlTranslate:n,wrongRTL:r}=e,s=e.virtual&&l.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=i.children("."+e.params.slideClass),p=s?e.virtual.slides.length:u.length;let d=[];const b=[],g=[];let m=l.slidesOffsetBefore;"function"==typeof m&&(m=l.slidesOffsetBefore.call(e));let y=l.slidesOffsetAfter;"function"==typeof y&&(y=l.slidesOffsetAfter.call(e));const f=e.snapGrid.length,h=e.slidesGrid.length;let v=l.spaceBetween,_=-m,T=0,C=0;if(void 0===o)return;"string"==typeof v&&v.indexOf("%")>=0&&(v=parseFloat(v.replace("%",""))/100*o),e.virtualSize=-v,n?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),l.centeredSlides&&l.cssMode&&(zS(e.wrapperEl,"--swiper-centered-offset-before",""),zS(e.wrapperEl,"--swiper-centered-offset-after",""));const S=l.grid&&l.grid.rows>1&&e.grid;let k;S&&e.grid.initSlides(p);const w="auto"===l.slidesPerView&&l.breakpoints&&Object.keys(l.breakpoints).filter(e=>void 0!==l.breakpoints[e].slidesPerView).length>0;for(let i=0;i1&&d.push(e.virtualSize-o)}if(0===d.length&&(d=[0]),0!==l.spaceBetween){const a=e.isHorizontal()&&n?"marginLeft":t("marginRight");u.filter((e,t)=>!l.cssMode||t!==u.length-1).css({[a]:v+"px"})}if(l.centeredSlides&&l.centeredSlidesBounds){let e=0;g.forEach(t=>{e+=t+(l.spaceBetween?l.spaceBetween:0)}),e-=l.spaceBetween;const t=e-o;d=d.map(e=>e<0?-m:e>t?t+y:e)}if(l.centerInsufficientSlides){let e=0;if(g.forEach(t=>{e+=t+(l.spaceBetween?l.spaceBetween:0)}),e-=l.spaceBetween,e{d[a]=e-t}),b.forEach((e,a)=>{b[a]=e+t})}}if(Object.assign(e,{slides:u,snapGrid:d,slidesGrid:b,slidesSizesGrid:g}),l.centeredSlides&&l.cssMode&&!l.centeredSlidesBounds){zS(e.wrapperEl,"--swiper-centered-offset-before",-d[0]+"px"),zS(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],a=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+a)}if(p!==c&&e.emit("slidesLengthChange"),d.length!==f&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),b.length!==h&&e.emit("slidesGridLengthChange"),l.watchSlidesProgress&&e.updateSlidesOffset(),!(s||l.cssMode||"slide"!==l.effect&&"fade"!==l.effect)){const t=l.containerModifierClass+"backface-hidden",a=e.$el.hasClass(t);p<=l.maxBackfaceHiddenSlides?a||e.$el.addClass(t):a&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,a=[],l=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>l?t.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||OS([])).each(e=>{a.push(e)});else for(i=0;it.slides.length&&!l)break;a.push(n(e))}else a.push(n(t.activeIndex));for(i=0;io?e:o}(o||0===o)&&t.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let a=0;a=0&&p1&&d<=t.size||p<=0&&d>=t.size)&&(t.visibleSlides.push(r),t.visibleSlidesIndexes.push(e),l.eq(e).addClass(a.slideVisibleClass)),r.progress=i?-c:c,r.originalProgress=i?-u:u}t.visibleSlides=OS(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const a=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*a||0}const a=t.params,l=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:n}=t;const r=o,s=n;0===l?(i=0,o=!0,n=!0):(i=(e-t.minTranslate())/l,o=i<=0,n=i>=1),Object.assign(t,{progress:i,isBeginning:o,isEnd:n}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),o&&!r&&t.emit("reachBeginning toEdge"),n&&!s&&t.emit("reachEnd toEdge"),(r&&!o||s&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const{slides:e,params:t,$wrapperEl:a,activeIndex:l,realIndex:i}=this,o=this.virtual&&t.virtual.enabled;let n;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`),n=o?this.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${l}"]`):e.eq(l),n.addClass(t.slideActiveClass),t.loop&&(n.hasClass(t.slideDuplicateClass)?a.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${i}"]`).addClass(t.slideDuplicateActiveClass):a.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${i}"]`).addClass(t.slideDuplicateActiveClass));let r=n.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass);t.loop&&0===r.length&&(r=e.eq(0),r.addClass(t.slideNextClass));let s=n.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass);t.loop&&0===s.length&&(s=e.eq(-1),s.addClass(t.slidePrevClass)),t.loop&&(r.hasClass(t.slideDuplicateClass)?a.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):a.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),s.hasClass(t.slideDuplicateClass)?a.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):a.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){const t=this.rtlTranslate?this.translate:-this.translate,{slidesGrid:a,snapGrid:l,params:i,activeIndex:o,realIndex:n,snapIndex:r}=this;let s,c=e;if(void 0===c){for(let e=0;e=a[e]&&t=a[e]&&t=a[e]&&(c=e);i.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(l.indexOf(t)>=0)s=l.indexOf(t);else{const e=Math.min(i.slidesPerGroupSkip,c);s=e+Math.floor((c-e)/i.slidesPerGroup)}if(s>=l.length&&(s=l.length-1),c===o)return void(s!==r&&(this.snapIndex=s,this.emit("snapIndexChange")));const u=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(this,{snapIndex:s,realIndex:u,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),n!==u&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(e){const t=this,a=t.params,l=OS(e).closest("."+a.slideClass)[0];let i,o=!1;if(l)for(let e=0;e6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new a.WebKitCSSMatrix("none"===i?"":i)):(o=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=o.toString().split(",")),"x"===t&&(i=a.WebKitCSSMatrix?o.m41:16===l.length?parseFloat(l[12]):parseFloat(l[4])),"y"===t&&(i=a.WebKitCSSMatrix?o.m42:16===l.length?parseFloat(l[13]):parseFloat(l[5])),i||0}(i[0],e);return a&&(o=-o),o||0},setTranslate:function(e,t){const{rtlTranslate:a,params:l,$wrapperEl:i,wrapperEl:o,progress:n}=this;let r,s=0,c=0;this.isHorizontal()?s=a?-e:e:c=e,l.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),l.cssMode?o[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-c:l.virtualTranslate||i.transform(`translate3d(${s}px, ${c}px, 0px)`),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:c;const u=this.maxTranslate()-this.minTranslate();r=0===u?0:(e-this.minTranslate())/u,r!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,a=!0,l=!0,i){const o=this,{params:n,wrapperEl:r}=o;if(o.animating&&n.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let u;if(u=l&&e>s?s:l&&e=s.length&&(y=s.length-1);const f=-s[y];if(r.normalizeSlideIndex)for(let e=0;e=a&&t=a&&t=a&&(n=e)}if(o.initialized&&n!==p){if(!o.allowSlideNext&&fo.translate&&f>o.maxTranslate()&&(p||0)!==n)return!1}let h;if(n!==(u||0)&&a&&o.emit("beforeSlideChangeStart"),o.updateProgress(f),h=n>p?"next":n{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1})}else{if(!o.support.smoothScroll)return DS({swiper:o,targetPosition:a,side:e?"left":"top"}),!0;b.scrollTo({[e?"left":"top"]:a,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(f),o.updateActiveIndex(n),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,l),o.transitionStart(a,h),0===t?o.transitionEnd(a,h):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(a,h))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,a=!0,l){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let i=e;return this.params.loop&&(i+=this.loopedSlides),this.slideTo(i,t,a,l)},slideNext:function(e=this.params.speed,t=!0,a){const l=this,{animating:i,enabled:o,params:n}=l;if(!o)return l;let r=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(r=Math.max(l.slidesPerViewDynamic("current",!0),1));const s=l.activeIndexu(e));let b=n[d.indexOf(p)-1];if(void 0===b&&i.cssMode){let e;n.forEach((t,a)=>{p>=t&&(e=a)}),void 0!==e&&(b=n[e>0?e-1:e])}let g=0;if(void 0!==b&&(g=r.indexOf(b),g<0&&(g=l.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-l.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&l.isBeginning){const i=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(i,e,t,a)}return l.slideTo(g,e,t,a)},slideReset:function(e=this.params.speed,t=!0,a){return this.slideTo(this.activeIndex,e,t,a)},slideToClosest:function(e=this.params.speed,t=!0,a,l=.5){const i=this;let o=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,o),r=n+Math.floor((o-n)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[r]){const e=i.snapGrid[r];s-e>(i.snapGrid[r+1]-e)*l&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[r-1];s-e<=(i.snapGrid[r]-e)*l&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,a)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:a}=e,l="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(OS(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+l/2?(e.loopFix(),o=a.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),LS(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-l?(e.loopFix(),o=a.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),LS(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},loop:{loopCreate:function(){const e=this,t=wS(),{params:a,$wrapperEl:l}=e,i=l.children().length>0?OS(l.children()[0].parentNode):l;i.children(`.${a.slideClass}.${a.slideDuplicateClass}`).remove();let o=i.children("."+a.slideClass);if(a.loopFillGroupWithBlank){const e=a.slidesPerGroup-o.length%a.slidesPerGroup;if(e!==a.slidesPerGroup){for(let l=0;lo.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=o.length);const n=[],r=[];o.each((e,t)=>{OS(e).attr("data-swiper-slide-index",t)});for(let t=0;t=0;e-=1)i.prepend(OS(n[e].cloneNode(!0)).addClass(a.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:a,loopedSlides:l,allowSlidePrev:i,allowSlideNext:o,snapGrid:n,rtlTranslate:r}=e;let s;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-n[t]-e.getTranslate();t=a.length-l&&(s=-a.length+t+l,s+=l,e.slideTo(s,0,!1,!0)&&0!==c&&e.setTranslate((r?-e.translate:e.translate)-c)),e.allowSlidePrev=i,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:a}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),a.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=wS(),{params:t,support:a}=this;this.onTouchStart=ZS.bind(this),this.onTouchMove=$S.bind(this),this.onTouchEnd=YS.bind(this),t.cssMode&&(this.onScroll=XS.bind(this)),this.onClick=JS.bind(this),a.touch&&!QS&&(e.addEventListener("touchstart",ek),QS=!0),tk(this,"on")},detachEvents:function(){tk(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:a,loopedSlides:l=0,params:i,$el:o}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const r=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const s=(r in n?n[r]:void 0)||e.originalParams,c=ak(e,i),u=ak(e,s),p=i.enabled;c&&!u?(o.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(o.addClass(i.containerModifierClass+"grid"),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===i.grid.fill)&&o.addClass(i.containerModifierClass+"grid-column"),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{const a=i[t]&&i[t].enabled,l=s[t]&&s[t].enabled;a&&!l&&e[t].disable(),!a&&l&&e[t].enable()});const d=s.direction&&s.direction!==i.direction,b=i.loop&&(s.slidesPerView!==i.slidesPerView||d);d&&a&&e.changeDirection(),jS(e.params,s);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",s),b&&a&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-l+e.loopedSlides,0,!1)),e.emit("breakpoint",s)},getBreakpoint:function(e,t="window",a){if(!e||"container"===t&&!a)return;let l=!1;const i=xS(),o="window"===t?i.innerHeight:a.clientHeight,n=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});n.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;ea}else e.isLocked=1===e.snapGrid.length;!0===a.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===a.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:a,$el:l,device:i,support:o}=this,n=function(e,t){const a=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(l=>{e[l]&&a.push(t+l)}):"string"==typeof e&&a.push(t+e)}),a}(["initialized",t.direction,{"pointer-events":!o.touch},{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:a},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...n),l.addClass([...e].join(" ")),this.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,a,l,i,o){const n=xS();let r;function s(){o&&o()}OS(e).parent("picture")[0]||e.complete&&i?s():t?(r=new n.Image,r.onload=s,r.onerror=s,l&&(r.sizes=l),a&&(r.srcset=a),t&&(r.src=t)):s()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let a=0;a1){const e=[];return OS(a.el).each(t=>{const l=jS({},a,{el:t});e.push(new rk(l))}),e}const l=this;l.__swiper__=!0,l.support=WS(),l.device=function(e={}){return IS||(IS=function({userAgent:e}={}){const t=WS(),a=xS(),l=a.navigator.platform,i=e||a.navigator.userAgent,o={ios:!1,android:!1},n=a.screen.width,r=a.screen.height,s=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===l;let b="MacIntel"===l;return!c&&b&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${n}x${r}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),b=!1),s&&!d&&(o.os="android",o.android=!0),(c||p||u)&&(o.os="ios",o.ios=!0),o}(e)),IS}({userAgent:a.userAgent}),l.browser=(VS||(VS=function(){const e=xS();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),VS),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],a.modules&&Array.isArray(a.modules)&&l.modules.push(...a.modules);const i={};l.modules.forEach(e=>{e({swiper:l,extendParams:ik(a,i),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const o=jS({},lk,i);return l.params=jS({},o,nk,a),l.originalParams=jS({},l.params),l.passedParams=jS({},a),l.params&&l.params.on&&Object.keys(l.params.on).forEach(e=>{l.on(e,l.params.on[e])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=OS,Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:OS(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return l.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:HS(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const a=this.minTranslate(),l=(this.maxTranslate()-a)*e+a;this.translateTo(l,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(a=>{const l=e.getSlideClasses(a);t.push({slideEl:a,classNames:l}),e.emit("_slideClass",a,l)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:a,slides:l,slidesGrid:i,slidesSizesGrid:o,size:n,activeIndex:r}=this;let s=1;if(a.centeredSlides){let e,t=l[r].swiperSlideSize;for(let a=r+1;an&&(e=!0));for(let a=r-1;a>=0;a-=1)l[a]&&!e&&(t+=l[a].swiperSlideSize,s+=1,t>n&&(e=!0))}else if("current"===e)for(let e=r+1;e=0;e-=1)i[r]-i[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||l()),a.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const a=this.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(`${this.params.containerModifierClass}${a}`).addClass(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){this.rtl&&"rtl"===e||!this.rtl&&"ltr"===e||(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.$el.addClass(this.params.containerModifierClass+"rtl"),this.el.dir="rtl"):(this.$el.removeClass(this.params.containerModifierClass+"rtl"),this.el.dir="ltr"),this.update())}mount(e){const t=this;if(t.mounted)return!0;const a=OS(e||t.params.el);if(!(e=a[0]))return!1;e.swiper=t;const l=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let i=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=OS(e.shadowRoot.querySelector(l()));return t.children=e=>a.children(e),t}return a.children?a.children(l()):OS(a).children(l())})();if(0===i.length&&t.params.createElements){const e=wS().createElement("div");i=OS(e),e.className=t.params.wrapperClass,a.append(e),a.children("."+t.params.slideClass).each(e=>{i.append(e)})}return Object.assign(t,{$el:a,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===a.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===a.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(e){return this.initialized||!1===this.mount(e)||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.enabled&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit,!1,!0):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit,!1,!0),this.attachEvents(),this.initialized=!0,this.emit("init"),this.emit("afterInit")),this}destroy(e=!0,t=!0){const a=this,{params:l,$el:i,$wrapperEl:o,slides:n}=a;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),l.loop&&a.loopDestroy(),t&&(a.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),n&&n.length&&n.removeClass([l.slideVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(e=>{a.off(e)}),!1!==e&&(a.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(a)),a.destroyed=!0),null}static extendDefaults(e){jS(nk,e)}static get extendedDefaults(){return nk}static get defaults(){return lk}static installModule(e){rk.prototype.__modules__||(rk.prototype.__modules__=[]);const t=rk.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>rk.installModule(e)),rk):(rk.installModule(e),rk)}}Object.keys(ok).forEach(e=>{Object.keys(ok[e]).forEach(t=>{rk.prototype[t]=ok[e][t]})}),rk.use([function({swiper:e,on:t,emit:a}){const l=xS();let i=null,o=null;const n=()=>{e&&!e.destroyed&&e.initialized&&(a("beforeResize"),a("resize"))},r=()=>{e&&!e.destroyed&&e.initialized&&a("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==l.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=l.requestAnimationFrame(()=>{const{width:a,height:l}=e;let i=a,o=l;t.forEach(({contentBoxSize:t,contentRect:a,target:l})=>{l&&l!==e.el||(i=a?a.width:(t[0]||t).inlineSize,o=a?a.height:(t[0]||t).blockSize)}),i===a&&o===l||n()})}),i.observe(e.el)):(l.addEventListener("resize",n),l.addEventListener("orientationchange",r))}),t("destroy",()=>{o&&l.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),l.removeEventListener("resize",n),l.removeEventListener("orientationchange",r)})},function({swiper:e,extendParams:t,on:a,emit:l}){const i=[],o=xS(),n=(e,t={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(e=>{if(1===e.length)return void l("observerUpdate",e[0]);const t=function(){l("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)});a.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);var sk=rk;function ck(e,t,a,l){const i=wS();return e.params.createElements&&Object.keys(l).forEach(o=>{if(!a[o]&&!0===a.auto){let n=e.$el.children("."+l[o])[0];n||(n=i.createElement("div"),n.className=l[o],e.$el.append(n)),a[o]=n,t[o]=n}}),a}function uk({swiper:e,extendParams:t,on:a,emit:l}){function i(t){let a;return t&&(a=OS(t),e.params.uniqueNavElements&&"string"==typeof t&&a.length>1&&1===e.$el.find(t).length&&(a=e.$el.find(t))),a}function o(t,a){const l=e.params.navigation;t&&t.length>0&&(t[a?"addClass":"removeClass"](l.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=a),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](l.lockClass))}function n(){if(e.params.loop)return;const{$nextEl:t,$prevEl:a}=e.navigation;o(a,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function r(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=ck(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const a=i(t.nextEl),l=i(t.prevEl);a&&a.length>0&&a.on("click",s),l&&l.length>0&&l.on("click",r),Object.assign(e.navigation,{$nextEl:a,nextEl:a&&a[0],$prevEl:l,prevEl:l&&l[0]}),e.enabled||(a&&a.addClass(t.lockClass),l&&l.addClass(t.lockClass))}function u(){const{$nextEl:t,$prevEl:a}=e.navigation;t&&t.length&&(t.off("click",s),t.removeClass(e.params.navigation.disabledClass)),a&&a.length&&(a.off("click",r),a.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},a("init",()=>{!1===e.params.navigation.enabled?p():(c(),n())}),a("toEdge fromEdge lock unlock",()=>{n()}),a("destroy",()=>{u()}),a("enable disable",()=>{const{$nextEl:t,$prevEl:a}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),a&&a[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),a("click",(t,a)=>{const{$nextEl:i,$prevEl:o}=e.navigation,n=a.target;if(e.params.navigation.hideOnClick&&!OS(n).is(o)&&!OS(n).is(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===n||e.pagination.el.contains(n)))return;let t;i?t=i.hasClass(e.params.navigation.hiddenClass):o&&(t=o.hasClass(e.params.navigation.hiddenClass)),l(!0===t?"navigationShow":"navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass)}});const p=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),n()},disable:p,update:n,init:c,destroy:u})}function pk(e=""){return"."+e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function dk({swiper:e,extendParams:t,on:a,emit:l}){const i="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:i+"-bullet",bulletActiveClass:i+"-bullet-active",modifierClass:i+"-",currentClass:i+"-current",totalClass:i+"-total",hiddenClass:i+"-hidden",progressbarFillClass:i+"-progressbar-fill",progressbarOppositeClass:i+"-progressbar-opposite",clickableClass:i+"-clickable",lockClass:i+"-lock",horizontalClass:i+"-horizontal",verticalClass:i+"-vertical",paginationDisabledClass:i+"-disabled"}}),e.pagination={el:null,$el:null,bullets:[]};let n=0;function r(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function s(t,a){const{bulletActiveClass:l}=e.params.pagination;t[a]().addClass(`${l}-${a}`)[a]().addClass(`${l}-${a}-${a}`)}function c(){const t=e.rtl,a=e.params.pagination;if(r())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let u;const p=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),u>i-1-2*e.loopedSlides&&(u-=i-2*e.loopedSlides),u>p-1&&(u-=p),u<0&&"bullets"!==e.params.paginationType&&(u=p+u)):u=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const l=e.pagination.bullets;let i,r,p;if(a.dynamicBullets&&(o=l.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",o*(a.dynamicMainBullets+4)+"px"),a.dynamicMainBullets>1&&void 0!==e.previousIndex&&(n+=u-(e.previousIndex-e.loopedSlides||0),n>a.dynamicMainBullets-1?n=a.dynamicMainBullets-1:n<0&&(n=0)),i=Math.max(u-n,0),r=i+(Math.min(l.length,a.dynamicMainBullets)-1),p=(r+i)/2),l.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${a.bulletActiveClass}${e}`).join(" ")),c.length>1)l.each(e=>{const t=OS(e),l=t.index();l===u&&t.addClass(a.bulletActiveClass),a.dynamicBullets&&(l>=i&&l<=r&&t.addClass(a.bulletActiveClass+"-main"),l===i&&s(t,"prev"),l===r&&s(t,"next"))});else{const t=l.eq(u),o=t.index();if(t.addClass(a.bulletActiveClass),a.dynamicBullets){const t=l.eq(i),n=l.eq(r);for(let e=i;e<=r;e+=1)l.eq(e).addClass(a.bulletActiveClass+"-main");if(e.params.loop)if(o>=l.length){for(let e=a.dynamicMainBullets;e>=0;e-=1)l.eq(l.length-e).addClass(a.bulletActiveClass+"-main");l.eq(l.length-a.dynamicMainBullets-1).addClass(a.bulletActiveClass+"-prev")}else s(t,"prev"),s(n,"next");else s(t,"prev"),s(n,"next")}}if(a.dynamicBullets){const i=Math.min(l.length,a.dynamicMainBullets+4),n=(o*i-o)/2-p*o,r=t?"right":"left";l.css(e.isHorizontal()?r:"top",n+"px")}}if("fraction"===a.type&&(c.find(pk(a.currentClass)).text(a.formatFractionCurrent(u+1)),c.find(pk(a.totalClass)).text(a.formatFractionTotal(p))),"progressbar"===a.type){let t;t=a.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const l=(u+1)/p;let i=1,o=1;"horizontal"===t?i=l:o=l,c.find(pk(a.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`).transition(e.params.speed)}"custom"===a.type&&a.renderCustom?(c.html(a.renderCustom(e,u+1,p)),l("paginationRender",c[0])):l("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](a.lockClass)}function u(){const t=e.params.pagination;if(r())return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let o="";if("bullets"===t.type){let l=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&l>a&&(l=a);for(let a=0;a`;i.html(o),e.pagination.bullets=i.find(pk(t.bulletClass))}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `,i.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``,i.html(o)),"custom"!==t.type&&l("paginationRender",e.pagination.$el[0])}function p(){e.params.pagination=ck(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let a=OS(t.el);0!==a.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&a.length>1&&(a=e.$el.find(t.el),a.length>1&&(a=a.filter(t=>OS(t).parents(".swiper")[0]===e.el))),"bullets"===t.type&&t.clickable&&a.addClass(t.clickableClass),a.addClass(t.modifierClass+t.type),a.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(a.addClass(`${t.modifierClass}${t.type}-dynamic`),n=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&a.addClass(t.progressbarOppositeClass),t.clickable&&a.on("click",pk(t.bulletClass),(function(t){t.preventDefault();let a=OS(this).index()*e.params.slidesPerGroup;e.params.loop&&(a+=e.loopedSlides),e.slideTo(a)})),Object.assign(e.pagination,{$el:a,el:a[0]}),e.enabled||a.addClass(t.lockClass))}function d(){const t=e.params.pagination;if(r())return;const a=e.pagination.$el;a.removeClass(t.hiddenClass),a.removeClass(t.modifierClass+t.type),a.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&a.off("click",pk(t.bulletClass))}a("init",()=>{!1===e.params.pagination.enabled?b():(p(),u(),c())}),a("activeIndexChange",()=>{(e.params.loop||void 0===e.snapIndex)&&c()}),a("snapIndexChange",()=>{e.params.loop||c()}),a("slidesLengthChange",()=>{e.params.loop&&(u(),c())}),a("snapGridLengthChange",()=>{e.params.loop||(u(),c())}),a("destroy",()=>{d()}),a("enable disable",()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),a("lock unlock",()=>{c()}),a("click",(t,a)=>{const i=a.target,{$el:o}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!OS(i).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=o.hasClass(e.params.pagination.hiddenClass);l(!0===t?"paginationShow":"paginationHide"),o.toggleClass(e.params.pagination.hiddenClass)}});const b=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),d()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),p(),u(),c()},disable:b,render:u,update:c,init:p,destroy:d})}function bk({swiper:e,extendParams:t,on:a,emit:l}){t({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),e.lazy={};let i=!1,o=!1;function n(t,a=!0){const i=e.params.lazy;if(void 0===t)return;if(0===e.slides.length)return;const o=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t),r=o.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`);!o.hasClass(i.elementClass)||o.hasClass(i.loadedClass)||o.hasClass(i.loadingClass)||r.push(o[0]),0!==r.length&&r.each(t=>{const r=OS(t);r.addClass(i.loadingClass);const s=r.attr("data-background"),c=r.attr("data-src"),u=r.attr("data-srcset"),p=r.attr("data-sizes"),d=r.parent("picture");e.loadImage(r[0],c||s,u,p,!1,()=>{if(null!=e&&e&&(!e||e.params)&&!e.destroyed){if(s?(r.css("background-image",`url("${s}")`),r.removeAttr("data-background")):(u&&(r.attr("srcset",u),r.removeAttr("data-srcset")),p&&(r.attr("sizes",p),r.removeAttr("data-sizes")),d.length&&d.children("source").each(e=>{const t=OS(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))}),c&&(r.attr("src",c),r.removeAttr("data-src"))),r.addClass(i.loadedClass).removeClass(i.loadingClass),o.find("."+i.preloaderClass).remove(),e.params.loop&&a){const t=o.attr("data-swiper-slide-index");o.hasClass(e.params.slideDuplicateClass)?n(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(),!1):n(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(),!1)}l("lazyImageReady",o[0],r[0]),e.params.autoHeight&&e.updateAutoHeight()}}),l("lazyImageLoad",o[0],r[0])})}function r(){const{$wrapperEl:t,params:a,slides:l,activeIndex:i}=e,r=e.virtual&&a.virtual.enabled,s=a.lazy;let c=a.slidesPerView;function u(e){if(r){if(t.children(`.${a.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(l[e])return!0;return!1}function p(e){return r?OS(e).attr("data-swiper-slide-index"):OS(e).index()}if("auto"===c&&(c=0),o||(o=!0),e.params.watchSlidesProgress)t.children("."+a.slideVisibleClass).each(e=>{n(r?OS(e).attr("data-swiper-slide-index"):OS(e).index())});else if(c>1)for(let e=i;e1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const e=s.loadPrevNextAmount,t=Math.ceil(c),a=Math.min(i+t+Math.max(e,t),l.length),o=Math.max(i-Math.max(t,e),0);for(let e=i+t;e0&&n(p(e));const l=t.children("."+a.slidePrevClass);l.length>0&&n(p(l))}}function s(){const t=xS();if(!e||e.destroyed)return;const a=e.params.lazy.scrollingElement?OS(e.params.lazy.scrollingElement):OS(t),l=a[0]===t,o=l?t.innerWidth:a[0].offsetWidth,n=l?t.innerHeight:a[0].offsetHeight,c=e.$el.offset(),{rtlTranslate:u}=e;let p=!1;u&&(c.left-=e.$el[0].scrollLeft);const d=[[c.left,c.top],[c.left+e.width,c.top],[c.left,c.top+e.height],[c.left+e.width,c.top+e.height]];for(let e=0;e=0&&t[0]<=o&&t[1]>=0&&t[1]<=n){if(0===t[0]&&0===t[1])continue;p=!0}}const b=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};p?(r(),a.off("scroll",s,b)):i||(i=!0,a.on("scroll",s,b))}a("beforeInit",()=>{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)}),a("init",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?s():r())}),a("scroll",()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&r()}),a("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?s():r())}),a("transitionStart",()=>{e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!o)&&(e.params.lazy.checkInView?s():r())}),a("transitionEnd",()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?s():r())}),a("slideChange",()=>{const{lazy:t,cssMode:a,watchSlidesProgress:l,touchReleaseOnEdges:i,resistanceRatio:o}=e.params;t.enabled&&(a||l&&(i||0===o))&&r()}),a("destroy",()=>{e.$el&&e.$el.find("."+e.params.lazy.loadingClass).removeClass(e.params.lazy.loadingClass)}),Object.assign(e.lazy,{load:r,loadInSlide:n})}function gk({swiper:e,extendParams:t,on:a,emit:l}){let i;function o(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let a=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(a=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(i),i=LS(()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),l("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?r():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),l("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),l("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),l("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?r():(t=e.slideTo(0,e.params.speed,!0,!0),l("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),l("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&o()},a)}function n(){return void 0===i&&!e.autoplay.running&&(e.autoplay.running=!0,l("autoplayStart"),o(),!0)}function r(){return!!e.autoplay.running&&void 0!==i&&(i&&(clearTimeout(i),i=void 0),e.autoplay.running=!1,l("autoplayStop"),!0)}function s(t){e.autoplay.running&&(e.autoplay.paused||(i&&clearTimeout(i),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].addEventListener(t,u)}):(e.autoplay.paused=!1,o())))}function c(){const t=wS();"hidden"===t.visibilityState&&e.autoplay.running&&s(),"visible"===t.visibilityState&&e.autoplay.paused&&(o(),e.autoplay.paused=!1)}function u(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].removeEventListener(t,u)}),e.autoplay.paused=!1,e.autoplay.running?o():r())}function p(){e.params.autoplay.disableOnInteraction?r():(l("autoplayPause"),s()),["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].removeEventListener(t,u)})}function d(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,l("autoplayResume"),o())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),a("init",()=>{e.params.autoplay.enabled&&(n(),wS().addEventListener("visibilitychange",c),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",p),e.$el.on("mouseleave",d)))}),a("beforeTransitionStart",(t,a,l)=>{e.autoplay.running&&(l||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(a):r())}),a("sliderFirstMove",()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?r():s())}),a("touchEnd",()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&o()}),a("destroy",()=>{e.$el.off("mouseenter",p),e.$el.off("mouseleave",d),e.autoplay.running&&r(),wS().removeEventListener("visibilitychange",c)}),Object.assign(e.autoplay,{pause:s,run:o,start:n,stop:r})}function mk({swiper:e,extendParams:t,on:a}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let l=!1,i=!1;function o(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const a=t.clickedIndex,l=t.clickedSlide;if(l&&OS(l).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==a)return;let i;if(i=t.params.loop?parseInt(OS(t.clickedSlide).attr("data-swiper-slide-index"),10):a,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const a=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),l=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===a?l:void 0===l?a:l-t1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),a.slides.removeClass(o),a.params.loop||a.params.virtual&&a.params.virtual.enabled)for(let t=0;t1?l:s:l-se.previousIndex?"next":"prev"}else i=e.realIndex,o=i>e.previousIndex?"next":"prev";r&&(i+="next"===o?n:-1*n),a.visibleSlidesIndexes&&a.visibleSlidesIndexes.indexOf(i)<0&&(a.params.centeredSlides?i=i>s?i-Math.floor(l/2)+1:i+Math.floor(l/2)-1:i>s&&a.params.slidesPerGroup,a.slideTo(i,t?0:void 0))}}e.thumbs={swiper:null},a("beforeInit",()=>{const{thumbs:t}=e.params;t&&t.swiper&&(n(),r(!0))}),a("slideChange update resize observerUpdate",()=>{r()}),a("setTransition",(t,a)=>{const l=e.thumbs.swiper;l&&!l.destroyed&&l.setTransition(a)}),a("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&i&&t.destroy()}),Object.assign(e.thumbs,{init:n,update:r})}function yk(e){const{$wrapperEl:t,params:a}=this;if(a.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(let a=0;a=r)return void a.appendSlide(t);let s=n>e?n+1:n;const c=[];for(let t=r-1;t>=e;t-=1){const e=a.slides.eq(t);e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?n+t.length:n}else l.append(t);for(let e=0;e{let{attributes:t,setAttributes:a,setLightboxPreview:l}=e;const{mediaGallery:i,lightboxDisplayCaptions:o,lightboxThumbnails:n,lightboxDisplayCount:r,lightboxCloseIcon:s,imageDefaultCaption:c}=t,u=Object(B.useRef)(),p=Object(B.useRef)(),[d,b]=Object(B.useState)(null),[g,m]=Object(B.useState)(null),[y,f]=Object(B.useState)(0),[h,v]=Object(B.useState)(0);Object(B.useEffect)(()=>{const e=setTimeout(()=>{u.current&&_()},500);return()=>{clearTimeout(e)}},[u]),Object(B.useEffect)(()=>{const e=setTimeout(()=>{p.current&&(T(),d&&(d.destroy(),_()))},500);return()=>{clearTimeout(e)}},[p]),Object(B.useEffect)(()=>{f(i.length),n&&g&&g.update(),d&&d.update()},[i]),Object(B.useEffect)(()=>{d&&(d.destroy(),_())},[g]);const _=()=>{const e={lazy:!0,slidesPerView:1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{beforeInit(e){b(e)},activeIndexChange(e){v(e.activeIndex),g&&g.slideTo(e.activeIndex)}},thumbs:{swiper:g}};new sk(u.current,{...e,modules:[bk,uk,mk]})},T=()=>{const e={centeredSlides:!0,slidesPerView:7,slideToClickedSlide:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,on:{beforeInit(e){m(e)}}};new sk(p.current,{...e})};return React.createElement("div",{className:"spectra-image-gallery__control-lightbox"},React.createElement("div",{className:"swiper spectra-image-gallery__control-lightbox--main",ref:u},React.createElement("div",{className:"swiper-wrapper"},i.map(e=>React.createElement("div",{className:"swiper-slide",key:e.id},React.createElement("img",{className:"swiper-lazy","data-src":e.url,alt:e.alt}),React.createElement("div",{className:"swiper-lazy-preloader swiper-lazy-preloader-white"}),o&&React.createElement("div",{className:Object(F.applyFilters)("spectra.image-gallery.render.lightboxCaptionClasses","spectra-image-gallery__control-lightbox--caption",e.id,t)},e.caption?e.caption:c)))),React.createElement("div",{className:"swiper-button-next"}),React.createElement("div",{className:"swiper-button-prev"})),React.createElement("div",{className:"spectra-image-gallery__control-lightbox--thumbnails-wrapper",style:{display:n?void 0:"none"}},React.createElement("div",{className:"swiper spectra-image-gallery__control-lightbox--thumbnails",ref:p},React.createElement("div",{className:"swiper-wrapper"},i.map(e=>{var t,a;return(null==e||null===(t=e.sizes)||void 0===t||null===(a=t.thumbnail)||void 0===a?void 0:a.url)&&React.createElement("div",{className:"swiper-slide",key:e.id},React.createElement("img",{src:e.sizes.thumbnail.url,alt:e.alt}))})))),r&&React.createElement("div",{className:"spectra-image-gallery__control-lightbox--count"},`${h+1} / ${y}`),s&&React.createElement("button",{className:"spectra-image-gallery__control-lightbox--close",onClick:()=>l(!1)},Ce(s,a)))},kk=a(127),wk=0,Pk={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},xk={};xk.locals=kk.a.locals||{},xk.use=function(){return wk++||(Ck=we()(kk.a,Pk)),xk},xk.unuse=function(){wk>0&&!--wk&&(Ck(),Ck=null)};var Ak=xk,Gk=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Ak.use(),()=>{Ak.unuse()}),[]);const{lightboxPreview:t,setLightboxPreview:a,attributes:l,setAttributes:i,className:o,name:n,deviceType:r}=e,{block_id:s,readyToRender:c}=l;return React.createElement("div",{className:Be()(o,"uagb-editor-preview-mode-"+r.toLowerCase(),"uagb-block-"+s)},c?React.createElement(React.Fragment,null,React.createElement(TS,{attributes:l,setAttributes:i,name:n}),t&&React.createElement(Sk,{attributes:l,setAttributes:i,setLightboxPreview:a})):React.createElement(mS,{attributes:l,setAttributes:i}))}),Mk=Object(B.memo)(e=>{let{attributes:t}=e;const{captionLoadGoogleFonts:a,captionFontFamily:l,captionFontWeight:i,loadMoreLoadGoogleFonts:o,loadMoreFontFamily:n,loadMoreFontWeight:r,lightboxLoadGoogleFonts:s,lightboxFontFamily:c,lightboxFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function Rk(){return(Rk=Object.assign||function(e){for(var t=1;t{const{clientId:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,focusList:n},isSelected:r,setAttributes:s,name:c,deviceType:u}=e,{imageClickEvent:p}=a;Object(B.useEffect)(()=>{if(Array.isArray(n)&&n.length){const e={};n.forEach((t,a)=>{!0===t&&(e[a]=!0)}),s({focusList:[],focusListObject:{...e}})}uagb_blocks_info.spectra_pro_status||"url"!==p||s({imageClickEvent:"none"})},[]);const d=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{tileSize:n,feedLayout:r,imageDisplayCaption:s,feedMarginTop:c,feedMarginRight:u,feedMarginBottom:p,feedMarginLeft:d,feedMarginTopTab:b,feedMarginRightTab:g,feedMarginBottomTab:m,feedMarginLeftTab:y,feedMarginTopMob:f,feedMarginRightMob:h,feedMarginBottomMob:v,feedMarginLeftMob:_,feedMarginUnit:T,feedMarginUnitTab:C,feedMarginUnitMob:S,gridImageGap:k,gridImageGapTab:w,gridImageGapMob:P,gridImageGapUnit:x,gridImageGapUnitTab:A,gridImageGapUnitMob:G,lightboxDisplayCaptions:M,lightboxCaptionHeight:R,lightboxCaptionHeightTablet:B,lightboxCaptionHeightMobile:U,lightboxIconSize:E,lightboxIconSizeTablet:O,lightboxIconSizeMobile:L,captionVisibility:H,captionDisplayType:j,imageCaptionAlignment:z,imageCaptionAlignment01:D,captionPaddingTop:N,captionPaddingRight:I,captionPaddingBottom:V,captionPaddingLeft:W,captionPaddingTopTab:q,captionPaddingRightTab:Z,captionPaddingBottomTab:$,captionPaddingLeftTab:Y,captionPaddingTopMob:K,captionPaddingRightMob:J,captionPaddingBottomMob:X,captionPaddingLeftMob:Q,captionPaddingUnit:ee,captionPaddingUnitTab:te,captionPaddingUnitMob:le,captionGap:ie,captionGapUnit:oe,carouselSquares:ne,feedPagination:re,paginateUseLoader:se,paginateButtonAlign:ce,paginateButtonPaddingTop:ue,paginateButtonPaddingRight:pe,paginateButtonPaddingBottom:de,paginateButtonPaddingLeft:be,paginateButtonPaddingTopTab:ge,paginateButtonPaddingRightTab:me,paginateButtonPaddingBottomTab:ye,paginateButtonPaddingLeftTab:fe,paginateButtonPaddingTopMob:he,paginateButtonPaddingRightMob:ve,paginateButtonPaddingBottomMob:_e,paginateButtonPaddingLeftMob:Te,paginateButtonPaddingUnit:Ce,paginateButtonPaddingUnitTab:Se,paginateButtonPaddingUnitMob:ke,imageEnableZoom:we,imageZoomType:Pe,captionBackgroundEnableBlur:xe,captionBackgroundBlurAmount:Ae,captionBackgroundBlurAmountHover:Ge,lightboxEdgeDistance:Me,lightboxEdgeDistanceTablet:Re,lightboxEdgeDistanceMobile:Be,lightboxBackgroundEnableBlur:Ue,lightboxBackgroundBlurAmount:Ee,lightboxBackgroundColor:Oe,lightboxCaptionColor:Le,lightboxCaptionBackgroundColor:He,lightboxIconColor:Fe,captionFontFamily:je,captionFontWeight:ze,captionFontStyle:De,captionTransform:Ne,captionDecoration:Ie,captionFontSizeType:Ve,captionFontSize:We,captionFontSizeTab:qe,captionFontSizeMob:Ze,captionLineHeightType:$e,captionLineHeight:Ye,captionLineHeightTab:Ke,captionLineHeightMob:Je,loadMoreFontFamily:Xe,loadMoreFontWeight:Qe,loadMoreFontStyle:et,loadMoreTransform:tt,loadMoreDecoration:at,loadMoreFontSizeType:lt,loadMoreFontSize:it,loadMoreFontSizeTab:ot,loadMoreFontSizeMob:nt,loadMoreLineHeightType:rt,loadMoreLineHeight:st,loadMoreLineHeightTab:ct,loadMoreLineHeightMob:ut,lightboxFontFamily:pt,lightboxFontWeight:dt,lightboxFontStyle:bt,lightboxTransform:gt,lightboxDecoration:mt,lightboxFontSizeType:yt,lightboxFontSize:ft,lightboxFontSizeTab:ht,lightboxFontSizeMob:vt,lightboxLineHeightType:_t,lightboxLineHeight:Tt,lightboxLineHeightTab:Ct,lightboxLineHeightMob:St,captionBackgroundEffect:kt,captionBackgroundEffectHover:wt,captionBackgroundEffectAmount:Pt,captionBackgroundEffectAmountHover:xt,captionColor:At,captionColorHover:Gt,captionBackgroundColor:Mt,captionBackgroundColorHover:Rt,overlayColor:Bt,overlayColorHover:Ut,captionSeparateColors:Et,paginateArrowDistance:Ot,paginateArrowDistanceUnit:Lt,paginateArrowSize:Ht,paginateDotDistance:Ft,paginateDotDistanceUnit:jt,paginateLoaderSize:zt,paginateButtonTextColor:Dt,paginateButtonTextColorHover:Nt,paginateColor:It,paginateColorHover:Vt,imageBoxShadowColor:Wt,imageBoxShadowHOffset:qt,imageBoxShadowVOffset:Zt,imageBoxShadowBlur:$t,imageBoxShadowSpread:Yt,imageBoxShadowPosition:Kt,imageBoxShadowColorHover:Jt,imageBoxShadowHOffsetHover:Xt,imageBoxShadowVOffsetHover:Qt,imageBoxShadowBlurHover:ea,imageBoxShadowSpreadHover:ta,imageBoxShadowPositionHover:aa,btnBorderHColor:la,arrowBorderHColor:ia,mainTitleBorderColor:oa,mainTitleBorderHColor:na,imageBorderHColor:ra,block_id:sa}=e,ca=It||"#007cba",ua=us(Ae,"captionBackgroundBlurAmount",i),pa=us(Ge,"captionBackgroundBlurAmountHover",i),da=us(Pt,"captionBackgroundEffectAmount",i),ba=us(xt,"captionBackgroundEffectAmountHover",i),ga=us(ie,"captionGap",i),ma=us(Ot,"paginateArrowDistance",i),ya=isNaN(Ft)?0:Ft,fa=us(Ht,"paginateArrowSize",i),ha=us(zt,"paginateLoaderSize",i),va=us(k,"gridImageGap",i),_a=us(R,"lightboxCaptionHeight",i),Ta=isNaN(c)?0:c,Ca=isNaN(u)?0:u,Sa=isNaN(p)?0:p,ka=isNaN(d)?0:d,wa=isNaN(b)?0:b,Pa=isNaN(g)?0:g,xa=isNaN(m)?0:m,Aa=isNaN(y)?0:y,Ga=isNaN(f)?0:f,Ma=isNaN(h)?0:h,Ra=isNaN(v)?0:v,Ba=isNaN(_)?0:_,Ua=isNaN(w)?va:w,Ea=isNaN(P)?Ua:P,Oa="number"==typeof B?B:_a,La="number"==typeof U?U:Oa,Ha=Wr(e,"arrow"),Fa=Wr(e,"arrow","tablet"),ja=Wr(e,"arrow","mobile"),za=Wr(e,"btn"),Da=Wr(e,"btn","tablet"),Na=Wr(e,"btn","mobile"),Ia=Wr(e,"image"),Va=Wr(e,"image","tablet"),Wa=Wr(e,"image","mobile"),qa=Wr(e,"mainTitle"),Za=Wr(e,"mainTitle","tablet"),$a=Wr(e,"mainTitle","mobile"),Ya=`${Vr(qt,"px")} ${Vr(Zt,"px")} ${Vr($t,"px")} ${Vr(Yt,"px")}${Wt?" "+Wt:""}${"inset"===Kt?" "+Kt:""}`,Ka=`${Vr(Xt,"px")} ${Vr(Qt,"px")} ${Vr(ea,"px")} ${Vr(ta,"px")}${Jt?" "+Jt:""}${"inset"===aa?" "+aa:""}`,Ja=""===Ie&&uagb_blocks_info.is_astra_based_theme?uagb_blocks_info.astra_body_text_decoration:Ie;let Xa={".wp-block-uagb-image-gallery":{padding:$r(T,Ta,Ca,"carousel"===r?Sa+5:Sa,ka)}," .spectra-image-gallery__control-arrows svg":{fill:ca}," .spectra-image-gallery__control-arrows:hover svg":{fill:Vt}," .spectra-image-gallery__control-arrows--carousel":{...Ha}," .spectra-image-gallery__control-arrows--carousel svg":{width:fa+"px",height:fa+"px"}," .spectra-image-gallery__control-arrows--carousel:hover":{"border-color":ia}," .spectra-image-gallery__control-arrows--carousel.slick-prev":{left:Vr(ma,Lt)}," .spectra-image-gallery__control-arrows--carousel.slick-next":{right:Vr(ma,Lt)}," .spectra-image-gallery__layout--carousel ul.slick-dots":{top:Vr(ya,"px")}," .spectra-image-gallery__layout--carousel ul.slick-dots li button:before":{color:ca}," .spectra-image-gallery__layout--carousel ul.slick-dots li button:hover:before":{color:Vt}," .spectra-image-gallery__control-dots li button::before":{color:ca}," .spectra-image-gallery__control-dots li button:hover::before":{color:Vt}," .spectra-image-gallery__control-loader":{"margin-top":Vr(ya,jt)}," .spectra-image-gallery__control-loader div":{"background-color":It,width:Vr(ha,"px"),height:Vr(ha,"px"),"border-radius":"100%",padding:0}," .spectra-image-gallery__control-button":{"margin-top":Vr(ya,jt),padding:$r(Ce,ue,pe,de,be),color:Dt,"background-color":It,"font-family":"Default"===Xe?"":Xe,"font-weight":Qe,"font-style":et,"text-decoration":at,"text-transform":tt,"font-size":Vr(it,lt),"line-height":Vr(st,rt),...za}," .spectra-image-gallery__control-button:hover":{color:Nt,"background-color":Vt,"border-color":la}," .spectra-image-gallery__layout--grid":{"grid-gap":Vr(va,x)}," .spectra-image-gallery__layout--masonry":{margin:Vr(-Math.abs(va/2),x)}," .spectra-image-gallery__layout--masonry .spectra-image-gallery__media-wrapper--isotope":{padding:$r(x,va/2)}," .spectra-image-gallery__layout--carousel":{"margin-bottom":Vr(ya,"px")+" !important"}," .spectra-image-gallery__layout--carousel .spectra-image-gallery__media-wrapper":{padding:$r(x,0,va/2)}," .spectra-image-gallery__layout--carousel .slick-list":{margin:$r(x,0,-va/2)}," .spectra-image-gallery__layout--tiled":{"grid-gap":Vr(va,x),"grid-auto-rows":Vr(n,"px")}," .spectra-image-gallery__media":{...Ia}," .spectra-image-gallery__media:hover":{"border-color":ra}," .spectra-image-gallery__media-thumbnail-blurrer":{"-webkit-backdrop-filter":`blur( ${Vr(ua,"px")} )`,"backdrop-filter":`blur( ${Vr(ua,"px")} )`}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer":{"-webkit-backdrop-filter":`blur( ${Vr(pa,"px")} )`,"backdrop-filter":`blur( ${Vr(pa,"px")} )`}," .spectra-image-gallery__media-thumbnail-caption-wrapper--overlay":{"background-color":s?"hover"===H?"rgba(0,0,0,0)":Mt:Bt}," .spectra-image-gallery__media-thumbnail-caption-wrapper--overlay a":{color:s?"hover"===H?"rgba(0,0,0,0)":Mt:Bt}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption-wrapper--overlay":{"background-color":s?"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Rt:Mt:Ut}," .spectra-image-gallery__media-thumbnail-caption-wrapper--bar-inside":{"-webkit-align-items":cS(z,1,"flex"),"align-items":cS(z,1,"flex"),"-webkit-justify-content":cS(z,2,"flex"),"justify-content":cS(z,2,"flex")}," .spectra-image-gallery__media-thumbnail-caption":{color:"hover"===H?"rgba(0,0,0,0)":At,"text-align":cS(z,2),"font-family":"Default"===je?"":je,"font-weight":ze,"font-style":De,"text-decoration":Ja,"text-transform":Ne,"font-size":Vr(We,Ve),"line-height":Vr(Ye,$e),"padding-top":Vr(N,ee),"padding-right":Vr(I,ee),"padding-bottom":Vr(V,ee),"padding-left":Vr(W,ee)}," .spectra-image-gallery__media-thumbnail-caption a":{color:"hover"===H?"rgba(0,0,0,0)":At}," .spectra-image-gallery__media-thumbnail-caption--overlay":{"-webkit-align-items":cS(z,1,"flex"),"align-items":cS(z,1,"flex"),"-webkit-justify-content":cS(z,2,"flex"),"justify-content":cS(z,2,"flex")}," .spectra-image-gallery__media-thumbnail-caption--bar-inside":{"background-color":"hover"===H?"rgba(0,0,0,0)":Mt,...qa,"border-color":"hover"===H?"rgba(0,0,0,0)":oa}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption--bar-inside":{"background-color":"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Rt:Mt,"border-color":"antiHover"===H?"rgba(0,0,0,0)":"antiHover"!==H?na:oa}," .spectra-image-gallery__media-thumbnail-caption--bar-outside":{"background-color":Mt,...qa}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption--bar-outside":{"background-color":Et?Rt:Mt,"border-color":Et?na:oa}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption":{color:"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Gt:At}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption a":{color:"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Gt:At}," .spectra-image-gallery__control-lightbox":{"background-color":Oe,"backdrop-filter":Ue?`blur(${Ee}px)`:void 0}," .spectra-image-gallery__control-lightbox--caption":{color:Le,background:`linear-gradient(rgba(0,0,0,0), ${He})`,"min-height":Vr(_a,"px"),"font-family":"Default"===pt?"":pt,"font-weight":dt,"font-style":bt,"text-decoration":mt,"text-transform":gt,"font-size":Vr(ft,yt),"line-height":Vr(Tt,_t)}," .spectra-image-gallery__control-lightbox--thumbnails-wrapper":{"background-color":M?He:"transparent"}," .spectra-image-gallery__control-lightbox--count":{top:Vr(Me,"px"),left:Vr(Me,"px"),color:Fe,"font-family":"Default"===pt?"":pt,"font-size":Vr(E,"px")?`calc(${Vr(E,"px")} * 3 / 4 )`:void 0,"line-height":Vr(E,"px")?`calc(${Vr(E,"px")} * 3 / 4 )`:void 0}," .spectra-image-gallery__control-lightbox--close":{top:Vr(Me,"px"),right:Vr(Me,"px")}," .spectra-image-gallery__control-lightbox--close svg":{width:Vr(E,"px"),height:Vr(E,"px"),fill:Fe}," .spectra-image-gallery__control-lightbox--main .swiper-button-prev":{left:Vr(Me,"px"),color:Fe}," .spectra-image-gallery__control-lightbox--main .swiper-button-next":{right:Vr(Me,"px"),color:Fe}},Qa={".wp-block-uagb-image-gallery":{padding:$r(C,wa,Pa,"carousel"===r?xa+5:xa,Aa)}," .spectra-image-gallery__control-arrows--carousel":{...Fa}," .spectra-image-gallery__control-button":{padding:$r(Se,ge,me,ye,fe),"font-size":Vr(ot,lt),"line-height":Vr(ct,rt),...Da}," .spectra-image-gallery__layout--grid":{"grid-gap":Vr(Ua,A)}," .spectra-image-gallery__layout--masonry":{margin:Vr(-Math.abs(Ua/2),A)}," .spectra-image-gallery__layout--masonry .spectra-image-gallery__media-wrapper--isotope":{padding:$r(A,Ua/2)}," .spectra-image-gallery__layout--carousel .spectra-image-gallery__media-wrapper":{padding:$r(A,0,Ua/2)}," .spectra-image-gallery__layout--carousel .slick-list":{margin:$r(A,0,-Ua/2)}," .spectra-image-gallery__layout--tiled":{"grid-gap":Vr(Ua,A)}," .spectra-image-gallery__media":{...Va}," .spectra-image-gallery__media-thumbnail-caption":{"font-size":Vr(qe,Ve),"line-height":Vr(Ke,$e),"padding-top":Vr(q,te),"padding-right":Vr(Z,te),"padding-bottom":Vr($,te),"padding-left":Vr(Y,te)}," .spectra-image-gallery__media-thumbnail-caption--bar-inside":{...Za}," .spectra-image-gallery__media-thumbnail-caption--bar-outside":{...Za}," .spectra-image-gallery__control-lightbox--caption":{"min-height":Vr(Oa,"px"),"font-size":Vr(ht,yt),"line-height":Vr(Ct,_t)}," .spectra-image-gallery__control-lightbox--count":{top:Vr(Re,"px"),left:Vr(Re,"px"),"font-size":Vr(O,"px")?`calc(${Vr(O,"px")} * 3 / 4 )`:void 0,"line-height":Vr(O,"px")?`calc(${Vr(O,"px")} * 3 / 4 )`:void 0}," .spectra-image-gallery__control-lightbox--close":{top:Vr(Re,"px"),right:Vr(Re,"px")}," .spectra-image-gallery__control-lightbox--close svg":{width:Vr(O,"px"),height:Vr(O,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-prev":{left:Vr(Re,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-next":{right:Vr(Re,"px")}},el={".wp-block-uagb-image-gallery":{padding:$r(S,Ga,Ma,"carousel"===r?Ra+5:Ra,Ba)}," .spectra-image-gallery__control-arrows--carousel":{...ja}," .spectra-image-gallery__control-button":{padding:$r(ke,he,ve,_e,Te),"font-size":Vr(nt,lt),"line-height":Vr(ut,rt),...Na}," .spectra-image-gallery__layout--grid":{"grid-gap":Vr(Ea,G)}," .spectra-image-gallery__layout--masonry":{margin:Vr(-Math.abs(Ea/2),G)}," .spectra-image-gallery__layout--masonry .spectra-image-gallery__media-wrapper--isotope":{padding:$r(G,Ea/2)}," .spectra-image-gallery__layout--carousel .spectra-image-gallery__media-wrapper":{padding:$r(G,0,Ea/2)}," .spectra-image-gallery__layout--carousel .slick-list":{margin:$r(G,0,-Ea/2)}," .spectra-image-gallery__layout--tiled":{"grid-gap":Vr(Ea,G)}," .spectra-image-gallery__media":{...Wa}," .spectra-image-gallery__media-thumbnail-caption":{"font-size":Vr(Ze,Ve),"line-height":Vr(Je,$e),"padding-top":Vr(K,le),"padding-right":Vr(J,le),"padding-bottom":Vr(X,le),"padding-left":Vr(Q,le)}," .spectra-image-gallery__media-thumbnail-caption--bar-inside":{...$a}," .spectra-image-gallery__media-thumbnail-caption--bar-outside":{...$a}," .spectra-image-gallery__control-lightbox--caption":{"min-height":Vr(La,"px"),"font-size":Vr(vt,yt),"line-height":Vr(St,_t)}," .spectra-image-gallery__control-lightbox--count":{top:Vr(Be,"px"),left:Vr(Be,"px"),"font-size":Vr(L,"px")?`calc(${Vr(L,"px")} * 3 / 4 )`:void 0,"line-height":Vr(L,"px")?`calc(${Vr(L,"px")} * 3 / 4 )`:void 0}," .spectra-image-gallery__control-lightbox--close":{top:Vr(Be,"px"),right:Vr(Be,"px")}," .spectra-image-gallery__control-lightbox--close svg":{width:Vr(L,"px"),height:Vr(L,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-prev":{left:Vr(Be,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-next":{right:Vr(Be,"px")}};switch(kt){case"none":Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],"-webkit-filter":"none",filter:"none"};break;case"grayscale":case"sepia":Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],"-webkit-filter":`${kt}( ${Vr(da,"%")} )`,filter:`${kt}( ${Vr(da,"%")} )`}}switch(wt){case"none":Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={"-webkit-filter":"none",filter:"none"};break;case"grayscale":case"sepia":Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={"-webkit-filter":`${wt}( ${Vr(ba,"%")} )`,filter:`${wt}( ${Vr(ba,"%")} )`}}switch(xe||(Xa[" .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-thumbnail-blurrer"],"-webkit-backdrop-filter":"none","backdrop-filter":"none"},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"]={"-webkit-backdrop-filter":"none","backdrop-filter":"none"}),s&&"bar-outside"===j&&(Xa[" .spectra-image-gallery__media-thumbnail-caption-wrapper"]="top"===D?{...Xa[" .spectra-image-gallery__media-thumbnail-caption-wrapper"],"margin-bottom":Vr(ga,oe)}:{...Xa[" .spectra-image-gallery__media-thumbnail-caption-wrapper"],"margin-top":Vr(ga,oe)}),"grid"===r&&re&&(Xa[" .spectra-image-gallery__control-wrapper"]={"margin-top":Vr(ya,jt)}),"carousel"===r&&ne&&(Xa[" .spectra-image-gallery__media--carousel"]={"aspect-ratio":1},Xa[" .spectra-image-gallery__media-thumbnail--carousel"]={height:"100%",width:"100%","-o-object-fit":"cover","object-fit":"cover"}),"masonry"===r&&re&&!se&&(Xa[" .spectra-image-gallery__control-wrapper"]={"-webkit-justify-content":ce,"justify-content":ce,"-webkit-align-items":"center","align-items":"center"}),Pe){case"zoom-in":we&&(Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.005, 1.005, 1.005)"},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.1, 1.1, 1.1)"});break;case"zoom-out":we&&(Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.1, 1.1, 1.1)"},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.005, 1.005, 1.005)"})}"outset"===Kt?(Xa[" .spectra-image-gallery__media"]={...Xa[" .spectra-image-gallery__media"],"box-shadow":Ya},Xa[" .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":"0 0 transparent"+("inset"===aa?" "+aa:"")}):(Xa[" .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":Ya},Xa[" .spectra-image-gallery__media"]={...Xa[" .spectra-image-gallery__media"],"box-shadow":"0 0 transparent"+("inset"===aa?" "+aa:"")}),"outset"===aa?(Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media"]={"box-shadow":Ka},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":"0 0 transparent"+("inset"===Kt?" "+Kt:"")}):(Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":Ka},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media"]={"box-shadow":"0 0 transparent"+("inset"===Kt?" "+Kt:"")});const tl=".editor-styles-wrapper .uagb-block-"+sa;Xa=Object(F.applyFilters)("spectra.image-gallery.styling",Xa,e),Qa=Object(F.applyFilters)("spectra.image-gallery.tabletStyling",Qa,e),el=Object(F.applyFilters)("spectra.image-gallery.mobileStyling",el,e),Xa=Object(F.applyFilters)("spectra.image-gallery.styling",Xa,e),Qa=Object(F.applyFilters)("spectra.image-gallery.tabletStyling",Qa,e),el=Object(F.applyFilters)("spectra.image-gallery.mobileStyling",el,e);let al=ae(Xa,tl);return"tablet"!==o&&"mobile"!==o||(al+=ae(Qa,""+tl,!0,"tablet"),"mobile"===o&&(al+=ae(el,""+tl,!0,"mobile"))),al}(a,0,c,u),[a,u]);Object(B.useEffect)(()=>{he(e)},[l,i,o,u]);const[b,g]=Object(B.useState)(!1);return Object(B.useEffect)(()=>{r||g(!1)},[r]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:d}),React.createElement(Mk,{attributes:a}),r&&React.createElement(gS,Rk({},e,{lightboxPreview:b,setLightboxPreview:g})),React.createElement(Gk,Rk({},e,{lightboxPreview:b,setLightboxPreview:g})))});a(364);const Uk=(e,t,a)=>{const l=Array.isArray(t)?t:t.split(".");let i=e;for(const e of l){if(!i||"object"!=typeof i||!(e in i))return a;i=i[e]}return i},Ek=(e,t)=>{if(e&&t)return e>t?"landscape":"portrait"};var Ok={from:[{type:"block",blocks:["core/gallery"],transform:e=>{var t,a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T;const C=Math.max(N((null==e||null===(t=e.style)||void 0===t||null===(a=t.spacing)||void 0===a||null===(l=a.blockGap)||void 0===l?void 0:l.left)||"8"),N((null==e||null===(i=e.style)||void 0===i||null===(o=i.spacing)||void 0===o||null===(n=o.blockGap)||void 0===n?void 0:n.top)||"8"));return Object(de.createBlock)("uagb/image-gallery",{columnsDesk:(null==e?void 0:e.columns)||3,readyToRender:!0,mediaGallery:e.images?e.images.map(e=>((e,t,a,l,i,o)=>{var n,r,s;let c="",u="",p="";const d=(b=e,["id","link"].reduce((e,t)=>(b&&Object.prototype.hasOwnProperty.call(b,t)&&(e[t]=b[t]),e),{}));var b;const g={};if(e.id&&"object"==typeof o&&null!==o)for(const t in o)parseInt(o[t].id)===e.id&&(o[t].customLink&&(d.customLink=o[t].customLink),o[t].linkTarget&&(d.linkTarget=o[t].linkTarget),c=o[t].thumbnailUrl,u=o[t].mediumUrl,p=o[t].largeUrl);if(e.id&&!e.sizes&&!e.media_details||"medium_large"===t&&!c){const t=wp.data.select("core").getMedia(e.id);t&&(e=t)}return d.alt=Uk(e,["alt_text"])||Uk(e,["alt"])||"",d.caption=(null===(n=e)||void 0===n||null===(r=n.caption)||void 0===r?void 0:r.raw)||"",d.url=e.url||e.source_url,d.mime=e.mime_type,d.type=e.media_type,d.link=(null===(s=e)||void 0===s?void 0:s.link)||"",d.subtype=e.mime_type.split("/")[1],g.thumbnail={height:Uk(e,["sizes",t,"height"])||Uk(e,["media_details","sizes",t,"height"])||void 0,width:Uk(e,["sizes",t,"width"])||Uk(e,["media_details","sizes",t,"width"])||void 0,url:Uk(e,["sizes",t,"url"])||Uk(e,["media_details","sizes",t,"source_url"])||c||e.url||e.source_url,orientation:Ek(Uk(e,["media_details","sizes",t,"width"]),Uk(e,["media_details","sizes",t,"height"]))},g.medium={height:Uk(e,["sizes",a,"height"])||Uk(e,["media_details","sizes",a,"height"])||void 0,width:Uk(e,["sizes",a,"width"])||Uk(e,["media_details","sizes",a,"width"])||void 0,url:Uk(e,["sizes",a,"url"])||Uk(e,["media_details","sizes",a,"source_url"])||u||e.url||e.source_url,orientation:Ek(Uk(e,["media_details","sizes",a,"width"]),Uk(e,["media_details","sizes",a,"height"]))},g.large={height:Uk(e,["sizes",l,"height"])||Uk(e,["media_details","sizes",l,"height"])||void 0,width:Uk(e,["sizes",l,"width"])||Uk(e,["media_details","sizes",l,"width"])||void 0,url:Uk(e,["sizes",l,"url"])||Uk(e,["media_details","sizes",l,"source_url"])||p||e.url||e.source_url,orientation:Ek(Uk(e,["media_details","sizes",l,"width"]),Uk(e,["media_details","sizes",l,"height"]))},g.full={url:Uk(e,["sizes",i,"url"])||Uk(e,["media_details","sizes",i,"source_url"])||e.url||e.source_url,height:Uk(e,["sizes",i,"height"])||Uk(e,["media_details","sizes",i,"height"])||void 0,width:Uk(e,["sizes",i,"width"])||Uk(e,["media_details","sizes",i,"width"])||void 0,orientation:Ek(Uk(e,["media_details","sizes",i,"width"]),Uk(e,["media_details","sizes",i,"height"]))},d.sizes=g,d})(e,"thumbnail","medium","large","full",null)):[],mediaIDs:(null==e?void 0:e.ids)||[],galleryImageSize:(null==e?void 0:e.sizeSlug)||"large",feedLayout:null!=e&&e.masonry?"masonry":"grid",imageClickEvent:"attachment"===(null==e?void 0:e.linkTo)||"media"===(null==e?void 0:e.linkTo)?"image":"none",gridImageGap:null!=e&&e.masonry?(null==e?void 0:e.masonryGutter)||8:C,feedMarginTop:N((null==e||null===(r=e.style)||void 0===r||null===(s=r.spacing)||void 0===s||null===(c=s.padding)||void 0===c?void 0:c.top)||"0"),feedMarginRight:N((null==e||null===(u=e.style)||void 0===u||null===(p=u.spacing)||void 0===p||null===(d=p.padding)||void 0===d?void 0:d.right)||"0"),feedMarginBottom:N((null==e||null===(b=e.style)||void 0===b||null===(g=b.spacing)||void 0===g||null===(m=g.padding)||void 0===m?void 0:m.bottom)||"0"),feedMarginLeft:N((null==e||null===(y=e.style)||void 0===y||null===(f=y.spacing)||void 0===f||null===(h=f.padding)||void 0===h?void 0:h.left)||"0"),feedMarginUnit:I((null==e||null===(v=e.style)||void 0===v||null===(_=v.spacing)||void 0===_||null===(T=_.padding)||void 0===T?void 0:T.top)||"px")})}}]};let Lk={};Lk=Object(F.applyFilters)("uagb/image-gallery",ss(Lk)),Object(de.registerBlockType)("uagb/image-gallery",{...Lk,title:Object(r.__)("Image Gallery","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create a highly customizable image gallery","ultimate-addons-for-gutenberg"),icon:se.image_gallery,keywords:[Object(r.__)("image","ultimate-addons-for-gutenberg"),Object(r.__)("gallery","ultimate-addons-for-gutenberg"),Object(r.__)("grid","ultimate-addons-for-gutenberg"),Object(r.__)("masonry","ultimate-addons-for-gutenberg"),Object(r.__)("carousel","ultimate-addons-for-gutenberg"),Object(r.__)("tiled","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg"),Object(r.__)("ultimate","ultimate-addons-for-gutenberg"),Object(r.__)("addon","ultimate-addons-for-gutenberg"),Object(r.__)("spectra","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Ra,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"image-gallery"}):React.createElement(Bk,e),save:()=>null,transforms:Ok});function Hk(){return(Hk=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{icon:l,iconSize:i,iconSizeTab:o,iconSizeMob:s,iconSizeUnit:c,noticeDismiss:u,cookies:p,close_cookie_days:d,textColor:b,titleColor:g,noticeColor:m,contentBgColor:y,noticeDismissColor:f,noticeAlignment:h,titleFontFamily:v,titleFontWeight:_,titleFontSizeType:T,titleLineHeightType:C,titleFontSize:S,titleFontSizeTablet:k,titleFontSizeMobile:w,titleLineHeight:P,titleLineHeightTablet:x,titleLineHeightMobile:A,descFontFamily:G,descFontWeight:M,descFontSize:R,descFontSizeType:B,descFontSizeTablet:U,descFontSizeMobile:E,descLineHeight:O,descLineHeightType:L,descLineHeightTablet:H,descLineHeightMobile:F,titleLoadGoogleFonts:j,descLoadGoogleFonts:z,titleTopPadding:D,titleRightPadding:N,titleBottomPadding:I,titleLeftPadding:V,titleTopPaddingTablet:W,titleRightPaddingTablet:q,titleBottomPaddingTablet:Z,titleLeftPaddingTablet:$,titleTopPaddingMobile:Y,titleRightPaddingMobile:K,titleBottomPaddingMobile:J,titleLeftPaddingMobile:X,titlePaddingUnit:Q,mobileTitlePaddingUnit:ee,tabletTitlePaddingUnit:te,titlePaddingLink:ae,headingTag:le,layout:ie,highlightWidth:oe,highlightWidthTablet:ne,highlightWidthMobile:re,contentTopPadding:se,contentRightPadding:ce,contentBottomPadding:ue,contentLeftPadding:pe,contentTopPaddingTablet:de,contentRightPaddingTablet:be,contentBottomPaddingTablet:me,contentLeftPaddingTablet:ye,contentTopPaddingMobile:fe,contentRightPaddingMobile:he,contentBottomPaddingMobile:ve,contentLeftPaddingMobile:_e,contentPaddingUnit:Te,mobileContentPaddingUnit:Se,tabletContentPaddingUnit:ke,contentPaddingLink:we,titleTransform:Pe,titleDecoration:xe,descTransform:Ae,descDecoration:Ge,titleFontStyle:Me,descFontStyle:Re,titleLetterSpacing:Be,titleLetterSpacingTablet:Ue,titleLetterSpacingMobile:Oe,titleLetterSpacingType:He,descLetterSpacing:Fe,descLetterSpacingTablet:ze,descLetterSpacingMobile:De,descLetterSpacingType:Ne}=t,Ie=[{value:"",label:Object(r.__)("Always Show","ultimate-addons-for-gutenberg")},{value:"uagb-dismissable",label:Object(r.__)("Dismissible","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","style","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:ie,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"modern",label:"Modern"},{value:"simple",label:"Border"}],showIcons:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:h,label:"noticeAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),"simple"===ie&&React.createElement(tl,{label:Object(r.__)("Border Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:oe,label:"highlightWidth"},tablet:{value:ne,label:"highlightWidthTablet"},mobile:{value:re,label:"highlightWidthMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Title Tag","ultimate-addons-for-gutenberg"),data:{value:le,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Notice Display","ultimate-addons-for-gutenberg"),data:{value:u,label:"noticeDismiss"},options:Ie}),u&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Button Icon","ultimate-addons-for-gutenberg"),value:l,onChange:e=>a({icon:e})}),React.createElement(tl,{label:Object(r.__)("Button Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"iconSize"},tablet:{value:o,label:"iconSizeTab"},mobile:{value:s,label:"iconSizeMob"}},min:0,max:100,unit:{value:c,label:"iconSizeUnit"},setAttributes:a})),u&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Cookies","ultimate-addons-for-gutenberg"),checked:p,onChange:e=>{const t=Object(n.select)("core/editor"),l=null!=t&&t.getCurrentPostId?t.getCurrentPostId().toString():"null",i=(new Date).getTime();a({c_id:l+"-"+i}),a({cookies:e})}}),p&&u&&React.createElement(Qa,{label:Object(r.__)("Show Closed Notice After (Days)","ultimate-addons-for-gutenberg"),value:d,data:{value:d,label:"close_cookie_days"},min:0,max:50,displayUnit:!1,setAttributes:a}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"titleColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"noticeColor"},setAttributes:a}),u&&React.createElement(hl,{label:Object(r.__)("Dismiss Icon Color","ultimate-addons-for-gutenberg"),colorValue:f||"",data:{value:f,label:"noticeDismissColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:j,label:"titleLoadGoogleFonts"},fontFamily:{value:v,label:"titleFontFamily"},fontWeight:{value:_,label:"titleFontWeight"},fontStyle:{value:Me,label:"titleFontStyle"},transform:{value:Pe,label:"titleTransform"},decoration:{value:xe,label:"titleDecoration"},fontSizeType:{value:T,label:"titleFontSizeType"},fontSize:{value:S,label:"titleFontSize"},fontSizeMobile:{value:w,label:"titleFontSizeMobile"},fontSizeTablet:{value:k,label:"titleFontSizeTablet"},lineHeightType:{value:C,label:"titleLineHeightType"},lineHeight:{value:P,label:"titleLineHeight"},lineHeightMobile:{value:A,label:"titleLineHeightMobile"},lineHeightTablet:{value:x,label:"titleLineHeightTablet"},letterSpacing:{value:Be,label:"titleLetterSpacing"},letterSpacingTablet:{value:Ue,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Oe,label:"titleLetterSpacingMobile"},letterSpacingType:{value:He,label:"titleLetterSpacingType"}}),React.createElement(Pl,Hk({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:D,label:"titleTopPadding"},valueRight:{value:N,label:"titleRightPadding"},valueBottom:{value:I,label:"titleBottomPadding"},valueLeft:{value:V,label:"titleLeftPadding"},valueTopTablet:{value:W,label:"titleTopPaddingTablet"},valueRightTablet:{value:q,label:"titleRightPaddingTablet"},valueBottomTablet:{value:Z,label:"titleBottomPaddingTablet"},valueLeftTablet:{value:$,label:"titleLeftPaddingTablet"},valueTopMobile:{value:Y,label:"titleTopPaddingMobile"},valueRightMobile:{value:K,label:"titleRightPaddingMobile"},valueBottomMobile:{value:J,label:"titleBottomPaddingMobile"},valueLeftMobile:{value:X,label:"titleLeftPaddingMobile"},unit:{value:Q,label:"titlePaddingUnit"},mUnit:{value:ee,label:"mobileTitlePaddingUnit"},tUnit:{value:te,label:"tabletTitlePaddingUnit"},attributes:t,setAttributes:a,link:{value:ae,label:"titlePaddingLink"}}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"textColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:y||"",data:{value:y,label:"contentBgColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:z,label:"descLoadGoogleFonts"},fontFamily:{value:G,label:"descFontFamily"},fontWeight:{value:M,label:"descFontWeight"},fontStyle:{value:Re,label:"descFontStyle"},transform:{value:Ae,label:"descTransform"},decoration:{value:Ge,label:"descDecoration"},fontSizeType:{value:B,label:"descFontSizeType"},fontSize:{value:R,label:"descFontSize"},fontSizeMobile:{value:E,label:"descFontSizeMobile"},fontSizeTablet:{value:U,label:"descFontSizeTablet"},lineHeightType:{value:L,label:"descLineHeightType"},lineHeight:{value:O,label:"descLineHeight"},lineHeightMobile:{value:F,label:"descLineHeightMobile"},lineHeightTablet:{value:H,label:"descLineHeightTablet"},letterSpacing:{value:Fe,label:"descLetterSpacing"},letterSpacingTablet:{value:ze,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:De,label:"descLetterSpacingMobile"},letterSpacingType:{value:Ne,label:"descLetterSpacingType"}}),React.createElement(Pl,Hk({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:se,label:"contentTopPadding"},valueRight:{value:ce,label:"contentRightPadding"},valueBottom:{value:ue,label:"contentBottomPadding"},valueLeft:{value:pe,label:"contentLeftPadding"},valueTopTablet:{value:de,label:"contentTopPaddingTablet"},valueRightTablet:{value:be,label:"contentRightPaddingTablet"},valueBottomTablet:{value:me,label:"contentBottomPaddingTablet"},valueLeftTablet:{value:ye,label:"contentLeftPaddingTablet"},valueTopMobile:{value:fe,label:"contentTopPaddingMobile"},valueRightMobile:{value:he,label:"contentRightPaddingMobile"},valueBottomMobile:{value:ve,label:"contentBottomPaddingMobile"},valueLeftMobile:{value:_e,label:"contentLeftPaddingMobile"},unit:{value:Te,label:"contentPaddingUnit"},mUnit:{value:Se,label:"mobileContentPaddingUnit"},tUnit:{value:ke,label:"tabletContentPaddingUnit"},attributes:t,setAttributes:a,link:{value:we,label:"contentPaddingLink"}})))),React.createElement(il,Hk({},rl,{parentProps:e})))))}),zk=a(128),Dk=0,Nk={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Ik={};Ik.locals=zk.a.locals||{},Ik.use=function(){return Dk++||(Fk=we()(zk.a,Nk)),Ik},Ik.unuse=function(){Dk>0&&!--Dk&&(Fk(),Fk=null)};var Vk=Ik,Wk=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Vk.use(),()=>{Vk.unuse()}),[]);const{attributes:{block_id:t,icon:a,noticeTitle:l,noticeContent:i,noticeDismiss:o,noticeAlignment:n,headingTag:s},setAttributes:c,className:u,deviceType:p}=e;let d="";o&&(d=Ce(a,c));const b={allowedBlocks:["core/paragraph"],template:[["core/paragraph",{content:i}]],templateLock:!1,renderAppender:!1},g=Object(ge.useInnerBlocksProps)({className:"uagb-notice-text"},b);return React.createElement("div",{className:Be()(u,""+o,"uagb-inline_notice__align-"+n,"uagb-block-"+t,"uagb-editor-preview-mode-"+p.toLowerCase())},React.createElement("button",{className:"uagb-notice-close-button",type:"button","aria-label":"Close"},d),React.createElement(ge.RichText,{tagName:s,placeholder:Object(r.__)("Notice Title","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:l,className:"uagb-notice-title",onChange:e=>c({noticeTitle:e})}),React.createElement("div",g))}),qk=Object(B.memo)(e=>{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,descLoadGoogleFonts:o,descFontFamily:n,descFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),Zk=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,clientId:a,attributes:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n},name:r,deviceType:s}=e;Object(B.useEffect)(()=>{ys()},[s]);const c=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,textColor:r,titleColor:s,noticeColor:c,contentBgColor:u,noticeDismissColor:p,iconSize:d,iconSizeTab:b,iconSizeMob:g,iconSizeUnit:m,titleFontFamily:y,titleFontWeight:f,titleFontSizeType:h,titleLineHeightType:v,titleFontSize:_,titleFontSizeTablet:T,titleFontSizeMobile:C,titleLineHeight:S,titleLineHeightTablet:k,titleLineHeightMobile:w,descFontFamily:P,descFontWeight:x,descFontSize:A,descFontSizeType:G,descFontSizeTablet:M,descFontSizeMobile:R,descLineHeight:B,descLineHeightType:U,descLineHeightTablet:E,descLineHeightMobile:O,contentTopPadding:L,contentRightPadding:H,contentBottomPadding:F,contentVrPadding:j,contentHrPadding:z,contentLeftPadding:D,contentTopPaddingTablet:N,contentRightPaddingTablet:I,contentBottomPaddingTablet:V,contentLeftPaddingTablet:W,contentTopPaddingMobile:q,contentRightPaddingMobile:Z,contentBottomPaddingMobile:$,contentLeftPaddingMobile:Y,contentPaddingUnit:K,mobileContentPaddingUnit:J,tabletContentPaddingUnit:X,titleVrPadding:Q,titleHrPadding:ee,titleTopPadding:te,titleRightPadding:le,titleBottomPadding:ie,titleLeftPadding:oe,titleTopPaddingTablet:ne,titleRightPaddingTablet:re,titleBottomPaddingTablet:se,titleLeftPaddingTablet:ce,titleTopPaddingMobile:ue,titleRightPaddingMobile:pe,titleBottomPaddingMobile:de,titleLeftPaddingMobile:be,titlePaddingUnit:ge,mobileTitlePaddingUnit:me,tabletTitlePaddingUnit:ye,noticeDismiss:fe,noticeAlignment:he,layout:ve,highlightWidth:_e,highlightWidthMobile:Te,highlightWidthTablet:Ce,titleTransform:Se,titleDecoration:ke,descTransform:we,descDecoration:Pe,titleFontStyle:xe,descFontStyle:Ae,titleLetterSpacing:Ge,titleLetterSpacingTablet:Me,titleLetterSpacingMobile:Re,titleLetterSpacingType:Be,descLetterSpacing:Ue,descLetterSpacingTablet:Ee,descLetterSpacingMobile:Oe,descLetterSpacingType:Le}=e,He=us(d,"iconSize",i),Fe=us(b,"iconSizeTab",i),je=us(g,"iconSizeMob",i),ze=us(_e,"highlightWidth",i),De=us(Ce,"highlightWidthTablet",i),Ne=us(Te,"highlightWidthMobile",i),Ie="number"==typeof te?te:Q,Ve="number"==typeof oe?oe:ee,We="number"==typeof le?le:ee,qe="number"==typeof ie?ie:Q,Ze="number"==typeof ue?ue:Q,$e="number"==typeof be?be:ee,Ye="number"==typeof pe?pe:ee,Ke="number"==typeof de?de:Q,Je="number"==typeof ne?ne:Q,Xe="number"==typeof ce?ce:ee,Qe="number"==typeof re?re:ee,et="number"==typeof se?se:Q;let tt,at,lt,it,ot,nt;!fe||"left"!==he&&"center"!==he?(tt=Ve,at=We,lt=$e,it=Ye,ot=Xe,nt=Qe):(at=We,tt=Ve,lt=$e,it=Ye,ot=Xe,nt=Qe);const rt="number"==typeof Je?Je:Ie,st="number"==typeof Xe?Xe:Ve,ct="number"==typeof Qe?Qe:We,ut="number"==typeof Ce?Ce:ze,pt="number"==typeof Je?ye:ge,dt="number"==typeof Xe?ye:ge,bt="number"==typeof Qe?ye:ge,gt="number"==typeof Ze?Ze:rt,mt="number"==typeof $e?$e:st,yt="number"==typeof Ye?Ye:ct,ft="number"==typeof Te?Te:ut,ht="number"==typeof Ze?me:pt,vt="number"==typeof $e?me:dt,_t="number"==typeof Ye?me:bt,Tt="number"==typeof L?L:j,Ct="number"==typeof D?D:z,St="number"==typeof H?H:z,kt="number"==typeof F?F:j,wt="number"==typeof q?q:j,Pt="number"==typeof Y?Y:z,xt="number"==typeof Z?Z:z,At="number"==typeof $?$:j,Gt="number"==typeof N?N:j,Mt="number"==typeof W?W:z,Rt="number"==typeof I?I:z,Bt="number"==typeof V?V:j;let Ut={},Et={};const Ot={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":Vr(_,h),"font-weight":f,"font-family":y,"font-style":xe,"text-decoration":ke,"text-transform":Se,"line-height":Vr(S,v),color:s,"padding-left":Vr(tt,ge),"padding-right":Vr(at,ge),"padding-top":Vr(Ie,ge),"padding-bottom":Vr(qe,ge),"letter-spacing":Vr(Ge,Be)}," .uagb-notice-text.block-editor-block-list__layout p":{color:r}," .uagb-notice-text.block-editor-block-list__layout":{color:r,"padding-left":Vr(Ct,K),"padding-right":Vr(St,K),"padding-top":Vr(Tt,K),"padding-bottom":Vr(kt,K),"font-size":Vr(A,G),"font-weight":x,"font-family":P,"font-style":Ae,"text-decoration":Pe,"text-transform":we,"line-height":Vr(B,U),"letter-spacing":Vr(Ue,Le)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{color:r,"padding-left":Vr(Ct,K),"padding-right":Vr(St,K),"padding-top":Vr(Tt,K),"padding-bottom":Vr(kt,K),"font-size":Vr(A,G),"font-weight":x,"font-family":P,"font-style":Ae,"text-decoration":Pe,"text-transform":we,"line-height":Vr(B,U),"letter-spacing":Vr(Ue,Le)}," span.uagb-notice-dismiss":{fill:p}," svg":{fill:p},'.uagb-dismissable button[type="button"] svg':{width:Vr(He,m),height:Vr(He,m),top:Vr(Ie,ge)},'.uagb-inline_notice__align-left button[type="button"] svg':{right:Vr(We,ge)},'.uagb-inline_notice__align-center button[type="button"] svg':{right:Vr(We,ge)}};Et={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":Vr(C,h),"line-height":Vr(w,v),"padding-left":Vr(lt,me),"padding-right":Vr(it,me),"padding-top":Vr(Ze,me),"padding-bottom":Vr(Ke,me),"letter-spacing":Vr(Re,Be)}," .uagb-notice-text.block-editor-block-list__layout":{"font-size":Vr(R,G),"line-height":Vr(O,U),"letter-spacing":Vr(Oe,Le),"padding-left":Vr(Pt,J),"padding-right":Vr(xt,J),"padding-top":Vr(wt,J),"padding-bottom":Vr(At,J)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{"font-size":Vr(R,G),"line-height":Vr(O,U),"letter-spacing":Vr(Oe,Le),"padding-left":Vr(Pt,J),"padding-right":Vr(xt,J),"padding-top":Vr(wt,J),"padding-bottom":Vr(At,J)},'.uagb-dismissable button[type="button"] svg':{width:Vr(je,m),height:Vr(je,m),top:Vr(gt,ht)},'.uagb-inline_notice__align-left button[type="button"] svg':{right:Vr(yt,_t)},'.uagb-inline_notice__align-center button[type="button"] svg':{right:Vr(yt,_t)}},Ut={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":Vr(T,h),"line-height":Vr(k,v),"padding-left":Vr(ot,ye),"padding-right":Vr(nt,ye),"padding-top":Vr(Je,ye),"padding-bottom":Vr(et,ye),"letter-spacing":Vr(Me,Be)}," .uagb-notice-text.block-editor-block-list__layout":{"font-size":Vr(M,G),"line-height":Vr(E,U),"letter-spacing":Vr(Ee,Le),"padding-left":Vr(Mt,X),"padding-right":Vr(Rt,X),"padding-top":Vr(Gt,X),"padding-bottom":Vr(Bt,X)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{"font-size":Vr(M,G),"line-height":Vr(E,U),"letter-spacing":Vr(Ee,Le),"padding-left":Vr(Mt,X),"padding-right":Vr(Rt,X),"padding-top":Vr(Gt,X),"padding-bottom":Vr(Bt,X)},'.uagb-dismissable button[type="button"] svg':{width:Vr(Fe,m),height:Vr(Fe,m),top:Vr(rt,pt)},'.uagb-inline_notice__align-left button[type="button"] svg':{right:Vr(ct,bt)},'.uagb-inline_notice__align-center button[type="button"] svg':{right:Vr(ct,bt)}},"modern"===ve?(Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=c,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-right-radius"]="3px",Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-left-radius"]="3px",Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=u,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"].border="2px solid "+c,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-left-radius"]="3px",Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-right-radius"]="3px",Ot[" .uagb-notice-text.block-editor-block-list__layout"]["background-color"]=u,Ot[" .uagb-notice-text.block-editor-block-list__layout"].border="2px solid "+c,Ot[" .uagb-notice-text.block-editor-block-list__layout"]["border-bottom-left-radius"]="3px",Ot[" .uagb-notice-text.block-editor-block-list__layout"]["border-bottom-right-radius"]="3px",Ot['.uagb-inline_notice__align-right button[type="button"] svg']={left:Vr(Ve,ge)},Ut['.uagb-inline_notice__align-right button[type="button"] svg']={left:Vr(st,dt)},Et['.uagb-inline_notice__align-right button[type="button"] svg']={left:Vr(mt,vt)}):"simple"===ve&&(Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=u,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=Vr(ze,"px")+" solid "+c,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=u,Ot[" .uagb-notice-text.block-editor-block-list__layout"]["background-color"]=u,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=Vr(ze,"px")+" solid "+c,Ot[" .uagb-notice-text.block-editor-block-list__layout"]["border-left"]=Vr(ze,"px")+" solid "+c,Et[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=Vr(Ne,"px")+" solid "+c,Et[" .uagb-notice-text.block-editor-block-list__layout"]["border-left"]=Vr(Ne,"px")+" solid "+c,Et[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=Vr(Ne,"px")+" solid "+c,Ut[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=Vr(De,"px")+" solid "+c,Ut[" .uagb-notice-text.block-editor-block-list__layout"]["border-left"]=Vr(De,"px")+" solid "+c,Ut[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=Vr(De,"px")+" solid "+c,Ot[".uagb-inline_notice__align-right svg"]={left:`calc(${Vr(Ve,ge)} + ${Vr(ze,"px")})`},Ut['.uagb-inline_notice__align-right button[type="button"] svg']={left:`calc(${Vr(st,dt)} + ${Vr(ut,"px")})`},Et['.uagb-inline_notice__align-right button[type="button"] svg']={left:`calc(${Vr(mt,vt)} + ${Vr(ft,"px")})`});const Lt=`.editor-styles-wrapper #block-${t} .uagb-block-${n}`;let Ht=ae(Ot,Lt);return"tablet"!==o&&"mobile"!==o||(Ht+=ae(Ut,""+Lt,!0,"tablet"),"mobile"===o&&(Ht+=ae(Et,""+Lt,!0,"mobile"))),Ht}(l,a,r,s),[l,s]);return Object(B.useEffect)(()=>{he(e)},[i,o,n,s]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),React.createElement(qk,{attributes:l}),t&&React.createElement(jk,e),React.createElement(Wk,e))});a(365);var $k=[{attributes:Kt,save(e){const{attributes:t,className:a}=e,{block_id:l,c_id:i,noticeTitle:o,noticeContent:n,noticeAlignment:r,headingTag:s,icon:c,noticeDismiss:u,cookies:p,close_cookie_days:d}=t;let b="";u&&(b=React.createElement("span",{className:"uagb-notice-dismiss"},kb(c)));var g="";return!0===p&&(g="uagb-notice__active"),React.createElement("div",{className:Be()(a,"uagb-inline_notice__outer-wrap",""+u,"uagb-inline_notice__align-"+r,"uagb-block-"+l,""+g)},b,React.createElement(ge.RichText.Content,{value:o,tagName:s,className:"uagb-notice-title"}),React.createElement(ge.RichText.Content,{value:n,tagName:"div",className:"uagb-notice-text"}))}},{attributes:{block_id:{type:"string"},c_id:{type:"string",default:null},noticeTitle:{type:"string",source:"html",selector:".uagb-notice-title",default:Object(r.__)("Notice Title","ultimate-addons-for-gutenberg")},headingTag:{type:"string",default:"h4"},noticeContent:{type:"string",default:"",multiline:"p"},noticeDismiss:{type:"string",default:""},cookies:{type:"boolean",default:!1},close_cookie_days:{type:"number",default:1},textColor:{type:"string",default:"",UAGCopyPaste:{styleType:"desc-color"}},titleColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},noticeColor:{type:"string",default:"#FFD54F",UAGCopyPaste:{styleType:"main-title-border-color"}},contentBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},noticeDismissColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},icon:{type:"string",default:"rectangle-xmark"},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"btn-size"}},iconSizeTab:{type:"number",UAGCopyPaste:{styleType:"btn-size-tablet"}},iconSizeMob:{type:"number",UAGCopyPaste:{styleType:"btn-size-mobile"}},iconSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},noticeAlignment:{type:"string",default:"left",UAGCopyPaste:{styleType:"btn-align"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},descFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightType:{type:"string",UAGCopyPaste:{styleType:"desc-line-height-type"},default:"em"},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},titleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},titleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},titleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},titleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},titleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},titleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},titleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},titleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},titleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},titleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},titleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},titlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobileTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tabletTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},titlePaddingLink:{type:"boolean",default:!1},layout:{type:"string",default:"modern",UAGCopyPaste:{styleType:"notice-layout"}},highlightWidth:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},contentLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},contentRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},contentTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding"}},contentBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},contentLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},contentRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},contentTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-tablet"}},contentBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},contentLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},contentRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},contentTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-mobile"}},contentBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},contentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit"},default:"px"},mobileContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"},default:"px"},tabletContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"},default:"px"},contentPaddingLink:{type:"boolean",default:!1},contentVrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-vertical-padding"}},contentHrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-horizontal-padding"}},titleVrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"},default:15},titleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"},default:15},isPreview:{type:"boolean",default:!1},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}}},save:function(e){const{attributes:t,className:a}=e,{block_id:l,noticeTitle:i,noticeContent:o,noticeAlignment:n,headingTag:r,icon:s,noticeDismiss:c,cookies:u}=t;let p="";c&&(p=Ce(s));let d="";return!0===u&&(d="uagb-notice__active"),React.createElement("div",{className:Be()(a,""+c,"uagb-inline_notice__align-"+n,"uagb-block-"+l,""+d)},p,React.createElement(ge.RichText.Content,{value:i,tagName:r,className:"uagb-notice-title"}),React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-notice-text"}))}},{attributes:{block_id:{type:"string"},c_id:{type:"string",default:null},noticeTitle:{type:"string",source:"html",selector:".uagb-notice-title",default:Object(r.__)("Notice Title","ultimate-addons-for-gutenberg")},headingTag:{type:"string",default:"h4"},noticeContent:{type:"string",default:"",multiline:"p"},noticeDismiss:{type:"string",default:""},cookies:{type:"boolean",default:!1},close_cookie_days:{type:"number",default:1},textColor:{type:"string",default:"",UAGCopyPaste:{styleType:"desc-color"}},titleColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},noticeColor:{type:"string",default:"#FFD54F",UAGCopyPaste:{styleType:"main-title-border-color"}},contentBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},noticeDismissColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},icon:{type:"string",default:"rectangle-xmark"},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"btn-size"}},iconSizeTab:{type:"number",UAGCopyPaste:{styleType:"btn-size-tablet"}},iconSizeMob:{type:"number",UAGCopyPaste:{styleType:"btn-size-mobile"}},iconSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},noticeAlignment:{type:"string",default:"left",UAGCopyPaste:{styleType:"btn-align"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},descFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightType:{type:"string",UAGCopyPaste:{styleType:"desc-line-height-type"},default:"em"},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},titleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},titleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},titleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},titleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},titleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},titleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},titleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},titleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},titleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},titleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},titleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},titlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobileTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tabletTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},titlePaddingLink:{type:"boolean",default:!1},layout:{type:"string",default:"modern",UAGCopyPaste:{styleType:"notice-layout"}},highlightWidth:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},contentLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},contentRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},contentTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding"}},contentBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},contentLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},contentRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},contentTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-tablet"}},contentBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},contentLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},contentRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},contentTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-mobile"}},contentBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},contentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit"},default:"px"},mobileContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"},default:"px"},tabletContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"},default:"px"},contentPaddingLink:{type:"boolean",default:!1},contentVrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-vertical-padding"}},contentHrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-horizontal-padding"}},titleVrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"},default:15},titleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"},default:15},isPreview:{type:"boolean",default:!1},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}}},save:function(e){const{attributes:t,className:a}=e,{block_id:l,noticeTitle:i,noticeContent:o,noticeAlignment:n,headingTag:r,icon:s,noticeDismiss:c,cookies:u}=t;let p="";c&&(p=Ce(s));let d="";return!0===u&&(d="uagb-notice__active"),React.createElement("div",{className:Be()(a,""+c,"uagb-inline_notice__align-"+n,"uagb-block-"+l,""+d)},React.createElement("button",{className:"uagb-notice-close-button",type:"button","aria-label":"Close"},p),React.createElement(ge.RichText.Content,{value:i,tagName:r,className:"uagb-notice-title"}),React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-notice-text"}))}}];let Yk={};Yk=Object(F.applyFilters)("uagb/inline-notice",ss(Yk)),Object(de.registerBlockType)("uagb/inline-notice",{...Yk,title:Object(r.__)("Inline Notice","ultimate-addons-for-gutenberg"),description:Object(r.__)("Highlight important information using inline notice block.","ultimate-addons-for-gutenberg"),icon:se.inline_notice,keywords:[Object(r.__)("inline notice","ultimate-addons-for-gutenberg"),Object(r.__)("notice","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Kt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"inline-notice"}):React.createElement(Zk,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,noticeTitle:i,noticeAlignment:o,headingTag:n,icon:r,noticeDismiss:s,cookies:c}=t;let u="";s&&(u=Ce(r));let p="";return!0===c&&(p="uagb-notice__active"),React.createElement("div",{className:Be()(a,""+s,"uagb-inline_notice__align-"+o,"uagb-block-"+l,""+p)},React.createElement("button",{className:"uagb-notice-close-button",type:"button","aria-label":"Close"},u),React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-notice-title"}),React.createElement("div",{className:"uagb-notice-text"},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:$k});function Kk(){return(Kk=Object.assign||function(e){for(var t=1;t{const{loopLottie:t,reverseDirection:a}=e,{setAttributes:l,attributes:{lottieSource:i,align:o,height:n,heightTablet:s,heightMob:c,width:u,widthTablet:p,widthMob:d,backgroundColor:b,loop:g,speed:m,reverse:y,jsonLottie:f,lottieURl:h,playOn:v,backgroundHColor:_},onSelectLottieJSON:T,onSelectLottieURL:C}=e,S=React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement("p",{className:"uagb-form-notice"},React.createElement(React.Fragment,null,Object(r.__)("Note: You can see sample Lottie animations ","ultimate-addons-for-gutenberg"),React.createElement(Le.ExternalLink,{href:"https://lottiefiles.com/"},Object(r.__)("here on this","ultimate-addons-for-gutenberg")),Object(r.__)(" website.","ultimate-addons-for-gutenberg"))),React.createElement(Na,{setAttributes:l,label:Object(r.__)("File Source","ultimate-addons-for-gutenberg"),data:{value:i,label:"lottieSource"},options:[{value:"library",label:Object(r.__)("Library","ultimate-addons-for-gutenberg")},{value:"url",label:Object(r.__)("URL","ultimate-addons-for-gutenberg")}]}),"upload"===i&&React.createElement(Yl,{backgroundImage:f,onSelectImage:T,slug:"lottie",label:Object(r.__)("Lottie Animation","ultimate-addons-for-gutenberg"),allow:["application/json"],disableRemove:!0}),"library"===i&&React.createElement(Yl,{backgroundImage:f,onSelectImage:T,slug:"lottie",label:Object(r.__)("Lottie Animation","ultimate-addons-for-gutenberg"),allow:["application/json"],disableRemove:!0}),"url"===i&&React.createElement(Ss,{label:Object(r.__)("Lottie Animation URL","ultimate-addons-for-gutenberg"),value:h,data:{value:h,label:"lottieURl"},setAttributes:l,onChange:e=>l({lottieURl:e})})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:l,label:Object(r.__)("Play On","ultimate-addons-for-gutenberg"),data:{value:v,label:"playOn"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"hover",label:Object(r.__)("Hover","ultimate-addons-for-gutenberg")},{value:"click",label:Object(r.__)("Click","ultimate-addons-for-gutenberg")},{value:"scroll",label:Object(r.__)("Viewport","ultimate-addons-for-gutenberg")}],help:"scroll"===v||"none"===v?Object(r.__)("This setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"):""}),React.createElement(Na,{setAttributes:l,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Loop","ultimate-addons-for-gutenberg"),checked:g,onChange:t,help:Object(r.__)("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.","ultimate-addons-for-gutenberg")}),React.createElement(Qa,{label:Object(r.__)("Speed","ultimate-addons-for-gutenberg"),setAttributes:l,value:m,data:{value:m,label:"speed"},min:1,max:50,displayUnit:!1,help:Object(r.__)("This setting will only take effect once you refresh the editor page.","ultimate-addons-for-gutenberg")}),g&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Reverse","ultimate-addons-for-gutenberg"),checked:y,onChange:a,help:Object(r.__)("Direction of animation.","ultimate-addons-for-gutenberg")}))),k=React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:u,label:"width"},tablet:{value:p,label:"widthTablet"},mobile:{value:d,label:"widthMob"}},min:0,max:1e3,displayUnit:!1,setAttributes:l}),React.createElement(tl,{label:Object(r.__)("Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:n,label:"height"},tablet:{value:s,label:"heightTablet"},mobile:{value:c,label:"heightMob"}},min:0,max:1e3,displayUnit:!1,setAttributes:l}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"backgroundColor"},setAttributes:l}),hover:React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"backgroundHColor"},setAttributes:l}),disableBottomSeparator:!0}));return uagb_blocks_info.uagb_mime_type?React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(Le.ToolbarGroup,null,React.createElement(ge.MediaReplaceFlow,{mediaURL:h,allowedTypes:["application/json"],accept:["application/json"],onSelectURL:e=>C(e),onSelect:T}))),React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","style","advance"]},React.createElement(il,ol,S),React.createElement(il,nl,k),React.createElement(il,Kk({},rl,{parentProps:e}))))):React.createElement("div",{className:"uagb-show-notice"},React.createElement("span",null,Object(r.__)("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"),React.createElement("a",{href:uagb_blocks_info.uagb_site_url+"/docs/lottie/?utm_source=uagb-dashboard&utm_medium=uagb-editor-page&utm_campaign=uagb-plugin",target:"__blank"}," ",Object(r.__)("this document","ultimate-addons-for-gutenberg")," "),Object(r.__)("to know more about it.","ultimate-addons-for-gutenberg")))}),Qk=a(195),ew=a(129),tw=0,aw={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},lw={};lw.locals=ew.a.locals||{},lw.use=function(){return tw++||(Jk=we()(ew.a,aw)),lw},lw.unuse=function(){tw>0&&!--tw&&(Jk(),Jk=null)};var iw=lw,ow=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(iw.use(),()=>{iw.unuse()}),[]);const{className:t,attributes:a,setAttributes:l,deviceType:i,lottieplayer:o,name:n}=e,s=n.replace("uagb/",""),{loop:c,speed:u,reverse:p,lottieURl:d,playOn:b,align:g,jsonLottie:m}=a,y=p&&c?-1:1,f=()=>{o.current.setPlayerDirection(y),o.current.play()},h=()=>{o.current.stop()};return"invalid"===(d&&d.endsWith(".json")?"valid":"invalid")?React.createElement("div",{className:"uagb-lottie_upload_wrap"},React.createElement(ge.MediaPlaceholder,{icon:React.createElement(ge.BlockIcon,{icon:se.lottie}),labels:{title:Object(r.__)("Lottie","ultimate-addons-for-gutenberg"),instructions:Object(r.__)("Allows you to add fancy animation i.e Lottie to your website.","ultimate-addons-for-gutenberg")},accept:["application/json"],allowedTypes:["application/json"],value:m,onSelect:e=>{e&&e.url?l({jsonLottie:e,lottieURl:e.url,lottieSource:"library"}):l({jsonLottie:null})},onSelectURL:e=>{l({lottieURl:e,lottieSource:"url"})}})):React.createElement("div",{className:Be()(t,"uagb-block-"+a.block_id,"uagb-lottie__outer-wrap","uagb-lottie__"+g,"uagb-editor-preview-mode-"+i.toLowerCase()),onMouseEnter:"hover"===b?f:h,onMouseLeave:"hover"===b?()=>{o.current.setPlayerDirection(y),o.current.stop()}:h,onClick:"click"===b?f:h},React.createElement(Qk.a,{autoplay:!0,ref:o,src:d,loop:c,speed:us(u,"speed",s)}))});function nw(){return(nw=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,isSelected:l,clientId:i,deviceType:o}=e,{UAGHideDesktop:n,UAGHideTab:r,UAGHideMob:s,loop:c,reverse:u}=a,p=Object(B.useRef)(),[d,b]=Object(B.useState)({direction:1,loopState:!0}),g=Object(B.useMemo)(()=>function(e,t,a){const{width:l,widthTablet:i,widthMob:o,height:n,heightTablet:r,heightMob:s,backgroundColor:c,backgroundHColor:u,block_id:p}=e,d=a.toLowerCase(),b=isNaN(l)?"auto":l+"px",g=isNaN(n)?"auto":n+"px",m=isNaN(i)?b:i+"px",y=isNaN(o)?m:o+"px",f=isNaN(r)?g:r+"px",h=isNaN(s)?f:s+"px",v={".uagb-lottie__outer-wrap":{width:m,height:f}," .lf-player-container #lottie":{height:f}},_={".uagb-lottie__outer-wrap":{width:y,height:h}," .lf-player-container #lottie":{height:h}},T=".editor-styles-wrapper .uagb-block-"+p;let C=ae({".uagb-lottie__outer-wrap":{width:b,height:g,background:c},".uagb-lottie__outer-wrap:hover":{background:u}," .lf-player-container #lottie":{height:g}},T);return"tablet"!==d&&"mobile"!==d||(C+=ae(v,""+T,!0,"tablet"),"mobile"===d&&(C+=ae(_,""+T,!0,"mobile"))),C}(a,0,o),[a,o]);return Object(B.useEffect)(()=>{he(e)},[n,r,s,o]),Object(B.useEffect)(()=>{ys()},[o]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:g}),React.createElement(ow,nw({lottieplayer:p},e)),l&&React.createElement(Xk,nw({},e,{loopLottie:()=>{const{loopState:e}=d;t({loop:!c}),b({loopState:!e})},reverseDirection:()=>{const{direction:e}=d;t({reverse:!u}),b({direction:-1*e})}})))});let sw={};sw=Object(F.applyFilters)("uagb/lottie",ss(sw)),Object(de.registerBlockType)("uagb/lottie",{...sw,title:Object(r.__)("Lottie Animation","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add customizable lottie animation on your page.","ultimate-addons-for-gutenberg"),icon:se.lottie,keywords:[Object(r.__)("lottie","ultimate-addons-for-gutenberg"),Object(r.__)("animation","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],category:uagb_blocks_info.category,attributes:ma,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"lottie"}):React.createElement(rw,e),save:()=>null});const cw=[{defaultAttributes:Dt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"paddingBtnLeft",value:35},{label:"paddingBtnRight",value:35},{label:"paddingBtnTop",value:10},{label:"paddingBtnBottom",value:10},{label:"backgroundType",value:"color"},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:100},{label:"btnBorderTopRightRadius",value:100},{label:"btnBorderBottomLeftRadius",value:100},{label:"btnBorderBottomRightRadius",value:100},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"paddingBtnLeft",value:33},{label:"paddingBtnRight",value:33},{label:"paddingBtnTop",value:8},{label:"paddingBtnBottom",value:8},{label:"backgroundType",value:"color"},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"backgroundType",value:"transparent"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:2},{label:"btnBorderLeftWidth",value:2},{label:"btnBorderRightWidth",value:2},{label:"btnBorderBottomWidth",value:2},{label:"btnBorderTopLeftRadius",value:100},{label:"btnBorderTopRightRadius",value:100},{label:"btnBorderBottomLeftRadius",value:100},{label:"btnBorderBottomRightRadius",value:100},{label:"paddingBtnLeft",value:33},{label:"paddingBtnRight",value:33},{label:"paddingBtnTop",value:8},{label:"paddingBtnBottom",value:8},{label:"titleColor",value:"#000000"},{label:"prefixColor",value:"#000000"},{label:"iconColor",value:"#000000"},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"paddingBtnLeft",value:35},{label:"paddingBtnRight",value:35},{label:"paddingBtnTop",value:10},{label:"paddingBtnBottom",value:10},{label:"backgroundType",value:"gradient"},{label:"gradientType",value:"linear"},{label:"gradientAngle",value:0},{label:"gradientLocation1",value:0},{label:"gradientLocation2",value:100},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:100},{label:"btnBorderTopRightRadius",value:100},{label:"btnBorderBottomLeftRadius",value:100},{label:"btnBorderBottomRightRadius",value:100},{label:"paddingBtnLeft",value:35},{label:"paddingBtnRight",value:35},{label:"paddingBtnTop",value:10},{label:"paddingBtnBottom",value:10},{label:"backgroundType",value:"gradient"},{label:"gradientType",value:"linear"},{label:"gradientAngle",value:0},{label:"gradientLocation1",value:0},{label:"gradientLocation2",value:100},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"iconPosition",value:"after"}],icon:' '}];var uw=Object(F.applyFilters)("uag_marketing_button_presets",cw);function pw(){return(pw=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{align:i,textAlign:o,link:n,linkTarget:s,titleSpace:c,titleSpaceTablet:u,titleSpaceMobile:p,titleSpaceUnit:d,showDescription:b,icon:g,iconPosition:m,iconSpace:y,iconSpaceTablet:f,iconSpaceMobile:h,iconFontSize:v,iconFontSizeMobile:_,iconFontSizeTablet:T,titleColor:C,titleHoverColor:S,prefixColor:k,prefixHoverColor:w,iconColor:P,iconHoverColor:x,backgroundType:A,backgroundColor:G,backgroundHoverColor:M,gradientColor1:R,gradientColor2:B,gradientLocation1:U,gradientLocation2:E,gradientType:O,gradientAngle:L,titleFontFamily:H,titleFontWeight:F,titleFontStyle:j,titleFontSize:z,titleFontSizeType:D,titleFontSizeTablet:N,titleFontSizeMobile:I,titleLineHeightType:V,titleLineHeight:W,titleLineHeightTablet:q,titleLineHeightMobile:Z,titleTag:$,prefixFontFamily:Y,prefixFontWeight:K,prefixFontStyle:J,prefixFontSize:X,prefixFontSizeType:Q,prefixFontSizeTablet:ee,prefixFontSizeMobile:te,prefixLineHeightType:ae,prefixLineHeight:le,prefixLineHeightTablet:ie,prefixLineHeightMobile:oe,paddingBtnUnit:ne,spacingLink:re,mobilePaddingBtnUnit:se,tabletPaddingBtnUnit:ce,paddingBtnTop:ue,paddingBtnBottom:pe,paddingBtnLeft:de,paddingBtnRight:be,paddingBtnTopTablet:me,paddingBtnRightTablet:ye,paddingBtnBottomTablet:fe,paddingBtnLeftTablet:he,paddingBtnTopMobile:ve,paddingBtnRightMobile:_e,paddingBtnBottomMobile:Te,paddingBtnLeftMobile:Se,titleLoadGoogleFonts:ke,prefixLoadGoogleFonts:we,titleTransform:Pe,titleDecoration:xe,prefixTransform:Ae,prefixDecoration:Ge,titleLetterSpacing:Me,titleLetterSpacingTablet:Re,titleLetterSpacingMobile:Be,titleLetterSpacingType:Ue,prefixLetterSpacing:Oe,prefixLetterSpacingTablet:He,prefixLetterSpacingMobile:Fe,prefixLetterSpacingType:ze,inheritFromTheme:De,buttonType:Ne}=t,Ie=uagb_blocks_info.current_theme,Ve=uagb_blocks_info.is_astra_based_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,!De&&React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Hr,{setAttributes:a,presets:uw,presetInputType:"radioImage"})),React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Content & Heading","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{checked:De,onChange:()=>a({inheritFromTheme:!De}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),De&&("Astra"===Ie||Ve)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ne,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:$,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Alignment","ultimate-addons-for-gutenberg"),data:{value:i,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full Width","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"textAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Description","ultimate-addons-for-gutenberg"),checked:b,onChange:()=>a({showDescription:!b})}),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"link"},setAttributes:a,onChange:e=>a({link:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({linkTarget:!s})}))),React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:g,onChange:e=>a({icon:e})}),""!==g&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:m,label:"iconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}]}),React.createElement(tl,{label:Object(r.__)("Gap Between Icon And Text","ultimate-addons-for-gutenberg"),data:{desktop:{value:y,label:"iconSpace"},tablet:{value:f,label:"iconSpaceTablet"},mobile:{value:h,label:"iconSpaceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:v,label:"iconFontSize"},tablet:{value:T,label:"iconFontSizeTablet"},mobile:{value:_,label:"iconFontSizeMobile"}},min:0,max:500,displayUnit:!1,setAttributes:a})))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Heading","ultimate-addons-for-gutenberg"),initialOpen:!0},b&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"titleSpace"},tablet:{value:u,label:"titleSpaceTablet"},mobile:{value:p,label:"titleSpaceMobile"}},min:0,max:20,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a,unit:{value:d,label:"titleSpaceUnit"}}),!De&&React.createElement(React.Fragment,null,React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:ke,label:"titleLoadGoogleFonts"},fontFamily:{value:H,label:"titleFontFamily"},fontWeight:{value:F,label:"titleFontWeight"},fontStyle:{value:j,label:"titleFontStyle"},fontSizeType:{value:D,label:"titleFontSizeType"},fontSize:{value:z,label:"titleFontSize"},fontSizeMobile:{value:I,label:"titleFontSizeMobile"},fontSizeTablet:{value:N,label:"titleFontSizeTablet"},lineHeightType:{value:V,label:"titleLineHeightType"},lineHeight:{value:W,label:"titleLineHeight"},lineHeightMobile:{value:Z,label:"titleLineHeightMobile"},lineHeightTablet:{value:q,label:"titleLineHeightTablet"},transform:{value:Pe,label:"titleTransform"},decoration:{value:xe,label:"titleDecoration"},letterSpacing:{value:Me,label:"titleLetterSpacing"},letterSpacingTablet:{value:Re,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Be,label:"titleLetterSpacingMobile"},letterSpacingType:{value:Ue,label:"titleLetterSpacingType"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:C||"",data:{value:C,label:"titleColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:S||"",data:{value:S,label:"titleHoverColor"},setAttributes:a}),disableBottomSeparator:!0}))),!De&&b&&React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:we,label:"prefixLoadGoogleFonts"},fontFamily:{value:Y,label:"prefixFontFamily"},fontWeight:{value:K,label:"prefixFontWeight"},fontStyle:{value:J,label:"prefixFontStyle"},fontSizeType:{value:Q,label:"prefixFontSizeType"},fontSize:{value:X,label:"prefixFontSize"},fontSizeMobile:{value:te,label:"prefixFontSizeMobile"},fontSizeTablet:{value:ee,label:"prefixFontSizeTablet"},lineHeightType:{value:ae,label:"prefixLineHeightType"},lineHeight:{value:le,label:"prefixLineHeight"},lineHeightMobile:{value:oe,label:"prefixLineHeightMobile"},lineHeightTablet:{value:ie,label:"prefixLineHeightTablet"},transform:{value:Ae,label:"prefixTransform"},decoration:{value:Ge,label:"prefixDecoration"},letterSpacing:{value:Oe,label:"prefixLetterSpacing"},letterSpacingTablet:{value:He,label:"prefixLetterSpacingTablet"},letterSpacingMobile:{value:Fe,label:"prefixLetterSpacingMobile"},letterSpacingType:{value:ze,label:"prefixLetterSpacingType"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:k||"",data:{value:k,label:"prefixColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:w||"",data:{value:w,label:"prefixHoverColor"},setAttributes:a}),disableBottomSeparator:!0})),""!==g&&React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:P||"",data:{value:P,label:"iconColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x||"",data:{value:x,label:"iconHoverColor"},setAttributes:a}),disableBottomSeparator:!0})),!De&&React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:A,label:"backgroundType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===A&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:G||"",data:{value:G,label:"backgroundColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:M||"",data:{value:M,label:"backgroundHoverColor"},setAttributes:a})),disableBottomSeparator:!0})),"gradient"===A&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color 1","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"gradientColor2"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Color 2","ultimate-addons-for-gutenberg"),colorValue:R||"",data:{value:R,label:"gradientColor1"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:O,label:"gradientType"},className:"uagb-multi-button-alignment-control",options:[{value:"linear",label:Object(r.__)("Linear","ultimate-addons-for-gutenberg")},{value:"radial",label:Object(r.__)("Radial","ultimate-addons-for-gutenberg")}]}),React.createElement(Qa,{label:Object(r.__)("Location 1","ultimate-addons-for-gutenberg"),setAttributes:a,value:U,data:{value:U,label:"gradientLocation1"},min:-100,max:100,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Location 2","ultimate-addons-for-gutenberg"),setAttributes:a,value:E,data:{value:E,label:"gradientLocation2"},min:-100,max:100,displayUnit:!1}),"linear"===O&&React.createElement(Qa,{label:Object(r.__)("Angle","ultimate-addons-for-gutenberg"),setAttributes:a,value:L,data:{value:L,label:"gradientAngle"},min:0,max:360,displayUnit:!1}))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"btn",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,pw({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ue,label:"paddingBtnTop"},valueRight:{value:be,label:"paddingBtnRight"},valueBottom:{value:pe,label:"paddingBtnBottom"},valueLeft:{value:de,label:"paddingBtnLeft"},valueTopTablet:{value:me,label:"paddingBtnTopTablet"},valueRightTablet:{value:ye,label:"paddingBtnRightTablet"},valueBottomTablet:{value:fe,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:he,label:"paddingBtnLeftTablet"},valueTopMobile:{value:ve,label:"paddingBtnTopMobile"},valueRightMobile:{value:_e,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Te,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:Se,label:"paddingBtnLeftMobile"},unit:{value:ne,label:"paddingBtnUnit"},mUnit:{value:se,label:"mobilePaddingBtnUnit"},tUnit:{value:ce,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:re,label:"spacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}))))),React.createElement(il,pw({},rl,{parentProps:e})))))}),gw=a(130),mw=0,yw={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},fw={};fw.locals=gw.a.locals||{},fw.use=function(){return mw++||(dw=we()(gw.a,yw)),fw},fw.unuse=function(){mw>0&&!--mw&&(dw(),dw=null)};var hw=fw,vw=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(hw.use(),()=>{hw.unuse()}),[]);const{attributes:t,setAttributes:a,className:l,mergeBlocks:i,insertBlocksAfter:o,createBlock:n,onReplace:s,deviceType:c}=e,{block_id:u,align:p,textAlign:d,heading:b,prefix:g,icon:m,iconPosition:y,titleTag:f,showDescription:h,inheritFromTheme:v,buttonType:_}=t,T=v&&"secondary"===_,C=T?{borderWidth:"revert-layer"}:{},S="uagb-marketing-btn__link "+(T?"ast-outline-button":"wp-block-button__link"),k=T?"div":"a",w=React.createElement(React.Fragment,null,""!==m&&Ce(m,a)),P=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{placeholder:Object(r.__)("Add Button Title…","ultimate-addons-for-gutenberg"),value:b.replace(/<(?!br\s*V?)[^>]+>/g,""),allowedFormats:[],tagName:f,onChange:e=>a({heading:e}),className:"uagb-marketing-btn__title",onRemove:()=>s([]),multiline:!1,onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),r=2;ra({prefix:e}),className:"uagb-marketing-btn__prefix",onRemove:()=>s([]),multiline:!1,onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),r=2;r{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,prefixLoadGoogleFonts:o,prefixFontFamily:n,prefixFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),Tw=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,setAttributes:a,attributes:l,attributes:{borderStyle:i,borderWidth:o,borderRadius:n,borderColor:r,borderHoverColor:s,UAGHideDesktop:c,UAGHideTab:u,UAGHideMob:p},clientId:d,name:b,deviceType:g}=e;Object(B.useEffect)(()=>{(o||n||r||s||i)&&ue("btn",{label:"borderWidth",value:o},{label:"borderRadius",value:n},{label:"borderColor",value:r},{label:"borderHoverColor",value:s},{label:"borderStyle",value:i},a,l)},[]),Object(B.useEffect)(()=>{ys()},[g]);const m=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{titleSpace:n,titleSpaceTablet:r,titleSpaceMobile:s,titleSpaceUnit:c,iconPosition:u,iconSpace:p,iconSpaceTablet:d,iconSpaceMobile:b,iconFontSize:g,iconFontSizeType:m,iconFontSizeMobile:y,iconFontSizeTablet:f,titleColor:h,titleHoverColor:v,prefixColor:_,prefixHoverColor:T,iconColor:C,iconHoverColor:S,btnBorderHColor:k,backgroundType:w,backgroundColor:P,backgroundHoverColor:x,gradientColor1:A,gradientColor2:G,gradientLocation1:M,gradientLocation2:R,gradientType:B,gradientAngle:U,titleFontFamily:E,titleFontWeight:O,titleFontSize:L,titleFontSizeType:H,titleFontSizeTablet:F,titleFontSizeMobile:j,titleLineHeightType:z,titleLineHeight:D,titleLineHeightTablet:N,titleLineHeightMobile:I,prefixFontFamily:V,prefixFontWeight:W,prefixFontSize:q,prefixFontSizeType:Z,prefixFontSizeTablet:$,prefixFontSizeMobile:Y,prefixLineHeightType:K,prefixLineHeight:J,prefixLineHeightTablet:X,prefixLineHeightMobile:Q,paddingBtnUnit:ee,mobilePaddingBtnUnit:te,tabletPaddingBtnUnit:le,paddingBtnTop:ie,paddingBtnBottom:oe,paddingBtnLeft:ne,paddingBtnRight:re,paddingBtnTopTablet:se,paddingBtnRightTablet:ce,paddingBtnBottomTablet:ue,paddingBtnLeftTablet:pe,paddingBtnTopMobile:de,paddingBtnRightMobile:be,paddingBtnBottomMobile:ge,paddingBtnLeftMobile:me,titleTransform:ye,titleDecoration:fe,prefixTransform:he,prefixDecoration:ve,titleFontStyle:_e,prefixFontStyle:Te,titleLetterSpacing:Ce,titleLetterSpacingTablet:Se,titleLetterSpacingMobile:ke,titleLetterSpacingType:we,prefixLetterSpacing:Pe,prefixLetterSpacingTablet:xe,prefixLetterSpacingMobile:Ae,prefixLetterSpacingType:Ge,block_id:Me,inheritFromTheme:Re}=e,Be=us(M,"gradientLocation1",i),Ue=us(R,"gradientLocation2",i),Ee=us(U,"gradientAngle",i),Oe=us(p,"iconSpace",i),Le=us(g,"iconFontSize",i),He=us(n,"titleSpace",i);let Fe={},je={},ze={};const De=""===C?h:C,Ne=""===S?v:S,Ie=Wr(e,"btn"),Ve=Wr(e,"btn","tablet"),We=Wr(e,"btn","mobile");let qe;Fe={" .uagb-marketing-btn__prefix":{"margin-top":Vr(He,c)}," svg":{fill:De,width:Vr(Le,m),height:Vr(Le,m)}," .uagb-marketing-btn__link:hover svg":{fill:Ne}," .uagb-marketing-btn__link:focus svg":{fill:Ne}},qe="1"!==uagb_blocks_info.is_rtl?"after"===u?"margin-left":"margin-right":"after"===u?"margin-right":"margin-left",Fe[" svg"][qe]=Vr(Oe,"px"),je={" .uagb-marketing-btn__prefix":{"margin-top":Vr(r,"px")}," svg":{width:Vr(f,m),height:Vr(f,m)}},ze={" .uagb-marketing-btn__prefix":{"margin-top":Vr(s,"px")}," svg":{width:Vr(y,m),height:Vr(y,m)}},je[" svg"][qe]=Vr(d,"px"),ze[" svg"][qe]=Vr(b,"px"),Re||("transparent"===w?Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]={"background-color":"transparent"}:"color"===w?(Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]={"background-color":P},Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background):hover"]={"background-color":x}):"gradient"===w&&(Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]={"background-color":"transparent"},Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]["background-image"]="linear"===B?`linear-gradient(${Ee}deg, ${A} ${Be}%, ${G} ${Ue}%)`:`radial-gradient( at center center, ${A} ${Be}%, ${G} ${Ue}%)`),Fe={...Fe," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":Vr(L,H),"line-height":Vr(D,z),"font-family":E,"font-weight":O,"font-style":_e,"text-transform":ye,"text-decoration":fe,color:h,"letter-spacing":Vr(Ce,we)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":Vr(q,Z),"line-height":Vr(J,K),"font-family":V,"font-weight":W,color:_,"font-style":Te,"text-transform":he,"text-decoration":ve,"letter-spacing":Vr(Pe,Ge)}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__title":{color:v}," .uagb-marketing-btn__link:focus .block-editor-rich-text__editable.uagb-marketing-btn__title":{color:v}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{color:T}," .uagb-marketing-btn__link:focus .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{color:T}," .uagb-marketing-btn__link:not(.has-background)":{"padding-left":Vr(ne,ee),"padding-right":Vr(re,ee),"padding-top":Vr(ie,ee),"padding-bottom":Vr(oe,ee),...Ie}," .uagb-marketing-btn__link:hover":{"border-color":k}," .uagb-marketing-btn__link:focus":{"border-color":k}},je={...je," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":Vr(F,H),"line-height":Vr(N,z),"letter-spacing":Vr(Se,we)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":Vr($,Z),"line-height":Vr(X,K),"letter-spacing":Vr(xe,Ge)}," .uagb-marketing-btn__link:not(.has-background)":{"padding-left":Vr(pe,le),"padding-right":Vr(ce,le),"padding-top":Vr(se,le),"padding-bottom":Vr(ue,le),...Ve}},ze={...ze," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":Vr(j,H),"line-height":Vr(I,z),"letter-spacing":Vr(ke,we)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":Vr(Y,Z),"line-height":Vr(Q,K),"letter-spacing":Vr(Ae,Ge)}," .uagb-marketing-btn__link:not(.has-background)":{"padding-left":Vr(me,te),"padding-right":Vr(be,te),"padding-top":Vr(de,te),"padding-bottom":Vr(ge,te),...We}});const Ze=".editor-styles-wrapper .uagb-block-"+Me;let $e=ae(Fe,Ze);return"tablet"!==o&&"mobile"!==o||($e+=ae(je,""+Ze,!0,"tablet"),"mobile"===o&&($e+=ae(ze,""+Ze,!0,"mobile"))),$e}(l,0,b,g),[l,g]);return Object(B.useEffect)(()=>{he(e)},[c,u,p,g]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:m}),React.createElement(_w,{attributes:l}),t&&React.createElement(bw,e),React.createElement(vw,e))});const Cw={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},titleSpaceUnit:{type:"string",default:"px"},showDescription:{type:"boolean",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},paddingBtnUnit:{type:"string",default:"px"},mobilePaddingBtnUnit:{type:"string",default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px"},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:".uagb-marketing-btn__prefix",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},...ce("btn")};var Sw=[{attributes:Cw,save(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p}=e.attributes,d=p?"_blank":"";return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n),id:"uagb-marketing-btn-"+l},React.createElement("div",{className:"uagb-marketing-btn__wrap"},React.createElement("a",{href:u,className:"uagb-marketing-btn__link",target:d,rel:"noopener noreferrer"},React.createElement("div",{className:"uagb-marketing-btn__title-wrap"},""!=r&&React.createElement("div",{className:"uagb-marketing-btn__icon-wrap"},kb(r)),React.createElement(ge.RichText.Content,{value:s,tagName:"h6",className:"uagb-marketing-btn__title"})),React.createElement("div",{className:"uagb-marketing-btn__prefix-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}},{attributes:Cw,save(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p,titleTag:d}=e.attributes;let b=p?"_blank":"";return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n,"uagb-block-"+l)},React.createElement("div",{className:"uagb-marketing-btn__wrap"},React.createElement("a",{href:u,className:"uagb-marketing-btn__link",target:b,rel:"noopener noreferrer"},React.createElement("div",{className:"uagb-marketing-btn__title-wrap"},""!=r&&React.createElement("div",{className:"uagb-marketing-btn__icon-wrap"},kb(r)),React.createElement(ge.RichText.Content,{value:s,tagName:d,className:"uagb-marketing-btn__title"})),React.createElement("div",{className:"uagb-marketing-btn__prefix-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}},{attributes:Cw,save(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p,titleTag:d}=e.attributes;let b=p?"_blank":"";return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n,"uagb-block-"+l)},React.createElement("div",{className:"uagb-marketing-btn__wrap"},React.createElement("a",{href:u,className:"uagb-marketing-btn__link",target:b,rel:"noopener noreferrer"},React.createElement("div",{className:"uagb-marketing-btn__title-wrap"},""!=r&&React.createElement("div",{className:"uagb-marketing-btn__icon-wrap"},kb(r)),React.createElement(ge.RichText.Content,{value:s,tagName:d,className:"uagb-marketing-btn__title"})),React.createElement("div",{className:"uagb-marketing-btn__prefix-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}}];a(366);let kw={};kw=Object(F.applyFilters)("uagb/marketing-button",ss(kw)),Object(de.registerBlockType)("uagb/marketing-button",{...kw,title:Object(r.__)("Marketing Button","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a marketing call to action button with a short description.","ultimate-addons-for-gutenberg"),icon:se.marketing_button,keywords:[Object(r.__)("marketing button","ultimate-addons-for-gutenberg"),Object(r.__)("cta","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Dt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"marketing-button"}):React.createElement(Tw,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p,titleTag:d,showDescription:b,inheritFromTheme:g,buttonType:m}=t,y=p?"_blank":"",f=g&&"secondary"===m,h=f?{borderWidth:"revert-layer"}:{},v="uagb-marketing-btn__link "+(f?"ast-outline-button":"wp-block-button__link"),_=React.createElement(React.Fragment,null,""!==r&&Ce(r)),T=React.createElement(React.Fragment,null,React.createElement(ge.RichText.Content,{value:s.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:d,className:"uagb-marketing-btn__title"}));return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n,"uagb-block-"+l,"wp-block-button")},React.createElement("a",{href:u,className:v,target:y,rel:"noopener noreferrer",style:h},"before"===n&&React.createElement(React.Fragment,null,_,T),"after"===n&&React.createElement(React.Fragment,null,T,_),b&&React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))},deprecated:Sw});const ww=[{defaultAttributes:ka},{defaultPresetAttributes:[{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidth"},{label:"btnBorderTopWidth"},{label:"btnBorderLeftWidth"},{label:"btnBorderRightWidth"},{label:"showBtnIcon"},{label:"buttonIconSpace"},{label:"modalTriggerBgType"},{label:"btnBgHoverColor"},{label:"btnLinkColor"},{label:"btnLinkHoverColor"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"modalTriggerBgType",value:"color"},{label:"showBtnIcon",value:!0},{label:"buttonIconSpace",value:12},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"showBtnIcon",value:!0},{label:"buttonIconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];function Pw(){return(Pw=Object.assign||function(e){for(var t=1;ta({icon:e})})),"image"===i&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);xw=t}a({iconImage:e})}else a({iconImage:null});else a({iconImage:null})},backgroundImage:o,onRemoveImage:()=>{a({iconImage:""})}}),o&&"null"!==o.url&&""!==o.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:s,label:"imageSize"},setAttributes:a,options:xw})),"button"===i&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Ke,onChange:()=>a({inheritFromTheme:!Ke}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Ke&&("Astra"===_a||Ta)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Je,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]})),"button"===i&&React.createElement(React.Fragment,null,!Ke&&React.createElement(Hr,{setAttributes:a,presets:ww,presetInputType:"radioImage"}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:Tt,onChange:()=>a({showBtnIcon:!Tt})}),Tt&&React.createElement(Mr,{label:Object(r.__)("Button Icon","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({buttonIcon:e})}),Tt&&""!==c&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:u,label:"buttonIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}]}))),["button","icon","text","image"].includes(i)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"modalAlign"},tablet:{value:y,label:"modalAlignTablet"},mobile:{value:f,label:"modalAlignMobile"}},options:Ca,showIcons:!0,responsive:!0})),Pa="left-off-canvas"!==va&&"right-off-canvas"!==va,xa=React.createElement(je,{title:Object(r.__)("Container","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.Notice,{className:"spectra-sidebar-settings-notice",status:"warning",isDismissible:!1},Object(r.__)("Please click on the modal button to preview the modal container.","ultimate-addons-for-gutenberg")),React.createElement(tl,{label:Object(r.__)("Modal Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"modalWidth",unit:{value:T,label:"modalWidthType"},min:"%"===T?10:"0",max:"%"===T?100:1500},tablet:{value:v,label:"modalWidthTablet",unit:{value:C,label:"modalWidthTypeTablet"},min:"%"===C?10:"0",max:"%"===C?100:1500},mobile:{value:_,label:"modalWidthMobile",unit:{value:S,label:"modalWidthTypeMobile"},min:"%"===S?10:"0",max:"%"===S?100:1500}},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),Pa&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Modal Height","ultimate-addons-for-gutenberg"),data:{value:Ct,label:"modalBoxHeight"},options:[{value:"auto",label:Object(r.__)("Auto","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(r.__)("Custom","ultimate-addons-for-gutenberg")}],showIcons:!1,responsive:!1}),Pa&&"custom"!==Ct&&React.createElement(tl,{label:Object(r.__)("Max Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:St,label:"maxHeight"},tablet:{value:kt,label:"maxHeightTablet"},mobile:{value:wt,label:"maxHeightMobile"}},min:0,max:200,unit:{value:Pt,label:"maxHeightType"},units:[{name:Object(r.__)("VH","ultimate-addons-for-gutenberg"),unitValue:"vh"}],setAttributes:a}),Pa&&"auto"!==Ct&&React.createElement(tl,{label:Object(r.__)("Modal Popup Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:k,label:"modalHeight",unit:{value:x,label:"modalHeightType"},min:"%"===x?10:130,max:"%"===x?100:1500},tablet:{value:w,label:"modalHeightTablet",unit:{value:A,label:"modalHeightTypeTablet"},min:"%"===A?10:130,max:"%"===A?100:1500},mobile:{value:P,label:"modalHeightMobile",unit:{value:G,label:"modalHeightTypeMobile"},min:"%"===G?10:130,max:"%"===G?100:1500}},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a})),Aa=React.createElement(je,{title:Object(r.__)("Close Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:_t,onChange:e=>a({closeIcon:e})}),""!==_t&&React.createElement(Pi,{label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:R,label:"closeIconPosition"},setAttributes:a},React.createElement("option",{value:"popup-top-left"},Object(r.__)("Top Left","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"popup-top-right"},Object(r.__)("Top Right","ultimate-addons-for-gutenberg"))),React.createElement(Le.ToggleControl,{label:Object(r.__)("Close on ESC Keypress","ultimate-addons-for-gutenberg"),checked:E,onChange:()=>a({escPress:!E})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Close on Overlay Click","ultimate-addons-for-gutenberg"),checked:O,onChange:()=>a({overlayClick:!O})})),Ga=React.createElement(je,{title:Object(r.__)("Trigger","ultimate-addons-for-gutenberg"),initialOpen:!0},"icon"===i&&""!==n&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:ee,data:{value:ee,label:"iconSize"},min:0,max:150,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:Q||"",data:{value:Q,label:"iconColor"},setAttributes:a})),"icon"===i&&""===n&&React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("For the styling options please select the Icon.","ultimate-addons-for-gutenberg")),"text"===i&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:te||"",data:{value:te,label:"textColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:_e,label:"textLoadGoogleFonts"},fontFamily:{value:ae,label:"textFontFamily"},fontWeight:{value:le,label:"textFontWeight"},fontStyle:{value:ie,label:"textFontStyle"},transform:{value:he,label:"textTransform"},decoration:{value:ve,label:"textDecoration"},fontSizeType:{value:oe,label:"textFontSizeType"},fontSize:{value:ne,label:"textFontSize"},fontSizeMobile:{value:re,label:"textFontSizeMobile"},fontSizeTablet:{value:se,label:"textFontSizeTablet"},lineHeightType:{value:ce,label:"textLineHeightType"},lineHeight:{value:ue,label:"textLineHeight"},lineHeightMobile:{value:pe,label:"textLineHeightMobile"},lineHeightTablet:{value:de,label:"textLineHeightTablet"},letterSpacing:{value:be,label:"textLetterSpacing"},letterSpacingTablet:{value:me,label:"textLetterSpacingTablet"},letterSpacingMobile:{value:ye,label:"textLetterSpacingMobile"},letterSpacingType:{value:fe,label:"textLetterSpacingType"}})),"image"===i&&o&&"null"!==o.url&&""!==o.url&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:we,onChange:()=>a({imageWidthType:!we}),label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),help:Object(r.__)("Turn this off to inherit the natural width of Image.","ultimate-addons-for-gutenberg")}),we&&React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:Te,label:"imageWidth",unit:{value:Pe,label:"imageWidthUnit"}},tablet:{value:ke,label:"imageWidthTablet",unit:{value:xe,label:"imageWidthUnitTablet"}},mobile:{value:Se,label:"imageWidthMobile",unit:{value:Ae,label:"imageWidthUnitMobile"}}},min:0,limitMax:{px:500,"%":100,em:100},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(Qa,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),setAttributes:a,value:Ge,data:{value:Ge,label:"iconimgBorderRadius"},min:0,max:100,unit:{value:Me,label:"iconimgBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]})),"image"===i&&void 0===o&&React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("For the styling options please select the Image.","ultimate-addons-for-gutenberg")),"button"===i&&React.createElement(React.Fragment,null,Tt&&""!==c&&React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"buttonIconSpace"},tablet:{value:d,label:"buttonIconSpaceTablet"},mobile:{value:b,label:"buttonIconSpaceMobile"}},min:0,max:50,unit:{value:g,label:"buttonIconSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:yt||"",data:{value:yt,label:"btnLinkColor"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:fa,label:"modalTriggerBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===fa&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:vt||"",data:{value:vt,label:"btnBgColor"},setAttributes:a}))),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:ft||"",data:{value:ft,label:"btnLinkHoverColor"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:ha,label:"modalTriggerBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===ha&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ht||"",data:{value:ht,label:"btnBgHoverColor"},setAttributes:a})))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:mt,label:"btnLoadGoogleFonts"},fontFamily:{value:Xe,label:"btnFontFamily"},fontWeight:{value:Qe,label:"btnFontWeight"},fontStyle:{value:et,label:"btnFontStyle"},transform:{value:bt,label:"btnTransform"},decoration:{value:gt,label:"btnDecoration"},fontSizeType:{value:tt,label:"btnFontSizeType"},fontSize:{value:at,label:"btnFontSize"},fontSizeMobile:{value:lt,label:"btnFontSizeMobile"},fontSizeTablet:{value:it,label:"btnFontSizeTablet"},lineHeightType:{value:ot,label:"btnLineHeightType"},lineHeight:{value:nt,label:"btnLineHeight"},lineHeightMobile:{value:rt,label:"btnLineHeightMobile"},lineHeightTablet:{value:st,label:"btnLineHeightTablet"},letterSpacing:{value:ct,label:"btnLetterSpacing"},letterSpacingTablet:{value:ut,label:"btnLetterSpacingTablet"},letterSpacingMobile:{value:pt,label:"btnLetterSpacingMobile"},letterSpacingType:{value:dt,label:"btnLetterSpacingType"}}),React.createElement(Pl,Pw({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Re,label:"paddingBtnTop"},valueRight:{value:Oe,label:"paddingBtnRight"},valueBottom:{value:Be,label:"paddingBtnBottom"},valueLeft:{value:Ue,label:"paddingBtnLeft"},valueTopTablet:{value:He,label:"paddingBtnTopTablet"},valueRightTablet:{value:Fe,label:"paddingBtnRightTablet"},valueBottomTablet:{value:ze,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:De,label:"paddingBtnLeftTablet"},valueTopMobile:{value:Ne,label:"paddingBtnTopMobile"},valueRightMobile:{value:Ie,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Ve,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:We,label:"paddingBtnLeftMobile"},unit:{value:qe,label:"paddingBtnUnit"},mUnit:{value:$e,label:"mobilePaddingBtnUnit"},tUnit:{value:Ye,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ze,label:"btnSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:a,prefix:"btn",attributes:t,deviceType:l,disableBottomSeparator:!0}))),Ma=React.createElement(je,{title:Object(r.__)("Container","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Overlay Color","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"overlayColor"},setAttributes:a}),React.createElement(Pl,Pw({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:L,label:"paddingModalTop"},valueRight:{value:z,label:"paddingModalRight"},valueBottom:{value:H,label:"paddingModalBottom"},valueLeft:{value:F,label:"paddingModalLeft"},valueTopTablet:{value:D,label:"paddingModalTopTablet"},valueRightTablet:{value:N,label:"paddingModalRightTablet"},valueBottomTablet:{value:I,label:"paddingModalBottomTablet"},valueLeftTablet:{value:V,label:"paddingModalLeftTablet"},valueTopMobile:{value:W,label:"paddingModalTopMobile"},valueRightMobile:{value:q,label:"paddingModalRightMobile"},valueBottomMobile:{value:Z,label:"paddingModalBottomMobile"},valueLeftMobile:{value:$,label:"paddingModalLeftMobile"},unit:{value:Y,label:"paddingModalUnit"},mUnit:{value:J,label:"mobilePaddingModalUnit"},tUnit:{value:X,label:"tabletPaddingModalUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:K,label:"modalSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:a,prefix:"content",attributes:t,deviceType:l,disableBottomSeparator:!0})),Ra=React.createElement(je,{title:Object(r.__)("Close Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:M,data:{value:M,label:"closeIconSize"},min:0,max:50,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:U||"",data:{value:U,label:"closeIconColor"},setAttributes:a})),Ba=React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(vi,Pw({setAttributes:a,backgroundGradient:{value:Wt,label:"gradientValue"},backgroundGradientColor1:{value:qt,label:"gradientColor1"},gradientType:{value:Xt,label:"selectGradient"},backgroundGradientColor2:{value:Zt,label:"gradientColor2"},backgroundGradientLocation1:{value:$t,label:"gradientLocation1"},backgroundGradientLocation2:{value:Yt,label:"gradientLocation2"},backgroundGradientType:{value:Kt,label:"gradientType"},backgroundGradientAngle:{value:Jt,label:"gradientAngle"},backgroundImageColor:{value:Vt,label:"backgroundImageColor"},backgroundSize:{desktop:{value:Dt,label:"backgroundSizeDesktop"},tablet:{value:Nt,label:"backgroundSizeTablet"},mobile:{value:It,label:"backgroundSizeMobile"}},backgroundCustomSize:{desktop:{value:Qt,label:"backgroundCustomSizeDesktop"},tablet:{value:ea,label:"backgroundCustomSizeTablet"},mobile:{value:ta,label:"backgroundCustomSizeMobile"}},backgroundCustomSizeType:{value:aa,label:"backgroundCustomSizeType"},backgroundRepeat:{desktop:{value:Ft,label:"backgroundRepeatDesktop"},tablet:{value:jt,label:"backgroundRepeatTablet"},mobile:{value:zt,label:"backgroundRepeatMobile"}},backgroundAttachment:{desktop:{value:Ot,label:"backgroundAttachmentDesktop"},tablet:{value:Lt,label:"backgroundAttachmentTablet"},mobile:{value:Ht,label:"backgroundAttachmentMobile"}},backgroundPosition:{desktop:{value:Bt,label:"backgroundPositionDesktop"},tablet:{value:Ut,label:"backgroundPositionTablet"},mobile:{value:Et,label:"backgroundPositionMobile"}},backgroundImage:{desktop:{value:At,label:"backgroundImageDesktop"},tablet:{value:Gt,label:"backgroundImageTablet"},mobile:{value:Mt,label:"backgroundImageMobile"}},imageResponsive:!0,backgroundColor:{value:Rt,label:"backgroundColor"},backgroundType:{value:xt,label:"backgroundType"},overlayType:{value:la,label:"overlayType"},gradientOverlay:{value:!0},customPosition:{value:ia,label:"customPosition"},xPositionDesktop:{value:oa,label:"xPositionDesktop"},xPositionTablet:{value:na,label:"xPositionTablet"},xPositionMobile:{value:ra,label:"xPositionMobile"},xPositionType:{value:sa,label:"xPositionType"},xPositionTypeTablet:{value:ca,label:"xPositionTypeTablet"},xPositionTypeMobile:{value:ua,label:"xPositionTypeMobile"},yPositionDesktop:{value:pa,label:"yPositionDesktop"},yPositionTablet:{value:da,label:"yPositionTablet"},yPositionMobile:{value:ba,label:"yPositionMobile"},yPositionType:{value:ga,label:"yPositionType"},yPositionTypeTablet:{value:ma,label:"yPositionTypeTablet"},yPositionTypeMobile:{value:ya,label:"yPositionTypeMobile"},backgroundVideoType:{value:!1}},e)));return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,wa,xa,Aa),React.createElement(il,nl,!(Ke&&"button"===i)&&Ga,Ma,""!==_t&&Ra,Ba),React.createElement(il,Pw({},rl,{parentProps:e})))))}var Mw,Rw=a(131),Bw=0,Uw={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Ew={};Ew.locals=Rw.a.locals||{},Ew.use=function(){return Bw++||(Mw=we()(Rw.a,Uw)),Ew},Ew.unuse=function(){Bw>0&&!--Bw&&(Mw(),Mw=null)};var Ow=Ew;const Lw=[["uagb/info-box",{icon:"circle-check",iconBottomMargin:15,infoBoxTitle:Object(r.__)("Engage Your Visitors!","ultimate-addons-for-gutenberg"),headFontWeight:500,headSpace:10,headingDesc:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis pulvinar dapibus.","ultimate-addons-for-gutenberg"),subHeadSpace:30,ctaType:"button",btnBorderStyle:"none",showCtaIcon:!1,ctaText:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg"),paddingBtnTop:14,paddingBtnRight:28,paddingBtnBottom:14,paddingBtnLeft:28,btnBorderTopLeftRadius:3,btnBorderTopRightRadius:3,btnBorderBottomLeftRadius:3,btnBorderBottomRightRadius:3}]],Hw=["uagb/modal","uagb/how-to-step","uagb/buttons-child","uagb/faq-child","uagb/content-timeline-child","uagb/icon-list-child","uagb/social-share-child","uagb/restaurant-menu-child","uagb/tabs-child","uagb/post-image","uagb/post-taxonomy","uagb/post-title","uagb/post-meta","uagb/post-excerpt","uagb/post-button","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","uagb/slider-child","uagb/register-email","uagb/register-first-name","uagb/register-last-name","uagb/register-password","uagb/register-reenter-password","uagb/register-terms","uagb/register-username"];var Fw=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Ow.use(),()=>{Ow.unuse()}),[]);const{attributes:t,setAttributes:a,clientId:l,deviceType:i}=e,{block_id:o,triggerText:s,icon:c,iconImage:u,modalTrigger:p,imageSize:d,buttonText:b,buttonIcon:g,buttonIconPosition:m,appearEffect:y,closeIconPosition:f,escPress:h,overlayClick:v,closeIcon:_,imgTagWidth:T,imgTagHeight:C,showBtnIcon:S,openModalAs:k,modalPosition:w,defaultTemplate:P,inheritFromTheme:x,buttonType:A}=t,{replaceInnerBlocks:G}=Object(n.useDispatch)("core/block-editor"),M=uagb_blocks_info.spectra_pro_status,R=x&&"secondary"===A,U=R?"ast-outline-button":"wp-block-button__link",E=R?{borderWidth:"revert-layer"}:{},O=wp.blocks.getBlockTypes().map(e=>e.name).filter(e=>!Hw.includes(e));Object(B.useEffect)(()=>{Zg(z,a)},[d]),Object(B.useEffect)(()=>{P||(G(l,Object(de.createBlocksFromInnerBlocksTemplate)(Lw)),a({defaultTemplate:!0}))},[]);const L=React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Add Your Text Here","ultimate-addons-for-gutenberg"),value:s,className:"uagb-modal-text uagb-modal-trigger",onChange:e=>a({triggerText:e})}),H=React.createElement("div",{className:"uagb-modal-trigger"},""!==c&&Ce(c,a)),F=null!=u&&u.alt?u.alt:"";let j="",z="";if(null!=u&&u.url){z=u.url;const e=u.sizes,t=d;void 0!==e&&void 0!==e[t]&&(z=e[t].url),j=React.createElement("img",{src:z,alt:F,className:"uagb-modal-trigger",width:T,height:C,loading:"lazy"})}let D="";""!==g&&(D=Ce(g,a));const N=`uagb-modal-button-link ${U} uagb-modal-trigger`,I=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("div",{className:N,target:"_self",rel:"noopener noreferrer",style:E},React.createElement("span",{className:"uagb-modal-content-wrapper"},S&&"before"===m&&D,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Click Here","ultimate-addons-for-gutenberg"),value:b,className:"uagb-inline-editing",onChange:e=>a({buttonText:e}),allowedFormats:[]}),S&&"after"===m&&D)));return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-editor-preview-mode-"+i.toLowerCase(),"uagb-block-"+o,"uagb-modal-wrapper"),"data-escpress":h?"enable":"disable","data-overlayclick":v?"enable":"disable"},React.createElement("div",{className:"uagb-spectra-editor-wrap"},"text"===p&&L,"icon"===p&&H,"image"===p&&j,"button"===p&&I),React.createElement("div",{className:Be()(""+y,"uagb-modal-popup","uagb-block-"+o,{["uagb-modal-type-"+k]:M,["uagb-modal-position-"+w]:M&&"popup"===k})},React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks,{template:[["core/paragraph",{placeholder:"Type / to choose a block"}]],allowedBlocks:O,renderAppender:ge.InnerBlocks.DefaultBlockAppender})),("popup-top-left"===f||"popup-top-right"===f)&&React.createElement("button",{className:"uagb-modal-popup-close","aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==_&&Ce(_,a))),M&&("window-top-left"===f||"window-top-right"===f)&&React.createElement("button",{className:Be()("uagb-modal-popup-close",f),"aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==_&&Ce(_)))))}),jw=Object(B.memo)(e=>{let{attributes:t}=e;const{textLoadGoogleFonts:a,textFontFamily:l,textFontWeight:i,btnLoadGoogleFonts:o,btnFontFamily:n,btnFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),zw=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,block_id:n},clientId:r,setAttributes:s,name:c,deviceType:u}=e,{modalTrigger:p}=a;Object(B.useEffect)(()=>{uagb_blocks_info.spectra_pro_status||"custom-class"!==p&&"custom-id"!==p&&"automatic"!==p||s({modalTrigger:"button"})},[]),Object(B.useEffect)(()=>{const e=Object(F.applyFilters)("spectra.modal.edit.jsdetails",{block_id:n,device_type:u},a),t=new CustomEvent("UAGModalEditor",{detail:e});document.dispatchEvent(t)},[a,u]);const d=Object(B.useMemo)(()=>function(e,t,a,l){const i=l.toLowerCase(),{modalTrigger:o,buttonIconPosition:n,buttonIconSpace:r,buttonIconSpaceTablet:s,buttonIconSpaceMobile:c,buttonIconSpaceType:u,modalAlign:p,modalAlignTablet:d,modalAlignMobile:b,modalWidth:g,modalWidthTablet:m,modalWidthMobile:y,modalWidthType:f,modalWidthTypeTablet:h,modalWidthTypeMobile:v,modalHeight:_,modalHeightTablet:T,modalHeightMobile:C,modalHeightType:S,modalHeightTypeTablet:k,modalHeightTypeMobile:w,contentBorderHColor:P,closeIconSize:x,closeIconPosition:A,overlayColor:G,closeIconColor:M,paddingModalUnit:R,mobilePaddingModalUnit:B,tabletPaddingModalUnit:U,paddingModalTop:E,paddingModalBottom:O,paddingModalLeft:L,paddingModalRight:H,paddingModalTopTablet:j,paddingModalRightTablet:z,paddingModalBottomTablet:D,paddingModalLeftTablet:N,paddingModalTopMobile:I,paddingModalRightMobile:V,paddingModalBottomMobile:W,paddingModalLeftMobile:q,iconColor:Z,iconSize:$,textColor:Y,textFontFamily:K,textFontWeight:J,textFontStyle:X,textFontSizeType:Q,textFontSize:ee,textFontSizeMobile:te,textFontSizeTablet:le,textLineHeightType:ie,textLineHeight:oe,textLineHeightMobile:ne,textLineHeightTablet:re,textLetterSpacing:se,textLetterSpacingTablet:ce,textLetterSpacingMobile:ue,textLetterSpacingType:pe,textTransform:de,textDecoration:be,imageWidth:ge,imageWidthMobile:me,imageWidthTablet:ye,imageWidthType:fe,imageWidthUnit:he,imageWidthUnitTablet:ve,imageWidthUnitMobile:_e,iconimgBorderRadius:Te,iconimgBorderRadiusUnit:Ce,paddingBtnUnit:Se,mobilePaddingBtnUnit:ke,tabletPaddingBtnUnit:we,paddingBtnTop:Pe,paddingBtnBottom:xe,paddingBtnLeft:Ae,paddingBtnRight:Ge,paddingBtnTopTablet:Me,paddingBtnRightTablet:Re,paddingBtnBottomTablet:Be,paddingBtnLeftTablet:Ue,paddingBtnTopMobile:Ee,paddingBtnRightMobile:Oe,paddingBtnBottomMobile:Le,paddingBtnLeftMobile:He,btnFontFamily:Fe,btnFontWeight:je,btnFontStyle:ze,btnFontSizeType:De,btnFontSize:Ne,btnFontSizeMobile:Ie,btnFontSizeTablet:Ve,btnLineHeightType:We,btnLineHeight:qe,btnLineHeightMobile:Ze,btnLineHeightTablet:$e,btnLetterSpacing:Ye,btnLetterSpacingTablet:Ke,btnLetterSpacingMobile:Je,btnLetterSpacingType:Xe,btnTransform:Qe,btnDecoration:et,btnLinkColor:tt,btnLinkHoverColor:at,btnBgHoverColor:lt,btnBgColor:it,btnBorderHColor:ot,modalBoxHeight:nt,maxHeight:rt,maxHeightTablet:st,maxHeightMobile:ct,maxHeightType:ut,backgroundType:pt,backgroundImageDesktop:dt,backgroundImageTablet:bt,backgroundImageMobile:gt,backgroundColor:mt,backgroundPositionDesktop:yt,backgroundPositionTablet:ft,backgroundPositionMobile:ht,backgroundAttachmentDesktop:vt,backgroundAttachmentTablet:_t,backgroundAttachmentMobile:Tt,backgroundRepeatDesktop:Ct,backgroundRepeatTablet:St,backgroundRepeatMobile:kt,backgroundSizeDesktop:wt,backgroundSizeTablet:Pt,backgroundSizeMobile:xt,gradientValue:At,backgroundCustomSizeDesktop:Gt,backgroundCustomSizeTablet:Mt,backgroundCustomSizeMobile:Rt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPositionDesktop:Lt,xPositionTablet:Ht,xPositionMobile:Ft,xPositionType:jt,xPositionTypeTablet:zt,xPositionTypeMobile:Dt,yPositionDesktop:Nt,yPositionTablet:It,yPositionMobile:Vt,yPositionType:Wt,yPositionTypeTablet:qt,yPositionTypeMobile:Zt,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,modalTriggerBgType:ta,modalTriggerBgHoverType:aa,contentBorderTopLeftRadius:la,contentBorderTopRightRadius:ia,contentBorderBottomLeftRadius:oa,contentBorderBottomRightRadius:na,contentBorderRadiusUnit:ra,block_id:sa,inheritFromTheme:ca}=e,ua=a.replace("uagb/",""),pa=us(r,"buttonIconSpace",ua),da=isNaN(s)?pa:s,ba=isNaN(c)?da:c,ga=Wr(e,"btn"),ma=Wr(e,"btn","tablet"),ya=Wr(e,"btn","mobile"),fa=Wr(e,"content"),ha=Wr(e,"content","tablet"),va=Wr(e,"content","mobile"),_a=qr({backgroundType:pt,backgroundImage:dt,backgroundColor:mt,gradientValue:At,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,backgroundRepeat:Ct,backgroundPosition:yt,backgroundSize:wt,backgroundAttachment:vt,backgroundCustomSize:Gt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPosition:Lt,xPositionType:jt,yPosition:Nt,yPositionType:Wt});let Ta={" .uagb-modal-popup-wrap":{height:Vr(_,S),width:Vr(g,f),"border-style":"none","border-color":"none","border-top-left-radius":Vr(la,ra),"border-top-right-radius":Vr(ia,ra),"border-bottom-left-radius":Vr(oa,ra),"border-bottom-right-radius":Vr(na,ra)}," .uagb-modal-popup-content:hover":{"border-color":P}," .uagb-modal-popup-close svg":{width:Vr(x,"px"),height:Vr(x,"px"),"line-height":Vr(x,"px"),"font-size":Vr(x,"px"),fill:M}," .uagb-modal-popup.active":{background:G}," .uagb-modal-popup-content":{"padding-left":Vr(L,R),"padding-right":Vr(H,R),"padding-top":Vr(E,R),"padding-bottom":Vr(O,R),..._a,...fa}," .uagb-modal-trigger svg":{width:Vr($,"px"),height:Vr($,"px"),"line-height":Vr($,"px"),"font-size":Vr($,"px"),fill:Z},".uagb-modal-wrapper img.uagb-modal-trigger":{"border-radius":Vr(Te,Ce)}};const Ca=qr({backgroundType:pt,backgroundImage:bt,backgroundColor:mt,gradientValue:At,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,backgroundRepeat:St,backgroundPosition:ft,backgroundSize:Pt,backgroundAttachment:_t,backgroundCustomSize:Mt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPosition:Ht,xPositionType:zt,yPosition:It,yPositionType:qt});let Sa={" .uagb-modal-popup-wrap":{height:Vr(T,k),width:Vr(m,h)}," .uagb-modal-popup-content":{"padding-left":Vr(N,U),"padding-right":Vr(z,U),"padding-top":Vr(j,U),"padding-bottom":Vr(D,U),...Ca,...ha}," .uagb-modal-text.uagb-modal-trigger":{"font-size":Vr(le,Q),"line-height":Vr(re,ie),"letter-spacing":Vr(ce,pe)}};const ka=qr({backgroundType:pt,backgroundImage:gt,backgroundColor:mt,gradientValue:At,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,backgroundRepeat:kt,backgroundPosition:ht,backgroundSize:xt,backgroundAttachment:Tt,backgroundCustomSize:Rt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPosition:Ft,xPositionType:Dt,yPosition:Vt,yPositionType:Zt});let wa={" .uagb-modal-popup-wrap":{height:Vr(C,w),width:Vr(y,v)}," .uagb-modal-popup-content":{"padding-left":Vr(q,B),"padding-right":Vr(V,B),"padding-top":Vr(I,B),"padding-bottom":Vr(W,B),...ka,...va}," .uagb-modal-text.uagb-modal-trigger":{"font-size":Vr(te,Q),"line-height":Vr(ne,ie),"letter-spacing":Vr(ue,pe)}};function Pa(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"}ca||(Ta={...Ta," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger":{"padding-left":Vr(Ae,Se),"padding-right":Vr(Ge,Se),"padding-top":Vr(Pe,Se),"padding-bottom":Vr(xe,Se),"font-family":Fe,"font-style":ze,"text-decoration":et,"text-transform":Qe,"font-weight":je,"font-size":Vr(Ne,De),"line-height":Vr(qe,We),"letter-spacing":Vr(Ye,Xe),color:tt,"background-color":"color"===ta?it:"transparent",...ga}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg":{"font-size":Vr(Ne,De),width:Vr(Ne,De),height:Vr(Ne,De),"line-height":Vr(Ne,De),fill:tt}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:hover":{color:at,"background-color":"color"===aa?lt:"transparent","border-color":ot}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:hover svg":{fill:at}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:focus":{color:at,"background-color":"color"===aa?lt:"transparent","border-color":ot}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:focus svg":{fill:at}," .uagb-modal-text.uagb-modal-trigger":{color:Y,"font-family":K,"font-style":X,"text-decoration":be,"text-transform":de,"font-weight":J,"font-size":Vr(ee,Q),"line-height":Vr(oe,ie),"letter-spacing":Vr(se,pe)}},Sa={...Sa," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger":{"padding-left":Vr(Ue,we),"padding-right":Vr(Re,we),"padding-top":Vr(Me,we),"padding-bottom":Vr(Be,we),"font-size":Vr(Ve,De),"line-height":Vr($e,We),"letter-spacing":Vr(Ke,Xe),...ma}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg":{"font-size":Vr(Ve,De),width:Vr(Ve,De),height:Vr(Ve,De),"line-height":Vr(Ve,De)}},wa={...wa," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger":{"padding-left":Vr(He,ke),"padding-right":Vr(Oe,ke),"padding-top":Vr(Ee,ke),"padding-bottom":Vr(Le,ke),"font-size":Vr(Ie,De),"line-height":Vr(Ze,We),"letter-spacing":Vr(Je,Xe),...ya}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg":{"font-size":Vr(Ie,De),width:Vr(Ie,De),height:Vr(Ie,De),"line-height":Vr(Ie,De)}}),"custom"!==nt&&(Ta[" .uagb-modal-popup-wrap"]={height:"auto",width:Vr(g,f),"max-height":Vr(rt,ut),"border-style":"none","border-color":"none","border-top-left-radius":Vr(la,ra),"border-top-right-radius":Vr(ia,ra),"border-bottom-left-radius":Vr(oa,ra),"border-bottom-right-radius":Vr(na,ra)},Sa[" .uagb-modal-popup-wrap"]={height:"auto",width:Vr(m,h),"max-height":Vr(st,ut)},wa[" .uagb-modal-popup-wrap"]={height:"auto",width:Vr(y,v),"max-height":Vr(ct,ut)}),"popup-top-right"===A&&(Ta[" .uagb-modal-popup.active .uagb-modal-popup-close"]={top:"-"+Vr(x,"px"),right:"-"+Vr(x,"px")}),"popup-top-left"===A&&(Ta[" .uagb-modal-popup.active .uagb-modal-popup-close"]={top:"-"+Vr(x,"px"),left:"-"+Vr(x,"px")}),"button"===o&&("after"===n?(Ta[" .uagb-modal-button-link svg"]={"margin-left":Vr(pa,u)},Sa[" .uagb-modal-button-link svg"]={"margin-left":Vr(da,u)},wa[" .uagb-modal-button-link svg"]={"margin-left":Vr(ba,u)}):(Ta[" .uagb-modal-button-link svg"]={"margin-right":Vr(pa,u)},Sa[" .uagb-modal-button-link svg"]={"margin-right":Vr(da,u)},wa[" .uagb-modal-button-link svg"]={"margin-right":Vr(ba,u)})),"image"===o&&fe&&(Ta[" img.uagb-modal-trigger"]={width:Vr(ge,he)},Sa[" img.uagb-modal-trigger"]={width:Vr(ye,ve)},wa[" img.uagb-modal-trigger"]={width:Vr(me,_e)});const xa=Pa(p),Aa=Pa(d),Ga=Pa(b);"full"!==p?(Ta[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={"text-align":p},Ta[" .wp-block-button__link"]={width:"unset"},Ta[" .uagb-modal-trigger"]={"justify-content":xa},"image"===o&&(Ta[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={display:"flex","justify-content":xa})):Ta[" .uagb-modal-trigger"]={width:"100%","justify-content":"center"},"full"!==d?(Sa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={"text-align":d},Sa[" .wp-block-button__link"]={width:"unset"},Sa[" .uagb-modal-trigger"]={"justify-content":Aa},"image"===o&&(Sa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={display:"flex","justify-content":Aa})):Sa[" .wp-block-button__link.uagb-modal-trigger"]={width:"100%","justify-content":"center"},"full"!==b?(wa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={"text-align":b},wa[" .wp-block-button__link"]={width:"unset"},wa[" .uagb-modal-trigger"]={"justify-content":Ga},"image"===o&&(wa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={display:"flex","justify-content":Ga})):wa[" .wp-block-button__link.uagb-modal-trigger"]={width:"100%","justify-content":"center"};const Ma=".editor-styles-wrapper .uagb-block-"+sa;Ta=Object(F.applyFilters)(`spectra.${ua}.styling`,Ta,e),Sa=Object(F.applyFilters)(`spectra.${ua}.tabletStyling`,Sa,e),wa=Object(F.applyFilters)(`spectra.${ua}.mobileStyling`,wa,e);let Ra=ae(Ta,Ma);return"tablet"!==i&&"mobile"!==i||(Ra+=ae(Sa,""+Ma,!0,"tablet"),"mobile"===i&&(Ra+=ae(wa,""+Ma,!0,"mobile"))),Ra}(a,0,c,u),[a,u]);return Object(B.useEffect)(()=>{he(e)},[l,i,o,u]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:d}),React.createElement(jw,{attributes:a}),t&&React.createElement(Gw,e),React.createElement(Fw,e))});a(367);const Dw=ce("btn"),Nw=ce("content"),Iw={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},defaultTemplate:{type:"boolean",default:!1},modalTrigger:{type:"string",default:"button"},triggerText:{type:"string",default:"Click Here"},icon:{type:"string",default:"up-right-from-square"},closeIcon:{type:"string",default:"xmark"},iconImage:{type:"object",default:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:""},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"image-border-radius"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},buttonText:{type:"html",default:"Click Here"},buttonIcon:{type:"string",default:"arrow-right"},buttonIconPosition:{type:"string",default:"after"},buttonIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},buttonIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},buttonIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},buttonIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},modalAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},modalAlignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},modalAlignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},modalWidth:{type:"number",UAGCopyPaste:{styleType:"modal-width"},default:600},modalWidthTablet:{type:"number",UAGCopyPaste:{styleType:"modal-width"},default:600},modalWidthMobile:{type:"number",UAGCopyPaste:{styleType:"modal-width"},default:340},modalWidthType:{type:"string",default:"px",UAGCopyPaste:{styleType:"modal-width-type"}},modalHeight:{type:"number",UAGCopyPaste:{styleType:"modal-height"},default:350},modalHeightTablet:{type:"number",UAGCopyPaste:{styleType:"modal-height"},default:350},modalHeightMobile:{type:"number",UAGCopyPaste:{styleType:"modal-height"},default:300},modalHeightType:{type:"string",default:"px",UAGCopyPaste:{styleType:"modal-height-type"}},appearEffect:{type:"string",default:"uagb-effect-default"},closeIconSize:{type:"number",default:25},closeIconPosition:{type:"string",default:"popup-top-right"},escPress:{type:"boolean",default:!1},overlayClick:{type:"boolean",default:!1},overlayColor:{type:"string",default:"rgba(0,0,0,0.75)",UAGCopyPaste:{styleType:"overlay-bg-color"}},closeIconColor:{type:"string",default:"",UAGCopyPaste:{styleType:"close-icon-color"}},modalSpacingLink:{type:"boolean",default:!0},paddingModalUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit"},default:"px"},mobilePaddingModalUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"},default:"px"},tabletPaddingModalUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingModalTop:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},paddingModalBottom:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingModalLeft:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},paddingModalRight:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},paddingModalTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingModalRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingModalBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingModalLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingModalTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingModalRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingModalBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingModalLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},iconSize:{type:"number",default:30,UAGCopyPaste:{styleType:"icon-size"}},iconColor:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-color"}},textColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},textLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},textFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},textFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},textFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},textTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},textDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},textFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},textLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},textFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},textFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},textFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},textLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},textLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},textLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},textLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},textLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},textLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},textLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},btnSpacingLink:{type:"boolean",default:!0},paddingBtnUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit"},default:"px"},mobilePaddingBtnUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"},default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingBtnTop:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",default:32,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",default:32,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingBtnTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},btnLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},btnFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},btnFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},btnFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"btn-font-style"}},btnTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},btnDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},btnFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},btnLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},btnFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},btnFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},btnFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},btnLineHeight:{type:"number",UAGCopyPaste:{styleType:"btn-line-height"}},btnLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},btnLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},btnLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"btn-letter-spacing"}},btnLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-letter-spacing-tablet"}},btnLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-letter-spacing-mobile"}},btnLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-letter-spacing-type"}},btnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},btnLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},btnBgColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-color"}},btnBgHoverColor:{type:"string",UAGCopyPaste:{styleType:"btn-h-background"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},showBtnIcon:{type:"boolean",default:!1},modalBoxHeight:{type:"string",default:"auto"},maxHeight:{type:"number",default:"90",UAGCopyPaste:{styleType:"container-max-height-desktop"}},maxHeightTablet:{type:"number",UAGCopyPaste:{styleType:"container-max-height-tablet"}},maxHeightMobile:{type:"number",UAGCopyPaste:{styleType:"container-max-height-mobile"}},maxHeightType:{type:"string",default:"vh",UAGCopyPaste:{styleType:"container-max-height-type"}},backgroundType:{type:"string",default:"none",UAGCopyPaste:{styleType:"container-bg-type"}},backgroundImageDesktop:{type:"object",UAGCopyPaste:{styleType:"container-bg-image-desktop"}},backgroundImageTablet:{type:"object",UAGCopyPaste:{styleType:"container-bg-image-tablet"}},backgroundImageMobile:{type:"object",UAGCopyPaste:{styleType:"container-bg-image-mobile"}},backgroundPositionDesktop:{type:"object",default:{x:.5,y:.5},UAGCopyPaste:{styleType:"container-bg-position-desktop"}},backgroundPositionTablet:{type:"object",UAGCopyPaste:{styleType:"container-bg-position-tablet"}},backgroundPositionMobile:{type:"object",UAGCopyPaste:{styleType:"container-bg-position-mobile"}},backgroundSizeDesktop:{type:"string",default:"cover",UAGCopyPaste:{styleType:"container-bg-size-desktop"}},backgroundSizeTablet:{type:"string",UAGCopyPaste:{styleType:"container-bg-size-tablet"}},backgroundSizeMobile:{type:"string",UAGCopyPaste:{styleType:"container-bg-size-mobile"}},backgroundRepeatDesktop:{type:"string",default:"no-repeat",UAGCopyPaste:{styleType:"container-bg-repeat-desktop"}},backgroundRepeatTablet:{type:"string",UAGCopyPaste:{styleType:"container-bg-repeat-tablet"}},backgroundRepeatMobile:{type:"string",UAGCopyPaste:{styleType:"container-bg-repeat-mobile"}},backgroundAttachmentDesktop:{type:"string",default:"scroll",UAGCopyPaste:{styleType:"container-bg-attachment-desktop"}},backgroundAttachmentTablet:{type:"string",UAGCopyPaste:{styleType:"container-bg-attachment-tablet"}},backgroundAttachmentMobile:{type:"string",UAGCopyPaste:{styleType:"container-bg-attachment-mobile"}},backgroundColor:{type:"string",UAGCopyPaste:{styleType:"container-bg-color"}},backgroundOpacity:{type:"number",UAGCopyPaste:{styleType:"container-bg-opacity"}},backgroundImageColor:{type:"string",UAGCopyPaste:{styleType:"container-bg-image-color"},default:"#FFFFFF75"},gradientValue:{type:"string",default:"linear-gradient(90deg, rgba(6, 147, 227, 0.5) 0%, rgba(155, 81, 224, 0.5) 100%)",UAGCopyPaste:{styleType:"container-bg-gradient-value"}},backgroundCustomSizeDesktop:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-desktop"},default:100},backgroundCustomSizeTablet:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-tablet"}},backgroundCustomSizeMobile:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-mobile"}},backgroundCustomSizeType:{type:"string",default:"%",UAGCopyPaste:{styleType:"background-custom-size-type"}},overlayType:{type:"string",default:"none",UAGCopyPaste:{styleType:"background-overlay-type"}},customPosition:{type:"string",default:"default",UAGCopyPaste:{styleType:"background-image-position-type"}},xPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-desktop"},default:""},xPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-tablet"}},xPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-mobile"}},xPositionType:{type:"string",default:"px"},xPositionTypeTablet:{type:"string",default:"px"},xPositionTypeMobile:{type:"string",default:"px"},yPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-desktop"},default:""},yPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-tablet"}},yPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-mobile"}},yPositionType:{type:"string",default:"px"},yPositionTypeTablet:{type:"string",default:"px"},yPositionTypeMobile:{type:"string",default:"px"},...Dw,btnBorderTopLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-top-left-radius"}},btnBorderTopRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-top-right-radius"}},btnBorderBottomLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-bottom-left-radius"}},btnBorderBottomRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-bottom-right-radius"}},...Nw,contentBorderTopLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-top-left-radius"}},contentBorderTopRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-top-right-radius"}},contentBorderBottomLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-bottom-left-radius"}},contentBorderBottomRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-bottom-right-radius"}},gradientColor1:{type:"string",default:"#06558a",UAGCopyPaste:{styleType:"gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",UAGCopyPaste:{styleType:"gradient-color-2"}},gradientType:{type:"string",default:"linear",UAGCopyPaste:{styleType:"gradient-color-type"}},selectGradient:{type:"string",default:"basic",UAGCopyPaste:{styleType:"gradient-type"}},gradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"gradient-location-1"}},gradientLocation2:{type:"number",default:100,UAGCopyPaste:{styleType:"gradient-location-2"}},gradientAngle:{type:"number",default:0,UAGCopyPaste:{styleType:"gradient-angle"}},modalTriggerBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},modalTriggerBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}}};var Vw=[{attributes:Iw,save:e=>{const{block_id:t,modalTrigger:a,triggerText:l,icon:i,iconImage:o,imageSize:n,buttonText:r,buttonIcon:s,buttonIconPosition:c,appearEffect:u,closeIconPosition:p,escPress:d,overlayClick:b,closeIcon:g,imgTagWidth:m,imgTagHeight:y,showBtnIcon:f}=e.attributes,h=React.createElement(ge.RichText.Content,{value:l,tagName:"span",className:"uagb-modal-text uagb-modal-trigger"}),v=React.createElement("div",{className:"uagb-modal-trigger"},""!==i&&Ce(i)),_=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let T="";if(o&&o.url){let e=o.url;const t=o.sizes,a=n;void 0!==t&&void 0!==t[a]&&(e=t[a].url),T=React.createElement("img",{src:e,alt:_,className:"uagb-modal-trigger",width:m,height:y,loading:"lazy"})}let C="";""!==s&&(C=Ce(s));const S=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("a",{className:"uagb-modal-button-link wp-block-button__link uagb-modal-trigger",href:"#",onClick:"return false;",target:"_self",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-modal-content-wrapper"},f&&"before"===c&&C,React.createElement(ge.RichText.Content,{tagName:"span",value:r,className:"uagb-inline-editing"}),f&&"after"===c&&C)));return React.createElement("div",{className:Be()("uagb-block-"+t,"uagb-modal-wrapper"),"data-escpress":d?"enable":"disable","data-overlayclick":b?"enable":"disable"},"text"===a&&h,"icon"===a&&v,"image"===a&&T,"button"===a&&S,React.createElement("div",{className:Be()(""+u,"uagb-modal-popup","uagb-block-"+t)},React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks.Content,null)),("popup-top-left"===p||"popup-top-right"===p)&&React.createElement("div",{className:"uagb-modal-popup-close"},""!==g&&Ce(g)))))}},{attributes:Iw,save:function(e){const{block_id:t,modalTrigger:a,triggerText:l,icon:i,iconImage:o,imageSize:n,buttonText:r,buttonIcon:s,buttonIconPosition:c,appearEffect:u,closeIconPosition:p,escPress:d,overlayClick:b,closeIcon:g,imgTagWidth:m,imgTagHeight:y,showBtnIcon:f,openModalAs:h,modalPosition:v}=e.attributes,_=React.createElement(ge.RichText.Content,{value:l,tagName:"span",className:"uagb-modal-text uagb-modal-trigger"}),T=uagb_blocks_info.spectra_pro_status,C=React.createElement("div",{className:"uagb-modal-trigger"},""!==i&&Ce(i)),S=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let k="";if(o&&o.url){let e=o.url;const t=o.sizes,a=n;void 0!==t&&void 0!==t[a]&&(e=t[a].url),k=React.createElement("img",{src:e,alt:S,className:"uagb-modal-trigger",width:m,height:y,loading:"lazy"})}let w="";""!==s&&(w=Ce(s));const P=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("a",{className:"uagb-modal-button-link wp-block-button__link uagb-modal-trigger",href:"#",onClick:"return false;",target:"_self",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-modal-content-wrapper"},f&&"before"===c&&w,React.createElement(ge.RichText.Content,{tagName:"span",value:r,className:"uagb-inline-editing"}),f&&"after"===c&&w)));return React.createElement("div",{className:Be()("uagb-block-"+t,"uagb-modal-wrapper"),"data-escpress":d?"enable":"disable","data-overlayclick":b?"enable":"disable"},"text"===a&&_,"icon"===a&&C,"image"===a&&k,"button"===a&&P,React.createElement("div",{className:Be()(""+u,"uagb-modal-popup","uagb-block-"+t,{["uagb-modal-type-"+h]:T,["uagb-modal-position-"+v]:T&&"popup"===h})},T&&("window-top-left"===p||"window-top-right"===p)&&React.createElement("div",{className:Be()("uagb-modal-popup-close",p)},""!==g&&Ce(g)),React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks.Content,null)),("popup-top-left"===p||"popup-top-right"===p)&&React.createElement("div",{className:"uagb-modal-popup-close"},""!==g&&Ce(g)))))}}];let Ww={};Ww=Object(F.applyFilters)("uagb/modal",ss(Ww)),Object(de.registerBlockType)("uagb/modal",{...Ww,title:Object(r.__)("Modal","ultimate-addons-for-gutenberg"),description:Object(r.__)("This block allows you to add modal popup.","ultimate-addons-for-gutenberg"),icon:se.modal,keywords:[Object(r.__)("modal","ultimate-addons-for-gutenberg"),Object(r.__)("popup","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:ka,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"modal"}):React.createElement(zw,e),save:function(e){const{block_id:t,modalTrigger:a,triggerText:l,icon:i,iconImage:o,imageSize:n,buttonText:s,buttonIcon:c,buttonIconPosition:u,appearEffect:p,closeIconPosition:d,escPress:b,overlayClick:g,closeIcon:m,imgTagWidth:y,imgTagHeight:f,showBtnIcon:h,openModalAs:v,modalPosition:_,inheritFromTheme:T,buttonType:C}=e.attributes,S=React.createElement(ge.RichText.Content,{value:l,tagName:"span",className:"uagb-modal-text uagb-modal-trigger"}),k=uagb_blocks_info.spectra_pro_status,w=React.createElement("div",{className:"uagb-modal-trigger"},""!==i&&Ce(i)),P=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let x="";if(o&&o.url){let e=o.url;const t=o.sizes,a=n;void 0!==t&&void 0!==t[a]&&(e=t[a].url),x=React.createElement("img",{src:e,alt:P,className:"uagb-modal-trigger",width:y,height:f,loading:"lazy"})}let A="";""!==c&&(A=Ce(c));const G=T&&"secondary"===C,M=G?{borderWidth:"revert-layer"}:{},R=`uagb-modal-button-link ${G?"ast-outline-button":"wp-block-button__link"} uagb-modal-trigger`,B=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("a",{className:R,href:"#",onClick:"return false;",target:"_self",rel:"noopener noreferrer",style:M},React.createElement("span",{className:"uagb-modal-content-wrapper"},h&&"before"===u&&A,React.createElement(ge.RichText.Content,{tagName:"span",value:s,className:"uagb-inline-editing"}),h&&"after"===u&&A)));return React.createElement("div",{className:Be()("uagb-block-"+t,"uagb-modal-wrapper"),"data-escpress":b?"enable":"disable","data-overlayclick":g?"enable":"disable"},"text"===a&&S,"icon"===a&&w,"image"===a&&x,"button"===a&&B,React.createElement("div",{className:Be()(""+p,"uagb-modal-popup","uagb-block-"+t,{["uagb-modal-type-"+v]:k,["uagb-modal-position-"+_]:k&&"popup"===v})},React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks.Content,null)),("popup-top-left"===d||"popup-top-right"===d)&&React.createElement("button",{className:"uagb-modal-popup-close","aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==m&&Ce(m))),k&&("window-top-left"===d||"window-top-right"===d)&&React.createElement("button",{className:Be()("uagb-modal-popup-close",d),"aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==m&&Ce(m))))},deprecated:Vw});var qw=function(e,t,a){const{block_id:l,blockName:i,btnBorderHColor:o,align:n,titleColor:r,titleFontSize:s,titleFontSizeType:c,titleFontSizeMobile:u,titleFontSizeTablet:p,titleFontFamily:d,titleFontWeight:b,titleLineHeightType:g,titleLineHeight:m,titleLineHeightTablet:y,titleLineHeightMobile:f,titleBottomSpace:h,titleBottomSpaceTablet:v,titleBottomSpaceMobile:_,titleTransform:T,titleDecoration:C,titleBottomSpaceUnit:S,titleFontStyle:k,metaFontSize:w,metaFontSizeType:P,metaFontSizeMobile:x,metaFontSizeTablet:A,metaFontFamily:G,metaFontWeight:M,metaLineHeightType:R,metaLineHeight:B,metaLineHeightTablet:U,metaLineHeightMobile:E,metaColor:O,metaBottomSpace:L,metaBottomSpaceTablet:H,metaBottomSpaceMobile:F,metaTransform:j,metaDecoration:z,metaBottomSpaceUnit:D,metaFontStyle:N,excerptFontSize:I,excerptFontSizeType:V,excerptFontSizeTablet:W,excerptFontSizeMobile:q,excerptFontFamily:Z,excerptFontWeight:$,excerptFontStyle:Y,excerptLineHeightType:K,excerptLineHeight:J,excerptLineHeightTablet:X,excerptLineHeightMobile:Q,excerptColor:ee,excerptBottomSpace:te,excerptBottomSpaceTablet:le,excerptBottomSpaceMobile:ie,excerptBottomSpaceUnit:oe,excerptTransform:ne,excerptDecoration:re,ctaColor:se,linkBox:ce,ctaFontSize:ue,ctaFontSizeType:pe,ctaFontSizeTablet:de,ctaFontSizeMobile:be,ctaFontFamily:ge,ctaFontStyle:me,ctaFontWeight:ye,ctaLineHeightType:fe,ctaLineHeight:he,ctaLineHeightTablet:ve,ctaLineHeightMobile:_e,ctaBottomSpace:Te,ctaBottomSpaceTablet:Ce,ctaBottomSpaceMobile:Se,ctaBgType:ke,ctaBgHType:we,ctaBgColor:Pe,ctaHColor:xe,ctaBgHColor:Ae,ctaTransform:Ge,ctaDecoration:Me,ctaBottomSpaceUnit:Re,imageBottomSpace:Be,imageBottomSpaceTablet:Ue,imageBottomSpaceMobile:Ee,imageBottomSpaceUnit:Oe,overlayOpacity:Le,bgOverlayColor:He,postPagination:Fe,rowGapUnit:je,columnGapUnit:ze,rowGap:De,rowGapTablet:Ne,rowGapMobile:Ie,columnGap:Ve,columnGapTablet:We,columnGapMobile:qe,bgType:Ze,bgColor:$e,inheritFromThemeBtn:Ye,paginationColor:Ke,paginationBgColor:Je,paginationActiveColor:Xe,paginationBgActiveColor:Qe,paginationLayout:et,paginationBorderSize:tt,paginationBorderRadius:at,paginationBorderColor:lt,paginationBorderActiveColor:it,paginationSpacing:ot,paginationSpacingUnit:nt,paginationAlignment:rt,paddingBtnTop:st,paddingBtnBottom:ct,paddingBtnLeft:ut,paddingBtnRight:pt,paddingBtnTopTablet:dt,paddingBtnRightTablet:bt,paddingBtnBottomTablet:gt,paddingBtnLeftTablet:mt,paddingBtnTopMobile:yt,paddingBtnRightMobile:ft,paddingBtnBottomMobile:ht,paddingBtnLeftMobile:vt,paddingBtnUnit:_t,mobilePaddingBtnUnit:Tt,tabletPaddingBtnUnit:Ct,paddingTop:St,paddingBottom:kt,paddingLeft:wt,paddingRight:Pt,paddingTopTablet:xt,paddingRightTablet:At,paddingBottomTablet:Gt,paddingLeftTablet:Mt,paddingTopMobile:Rt,paddingRightMobile:Bt,paddingBottomMobile:Ut,paddingLeftMobile:Et,mobilePaddingUnit:Ot,tabletPaddingUnit:Lt,contentPaddingUnit:Ht,arrowColor:Ft,arrowSize:jt,paginationType:zt,paginationFontSize:Dt,paginationEventType:Nt,paginationAlign:It,paginationTextColor:Vt,paginationMasonryBgColor:Wt,paginationMasonryBorderHColor:qt,paginationButtonPaddingType:Zt,paginationTextHoverColor:$t,paginationBgHoverColor:Yt,paginationButtonPaddingTopTablet:Kt,paginationButtonPaddingRightTablet:Jt,paginationButtonPaddingBottomTablet:Xt,paginationButtonPaddingLeftTablet:Qt,paginationButtonPaddingTopMobile:ea,paginationButtonPaddingRightMobile:ta,paginationButtonPaddingBottomMobile:aa,paginationButtonPaddingLeftMobile:la,paginationButtonPaddingTop:ia,paginationButtonPaddingRight:oa,paginationButtonPaddingBottom:na,paginationButtonPaddingLeft:ra,mobilepaginationButtonPaddingType:sa,tabletpaginationButtonPaddingType:ca,loaderSize:ua,loaderColor:pa,highlightedTextColor:da,highlightedTextBgColor:ba,imgPosition:ga,titleLetterSpacing:ma,titleLetterSpacingTablet:ya,titleLetterSpacingMobile:fa,titleLetterSpacingType:ha,metaLetterSpacing:va,metaLetterSpacingTablet:_a,metaLetterSpacingMobile:Ta,metaLetterSpacingType:Ca,excerptLetterSpacing:Sa,excerptLetterSpacingTablet:ka,excerptLetterSpacingMobile:wa,excerptLetterSpacingType:Pa,ctaLetterSpacing:xa,ctaLetterSpacingTablet:Aa,ctaLetterSpacingMobile:Ga,ctaLetterSpacingType:Ma,useSeparateBoxShadows:Ra,boxShadowColor:Ba,boxShadowHOffset:Ua,boxShadowVOffset:Ea,boxShadowBlur:Oa,boxShadowSpread:La,boxShadowPosition:Ha,boxShadowColorHover:Fa,boxShadowHOffsetHover:ja,boxShadowVOffsetHover:za,boxShadowBlurHover:Da,boxShadowSpreadHover:Na,boxShadowPositionHover:Ia,overallBorderHColor:Va,arrowDistance:Wa,arrowDistanceTablet:qa,arrowDistanceMobile:Za,columns:$a,tcolumns:Ya,mcolumns:Ka,wrapperTopPadding:Ja,wrapperRightPadding:Xa,wrapperLeftPadding:Qa,wrapperBottomPadding:el,wrapperTopPaddingTablet:tl,wrapperRightPaddingTablet:al,wrapperLeftPaddingTablet:ll,wrapperBottomPaddingTablet:il,wrapperTopPaddingMobile:ol,wrapperRightPaddingMobile:nl,wrapperLeftPaddingMobile:rl,wrapperBottomPaddingMobile:sl,wrapperPaddingUnit:cl,wrapperPaddingUnitTablet:ul,wrapperPaddingUnitMobile:pl,wrapperAlign:dl,wrapperAlignPosition:bl,isLeftToRightLayout:gl,dotsMarginTop:ml,dotsMarginTopTablet:yl,dotsMarginTopMobile:fl,dotsMarginTopUnit:hl}=e,vl=a.toLowerCase(),_l=us(Le,"overlayOpacity",i),Tl=us(Ve,"columnGap",i),Cl=us(De,"rowGap",i),Sl=us(Be,"imageBottomSpace",i),kl=us(h,"titleBottomSpace",i),wl=us(L,"metaBottomSpace",i),Pl=us(te,"excerptBottomSpace",i),xl=us(Te,"ctaBottomSpace",i),Al=void 0!==ot?us(ot,"paginationSpacing",i):"",Gl=void 0!==at?us(at,"paginationBorderRadius",i):"",Ml=void 0!==tt?us(tt,"paginationBorderSize",i):"",Rl=void 0!==jt?us(jt,"arrowSize",i):"",Bl=void 0!==Dt?us(Dt,"paginationFontSize",i):"",Ul=void 0!==ua?us(ua,"loaderSize",i):"",El=isNaN(Ne)?Cl:Ne,Ol=isNaN(Ie)?El:Ie,Ll=Wr(e,"btn"),Hl=Wr(e,"btn","tablet"),Fl=Wr(e,"btn","mobile"),jl=Wr(e,"overall"),zl=Wr(e,"overall","tablet"),Dl=Wr(e,"overall","mobile"),Nl=Wr(e,"paginationMasonry"),Il=Wr(e,"paginationMasonry","tablet"),Vl=Wr(e,"paginationMasonry","mobile"),Wl=us(ml,"dotsMarginTop","post-carousel"),ql=us(yl,"dotsMarginTopTablet","post-carousel"),Zl=us(fl,"dotsMarginTopMobile","post-carousel");let $l={},Yl={};const Kl=Zr({horizontal:Ua,vertical:Ea,blur:Oa,spread:La,color:Ba,position:Ha}),Jl=Zr({horizontal:ja,vertical:za,blur:Da,spread:Na,color:Fa,position:Ia,altColor:Ba});let Xl={".wp-block-uagb-post-grid":{"grid-template-columns":"repeat("+$a+" , minmax(0, 1fr))",...gl?{display:"flex","flex-direction":"column"}:{}},".wp-block-uagb-post-grid.uagb-post__items":{"column-gap":Vr(Tl,ze),"row-gap":Vr(Cl,je)},":not(.wp-block-uagb-post-grid).uagb-post__items":{"margin-right":Vr(-Cl/2,je),"margin-left":Vr(-Cl/2,je)},":not(.wp-block-uagb-post-grid).uagb-post__items article":{"padding-right":Vr(Cl/2,je),"padding-left":Vr(Cl/2,je),"margin-bottom":Vr(Tl,ze)}," .uagb-post__inner-wrap":{background:$e,"text-align":n,...gl?{display:"flex","flex-direction":dl,width:"100%"}:{}},".is_carousel .uagb-post__inner-wrap":{background:Ze?$e:"transparent"},".wp-block-uagb-post-grid .uagb-post__inner-wrap":{"box-shadow":Kl,...jl,"padding-top":Vr(St,Ht),"padding-left":Vr(wt,Ht),"padding-bottom":Vr(kt,Ht),"padding-right":Vr(Pt,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap > .uagb-post__text:not(.highlighted)":{"margin-left":Vr(wt,Ht),"margin-right":Vr(Pt,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text.highlighted":{"margin-left":Vr(wt,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:first-child":{"margin-top":Vr(St,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:last-child":{"margin-bottom":Vr(kt,Ht)}," .uagb-post__inner-wrap .uagb-post__cta":{"padding-bottom":Vr(xl,Re)}," .uagb-post__inner-wrap .uagb-post__image":{"padding-bottom":Vr(Sl,Oe),...gl&&"top"===ga?{flex:"none",width:"35%"}:{},...gl&&"background"===ga?{flex:"none",width:"100%"}:{}}," .uagb-post__inner-wrap .uagb-post__image + .uagb-post__title ":{"margin-top":"0px"}," .uagb-post__inner-wrap .uagb-post__title":{"padding-bottom":Vr(kl,S)}," .uagb-post__inner-wrap .uagb-post-grid-byline":{"padding-bottom":Vr(wl,D)}," .uagb-post__inner-wrap .uagb-post__excerpt":{"padding-bottom":Vr(Pl,oe)}," .uagb-post__image:before":{"background-color":He,opacity:_l/100}," .uagb-post-pagination-wrap":{"margin-top":Vr(Al,nt),"justify-content":rt}," .uag-post-grid-wrapper":{"padding-top":Vr(Ja,cl),"padding-right":Vr(Xa,cl),"padding-bottom":Vr(el,cl),"padding-left":Vr(Qa,cl),width:"100%",display:"flex","flex-direction":"column","justify-content":bl}};"left"===rt?Xl[" .uagb-post-pagination-wrap"]["margin-left"]=Vr(Cl/2,je):"right"===rt&&(Xl[" .uagb-post-pagination-wrap"]["margin-right"]=Vr(Cl/2,je)),Xl[" .uagb-post__title"]={color:r,"font-size":Vr(s,c),"font-family":d,"font-weight":b,"line-height":Vr(m,g),"text-transform":T,"text-decoration":C,"font-style":k,"letter-spacing":Vr(ma,ha)},Xl[" .uagb-post__title a"]={color:r,"font-size":Vr(s,c),"font-family":d,"font-weight":b,"line-height":Vr(m,g),"letter-spacing":Vr(ma,ha)},Xl[" .uagb-post-grid-byline"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline time"]={"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline span.uagb-post__comment"]={"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" span.uagb-post__taxonomy"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" span.uagb-post__taxonomy.highlighted"]={color:da,"background-color":ba,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline .uagb-post__author"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline .uagb-post__author a"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post__excerpt"]={color:ee,"font-size":Vr(I,V),"font-family":Z,"font-weight":$,"line-height":Vr(J,K),"font-style":Y,"text-transform":ne,"text-decoration":re,"letter-spacing":Vr(Sa,Pa)},!0===Fe&&("filled"===et&&(Xl[" .uagb-post-pagination-wrap a"]={"background-color":Je,color:Ke},void 0===Qe&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Je,color:Ke}),void 0===Qe&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Je,color:Xe}),void 0!==Qe&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Qe,color:Ke}),void 0!==Qe&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Qe,color:Xe})),"border"===et&&(Xl[" .uagb-post-pagination-wrap a"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":lt,"border-radius":Vr(Gl,"px"),color:Ke,"background-color":"transparent"},void 0!==it&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":it,"border-radius":Vr(Gl,"px"),color:Xe,"background-color":"transparent"}),void 0===it&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":lt,"border-radius":Vr(Gl,"px"),color:Xe,"background-color":"transparent"}),void 0!==it&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":it,"border-radius":Vr(Gl,"px"),color:Ke,"background-color":"transparent"}),"undefined"==typeof paginationBorderHColor&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":lt,"border-radius":Vr(Gl,"px"),color:Ke,"background-color":"transparent"}))),ce&&(Xl[" .uagb-post__inner-wrap"].cursor="pointer"),Xl[" .slick-arrow svg"]={fill:Ft,height:Vr(Rl,"px"),width:Vr(Rl,"px")},Xl[".uagb-post__arrow-outside.uagb-post-grid .slick-prev"]={left:Vr(Wa,"px")},Xl[".uagb-post__arrow-outside.uagb-post-grid .slick-next"]={right:Vr(Wa,"px")},$l={".wp-block-uagb-post-grid":{"grid-template-columns":"repeat("+Ka+" , minmax(0, 1fr))",...gl?{display:"grid"}:{}},".uagb-post__arrow-outside.uagb-post-grid .slick-prev":{left:Vr(Za,"px")},".uagb-post__arrow-outside.uagb-post-grid .slick-next":{right:Vr(Za,"px")}," .uagb-post__inner-wrap .uagb-post__title":{"font-size":Vr(u,c),"line-height":f+g,"padding-bottom":Vr(_,S)},".wp-block-uagb-post-grid .uagb-post__inner-wrap":Dl," .uagb-post__title a":{"font-size":Vr(u,c),"line-height":f+g,"letter-spacing":Vr(fa,ha)}," .uagb-post-grid-byline":{"font-size":Vr(x,P),"line-height":E+R,"padding-bottom":Vr(F,D),"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline time":{"font-size":Vr(x,P),"line-height":E+R,"padding-bottom":Vr(F,D),"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline span.uagb-post__comment":{"font-size":Vr(x,P),"line-height":E+R,"padding-bottom":Vr(F,D),"letter-spacing":Vr(Ta,Ca)}," span.uagb-post__taxonomy.default":{"font-size":Vr(x,P),"line-height":E+R,"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline .uagb-post__author":{"font-size":Vr(x,P),"line-height":E+R,"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline .uagb-post__author a":{"font-size":Vr(x,P),"line-height":E+R,"letter-spacing":Vr(Ta,Ca)}," .uagb-post__inner-wrap .uagb-post__excerpt":{"font-size":Vr(q,V),"line-height":Q+K,"padding-bottom":Vr(ie,oe),"letter-spacing":Vr(wa,Pa)}," .uagb-post__inner-wrap .uagb-post__cta":{"font-size":Vr(be,pe),"line-height":_e+fe,"padding-bottom":Vr(Se,Re),"letter-spacing":Vr(Ga,Ma)}," .uagb-post__inner-wrap .uagb-post__cta a":{"font-size":Vr(be,pe),"line-height":_e+fe,"padding-top":Vr(yt,Tt),"padding-bottom":Vr(ht,Tt),"padding-left":Vr(vt,Tt),"padding-right":Vr(ft,Tt),"letter-spacing":Vr(Ga,Ma)}," .uagb-post__inner-wrap .uagb-post__image":{"padding-bottom":Vr(Ee,Oe),...gl&&"top"===ga?{width:"unset",display:"flex","align-items":"center"}:{},...gl&&"background"===ga?{width:"100%"}:{}},".uagb-post__items":{"margin-right":Vr(-Ol/2,je),"margin-left":Vr(-Ol/2,je)},":not(.wp-block-uagb-post-grid).uagb-post__items article":{"padding-right":Vr(Ol/2,je),"padding-left":Vr(Ol/2,je),"margin-bottom":Vr(qe,ze)},".wp-block-uagb-post-grid.uagb-post__items":{"column-gap":Vr(qe,ze),"row-gap":Vr(Ie,je)}," .is-masonry":{height:"initial !important"},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:not(.highlighted)":{"margin-left":Vr(Et,Ot),"margin-right":Vr(Bt,Ot)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text.highlighted":{"margin-left":Vr(Et,Ot)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:first-child":{"margin-top":Vr(Rt,Ot)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:last-child":{"margin-bottom":Vr(Ut,Ot)}," .uagb-post__inner-wrap":{...gl?{"flex-direction":"column"}:{}}," .uag-post-grid-wrapper":{"padding-top":Vr(ol,pl),"padding-right":Vr(nl,pl),"padding-bottom":Vr(sl,pl),"padding-left":Vr(rl,pl),width:"unset"}},Ra&&(Xl[".wp-block-uagb-post-grid .uagb-post__inner-wrap:hover"]={"box-shadow":Jl}),Xl[".wp-block-uagb-post-grid article:hover"]={"border-color":Va},Xl[".wp-block-uagb-post-grid article:hover"]={"border-color":Va},Yl={".wp-block-uagb-post-grid":{"grid-template-columns":"repeat("+Ya+" , minmax(0, 1fr))"},".uagb-post__arrow-outside.uagb-post-grid .slick-prev":{left:Vr(qa,"px")},".uagb-post__arrow-outside.uagb-post-grid .slick-next":{right:Vr(qa,"px")}," .uagb-post__inner-wrap .uagb-post__title":{"font-size":Vr(p,c),"line-height":y+g,"padding-bottom":Vr(v,S)}," .uagb-post__title a":{"font-size":Vr(p,c),"line-height":y+g,"letter-spacing":Vr(ya,ha)}," .uagb-post-grid-byline":{"font-size":Vr(A,P),"line-height":U+R,"padding-bottom":Vr(H,D),"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline time":{"font-size":Vr(A,P),"line-height":U+R,"padding-bottom":Vr(H,D),"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline span.uagb-post__comment":{"font-size":Vr(A,P),"line-height":U+R,"padding-bottom":Vr(H,D),"letter-spacing":Vr(_a,Ca)}," span.uagb-post__taxonomy.default":{"font-size":Vr(A,P),"line-height":U+R,"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline .uagb-post__author":{"font-size":Vr(A,P),"line-height":U+R,"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline .uagb-post__author a":{"font-size":Vr(A,P),"line-height":U+R,"letter-spacing":Vr(_a,Ca)}," .uagb-post__inner-wrap .uagb-post__excerpt":{"font-size":Vr(W,V),"line-height":X+K,"padding-bottom":Vr(le,oe),"letter-spacing":Vr(ka,Pa)}," .uagb-post__inner-wrap .uagb-post__cta":{"font-size":Vr(de,pe),"line-height":ve+fe,"padding-bottom":Vr(Ce,Re),"letter-spacing":Vr(Aa,Ma)}," .uagb-post__inner-wrap .uagb-post__cta .uagb-text-link":{"font-size":Vr(de,pe),"line-height":ve+fe,"padding-top":Vr(dt,Ct),"padding-bottom":Vr(gt,Ct),"padding-left":Vr(mt,Ct),"padding-right":Vr(bt,Ct),"letter-spacing":Vr(Aa,Ma)}," .uagb-post__inner-wrap .uagb-post__image":{"padding-bottom":Vr(Ue,Oe),...gl&&"top"===ga?{width:"45%"}:{}},".uagb-post__items":{"margin-right":Vr(-El/2,je),"margin-left":Vr(-El/2,je)},":not(.wp-block-uagb-post-grid).uagb-post__items article":{"padding-right":Vr(El/2,je),"padding-left":Vr(El/2,je),"margin-bottom":Vr(We,ze)},".wp-block-uagb-post-grid.uagb-post__items":{"column-gap":Vr(We,ze),"row-gap":Vr(Ne,je)},".wp-block-uagb-post-grid .uagb-post__inner-wrap":zl," .is-masonry":{height:"initial !important"},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:not(.highlighted)":{"margin-left":Vr(Mt,Lt),"margin-right":Vr(At,Lt)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text.highlighted":{"margin-left":Vr(Mt,Lt)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:first-child":{"margin-top":Vr(xt,Lt)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:last-child":{"margin-bottom":Vr(Gt,Lt)}," .uag-post-grid-wrapper":{"padding-top":Vr(tl,ul),"padding-right":Vr(al,ul),"padding-bottom":Vr(il,ul),"padding-left":Vr(ll,ul)}},"infinite"===zt&&("button"===Nt&&(Xl[".uagb-post__items"]={"margin-bottom":"40px"},Xl[" .uagb-post__load-more-wrap"]={"text-align":It},Xl[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]={color:Vt,"background-color":Wt,"font-size":Vr(Bl,"px"),"padding-top":Vr(ia,Zt),"padding-bottom":Vr(na,Zt),"padding-right":Vr(oa,Zt),"padding-left":Vr(ra,Zt),...Nl},Xl[" .uagb-post__load-more-wrap .uagb-post-pagination-button:hover"]={color:$t,"background-color":Yt,"border-color":qt},$l[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]={"padding-top":Vr(ea,sa),"padding-bottom":Vr(aa,sa),"padding-right":Vr(ta,sa),"padding-left":Vr(la,sa)},Yl[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]={"padding-top":Vr(Kt,ca),"padding-bottom":Vr(Jt,ca),"padding-right":Vr(Xt,ca),"padding-left":Vr(Qt,ca)}),"scroll"===Nt&&(Xl[".uagb-post-grid .uagb-post-inf-loader div"]={width:Vr(Ul,"px"),height:Vr(Ul,"px"),"background-color":pa})),Yl[".uagb-post-grid .uagb-post__inner-wrap"]={"padding-top":Vr(xt,Lt),"padding-bottom":Vr(Gt,Lt),"padding-left":Vr(Mt,Lt),"padding-right":Vr(At,Lt),...zl},$l[".uagb-post-grid .uagb-post__inner-wrap"]={"padding-top":Vr(Rt,Ot),"padding-bottom":Vr(Ut,Ot),"padding-left":Vr(Et,Ot),"padding-right":Vr(Bt,Ot),...Dl,...gl?{display:"inline-block"}:{}},Yl[" .uagb-post__cta .uagb-text-link"]=Hl,$l[" .uagb-post__cta .uagb-text-link"]=Fl,Yl[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]=Il,$l[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]=Vl,"background"!==ga||gl||(Xl[" .uagb-post__inner-wrap .uagb-post__text:nth-child(2)"]={"margin-top":Vr(St,Ht)}),"background"===ga||gl||(Xl[".wp-block-uagb-post-grid .uagb-post__inner-wrap > .uagb-post__image:first-child"]={"margin-top":Vr(-St,Ht),"margin-left":Vr(-wt,Ht),"margin-right":Vr(-Pt,Ht)},Yl[".wp-block-uagb-post-grid .uagb-post__inner-wrap > .uagb-post__image:first-child"]={"margin-top":Vr(-xt,Lt),"margin-left":Vr(-Mt,Lt),"margin-right":Vr(-At,Lt)}),"background"!==ga&&($l[".wp-block-uagb-post-grid .uagb-post__inner-wrap > .uagb-post__image:first-child"]={"margin-top":Vr(-Rt,Ot),"margin-left":Vr(-Et,Ot),"margin-right":Vr(-Bt,Ot)}),Yl[" .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background) "]=Hl,$l[" .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background) "]=Fl,Xl[" .slick-dots"]={"margin-top":Vr(Wl,hl)+"!important"},Yl[" .slick-dots"]={"margin-top":Vr(ql,hl)+"!important"},$l[" .slick-dots"]={"margin-top":Vr(Zl,hl)+"!important"},"post-grid"===i&&(Xl[".uagb-equal_height_inline-read-more-buttons-in-editor .uagb-post__inner-wrap .uagb-post__text:last-child"]={left:Vr(wt,Ht),right:Vr(Pt,Ht)},Yl[".uagb-equal_height_inline-read-more-buttons-in-editor .uagb-post__inner-wrap .uagb-post__text:last-child"]={left:Vr(Mt,Lt),right:Vr(At,Lt)},$l[".uagb-equal_height_inline-read-more-buttons-in-editor .uagb-post__inner-wrap .uagb-post__text:last-child"]={left:Vr(Et,Ot),right:Vr(Bt,Ot)}),Ye||(Xl={...Xl," .uagb-post__cta .uagb-text-link":{"pointer-events":"visible",color:se,"font-size":Vr(ue,pe),"font-family":ge,"font-weight":ye,"font-style":me,"line-height":Vr(he,fe),background:"color"===ke?Pe:"transparent","padding-top":Vr(st,_t),"padding-bottom":Vr(ct,_t),"text-transform":Ge,"text-decoration":Me,"padding-left":Vr(ut,_t),"padding-right":Vr(pt,_t),...Ll,"letter-spacing":Vr(xa,Ma)}," .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background) ":{"pointer-events":"visible",color:se,"font-size":Vr(ue,pe),"font-family":ge,"font-weight":ye,"font-style":me,"line-height":Vr(he,fe),background:Pe,"padding-top":Vr(st,_t),"padding-bottom":Vr(ct,_t),"text-transform":Ge,"text-decoration":Me,"padding-left":Vr(ut,_t),"padding-right":Vr(pt,_t),...Ll,"letter-spacing":Vr(xa,Ma)}," .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background):hover":{color:xe,background:"color"===we?Ae:"transparent","border-color":o}},Yl={...Yl," .uagb-post__cta .uagb-text-link":Hl},$l={...$l," .uagb-post__cta .uagb-text-link":Fl});let Ql="";const ei=".editor-styles-wrapper .uagb-block-"+l;return Ql=ae(Xl,ei),"tablet"!==vl&&"mobile"!==vl||(Ql+=ae(Yl,ei,!0,"tablet"),"mobile"===vl&&(Ql+=ae($l,ei,!0,"mobile"))),Ql},Zw=a(22);const $w=[{defaultAttributes:tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"center"},{label:"postsToShow",value:4},{label:"columns",value:2},{label:"autoplay",value:!1},{label:"imageBottomSpace",value:25},{label:"paddingTop",value:20},{label:"paddingBottom",value:30},{label:"paddingLeft",value:20},{label:"paddingRight",value:20},{label:"arrowDots",value:"arrows_dots"},{label:"imgPosition",value:"top"},{label:"linkBox",value:!1},{label:"excerptLength",value:15},{label:"displayPostLink",value:!0},{label:"titleColor",value:""},{label:"metaColor",value:""},{label:"excerptColor",value:""},{label:"bgOverlayColor",value:""},{label:"overlayOpacity",value:""},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"displayPostImage",value:!0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"left"},{label:"postsToShow",value:6},{label:"columns",value:3},{label:"autoplay",value:!0},{label:"imageBottomSpace",value:0},{label:"paddingTop",value:40},{label:"paddingBottom",value:40},{label:"paddingLeft",value:40},{label:"paddingRight",value:40},{label:"arrowDots",value:"dots"},{label:"imgPosition",value:"background"},{label:"linkBox",value:!0},{label:"excerptLength",value:12},{label:"displayPostLink",value:!0},{label:"titleColor",value:"#ffffff"},{label:"metaColor",value:"#ffffff"},{label:"excerptColor",value:"#FFFFFFC2"},{label:"bgOverlayColor",value:"#000000"},{label:"overlayOpacity",value:40},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"displayPostImage",value:!0}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"left"},{label:"postsToShow",value:6},{label:"columns",value:3},{label:"autoplay",value:!0},{label:"imageBottomSpace",value:25},{label:"paddingTop",value:30},{label:"paddingBottom",value:30},{label:"paddingLeft",value:30},{label:"paddingRight",value:30},{label:"arrowDots",value:"arrows"},{label:"imgPosition",value:"top"},{label:"linkBox",value:!1},{label:"excerptLength",value:12},{label:"displayPostLink",value:!0},{label:"titleColor",value:""},{label:"metaColor",value:""},{label:"excerptColor",value:""},{label:"bgOverlayColor",value:""},{label:"overlayOpacity",value:60},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"autoplaySpeed",value:""},{label:"arrowSize",value:16},{label:"arrowBorderSize",value:2},{label:"displayPostImage",value:!0}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"left"},{label:"postsToShow",value:6},{label:"columns",value:3},{label:"autoplay",value:!0},{label:"imageBottomSpace",value:25},{label:"paddingTop",value:35},{label:"paddingBottom",value:35},{label:"paddingLeft",value:35},{label:"paddingRight",value:35},{label:"arrowDots",value:"arrows_dots"},{label:"imgPosition",value:""},{label:"linkBox",value:!1},{label:"excerptLength",value:12},{label:"displayPostLink",value:!0},{label:"titleColor",value:"#000000"},{label:"metaColor",value:"#777777"},{label:"excerptColor",value:"#000000"},{label:"bgOverlayColor",value:""},{label:"overlayOpacity",value:60},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"autoplaySpeed",value:""},{label:"arrowSize",value:16},{label:"arrowBorderSize",value:2},{label:"displayPostImage",value:!1},{label:"titleBottomSpace",value:10},{label:"metaBottomSpace",value:23},{label:"excerptBottomSpace",value:25}],icon:' '}];var Yw=Object(F.applyFilters)("uag_post_carousel_presets",$w);const Kw=[{defaultAttributes:tt},{defaultPresetAttributes:[{label:"ctaBgHColor"},{label:"ctaColor"},{label:"ctaHColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];var Jw=Object(B.memo)(e=>{let{attributes:t}=e;const{titleFontFamily:a,titleFontWeight:l,titleLoadGoogleFonts:i,metaFontFamily:o,metaFontWeight:n,metaLoadGoogleFonts:r,excerptFontFamily:s,excerptFontWeight:c,excerptLoadGoogleFonts:u,ctaFontFamily:p,ctaFontWeight:d,ctaLoadGoogleFonts:b}=t;let g,m,y,f;if(!0===i){const e={google:{families:[a+(l?":"+l:"")]}};g=React.createElement(O,{config:e})}if(!0===r){const e={google:{families:[o+(n?":"+n:"")]}};m=React.createElement(O,{config:e})}if(!0===u){const e={google:{families:[s+(c?":"+c:"")]}};y=React.createElement(O,{config:e})}if(!0===b){const e={google:{families:[p+(d?":"+d:"")]}};f=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,g,m,y,f)}),Xw=Object(B.memo)(e=>{const{state:t,inspectorControls:a,togglePreview:l}=e;return React.createElement(React.Fragment,null,a,React.createElement(ge.BlockControls,null,(()=>{const{isEditing:e}=t;return React.createElement(Le.ToolbarGroup,{controls:[{icon:"edit",title:Object(r.__)("Edit","ultimate-addons-for-gutenberg"),onClick:()=>l(),isActive:e}]})})()))});const Qw=e=>{const{attributes:t,post:a}=e,l=t.titleTag,i=t.newTab?"_blank":"_self";return void 0===a.title?null:t.displayPostTitle?React.createElement(l,{className:"uagb-post__title uagb-post__text"},React.createElement("a",{href:a.link,target:i,rel:"noopener noreferrer"},Object(Zw.decodeEntities)(a.title.rendered.trim()))):null},eP=e=>{const{post:t,attributes:a,categoriesList:l}=e,i=Object(Ry.getSettings)().formats.date,o=l,n=t.categories,r=[];if(void 0!==o&&void 0!==n)for(let e=0;e{const{post:t,attributes:a}=e,l=a.newTab?"_blank":"_self";if(a.displayPostImage&&void 0!==t.uagb_featured_image_src&&a.imgSize&&t.uagb_featured_image_src[a.imgSize]||!0===a.displayPostImage&&"background"===a.imgPosition){const e=t.uagb_featured_image_src[a.imgSize];return React.createElement("div",{className:"uagb-post__image"},t.uagb_featured_image_src&&e&&e[0]&&React.createElement("a",{href:t.link,target:l,rel:"noopener noreferrer",className:Be()("post-grid"===a.blockName?"uagb-image-ratio-"+a.imageRatio:"")},React.createElement("img",{src:e[0],alt:Object(Zw.decodeEntities)(t.title.rendered.trim())||Object(r.__)("(Untitled)","ultimate-addons-for-gutenberg")})))}return null},aP=e=>{const{post:t,categoriesList:a,attributes:l}=e,{taxStyle:i,displayPostTaxonomy:o,displayPostTaxonomyAboveTitle:n,hideTaxonomyIcon:r,taxDivider:s}=l,c=a,u=t.categories,p=[];if(void 0!==c&&void 0!==u)for(let e=0;eu.map(t=>e.id===t&&React.createElement("span",{className:"uagb-post__taxonomy "+i},r&&"aboveTitle"===n&&React.createElement("span",{className:"dashicons-tag dashicons"}),e.name)))))},lP=e=>{const{post:t,attributes:a}=e;if(null===t.uagb_excerpt)return null;const l=t.uagb_excerpt.split(" ");let i=t.uagb_excerpt;const o=us(a.excerptLength,"excerptLength",a.blockName);return o>=l.length?i=t.uagb_excerpt:(i=l.slice(0,o).join(" "),i+=" ..."),a.displayPostExcerpt&&"excerpt"===a.displayPostContentRadio?React.createElement("div",{className:"uagb-post__excerpt uagb-post__text"},React.createElement("div",{dangerouslySetInnerHTML:{__html:i}})):a.displayPostExcerpt&&"full_post"===a.displayPostContentRadio?React.createElement("div",{className:"uagb-post__excerpt uagb-full_post uagb-post__text"},React.createElement("div",{dangerouslySetInnerHTML:{__html:t.content.raw.trim()}})):null},iP=e=>{const{attributes:t,post:a,setAttributes:l}=e,i=t.newTab?"_blank":"_self",o=t.inheritFromThemeBtn&&"secondary"===t.buttonType,n=o?{borderWidth:"revert-layer"}:{},s="uagb-text-link "+(o?"ast-outline-button":"wp-block-button__link");return t.displayPostLink?React.createElement("div",{className:"uagb-post__text"},React.createElement("div",{className:Be()("uagb-post__cta","wp-block-button")},React.createElement(ge.RichText,{value:t.ctaText?t.ctaText:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),onChange:e=>l({ctaText:e}),className:Be()(s),href:a.link,target:i,style:n,rel:"noopener noreferrer"}))):null};function oP(){return(oP=Object.assign||function(e){for(var t=1;t{let{parentName:t="",parentClassName:a="",children:l}=e;const i={parentName:t,parentClassName:a};return React.createElement(nP.Provider,{value:i},l)},sP=[["uagb/post-image"],["uagb/post-taxonomy"],["uagb/post-title"],["uagb/post-meta"],["uagb/post-excerpt"],["uagb/post-button"]],cP=(e,t,a,l,i,o,n,r)=>{if(!a)return;const s=gP(e);let c=[];const u=function(a,u){let[p,d={}]=a,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(1===b&&"uagb/post-image"===p)return;if(0===b&&"uagb/post-image"!==p)return;d.children&&d.children.length>0&&(c=cP(e,t,d.children,l,i,o,n,r));const g=s[p];return g?React.createElement(B.Suspense,{key:u,fallback:React.createElement("div",{className:"wc-block-placeholder"})},React.createElement(g,oP({},d,{post:t,attributes:l,categoriesList:i,setAttributes:o}))):null},p=React.createElement(React.Fragment,null,a.map((e,t)=>{let[a,l={}]=e;return u([a,l],t,0)}),React.createElement("div",{className:"uag-post-grid-wrapper"},a.map((e,t)=>{let[a,l={}]=e;return u([a,l],t,1)}))),d=a.map((e,t)=>{let[a,l={}]=e;return u([a,l],t,null)});return r?p:d},uP={};function pP(e){e.context||(e.context="any"),bP(e,"context","string"),bP(e,"blockName","string"),dP(e,"component");const{context:t,blockName:a,component:l}=e;uP[t]||(uP[t]={}),uP[t][a]=l}const dP=(e,t)=>{if(e[t]){if("function"==typeof e[t])return;if(e[t].$$typeof&&e[t].$$typeof===Symbol.for("react.lazy"))return}throw new Error(`Incorrect value for the ${t} argument when registering a block component. Component must be a valid React Element or Lazy callback.`)},bP=(e,t,a)=>{const l=typeof e[t];if(l!==a)throw new Error(`Incorrect value for the ${t} argument when registering a block component. It was a ${l}, but must be a ${a}.`)};pP({blockName:"uagb/post-title",component:Qw}),pP({blockName:"uagb/post-image",component:tP}),pP({blockName:"uagb/post-taxonomy",component:aP}),pP({blockName:"uagb/post-meta",component:eP}),pP({blockName:"uagb/post-excerpt",component:lP}),pP({blockName:"uagb/post-button",component:iP});const gP=e=>{return{..."object"==typeof uP[t=e]&&Object.keys(uP[t]).length>0?uP[t]:{},...uP.any};var t},mP=e=>e&&0!==e.length?e.map(e=>[e.name,{...e.attributes,post:void 0,children:e.innerBlocks.length>0?mP(e.innerBlocks):[]}]):[];function yP(){return(yP=Object.assign||function(e){for(var t=1;t{setTimeout(()=>{if(null!=a&&a.current){var e,t;const l=null==a||null===(e=a.current)||void 0===e?void 0:e.offsetWidth,i=100-R/l*100,o=null==a||null===(t=a.current)||void 0===t?void 0:t.closest(".uagb-post__image-position-background");if(o){const e=null==o?void 0:o.getElementsByClassName("uagb-post__image");for(const t of e)t&&(t.style.width=i+"%",t.style.marginLeft=R/2+"px")}}},100)};Object(B.useEffect)(()=>{F()},[]),Object(B.useEffect)(()=>{F()},[e]),Object(B.useEffect)(()=>{F()},[a]),Object(B.useEffect)(()=>{F()},[d]);const j=o.length>x?o.slice(0,x):o;function z(){return React.createElement("button",{type:"button","data-role":"none",className:"slick-next slick-arrow","aria-label":"Next",tabIndex:"0",style:{borderColor:C,borderRadius:T,borderWidth:L}},se.carousel_right)}function D(){return React.createElement("button",{type:"button","data-role":"none",className:"slick-prev slick-arrow","aria-label":"Previous",tabIndex:"0",style:{borderColor:C,borderRadius:T,borderWidth:L}},se.carousel_left)}const N="dots"===S||"arrows_dots"===S,I="arrows"===S||"arrows_dots"===S,V=k?"uagb-post__carousel_equal-height":"";let W;switch(s){case"Tablet":W=G;break;case"Mobile":W=M;break;default:W=A}const q={slidesToShow:W,slidesToScroll:1,autoplaySpeed:U,autoplay:g,infinite:h,pauseOnHover:m,speed:E,arrows:I,dots:N,rtl:!1,afterChange:()=>{k&&uagb_carousel_height(n)},nextArrow:React.createElement(z,{arrowSize:O}),prevArrow:React.createElement(D,{arrowSize:O})},Z=j.map((t,l)=>React.createElement("article",{ref:a,key:l,className:"uagb-post__inner-wrap"},cP("uagb/post-carousel",t,w,e.attributes,e.categoriesList,r)));return A>=j.length?React.createElement("div",{className:Be()("is-carousel","uagb-post__columns-"+A,"uagb-post__columns-tablet-"+G,"uagb-post__columns-mobile-"+M,"uagb-post__items",i,"uagb-post-grid","uagb-post__arrow-outside","uagb-post__image-position-"+d,""+V,H,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+n),"data-blog-id":n},React.createElement(rP,{parentName:"uagb/post-carousel",parentClassName:"uagb-block-grid"},Z)):React.createElement(vS.a,yP({className:Be()("is-carousel","uagb-post__columns-"+A,"uagb-post__items",i,"uagb-post-grid","uagb-post__arrow-outside","uagb-slick-carousel","uagb-post__image-position-"+d,""+V,H,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+n),"data-blog-id":n,style:"dots"===S?{padding:"0 0 35px 0"}:{}},q),Z)})),vP=a(132),_P=0,TP={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},CP={};CP.locals=vP.a.locals||{},CP.use=function(){return _P++||(fP=we()(vP.a,TP)),CP},CP.unuse=function(){_P>0&&!--_P&&(fP(),fP=null)};var SP=CP,kP=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(SP.use(),()=>{SP.unuse()}),[]);const{state:t,setState:a,togglePreview:l,categoriesList:i,latestPosts:o,replaceInnerBlocks:n,block:s,clientId:c,attributes:u,deviceType:p,name:d,setAttributes:b,className:g}=e,m=React.createElement(hP,{attributes:u,className:g,latestPosts:o,block_id:u.block_id,categoriesList:i,deviceType:p,name:d,setAttributes:b});return React.createElement(React.Fragment,null,t.isEditing?(()=>{const e={template:u.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(gP("uagb/post-grid"))};return 0!==u.layoutConfig.length&&(e.renderAppender=!1),React.createElement(Le.Placeholder,{label:"Post Carousel Layout"},React.createElement("div",{className:"uagb-post-grid uagb-block-all-post-grid-item-template"},React.createElement(Le.Tip,null,Object(r.__)("Edit the blocks inside the preview below to change the content displayed for each post within the post carousel.","ultimate-addons-for-gutenberg")),React.createElement(rP,{parentName:"uagb/post-grid",parentClassName:"uagb-block-grid"},React.createElement("article",{className:"uagb-post__inner-wrap uagb-post__edit-mode"},React.createElement("div",{className:"uagb-post__text"},React.createElement(ge.InnerBlocks,e)))),React.createElement("div",{className:"uagb-block-all-post__actions"},React.createElement(Le.Button,{className:"uagb-block-all-post__done-button",isPrimary:!0,onClick:()=>{b({layoutConfig:mP(s)}),a({innerBlocks:s}),l()}},Object(r.__)("Done","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__cancel-button",isTertiary:!0,onClick:()=>{const{innerBlocks:e}=t;n(c,e),l()}},Object(r.__)("Cancel","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__reset-button",onClick:()=>{const e=[];sP.map(t=>{let[a,l]=t;return e.push(Object(de.createBlock)(a,l)),!0}),n(c,e),a({innerBlocks:s})}},Object(r.__)("Reset Layout","ultimate-addons-for-gutenberg")))))})():m)});function wP(){return(wP=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a,attributes:{align:l,displayPostTitle:i,displayPostDate:o,displayPostComment:s,displayPostExcerpt:c,displayPostAuthor:u,displayPostImage:p,displayPostTaxonomy:d,imgSize:b,imgPosition:g,displayPostLink:m,newTab:y,ctaText:f,columns:h,tcolumns:v,mcolumns:_,rowGap:T,rowGapTablet:C,rowGapMobile:S,bgType:w,bgColor:P,titleColor:x,titleTag:A,titleFontSize:G,titleFontSizeType:M,titleFontSizeMobile:R,titleFontSizeTablet:U,titleFontFamily:E,titleFontWeight:O,titleFontStyle:L,titleLineHeightType:H,titleLineHeight:F,titleLineHeightTablet:j,titleLineHeightMobile:z,titleLoadGoogleFonts:D,metaFontSize:N,metaFontSizeType:I,metaFontSizeMobile:V,metaFontSizeTablet:W,metaFontFamily:q,metaFontWeight:Z,metaFontStyle:$,metaLineHeightType:Y,metaLineHeight:K,metaLineHeightTablet:J,metaLineHeightMobile:X,metaLoadGoogleFonts:Q,excerptFontSize:ee,excerptFontSizeType:te,excerptFontSizeTablet:ae,excerptFontSizeMobile:le,excerptFontFamily:ie,excerptFontWeight:oe,excerptFontStyle:ne,excerptLineHeightType:re,excerptLineHeight:se,excerptLineHeightTablet:ce,excerptLineHeightMobile:ue,excerptLoadGoogleFonts:pe,ctaFontSize:de,ctaFontSizeType:be,ctaFontSizeTablet:ye,ctaFontSizeMobile:fe,ctaFontFamily:ve,ctaFontWeight:_e,ctaFontStyle:Te,ctaLineHeightType:Se,ctaLineHeight:ke,ctaLineHeightTablet:we,ctaLineHeightMobile:Pe,ctaLoadGoogleFonts:xe,metaColor:Ae,excerptColor:Ge,ctaColor:Me,ctaBgType:Re,ctaBgHType:Be,ctaBgColor:Ue,ctaHColor:Oe,ctaBgHColor:He,imageBottomSpace:Fe,imageBottomSpaceTablet:ze,imageBottomSpaceMobile:De,titleBottomSpace:Ne,titleBottomSpaceTablet:Ie,titleBottomSpaceMobile:Ve,metaBottomSpace:We,metaBottomSpaceTablet:qe,metaBottomSpaceMobile:Ze,excerptBottomSpace:$e,excerptBottomSpaceTablet:Ye,excerptBottomSpaceMobile:Ke,ctaBottomSpace:Je,ctaBottomSpaceTablet:Xe,ctaBottomSpaceMobile:Qe,autoplay:et,autoplaySpeed:tt,pauseOnHover:at,infiniteLoop:lt,transitionSpeed:it,arrowDots:ot,arrowSize:nt,arrowColor:rt,arrowBorderSize:st,arrowBorderRadius:ct,arrowDistance:ut,arrowDistanceTablet:pt,arrowDistanceMobile:dt,excerptLength:bt,overlayOpacity:gt,bgOverlayColor:mt,linkBox:yt,postDisplaytext:ft,displayPostContentRadio:ht,titleTransform:vt,metaTransform:_t,excerptTransform:Tt,ctaTransform:Ct,titleDecoration:St,metaDecoration:kt,excerptDecoration:wt,ctaDecoration:Pt,paddingBtnTopTablet:xt,paddingBtnRightTablet:At,paddingBtnBottomTablet:Gt,paddingBtnLeftTablet:Mt,paddingBtnTopMobile:Rt,paddingBtnRightMobile:Bt,paddingBtnBottomMobile:Ut,paddingBtnLeftMobile:Et,paddingBtnUnit:Ot,mobilePaddingBtnUnit:Lt,tabletPaddingBtnUnit:Ht,spacingLink:Ft,spacingLinkPadding:jt,contentPaddingUnit:zt,mobilePaddingUnit:Dt,tabletPaddingUnit:Nt,imageBottomSpaceUnit:It,titleBottomSpaceUnit:Vt,metaBottomSpaceUnit:Wt,ctaBottomSpaceUnit:qt,excerptBottomSpaceUnit:Zt,rowGapUnit:$t,taxStyle:Yt,taxDivider:Kt,displayPostTaxonomyAboveTitle:Jt,hideTaxonomyIcon:Xt,highlightedTextColor:Qt,highlightedTextBgColor:ea,titleLetterSpacing:ta,titleLetterSpacingTablet:aa,titleLetterSpacingMobile:la,titleLetterSpacingType:ia,metaLetterSpacing:oa,metaLetterSpacingTablet:na,metaLetterSpacingMobile:ra,metaLetterSpacingType:sa,excerptLetterSpacing:ca,excerptLetterSpacingTablet:ua,excerptLetterSpacingMobile:pa,excerptLetterSpacingType:da,ctaLetterSpacing:ba,ctaLetterSpacingTablet:ga,ctaLetterSpacingMobile:ma,ctaLetterSpacingType:ya,enableOffset:fa,dotsMarginTop:ha,dotsMarginTopTablet:va,dotsMarginTopMobile:_a,dotsMarginTopUnit:Ta,btnVPadding:Ca,btnHPadding:Sa,paddingBtnTop:ka,paddingBtnBottom:wa,paddingBtnRight:Pa,paddingBtnLeft:xa,contentPadding:Aa,contentPaddingMobile:Ga,contentPaddingTablet:Ma,paddingTop:Ra,paddingBottom:Ba,paddingLeft:Ua,paddingRight:Ea,paddingTopTablet:Oa,paddingRightTablet:La,paddingBottomTablet:Ha,paddingLeftTablet:Fa,paddingTopMobile:ja,paddingRightMobile:za,paddingBottomMobile:Da,paddingLeftMobile:Ia,columnGap:Va,columnGapTablet:Wa,columnGapMobile:qa,borderStyle:Za,borderWidth:$a,borderRadius:Ya,borderColor:Ka,borderHColor:Ja,btnBorderTopWidth:Xa,btnBorderLeftWidth:el,btnBorderRightWidth:al,btnBorderBottomWidth:ll,btnBorderTopLeftRadius:sl,btnBorderTopRightRadius:cl,btnBorderBottomLeftRadius:ul,btnBorderBottomRightRadius:pl,btnBorderColor:dl,btnBorderHColor:bl,btnBorderStyle:gl,blockName:ml,categories:yl,postsToShow:fl,postsOffset:vl,order:_l,orderBy:Tl,postType:Cl,taxonomyType:Sl,excludeCurrentPost:kl,allTaxonomyStore:wl,UAGHideDesktop:xl,UAGHideTab:Al,UAGHideMob:Gl,equalHeight:Ml,block_id:Rl,inheritFromThemeBtn:Bl,buttonType:Ul},setAttributes:El,deviceType:Ol,clientId:Ll}=e,[Hl,Fl]=Object(B.useState)({isEditing:!1,innerBlocks:[]}),[jl,zl]=Object(B.useState)(!1);Object(B.useEffect)(()=>{const{block:t}=e;Fl({innerBlocks:t}),Ca&&(void 0===ka&&El({paddingBtnTop:Ca}),void 0===wa&&El({paddingBtnBottom:Ca})),Sa&&(void 0===Pa&&El({paddingBtnRight:Sa}),void 0===xa&&El({paddingBtnLeft:Sa})),Aa&&(void 0===Ra&&El({paddingTop:Aa}),void 0===Ba&&El({paddingBottom:Aa}),void 0===Ea&&El({paddingRight:Aa}),void 0===Ua&&El({paddingLeft:Aa})),Ma&&(void 0===Oa&&El({paddingTopTablet:Ma}),void 0===Ha&&El({paddingBottomTablet:Ma}),void 0===La&&El({paddingRightTablet:Ma}),void 0===Fa&&El({paddingLeftTablet:Ma})),Ga&&(void 0===ja&&El({paddingTopMobile:Ga}),void 0===Da&&El({paddingBottomMobile:Ga}),void 0===za&&El({paddingRightMobile:Ga}),void 0===Ia&&El({paddingLeftMobile:Ga})),$a&&(void 0===Xa&&El({btnBorderTopWidth:$a}),void 0===el&&El({btnBorderLeftWidth:$a}),void 0===al&&El({btnBorderRightWidth:$a}),void 0===ll&&El({btnBorderBottomWidth:$a})),Ya&&(void 0===sl&&El({btnBorderTopLeftRadius:Ya}),void 0===cl&&El({btnBorderTopRightRadius:Ya}),void 0===ul&&El({btnBorderBottomLeftRadius:Ya}),void 0===pl&&El({btnBorderBottomRightRadius:Ya})),Ka&&void 0===dl&&El({btnBorderColor:Ka}),Ja&&void 0===bl&&El({btnBorderHColor:Ja}),Za&&void 0===gl&&El({btnBorderStyle:Za}),Va&&20!==Va&&El({dotsMarginTop:Va}),Wa&&El({dotsMarginTopTablet:Wa}),qa&&El({dotsMarginTopMobile:qa})},[]),Object(B.useEffect)(()=>{Ml?uagb_carousel_height(Rl):uagb_carousel_unset_height(Rl)},[a,Ol]);const Dl=uagb_blocks_info.current_theme,Nl=uagb_blocks_info.is_astra_based_theme;let Il=Object(B.useMemo)(()=>qw(a,0,Ol),[a,Ol]);Il+=".uagb-block-"+Rl+".uagb-post-grid ul.slick-dots li.slick-active button:before, .uagb-block-"+Rl+".uagb-slick-carousel ul.slick-dots li button:before { color: "+a.arrowColor+"; }",Object(B.useEffect)(()=>{ys()},[Ol]),Object(B.useEffect)(()=>{he(e)},[xl,Al,Gl,Ol]);let Vl=[];const{latestPosts:Wl,taxonomyList:ql,block:Zl}=Object(n.useSelect)(e=>{const{getEntityRecords:t}=e("core");wl||jl||(zl(!0),k()({path:"/spectra/v1/all_taxonomy"}).then(e=>{El({allTaxonomyStore:e}),zl(!1)}));const a=wl?wl[Cl]:void 0;let l="";void 0!==a&&(void 0!==a.taxonomy[Sl]&&(l=!1===a.taxonomy[Sl].rest_base||null===a.taxonomy[Sl].rest_base?a.taxonomy[Sl].name:a.taxonomy[Sl].rest_base),""!==Sl&&void 0!==a.terms&&void 0!==a.terms[Sl]&&(Vl=a.terms[Sl]));const i={order:_l,orderby:Tl,per_page:us(fl,"postsToShow",ml),offset:us(vl,"postsOffset",ml)};if(kl){const t=e("core/editor");i.exclude=null!=t&&t.getCurrentPostId?t.getCurrentPostId():null}const o=[],n=parseInt(yl);o.push(n);const r=Vl.length;for(let e=0;e{o.push(e)});const{getBlocks:s}=e("core/block-editor");return void 0!==yl&&""!==yl&&(i[l]=void 0===yl||""===yl?yl:o),{latestPosts:t("postType",Cl,i),categoriesList:Vl,taxonomyList:void 0!==a?a.taxonomy:[],block:s(Ll)}}),{replaceInnerBlocks:$l}=Object(n.useDispatch)("core/block-editor"),Yl=us(h,"columns",ml),Kl=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],Jl=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],Xl=[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}];ql&&Object.keys(ql).map(e=>Kl.push({value:ql[e].name,label:Object(Zw.decodeEntities)(ql[e].label)})),Vl&&Object.keys(Vl).map(e=>Jl.push({value:Vl[e].id,label:Object(Zw.decodeEntities)(Vl[e].name)}));const Ql=()=>{Fl({isEditing:!Hl.isEditing}),Hl.isEditing||Object(r.__)("Showing All Post Grid Layout.","ultimate-addons-for-gutenberg")},ei=Array.isArray(Wl)&&Wl.length,ti=React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:El,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:l,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:Cl},onChange:e=>{El({postType:e}),El({categories:""}),El({taxonomyType:"category"})},options:uagb_blocks_info.post_types}),""!==ql&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:Sl},onChange:e=>{El({taxonomyType:e}),El({categories:""})},options:Kl}),""!=Vl&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:ql[Sl].label,data:{value:yl,label:"categories"},setAttributes:El,options:Jl})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Exclude Current Post","ultimate-addons-for-gutenberg"),checked:kl,onChange:()=>El({excludeCurrentPost:!kl})}),React.createElement(Ks,{label:Object(r.__)("Posts Per Page","ultimate-addons-for-gutenberg"),setAttributes:El,value:fl,data:{value:fl,label:"postsToShow"},min:1,max:100,displayUnit:!1,showControlHeader:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Offset Starting Post","ultimate-addons-for-gutenberg"),checked:fa,onChange:e=>{El({enableOffset:e})},help:React.createElement(React.Fragment,null,!fa&&Object(r.__)("Note: The offset will skip the number of posts set, and will use the next post as the starting post.","ultimate-addons-for-gutenberg"))}),fa&&React.createElement(Ks,{label:Object(r.__)("Offset By","ultimate-addons-for-gutenberg"),setAttributes:El,value:vl,data:{value:vl,label:"postsOffset"},min:0,max:100,displayUnit:!1,help:React.createElement(React.Fragment,null,fa&&Object(r.__)("Note: The offset will skip the number of posts set, and will use the next post as the starting post.","ultimate-addons-for-gutenberg"))}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Order By","ultimate-addons-for-gutenberg"),data:{value:Tl,label:"orderBy"},options:[{value:"date",label:Object(r.__)("Date","ultimate-addons-for-gutenberg")},{value:"title",label:Object(r.__)("Title","ultimate-addons-for-gutenberg")},{value:"rand",label:Object(r.__)("Random","ultimate-addons-for-gutenberg")},{value:"menu_order",label:Object(r.__)("Menu Order","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Order","ultimate-addons-for-gutenberg"),data:{value:_l,label:"order"},options:[{value:"desc",label:Object(r.__)("Descending","ultimate-addons-for-gutenberg")},{value:"asc",label:Object(r.__)("Ascending","ultimate-addons-for-gutenberg")}]}),React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"columns"},tablet:{value:v,label:"tcolumns"},mobile:{value:_,label:"mcolumns"}},min:1,max:8,displayUnit:!1,setAttributes:El}),Yl>1&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:Ml,onChange:()=>El({equalHeight:!Ml}),help:Object(r.__)("Note: Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),React.createElement("h2",null,Object(r.__)("If Posts Not Found","ultimate-addons-for-gutenberg")),React.createElement(Ss,{autoComplete:"off",label:Object(r.__)("Display Message","ultimate-addons-for-gutenberg"),value:ft,data:{value:ft,label:"postDisplaytext"},setAttributes:El,onChange:e=>El({postDisplaytext:e})})),React.createElement(je,{title:Object(r.__)("Carousel","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Pause On Hover","ultimate-addons-for-gutenberg"),checked:at,onChange:()=>El({pauseOnHover:!at})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:et,onChange:()=>El({autoplay:!et})}),!0===et&&React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),value:tt,data:{value:tt,label:"autoplaySpeed"},setAttributes:El,displayUnit:!1,min:100,max:5e3}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Loop","ultimate-addons-for-gutenberg"),checked:lt,onChange:()=>El({infiniteLoop:!lt})}),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:El,displayUnit:!1,value:it,data:{value:it,label:"transitionSpeed"},min:100,max:5e3}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Arrows & Dots Type","ultimate-addons-for-gutenberg"),data:{value:ot,label:"arrowDots"},options:[{value:"arrows",label:Object(r.__)("Arrows","ultimate-addons-for-gutenberg")},{value:"dots",label:Object(r.__)("Dots","ultimate-addons-for-gutenberg")},{value:"arrows_dots",label:Object(r.__)("Both","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Featured Image","ultimate-addons-for-gutenberg"),checked:p,onChange:()=>El({displayPostImage:!p})}),!0===p&&React.createElement(Pi,{label:Object(r.__)("Sizes","ultimate-addons-for-gutenberg"),data:{value:b,label:"imgSize"},setAttributes:El,options:uagb_blocks_info.image_sizes}),!0===p&&React.createElement(Na,{setAttributes:El,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:g,label:"imgPosition"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"background",label:Object(r.__)("Background","ultimate-addons-for-gutenberg")}]}),!0===p&&"background"===g&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Link Complete Box","ultimate-addons-for-gutenberg"),checked:yt,onChange:()=>El({linkBox:!yt})})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Title","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>El({displayPostTitle:!i})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Author","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>El({displayPostAuthor:!u})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Date","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>El({displayPostDate:!o})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Comment","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>El({displayPostComment:!s})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Taxonomy","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>El({displayPostTaxonomy:!d})}),d&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:El,label:Object(r.__)("Taxonomy Position","ultimate-addons-for-gutenberg"),data:{value:Jt,label:"displayPostTaxonomyAboveTitle"},options:[{value:"withMeta",label:Object(r.__)("With Meta","ultimate-addons-for-gutenberg")},{value:"aboveTitle",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")}]}),"aboveTitle"===Jt&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:El,label:Object(r.__)("Taxonomy Style","ultimate-addons-for-gutenberg"),data:{value:Yt,label:"taxStyle"},options:[{value:"default",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"highlighted",label:Object(r.__)("Highlighted","ultimate-addons-for-gutenberg")}]}),"default"===Yt&&React.createElement(Ss,{label:Object(r.__)("Taxonomy Divider","ultimate-addons-for-gutenberg"),value:Kt,data:{value:Kt,label:"taxDivider"},setAttributes:El,onChange:e=>El({taxDivider:e})}))),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Meta Icon","ultimate-addons-for-gutenberg"),checked:Xt,onChange:()=>El({hideTaxonomyIcon:!Xt})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Excerpt","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>El({displayPostExcerpt:!c})}),c&&React.createElement(Na,{setAttributes:El,label:Object(r.__)("Show:","ultimate-addons-for-gutenberg"),data:{value:ht,label:"displayPostContentRadio"},options:[{label:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg"),value:"excerpt"},{label:Object(r.__)("Full post","ultimate-addons-for-gutenberg"),value:"full_post"}]}),c&&"excerpt"===ht&&React.createElement(Qa,{label:Object(r.__)("Max number of words in excerpt","ultimate-addons-for-gutenberg"),setAttributes:El,value:bt,data:{value:bt,label:"excerptLength"},min:1,max:100,displayUnit:!1})),React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Read More Link","ultimate-addons-for-gutenberg"),checked:m,onChange:()=>El({displayPostLink:!m})}),m&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Bl,onChange:()=>El({inheritFromThemeBtn:!Bl}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Bl&&("Astra"===Dl||Nl)&&React.createElement(Na,{setAttributes:El,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ul,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open Links in New Tab","ultimate-addons-for-gutenberg"),checked:y,onChange:()=>El({newTab:!y})}),React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:f,data:{value:f,label:"ctaText"},setAttributes:El,onChange:e=>El({ctaText:e})}),!Bl&&React.createElement(Hr,{setAttributes:El,presets:Kw,presetInputType:"radioImage"}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:El,presets:Yw,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:El,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),value:w,data:{value:w,label:"bgType"},className:"uagb-multi-button-alignment-control",options:Xl}),"color"===w&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:P,data:{value:P,label:"bgColor"},setAttributes:El}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:T,label:"rowGap"},tablet:{value:C,label:"rowGapTablet"},mobile:{value:S,label:"rowGapMobile"}},min:0,max:50,unit:{value:$t,label:"rowGapUnit"},setAttributes:El}),React.createElement(Pl,wP({},e,{label:Object(r.__)("Content Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ra,label:"paddingTop"},valueRight:{value:Ea,label:"paddingRight"},valueBottom:{value:Ba,label:"paddingBottom"},valueLeft:{value:Ua,label:"paddingLeft"},valueTopTablet:{value:Oa,label:"paddingTopTablet"},valueRightTablet:{value:La,label:"paddingRightTablet"},valueBottomTablet:{value:Ha,label:"paddingBottomTablet"},valueLeftTablet:{value:Fa,label:"paddingLeftTablet"},valueTopMobile:{value:ja,label:"paddingTopMobile"},valueRightMobile:{value:za,label:"paddingRightMobile"},valueBottomMobile:{value:Da,label:"paddingBottomMobile"},valueLeftMobile:{value:Ia,label:"paddingLeftMobile"},unit:{value:zt,label:"contentPaddingUnit"},mUnit:{value:Dt,label:"mobilePaddingUnit"},tUnit:{value:Nt,label:"tabletPaddingUnit"},deviceType:Ol,attributes:a,setAttributes:El,link:{value:jt,label:"spacingLinkPadding"}}))),i&&React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:El,label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:A,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x,data:{value:x,label:"titleColor"},setAttributes:El}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:D,label:"titleLoadGoogleFonts"},fontFamily:{value:E,label:"titleFontFamily"},fontWeight:{value:O,label:"titleFontWeight"},fontStyle:{value:L,label:"titleFontStyle"},fontSizeType:{value:M,label:"titleFontSizeType"},fontSize:{value:G,label:"titleFontSize"},fontSizeMobile:{value:R,label:"titleFontSizeMobile"},fontSizeTablet:{value:U,label:"titleFontSizeTablet"},lineHeightType:{value:H,label:"titleLineHeightType"},lineHeight:{value:F,label:"titleLineHeight"},lineHeightMobile:{value:z,label:"titleLineHeightMobile"},lineHeightTablet:{value:j,label:"titleLineHeightTablet"},letterSpacing:{value:ta,label:"titleLetterSpacing"},letterSpacingTablet:{value:aa,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:la,label:"titleLetterSpacingMobile"},letterSpacingType:{value:ia,label:"titleLetterSpacingType"},transform:{value:vt,label:"titleTransform"},decoration:{value:St,label:"titleDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ne,label:"titleBottomSpace"},tablet:{value:Ie,label:"titleBottomSpaceTablet"},mobile:{value:Ve,label:"titleBottomSpaceMobile"}},min:0,max:50,unit:{value:Vt,label:"titleBottomSpaceUnit"},setAttributes:El})),(u||o||s||d)&&React.createElement(je,{title:Object(r.__)("Meta","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ae,data:{value:Ae,label:"metaColor"},setAttributes:El}),"aboveTitle"===Jt&&"highlighted"===Yt&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Taxonomy Text Color","ultimate-addons-for-gutenberg"),colorValue:Qt,data:{value:Qt,label:"highlightedTextColor"},setAttributes:El}),React.createElement(hl,{label:Object(r.__)("Highlighted Color","ultimate-addons-for-gutenberg"),colorValue:ea,data:{value:ea,label:"highlightedTextBgColor"},setAttributes:El})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:Q,label:"metaLoadGoogleFonts"},fontFamily:{value:q,label:"metaFontFamily"},fontWeight:{value:Z,label:"metaFontWeight"},fontStyle:{value:$,label:"metaFontStyle"},fontSizeType:{value:I,label:"metaFontSizeType"},fontSize:{value:N,label:"metaFontSize"},fontSizeMobile:{value:V,label:"metaFontSizeMobile"},fontSizeTablet:{value:W,label:"metaFontSizeTablet"},lineHeightType:{value:Y,label:"metaLineHeightType"},lineHeight:{value:K,label:"metaLineHeight"},lineHeightMobile:{value:X,label:"metaLineHeightMobile"},lineHeightTablet:{value:J,label:"metaLineHeightTablet"},letterSpacing:{value:oa,label:"metaLetterSpacing"},letterSpacingTablet:{value:na,label:"metaLetterSpacingTablet"},letterSpacingMobile:{value:ra,label:"metaLetterSpacingMobile"},letterSpacingType:{value:sa,label:"metaLetterSpacingType"},transform:{value:_t,label:"metaTransform"},decoration:{value:kt,label:"metaDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:We,label:"metaBottomSpace"},tablet:{value:qe,label:"metaBottomSpaceTablet"},mobile:{value:Ze,label:"metaBottomSpaceMobile"}},min:0,max:50,unit:{value:Wt,label:"metaBottomSpaceUnit"},setAttributes:El})),c&&React.createElement(je,{title:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ge,data:{value:Ge,label:"excerptColor"},setAttributes:El}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:pe,label:"excerptLoadGoogleFonts"},fontFamily:{value:ie,label:"excerptFontFamily"},fontWeight:{value:oe,label:"excerptFontWeight"},fontStyle:{value:ne,label:"excerptFontStyle"},fontSizeType:{value:te,label:"excerptFontSizeType"},fontSize:{value:ee,label:"excerptFontSize"},fontSizeMobile:{value:le,label:"excerptFontSizeMobile"},fontSizeTablet:{value:ae,label:"excerptFontSizeTablet"},lineHeightType:{value:re,label:"excerptLineHeightType"},lineHeight:{value:se,label:"excerptLineHeight"},lineHeightMobile:{value:ue,label:"excerptLineHeightMobile"},lineHeightTablet:{value:ce,label:"excerptLineHeightTablet"},letterSpacing:{value:ca,label:"excerptLetterSpacing"},letterSpacingTablet:{value:ua,label:"excerptLetterSpacingTablet"},letterSpacingMobile:{value:pa,label:"excerptLetterSpacingMobile"},letterSpacingType:{value:da,label:"excerptLetterSpacingType"},transform:{value:Tt,label:"excerptTransform"},decoration:{value:wt,label:"excerptDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:$e,label:"excerptBottomSpace"},tablet:{value:Ye,label:"excerptBottomSpaceTablet"},mobile:{value:Ke,label:"excerptBottomSpaceMobile"}},min:0,max:50,unit:{value:Zt,label:"excerptBottomSpaceUnit"},setAttributes:El})),m&&React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},!Bl&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Me,data:{value:Me,label:"ctaColor"},setAttributes:El}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Re,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:Xl}),"color"===Re&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Ue,data:{value:Ue,label:"ctaBgColor"},setAttributes:El})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Oe,data:{value:Oe,label:"ctaHColor"},setAttributes:El}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Be,label:"ctaBgHType"},className:"uagb-multi-button-alignment-control",options:Xl}),"color"===Be&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:He,data:{value:He,label:"ctaBgHColor"},setAttributes:El})),disableBottomSeparator:!1}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:xe,label:"ctaLoadGoogleFonts"},fontFamily:{value:ve,label:"ctaFontFamily"},fontWeight:{value:_e,label:"ctaFontWeight"},fontStyle:{value:Te,label:"ctaFontStyle"},fontSizeType:{value:be,label:"ctaFontSizeType"},fontSize:{value:de,label:"ctaFontSize"},fontSizeMobile:{value:fe,label:"ctaFontSizeMobile"},fontSizeTablet:{value:ye,label:"ctaFontSizeTablet"},lineHeightType:{value:Se,label:"ctaLineHeightType"},lineHeight:{value:ke,label:"ctaLineHeight"},lineHeightMobile:{value:Pe,label:"ctaLineHeightMobile"},lineHeightTablet:{value:we,label:"ctaLineHeightTablet"},letterSpacing:{value:ba,label:"ctaLetterSpacing"},letterSpacingTablet:{value:ga,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:ma,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:ya,label:"ctaLetterSpacingType"},transform:{value:Ct,label:"ctaTransform"},decoration:{value:Pt,label:"ctaDecoration"}}),React.createElement(Hi,{setAttributes:El,prefix:"btn",attributes:a,deviceType:Ol,disabledBorderTitle:!1}),React.createElement(Pl,wP({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ka,label:"paddingBtnTop"},valueRight:{value:Pa,label:"paddingBtnRight"},valueBottom:{value:wa,label:"paddingBtnBottom"},valueLeft:{value:xa,label:"paddingBtnLeft"},valueTopTablet:{value:xt,label:"paddingBtnTopTablet"},valueRightTablet:{value:At,label:"paddingBtnRightTablet"},valueBottomTablet:{value:Gt,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:Mt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:Rt,label:"paddingBtnTopMobile"},valueRightMobile:{value:Bt,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Ut,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:Et,label:"paddingBtnLeftMobile"},unit:{value:Ot,label:"paddingBtnUnit"},mUnit:{value:Lt,label:"mobilePaddingBtnUnit"},tUnit:{value:Ht,label:"tabletPaddingBtnUnit"},deviceType:Ol,attributes:a,setAttributes:El,link:{value:Ft,label:"spacingLink"}}))),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Je,label:"ctaBottomSpace"},tablet:{value:Xe,label:"ctaBottomSpaceTablet"},mobile:{value:Qe,label:"ctaBottomSpaceMobile"}},min:0,max:300,unit:{value:qt,label:"ctaBottomSpaceUnit"},setAttributes:El})),p&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},"background"===g&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Overlay Color","ultimate-addons-for-gutenberg"),colorValue:mt,data:{value:mt,label:"bgOverlayColor"},setAttributes:El}),React.createElement(Qa,{label:Object(r.__)("Overlay Opacity","ultimate-addons-for-gutenberg"),setAttributes:El,value:gt,data:{value:gt,label:"overlayOpacity"},min:0,max:100,displayUnit:!1})),"top"===g&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Fe,label:"imageBottomSpace"},tablet:{value:ze,label:"imageBottomSpaceTablet"},mobile:{value:De,label:"imageBottomSpaceMobile"}},min:0,max:50,unit:{value:It,label:"imageBottomSpaceUnit"},setAttributes:El})),React.createElement(je,{title:Object(r.__)("Arrow and Dots","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:rt,data:{value:rt,label:"arrowColor"},setAttributes:El}),"dots"!==ot&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),value:nt,data:{value:nt,label:"arrowSize"},min:0,max:50,setAttributes:El,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Border Size","ultimate-addons-for-gutenberg"),value:st,data:{value:st,label:"arrowBorderSize"},min:0,max:50,setAttributes:El,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),setAttributes:El,displayUnit:!1,value:ct,data:{value:ct,label:"arrowBorderRadius"},min:0,max:50}),React.createElement(tl,{label:Object(r.__)("Arrow Distance from Edges","ultimate-addons-for-gutenberg"),data:{desktop:{value:ut,label:"arrowDistance"},tablet:{value:pt,label:"arrowDistanceTablet"},mobile:{value:dt,label:"arrowDistanceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:El}),React.createElement(tl,{label:Object(r.__)("Top Margin for Dots","ultimate-addons-for-gutenberg"),data:{desktop:{value:ha,label:"dotsMarginTop"},tablet:{value:va,label:"dotsMarginTopTablet"},mobile:{value:_a,label:"dotsMarginTopMobile"}},min:1,max:50,unit:{value:Ta,label:"dotsMarginTopUnit"},setAttributes:El})))),React.createElement(il,wP({},rl,{parentProps:e}))));return ei?React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:Il}),React.createElement(Jw,{attributes:a}),t&&React.createElement(Xw,wP({state:Hl,togglePreview:Ql,inspectorControls:ti},e)),React.createElement(kP,wP({},e,{state:Hl,setState:Fl,togglePreview:Ql,latestPosts:Wl,categoriesList:Vl,replaceInnerBlocks:$l,block:Zl}))):React.createElement(React.Fragment,null,ti,React.createElement(Le.Placeholder,{icon:"admin-post",label:Object(r.__)("Post Carousel","ultimate-addons-for-gutenberg")},Array.isArray(Wl)?ft:React.createElement(Le.Spinner,null)))});a(74);let xP={};xP=Object(F.applyFilters)("uagb/post-carousel",ss(xP)),Object(de.registerBlockType)("uagb/post-carousel",{...xP,title:Object(r.__)("Post Carousel","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your posts in a sliding carousel layout.","ultimate-addons-for-gutenberg"),icon:se.post_carousel,category:uagb_blocks_info.category,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("carousel","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"post-carousel"}):React.createElement(PP,e),save:()=>null});const AP=[{defaultAttributes:Qe},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '}],GP=[{defaultAttributes:Qe},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:15},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '}],MP=[{defaultAttributes:Qe},{defaultPresetAttributes:[{label:"ctaBgHColor"},{label:"ctaColor"},{label:"ctaHColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];function RP(){return(RP=Object.assign||function(e){for(var t=1;t{const{categoriesList:t,latestPosts:a,taxonomyList:l}=e,{attributes:i,setAttributes:o,deviceType:n}=e,{block_id:s,displayPostTitle:c,displayPostDate:u,displayPostComment:p,displayPostExcerpt:d,displayPostAuthor:b,displayPostImage:g,displayPostTaxonomy:m,imgSize:y,imgPosition:f,displayPostLink:h,newTab:v,ctaText:_,align:T,columns:C,tcolumns:S,mcolumns:k,order:w,orderBy:P,categories:x,postsToShow:A,rowGap:G,rowGapTablet:M,rowGapMobile:R,columnGap:B,columnGapTablet:U,columnGapMobile:E,bgColor:O,contentPaddingUnit:L,titleColor:H,titleTag:F,titleFontSize:j,titleFontSizeType:z,titleFontSizeMobile:D,titleFontSizeTablet:N,titleFontFamily:I,titleFontWeight:V,titleFontStyle:W,titleLineHeightType:q,titleLineHeight:Z,titleLineHeightTablet:$,titleLineHeightMobile:Y,titleLoadGoogleFonts:K,metaFontSize:J,metaFontSizeType:X,metaFontSizeMobile:Q,metaFontSizeTablet:ee,metaFontFamily:te,metaFontWeight:ae,metaFontStyle:le,metaLineHeightType:ie,metaLineHeight:oe,metaLineHeightTablet:ne,metaLineHeightMobile:re,metaLoadGoogleFonts:se,excerptFontSize:ce,excerptFontSizeType:ue,excerptFontSizeTablet:pe,excerptFontSizeMobile:de,excerptFontFamily:be,excerptFontWeight:me,excerptFontStyle:ye,excerptLineHeightType:fe,excerptLineHeight:he,excerptLineHeightTablet:ve,excerptLineHeightMobile:_e,excerptLoadGoogleFonts:Te,ctaFontSize:Se,ctaFontSizeType:ke,ctaFontSizeTablet:we,ctaFontSizeMobile:Pe,ctaFontFamily:xe,ctaFontWeight:Ae,ctaFontStyle:Ge,ctaLineHeightType:Me,ctaLineHeight:Re,ctaLineHeightTablet:Be,ctaLineHeightMobile:Ue,ctaLoadGoogleFonts:Oe,metaColor:He,excerptColor:Fe,ctaColor:ze,ctaBgType:De,ctaBgHType:Ne,ctaBgColor:Ie,ctaHColor:Ve,ctaBgHColor:We,imageBottomSpace:qe,imageBottomSpaceTablet:Ze,imageBottomSpaceMobile:$e,titleBottomSpace:Ye,titleBottomSpaceTablet:Ke,titleBottomSpaceMobile:Je,metaBottomSpace:Xe,metaBottomSpaceTablet:Qe,metaBottomSpaceMobile:et,excerptBottomSpace:tt,excerptBottomSpaceTablet:at,excerptBottomSpaceMobile:lt,excerptBottomSpaceUnit:it,ctaBottomSpace:ot,ctaBottomSpaceTablet:nt,ctaBottomSpaceMobile:rt,equalHeight:st,excerptLength:ct,overlayOpacity:ut,bgOverlayColor:pt,linkBox:dt,postType:bt,taxonomyType:gt,postPagination:mt,pageLimit:yt,paginationColor:ft,paginationBgColor:ht,paginationActiveColor:vt,paginationBgActiveColor:_t,paginationLayout:Tt,paginationBorderSize:Ct,paginationBorderRadius:St,paginationBorderColor:kt,paginationBorderActiveColor:wt,paginationSpacing:Pt,paginationSpacingUnit:xt,paginationAlignment:At,paginationPrevText:Gt,paginationNextText:Mt,postDisplaytext:Rt,displayPostContentRadio:Bt,excludeCurrentPost:Ut,rowGapUnit:Et,columnGapUnit:Ot,imageBottomSpaceUnit:Lt,titleBottomSpaceUnit:Ht,metaBottomSpaceUnit:Ft,ctaBottomSpaceUnit:jt,titleTransform:zt,metaTransform:Dt,excerptTransform:Nt,ctaTransform:It,titleDecoration:Vt,metaDecoration:Wt,excerptDecoration:qt,ctaDecoration:Zt,paddingBtnTop:$t,paddingBtnBottom:Yt,paddingBtnLeft:Kt,paddingBtnRight:Jt,paddingBtnTopTablet:Xt,paddingBtnRightTablet:Qt,paddingBtnBottomTablet:ea,paddingBtnLeftTablet:ta,paddingBtnTopMobile:aa,paddingBtnRightMobile:la,paddingBtnBottomMobile:ia,paddingBtnLeftMobile:oa,paddingBtnUnit:na,mobilePaddingBtnUnit:ra,tabletPaddingBtnUnit:sa,spacingLink:ca,spacingLinkPadding:ua,paddingTop:pa,paddingBottom:da,paddingLeft:ba,paddingRight:ga,paddingTopTablet:ma,paddingRightTablet:ya,paddingBottomTablet:fa,paddingLeftTablet:ha,paddingTopMobile:va,paddingRightMobile:_a,paddingBottomMobile:Ta,paddingLeftMobile:Ca,mobilePaddingUnit:Sa,tabletPaddingUnit:ka,postsOffset:wa,taxStyle:Pa,taxDivider:xa,displayPostTaxonomyAboveTitle:Aa,hideTaxonomyIcon:Ga,highlightedTextColor:Ma,highlightedTextBgColor:Ra,titleLetterSpacing:Ba,titleLetterSpacingTablet:Ua,titleLetterSpacingMobile:Ea,titleLetterSpacingType:Oa,metaLetterSpacing:La,metaLetterSpacingTablet:Ha,metaLetterSpacingMobile:Fa,metaLetterSpacingType:ja,excerptLetterSpacing:za,excerptLetterSpacingTablet:Da,excerptLetterSpacingMobile:Ia,excerptLetterSpacingType:Va,ctaLetterSpacing:Wa,ctaLetterSpacingTablet:qa,ctaLetterSpacingMobile:Za,ctaLetterSpacingType:$a,useSeparateBoxShadows:Ya,boxShadowColor:Ka,boxShadowHOffset:Ja,boxShadowVOffset:Xa,boxShadowBlur:el,boxShadowSpread:al,boxShadowPosition:ll,boxShadowColorHover:sl,boxShadowHOffsetHover:cl,boxShadowVOffsetHover:ul,boxShadowBlurHover:pl,boxShadowSpreadHover:dl,boxShadowPositionHover:bl,enableOffset:gl,equalHeightInlineButtons:ml,imageRatio:yl,imgEqualHeight:fl,paginationType:_l,inheritFromThemeBtn:Tl,buttonType:Cl,wrapperTopPadding:Sl,wrapperRightPadding:kl,wrapperLeftPadding:wl,wrapperBottomPadding:xl,wrapperTopPaddingTablet:Al,wrapperRightPaddingTablet:Gl,wrapperLeftPaddingTablet:Ml,wrapperBottomPaddingTablet:Rl,wrapperTopPaddingMobile:Bl,wrapperRightPaddingMobile:Ul,wrapperLeftPaddingMobile:El,wrapperBottomPaddingMobile:Ol,wrapperPaddingUnit:Ll,wrapperPaddingUnitTablet:Hl,wrapperPaddingUnitMobile:Fl,wrapperPaddingLink:jl,wrapperAlign:zl,wrapperAlignPosition:Dl,isLeftToRightLayout:Nl}=i,Il=uagb_blocks_info.current_theme,Vl=uagb_blocks_info.is_astra_based_theme,Wl=e=>{o({imgEqualHeight:e}),o(e?{imageRatio:"2-3"}:{imageRatio:"inherit"})},ql=e=>{o({postType:e}),o({categories:""}),o({taxonomyType:"category"})},Zl=e=>{o({taxonomyType:e}),o({categories:""})},$l=e=>{o({postPagination:e}),o({paginationMarkup:"empty"})},Yl=e=>{o({enableOffset:e}),o({postPagination:!e})},Kl=e=>{o({postsToShow:e}),o({paginationMarkup:"empty"})},Jl=e=>{o({postsOffset:e}),o({paginationMarkup:"empty"})},Xl=e=>{o({pageLimit:e}),o({paginationMarkup:"empty"})},Ql=e=>{o({paginationPrevText:e}),o({paginationMarkup:"empty"})},ei=e=>{o({paginationNextText:e}),o({paginationMarkup:"empty"})},ti=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],ai=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],li=[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}];l&&Object.keys(l).map(e=>ti.push({value:l[e].name,label:Object(Zw.decodeEntities)(l[e].label)})),t&&Object.keys(t).map(e=>ai.push({value:t[e].id,label:Object(Zw.decodeEntities)(t[e].name)}));const ii=()=>React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:o,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:T,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:bt},onChange:ql,options:uagb_blocks_info.post_types}),""!==l&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:gt},onChange:Zl,options:ti}),""!=t&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:l[gt].label,data:{value:x,label:"categories"},setAttributes:o,options:ai})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Exclude Current Post","ultimate-addons-for-gutenberg"),checked:Ut,onChange:()=>o({excludeCurrentPost:!Ut})}),React.createElement(Ks,{label:Object(r.__)("Posts Per Page","ultimate-addons-for-gutenberg"),setAttributes:o,value:A,data:{value:A,label:"postsToShow"},onChange:Kl,min:1,max:50,displayUnit:!1,showControlHeader:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Offset Starting Post","ultimate-addons-for-gutenberg"),checked:gl,onChange:Yl,help:React.createElement(React.Fragment,null,!gl&&React.createElement(React.Fragment,null,Object(r.__)("Note: Enabling this will disable the Pagination. Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. ","ultimate-addons-for-gutenberg"),React.createElement(Le.ExternalLink,{href:"https://developer.wordpress.org/reference/classes/wp_query/#pagination-parameters:~:text=Warning%3A%20Setting%20the%20offset%20parameter%20overrides/ignores%20the%20paged%20parameter%20and%20breaks%20pagination.%20The%20%27offset%27%20parameter%20is%20ignored%20when%20%27posts_per_page%27%3D%3E%2D1%20(show%20all%20posts)%20is%20used."},Object(r.__)("Read more","ultimate-addons-for-gutenberg"))))}),gl&&React.createElement(Ks,{label:Object(r.__)("Offset By","ultimate-addons-for-gutenberg"),setAttributes:o,value:wa,data:{value:wa,label:"postsOffset"},onChange:Jl,min:0,max:50,displayUnit:!1,help:React.createElement(React.Fragment,null,gl&&Object(r.__)("Note: The offset will skip the number of posts set, and will use the next post as the starting post.","ultimate-addons-for-gutenberg"))}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Order By","ultimate-addons-for-gutenberg"),data:{value:P,label:"orderBy"},options:[{value:"date",label:Object(r.__)("Date","ultimate-addons-for-gutenberg")},{value:"title",label:Object(r.__)("Title","ultimate-addons-for-gutenberg")},{value:"rand",label:Object(r.__)("Random","ultimate-addons-for-gutenberg")},{value:"menu_order",label:Object(r.__)("Menu Order","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Order","ultimate-addons-for-gutenberg"),data:{value:w,label:"order"},options:[{value:"desc",label:Object(r.__)("Descending","ultimate-addons-for-gutenberg")},{value:"asc",label:Object(r.__)("Ascending","ultimate-addons-for-gutenberg")}]}),!Nl&&React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:C,label:"columns"},tablet:{value:S,label:"tcolumns"},mobile:{value:k,label:"mcolumns"}},min:0,max:8,displayUnit:!1,setAttributes:o}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:st,onChange:()=>o({equalHeight:!st})}),!gl&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Post Pagination","ultimate-addons-for-gutenberg"),checked:mt,onChange:$l}),!0===mt&&React.createElement(Qa,{label:Object(r.__)("Page Limit","ultimate-addons-for-gutenberg"),setAttributes:o,value:yt,data:{value:yt,label:"pageLimit"},onChange:Xl,min:0,max:100,displayUnit:!1}),React.createElement("h2",null,Object(r.__)("If Posts Not Found","ultimate-addons-for-gutenberg")),React.createElement(Ss,{autoComplete:"off",label:Object(r.__)("Display Message","ultimate-addons-for-gutenberg"),value:Rt,data:{value:Rt,label:"postDisplaytext"},setAttributes:o,onChange:e=>o({postDisplaytext:e})})),(()=>{if(!0===mt)return React.createElement(je,{title:Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:o,label:Object(r.__)("Pagination Type","ultimate-addons-for-gutenberg"),data:{value:_l,label:"paginationType"},options:[{value:"ajax",label:Object(r.__)("Ajax","ultimate-addons-for-gutenberg")},{value:"normal",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Pagination Alignment","ultimate-addons-for-gutenberg"),data:{value:At,label:"paginationAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Pagination Layout","ultimate-addons-for-gutenberg"),data:{value:Tt,label:"paginationLayout"},className:"uagb-multi-button-alignment-control",options:[{value:"border",label:"Border"},{value:"filled",label:"Filled"}],showIcons:!1}),React.createElement(Ss,{label:Object(r.__)("Previous Text","ultimate-addons-for-gutenberg"),value:Gt,data:{value:Gt,label:"paginationPrevText"},setAttributes:o,onChange:Ql}),React.createElement(Ss,{label:Object(r.__)("Next Text","ultimate-addons-for-gutenberg"),value:Mt,data:{value:Mt,label:"paginationNextText"},setAttributes:o,onChange:ei}))})(),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Featured Image","ultimate-addons-for-gutenberg"),checked:g,onChange:()=>o({displayPostImage:!g})}),!0===g&&"background"!==f&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:fl,onChange:Wl}),!fl&&React.createElement(Pi,{label:Object(r.__)("Image Ratio","ultimate-addons-for-gutenberg"),options:[{label:Object(r.__)("Inherit","ultimate-addons-for-gutenberg"),value:"inherit"},{label:Object(r.__)("1:1","ultimate-addons-for-gutenberg"),value:"1-1"},{label:Object(r.__)("3:2","ultimate-addons-for-gutenberg"),value:"2-3"},{label:Object(r.__)("16:9","ultimate-addons-for-gutenberg"),value:"9-16"},{label:Object(r.__)("2:1","ultimate-addons-for-gutenberg"),value:"1-2"}],data:{value:yl,label:"imageRatio"},setAttributes:o})),!0===g&&React.createElement(Pi,{label:Object(r.__)("Sizes","ultimate-addons-for-gutenberg"),data:{value:y,label:"imgSize"},setAttributes:o,options:uagb_blocks_info.image_sizes}),!0===g&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:f,label:"imgPosition"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"background",label:Object(r.__)("Background","ultimate-addons-for-gutenberg")}]}),!0===g&&"background"===f&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Link Complete Box","ultimate-addons-for-gutenberg"),checked:dt,onChange:()=>o({linkBox:!dt})}),g&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Left Right Position","ultimate-addons-for-gutenberg"),checked:Nl,onChange:()=>o({isLeftToRightLayout:!Nl})}),Nl&&"Mobile"!==n&&"background"!==f&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Image Alignment","ultimate-addons-for-gutenberg"),data:{value:zl,label:"wrapperAlign"},options:[{value:"row",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"row-reverse",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Content Position","ultimate-addons-for-gutenberg"),data:{value:Dl,label:"wrapperAlignPosition"},options:[{value:"flex-start",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"flex-end",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}]}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Title","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>o({displayPostTitle:!c})}),c&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:F,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Author","ultimate-addons-for-gutenberg"),checked:b,onChange:()=>o({displayPostAuthor:!b})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Date","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>o({displayPostDate:!u})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Comment","ultimate-addons-for-gutenberg"),checked:p,onChange:()=>o({displayPostComment:!p})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Taxonomy","ultimate-addons-for-gutenberg"),checked:m,onChange:()=>o({displayPostTaxonomy:!m})}),m&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Taxonomy Position","ultimate-addons-for-gutenberg"),data:{value:Aa,label:"displayPostTaxonomyAboveTitle"},options:[{value:"withMeta",label:Object(r.__)("With Meta","ultimate-addons-for-gutenberg")},{value:"aboveTitle",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")}]}),"aboveTitle"===Aa&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Taxonomy Style","ultimate-addons-for-gutenberg"),data:{value:Pa,label:"taxStyle"},options:[{value:"default",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"highlighted",label:Object(r.__)("Highlighted","ultimate-addons-for-gutenberg")}]}),"default"===Pa&&React.createElement(Ss,{label:Object(r.__)("Taxonomy Divider","ultimate-addons-for-gutenberg"),value:xa,data:{value:xa,label:"taxDivider"},setAttributes:o,onChange:e=>o({taxDivider:e})}))),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Meta Icon","ultimate-addons-for-gutenberg"),checked:Ga,onChange:()=>o({hideTaxonomyIcon:!Ga})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Excerpt","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>o({displayPostExcerpt:!d})}),d&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("Show:","ultimate-addons-for-gutenberg"),data:{value:Bt,label:"displayPostContentRadio"},options:[{value:"excerpt",label:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg")},{value:"full_post",label:Object(r.__)("Full post","ultimate-addons-for-gutenberg")}]}),d&&"excerpt"===Bt&&React.createElement(Qa,{label:Object(r.__)("Max number of words in excerpt","ultimate-addons-for-gutenberg"),setAttributes:o,value:ct,data:{value:ct,label:"excerptLength"},min:1,max:100,displayUnit:!1})),React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Read More Link","ultimate-addons-for-gutenberg"),checked:h,onChange:()=>o({displayPostLink:!h})}),h&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Tl,onChange:()=>o({inheritFromThemeBtn:!Tl}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Tl&&("Astra"===Il||Vl)&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Cl,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),!Nl&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Buttons on Equal Height","ultimate-addons-for-gutenberg"),checked:ml,onChange:()=>o({equalHeightInlineButtons:!ml})})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open Links in New Tab","ultimate-addons-for-gutenberg"),checked:v,onChange:()=>o({newTab:!v})}),React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:_,data:{value:_,label:"ctaText"},setAttributes:o,onChange:e=>o({ctaText:e})}),!Tl&&React.createElement(Hr,{setAttributes:o,presets:MP,presetInputType:"radioImage"})))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:O,data:{value:O,label:"bgColor"},setAttributes:o}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:B,label:"columnGap"},tablet:{value:U,label:"columnGapTablet"},mobile:{value:E,label:"columnGapMobile"}},min:0,max:50,unit:{value:Ot,label:"columnGapUnit"},setAttributes:o}),React.createElement(tl,{label:Object(r.__)("Row Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:G,label:"rowGap"},tablet:{value:M,label:"rowGapTablet"},mobile:{value:R,label:"rowGapMobile"}},min:0,max:50,unit:{value:Et,label:"rowGapUnit"},setAttributes:o}),React.createElement(Pl,RP({},e,{label:Object(r.__)("Content Padding","ultimate-addons-for-gutenberg"),valueTop:{value:pa,label:"paddingTop"},valueRight:{value:ga,label:"paddingRight"},valueBottom:{value:da,label:"paddingBottom"},valueLeft:{value:ba,label:"paddingLeft"},valueTopTablet:{value:ma,label:"paddingTopTablet"},valueRightTablet:{value:ya,label:"paddingRightTablet"},valueBottomTablet:{value:fa,label:"paddingBottomTablet"},valueLeftTablet:{value:ha,label:"paddingLeftTablet"},valueTopMobile:{value:va,label:"paddingTopMobile"},valueRightMobile:{value:_a,label:"paddingRightMobile"},valueBottomMobile:{value:Ta,label:"paddingBottomMobile"},valueLeftMobile:{value:Ca,label:"paddingLeftMobile"},unit:{value:L,label:"contentPaddingUnit"},mUnit:{value:Sa,label:"mobilePaddingUnit"},tUnit:{value:ka,label:"tabletPaddingUnit"},deviceType:n,attributes:i,setAttributes:o,link:{value:ua,label:"spacingLinkPadding"}})),Nl&&React.createElement(React.Fragment,null,React.createElement(Pl,{label:Object(r.__)("Wrapper Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Sl,label:"wrapperTopPadding"},valueRight:{value:kl,label:"wrapperRightPadding"},valueBottom:{value:xl,label:"wrapperBottomPadding"},valueLeft:{value:wl,label:"wrapperLeftPadding"},valueTopTablet:{value:Al,label:"wrapperTopPaddingTablet"},valueRightTablet:{value:Gl,label:"wrapperRightPaddingTablet"},valueBottomTablet:{value:Rl,label:"wrapperBottomPaddingTablet"},valueLeftTablet:{value:Ml,label:"wrapperLeftPaddingTablet"},valueTopMobile:{value:Bl,label:"wrapperTopPaddingMobile"},valueRightMobile:{value:Ul,label:"wrapperRightPaddingMobile"},valueBottomMobile:{value:Ol,label:"wrapperBottomPaddingMobile"},valueLeftMobile:{value:El,label:"wrapperLeftPaddingMobile"},unit:{value:Ll,label:"wrapperPaddingUnit"},mUnit:{value:Fl,label:"wrapperPaddingUnitMobile"},tUnit:{value:Hl,label:"wrapperPaddingUnitTablet"},deviceType:n,attributes:i,setAttributes:o,link:{value:jl,label:"wrapperPaddingLink"},help:Object(r.__)("Note: This padding setting applies to the inner content wrapper in Left Right Layout.","ultimate-addons-for-gutenberg")}))),c&&React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:H,data:{value:H,label:"titleColor"},setAttributes:o}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:K,label:"titleLoadGoogleFonts"},fontFamily:{value:I,label:"titleFontFamily"},fontWeight:{value:V,label:"titleFontWeight"},fontStyle:{value:W,label:"titleFontStyle"},fontSizeType:{value:z,label:"titleFontSizeType"},fontSize:{value:j,label:"titleFontSize"},fontSizeMobile:{value:D,label:"titleFontSizeMobile"},fontSizeTablet:{value:N,label:"titleFontSizeTablet"},lineHeightType:{value:q,label:"titleLineHeightType"},lineHeight:{value:Z,label:"titleLineHeight"},lineHeightMobile:{value:Y,label:"titleLineHeightMobile"},lineHeightTablet:{value:$,label:"titleLineHeightTablet"},letterSpacing:{value:Ba,label:"titleLetterSpacing"},letterSpacingTablet:{value:Ua,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Ea,label:"titleLetterSpacingMobile"},letterSpacingType:{value:Oa,label:"titleLetterSpacingType"},transform:{value:zt,label:"titleTransform"},decoration:{value:Vt,label:"titleDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ye,label:"titleBottomSpace"},tablet:{value:Ke,label:"titleBottomSpaceTablet"},mobile:{value:Je,label:"titleBottomSpaceMobile"}},min:0,max:50,unit:{value:Ht,label:"titleBottomSpaceUnit"},setAttributes:o})),(b||u||p||m)&&React.createElement(je,{title:Object(r.__)("Meta","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Meta Color","ultimate-addons-for-gutenberg"),colorValue:He,data:{value:He,label:"metaColor"},setAttributes:o}),"aboveTitle"===Aa&&"highlighted"===Pa&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Taxonomy Text Color","ultimate-addons-for-gutenberg"),colorValue:Ma,data:{value:Ma,label:"highlightedTextColor"},setAttributes:o}),React.createElement(hl,{label:Object(r.__)("Highlighted Color","ultimate-addons-for-gutenberg"),colorValue:Ra,data:{value:Ra,label:"highlightedTextBgColor"},setAttributes:o})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:se,label:"metaLoadGoogleFonts"},fontFamily:{value:te,label:"metaFontFamily"},fontWeight:{value:ae,label:"metaFontWeight"},fontStyle:{value:le,label:"metaFontStyle"},fontSizeType:{value:X,label:"metaFontSizeType"},fontSize:{value:J,label:"metaFontSize"},fontSizeMobile:{value:Q,label:"metaFontSizeMobile"},fontSizeTablet:{value:ee,label:"metaFontSizeTablet"},lineHeightType:{value:ie,label:"metaLineHeightType"},lineHeight:{value:oe,label:"metaLineHeight"},lineHeightMobile:{value:re,label:"metaLineHeightMobile"},lineHeightTablet:{value:ne,label:"metaLineHeightTablet"},letterSpacing:{value:La,label:"metaLetterSpacing"},letterSpacingTablet:{value:Ha,label:"metaLetterSpacingTablet"},letterSpacingMobile:{value:Fa,label:"metaLetterSpacingMobile"},letterSpacingType:{value:ja,label:"metaLetterSpacingType"},transform:{value:Dt,label:"metaTransform"},decoration:{value:Wt,label:"metaDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Xe,label:"metaBottomSpace"},tablet:{value:Qe,label:"metaBottomSpaceTablet"},mobile:{value:et,label:"metaBottomSpaceMobile"}},min:0,max:50,unit:{value:Ft,label:"metaBottomSpaceUnit"},setAttributes:o})),d&&React.createElement(je,{title:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Fe,data:{value:Fe,label:"excerptColor"},setAttributes:o}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:Te,label:"excerptLoadGoogleFonts"},fontFamily:{value:be,label:"excerptFontFamily"},fontWeight:{value:me,label:"excerptFontWeight"},fontStyle:{value:ye,label:"excerptFontStyle"},fontSizeType:{value:ue,label:"excerptFontSizeType"},fontSize:{value:ce,label:"excerptFontSize"},fontSizeMobile:{value:de,label:"excerptFontSizeMobile"},fontSizeTablet:{value:pe,label:"excerptFontSizeTablet"},lineHeightType:{value:fe,label:"excerptLineHeightType"},lineHeight:{value:he,label:"excerptLineHeight"},lineHeightMobile:{value:_e,label:"excerptLineHeightMobile"},lineHeightTablet:{value:ve,label:"excerptLineHeightTablet"},letterSpacing:{value:za,label:"excerptLetterSpacing"},letterSpacingTablet:{value:Da,label:"excerptLetterSpacingTablet"},letterSpacingMobile:{value:Ia,label:"excerptLetterSpacingMobile"},letterSpacingType:{value:Va,label:"excerptLetterSpacingType"},transform:{value:Nt,label:"excerptTransform"},decoration:{value:qt,label:"excerptDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:tt,label:"excerptBottomSpace"},tablet:{value:at,label:"excerptBottomSpaceTablet"},mobile:{value:lt,label:"excerptBottomSpaceMobile"}},min:0,max:50,unit:{value:it,label:"excerptBottomSpaceUnit"},setAttributes:o})),h&&React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},!Tl&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ze,data:{value:ze,label:"ctaColor"},setAttributes:o}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:De,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:li}),"color"===De&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Ie,data:{value:Ie,label:"ctaBgColor"},setAttributes:o})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ve,data:{value:Ve,label:"ctaHColor"},setAttributes:o}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Ne,label:"ctaBgHType"},className:"uagb-multi-button-alignment-control",options:li}),"color"===Ne&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:We,data:{value:We,label:"ctaBgHColor"},setAttributes:o}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:Oe,label:"ctaLoadGoogleFonts"},fontFamily:{value:xe,label:"ctaFontFamily"},fontWeight:{value:Ae,label:"ctaFontWeight"},fontStyle:{value:Ge,label:"ctaFontStyle"},fontSizeType:{value:ke,label:"ctaFontSizeType"},fontSize:{value:Se,label:"ctaFontSize"},fontSizeMobile:{value:Pe,label:"ctaFontSizeMobile"},fontSizeTablet:{value:we,label:"ctaFontSizeTablet"},lineHeightType:{value:Me,label:"ctaLineHeightType"},lineHeight:{value:Re,label:"ctaLineHeight"},lineHeightMobile:{value:Ue,label:"ctaLineHeightMobile"},lineHeightTablet:{value:Be,label:"ctaLineHeightTablet"},letterSpacing:{value:Wa,label:"ctaLetterSpacing"},letterSpacingTablet:{value:qa,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:Za,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:$a,label:"ctaLetterSpacingType"},transform:{value:It,label:"ctaTransform"},decoration:{value:Zt,label:"ctaDecoration"}}),React.createElement(Hi,{setAttributes:o,prefix:"btn",attributes:i,deviceType:n,disabledBorderTitle:!1}),React.createElement(Pl,RP({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:$t,label:"paddingBtnTop"},valueRight:{value:Jt,label:"paddingBtnRight"},valueBottom:{value:Yt,label:"paddingBtnBottom"},valueLeft:{value:Kt,label:"paddingBtnLeft"},valueTopTablet:{value:Xt,label:"paddingBtnTopTablet"},valueRightTablet:{value:Qt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:ea,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:ta,label:"paddingBtnLeftTablet"},valueTopMobile:{value:aa,label:"paddingBtnTopMobile"},valueRightMobile:{value:la,label:"paddingBtnRightMobile"},valueBottomMobile:{value:ia,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:oa,label:"paddingBtnLeftMobile"},unit:{value:na,label:"paddingBtnUnit"},mUnit:{value:ra,label:"mobilePaddingBtnUnit"},tUnit:{value:sa,label:"tabletPaddingBtnUnit"},deviceType:n,attributes:i,setAttributes:o,link:{value:ca,label:"spacingLink"}}))),!Nl&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:ot,label:"ctaBottomSpace"},tablet:{value:nt,label:"ctaBottomSpaceTablet"},mobile:{value:rt,label:"ctaBottomSpaceMobile"}},min:0,max:300,unit:{value:jt,label:"ctaBottomSpaceUnit"},setAttributes:o}))),mt&&React.createElement(je,{title:Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:ft,data:{value:ft,label:"paginationColor"},setAttributes:o}),"filled"===Tt&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ht,data:{value:ht,label:"paginationBgColor"},setAttributes:o}),"border"===Tt&&React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:kt,data:{value:kt,label:"paginationBorderColor"},setAttributes:o})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:vt,data:{value:vt,label:"paginationActiveColor"},setAttributes:o}),"filled"===Tt&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_t,data:{value:_t,label:"paginationBgActiveColor"},setAttributes:o}),"border"===Tt&&React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:wt,data:{value:wt,label:"paginationBorderActiveColor"},setAttributes:o})),disableBottomSeparator:!1}),"border"===Tt&&React.createElement(React.Fragment,null,React.createElement(Qa,{setAttributes:o,label:Object(r.__)("Border Size","ultimate-addons-for-gutenberg"),value:Ct,data:{value:Ct,label:"paginationBorderSize"},min:0,max:10,displayUnit:!1}),React.createElement(Qa,{setAttributes:o,label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),value:St,data:{value:St,label:"paginationBorderRadius"},displayUnit:!1,min:0,max:100})),React.createElement(Qa,{label:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),setAttributes:o,value:Pt,data:{value:Pt,label:"paginationSpacing"},help:Object(r.__)("This spacing is between the Post Grid and the Pagination","ultimate-addons-for-gutenberg"),min:0,max:300,unit:{value:xt,label:"paginationSpacingUnit"}})),!0===g&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},"background"===f&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Overlay Color","ultimate-addons-for-gutenberg"),colorValue:pt,data:{value:pt,label:"bgOverlayColor"},setAttributes:o}),React.createElement(Qa,{label:Object(r.__)("Overlay Opacity","ultimate-addons-for-gutenberg"),setAttributes:o,value:ut,data:{value:ut,label:"overlayOpacity"},min:0,max:100,displayUnit:!1})),"top"===f&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:qe,label:"imageBottomSpace"},tablet:{value:Ze,label:"imageBottomSpaceTablet"},mobile:{value:$e,label:"imageBottomSpaceMobile"}},min:0,max:50,unit:{value:Lt,label:"imageBottomSpaceUnit"},setAttributes:o})),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:o,prefix:"overall",attributes:i,deviceType:n,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:Ya,onChange:()=>o({useSeparateBoxShadows:!Ya})}),Ya?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:o,presets:AP,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:o,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ka,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ja,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Xa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:el,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:al,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ll,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:o,presets:GP,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:o,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:sl,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:cl,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:ul,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:pl,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:dl,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:bl,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:o,presets:AP,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:o,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ka,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ja,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Xa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:el,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:al,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ll,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),Nl),React.createElement(il,RP({},rl,{parentProps:e.parentProps}))));return Array.isArray(a)&&a.length?React.createElement(React.Fragment,null,(()=>{const{isEditing:t}=e.state;return React.createElement(ge.BlockControls,null,React.createElement(Le.ToolbarGroup,{controls:[{icon:"edit",title:Object(r.__)("Edit","ultimate-addons-for-gutenberg"),onClick:()=>e.togglePreview(),isActive:t}]}))})(),ii()):React.createElement(React.Fragment,null,ii())}),UP=Object(B.memo)(e=>{const t=e.name.replace("uagb/",""),a=Object(B.useRef)(),{attributes:l,className:i,latestPosts:o,block_id:n,setAttributes:r}=e,s=le(),{columns:c,tcolumns:u,mcolumns:p,imgPosition:d,postsToShow:b,equalHeight:g,paginationMarkup:m,postPagination:y,layoutConfig:f,equalHeightInlineButtons:h,isLeftToRightLayout:v}=l,_=us(b,"postsToShow",t),T=us(c,"columns",t),C=us(u,"tcolumns",t),S=us(p,"mcolumns",t),k=g?"uagb-post__equal-height":"",w=o.length>_?o.slice(0,_):o,P=!0===l.displayPostImage?"uagb-post__image-enabled":"uagb-post__image-disabled",x=h?"uagb-equal_height_inline-read-more-buttons-in-editor":"";return React.createElement("div",{className:Be()("is-grid","uagb-post__columns-"+T,"uagb-post__columns-tablet-"+C,"uagb-post__columns-mobile-"+S,"uagb-post__items",""+k,""+P,i,"uagb-post-grid","uagb-post__image-position-"+d,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+n,""+x)},React.createElement(rP,{parentName:"uagb/post-grid",parentClassName:"uagb-block-grid"},w.map((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return React.createElement("article",{ref:a,key:l,className:"uagb-post__inner-wrap"},cP("uagb/post-grid",t,f,e.attributes,e.categoriesList,r,a,v))}))),!0===y&&"empty"!==m&&React.createElement("div",{dangerouslySetInnerHTML:{__html:m},className:"uagb-post-pagination-wrap"}))}),EP=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(SP.use(),()=>{SP.unuse()}),[]);const{categoriesList:t,latestPosts:a,replaceInnerBlocks:l,block:i}=e,{isEditing:o}=e.state,{attributes:n,deviceType:s,name:c,setAttributes:u,clientId:p,className:d}=e;return o?React.createElement(React.Fragment,null,(()=>{const t={template:e.attributes.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(gP("uagb/post-grid"))};return 0!==e.attributes.layoutConfig.length&&(t.renderAppender=!1),React.createElement(Le.Placeholder,{label:"Post Grid Layout"},React.createElement("div",{className:"uagb-post-grid uagb-block-all-post-grid-item-template"},React.createElement(Le.Tip,null,Object(r.__)("Edit the blocks inside the preview below to change the content displayed for each post within the post grid.","ultimate-addons-for-gutenberg")),React.createElement(rP,{parentName:"uagb/post-grid",parentClassName:"uagb-block-grid"},React.createElement("article",{className:"uagb-post__inner-wrap uagb-post__edit-mode"},React.createElement("div",{className:"uagb-post__text"},React.createElement(ge.InnerBlocks,t)))),React.createElement("div",{className:"uagb-block-all-post__actions"},React.createElement(Le.Button,{className:"uagb-block-all-post__done-button",isPrimary:!0,onClick:()=>{u({layoutConfig:mP(i)}),e.setStateValue({innerBlocks:i}),e.togglePreview()}},Object(r.__)("Done","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__cancel-button",isTertiary:!0,onClick:()=>{const{innerBlocks:t}=e.state;l(p,t),e.togglePreview()}},Object(r.__)("Cancel","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__reset-button",onClick:()=>{const t=[];sP.map(e=>{let[a,l]=e;return t.push(Object(de.createBlock)(a,l)),!0}),l(p,t),e.setStateValue({innerBlocks:i})}},Object(r.__)("Reset Layout","ultimate-addons-for-gutenberg")))))})()):React.createElement(React.Fragment,null,React.createElement(UP,{attributes:n,className:d,latestPosts:a,block_id:n.block_id,categoriesList:t,deviceType:s,name:c,setAttributes:u}))});function OP(){return(OP=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a,attributes:{borderStyle:l,borderWidth:i,borderRadius:o,borderColor:s,borderHColor:c,btnBorderTopWidth:u,btnBorderLeftWidth:p,btnBorderRightWidth:d,btnBorderBottomWidth:b,btnBorderTopLeftRadius:g,btnBorderTopRightRadius:m,btnBorderBottomLeftRadius:y,btnBorderBottomRightRadius:f,btnBorderColor:h,btnBorderHColor:v,btnBorderStyle:_,blockName:T,categories:C,postsToShow:S,postsOffset:w,order:P,orderBy:x,postType:A,taxonomyType:G,excludeCurrentPost:M,allTaxonomyStore:R,postPagination:U,paginationMarkup:E,UAGHideDesktop:O,UAGHideTab:L,UAGHideMob:H,postDisplaytext:F,isLeftToRightLayout:j,wrapperAlign:z,align:D,displayPostImage:N,wrapperRightPadding:I,wrapperLeftPadding:V,ctaBottomSpace:W},setAttributes:q,clientId:Z,deviceType:$}=e,[Y,K]=Object(B.useState)({isEditing:!1,innerBlocks:[]}),[J,X]=Object(B.useState)(!1);Object(B.useEffect)(()=>{const{block:t}=e;K({innerBlocks:t}),i&&(void 0===u&&q({btnBorderTopWidth:i}),void 0===p&&q({btnBorderLeftWidth:i}),void 0===d&&q({btnBorderRightWidth:i}),void 0===b&&q({btnBorderBottomWidth:i})),o&&(void 0===g&&q({btnBorderTopLeftRadius:o}),void 0===m&&q({btnBorderTopRightRadius:o}),void 0===y&&q({btnBorderBottomLeftRadius:o}),void 0===f&&q({btnBorderBottomRightRadius:o})),s&&void 0===h&&q({btnBorderColor:s}),c&&void 0===v&&q({btnBorderHColor:c}),l&&void 0===_&&q({btnBorderStyle:l})},[]),Object(B.useEffect)(()=>{he(e)},[O,L,H,$]),Object(B.useEffect)(()=>{ys()},[$]),Object(B.useEffect)(()=>{if(!0===j){const e="row"===z?"left":"right";q({align:"center"!==D?e:D}),q({equalHeightInlineButtons:!1,ctaBottomSpace:0}),void 0===W&&q({ctaBottomSpace:0}),V||0===V||q({wrapperLeftPadding:20}),I||0===V||q({wrapperRightPadding:20}),N||q({isLeftToRightLayout:!1})}},[j,z,N]);const Q=Object(B.useMemo)(()=>qw(a,0,$),[a,$]),ee=()=>{K({isEditing:!Y.isEditing})};let te=[];const{latestPosts:ae,taxonomyList:le,block:ie}=Object(n.useSelect)(t=>{const{getEntityRecords:a}=t("core");R||J||(X(!0),k()({path:"/spectra/v1/all_taxonomy"}).then(e=>{q({allTaxonomyStore:e}),X(!1)}));const l=R?R[A]:void 0;if(!0===U&&"empty"===E){const t={nonce:uagb_blocks_info.uagb_ajax_nonce,attributes:JSON.stringify(e.attributes)};$l({url:uagb_blocks_info.ajax_url,action:"uagb_post_pagination",data:t}).then(e=>{q({paginationMarkup:e.data})})}let i="";void 0!==l&&(void 0!==l.taxonomy[G]&&(i=!1===l.taxonomy[G].rest_base||null===l.taxonomy[G].rest_base?l.taxonomy[G].name:l.taxonomy[G].rest_base),""!==G&&void 0!==l.terms&&void 0!==l.terms[G]&&(te=l.terms[G]));const o={order:P,orderby:x,per_page:us(S,"postsToShow",T),offset:us(w,"postsOffset",T)};if(M){const e=t("core/editor");o.exclude=null!=e&&e.getCurrentPostId?e.getCurrentPostId():null}const n=[],r=parseInt(C);n.push(r);const s=te.length;for(let e=0;e{n.push(e)});const{getBlocks:c}=t("core/block-editor");return void 0!==C&&""!==C&&(o[i]=void 0===C||""===C?C:n),{latestPosts:a("postType",A,o),categoriesList:te,taxonomyList:void 0!==l?l.taxonomy:[],block:c(Z)}}),{replaceInnerBlocks:oe}=Object(n.useDispatch)("core/block-editor");return Array.isArray(ae)&&ae.length?React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:Q}),React.createElement(Jw,{attributes:a}),t&&React.createElement(BP,OP({},e,{state:Y,setStateValue:K,togglePreview:ee,latestPosts:ae,taxonomyList:le,categoriesList:te})),React.createElement(EP,OP({},e,{state:Y,setStateValue:K,togglePreview:ee,latestPosts:ae,categoriesList:te,replaceInnerBlocks:oe,block:ie}))):React.createElement(React.Fragment,null,React.createElement(BP,OP({},e,{state:Y,setStateValue:K,latestPosts:ae,taxonomyList:le,categoriesList:te})),React.createElement(Le.Placeholder,{icon:"admin-post",label:Object(r.__)("Post Grid","ultimate-addons-for-gutenberg")},Array.isArray(ae)?F:React.createElement(Le.Spinner,null)))});let HP={};HP=Object(F.applyFilters)("uagb/post-grid",ss(HP)),Object(de.registerBlockType)("uagb/post-grid",{...HP,title:Object(r.__)("Post Grid","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your posts in a structured grid-based layout.","ultimate-addons-for-gutenberg"),icon:se.post_grid,category:uagb_blocks_info.category,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("grid","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"post-grid"}):React.createElement(LP,e),save:()=>null}),Object(de.registerBlockType)("uagb/post-title",{title:Object(r.__)("Post Title","ultimate-addons-for-gutenberg"),description:Object(r.__)("Customize your post title.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("title","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostTitle:Qw,save:function(){return React.createElement("h3",{className:"uagb-post__text uagb-post__title"},React.createElement("a",{href:"/",target:"_blank",rel:"noopener noreferrer",alt:""}," ",Object(r.__)("WordPress Post Title","ultimate-addons-for-gutenberg")))}}),Object(de.registerBlockType)("uagb/post-image",{title:Object(r.__)("Post Image","ultimate-addons-for-gutenberg"),description:Object(r.__)("Customize your post image.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("image","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostImage:tP,save:function(){return React.createElement("div",{className:"uagb-post__image"},React.createElement("img",{src:uagb_blocks_info.uagb_url+"/admin/assets/preview-images/post-grid.png",alt:""}))}}),Object(de.registerBlockType)("uagb/post-taxonomy",{title:Object(r.__)("Post Taxonomy","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show your post's under categories.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("tags","ultimate-addons-for-gutenberg"),Object(r.__)("taxonomy","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostTaxonomy:aP,save:function(){return React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-post__taxonomy uagb-post__text"},React.createElement("span",{className:"dashicons-tag dashicons"}),Object(r.__)("Category","ultimate-addons-for-gutenberg")))}}),Object(de.registerBlockType)("uagb/post-button",{title:Object(r.__)("Post Button","ultimate-addons-for-gutenberg"),description:Object(r.__)("Customize this post button.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("button","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostButton:iP,save:function(){return React.createElement("div",{className:"uagb-post__cta wp-block-button"},React.createElement("a",{className:"uagb-text-link wp-block-button__link"},"Read More"))}}),Object(de.registerBlockType)("uagb/post-excerpt",{title:Object(r.__)("Post Excerpt","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show your post's excerpt.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("excerpt","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostExcerpt:lP,save:function(){return React.createElement("div",{className:"uagb-post__excerpt uagb-full_post"},Object(r.__)("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.","ultimate-addons-for-gutenberg"))}}),Object(de.registerBlockType)("uagb/post-meta",{title:Object(r.__)("Post Meta","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show your post meta details.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("meta","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostMeta:eP,save:function(){return React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-post__author"},React.createElement("span",{className:"dashicons-admin-users dashicons"}),Object(r.__)("Author Name","ultimate-addons-for-gutenberg")),React.createElement("time",{className:"uagb-post__date"},React.createElement("span",{className:"dashicons-calendar dashicons"}),Object(r.__)("Post Date","ultimate-addons-for-gutenberg")),React.createElement("span",{className:"uagb-post__comment"},React.createElement("span",{className:"dashicons-admin-comments dashicons"}),Object(r.__)("Comments","ultimate-addons-for-gutenberg")),React.createElement("span",{className:"uagb-post__taxonomy"},React.createElement("span",{className:"dashicons-tag dashicons"}),Object(r.__)("Category","ultimate-addons-for-gutenberg")))}});var FP=Object(B.memo)(e=>{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,dateLoadGoogleFonts:s,dateFontFamily:c,dateFontWeight:u,authorLoadGoogleFonts:p,authorFontFamily:d,authorFontWeight:b,ctaLoadGoogleFonts:g,ctaFontFamily:m,ctaFontWeight:y}=t;let f,h,v,_,T;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};f=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};h=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};v=React.createElement(O,{config:e})}if(!0===p){const e={google:{families:[d+(b?":"+b:"")]}};_=React.createElement(O,{config:e})}if(!0===g){const e={google:{families:[m+(y?":"+y:"")]}};T=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,f,h,v,_,T)});function jP(){return(jP=Object.assign||function(e){for(var t=1;t{const{categoriesList:t,taxonomyList:a,attributes:l,setAttributes:i,deviceType:o}=e,{headingColor:n,subHeadingColor:s,backgroundColor:c,separatorColor:u,separatorFillColor:p,separatorBg:d,separatorBorder:b,borderFocus:g,headingTag:m,headFontSizeType:y,headFontSize:f,headFontSizeTablet:h,headFontSizeMobile:v,headFontFamily:_,headFontWeight:T,headFontStyle:C,headLineHeightType:S,headLineHeight:k,headLineHeightTablet:w,headLineHeightMobile:P,headLoadGoogleFonts:x,timelinAlignmentTablet:A,timelinAlignmentMobile:G,arrowlinAlignment:M,subHeadFontSizeType:R,subHeadFontSize:B,subHeadFontSizeTablet:U,subHeadFontSizeMobile:E,subHeadFontFamily:O,subHeadFontWeight:L,subHeadFontStyle:H,subHeadLineHeightType:F,subHeadLineHeight:j,subHeadLineHeightTablet:z,subHeadLineHeightMobile:D,subHeadLoadGoogleFonts:N,headSpace:I,headSpaceTablet:V,headSpaceMobile:W,separatorwidth:q,borderwidth:Z,connectorBgsize:$,authorSpace:Y,authorSpaceTablet:K,authorSpaceMobile:J,contentSpace:X,authorColor:Q,authorFontSizeType:ee,authorFontSize:te,authorFontSizeTablet:ae,authorFontSizeMobile:le,authorFontFamily:ie,authorFontWeight:oe,authorFontStyle:ne,authorLineHeightType:re,authorLineHeight:se,authorLineHeightTablet:ce,authorLineHeightMobile:ue,authorLoadGoogleFonts:pe,dateBottomspace:de,dateBottomspaceTablet:be,dateBottomspaceMobile:me,displayPostDate:ye,displayPostExcerpt:fe,displayPostAuthor:he,displayPostImage:ve,displayPostLink:_e,readMoreText:Te,align:Se,alignTablet:ke,alignMobile:we,order:Pe,orderBy:xe,categories:Ae,postsToShow:Ge,imageSize:Me,ctaBackground:Re,icon:Be,iconColor:Ue,dateColor:Oe,ctaColor:He,dateFontSizeType:Fe,dateFontSize:ze,dateFontSizeTablet:De,dateFontSizeMobile:Ne,dateFontFamily:Ie,dateFontWeight:Ve,dateFontStyle:We,dateLineHeightType:qe,dateLineHeight:Ze,dateLineHeightTablet:$e,dateLineHeightMobile:Ye,dateLoadGoogleFonts:Ke,ctaFontSizeType:Je,ctaFontSize:Xe,ctaFontSizeTablet:Qe,ctaFontSizeMobile:et,ctaFontFamily:tt,ctaFontWeight:at,ctaFontStyle:lt,ctaLineHeightType:it,ctaLineHeight:ot,ctaLineHeightTablet:nt,ctaLineHeightMobile:rt,ctaLoadGoogleFonts:st,iconSize:ct,exerptLength:ut,borderRadius:pt,borderRadiusTablet:dt,borderRadiusMobile:bt,iconFocus:gt,iconBgFocus:mt,linkTarget:yt,postType:ft,taxonomyType:ht,dateFormat:vt,excludeCurrentPost:_t,topPadding:Tt,rightPadding:Ct,bottomPadding:St,leftPadding:kt,topPaddingTablet:wt,rightPaddingTablet:Pt,bottomPaddingTablet:xt,leftPaddingTablet:At,topPaddingMobile:Gt,rightPaddingMobile:Mt,bottomPaddingMobile:Rt,leftPaddingMobile:Bt,paddingUnit:Ut,mobilePaddingUnit:Et,tabletPaddingUnit:Ot,paddingLink:Lt,headTransform:Ht,authorTransform:Ft,subHeadTransform:jt,dateTransform:zt,ctaTransform:Dt,headDecoration:Nt,authorDecoration:It,subHeadDecoration:Vt,dateDecoration:Wt,ctaDecoration:qt,ctaBottomSpacing:Zt,ctaBottomSpacingTablet:$t,ctaBottomSpacingMobile:Yt,headTopSpacing:Kt,headTopSpacingTablet:Jt,headTopSpacingMobile:Xt,headLetterSpacing:Qt,headLetterSpacingTablet:ea,headLetterSpacingMobile:ta,headLetterSpacingType:aa,subHeadLetterSpacing:la,subHeadLetterSpacingTablet:ia,subHeadLetterSpacingMobile:oa,subHeadLetterSpacingType:na,dateLetterSpacing:ra,dateLetterSpacingTablet:sa,dateLetterSpacingMobile:ca,dateLetterSpacingType:ua,ctaLetterSpacing:pa,ctaLetterSpacingTablet:da,ctaLetterSpacingMobile:ba,ctaLetterSpacingType:ga,authorLetterSpacing:ma,authorLetterSpacingTablet:ya,authorLetterSpacingMobile:fa,authorLetterSpacingType:ha,verticalSpace:va,verticalSpaceTablet:_a,verticalSpaceMobile:Ta,verticalSpaceUnit:Ca,verticalSpaceUnitTablet:Sa,verticalSpaceUnitMobile:ka,horizontalSpace:wa,horizontalSpaceTablet:Pa,horizontalSpaceMobile:xa,horizontalSpaceUnit:Aa,horizontalSpaceUnitTablet:Ga,horizontalSpaceUnitMobile:Ma,inheritFromTheme:Ra,buttonType:Ba}=l;let Ua=o;const Ea=uagb_blocks_info.current_theme,Oa=uagb_blocks_info.is_astra_based_theme;"Desktop"===o&&(Ua="");const La=void 0!==l["timelinAlignment"+Ua]?l["timelinAlignment"+Ua]:l.timelinAlignment,Ha=[],Fa=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}];a&&Object.keys(a).map(e=>Ha.push({value:a[e].name,label:Object(Zw.decodeEntities)(a[e].label)})),t&&Object.keys(t).map(e=>Fa.push({value:t[e].id,label:Object(Zw.decodeEntities)(t[e].name)}));const ja=new Date;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Query","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:ft},onChange:e=>{i({postType:e}),i({categories:""})},options:uagb_blocks_info.post_types}),""!==a&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:ht},onChange:e=>{i({taxonomyType:e}),i({categories:""})},options:Ha}),""!=t&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:a[ht].label,data:{value:Ae,label:"categories"},setAttributes:i,options:Fa})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Exclude Current Post","ultimate-addons-for-gutenberg"),checked:_t,onChange:()=>i({excludeCurrentPost:!_t})}),React.createElement(Le.QueryControls,{order:Pe,orderBy:xe,numberOfItems:Ge,onNumberOfItemsChange:e=>i({postsToShow:e})}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Order By","ultimate-addons-for-gutenberg"),data:{value:xe,label:"orderBy"},className:"uagb-multi-button-alignment-control",options:[{value:"date",label:Object(r.__)("Date","ultimate-addons-for-gutenberg")},{value:"title",label:Object(r.__)("Title","ultimate-addons-for-gutenberg")},{value:"rand",label:Object(r.__)("Random","ultimate-addons-for-gutenberg")},{value:"menu_order",label:Object(r.__)("Menu Order","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Order","ultimate-addons-for-gutenberg"),data:{value:Pe,label:"order"},className:"uagb-multi-button-alignment-control",options:[{value:"desc",label:Object(r.__)("Descending","ultimate-addons-for-gutenberg")},{value:"asc",label:Object(r.__)("Ascending","ultimate-addons-for-gutenberg")}],showIcons:!1})),React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:i,label:Object(r.__)("Orientation","ultimate-addons-for-gutenberg"),data:{desktop:{value:La,label:"timelinAlignment"},tablet:{value:A,label:"timelinAlignmentTablet"},mobile:{value:G,label:"timelinAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"align"},tablet:{value:ke,label:"alignTablet"},mobile:{value:we,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Arrow Alignment","ultimate-addons-for-gutenberg"),data:{value:M,label:"arrowlinAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}],showIcons:!1})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Featured Image","ultimate-addons-for-gutenberg"),checked:ve,onChange:()=>i({displayPostImage:!ve})}),ve&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:Me,label:"imageSize"},setAttributes:e.setAttributes,options:uagb_blocks_info.image_sizes})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:i,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:m,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Post Author","ultimate-addons-for-gutenberg"),checked:he,onChange:()=>i({displayPostAuthor:!he})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Post Date","ultimate-addons-for-gutenberg"),checked:ye,onChange:()=>i({displayPostDate:!ye})}),ye&&React.createElement(Pi,{label:Object(r.__)("Date Format","ultimate-addons-for-gutenberg"),data:{value:vt,label:"dateFormat"},setAttributes:i,options:[{value:"M j, Y",label:Object(Ry.dateI18n)("M j, Y",ja)},{value:"F j, Y",label:Object(Ry.dateI18n)("F j, Y",ja)},{value:"m/d/Y",label:Object(Ry.dateI18n)("m/d/Y",ja)},{value:"m-d-Y",label:Object(Ry.dateI18n)("m-d-Y",ja)},{value:"m.d.Y",label:Object(Ry.dateI18n)("m.d.Y",ja)},{value:"d M Y",label:Object(Ry.dateI18n)("d M Y",ja)},{value:"d F Y",label:Object(Ry.dateI18n)("d F Y",ja)},{value:"d-m-Y",label:Object(Ry.dateI18n)("d-m-Y",ja)},{value:"d.m.Y",label:Object(Ry.dateI18n)("d.m.Y",ja)},{value:"d/m/Y",label:Object(Ry.dateI18n)("d/m/Y",ja)},{value:"Y-m-d",label:Object(Ry.dateI18n)("Y-m-d",ja)},{value:"Y.m.d",label:Object(Ry.dateI18n)("Y.m.d",ja)},{value:"Y/m/d",label:Object(Ry.dateI18n)("Y/m/d",ja)},{value:"M, Y",label:Object(Ry.dateI18n)("M, Y",ja)},{value:"M Y",label:Object(Ry.dateI18n)("M Y",ja)},{value:"F, Y",label:Object(Ry.dateI18n)("F, Y",ja)},{value:"F Y",label:Object(Ry.dateI18n)("F Y",ja)}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Post Excerpt","ultimate-addons-for-gutenberg"),checked:fe,onChange:()=>i({displayPostExcerpt:!fe})}),fe&&React.createElement(Qa,{label:Object(r.__)("Excerpt Length","ultimate-addons-for-gutenberg"),setAttributes:i,value:ut,data:{value:ut,label:"exerptLength"},min:1,max:50,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Continue Reading Link","ultimate-addons-for-gutenberg"),checked:_e,onChange:()=>i({displayPostLink:!_e})}),_e&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("CTA Text","ultimate-addons-for-gutenberg"),value:Te,data:{value:Te,label:"readMoreText"},setAttributes:i,onChange:e=>i({readMoreText:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open link in New Tab","ultimate-addons-for-gutenberg"),checked:yt,onChange:()=>i({linkTarget:!yt})}),React.createElement(Le.ToggleControl,{checked:Ra,onChange:()=>i({inheritFromTheme:!Ra}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Ra&&("Astra"===Ea||Oa)&&React.createElement(Na,{setAttributes:i,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ba,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]})),React.createElement(tl,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:pt,label:"borderRadius"},tablet:{value:dt,label:"borderRadiusTablet"},mobile:{value:bt,label:"borderRadiusMobile"}},min:0,max:50,displayUnit:!1,setAttributes:i})),React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Be,onChange:t=>{e.setAttributes({icon:t})}}),Be&&React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:ct,data:{value:ct,label:"iconSize"},min:0,max:30,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Icon Background Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:$,data:{value:$,label:"connectorBgsize"},min:0,max:90,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Border Width","ultimate-addons-for-gutenberg"),setAttributes:i,value:Z,data:{value:Z,label:"borderwidth"},min:1,max:10,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Connector Thickness","ultimate-addons-for-gutenberg"),setAttributes:i,value:q,data:{value:q,label:"separatorwidth"},min:1,max:10,displayUnit:!1}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Heading","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"headingColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:i,loadGoogleFonts:{value:x,label:"headLoadGoogleFonts"},fontFamily:{value:_,label:"headFontFamily"},fontWeight:{value:T,label:"headFontWeight"},fontStyle:{value:C,label:"headFontStyle"},fontSizeType:{value:y,label:"headFontSizeType"},fontSize:{value:f,label:"headFontSize"},fontSizeMobile:{value:v,label:"headFontSizeMobile"},fontSizeTablet:{value:h,label:"headFontSizeTablet"},lineHeightType:{value:S,label:"headLineHeightType"},lineHeight:{value:k,label:"headLineHeight"},lineHeightMobile:{value:P,label:"headLineHeightMobile"},lineHeightTablet:{value:w,label:"headLineHeightTablet"},letterSpacing:{value:Qt,label:"headLetterSpacing"},letterSpacingTablet:{value:ea,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:ta,label:"headLetterSpacingMobile"},letterSpacingType:{value:aa,label:"headLetterSpacingType"},transform:{value:Ht,label:"headTransform"},decoration:{value:Nt,label:"headDecoration"}}),React.createElement(tl,{label:Object(r.__)("Top Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Kt,label:"headTopSpacing"},tablet:{value:Jt,label:"headTopSpacingTablet"},mobile:{value:Xt,label:"headTopSpacingMobile"}},min:1,max:50,displayUnit:!1,setAttributes:i}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:I,label:"headSpace"},tablet:{value:V,label:"headSpaceTablet"},mobile:{value:W,label:"headSpaceMobile"}},min:0,max:100,displayUnit:!1,setAttributes:i})),he&&React.createElement(je,{title:Object(r.__)("Author","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Q||"",data:{value:Q,label:"authorColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:pe,label:"authorLoadGoogleFonts"},fontFamily:{value:ie,label:"authorFontFamily"},fontWeight:{value:oe,label:"authorFontWeight"},fontStyle:{value:ne,label:"authorFontStyle"},fontSizeType:{value:ee,label:"authorFontSizeType"},fontSize:{value:te,label:"authorFontSize"},fontSizeMobile:{value:le,label:"authorFontSizeMobile"},fontSizeTablet:{value:ae,label:"authorFontSizeTablet"},lineHeightType:{value:re,label:"authorLineHeightType"},lineHeight:{value:se,label:"authorLineHeight"},lineHeightMobile:{value:ue,label:"authorLineHeightMobile"},lineHeightTablet:{value:ce,label:"authorLineHeightTablet"},letterSpacing:{value:ma,label:"authorLetterSpacing"},letterSpacingTablet:{value:ya,label:"authorLetterSpacingTablet"},letterSpacingMobile:{value:fa,label:"authorLetterSpacingMobile"},letterSpacingType:{value:ha,label:"authorLetterSpacingType"},transform:{value:Ft,label:"authorTransform"},decoration:{value:It,label:"authorDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Y,label:"authorSpace"},tablet:{value:K,label:"authorSpaceTablet"},mobile:{value:J,label:"authorSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:i})),fe&&React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"subHeadingColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:i,loadGoogleFonts:{value:N,label:"subHeadLoadGoogleFonts"},fontFamily:{value:O,label:"subHeadFontFamily"},fontWeight:{value:L,label:"subHeadFontWeight"},fontStyle:{value:H,label:"subHeadFontStyle"},fontSizeType:{value:R,label:"subHeadFontSizeType"},fontSize:{value:B,label:"subHeadFontSize"},fontSizeMobile:{value:E,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:U,label:"subHeadFontSizeTablet"},lineHeightType:{value:F,label:"subHeadLineHeightType"},lineHeight:{value:j,label:"subHeadLineHeight"},lineHeightMobile:{value:D,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:z,label:"subHeadLineHeightTablet"},letterSpacing:{value:la,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:ia,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:oa,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:na,label:"subHeadLetterSpacingType"},transform:{value:jt,label:"subHeadTransform"},decoration:{value:Vt,label:"subHeadDecoration"}}),_e&&React.createElement(Qa,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),setAttributes:i,value:X,data:{value:X,label:"contentSpace"},min:0,max:50,displayUnit:!1})),ye&&React.createElement(je,{title:Object(r.__)("Date","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Oe||"",data:{value:Oe,label:"dateColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:i,loadGoogleFonts:{value:Ke,label:"dateLoadGoogleFonts"},fontFamily:{value:Ie,label:"dateFontFamily"},fontWeight:{value:Ve,label:"dateFontWeight"},fontStyle:{value:We,label:"dateFontStyle"},fontSizeType:{value:Fe,label:"dateFontSizeType"},fontSize:{value:ze,label:"dateFontSize"},fontSizeMobile:{value:Ne,label:"dateFontSizeMobile"},fontSizeTablet:{value:De,label:"dateFontSizeTablet"},lineHeightType:{value:qe,label:"dateLineHeightType"},lineHeight:{value:Ze,label:"dateLineHeight"},lineHeightMobile:{value:Ye,label:"dateLineHeightMobile"},lineHeightTablet:{value:$e,label:"dateLineHeightTablet"},letterSpacing:{value:ra,label:"dateLetterSpacing"},letterSpacingTablet:{value:sa,label:"dateLetterSpacingTablet"},letterSpacingMobile:{value:ca,label:"dateLetterSpacingMobile"},letterSpacingType:{value:ua,label:"dateLetterSpacingType"},transform:{value:zt,label:"dateTransform"},decoration:{value:Wt,label:"dateDecoration"}}),"center"!==La&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:de,label:"dateBottomspace"},tablet:{value:be,label:"dateBottomspaceTablet"},mobile:{value:me,label:"dateBottomspaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:i})),_e&&React.createElement(je,{title:Object(r.__)("CTA","ultimate-addons-for-gutenberg"),initialOpen:!1},!Ra&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:He||"",data:{value:He,label:"ctaColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Re||"",data:{value:Re,label:"ctaBackground"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:st,label:"ctaLoadGoogleFonts"},fontFamily:{value:tt,label:"ctaFontFamily"},fontWeight:{value:at,label:"ctaFontWeight"},fontStyle:{value:lt,label:"ctaFontStyle"},fontSizeType:{value:Je,label:"ctaFontSizeType"},fontSize:{value:Xe,label:"ctaFontSize"},fontSizeMobile:{value:et,label:"ctaFontSizeMobile"},fontSizeTablet:{value:Qe,label:"ctaFontSizeTablet"},lineHeightType:{value:it,label:"ctaLineHeightType"},lineHeight:{value:ot,label:"ctaLineHeight"},lineHeightMobile:{value:rt,label:"ctaLineHeightMobile"},lineHeightTablet:{value:nt,label:"ctaLineHeightTablet"},letterSpacing:{value:pa,label:"ctaLetterSpacing"},letterSpacingTablet:{value:da,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:ba,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:ga,label:"ctaLetterSpacingType"},transform:{value:Dt,label:"ctaTransform"},decoration:{value:qt,label:"ctaDecoration"}})),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Zt,label:"ctaBottomSpacing"},tablet:{value:$t,label:"ctaBottomSpacingTablet"},mobile:{value:Yt,label:"ctaBottomSpacingMobile"}},min:1,max:50,displayUnit:!1,setAttributes:i})),React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"backgroundColor"},setAttributes:i})),(()=>{const e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"separatorColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:Ue||"",data:{value:Ue,label:"iconColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"separatorBg"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"separatorBorder"},setAttributes:i})),t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"separatorFillColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:gt||"",data:{value:gt,label:"iconFocus"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:mt||"",data:{value:mt,label:"iconBgFocus"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"borderFocus"},setAttributes:i}));return React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"focus",title:Object(r.__)("Focus","ultimate-addons-for-gutenberg")}],normal:e,focus:t,disableBottomSeparator:!0}))})(),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,jP({},e,{label:Object(r.__)("Post Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Tt,label:"topPadding"},valueRight:{value:Ct,label:"rightPadding"},valueBottom:{value:St,label:"bottomPadding"},valueLeft:{value:kt,label:"leftPadding"},valueTopTablet:{value:wt,label:"topPaddingTablet"},valueRightTablet:{value:Pt,label:"rightPaddingTablet"},valueBottomTablet:{value:xt,label:"bottomPaddingTablet"},valueLeftTablet:{value:At,label:"leftPaddingTablet"},valueTopMobile:{value:Gt,label:"topPaddingMobile"},valueRightMobile:{value:Mt,label:"rightPaddingMobile"},valueBottomMobile:{value:Rt,label:"bottomPaddingMobile"},valueLeftMobile:{value:Bt,label:"leftPaddingMobile"},unit:{value:Ut,label:"paddingUnit"},mUnit:{value:Et,label:"mobilePaddingUnit"},tUnit:{value:Ot,label:"tabletPaddingUnit"},attributes:e,setAttributes:i,link:{value:Lt,label:"paddingLink"}})),React.createElement(tl,{label:Object(r.__)("Gap Between Posts","ultimate-addons-for-gutenberg"),data:{desktop:{value:va,label:"verticalSpace",unit:{value:Ca,label:"verticalSpaceUnit"}},tablet:{value:_a,label:"verticalSpaceTablet",unit:{value:Sa,label:"verticalSpaceUnitTablet"}},mobile:{value:Ta,label:"verticalSpaceMobile",unit:{value:ka,label:"verticalSpaceUnitMobile"}}},min:0,limitMax:{px:100,"%":100,em:100},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:i}),React.createElement(tl,{label:Object(r.__)("Post - Marker Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:wa,label:"horizontalSpace",unit:{value:Aa,label:"horizontalSpaceUnit"}},tablet:{value:Pa,label:"horizontalSpaceTablet",unit:{value:Ga,label:"horizontalSpaceUnitTablet"}},mobile:{value:xa,label:"horizontalSpaceMobile",unit:{value:Ma,label:"horizontalSpaceUnitMobile"}}},min:0,limitMax:{px:50,"%":100,em:50},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:i}))),React.createElement(il,jP({},rl,{parentProps:e})))))}),NP=Object(B.memo)(e=>{const t=e.attributes.headingTag,{post:a,attributes:l}=e;let i="_self";return l.linkTarget&&(i="_blank"),React.createElement(t,{className:"uagb-timeline__heading"},React.createElement("a",{href:a.link,target:i,rel:"noopener noreferrer"},Object(Zw.decodeEntities)(a.title.rendered.trim())))}),IP=Object(B.memo)(e=>{const{post:t,attributes:a}=e;if(a.displayPostImage&&void 0!==t.uagb_featured_image_src&&a.imageSize&&t.uagb_featured_image_src[a.imageSize]){const e=t.uagb_featured_image_src[a.imageSize];let l="_self";return a.linkTarget&&(l="_blank"),React.createElement("a",{href:t.link,target:l,rel:"noopener noreferrer",style:{textAlign:a.align},className:"uagb-timeline__image"},React.createElement("img",{src:e[0],alt:Object(Zw.decodeEntities)(t.title.rendered.trim())||Object(r.__)("(Untitled)","ultimate-addons-for-gutenberg")}))}return null}),VP=Object(B.memo)(e=>{const{post:t,attributes:a}=e,l=us(a.contentSpace,"contentSpace","post-timeline"),i=us(a.exerptLength,"exerptLength","post-timeline");let o;if(a.displayPostExcerpt&&t.uagb_excerpt){o=t.uagb_excerpt.split(/\s+/).slice(0,i).join(" ");let e="";return a.displayPostLink&&(e=l+"px"),React.createElement("div",{className:"uagb-timeline-desc-content",dangerouslySetInnerHTML:{__html:o},style:{marginBottom:e}})}return null}),WP=Object(B.memo)(e=>{const{post:t,attributes:a,setAttributes:l}=e;let i="_self";a.linkTarget&&(i="_blank");const o=a.inheritFromTheme&&"secondary"===a.buttonType,n=o?{borderWidth:"revert-layer"}:{},r="uagb-timeline__link "+(o?"ast-outline-button":"wp-block-button__link"),s=o?"div":"a";return a.displayPostLink?"not_set"!==l?React.createElement("div",{className:"uagb-timeline__link_parent wp-block-button"},React.createElement(ge.RichText,{value:a.readMoreText.replace(/(<([^>]+)>)/gi,""),onChange:e=>{l({readMoreText:e})},tagName:s,className:r,href:t.link,target:i,rel:"noopener noreferrer",style:n})):React.createElement("div",{className:"uagb-timeline__link_parent wp-block-button"},React.createElement("a",{className:"uagb-timeline__link wp-block-button__link",href:t.link,target:i,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:a.readMoreText.replace(/(<([^>]+)>)/gi,"")}))):null}),qP=Object(B.memo)(e=>{const{post:t,attributes:a}=e;let l="_self";return a.linkTarget&&(l="_blank"),React.createElement(React.Fragment,null,a.displayPostAuthor&&void 0!==t.uagb_author_info&&React.createElement(React.Fragment,null,React.createElement("span",{className:"dashicons-admin-users dashicons"}),React.createElement("a",{className:"uagb-timeline__author-link",target:l,href:t.uagb_author_info.author_link,rel:"noopener noreferrer"},t.uagb_author_info.display_name)))}),ZP=Object(B.memo)(e=>{const{post:t,attributes:a,dateClass:l}=e;return React.createElement(React.Fragment,null,React.createElement("div",{dateTime:Object(Ry.format)("c",t.date_gmt),className:l,style:{color:a.dateColor}},a.displayPostDate&&t.date_gmt&&Object(Ry.dateI18n)(a.dateFormat,t.date_gmt)))}),$P=Object(B.memo)(e=>{const{attributes:t}=e;return React.createElement("div",{className:"uagb-timeline__marker uagb-timeline__out-view-icon uagb-timeline__icon-new"},Ce(t.icon)?Ce(t.icon):React.createElement("svg",{xmlns:"",viewBox:"0 0 256 512"}))}),YP=a(133),KP=0,JP={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},XP={};XP.locals=YP.a.locals||{},XP.use=function(){return KP++||(zP=we()(YP.a,JP)),XP},XP.unuse=function(){KP>0&&!--KP&&(zP(),zP=null)};var QP=XP,ex=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(QP.use(),()=>{QP.unuse()}),[]);const{latestPosts:t,attributes:a,className:l,setAttributes:i,deviceType:o,name:n}=e,s=n.replace("uagb/",""),{displayPostLink:c,postsToShow:u,block_id:p}=a,d=void 0!==a["timelinAlignment"+o]?a["timelinAlignment"+o]:a.timelinAlignment,b=us(u,"postsToShow",s);let g="";return c&&(g="uagb_timeline__cta-enable"),React.createElement("div",{className:Be()(l,"uagb-timeline__outer-wrap","uagb-timeline__content-wrap","uagb-editor-preview-mode-"+o.toLowerCase(),"uagb-block-"+p,g,...gf(e.attributes,o))},(()=>{if(!Array.isArray(t)||!t.length)return React.createElement(Le.Placeholder,{icon:"admin-post",label:Object(r.__)("Post Timeline","ultimate-addons-for-gutenberg")},Array.isArray(t)?Object(r.__)("No posts found.","ultimate-addons-for-gutenberg"):React.createElement(Le.Spinner,null));const l=t.length>b?t.slice(0,b):t;let n=mf(e.attributes,0,o),s=yf(e.attributes,0,o),c=!1;return React.createElement(React.Fragment,null,l.map((t,l)=>("center"===d&&(c=!0,n=mf(e.attributes,l,o),s=yf(e.attributes,l,o)),React.createElement("article",{className:Be()("uagb-timeline__field ",n),key:l},React.createElement($P,{attributes:a}),React.createElement("div",{className:Be()(s,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},React.createElement(ZP,{post:t,attributes:a,dateClass:"uagb-timeline__date-hide uagb-timeline__inner-date-new"}),React.createElement(IP,{post:t,attributes:a}),React.createElement(NP,{post:t,attributes:a}),React.createElement(qP,{post:t,attributes:a}),React.createElement(VP,{post:t,attributes:a}),React.createElement(WP,{post:t,attributes:a,setAttributes:i}),React.createElement("div",{className:"uagb-timeline__arrow"}))),c&&React.createElement(React.Fragment,null,React.createElement(ZP,{post:t,attributes:a,dateClass:"uagb-timeline__date-new"}))))))})(),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"})))});function tx(){return(tx=Object.assign||function(e){for(var t=1;t{const{isSelected:t,setAttributes:a,attributes:l,name:i,clientId:o,deviceType:r,attributes:{categories:s,postsToShow:c,order:u,orderBy:p,postType:d,taxonomyType:b,excludeCurrentPost:g,allTaxonomyStore:m,timelinAlignment:y,stack:f,timelinAlignmentTablet:h,timelinAlignmentMobile:v,UAGHideDesktop:_,UAGHideTab:T,UAGHideMob:C,dateFontSizeType:S,dateFontSize:w,dateFontSizeTablet:P,dateFontSizeMobile:x,dateFontsizeType:A,dateFontsize:G,dateFontsizeTablet:M,dateFontsizeMobile:R}}=e,[U,E]=Object(B.useState)(!1);Object(B.useEffect)(()=>{y&&("none"===f?(void 0===h&&a({timelinAlignmentTablet:y}),void 0===v&&a({timelinAlignmentMobile:y})):(void 0===h&&"tablet"===f&&(a({timelinAlignmentTablet:"left"}),a({timelinAlignmentMobile:"left"})),void 0===v&&"mobile"===f&&(a({timelinAlignmentMobile:"left"}),a({timelinAlignmentTablet:y}))))},[]),Object(B.useEffect)(()=>{void 0===S&&a({dateFontSizeType:A}),void 0===w&&a({dateFontSize:G}),void 0===P&&a({dateFontSizeTablet:M}),void 0===x&&a({dateFontSizeMobile:R})},[]),Object(B.useEffect)(()=>{he(e)},[_,T,C,r]),Object(B.useEffect)(()=>{const e=new CustomEvent("UAGTimelineEditor",{detail:{}});document.dispatchEvent(e)},[e,r]),Object(B.useEffect)(()=>{ys()},[r]);let O=[];const{latestPosts:L,taxonomyList:H,block:F}=Object(n.useSelect)(e=>{const t=us(c,"postsToShow","post-timeline"),{getEntityRecords:l}=e("core");m||U||(E(!0),k()({path:"/spectra/v1/all_taxonomy"}).then(e=>{a({allTaxonomyStore:e}),E(!1)}));const i=m?m[d]:void 0;let o="";void 0!==i&&(void 0!==i.taxonomy[b]&&(o=!1===i.taxonomy[b].rest_base||null===i.taxonomy[b].rest_base?i.taxonomy[b].name:i.taxonomy[b].rest_base),""!==b&&void 0!==i.terms&&void 0!==i.terms[b]&&(O=i.terms[b]));const n={order:u,orderby:p,per_page:t};if(g){const t=e("core/editor");n.exclude=null!=t&&t.getCurrentPostId?t.getCurrentPostId():null}const r=[],y=parseInt(s);r.push(y);const f=O.length;for(let e=0;e{r.push(e)});return void 0!==s&&""!==s&&(n[o]=void 0===s||""===s?s:r),{latestPosts:l("postType",d,n),categoriesList:O,taxonomyList:void 0!==i?i.taxonomy:[]}}),j=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,dateBottomspace:r,dateBottomspaceTablet:s,dateBottomspaceMobile:c,backgroundColor:u,separatorColor:p,separatorFillColor:d,separatorBg:b,separatorBorder:g,borderFocus:m,separatorwidth:y,borderwidth:f,connectorBgsize:h,borderRadius:v,borderRadiusTablet:_,borderRadiusMobile:T,iconColor:C,dateFontSizeType:S,dateFontSize:k,dateFontSizeTablet:w,dateFontSizeMobile:P,dateFontFamily:x,dateFontWeight:A,dateLineHeightType:G,dateLineHeight:M,dateLineHeightTablet:R,dateLineHeightMobile:B,dateColor:U,iconSize:E,iconFocus:O,iconBgFocus:L,headFontSizeType:H,headFontSize:F,headFontSizeTablet:j,headFontSizeMobile:z,headFontFamily:D,headFontWeight:N,headLineHeightType:I,headLineHeight:V,headLineHeightTablet:W,headLineHeightMobile:q,align:Z,alignTablet:$,alignMobile:Y,headingColor:K,headSpace:J,headSpaceTablet:X,headSpaceMobile:Q,subHeadFontSizeType:ee,subHeadFontSize:te,subHeadFontSizeTablet:le,subHeadFontSizeMobile:ie,subHeadFontFamily:oe,subHeadFontWeight:ne,subHeadLineHeightType:re,subHeadLineHeight:se,subHeadLineHeightTablet:ce,subHeadLineHeightMobile:ue,subHeadingColor:pe,authorSpace:de,authorSpaceTablet:be,authorSpaceMobile:ge,authorColor:me,authorFontSizeType:ye,authorFontSize:fe,authorFontSizeTablet:he,authorFontSizeMobile:ve,authorFontFamily:_e,authorFontWeight:Te,authorLineHeightType:Ce,authorLineHeight:Se,authorLineHeightTablet:ke,authorLineHeightMobile:we,ctaColor:Pe,ctaFontSizeType:xe,ctaFontSize:Ae,ctaFontSizeTablet:Ge,ctaFontSizeMobile:Me,ctaFontFamily:Re,ctaFontWeight:Be,ctaLineHeightType:Ue,ctaLineHeight:Ee,ctaLineHeightTablet:Oe,ctaLineHeightMobile:Le,ctaBackground:He,topMarginMobile:Fe,rightMarginMobile:je,bottomMarginMobile:ze,leftMarginMobile:De,mobileMarginUnit:Ne,topPadding:Ie,rightPadding:Ve,bottomPadding:We,leftPadding:qe,topPaddingTablet:Ze,rightPaddingTablet:$e,bottomPaddingTablet:Ye,leftPaddingTablet:Ke,topPaddingMobile:Je,rightPaddingMobile:Xe,bottomPaddingMobile:Qe,leftPaddingMobile:et,paddingUnit:tt,mobilePaddingUnit:at,tabletPaddingUnit:lt,headFontStyle:it,authorFontStyle:ot,subHeadFontStyle:nt,dateFontStyle:rt,ctaFontStyle:st,headTransform:ct,authorTransform:ut,subHeadTransform:pt,dateTransform:dt,ctaTransform:bt,headDecoration:gt,authorDecoration:mt,subHeadDecoration:yt,dateDecoration:ft,ctaDecoration:ht,ctaBottomSpacing:vt,ctaBottomSpacingTablet:_t,ctaBottomSpacingMobile:Tt,headTopSpacing:Ct,headTopSpacingTablet:St,headTopSpacingMobile:kt,headLetterSpacing:wt,headLetterSpacingTablet:Pt,headLetterSpacingMobile:xt,headLetterSpacingType:At,subHeadLetterSpacing:Gt,subHeadLetterSpacingTablet:Mt,subHeadLetterSpacingMobile:Rt,subHeadLetterSpacingType:Bt,dateLetterSpacing:Ut,dateLetterSpacingTablet:Et,dateLetterSpacingMobile:Ot,dateLetterSpacingType:Lt,ctaLetterSpacing:Ht,ctaLetterSpacingTablet:Ft,ctaLetterSpacingMobile:jt,ctaLetterSpacingType:zt,authorLetterSpacing:Dt,authorLetterSpacingTablet:Nt,authorLetterSpacingMobile:It,authorLetterSpacingType:Vt,verticalSpace:Wt,verticalSpaceTablet:qt,verticalSpaceMobile:Zt,verticalSpaceUnit:$t,verticalSpaceUnitTablet:Yt,verticalSpaceUnitMobile:Kt,horizontalSpace:Jt,horizontalSpaceTablet:Xt,horizontalSpaceMobile:Qt,horizontalSpaceUnit:ea,horizontalSpaceUnitTablet:ta,horizontalSpaceUnitMobile:aa,inheritFromTheme:la}=e,ia=us(E,"iconSize",i),oa=us(h,"connectorBgsize",i),na=us(f,"borderwidth",i),ra=us(y,"separatorwidth",i),sa=us(v,"borderRadius",i),ca=us(Ct,"headTopSpacing",i),ua=us(J,"headSpace",i),pa=us(de,"authorSpace",i),da=us(r,"dateBottomspace",i),ba=us(vt,"ctaBottomSpacing",i);let ga={" .uagb-timeline__heading":{"font-size":Vr(F,H),"font-family":D,"font-weight":N,"line-height":Vr(V,I),"font-style":it,"text-decoration":gt,"text-transform":ct,"text-align":Z,color:K,"margin-bottom":Vr(ua,"px"),"margin-top":Vr(ca,"px"),"letter-spacing":Vr(wt,At)}," .uagb-timeline__heading a":{"font-size":Vr(F,H),"font-family":D,"font-weight":N,"line-height":Vr(V,I),"font-style":it,"text-decoration":gt,"text-transform":ct,"text-align":Z,color:K,"margin-bottom":Vr(ua,"px"),"letter-spacing":Vr(wt,At)}," .uagb-timeline-desc-content":{"font-size":Vr(te,ee),"font-family":oe,"font-weight":ne,"line-height":Vr(se,re),"font-style":nt,"text-decoration":yt,"text-transform":pt,"text-align":Z,color:pe,"margin-top":Vr(pa,"px"),"letter-spacing":Vr(Gt,Bt)}," .uagb-timeline__author-link + .uagb-timeline__link_parent":{"margin-top":Vr(pa,"px")}," .uagb-timeline__day-new":{"text-align":Z}," .uagb-timeline__date-inner":{"text-align":Z},".uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u},".uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u},".uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u},".uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u}," .uagb-timeline__line__inner":{"background-color":d}," .uagb-timeline__line":{"background-color":p,width:Vr(ra,"px")},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+oa+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+oa+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+oa+"px / 2 )"}," .uagb-timeline__marker":{"background-color":b,"min-height":Vr(oa,"px"),"min-width":Vr(oa,"px"),"line-height":Vr(oa,"px"),border:na+"px solid"+g},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(Jt,ea),"margin-right":Vr(Jt,ea)},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(oa,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(oa,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(oa,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(oa,"px")}," .uagb-timeline__field:not(:last-child)":{"margin-bottom":Vr(Wt,$t)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"margin-bottom":Vr(da,"px"),color:U,"font-size":Vr(k,S),"font-family":x,"font-weight":A,"line-height":Vr(M,G),"font-style":rt,"text-decoration":ft,"text-transform":dt,"text-align":Z,"letter-spacing":Vr(Ut,Lt)}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"margin-bottom":Vr(da,"px"),color:U,"font-size":Vr(k,S),"font-family":x,"font-weight":A,"line-height":Vr(M,G),"font-style":rt,"text-decoration":ft,"text-transform":dt,"text-align":Z,"letter-spacing":Vr(Ut,Lt)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(Jt,ea)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(Jt,ea)}," .uagb-timeline__date-new":{color:U,"font-size":Vr(k,S),"font-family":x,"font-weight":A,"line-height":Vr(M,G),"font-style":rt,"text-decoration":ft,"text-transform":dt,"letter-spacing":Vr(Ut,Lt)}," .uagb-timeline__events-inner-new":{"background-color":u,"border-radius":Vr(sa,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(qe,tt),"padding-right":Vr(Ve,tt),"padding-top":Vr(Ie,tt),"padding-bottom":Vr(We,tt)}," svg":{color:C,"font-size":Vr(ia,"px"),width:Vr(ia,"px")}," .uagb-timeline__marker.uagb-timeline__in-view-icon":{background:L,"border-color":m}," .uagb-timeline__marker.uagb-timeline__in-view-icon svg":{color:O,fill:O}," .uagb-timeline__icon-new svg":{fill:C}," .dashicons-admin-users":{"font-size":Vr(fe,ye),"font-weight":Te,"line-height":Vr(Se,Ce),color:me,"font-style":ot,"text-decoration":mt,"text-transform":ut,"letter-spacing":Vr(Dt,Vt)}," .uagb-timeline__author-link":{"font-size":Vr(fe,ye),"font-family":_e,"font-weight":Te,"line-height":Vr(Se,Ce),color:me,"font-style":ot,"text-decoration":mt,"text-transform":ut,"text-align":Z,"letter-spacing":Vr(Dt,Vt)}," .uagb-timeline__link_parent":{"text-align":Z}," .uagb-timeline__link":{"text-align":Z,"margin-bottom":Vr(ba,"px")}},ma={" .uagb-timeline__day-new":{"text-align":$}," .uagb-timeline__date-inner":{"text-align":$}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":$,"font-size":Vr(w,S),"line-height":Vr(R,G),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Et,Lt)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"text-align":$,"font-size":Vr(w,S),"line-height":Vr(R,G),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Et,Lt)}," .uagb-timeline__date-new":{"font-size":Vr(w,S),"line-height":Vr(R,G),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Et,Lt)}," .uagb-timeline__heading":{"text-align":$,"font-size":Vr(j,H),"line-height":Vr(W,I),"margin-bottom":Vr(X,"px"),"margin-top":Vr(St,"px"),"letter-spacing":Vr(Pt,At)}," .uagb-timeline__heading a":{"text-align":$,"font-size":Vr(j,H),"line-height":Vr(W,I),"margin-bottom":Vr(X,"px"),"margin-top":Vr(St,"px"),"letter-spacing":Vr(Pt,At)}," .uagb-timeline-desc-content":{"text-align":$,"font-size":Vr(le,ee),"line-height":Vr(ce,re),"margin-top":Vr(be,"px"),"letter-spacing":Vr(Mt,Bt)}," .uagb-timeline__author-link + .uagb-timeline__link_parent":{"margin-top":Vr(be,"px")},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(Xt,ta),"margin-right":Vr(Xt,ta)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(Xt,ta)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(Xt,ta)},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-right-color":u},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author-link":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet a.uagb-timeline__image":{"text-align":$}," .dashicons-admin-users":{"font-size":Vr(he,ye),"line-height":Vr(ke,Ce),"letter-spacing":Vr(Nt,Vt)}," .uagb-timeline__link_parent":{"text-align":$}," .uagb-timeline__author-link":{"text-align":$,"font-size":Vr(he,ye),"line-height":Vr(ke,Ce),"letter-spacing":Vr(Nt,Vt)}," .uagb-timeline__link":{"text-align":$,"margin-bottom":Vr(_t,"px")}," .uagb-timeline__events-inner-new":{"border-radius":Vr(_,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(Ke,lt),"padding-right":Vr($e,lt),"padding-top":Vr(Ze,lt),"padding-bottom":Vr(Ye,lt)}," .uagb-timeline__field:not(:last-child)":{"margin-bottom":Vr(qt,Yt)}},ya={" .uagb-timeline__day-new":{"text-align":Y}," .uagb-timeline__date-inner":{"text-align":Y}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":Y,"font-size":Vr(P,S),"line-height":Vr(B,G),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ot,Lt)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"text-align":Y,"font-size":Vr(P,S),"line-height":Vr(B,G),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ot,Lt)}," .uagb-timeline__date-new":{"font-size":Vr(P,S),"line-height":Vr(B,G),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ot,Lt)}," .uagb-timeline__heading":{"text-align":Y,"font-size":Vr(z,H),"line-height":Vr(q,I),"margin-bottom":Vr(Q,"px"),"margin-top":Vr(kt,"px"),"letter-spacing":Vr(xt,At)}," .uagb-timeline__heading a":{"text-align":Y,"font-size":Vr(z,H),"line-height":Vr(q,I),"margin-bottom":Vr(Q,"px"),"margin-top":Vr(kt,"px"),"letter-spacing":Vr(xt,At)}," .uagb-timeline-desc-content":{"text-align":Y,"font-size":Vr(ie,ee),"line-height":Vr(ue,re),"margin-top":Vr(ge,"px"),"letter-spacing":Vr(Rt,Bt)}," .uagb-timeline__author-link + .uagb-timeline__link_parent":{"margin-top":Vr(ge,"px")},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(Qt,aa),"margin-right":Vr(Qt,aa)},".uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(De,Ne),"margin-right":Vr(je,Ne),"margin-top":Vr(Fe,Ne),"margin-bottom":Vr(ze,Ne)},".uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(De,Ne),"margin-right":Vr(je,Ne),"margin-top":Vr(Fe,Ne),"margin-bottom":Vr(ze,Ne)},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-right-color":u},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author-link":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile a.uagb-timeline__image":{"text-align":Y}," .dashicons-admin-users":{"font-size":Vr(ve,ye),"line-height":Vr(we,Ce),"letter-spacing":Vr(It,Vt)}," .uagb-timeline__link_parent":{"text-align":Y}," .uagb-timeline__author-link":{"text-align":Y,"font-size":Vr(ve,ye),"line-height":Vr(we,Ce),"letter-spacing":Vr(It,Vt)}," .uagb-timeline__link":{"text-align":Y,"margin-bottom":Vr(Tt,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(et,at),"padding-right":Vr(Xe,at),"padding-top":Vr(Je,at),"padding-bottom":Vr(Qe,at)}," .uagb-timeline__events-inner-new":{"border-radius":Vr(T,"px")}," .uagb-timeline__field:not(:last-child)":{"margin-bottom":Vr(Zt,Kt)}};la||(ga={...ga," .uagb-timeline__link_parent .uagb-timeline__link":{"font-size":Vr(Ae,xe),"font-family":Re,"font-weight":Be,"line-height":Vr(Ee,Ue),color:Pe,"background-color":He,"font-style":st,"text-decoration":ht,"text-transform":bt,"letter-spacing":Vr(Ht,zt)}},ma={...ma," .uagb-timeline__link_parent .uagb-timeline__link":{"font-size":Vr(Ge,xe),"line-height":Vr(Oe,Ue),"letter-spacing":Vr(Ft,zt)}},ya={...ya," .uagb-timeline__link_parent .uagb-timeline__link":{"font-size":Vr(Me,xe),"line-height":Vr(Le,Ue),"letter-spacing":Vr(jt,zt)}});let fa="";const ha=`.editor-styles-wrapper .uagb-block-${n}.uagb-timeline__outer-wrap`;return fa=ae(ga,ha),"tablet"!==o&&"mobile"!==o||(fa+=ae(ma,""+ha,!0,"tablet"),"mobile"===o&&(fa+=ae(ya,""+ha,!0,"mobile"))),fa}(l,0,i,r),[l,r]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:j}),React.createElement(FP,{attributes:l}),t&&React.createElement(DP,tx({},e,{taxonomyList:H,categoriesList:O})),React.createElement(ex,tx({},e,{latestPosts:L})))});let lx={};lx=Object(F.applyFilters)("uagb/post-timeline",ss(lx)),Object(de.registerBlockType)("uagb/post-timeline",{...lx,title:Object(r.__)("Post Timeline","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create an attractive timeline to display your posts.","ultimate-addons-for-gutenberg"),icon:se.post_timeline,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("timeline","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"post-timeline"}):React.createElement(ax,e),save:()=>null});const ix=[{defaultAttributes:Pt},{defaultChildAttributes:xt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"side"},{label:"imageAlignment",value:"middle"},{label:"imageWidth",value:150},{label:"imageWidthTablet",value:150},{label:"imageWidthMobile",value:150},{label:"imgPaddingRight",value:10},{label:"imgPaddingRightTablet",value:10},{label:"imgPaddingRightMobile",value:10},{label:"columnGap",value:50},{label:"columnGapTablet",value:50},{label:"columnGapMobile",value:50},{label:"contentPaddingTop",value:25},{label:"contentPaddingTopTablet",value:25},{label:"contentPaddingTopMobile",value:25},{label:"contentPaddingBottom",value:35},{label:"contentPaddingBottomTablet",value:35},{label:"contentPaddingBottomTablet",value:35},{label:"headingAlign",value:""},{label:"seperatorStyle",value:"dashed"},{label:"seperatorWidth",value:100},{label:"seperatorWidthTablet",value:100},{label:"seperatorWidthMobile",value:100},{label:"seperatorThickness",value:1},{label:"imgPaddingBottom",value:""},{label:"imgPaddingBottomTablet",value:""},{label:"imgPaddingBottomMobile",value:25},{label:"imagePosition",value:"left"},{label:"stack",value:"mobile"},{label:"showImage",value:!0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"top"},{label:"headingAlign",value:"center"},{label:"imageWidth",value:150},{label:"imageWidthTablet",value:140},{label:"imageWidthMobile",value:130},{label:"seperatorStyle",value:"none"},{label:"imgPaddingBottom",value:20},{label:"imgPaddingBottomTablet",value:20},{label:"imgPaddingBottomMobile",value:20},{label:"columnGap",value:40},{label:"columnGapTablet",value:40},{label:"columnGapMobile",value:40},{label:"contentPaddingTop",value:5},{label:"contentPaddingTopTablet",value:5},{label:"contentPaddingTopMobile",value:5},{label:"contentPaddingBottom",value:5},{label:"contentPaddingBottomTablet",value:5},{label:"contentPaddingBottomMobile",value:5},{label:"imageAlignment",value:""},{label:"imgPaddingTop",value:10},{label:"imgPaddingTopTablet",value:""},{label:"imgPaddingTopMobile",value:""},{label:"imgPaddingRight",value:""},{label:"imgPaddingRightTablet",value:""},{label:"imgPaddingRightMobile",value:""},{label:"showImage",value:!0}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"top"},{label:"headingAlign",value:"center"},{label:"seperatorStyle",value:"solid"},{label:"seperatorWidth",value:33},{label:"seperatorWidthTablet",value:33},{label:"seperatorWidthMobile",value:33},{label:"seperatorThickness",value:1},{label:"columnGap",value:40},{label:"columnGapTablet",value:40},{label:"columnGapMobile",value:40},{label:"contentPaddingTop",value:10},{label:"contentPaddingTopTablet",value:10},{label:"contentPaddingTopMobile",value:10},{label:"contentPaddingBottom",value:10},{label:"contentPaddingBottomTablet",value:10},{label:"contentPaddingBottomMobile",value:10},{label:"imageAlignment",value:""},{label:"showImage",value:!1}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"side"},{label:"headingAlign",value:"center"},{label:"seperatorStyle",value:"solid"},{label:"seperatorWidth",value:33},{label:"seperatorWidthTablet",value:33},{label:"seperatorWidthMobile",value:33},{label:"seperatorThickness",value:1},{label:"columnGap",value:50},{label:"columnGapTablet",value:50},{label:"columnGapMobile",value:50},{label:"contentPaddingTop",value:10},{label:"contentPaddingTopTablet",value:10},{label:"contentPaddingTopMobile",value:10},{label:"contentPaddingBottom",value:10},{label:"contentPaddingBottomTablet",value:10},{label:"contentPaddingBottomMobile",value:10},{label:"imageAlignment",value:""},{label:"imagePosition",value:"left"},{label:"showImage",value:!1}],icon:' '}];var ox=Object(F.applyFilters)("uag_price_list_presets",ix);function nx(){return(nx=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l,clientId:i}=e,{menu_item_count:o,titleSpace:s,titleSpaceTablet:c,titleSpaceMobile:u,columns:p,tcolumns:d,mcolumns:b,rowGap:g,rowGapTablet:m,rowGapMobile:y,columnGap:f,columnGapTablet:h,columnGapMobile:v,priceColor:_,descColor:T,titleColor:C,seperatorStyle:S,seperatorWidth:k,seperatorWidthTablet:w,seperatorWidthMobile:P,seperatorThickness:x,seperatorColor:A,priceLoadGoogleFonts:G,titleLoadGoogleFonts:M,descLoadGoogleFonts:R,titleFontSizeType:U,titleFontSize:E,titleFontSizeTablet:O,titleFontSizeMobile:L,titleFontFamily:H,titleFontWeight:F,titleFontStyle:j,titleLineHeightType:z,titleLineHeight:D,titleLineHeightTablet:N,titleLineHeightMobile:I,priceFontSizeType:V,priceFontSize:W,priceFontSizeTablet:q,priceFontSizeMobile:Z,priceFontFamily:$,priceFontWeight:Y,priceFontStyle:K,priceLineHeightType:J,priceLineHeight:X,priceLineHeightTablet:Q,priceLineHeightMobile:ee,descFontSizeType:te,descFontSize:ae,descFontSizeTablet:le,descFontSizeMobile:ie,descFontFamily:oe,descFontWeight:ne,descFontStyle:re,descLineHeightType:se,descLineHeight:ce,descLineHeightTablet:ue,descLineHeightMobile:pe,headingTag:de,imagePosition:be,imageAlignment:me,imageSize:ye,imageWidth:fe,imageWidthTablet:he,imageWidthMobile:ve,stack:_e,imageWidthType:Te,seperatorWidthType:Se,rowGapType:ke,columnGapType:we,titleSpaceType:Pe,contentPaddingTop:xe,contentPaddingRight:Ae,contentPaddingBottom:Ge,contentPaddingLeft:Me,contentPaddingTopTablet:Re,contentPaddingRightTablet:Be,contentPaddingBottomTablet:Ue,contentPaddingLeftTablet:Oe,contentPaddingTopMobile:He,contentPaddingRightMobile:Fe,contentPaddingBottomMobile:ze,contentPaddingLeftMobile:De,contentPaddingUnit:Ne,contentMobilePaddingUnit:Ie,contentTabletPaddingUnit:Ve,contentSpacingLink:We,imgPaddingTop:qe,imgPaddingRight:Ze,imgPaddingBottom:$e,imgPaddingLeft:Ye,imgPaddingTopTablet:Ke,imgPaddingRightTablet:Je,imgPaddingBottomTablet:Xe,imgPaddingLeftTablet:Qe,imgPaddingTopMobile:et,imgPaddingRightMobile:tt,imgPaddingBottomMobile:at,imgPaddingLeftMobile:lt,imgPaddingUnit:it,imgMobilePaddingUnit:ot,imgTabletPaddingUnit:nt,imgSpacingLink:rt,titleTransform:st,titleDecoration:ct,descTransform:ut,descDecoration:pt,priceTransform:dt,priceDecoration:bt,headingAlign:gt,imgAlign:mt,descLetterSpacing:yt,descLetterSpacingTablet:ft,descLetterSpacingMobile:ht,descLetterSpacingType:vt,priceLetterSpacing:_t,priceLetterSpacingTablet:Tt,priceLetterSpacingMobile:Ct,priceLetterSpacingType:St,titleLetterSpacing:kt,titleLetterSpacingTablet:wt,titleLetterSpacingMobile:Pt,titleLetterSpacingType:xt,showImage:At}=a;Object(B.useEffect)(()=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(e=>{e.attributes.imageWidth=fe})},[fe]);const Gt=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"columns"},tablet:{value:d,label:"tcolumns"},mobile:{value:b,label:"mcolumns"}},min:1,max:Math.min(3,o),displayUnit:!1,setAttributes:t,onChange:(Mt=p,Rt=d,Bt=b,void Object(n.select)("core/block-editor").getBlocks(i).forEach(e=>{e.attributes.columns=Mt,e.attributes.tcolumns=Rt,e.attributes.mcolumns=Bt}))}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:de,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}],onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.headingTag=e}),t({headingTag:e})}}))),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Image","ultimate-addons-for-gutenberg"),checked:At,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.showImage=e}),t({showImage:e})}}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:mt,label:"imgAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:"Top"},{value:"side",label:"Side"}],showIcons:!1,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imgAlign=e}),t({imgAlign:e})}}),"side"===mt&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:be,label:"imagePosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imagePosition=e}),t({imagePosition:e})}}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack on","ultimate-addons-for-gutenberg"),data:{value:_e,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:"None"},{value:"tablet",label:"Tablet"},{value:"mobile",label:"Mobile"}],help:Object(r.__)("Note: Choose on what breakpoint the Images will stack.","ultimate-addons-for-gutenberg"),showIcons:!1,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.stack=e}),t({stack:e})}}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:me,label:"imageAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:"Top"},{value:"middle",label:"Middle"}],showIcons:!1,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imageAlignment=e}),t({imageAlignment:e})}})),"top"===mt&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:gt,label:"headingAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.headingAlign=e}),t({headingAlign:e})}}),At&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:ye},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imageSize=e}),t({imageSize:e})},options:Gt}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:t,presets:ox,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:C||"",data:{value:C,label:"titleColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:M,label:"titleLoadGoogleFonts"},fontFamily:{value:H,label:"titleFontFamily"},fontWeight:{value:F,label:"titleFontWeight"},fontStyle:{value:j,label:"titleFontStyle"},fontSizeType:{value:U,label:"titleFontSizeType"},fontSize:{value:E,label:"titleFontSize"},fontSizeMobile:{value:L,label:"titleFontSizeMobile"},fontSizeTablet:{value:O,label:"titleFontSizeTablet"},lineHeightType:{value:z,label:"titleLineHeightType"},lineHeight:{value:D,label:"titleLineHeight"},lineHeightMobile:{value:I,label:"titleLineHeightMobile"},lineHeightTablet:{value:N,label:"titleLineHeightTablet"},letterSpacing:{value:kt,label:"titleLetterSpacing"},letterSpacingTablet:{value:wt,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Pt,label:"titleLetterSpacingMobile"},letterSpacingType:{value:xt,label:"titleLetterSpacingType"},transform:{value:st,label:"titleTransform"},decoration:{value:ct,label:"titleDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:s,label:"titleSpace"},tablet:{value:c,label:"titleSpaceTablet"},mobile:{value:u,label:"titleSpaceMobile"}},min:0,max:50,unit:{value:Pe,label:"titleSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t})),React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:S,label:"seperatorStyle"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(r.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(r.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(r.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(r.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!==S&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:k,label:"seperatorWidth"},tablet:{value:w,label:"seperatorWidthTablet"},mobile:{value:P,label:"seperatorWidthMobile"}},min:0,max:100,unit:{value:Se,label:"seperatorWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:x,data:{value:x,label:"seperatorThickness"},min:0,max:20,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:A||"",data:{value:A,label:"seperatorColor"},setAttributes:t}))),At&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:fe,label:"imageWidth"},tablet:{value:he,label:"imageWidthTablet"},mobile:{value:ve,label:"imageWidthMobile"}},min:0,max:500,unit:{value:Te,label:"imageWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(Pl,nx({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:qe,label:"imgPaddingTop"},valueRight:{value:Ze,label:"imgPaddingRight"},valueBottom:{value:$e,label:"imgPaddingBottom"},valueLeft:{value:Ye,label:"imgPaddingLeft"},valueTopTablet:{value:Ke,label:"imgPaddingTopTablet"},valueRightTablet:{value:Je,label:"imgPaddingRightTablet"},valueBottomTablet:{value:Xe,label:"imgPaddingBottomTablet"},valueLeftTablet:{value:Qe,label:"imgPaddingLeftTablet"},valueTopMobile:{value:et,label:"imgPaddingTopMobile"},valueRightMobile:{value:tt,label:"imgPaddingRightMobile"},valueBottomMobile:{value:at,label:"imgPaddingBottomMobile"},valueLeftMobile:{value:lt,label:"imgPaddingLeftMobile"},unit:{value:it,label:"imgPaddingUnit"},mUnit:{value:ot,label:"imgMobilePaddingUnit"},tUnit:{value:nt,label:"imgTabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:rt,label:"imgSpacingLink"}}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:T||"",data:{value:T,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:R,label:"descLoadGoogleFonts"},fontFamily:{value:oe,label:"descFontFamily"},fontWeight:{value:ne,label:"descFontWeight"},fontStyle:{value:re,label:"descFontStyle"},fontSizeType:{value:te,label:"descFontSizeType"},fontSize:{value:ae,label:"descFontSize"},fontSizeMobile:{value:ie,label:"descFontSizeMobile"},fontSizeTablet:{value:le,label:"descFontSizeTablet"},lineHeightType:{value:se,label:"descLineHeightType"},lineHeight:{value:ce,label:"descLineHeight"},lineHeightMobile:{value:pe,label:"descLineHeightMobile"},lineHeightTablet:{value:ue,label:"descLineHeightTablet"},letterSpacing:{value:yt,label:"descLetterSpacing"},letterSpacingTablet:{value:ft,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:ht,label:"descLetterSpacingMobile"},letterSpacingType:{value:vt,label:"descLetterSpacingType"},transform:{value:ut,label:"descTransform"},decoration:{value:pt,label:"descDecoration"}})),React.createElement(je,{title:Object(r.__)("Price","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"priceColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:G,label:"priceLoadGoogleFonts"},fontFamily:{value:$,label:"priceFontFamily"},fontWeight:{value:Y,label:"priceFontWeight"},fontStyle:{value:K,label:"priceFontStyle"},fontSizeType:{value:V,label:"priceFontSizeType"},fontSize:{value:W,label:"priceFontSize"},fontSizeMobile:{value:Z,label:"priceFontSizeMobile"},fontSizeTablet:{value:q,label:"priceFontSizeTablet"},lineHeightType:{value:J,label:"priceLineHeightType"},lineHeight:{value:X,label:"priceLineHeight"},lineHeightMobile:{value:ee,label:"priceLineHeightMobile"},lineHeightTablet:{value:Q,label:"priceLineHeightTablet"},letterSpacing:{value:_t,label:"priceLetterSpacing"},letterSpacingTablet:{value:Tt,label:"priceLetterSpacingTablet"},letterSpacingMobile:{value:Ct,label:"priceLetterSpacingMobile"},letterSpacingType:{value:St,label:"priceLetterSpacingType"},transform:{value:dt,label:"priceTransform"},decoration:{value:bt,label:"priceDecoration"}})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Row Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:g,label:"rowGap"},tablet:{value:m,label:"rowGapTablet"},mobile:{value:y,label:"rowGapMobile"}},min:0,max:50,unit:{value:ke,label:"rowGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:f,label:"columnGap"},tablet:{value:h,label:"columnGapTablet"},mobile:{value:v,label:"columnGapMobile"}},min:0,max:50,unit:{value:we,label:"columnGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(Pl,nx({},e,{label:Object(r.__)("Item Padding","ultimate-addons-for-gutenberg"),valueTop:{value:xe,label:"contentPaddingTop"},valueRight:{value:Ae,label:"contentPaddingRight"},valueBottom:{value:Ge,label:"contentPaddingBottom"},valueLeft:{value:Me,label:"contentPaddingLeft"},valueTopTablet:{value:Re,label:"contentPaddingTopTablet"},valueRightTablet:{value:Be,label:"contentPaddingRightTablet"},valueBottomTablet:{value:Ue,label:"contentPaddingBottomTablet"},valueLeftTablet:{value:Oe,label:"contentPaddingLeftTablet"},valueTopMobile:{value:He,label:"contentPaddingTopMobile"},valueRightMobile:{value:Fe,label:"contentPaddingRightMobile"},valueBottomMobile:{value:ze,label:"contentPaddingBottomMobile"},valueLeftMobile:{value:De,label:"contentPaddingLeftMobile"},unit:{value:Ne,label:"contentPaddingUnit"},mUnit:{value:Ie,label:"contentMobilePaddingUnit"},tUnit:{value:Ve,label:"contentTabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:We,label:"contentSpacingLink"}})))),React.createElement(il,nx({},rl,{parentProps:e})))));var Mt,Rt,Bt}),cx=a(134),ux=0,px={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},dx={};dx.locals=cx.a.locals||{},dx.use=function(){return ux++||(rx=we()(cx.a,px)),dx},dx.unuse=function(){ux>0&&!--ux&&(rx(),rx=null)};var bx=dx;const gx=["uagb/restaurant-menu-child"];var mx=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(bx.use(),()=>{bx.unuse()}),[]);const{className:t,attributes:a,deviceType:l}=e,{menu_item_count:i,columns:o,tcolumns:n,mcolumns:r,block_id:s}=a,c=Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,descLoadGoogleFonts:o,descFontFamily:n,descFontWeight:r,priceLoadGoogleFonts:s,priceFontFamily:c,priceFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),fx=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{imgAlign:l,imagePosition:i,imageAlignment:o,UAGHideDesktop:r,UAGHideTab:s,UAGHideMob:c,showImage:u},setAttributes:p,clientId:d,name:b,deviceType:g}=e;Object(B.useEffect)(()=>{i&&("left"===i&&p({imgAlign:"side"}),"right"===i&&p({imgAlign:"side"}),"top"===i&&p({imgAlign:"top"})),Object(n.select)("core/block-editor").getBlocks(d).forEach(e=>{e.attributes.imageAlignment=o})},[]),Object(B.useEffect)(()=>{"side"===l&&"right"!==i&&(p({imagePosition:"left"}),p({headingAlign:"left"})),"top"===l&&p({imagePosition:"top"})},[a,g]),Object(B.useEffect)(()=>{ys()},[g]),Object(B.useEffect)(()=>{he(e)},[r,s,c,g]),Object(B.useEffect)(()=>{var e;null===(e=Object(n.select)("core/block-editor").getBlocksByClientId(d)[0])||void 0===e||e.innerBlocks.forEach((function(e){Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{showImage:u})}))},[u]);const m=Object(B.useMemo)(()=>function(e,t,a,l){const{block_id:i,headingAlign:o,priceColor:n,descColor:r,titleColor:s,titleFontSizeType:c,titleFontSize:u,titleFontSizeTablet:p,titleFontSizeMobile:d,titleFontFamily:b,titleFontWeight:g,titleLineHeightType:m,titleLineHeight:y,titleLineHeightTablet:f,titleLineHeightMobile:h,priceFontSizeType:v,priceFontSize:_,priceFontSizeTablet:T,priceFontSizeMobile:C,priceFontFamily:S,priceFontWeight:k,priceLineHeightType:w,priceLineHeight:P,priceLineHeightTablet:x,priceLineHeightMobile:A,descFontSizeType:G,descFontSize:M,descFontSizeTablet:R,descFontSizeMobile:B,descFontFamily:U,descFontWeight:E,descLineHeightType:O,descLineHeight:L,descLineHeightTablet:H,descLineHeightMobile:F,descSpace:j,titleSpace:z,titleSpaceTablet:D,titleSpaceMobile:N,imageWidth:I,imageWidthTablet:V,imageWidthMobile:W,rowGap:q,rowGapTablet:Z,rowGapMobile:$,columnGap:Y,columnGapTablet:K,columnGapMobile:J,seperatorStyle:X,seperatorWidth:Q,seperatorWidthTablet:ee,seperatorWidthMobile:te,seperatorThickness:le,seperatorColor:ie,imageWidthType:oe,seperatorWidthType:ne,rowGapType:re,columnGapType:se,titleSpaceType:ce,contentPaddingTop:ue,contentPaddingRight:pe,contentPaddingBottom:de,contentPaddingLeft:be,contentPaddingTopTablet:ge,contentPaddingRightTablet:me,contentPaddingBottomTablet:ye,contentPaddingLeftTablet:fe,contentPaddingTopMobile:he,contentPaddingRightMobile:ve,contentPaddingBottomMobile:_e,contentPaddingLeftMobile:Te,contentPaddingUnit:Ce,contentMobilePaddingUnit:Se,contentTabletPaddingUnit:ke,imgPaddingTop:we,imgPaddingRight:Pe,imgPaddingBottom:xe,imgPaddingLeft:Ae,imgPaddingTopTablet:Ge,imgPaddingRightTablet:Me,imgPaddingBottomTablet:Re,imgPaddingLeftTablet:Be,imgPaddingTopMobile:Ue,imgPaddingRightMobile:Ee,imgPaddingBottomMobile:Oe,imgPaddingLeftMobile:Le,imgPaddingUnit:He,imgMobilePaddingUnit:Fe,imgTabletPaddingUnit:je,titleFontStyle:ze,titleTransform:De,titleDecoration:Ne,descFontStyle:Ie,descTransform:Ve,descDecoration:We,priceFontStyle:qe,priceTransform:Ze,priceDecoration:$e,descLetterSpacing:Ye,descLetterSpacingTablet:Ke,descLetterSpacingMobile:Je,descLetterSpacingType:Xe,priceLetterSpacing:Qe,priceLetterSpacingTablet:et,priceLetterSpacingMobile:tt,priceLetterSpacingType:at,titleLetterSpacing:lt,titleLetterSpacingTablet:it,titleLetterSpacingMobile:ot,titleLetterSpacingType:nt,imagePosition:rt,imgAlign:st,imageAlignment:ct,stack:ut}=e,pt=l.toLowerCase(),dt=a.replace("uagb/",""),bt=us(le,"seperatorThickness",dt),gt=us(q,"rowGap",dt),mt=us(Z,"rowGapTablet",dt),yt=us($,"rowGapMobile",dt),ft=us(Y,"columnGap",dt),ht=isNaN(K)?ft:K,vt=isNaN(J)?ht:J,_t=us(I,"imageWidth",dt),Tt=isNaN(V)?_t:V,Ct=isNaN(W)?Tt:W,St=us(Q,"seperatorWidth",dt),kt=us(ee,"seperatorWidthTablet",dt),wt=us(te,"seperatorWidthMobile",dt),Pt=us(z,"titleSpace",dt),xt=us(D,"titleSpaceTablet",dt),At=us(N,"titleSpaceMobile",dt);let Gt={},Mt={};const Rt={" .block-editor-block-list__layout":{"column-gap":Vr(ft,se),"row-gap":Vr(gt,re)}," [data-type='uagb/restaurant-menu-child'] img":{"padding-left":Vr(Ae,He),"padding-right":Vr(Pe,He),"padding-top":Vr(we,He),"padding-bottom":Vr(xe,He)}," img":{width:Vr(_t,oe),"max-width":Vr(_t,oe)}," .uagb-rm__content":{"padding-left":Vr(be,Ce),"padding-right":Vr(pe,Ce),"padding-top":Vr(ue,Ce),"padding-bottom":Vr(de,Ce)},".wp-block-uagb-restaurant-menu .uagb-rest_menu__wrap .uagb-rm__content .uagb-rm-details .uagb-rm__title":{"font-size":Vr(u,c),color:s,"margin-bottom":Vr(Pt,ce),"font-family":b,"font-style":ze,"text-transform":De,"text-decoration":Ne,"font-weight":g,"line-height":Vr(y,m),"letter-spacing":Vr(lt,nt)}," .uagb-rm__price":{"font-size":Vr(_,v),"font-family":S,"text-transform":Ze,"text-decoration":$e,"font-style":qe,"font-weight":k,"line-height":Vr(P,w),color:n,"letter-spacing":Vr(Qe,at)}," .uagb-rm__desc":{"font-size":Vr(M,G),"font-family":U,"text-transform":Ve,"text-decoration":We,"font-style":Ie,"font-weight":E,"line-height":Vr(L,O),color:r,"margin-bottom":Vr(j,"px"),"letter-spacing":Vr(Ye,Xe)}};Gt={" img":{width:Vr(Tt,oe),"max-width":Vr(Tt,oe)}," .block-editor-block-list__layout":{"column-gap":Vr(ht,se),"row-gap":Vr(mt,re)},".wp-block-uagb-restaurant-menu .uagb-rest_menu__wrap .uagb-rm__content .uagb-rm-details .uagb-rm__title":{"font-size":Vr(p,c),"line-height":Vr(f,m),"margin-bottom":Vr(xt,ce),"letter-spacing":Vr(it,nt)}," .uagb-rm__desc":{"font-size":Vr(R,G),"line-height":Vr(H,O),"letter-spacing":Vr(Ke,Xe)}," .uagb-rm__price":{"font-size":Vr(T,v),"line-height":Vr(x,w),"letter-spacing":Vr(et,at)}," [data-type='uagb/restaurant-menu-child'] img":{"padding-left":Vr(Be,je),"padding-right":Vr(Me,je),"padding-top":Vr(Ge,je),"padding-bottom":Vr(Re,je)}," .uagb-rm__content":{"padding-left":Vr(fe,ke),"padding-right":Vr(me,ke),"padding-top":Vr(ge,ke),"padding-bottom":Vr(ye,ke)}},Mt={" img":{width:Vr(Ct,oe),"max-width":Vr(Ct,oe)}," .block-editor-block-list__layout":{"column-gap":Vr(vt,se),"row-gap":Vr(yt,re)},".wp-block-uagb-restaurant-menu .uagb-rest_menu__wrap .uagb-rm__content .uagb-rm-details .uagb-rm__title":{"font-size":Vr(d,c),"line-height":Vr(h,m),"margin-bottom":Vr(At,ce),"letter-spacing":Vr(ot,nt)}," .uagb-rm__desc":{"font-size":Vr(B,G),"line-height":Vr(F,O),"letter-spacing":Vr(Je,Xe)}," .uagb-rm__price":{"font-size":Vr(C,v),"line-height":Vr(A,w),"letter-spacing":Vr(tt,at)}," [data-type='uagb/restaurant-menu-child'] img":{"padding-left":Vr(Le,Fe),"padding-right":Vr(Ee,Fe),"padding-top":Vr(Ue,Fe),"padding-bottom":Vr(Oe,Fe)}," .uagb-rm__content":{"padding-left":Vr(Te,Se),"padding-right":Vr(ve,Se),"padding-top":Vr(he,Se),"padding-bottom":Vr(_e,Se)}},"none"!==X&&(Rt[" .uagb-rm__separator"]={"border-top-color":ie,"border-top-style":X,"border-top-width":Vr(bt,"px"),width:Vr(St,ne)},Gt[" .uagb-rm__separator"]={width:Vr(kt,ne)},Mt[" .uagb-rm__separator"]={width:Vr(wt,ne)}),"side"===st&&(Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={"align-items":"top"===ct?"flex-start":"center"},"tablet"===ut?"left"===rt?(Gt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"block"},Mt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"block"}):(Gt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"flex","flex-direction":"column-reverse","align-items":"flex-end"},Mt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"flex","flex-direction":"column-reverse","align-items":"flex-end"}):"mobile"===ut&&(Mt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]="left"===rt?{display:"block"}:{display:"flex","flex-direction":"column-reverse","align-items":"flex-end"}),"left"===rt?Rt[" .uagb-rm-details"]={"text-align":"left"}:"right"===rt&&(Rt[" .uagb-rm-details"]={"text-align":"right"},Rt[" .uagb-rest_menu__wrap .uagb-rm__content"]={"text-align":"right"},Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__separator"]={"margin-left":"auto"})),"top"===st&&(Rt[" .wp-block-uagb-restaurant-menu-child "]={"text-align":o,display:"block"},Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={"text-align":o},"center"===o?(Rt[" .uagb-rm__content "]={display:"block"},Rt[" .uagb-rm__content "]={display:"block"},Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__separator"]={margin:"0 auto"}):"right"===o&&(Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__separator"]={"margin-left":"auto"}));let Bt="";const Ut=".editor-styles-wrapper .uagb-block-"+i;return Bt=ae(Rt,Ut),"tablet"!==pt&&"mobile"!==pt||(Bt+=ae(Gt,""+Ut,!0,"tablet"),"mobile"===pt&&(Bt+=ae(Mt,""+Ut,!0,"mobile"))),Bt}(a,0,b,g),[a,g]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:m}),React.createElement(yx,{attributes:a}),t&&React.createElement(sx,e),React.createElement(mx,e))}),hx=e=>{const{attributes:t,setAttributes:a,index_value:l}=e;let i="";if(void 0!==l){const e=t.rest_menu_item_arr[l];e&&void 0!==e&&(i=e.title)}else i=t.title;return"not_set"!==a?React.createElement(ge.RichText,{tagName:t.headingTag,value:i,placeholder:Object(r.__)("Write a Title","ultimate-addons-for-gutenberg"),className:"uagb-rm__title",onChange:e=>{a({title:e})}}):React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:i,className:"uagb-rm__title"})},vx=e=>{const{attributes:t,setAttributes:a,index_value:l}=e;let i="";if(void 0!==l){const e=t.rest_menu_item_arr[l];e&&void 0!==e&&(i=e.price)}else i=t.price;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:i,className:"uagb-rm__price",placeholder:Object(r.__)("Price","ultimate-addons-for-gutenberg"),onChange:e=>{a({price:e})}}):React.createElement(ge.RichText.Content,{tagName:"span",value:i,className:"uagb-rm__price"})},Tx=e=>{const{attributes:t,setAttributes:a,index_value:l}=e;let i="";if(void 0!==l){const e=t.rest_menu_item_arr[l];e&&void 0!==e&&(i=e.description)}else i=t.description;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:i,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-rm__desc",onChange:e=>{a({description:e})}}):React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:"uagb-rm__desc"})},Cx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"uagb/restaurant-menu";const{columns:a,tcolumns:l,mcolumns:i}=e;let o="",n=0;const r=e.image;void 0!==e.rest_menu_item_arr&&e.rest_menu_item_arr.map(e=>{const t=e.image;t&&void 0!==t&&n++}),null!=r&&""!==r&&n++,n>0&&(o+="uagb-rm__image-position-"+e.imagePosition+" "),o+=" uagb-rm__align-"+e.headingAlign+" ","left"!==e.imagePosition&&"right"!==e.imagePosition||(o+="uagb-rm__image-aligned-"+e.imageAlignment+" ","none"!==e.stack&&(o+="uagb-rm-stacked-"+e.stack+" ","right"===e.imagePosition&&(o+="uagb-rm-reverse-order-"+e.stack+" ")));const s=t.replace("uagb/",""),c=us(a,"columns",s),u=us(l,"tcolumns",s),p=us(i,"mcolumns",s);return o+="uagb-rm__desk-column-"+c+" ",o+="uagb-rm__tablet-column-"+u+" ",o+="uagb-rm__mobile-column-"+p+" ",[o]},Sx=e=>{const{attributes:t,index_value:a}=e;let l="",i="";const{imageWidth:o,imgTagHeight:n}=t;if(void 0!==a){const e=t.rest_menu_item_arr[a];void 0!==e&&(i=e.image)}else""!==t.image&&(i=t.image);if(i&&void 0!==i){let e="";e=void 0!==i?i:t.image;let a="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,r=t.imageSize;return a=void 0!==i&&void 0!==i[r]?i[r].url:l,React.createElement("img",{className:"",src:a,alt:e.alt,width:o,height:n,loading:"lazy"})}return null}return null},kx=[{attributes:Pt,save(e){const{block_id:t,className:a,rest_menu_item_arr:l,imagePosition:i}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap"),id:"uagb-rm-"+t},l.map((t,a)=>React.createElement("div",{className:Be()("uagb-rest_menu__wrap",...Cx(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-rm__content",key:"tm_content-"+a},("top"==i||"left"==i)&&React.createElement(Sx,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-rm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm-details",key:"tm_wraps-"+a},React.createElement("div",{className:"uagb-rm__title-wrap",key:"rm_title__wraps-"+a},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement("div",{className:"uagb-rest-menu-text-wrap",key:"text-wrap-"+a},React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-rm__price-wrap",key:"rm_price__wraps-"+a},React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"==i&&React.createElement(Sx,{attributes:e.attributes,index_value:a})),React.createElement("div",{className:"uagb-rm__separator-parent"},React.createElement("div",{className:"uagb-rm__separator"}))))))}},{attributes:Pt,save(e){const{block_id:t,className:a,rest_menu_item_arr:l,imagePosition:i}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap","uagb-block-"+t)},l.map((t,a)=>React.createElement("div",{className:Be()("uagb-rest_menu__wrap",...Cx(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-rm__content",key:"tm_content-"+a},("top"==i||"left"==i)&&React.createElement(Sx,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-rm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm-details",key:"tm_wraps-"+a},React.createElement("div",{className:"uagb-rm__title-wrap",key:"rm_title__wraps-"+a},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement("div",{className:"uagb-rest-menu-text-wrap",key:"text-wrap-"+a},React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-rm__price-wrap",key:"rm_price__wraps-"+a},React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"==i&&React.createElement(Sx,{attributes:e.attributes,index_value:a})),React.createElement("div",{className:"uagb-rm__separator-parent"},React.createElement("div",{className:"uagb-rm__separator"}))))))}},{attributes:Pt,save(e){const{block_id:t,className:a}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap","uagb-block-"+t)},React.createElement(ge.InnerBlocks.Content,null)))}}];a(368);const wx=Object(L.compose)(Object(n.withSelect)(e=>({selected:e("core/block-editor").getSelectedBlock()}))),Px=Object(L.createHigherOrderComponent)(e=>wx(t=>{let{...a}=t;return React.createElement(React.Fragment,null,React.createElement(e,a))}),"withPriceList");let xx={};function Ax(){return(Ax=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"price-list"}):React.createElement(fx,e),save:function(e){const{block_id:t,className:a,columns:l,tcolumns:i,mcolumns:o}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-block-"+t,"uagb-rm__desk-column-"+l,"uagb-rm__tablet-column-"+i,"uagb-rm__mobile-column-"+o)},React.createElement(ge.InnerBlocks.Content,null))},deprecated:kx}),Object(F.addFilter)("editor.BlockEdit","uagb/restaurant-menu",Px);var Gx=Object(B.memo)(e=>{const{setAttributes:t,attributes:a}=e,{image:l,showImage:i}=a;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement("p",{className:"uagb-settings-notice"},i?Object(r.__)("For the common styling options please select the Parent Block of this Price List Item.","ultimate-addons-for-gutenberg"):Object(r.__)("For the common styling options and enabling images, please select the Parent Block of this Price List Item.","ultimate-addons-for-gutenberg")),i&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{let a=null;a=e&&e.url?e:null,e.type&&"image"===e.type||(a=null),t({image:a})},backgroundImage:l,onRemoveImage:()=>{t({image:null})}})))),React.createElement(il,Ax({},rl,{parentProps:e})))))}),Mx=Object(B.memo)(e=>{const{className:t,setAttributes:a,attributes:l,clientId:i}=e,{imagePosition:o,headingAlign:r,imgAlign:s,showImage:c,image:u,imageWidth:p,block_id:d}=l,b=Object(n.select)("core/block-editor").getBlockHierarchyRootClientId(i),g=Object(n.select)("core/block-editor").getBlockAttributes(b),m=g&&g.imagePosition?g.imagePosition:o,y=g&&g.headingAlign?g.headingAlign:r,f=g&&g.imgAlign?g.imgAlign:s;return a({imagePosition:m}),a({headingAlign:y}),a({imgAlign:f}),Object(B.useEffect)(()=>{u&&u.url&&Zg(null==u?void 0:u.url,a,{type:"width",value:p})},[u,p]),React.createElement("div",{className:Be()(t,"uagb-rest_menu__wrap","uagb-block-"+d)},"top"===f&&React.createElement(React.Fragment,null,c&&React.createElement(Sx,{attributes:l}),React.createElement("div",{className:"uagb-rm__content"},"right"===y&&React.createElement(vx,{attributes:l,setAttributes:a,props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:l,setAttributes:a,props:e}),React.createElement(Tx,{attributes:l,setAttributes:a,props:e}),"center"===y&&React.createElement(vx,{attributes:l,setAttributes:a,props:e})),"left"===y&&React.createElement(vx,{attributes:l,setAttributes:a,props:e})),React.createElement("div",{className:"uagb-rm__separator"})),"side"===f&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm__content"},"left"===m&&c&&React.createElement(Sx,{attributes:l}),"right"===m&&React.createElement(vx,{attributes:l,setAttributes:a,props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:l,setAttributes:a,props:e}),React.createElement(Tx,{attributes:l,setAttributes:a,props:e})),"left"===m&&React.createElement(vx,{attributes:l,setAttributes:a,props:e}),"right"===m&&c&&React.createElement(Sx,{attributes:l})),React.createElement("div",{className:"uagb-rm__separator"})))}),Rx=Object(L.compose)(ls)(e=>{const{isSelected:t}=e;return React.createElement(React.Fragment,null,t&&React.createElement(Gx,e),React.createElement(Mx,e))}),Bx=e=>{const{attributes:t,index_value:a}=e;let l="",i="";if(void 0!==a){const e=t.rest_menu_item_arr[a];void 0!==e&&(i=e.image)}else""!==t.image&&(i=t.image);if(i&&void 0!==i){let e="";e=void 0!==i?i:t.image;let a="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,o=t.imageSize;return a=void 0!==i&&void 0!==i[o]?i[o].url:l,React.createElement("div",{className:"uagb-rm__image-content"},React.createElement("div",{className:"uagb-rm__image"},React.createElement("img",{className:"",src:a,alt:e.alt})))}return null}return null},Ux=e=>{const{attributes:t,index_value:a}=e;let l="",i="";if(void 0!==a){const e=t.rest_menu_item_arr[a];void 0!==e&&(i=e.image)}else""!==t.image&&(i=t.image);if(i&&void 0!==i){let e="";e=void 0!==i?i:t.image;let a="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,o=t.imageSize;return a=void 0!==i&&void 0!==i[o]?i[o].url:l,React.createElement("img",{className:"",src:a,alt:e.alt})}return null}return null},Ex=[{attributes:{block_id:{type:"string"},description:{type:"string",default:Object(r.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")},title:{type:"string",default:Object(r.__)("Menu Item")},price:{type:"string",default:Object(r.__)("$9")},image:{type:"object",default:null},imagePosition:{type:"string",default:"top"},imageAlignment:{type:"string",default:"top"},imageSize:{type:"string",default:"medium"},headingTag:{type:"string",default:"h4"},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},headingAlign:{type:"string",default:"left"}},save(e){const{block_id:t,className:a,imagePosition:l}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-rest_menu__wrap","uagb-rest_menu_repeater",...Cx(e.attributes))},React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()(...Cx(e.attributes))},React.createElement("div",{className:"uagb-rm__content"},("top"==l||"left"==l)&&React.createElement(Bx,{attributes:e.attributes}),React.createElement("div",{className:"uagb-rm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm-details"},React.createElement("div",{className:"uagb-rm__title-wrap"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rest-menu-text-wrap"},React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e}))),React.createElement("div",{className:"uagb-rm__price-wrap"},React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}))))),"right"==l&&React.createElement(Bx,{attributes:e.attributes})),React.createElement("div",{className:"uagb-rm__separator-parent"},React.createElement("div",{className:"uagb-rm__separator"}))))))}},{attributes:{block_id:{type:"string"},description:{type:"string",default:Object(r.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")},title:{type:"string",default:Object(r.__)("Menu Item")},price:{type:"string",default:Object(r.__)("$9")},image:{type:"object",default:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/uag-placeholder.svg"}},imagePosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"image-position"}},imageAlignment:{type:"string",default:"top",UAGCopyPaste:{styleType:"image-align"}},imageSize:{type:"string",default:"medium",UAGCopyPaste:{styleType:"image-size"}},headingTag:{type:"string",default:"h4"},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},headingAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"main-title-align"}},stack:{type:"string",default:"tablet"},imgAlign:{type:"string",UAGCopyPaste:{styleType:"image-align"},default:"side"},showImage:{type:"boolean",default:!0}},save(e){const{imagePosition:t,headingAlign:a,imgAlign:l,showImage:i}=e.attributes;return React.createElement("div",{className:Be()("uagb-rest_menu__wrap")},"top"===l&&React.createElement(React.Fragment,null,i&&React.createElement(Ux,{attributes:e.attributes}),React.createElement("div",{className:"uagb-rm__content"},"right"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"center"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),React.createElement("div",{className:"uagb-rm__separator"})),"side"===l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm__content"},"left"===t&&i&&React.createElement(Ux,{attributes:e.attributes}),"right"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"right"===t&&i&&React.createElement(Ux,{attributes:e.attributes})),React.createElement("div",{className:"uagb-rm__separator"})))}}];let Ox={};Ox=Object(F.applyFilters)("uagb/restaurant-menu-child",ss(Ox)),Object(de.registerBlockType)("uagb/restaurant-menu-child",{...Ox,title:Object(r.__)("Price List-Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add information for this product.","ultimate-addons-for-gutenberg"),icon:se.restaurant_menu_child,keywords:[Object(r.__)("pricelist","ultimate-addons-for-gutenberg"),Object(r.__)("menu","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},parent:["uagb/restaurant-menu"],attributes:xt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"price-list-child",isChildren:!0}):React.createElement(Rx,e),save:function(e){const{imagePosition:t,headingAlign:a,imgAlign:l,showImage:i}=e.attributes;return React.createElement("div",{className:Be()("uagb-rest_menu__wrap")},"top"===l&&React.createElement(React.Fragment,null,i&&React.createElement(Sx,{attributes:e.attributes}),React.createElement("div",{className:"uagb-rm__content"},"right"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"center"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),React.createElement("div",{className:"uagb-rm__separator"})),"side"===l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm__content"},"left"===t&&i&&React.createElement(Sx,{attributes:e.attributes}),"right"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"right"===t&&i&&React.createElement(Sx,{attributes:e.attributes})),React.createElement("div",{className:"uagb-rm__separator"})))},deprecated:Ex});var Lx=e=>{const{enableSchema:t,itemType:a,rTitle:l,enableDescription:i,rContent:o,enableImage:n,mainimage:s,sku:c,brand:u,showAuthor:p,rAuthor:d,offerType:b,offerCurrency:g,offerPrice:m,ctaLink:y,offerExpiry:f,datepublish:h,identifier:v,isbn:_,bookAuthorName:T,directorname:C,datecreated:S,provider:k,appCategory:w,reviewPublisher:P,operatingSystem:x}=e,A=[];let G;switch(a){case"Product":void 0!==c&&""!==c||(G=Object(r.__)("Missing merchant-specific identifier for product ( SKU )","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==u&&""!==u||(G=Object(r.__)("Missing brand of the product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==b&&""!==b||(G=Object(r.__)("Missing offer Type","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==g&&""!==g||(G=Object(r.__)("Missing offer currency of a product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==m&&""!==m||(G=Object(r.__)("Missing offer price of a product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==f&&""!==f||(G=Object(r.__)("Missing offer expiry of a product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==v&&""!==v||(G=Object(r.__)("Missing global identifiers","ultimate-addons-for-gutenberg"),A.push(G));break;case"Book":void 0!==_&&""!==_||(G=Object(r.__)("Missing ISBN number of a book","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==T&&""!==T||(G=Object(r.__)("Missing author of the book","ultimate-addons-for-gutenberg"),A.push(G));break;case"Movie":void 0!==S&&""!==S||(G=Object(r.__)("Missing released date of the movie","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==C&&""!==C||(G=Object(r.__)("Missing director name of the movie","ultimate-addons-for-gutenberg"),A.push(G));break;case"Course":void 0!==k&&""!==k||(G=Object(r.__)("Missing provider of the course","ultimate-addons-for-gutenberg"),A.push(G));break;case"SoftwareApplication":void 0!==w&&""!==w||(G=Object(r.__)("Missing type of application (Application Category)","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==x&&""!==x||(G=Object(r.__)("Missing operating system(s) required","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==b&&""!==b||(G=Object(r.__)("Missing Offer Type","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==m&&""!==m||(G=Object(r.__)("Missing offer price of the application","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==g&&""!==g||(G=Object(r.__)("Missing offer currency of the application","ultimate-addons-for-gutenberg"),A.push(G))}a&&(void 0!==l&&""!==l||(G=Object(r.__)("Missing title of the review","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==o&&""!==o&&!1!==i||(G=Object(r.__)("Missing review description","ultimate-addons-for-gutenberg"),A.push(G)),s&&"null"!==s&&"null"!==s.url&&""!==s.url&&!1!==n||(G=Object(r.__)("Missing review Image","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==y&&""!==y||(G=Object(r.__)("Missing url field","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==d&&""!==d&&!1!==p||(G=Object(r.__)("Missing review author name","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==P&&""!==P||(G=Object(r.__)("Missing review publisher","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==h&&""!==h||(G=Object(r.__)("Missing date of publish","ultimate-addons-for-gutenberg"),A.push(G)));const M=A.map(e=>React.createElement("li",{key:e}," ",e," "));return!0===t&&0!==A.length?React.createElement("div",{className:"rating-schema-notices"},React.createElement("h6",null," ",Object(r.__)("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")," "),React.createElement("ul",{className:"rating-schema-notices-list"},M),React.createElement("p",null,Object(r.__)("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")," ",React.createElement("a",{href:"https://developers.google.com/search/docs/data-types/review-snippet",target:"_blank",rel:"noreferrer"},Object(r.__)("Read more.","ultimate-addons-for-gutenberg")))):""};function Hx(){return(Hx=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{enableSchema:l,itemType:i,itemSubtype:o,sku:n,identifier:s,identifierType:c,offerType:u,offerCurrency:p,offerStatus:d,offerPrice:b,offerExpiry:g,datepublish:m,ctaLink:y,ctaTarget:f,brand:h,headingTag:v,mainimage:_,imgSize:T,showFeature:C,showAuthor:S,starColor:k,descColor:w,titleColor:P,contentColor:x,headFontFamily:A,headFontWeight:G,headFontSizeType:M,headFontSize:R,headFontSizeMobile:B,headFontSizeTablet:U,headLineHeightType:E,headLineHeight:O,headLineHeightMobile:L,headLineHeightTablet:H,headLoadGoogleFonts:F,subHeadFontFamily:z,subHeadFontWeight:D,subHeadFontSize:N,subHeadFontSizeType:I,subHeadFontSizeMobile:V,subHeadFontSizeTablet:W,subHeadLineHeight:q,subHeadLineHeightType:Z,subHeadLineHeightMobile:$,subHeadLineHeightTablet:Y,subHeadLoadGoogleFonts:K,contentLoadGoogleFonts:J,contentFontFamily:X,contentFontWeight:Q,contentFontSizeType:ee,contentLineHeightType:te,contentFontSize:ae,contentFontSizeTablet:le,contentFontSizeMobile:ie,contentLineHeight:oe,contentLineHeightTablet:ne,contentLineHeightMobile:re,topPadding:se,bottomPadding:ce,rightPadding:ue,leftPadding:pe,paddingTopMobile:de,paddingBottomMobile:be,paddingRightMobile:me,paddingLeftMobile:ye,paddingTopTablet:fe,paddingBottomTablet:he,paddingRightTablet:ve,paddingLeftTablet:_e,spacingLink:Te,paddingUnit:Se,mobilePaddingUnit:ke,tabletPaddingUnit:we,authorColor:Pe,summaryColor:xe,starActiveColor:Ae,starOutlineColor:Ge,enableDescription:Me,enableImage:Re,overallAlignment:Be,isbn:Ue,bookAuthorName:Oe,reviewPublisher:He,provider:Fe,appCategory:ze,operatingSystem:De,datecreated:Ne,directorname:Ie,headTransform:Ve,headDecoration:We,subHeadTransform:qe,subHeadDecoration:Ze,contentTransform:$e,contentDecoration:Ye,headFontStyle:Ke,subHeadFontStyle:Je,contentFontStyle:Xe,headLetterSpacing:Qe,headLetterSpacingTablet:et,headLetterSpacingMobile:tt,headLetterSpacingType:at,subHeadLetterSpacing:lt,subHeadLetterSpacingTablet:it,subHeadLetterSpacingMobile:ot,subHeadLetterSpacingType:nt,contentLetterSpacing:rt,contentLetterSpacingTablet:st,contentLetterSpacingMobile:ct,contentLetterSpacingType:ut,courseMode:pt,repeatCount:dt,repeatFrequency:bt,categoryOfCourse:gt,courseLocation:mt}=t,yt=e=>{a({itemType:e}),"Movie"===i&&a({enableImage:!0}),"Course"===i&&a({enableDescription:!0}),ht.hasOwnProperty(i)&&ht[i].includes(o)||a({itemSubtype:"None"})};let ft;const ht={Book:[{value:"Audiobook",label:Object(r.__)("Audio book","ultimate-addons-for-gutenberg")}],Product:[{value:"IndividualProduct",label:Object(r.__)("Individual Product","ultimate-addons-for-gutenberg")},{value:"ProductCollection",label:Object(r.__)("Product Collection","ultimate-addons-for-gutenberg")},{value:"ProductGroup",label:Object(r.__)("Product Group","ultimate-addons-for-gutenberg")},{value:"ProductModel",label:Object(r.__)("Product Model","ultimate-addons-for-gutenberg")},{value:"SomeProducts",label:Object(r.__)("Some Products","ultimate-addons-for-gutenberg")},{value:"Vehicle",label:Object(r.__)("Vehicle","ultimate-addons-for-gutenberg")}],SoftwareApplication:[{value:"MobileApplication",label:Object(r.__)("Mobile Application","ultimate-addons-for-gutenberg")},{value:"VideoGame",label:Object(r.__)("Video Game","ultimate-addons-for-gutenberg")},{value:"WebApplication",label:Object(r.__)("Web Application","ultimate-addons-for-gutenberg")}]};switch(i){default:break;case"Book":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("ISBN","ultimate-addons-for-gutenberg"),value:Ue,data:{value:Ue,label:"isbn"},setAttributes:a,onChange:e=>a({isbn:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),React.createElement(Ss,{label:Object(r.__)("Book author name","ultimate-addons-for-gutenberg"),value:Oe,data:{value:Oe,label:"bookAuthorName"},setAttributes:a,onChange:e=>a({bookAuthorName:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}));break;case"Course":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Provider","ultimate-addons-for-gutenberg"),value:Fe,data:{value:Fe,label:"provider"},setAttributes:a,onChange:e=>a({provider:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information about the organization that created the content for the course.","ultimate-addons-for-gutenberg")}),React.createElement(Pi,{label:Object(r.__)("Mode","ultimate-addons-for-gutenberg"),data:{value:pt,label:"courseMode"},setAttributes:a,options:[{value:"Online",label:Object(r.__)("Online","ultimate-addons-for-gutenberg")},{value:"Onsite",label:Object(r.__)("Onsite","ultimate-addons-for-gutenberg")},{value:"Blended",label:Object(r.__)("Blended","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information of medium through which the course will be delivered.","ultimate-addons-for-gutenberg")}),("Onsite"===pt||"Blended"===pt)&&React.createElement(Ss,{label:Object(r.__)("Location","ultimate-addons-for-gutenberg"),value:mt,data:{value:mt,label:"courseLocation"},setAttributes:a,onChange:e=>a({courseLocation:e}),help:Object(r.__)("Note: This property is only required for Onsite or Blended courses, It contain name or address (or both) of the physical location where the course will be taught.","ultimate-addons-for-gutenberg")}),React.createElement(Pi,{label:Object(r.__)("Frequency","ultimate-addons-for-gutenberg"),layout:"stack",data:{value:bt,label:"repeatFrequency"},setAttributes:a,options:[{value:"Daily",label:Object(r.__)("Daily","ultimate-addons-for-gutenberg")},{value:"Weekly",label:Object(r.__)("Weekly","ultimate-addons-for-gutenberg")},{value:"Monthly",label:Object(r.__)("Monthly","ultimate-addons-for-gutenberg")},{value:"Yearly",label:Object(r.__)("Yearly","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information of course happens Daily / Weekly / Monthly or Yearly.","ultimate-addons-for-gutenberg")}),React.createElement(Ks,{label:Object(r.__)("Duration","ultimate-addons-for-gutenberg"),value:dt,data:{value:dt,label:"repeatCount"},displayUnit:!1,setAttributes:a,min:1,help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain the numerical value for how long the course lasts for in Frequency units. For example, if the Frequency is monthly and the Duration is 4, the course lasts for 4 months.","ultimate-addons-for-gutenberg"),showControlHeader:!1,name:"totalNumber"}),React.createElement(Pi,{label:Object(r.__)("Pricing Category","ultimate-addons-for-gutenberg"),layout:"stack",data:{value:gt,label:"categoryOfCourse"},setAttributes:a,options:[{value:"Free",label:Object(r.__)("Free","ultimate-addons-for-gutenberg")},{value:"Partially Free",label:Object(r.__)("Partially Free","ultimate-addons-for-gutenberg")},{value:"Subscription",label:Object(r.__)("Subscription","ultimate-addons-for-gutenberg")},{value:"Paid",label:Object(r.__)("Paid","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information of pricing category of the course.","ultimate-addons-for-gutenberg")}));break;case"SoftwareApplication":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Application Category","ultimate-addons-for-gutenberg"),value:ze,data:{value:ze,label:"appCategory"},setAttributes:a,onChange:e=>a({appCategory:e})}),React.createElement(Ss,{label:Object(r.__)("Operating System","ultimate-addons-for-gutenberg"),value:De,data:{value:De,label:"operatingSystem"},setAttributes:a,onChange:e=>a({operatingSystem:e})}));break;case"Movie":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Director Name","ultimate-addons-for-gutenberg"),value:Ie,data:{value:Ie,label:"directorname"},setAttributes:a,onChange:e=>a({directorname:e})}),React.createElement("h2",null,Object(r.__)("Date of create","ultimate-addons-for-gutenberg")),React.createElement(Le.DateTimePicker,{currentDate:Ne,onChange:e=>a({datecreated:e}),is12Hour:!0}))}return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,(_&&_.sizes&&(Fx=j(_.sizes)),React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Review Title Tag","ultimate-addons-for-gutenberg"),data:{value:v,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:Be,label:"overallAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Schema Support","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({enableSchema:!l})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Review Description","ultimate-addons-for-gutenberg"),checked:Me,onChange:()=>a({enableDescription:!Me}),help:Object(r.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Review Author","ultimate-addons-for-gutenberg"),checked:S,onChange:()=>a({showAuthor:!S}),help:Object(r.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Ratings","ultimate-addons-for-gutenberg"),checked:C,onChange:()=>a({showFeature:!C}),help:Object(r.__)("Note: Add feature/section ratings separately.","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Review Image","ultimate-addons-for-gutenberg"),checked:Re,onChange:()=>a({enableImage:!Re}),help:Object(r.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:y,data:{value:y,label:"ctaLink"},setAttributes:a,onChange:e=>a({ctaLink:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:f,onChange:()=>{a({ctaTarget:!f})}}))),!0===Re&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({mainimage:e}):a({mainimage:null})},backgroundImage:_,onRemoveImage:()=>{a({mainimage:""})},disableLabel:!0}),_&&"null"!==_&&"null"!==_.url&&""!==_.url&&React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:T,label:"imgSize"},setAttributes:a,options:Fx}))),(()=>{if(!0===l)return React.createElement(je,{title:Object(r.__)("Schema","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Item Type","ultimate-addons-for-gutenberg"),data:{value:i},onChange:yt,options:[{value:"Book",label:Object(r.__)("Book","ultimate-addons-for-gutenberg")},{value:"Course",label:Object(r.__)("Course","ultimate-addons-for-gutenberg")},{value:"Movie",label:Object(r.__)("Movie","ultimate-addons-for-gutenberg")},{value:"Product",label:Object(r.__)("Product","ultimate-addons-for-gutenberg")},{value:"SoftwareApplication",label:Object(r.__)("Software Application","ultimate-addons-for-gutenberg")}]}),ht.hasOwnProperty(i)&&React.createElement(Pi,{label:Object(r.__)("Item Subtype","ultimate-addons-for-gutenberg"),data:{value:o,label:"itemSubtype"},setAttributes:a,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},...ht[i]]}),ft,React.createElement(Ss,{label:Object(r.__)("Review Publisher","ultimate-addons-for-gutenberg"),value:He,data:{value:He,label:"reviewPublisher"},setAttributes:a,onChange:e=>a({reviewPublisher:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),React.createElement("h2",null,Object(r.__)("Date Of Publish","ultimate-addons-for-gutenberg")),React.createElement(Le.DateTimePicker,{className:"uagb-date-picker",currentDate:m,onChange:e=>a({datepublish:e}),is12Hour:!0}),["Product","SoftwareApplication"].includes(i)&&React.createElement(React.Fragment,null,["Product"].includes(i)&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Brand","ultimate-addons-for-gutenberg"),value:h,data:{value:h,label:"brand"},setAttributes:a,onChange:e=>a({brand:e})}),React.createElement(Ss,{label:Object(r.__)("SKU","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"sku"},setAttributes:a,onChange:e=>a({sku:e})}),React.createElement(Ss,{label:Object(r.__)("Identifier","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"identifier"},setAttributes:a,onChange:e=>a({identifier:e})}),React.createElement(Pi,{label:Object(r.__)("Identifier Type","ultimate-addons-for-gutenberg"),data:{value:c,label:"identifierType"},setAttributes:a,options:["nsn","mpn","gtin8","gtin12","gtin13","gtin14","gtin"].map(e=>({label:e.toUpperCase(),value:e}))})),["Product","SoftwareApplication"].includes(i)&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Offer Currency","ultimate-addons-for-gutenberg"),value:p,data:{value:p,label:"offerCurrency"},setAttributes:a,onChange:e=>a({offerCurrency:e})})),"Offer"===u&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Offer Price","ultimate-addons-for-gutenberg"),value:b,data:{value:b,label:"offerPrice"},setAttributes:a,onChange:e=>a({offerPrice:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),React.createElement(Pi,{label:Object(r.__)("Offer Status","ultimate-addons-for-gutenberg"),data:{value:d,label:"offerStatus"},setAttributes:e.setAttributes,options:[{value:"https://schema.org/Discontinued",label:Object(r.__)("Discontinued","ultimate-addons-for-gutenberg")},{value:"https://schema.org/InStock",label:Object(r.__)("In Stock","ultimate-addons-for-gutenberg")},{value:"https://schema.org/InStoreOnly",label:Object(r.__)("In Store Only","ultimate-addons-for-gutenberg")},{value:"https://schema.org/LimitedAvailability",label:Object(r.__)("Limited Availability","ultimate-addons-for-gutenberg")},{value:"https://schema.org/OnlineOnly",label:Object(r.__)("Online Only","ultimate-addons-for-gutenberg")},{value:"https://schema.org/OutOfStock",label:Object(r.__)("Out Of Stock","ultimate-addons-for-gutenberg")},{value:"https://schema.org/PreOrder",label:Object(r.__)("Pre Order","ultimate-addons-for-gutenberg")},{value:"https://schema.org/PreSale",label:Object(r.__)("Pre Sale","ultimate-addons-for-gutenberg")},{value:"https://schema.org/SoldOut",label:Object(r.__)("Sold Out","ultimate-addons-for-gutenberg")}]}),React.createElement("h2",null,Object(r.__)("Price Valid Until","ultimate-addons-for-gutenberg")),React.createElement(Le.DateTimePicker,{className:"uagb-date-picker",currentDate:g,onChange:e=>a({offerExpiry:e}),is12Hour:!0}))))})()),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:P,data:{value:P,label:"titleColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:a,loadGoogleFonts:{value:F,label:"headLoadGoogleFonts"},fontFamily:{value:A,label:"headFontFamily"},fontWeight:{value:G,label:"headFontWeight"},fontStyle:{value:Ke,label:"headFontStyle"},transform:{value:Ve,label:"headTransform"},decoration:{value:We,label:"headDecoration"},fontSizeType:{value:M,label:"headFontSizeType"},fontSize:{value:R,label:"headFontSize"},fontSizeMobile:{value:B,label:"headFontSizeMobile"},fontSizeTablet:{value:U,label:"headFontSizeTablet"},lineHeightType:{value:E,label:"headLineHeightType"},lineHeight:{value:O,label:"headLineHeight"},lineHeightMobile:{value:L,label:"headLineHeightMobile"},lineHeightTablet:{value:H,label:"headLineHeightTablet"},letterSpacing:{value:Qe,label:"headLetterSpacing"},letterSpacingTablet:{value:et,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:tt,label:"headLetterSpacingMobile"},letterSpacingType:{value:at,label:"headLetterSpacingType"}})),Me&&React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},!0===Me&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:w,data:{value:w,label:"descColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:a,loadGoogleFonts:{value:K,label:"subHeadLoadGoogleFonts"},fontFamily:{value:z,label:"subHeadFontFamily"},fontWeight:{value:D,label:"subHeadFontWeight"},fontStyle:{value:Je,label:"subHeadFontStyle"},transform:{value:qe,label:"subHeadTransform"},decoration:{value:Ze,label:"subHeadDecoration"},fontSizeType:{value:I,label:"subHeadFontSizeType"},fontSize:{value:N,label:"subHeadFontSize"},fontSizeMobile:{value:V,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:W,label:"subHeadFontSizeTablet"},lineHeightType:{value:Z,label:"subHeadLineHeightType"},lineHeight:{value:q,label:"subHeadLineHeight"},lineHeightMobile:{value:$,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:Y,label:"subHeadLineHeightTablet"},letterSpacing:{value:lt,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:it,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:nt,label:"subHeadLetterSpacingType"}}))),!0===S&&React.createElement(je,{title:Object(r.__)("Author","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Pe,data:{value:Pe,label:"authorColor"},setAttributes:a}))),!0===C&&React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x,data:{value:x,label:"contentColor"},setAttributes:a}))),React.createElement(je,{title:Object(r.__)("Summary","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:xe,data:{value:xe,label:"summaryColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:a,loadGoogleFonts:{value:J,label:"contentLoadGoogleFonts"},fontFamily:{value:X,label:"contentFontFamily"},fontWeight:{value:Q,label:"contentFontWeight"},fontStyle:{value:Xe,label:"contentFontStyle"},transform:{value:$e,label:"contentTransform"},decoration:{value:Ye,label:"contentDecoration"},fontSizeType:{value:ee,label:"contentFontSizeType"},fontSize:{value:ae,label:"contentFontSize"},fontSizeMobile:{value:ie,label:"contentFontSizeMobile"},fontSizeTablet:{value:le,label:"contentFontSizeTablet"},lineHeightType:{value:te,label:"contentLineHeightType"},lineHeight:{value:oe,label:"contentLineHeight"},lineHeightMobile:{value:re,label:"contentLineHeightMobile"},lineHeightTablet:{value:ne,label:"contentLineHeightTablet"},letterSpacing:{value:rt,label:"contentLetterSpacing"},letterSpacingTablet:{value:st,label:"contentLetterSpacingTablet"},letterSpacingMobile:{value:ct,label:"contentLetterSpacingMobile"},letterSpacingType:{value:ut,label:"contentLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Star","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Active Color","ultimate-addons-for-gutenberg"),colorValue:k,data:{value:k,label:"starColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Inactive Color","ultimate-addons-for-gutenberg"),colorValue:Ae,data:{value:Ae,label:"starActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Outline Color","ultimate-addons-for-gutenberg"),colorValue:Ge,data:{value:Ge,label:"starOutlineColor"},setAttributes:a})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,Hx({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:se,label:"topPadding"},valueRight:{value:ue,label:"rightPadding"},valueBottom:{value:ce,label:"bottomPadding"},valueLeft:{value:pe,label:"leftPadding"},valueTopTablet:{value:fe,label:"paddingTopTablet"},valueRightTablet:{value:ve,label:"paddingRightTablet"},valueBottomTablet:{value:he,label:"paddingBottomTablet"},valueLeftTablet:{value:_e,label:"paddingLeftTablet"},valueTopMobile:{value:de,label:"paddingTopMobile"},valueRightMobile:{value:me,label:"paddingRightMobile"},valueBottomMobile:{value:be,label:"paddingBottomMobile"},valueLeftMobile:{value:ye,label:"paddingLeftMobile"},unit:{value:Se,label:"paddingUnit"},mUnit:{value:ke,label:"mobilePaddingUnit"},tUnit:{value:we,label:"tabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:Te,label:"spacingLink"}})))),React.createElement(il,Hx({},rl,{parentProps:e})))))}),Dx=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))},Nx=e=>{const{ID:t,items:a,summaryTitle:l,summaryDescription:i,starCount:o,setItems:n,setSummaryDescription:s,setSummaryTitle:c,setTitle:u,setDescription:p,setAuthorName:d,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,ctaTarget:f,ctaLink:h,setActiveStarIndex:v,rTitle:_,rContent:T,rAuthor:C,headingTag:S,image_icon_html:k,showfeature:w,imageEnabled:P,descriptionEnabled:x,showauthor:A}=e,{average:G}=e.state,M=a.map(e=>e.value).reduce((e,t)=>e+t)/a.length;G!==M&&e.setStateValue({average:M});let R="_self";return f&&(R="_blank"),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:h,className:"uagb-rating-link-wrapper",target:R,rel:"noopener noreferrer"},React.createElement(ge.RichText,{tagName:S,placeholder:Object(r.__)("Title of the review","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:_,className:"uagb-rating-title",onChange:e=>u(e)})),!0===x&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("Review Description","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:T,className:"uagb-rating-desc",onChange:e=>p(e)}),!0===A&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("Review Author","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:C,className:"uagb-rating-author",onChange:e=>d(e)}),!0===P&&React.createElement("div",{className:"uagb-rating__source-wrap"},k),a.map((l,i)=>!0===w&&React.createElement("div",{className:"uagb_review_entry",key:i},React.createElement(ge.RichText,{style:{marginRight:"auto"},placeholder:Object(r.__)("Edit feature","ultimate-addons-for-gutenberg"),value:l.label,onChange:e=>n([...a.slice(0,i),{label:e,value:l.value},...a.slice(i+1)])}),React.createElement("div",{style:{marginLeft:"auto",minWidth:a.length>1?120:100}},React.createElement(Dx,{id:`${t}-${i}`,key:i,value:l.value,limit:o,setValue:t=>{const o=[...a.slice(0,i),{label:l.label,value:t},...a.slice(i+1)];n(o),v(i),e.setStateValue({average:o.map(e=>e.value).reduce((e,t)=>e+t)/o.length})},inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,state:e.starState,setStateValue:e.starSetStateValue}),a.length>1&&React.createElement("div",{className:"dashicons dashicons-trash",onClick:()=>{const t=a.slice(0,i).concat(a.slice(i+1,a.length));n(t),e.setStateValue({average:t.map(e=>e.value).reduce((e,t)=>e+t)/t.length})}})))),!0===w&&React.createElement("div",{title:Object(r.__)("Insert new review entry","ultimate-addons-for-gutenberg"),onClick:()=>{n([...a,{label:"",value:0}]),e.setStateValue({average:G/(a.length+1)})},className:"uagb_review_add_entry dashicons dashicons-plus-alt"}),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText,{className:"uagb_review_summary_title",placeholder:Object(r.__)("Title of the summary goes here","ultimate-addons-for-gutenberg"),tagName:"p",onChange:e=>c(e),value:l}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText,{placeholder:Object(r.__)("Summary of the review goes here","ultimate-addons-for-gutenberg"),onChange:e=>s(e),value:i}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*G)/10),React.createElement(Dx,{id:t+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:G,limit:o,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,state:e.starState,setStateValue:e.starSetStateValue})))))},Ix=a(135),Vx=0,Wx={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},qx={};qx.locals=Ix.a.locals||{},qx.use=function(){return Vx++||(jx=we()(Ix.a,Wx)),qx},qx.unuse=function(){Vx>0&&!--Vx&&(jx(),jx=null)};var Zx=qx,$x=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Zx.use(),()=>{Zx.unuse()}),[]);const{attributes:{block_id:t,authorName:a,itemName:l,description:i,parts:o,starCount:n,summaryTitle:r,summaryDescription:s,inactiveStarColor:c,activeStarColor:u,ctaLink:p,ctaTarget:d,rTitle:b,rContent:g,rAuthor:m,headingTag:y,mainimage:f,imgSize:h,showFeature:v,showAuthor:_,starOutlineColor:T,enableDescription:C,enableImage:S,imgTagHeight:k,imgTagWidth:w},setAttributes:P,isSelected:x,className:A,deviceType:G}=e,M={average:e.attributes.parts.map(e=>e.value).reduce((e,t)=>e+t)/e.attributes.parts.length},[R,U]=Object(B.useState)(M),E={displayValue:e.value,displayColor:e.activeStarColor},[O,L]=Object(B.useState)(E);let H="",F="",j="";var z,D;void 0!==e.attributes.mainimage&&null!==e.attributes.mainimage&&""!==e.attributes.mainimage&&(H=e.attributes.mainimage.url,F=e.attributes.mainimage.title,j=null!==(z=e.attributes.mainimage)&&void 0!==z&&z.alt?null===(D=e.attributes.mainimage)||void 0===D?void 0:D.alt:"");let N="";if(""!==H){const t=e.attributes.mainimage.sizes,a=e.attributes.imgSize;N=void 0!==t&&void 0!==t[a]?t[a].url:H}Object(B.useEffect)(()=>{Zg(N,P)},[N]);let I="";return f&&f.url&&(I=React.createElement("img",{className:"uagb-review__source-image",src:N,title:F,width:w,height:k,loading:"lazy",alt:j})),React.createElement("div",{className:Be()(A,"uagb-ratings__outer-wrap","uagb-block-"+t,"uagb-editor-preview-mode-"+G.toLowerCase())},React.createElement(Nx,{rTitle:b,setTitle:e=>P({rTitle:e}),ctaLink:p,ctaTarget:d,rContent:g,setDescription:e=>P({rContent:e}),rAuthor:m,setAuthorName:e=>P({rAuthor:e}),headingTag:y,mainimage:f,imgSize:h,image_icon_html:I,isSelected:x,authorName:a,itemName:l,description:i,descriptionEnabled:C,ID:t,imageEnabled:S,items:o,starCount:n,summaryTitle:r,summaryDescription:s,inactiveStarColor:c,activeStarColor:u,selectedStarColor:u,starOutlineColor:T,setItemName:e=>P({itemName:e}),setImage:e=>P({imgID:e.id,imgURL:e.url,imgAlt:e.alt}),setItems:e=>P({parts:e}),setSummaryTitle:e=>P({summaryTitle:e}),setSummaryDescription:e=>P({summaryDescription:e}),hasFocus:x,setEditable:e=>U({editable:e}),setActiveStarIndex:e=>U({editedStar:e}),showfeature:v,showauthor:_,state:R,setStateValue:U,starState:O,starSetStateValue:L}))}),Yx=Object(B.memo)(e=>{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,contentLoadGoogleFonts:s,contentFontFamily:c,contentFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};d=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};b=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};p=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,d,b,p)}),Kx=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{parts:l,itemType:i,summaryDescription:o,starCount:n,reviewPublisher:r,datepublish:s,rTitle:c,rContent:u,rAuthor:p,isbn:d,provider:b,sku:g,brand:m,datecreated:y,directorname:f,appCategory:h,operatingSystem:v,aggregateType:_,offerType:T,offerPrice:C,itemSubtype:S,mainimage:k,identifierType:w,identifier:P,ctaLink:x,offerExpiry:A,offerCurrency:G,offerStatus:M,UAGHideDesktop:R,UAGHideTab:U,UAGHideMob:E,contentVrPadding:O,contentHrPadding:L,topPadding:H,bottomPadding:F,rightPadding:j,leftPadding:z,enableSchema:D,items:N,showFeature:I,showAuthor:V,enableDescription:W,enableImage:q,bookAuthorName:Z,courseMode:$,repeatCount:Y,repeatFrequency:K,categoryOfCourse:J,courseLocation:X},setAttributes:Q,deviceType:ee}=e,te=()=>{const e=l.map(e=>e.value).reduce((e,t)=>e+t)/l.length,t=l.length;let a="";a=["Product","SoftwareApplication","Book"].includes(i)&&"None"!==S&&""!==S?S:i;const R={"@context":"https://schema.org/","@type":"Review",reviewBody:o,description:u,itemReviewed:[],reviewRating:{"@type":"Rating",ratingValue:e,worstRating:"0",bestRating:n},author:{"@type":"Person",name:p},publisher:r,datePublished:s,url:x};switch(i){case"Book":R.itemReviewed={"@type":a,name:c,description:u,image:[],author:p,isbn:d};break;case"Course":R.itemReviewed={"@type":i,name:c,description:u,image:[],provider:{"@type":"Organization",name:b},offers:[{"@type":"Offer",category:J}],hasCourseInstance:[{"@type":"CourseInstance",courseMode:$,courseSchedule:{"@type":"Schedule",repeatCount:Y,repeatFrequency:K}}]};break;case"Product":R.itemReviewed={"@type":a,name:c,description:u,image:[],sku:g,brand:{"@type":"Brand",name:m},offers:[]};break;case"Movie":R.itemReviewed={"@type":i,name:c,dateCreated:y,director:{"@type":"Person",name:f}};break;case"SoftwareApplication":R.itemReviewed={"@type":a,name:c,applicationCategory:h,operatingSystem:v,aggregateRating:{"@type":_,ratingValue:e,ratingCount:t},offers:{"@type":T,price:C,url:x,priceCurrency:G}}}k&&(R.itemReviewed.image=k.url),"Course"===i&&(R.itemReviewed.hasCourseInstance[0].location=X,R.provider={"@type":"Organization",name:b}),"Product"===i&&(R.itemReviewed[w]=P,R.itemReviewed.offers={"@type":T,price:C,url:x,priceValidUntil:A,priceCurrency:G,availability:M}),Q({schema:JSON.stringify(R)})};Object(B.useEffect)(()=>{var e;O&&(void 0===H&&Q({topPadding:O}),void 0===F&&Q({bottomPadding:O})),L&&(void 0===j&&Q({rightPadding:L}),void 0===z&&Q({leftPadding:L}));const t=null===(e=document.getElementsByClassName("editor-post-publish-button"))||void 0===e?void 0:e[0];t&&t.addEventListener("click",te)},[]),Object(B.useEffect)(()=>{var e;const t=document.querySelector(".uagb-rating-link-wrapper");null!==t&&t.addEventListener("click",(function(e){e.preventDefault()}));const a=null===(e=document.getElementsByClassName("editor-post-publish-button"))||void 0===e?void 0:e[0];if(a)return a.addEventListener("click",te),()=>{null==a||a.removeEventListener("click",te)}},[a,ee]),Object(B.useEffect)(()=>{ys()},[ee]),Object(B.useEffect)(()=>{he(e)},[R,U,E,ee]),N&&N!==JSON.stringify(l)&&1===l.length&&""===l[0].label&&0===l[0].value&&Q({parts:JSON.parse(N),items:'[{"label":"","value":0}]'});const le=Object(B.useMemo)(()=>function(e,t){const a=t.toLowerCase(),{block_id:l,starColor:i,descColor:o,titleColor:n,contentColor:r,headFontFamily:s,headFontWeight:c,headFontSizeType:u,headLineHeightType:p,headFontSize:d,headFontSizeTablet:b,headFontSizeMobile:g,headLineHeight:m,headLineHeightTablet:y,headLineHeightMobile:f,subHeadFontFamily:h,subHeadFontWeight:v,subHeadFontSize:_,subHeadFontSizeType:T,subHeadFontSizeMobile:C,subHeadFontSizeTablet:S,subHeadLineHeight:k,subHeadLineHeightType:w,subHeadLineHeightMobile:P,subHeadLineHeightTablet:x,contentFontFamily:A,contentFontWeight:G,contentFontSizeType:M,contentLineHeightType:R,contentFontSize:B,contentFontSizeTablet:U,contentFontSizeMobile:E,contentLineHeight:O,contentLineHeightTablet:L,contentLineHeightMobile:H,topPadding:F,bottomPadding:j,rightPadding:z,leftPadding:D,paddingTopMobile:N,paddingBottomMobile:I,paddingRightMobile:V,paddingLeftMobile:W,paddingTopTablet:q,paddingBottomTablet:Z,paddingRightTablet:$,paddingLeftTablet:Y,paddingUnit:K,mobilePaddingUnit:J,tabletPaddingUnit:X,authorColor:Q,summaryColor:ee,starActiveColor:te,starOutlineColor:le,overallAlignment:ie,headTransform:oe,headDecoration:ne,subHeadTransform:re,subHeadDecoration:se,contentTransform:ce,contentDecoration:ue,headFontStyle:pe,subHeadFontStyle:de,contentFontStyle:be,headLetterSpacing:ge,headLetterSpacingTablet:me,headLetterSpacingMobile:ye,headLetterSpacingType:fe,subHeadLetterSpacing:he,subHeadLetterSpacingTablet:ve,subHeadLetterSpacingMobile:_e,subHeadLetterSpacingType:Te,contentLetterSpacing:Ce,contentLetterSpacingTablet:Se,contentLetterSpacingMobile:ke,contentLetterSpacingType:we}=e;let Pe={},xe={};const Ae={" .uagb-star-inner-container svg":{fill:i}," .uagb-avg-review-star-inner-container svg":{fill:i}," .uagb-rating-title":{"font-size":Vr(d,u),"font-weight":c,"font-family":s,"font-style":pe,"text-decoration":ne,"text-transform":oe,"line-height":Vr(m,p),"letter-spacing":Vr(ge,fe),color:n}," .uagb_review_entry":{"font-size":Vr(d,u),"font-weight":c,"font-family":s,"font-style":pe,"text-decoration":ne,"text-transform":oe,"line-height":Vr(m,p),"letter-spacing":Vr(ge,fe)}," .uagb-rating-desc":{"font-size":Vr(_,T),"font-weight":v,"font-family":h,"font-style":de,"text-decoration":se,"text-transform":re,"line-height":Vr(k,w),"letter-spacing":Vr(he,Te),color:o}," .uagb-rating-author":{"font-size":Vr(_,T),"font-weight":v,"font-family":h,"font-style":de,"text-decoration":se,"text-transform":re,"line-height":Vr(k,w),"letter-spacing":Vr(he,Te),color:Q}," .uagb_review_block":{"padding-left":Vr(D,K),"padding-right":Vr(z,K),"padding-top":Vr(F,K),"padding-bottom":Vr(j,K),"text-align":ie}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":Vr(B,M),"font-weight":G,"font-family":A,"font-style":be,"text-decoration":ue,"text-transform":ce,"line-height":Vr(O,R),"letter-spacing":Vr(Ce,we),color:ee}," .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:le,fill:te}};xe={" .uagb-rating-title, .uagb_review_entry":{"font-size":Vr(g,u),"line-height":Vr(f,p),"letter-spacing":Vr(ye,fe)}," .uagb-rating-desc, .uagb-rating-author":{"font-size":Vr(C,T),"line-height":Vr(P,w),"letter-spacing":Vr(_e,Te)}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":Vr(E,M),"line-height":Vr(H,R),"letter-spacing":Vr(ke,we)}," .uagb_review_block":{"padding-left":Vr(W,J),"padding-right":Vr(V,J),"padding-top":Vr(N,J),"padding-bottom":Vr(I,J)}},Pe={" .uagb-rating-title, .uagb_review_entry":{"font-size":Vr(b,u),"line-height":Vr(y,p),"letter-spacing":Vr(me,fe)}," .uagb-rating-desc, .uagb-rating-author":{"font-size":Vr(S,T),"line-height":Vr(x,w),"letter-spacing":Vr(ve,Te)}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":Vr(U,M),"line-height":Vr(L,R),"letter-spacing":Vr(Se,we)}," .uagb_review_block":{"padding-left":Vr(Y,X),"padding-right":Vr($,X),"padding-top":Vr(q,X),"padding-bottom":Vr(Z,X)}};const Ge=".editor-styles-wrapper .uagb-block-"+l;let Me=ae(Ae,Ge);return"tablet"!==a&&"mobile"!==a||(Me+=ae(Pe,""+Ge,!0,"tablet"),"mobile"===a&&(Me+=ae(xe,""+Ge,!0,"mobile"))),Me}(a,ee),[a,ee]);return React.createElement(React.Fragment,null,React.createElement(Lx,{enableSchema:D,itemType:i,rTitle:c,enableDescription:W,rContent:u,enableImage:q,mainimage:k,sku:g,brand:m,starCount:n,showAuthor:V,rAuthor:p,showfeature:I,aggregateType:_,offerType:T,datepublish:s,offerCurrency:G,offerPrice:C,ctaLink:x,offerExpiry:A,identifier:P,isbn:d,bookAuthorName:Z,directorname:f,datecreated:y,provider:b,appCategory:h,operatingSystem:v,reviewPublisher:r}),React.createElement(me,{blockStyling:le}),React.createElement(Yx,{attributes:a}),t&&React.createElement(zx,e),React.createElement($x,e))}),Jx=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))};a(369);class Xx extends B.Component{constructor(e){super(e),this.state={displayValue:this.props.value,displayColor:this.props.activeStarColor},this.mouseHover=this.mouseHover.bind(this),this.mouseLeave=this.mouseLeave.bind(this),this.mouseClick=this.mouseClick.bind(this)}mouseHover(e){this.setState({displayValue:e+(this.props.value-e==1?.5:1),displayColor:this.props.selectedStarColor})}mouseLeave(){this.setState({displayValue:this.props.value,displayColor:this.props.activeStarColor})}mouseClick(e){const{setValue:t,value:a}=this.props;t(a===e+1?e+.5:e+1),this.setState({displayValue:a===e+1?e+.5:e+1})}componentWillReceiveProps(e){const{value:t,activeStarColor:a}=e;this.props.onHover||this.state.displayValue!==t?this.setState({displayValue:t,displayColor:a}):this.setState({displayColor:a})}render(){const{displayValue:e}=this.state,{limit:t,id:a,className:l,inactiveStarColor:i,onHover:o,onClick:n,style:r,starOutlineColor:s}=this.props;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},r)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>o||this.mouseHover(t),onMouseOut:()=>this.mouseLeave(),onClick:()=>n||this.mouseClick(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(e-t>0?e-t<1?e-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:s}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:this.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:s}))))}}B.Component;var Qx=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))},eA=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))},tA=[{attributes:{ID:{type:"string",default:""},itemType:{type:"string",default:Object(r.__)("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(r.__)("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(r.__)("List Of Features:")},featuresAvgText:{type:"string",default:Object(r.__)("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(r.__)("Instock")},availabilitytext:{type:"string",default:Object(r.__)("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"},deviceType:{type:"string",default:"Desktop"},paddingUnit:{type:"string",default:"px"}},save:function(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,ID:u,parts:p,summaryTitle:d,summaryDescription:b,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f,schema:h,block_id:v,showAuthor:_,showFeature:T,enableDescription:C,enableImage:S,ctaTarget:k,ctaLink:w}=t,P=p.map(e=>e.value).reduce((e,t)=>e+t)/p.length;let x="",A="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(x=t.mainimage.url,A=t.mainimage.title);let G="";if(""!==x){let e=t.mainimage.sizes,a=t.imgSize;G=void 0!==e&&void 0!==e[a]?e[a].url:x}let M="";n&&n.url&&(M=React.createElement("img",{className:"uagb-howto__source-image",src:G,title:A}));let R="";return k&&(R="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+v.substr(0,8))},l&&React.createElement("script",{type:"application/ld+json"},h),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:w,className:Be()("uagb-rating-link-wrapper"),target:R,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===C&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===_&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===S&&React.createElement("div",{className:"uagb-rating__source-wrap"},M),p.map((e,t)=>!0===T&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:p.length>1?120:100}},React.createElement(Xx,{id:""+t,key:t,value:e.value,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:b}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*P)/10),React.createElement(Xx,{id:u+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:P,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f}))))))}},{attributes:Xt,save:function(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,ID:u,parts:p,summaryTitle:d,summaryDescription:b,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f,schema:h,block_id:v,showAuthor:_,showFeature:T,enableDescription:C,enableImage:S,ctaTarget:k,ctaLink:w}=t,P=p.map(e=>e.value).reduce((e,t)=>e+t)/p.length;let x="",A="",G="";var M,R;void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(x=t.mainimage.url,A=t.mainimage.title,G=null!==(M=e.attributes.mainimage)&&void 0!==M&&M.alt?null===(R=e.attributes.mainimage)||void 0===R?void 0:R.alt:"");let B="";if(""!==x){const e=t.mainimage.sizes,a=t.imgSize;B=void 0!==e&&void 0!==e[a]?e[a].url:x}let U="";n&&n.url&&(U=React.createElement("img",{className:"uagb-howto__source-image",src:B,title:A,alt:G}));let E="";return k&&(E="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+v.substr(0,8))},l&&React.createElement("script",{type:"application/ld+json"},h),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:w,className:Be()("uagb-rating-link-wrapper"),target:E,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===C&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===_&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===S&&React.createElement("div",{className:"uagb-rating__source-wrap"},U),p.map((e,t)=>!0===T&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:p.length>1?120:100}},React.createElement(Qx,{id:""+t,key:t,value:e.value,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:b}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*P)/10),React.createElement(Qx,{id:u+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:P,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f}))))))}},{attributes:Xt,save(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,parts:u,summaryTitle:p,summaryDescription:d,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,schema:f,block_id:h,showAuthor:v,showFeature:_,enableDescription:T,enableImage:C,ctaTarget:S,ctaLink:k}=t,w=u.map(e=>e.value).reduce((e,t)=>e+t)/u.length;let P="",x="",A="";var G,M;void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(P=t.mainimage.url,x=t.mainimage.title,A=null!==(G=e.attributes.mainimage)&&void 0!==G&&G.alt?null===(M=e.attributes.mainimage)||void 0===M?void 0:M.alt:"");let R="";if(""!==P){const e=t.mainimage.sizes,a=t.imgSize;R=void 0!==e&&void 0!==e[a]?e[a].url:P}let B="";n&&n.url&&(B=React.createElement("img",{className:"uagb-howto__source-image",src:R,title:x,alt:A}));let U="";return S&&(U="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+h.substr(0,8))},l&&React.createElement("script",{type:"application/ld+json"},f),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:k,className:Be()("uagb-rating-link-wrapper"),target:U,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===T&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===v&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===C&&React.createElement("div",{className:"uagb-rating__source-wrap"},B),u.map((e,t)=>!0===_&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:u.length>1?120:100}},React.createElement(eA,{id:`${h.substr(0,8)}-${t}`,key:t,value:e.value,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:p}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*w)/10),React.createElement(eA,{id:h.substr(0,8)+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:w,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y}))))))}}];let aA={};aA=Object(F.applyFilters)("uagb/review",ss(aA)),Object(de.registerBlockType)("uagb/review",{...aA,title:Object(r.__)("Review","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add reviews to items with Schema support.","ultimate-addons-for-gutenberg"),icon:se.review,keywords:[Object(r.__)("ratings","ultimate-addons-for-gutenberg"),Object(r.__)("review","ultimate-addons-for-gutenberg"),Object(r.__)("schema","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Xt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"review"}):React.createElement(Kx,e),save:function(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,parts:u,summaryTitle:p,summaryDescription:d,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,schema:f,block_id:h,showAuthor:v,showFeature:_,enableDescription:T,enableImage:C,ctaTarget:S,ctaLink:k,imgTagHeight:w,imgTagWidth:P}=t,x=u.map(e=>e.value).reduce((e,t)=>e+t)/u.length;let A="",G="",M="";var R,B;void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(A=t.mainimage.url,G=t.mainimage.title,M=null!==(R=e.attributes.mainimage)&&void 0!==R&&R.alt?null===(B=e.attributes.mainimage)||void 0===B?void 0:B.alt:"");let U="";if(""!==A){const e=t.mainimage.sizes,a=t.imgSize;U=void 0!==e&&void 0!==e[a]?e[a].url:A}let E="";n&&n.url&&(E=React.createElement("img",{className:"uagb-howto__source-image",src:U,title:G,width:P,height:w,loading:"lazy",alt:M}));let O="";return S&&(O="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+h)},l&&React.createElement("script",{type:"application/ld+json"},f),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:k,className:Be()("uagb-rating-link-wrapper"),target:O,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===T&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===v&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===C&&React.createElement("div",{className:"uagb-rating__source-wrap"},E),u.map((e,t)=>!0===_&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:u.length>1?120:100}},React.createElement(Jx,{id:`${h}-${t}`,key:t,value:e.value,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:p}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*x)/10),React.createElement(Jx,{id:h+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:x,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y}))))))},deprecated:tA}),a(75);const lA=e=>{let t={};switch(e){case"left":t={"margin-left":0,"margin-right":"auto"};break;case"center":t={"margin-left":"auto","margin-right":"auto"};break;case"right":t={"margin-right":0,"margin-left":"auto"}}return t};var iA=Object(B.memo)(e=>{let{attributes:t}=e;const{elementTextLoadGoogleFonts:a,elementTextFontFamily:l,elementTextFontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)});function oA(){return(oA=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{separatorStyle:i,separatorAlign:o,separatorAlignTablet:n,separatorAlignMobile:s,separatorWidth:c,separatorWidthTablet:u,separatorWidthMobile:p,separatorWidthType:d,separatorColor:b,separatorBorderHeight:g,separatorBorderHeightMobile:m,separatorBorderHeightTablet:y,separatorBorderHeightUnit:f,separatorSize:h,separatorSizeMobile:v,separatorSizeTablet:_,separatorSizeType:T,elementType:C,separatorText:S,separatorTextTag:k,separatorIcon:w,elementPosition:P,elementSpacing:x,elementSpacingTablet:A,elementSpacingMobile:G,elementSpacingUnit:M,elementTextLoadGoogleFonts:R,elementTextFontFamily:B,elementTextFontWeight:U,elementTextFontSize:E,elementTextFontSizeType:O,elementTextFontSizeTablet:L,elementTextFontSizeMobile:H,elementTextLineHeightType:F,elementTextLineHeight:j,elementTextLineHeightTablet:z,elementTextLineHeightMobile:D,elementTextFontStyle:N,elementTextLetterSpacing:I,elementTextLetterSpacingTablet:V,elementTextLetterSpacingMobile:W,elementTextLetterSpacingType:q,elementTextDecoration:Z,elementTextTransform:$,elementColor:Y,elementIconWidth:K,elementIconWidthTablet:J,elementIconWidthMobile:X,elementIconWidthType:Q,blockTopPadding:ee,blockRightPadding:te,blockLeftPadding:ae,blockBottomPadding:le,blockTopPaddingTablet:ie,blockRightPaddingTablet:oe,blockLeftPaddingTablet:ne,blockBottomPaddingTablet:re,blockTopPaddingMobile:se,blockRightPaddingMobile:ce,blockLeftPaddingMobile:ue,blockBottomPaddingMobile:pe,blockPaddingUnit:de,blockPaddingUnitTablet:be,blockPaddingUnitMobile:me,blockPaddingLink:ye,blockTopMargin:fe,blockRightMargin:he,blockLeftMargin:ve,blockBottomMargin:_e,blockTopMarginTablet:Te,blockRightMarginTablet:Se,blockLeftMarginTablet:ke,blockBottomMarginTablet:we,blockTopMarginMobile:Pe,blockRightMarginMobile:xe,blockLeftMarginMobile:Ae,blockBottomMarginMobile:Ge,blockMarginUnit:Me,blockMarginUnitTablet:Re,blockMarginUnitMobile:Be,blockMarginLink:Ue}=t;return React.createElement("div",null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:i,label:"separatorStyle"},help:"none"!==i&&"dotted"!==i&&"dashed"!==i&&"double"!==i&&"solid"!==i&&Object(r.__)("Note: Please set Separator Height for proper thickness.","ultimate-addons-for-gutenberg"),setAttributes:a,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"rectangles",label:Object(r.__)("Rectangles","ultimate-addons-for-gutenberg")},{value:"parallelogram",label:Object(r.__)("Parallelogram","ultimate-addons-for-gutenberg")},{value:"slash",label:Object(r.__)("Slash","ultimate-addons-for-gutenberg")},{value:"leaves",label:Object(r.__)("Leaves","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Add Element","ultimate-addons-for-gutenberg"),data:{value:C,label:"elementType"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")}],showIcons:!1,responsive:!1}),"text"===C&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),data:{value:S,label:"separatorText"},setAttributes:a,value:S}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:k,label:"separatorTextTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]})),"icon"===C&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:w,onChange:e=>a({separatorIcon:e})}))))),React.createElement(il,nl,React.createElement(je,{title:"Separator",initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:o,label:"separatorAlign"},tablet:{value:n,label:"separatorAlignTablet"},mobile:{value:s,label:"separatorAlignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"separatorWidth"},tablet:{value:u,label:"separatorWidthTablet"},mobile:{value:p,label:"separatorWidthMobile"}},min:0,max:"%"===d?100:500,unit:{value:d,label:"separatorWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),"solid"!==i&&"double"!==i&&"dotted"!==i&&"dashed"!==i&&"none"!==i&&React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"separatorSize"},tablet:{value:_,label:"separatorSizeTablet"},mobile:{value:v,label:"separatorSizeMobile"}},min:0,max:"%"===T?100:500,unit:{value:T,label:"separatorSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),"none"!==i&&React.createElement(tl,{label:Object(r.__)("Separator Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:g,label:"separatorBorderHeight"},tablet:{value:y,label:"separatorBorderHeightTablet"},mobile:{value:m,label:"separatorBorderHeightMobile"}},min:0,max:"%"===T?100:500,unit:{value:f,label:"separatorBorderHeightUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),"none"!==i&&React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"separatorColor"},setAttributes:a})),"none"!==C&&React.createElement(je,{title:"text"===C?Object(r.__)("Text","ultimate-addons-for-gutenberg"):Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:P,label:"elementPosition"},tablet:{value:P,label:"elementPosition"},mobile:{value:P,label:"elementPosition"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Y||"",data:{value:Y,label:"elementColor"},setAttributes:a}),"text"===C&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:R,label:"elementTextLoadGoogleFonts"},fontFamily:{value:B,label:"elementTextFontFamily"},fontWeight:{value:U,label:"elementTextFontWeight"},fontStyle:{value:N,label:"elementTextFontStyle"},fontSizeType:{value:O,label:"elementTextFontSizeType"},fontSize:{value:E,label:"elementTextFontSize"},fontSizeMobile:{value:H,label:"elementTextFontSizeMobile"},fontSizeTablet:{value:L,label:"elementTextFontSizeTablet"},lineHeightType:{value:F,label:"elementTextLineHeightType"},lineHeight:{value:j,label:"elementTextLineHeight"},lineHeightMobile:{value:D,label:"elementTextLineHeightMobile"},lineHeightTablet:{value:z,label:"elementTextLineHeightTablet"},letterSpacing:{value:I,label:"elementTextLetterSpacing"},letterSpacingTablet:{value:V,label:"elementTextLetterSpacingTablet"},letterSpacingMobile:{value:W,label:"elementTextLetterSpacingMobile"},letterSpacingType:{value:q,label:"elementTextLetterSpacingType"},transform:{value:$,label:"elementTextTransform"},decoration:{value:Z,label:"elementTextDecoration"}}),"icon"===C&&React.createElement(tl,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"elementIconWidth"},tablet:{value:J,label:"elementIconWidthTablet"},mobile:{value:X,label:"elementIconWidthMobile"}},min:0,max:100,unit:{value:Q,label:"elementIconWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:x,label:"elementSpacing"},tablet:{value:A,label:"elementSpacingTablet"},mobile:{value:G,label:"elementSpacingMobile"}},min:0,max:500,unit:{value:M,label:"elementSpacingUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ee,label:"blockTopPadding"},valueRight:{value:te,label:"blockRightPadding"},valueBottom:{value:le,label:"blockBottomPadding"},valueLeft:{value:ae,label:"blockLeftPadding"},valueTopTablet:{value:ie,label:"blockTopPaddingTablet"},valueRightTablet:{value:oe,label:"blockRightPaddingTablet"},valueBottomTablet:{value:re,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:ne,label:"blockLeftPaddingTablet"},valueTopMobile:{value:se,label:"blockTopPaddingMobile"},valueRightMobile:{value:ce,label:"blockRightPaddingMobile"},valueBottomMobile:{value:pe,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:ue,label:"blockLeftPaddingMobile"},unit:{value:de,label:"blockPaddingUnit"},mUnit:{value:me,label:"blockPaddingUnitMobile"},tUnit:{value:be,label:"blockPaddingUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:ye,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:fe,label:"blockTopMargin"},valueRight:{value:he,label:"blockRightMargin"},valueBottom:{value:_e,label:"blockBottomMargin"},valueLeft:{value:ve,label:"blockLeftMargin"},valueTopTablet:{value:Te,label:"blockTopMarginTablet"},valueRightTablet:{value:Se,label:"blockRightMarginTablet"},valueBottomTablet:{value:we,label:"blockBottomMarginTablet"},valueLeftTablet:{value:ke,label:"blockLeftMarginTablet"},valueTopMobile:{value:Pe,label:"blockTopMarginMobile"},valueRightMobile:{value:xe,label:"blockRightMarginMobile"},valueBottomMobile:{value:Ge,label:"blockBottomMarginMobile"},valueLeftMobile:{value:Ae,label:"blockLeftMarginMobile"},unit:{value:Me,label:"blockMarginUnit"},mUnit:{value:Be,label:"blockMarginUnitMobile"},tUnit:{value:Re,label:"blockMarginUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ue,label:"blockMarginLink"}}))),React.createElement(il,oA({},rl,{parentProps:e})))))}),rA=function(e){const t={rectangles:"url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.4 0H16L9.6 16H0L6.4 0Z' fill='black'/%3E%3C/svg%3E\")",parallelogram:"url(\"data:image/svg+xml,%3Csvg width='8' height='16' viewBox='0 0 8 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='8' height='16' fill='black'/%3E%3C/svg%3E\")",slash:"url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.29312 16.9999L17 6.29302M14.2931 16.9999L17 14.293M-0.707031 15.9999L16.0002 -0.707153M8.00017 -0.707153L-0.706882 7.9999' stroke='black'/%3E%3C/svg%3E\")",leaves:"url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_2356_5631)'%3E%3Cpath d='M15 1C10.5 1 9 2.5 9 7C13.5 7 15 5.5 15 1Z' stroke='black'/%3E%3Cpath d='M1 1C5.5 1 7 2.5 7 7C2.5 7 1 5.5 1 1Z' stroke='black'/%3E%3Cpath d='M15 15C10.5 15 9 13.5 9 9C13.5 9 15 10.5 15 15Z' stroke='black'/%3E%3Cpath d='M1 15C5.5 15 7 13.5 7 9C2.5 9 1 10.5 1 15Z' stroke='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2356_5631'%3E%3Crect width='16' height='16' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")"};return e in t?t[e]:""},sA=Object(B.memo)(e=>{const{attributes:{block_id:t,elementType:a,separatorText:l,separatorTextTag:i,separatorStyle:o,separatorIcon:n},className:r,deviceType:s}=e,c=rA(o),u=""+i,p="none"!==a?"wp-block-uagb-separator--"+a:"",d=Object(ge.useBlockProps)({className:Z([r,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+t,"wp-block-uagb-separator",p])});return React.createElement("div",d,React.createElement("div",{className:"uagb-separator-spacing-wrapper"},React.createElement("div",{className:"wp-block-uagb-separator__inner",style:{"--my-background-image":""+c}},"none"!==a&&React.createElement("div",{className:"wp-block-uagb-separator-element"},"icon"===a?Ce(n):React.createElement(u,{className:"uagb-html-tag"},l)))))}),cA=Object(L.compose)(fe,ls)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,separatorHeight:n,separatorHeightTablet:r,separatorHeightMobile:s,separatorHeightType:c,blockTopPadding:u,blockBottomPadding:p,blockTopPaddingTablet:d,blockBottomPaddingTablet:b,blockTopPaddingMobile:g,blockBottomPaddingMobile:m,blockPaddingUnit:y,blockPaddingUnitTablet:f,blockPaddingUnitMobile:h},name:v,clientId:_,deviceType:T,setAttributes:C}=e;Object(B.useEffect)(()=>{he(e)},[l,i,o,T]),Object(B.useEffect)(()=>{ys()},[T]),Object(B.useEffect)(()=>{void 0===u&&C({blockTopPadding:n}),void 0===p&&C({blockBottomPadding:n}),void 0===d&&C({blockTopPaddingTablet:r}),void 0===b&&C({blockBottomPaddingTablet:r}),void 0===g&&C({blockTopPaddingMobile:s}),void 0===m&&C({blockBottomPaddingMobile:s}),void 0===y&&C({blockPaddingUnit:c}),void 0===f&&C({blockPaddingUnitTablet:c}),void 0===h&&C({blockPaddingUnitMobile:c}),C({separatorHeight:0,separatorHeightTablet:0,separatorHeightMobile:0})},[]);const S=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,separatorAlign:r,separatorAlignTablet:s,separatorAlignMobile:c,separatorStyle:u,separatorColor:p,separatorWidth:d,separatorWidthTablet:b,separatorWidthMobile:g,separatorWidthType:m,separatorBorderHeight:y,separatorBorderHeightMobile:f,separatorBorderHeightTablet:h,separatorBorderHeightUnit:v,separatorSize:_,separatorSizeTablet:T,separatorSizeMobile:C,separatorSizeType:S,elementType:k,elementPosition:w,elementSpacing:P,elementSpacingTablet:x,elementSpacingMobile:A,elementSpacingUnit:G,elementTextFontFamily:M,elementTextFontWeight:R,elementTextFontSize:B,elementTextFontSizeType:U,elementTextFontSizeTablet:E,elementTextFontSizeMobile:O,elementTextLineHeightType:L,elementTextLineHeight:H,elementTextLineHeightTablet:F,elementTextLineHeightMobile:j,elementTextFontStyle:z,elementTextLetterSpacing:D,elementTextLetterSpacingTablet:N,elementTextLetterSpacingMobile:I,elementTextLetterSpacingType:V,elementTextDecoration:W,elementTextTransform:q,elementColor:Z,elementIconWidth:$,elementIconWidthTablet:Y,elementIconWidthMobile:K,elementIconWidthType:J,blockTopPadding:X,blockRightPadding:Q,blockLeftPadding:ee,blockBottomPadding:te,blockTopPaddingTablet:le,blockRightPaddingTablet:ie,blockLeftPaddingTablet:oe,blockBottomPaddingTablet:ne,blockTopPaddingMobile:re,blockRightPaddingMobile:se,blockLeftPaddingMobile:ce,blockBottomPaddingMobile:ue,blockPaddingUnit:pe,blockPaddingUnitTablet:de,blockPaddingUnitMobile:be,blockTopMargin:ge,blockRightMargin:me,blockLeftMargin:ye,blockBottomMargin:fe,blockTopMarginTablet:he,blockRightMarginTablet:ve,blockLeftMarginTablet:_e,blockBottomMarginTablet:Te,blockTopMarginMobile:Ce,blockRightMarginMobile:Se,blockLeftMarginMobile:ke,blockBottomMarginMobile:we,blockMarginUnit:Pe,blockMarginUnitTablet:xe,blockMarginUnitMobile:Ae}=e,Ge=us(d,"separatorWidth",i),Me=us(b,"separatorWidthTablet",i),Re=us(g,"separatorWidthMobile",i),Be=us(y,"separatorBorderHeight",i),Ue=us(f,"separatorBorderHeightMobile",i),Ee=us(h,"separatorBorderHeightTablet",i),Oe=us(_,"separatorSize",i),Le=us(T,"separatorSizeTablet",i),He=us(C,"separatorSizeMobile",i),Fe={"border-top-width":Vr(Be,v),"-webkit-mask-size":Vr(Oe,S)+" 100%",width:Vr(Ge,m),"border-top-color":p,"border-top-style":u};let je={};const ze={};if("none"===k)je={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{"margin-top":"5px","margin-bottom":"5px",...Fe}};else{const e=lA(r);je={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{width:Vr(Ge,m),...e},".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before":Fe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before":Fe,".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after":Fe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after":Fe},"left"===w&&(ze[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(P,G)},je[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before"]={display:"none"},je[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before"]={display:"none"}),"right"===w&&(ze[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(P,G)},je[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after"]={display:"none"},je[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after"]={display:"none"}),"center"===w&&(ze[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(P,G),"margin-left":Vr(P,G)})}const De={".wp-block-uagb-separator":{"text-align":r},...je,...ze,".wp-block-uagb-separator--text .wp-block-uagb-separator-element .uagb-html-tag":{"font-family":M,"font-style":z,"text-decoration":W,"text-transform":q,"font-weight":R,"font-size":Vr(B,U),"line-height":Vr(H,L),"letter-spacing":Vr(D,V),color:Z,margin:0},".wp-block-uagb-separator--icon .wp-block-uagb-separator-element svg":{"font-size":Vr($,J),width:Vr($,J),height:Vr($,J),"line-height":Vr($,J),color:Z,fill:Z}," .uagb-separator-spacing-wrapper":{"margin-top":Vr(ge,Pe),"margin-right":Vr(me,Pe),"margin-bottom":Vr(fe,Pe),"margin-left":Vr(ye,Pe),"padding-top":Vr(X,pe||"px"),"padding-right":Vr(Q,pe||"px"),"padding-bottom":Vr(te,pe||"px"),"padding-left":Vr(ee,pe||"px")}},Ne={"border-top-width":Vr(Ee,v),"-webkit-mask-size":Vr(Le,S)+" 100%",width:Vr(Me,m),"border-top-color":p,"border-top-style":u};let Ie={};const Ve={};if("none"===k)Ie={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{"margin-top":"5px","margin-bottom":"5px",...Ne}};else{const e=lA(s);Ie={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{width:Vr(Me,m),...e},".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before":Ne,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before":Ne,".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after":Ne,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after":Ne},"left"===w&&(Ve[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(x,G)},Ie[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before"]={display:"none"},Ie[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before"]={display:"none"}),"center"===w&&(Ve[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(x,G),"margin-right":Vr(x,G)}),"right"===w&&(Ve[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(x,G)},Ie[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after"]={display:"none"},Ie[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after"]={display:"none"})}const We={".wp-block-uagb-separator":{"text-align":s},...Ie,...Ve,".wp-block-uagb-separator--text .wp-block-uagb-separator-element .uagb-html-tag":{"font-family":M,"font-style":z,"text-decoration":W,"text-transform":q,"font-weight":R,"font-size":Vr(E,U),"line-height":Vr(F,L),"letter-spacing":Vr(N,V),color:Z,margin:0},".wp-block-uagb-separator--icon .wp-block-uagb-separator-element svg":{"font-size":Vr(Y,J),width:Vr(Y,J),height:Vr(Y,J),"line-height":Vr(Y,J),color:Z,fill:Z}," .uagb-separator-spacing-wrapper":{"margin-top":Vr(he,xe),"margin-right":Vr(ve,xe),"margin-bottom":Vr(Te,xe),"margin-left":Vr(_e,xe),"padding-top":Vr(le,de||"px"),"padding-right":Vr(ie,de||"px"),"padding-bottom":Vr(ne,de||"px"),"padding-left":Vr(oe,de||"px")}},qe={"border-top-width":Vr(Ue,v),"-webkit-mask-size":Vr(He,S)+" 100%",width:Vr(Re,m),"border-top-color":p,"border-top-style":u};let Ze={};const $e={};if("none"===k)Ze={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{"margin-top":"5px","margin-bottom":"5px",...qe}};else{const e=lA(c);Ze={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{width:Vr(Re,m),...e},".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before":qe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before":qe,".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after":qe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after":qe},"left"===w&&($e[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(A,G)},Ze[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before"]={display:"none"},Ze[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before"]={display:"none"}),"center"===w&&($e[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(A,G),"margin-right":Vr(A,G)}),"right"===w&&($e[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(A,G)},Ze[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after"]={display:"none"},Ze[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after"]={display:"none"})}const Ye={".wp-block-uagb-separator":{"text-align":c},...Ze,...$e,".wp-block-uagb-separator--text .wp-block-uagb-separator-element .uagb-html-tag":{"font-family":M,"font-style":z,"text-decoration":W,"text-transform":q,"font-weight":R,"font-size":Vr(O,U),"line-height":Vr(j,L),"letter-spacing":Vr(I,V),color:Z,margin:0},".wp-block-uagb-separator--icon .wp-block-uagb-separator-element svg":{"font-size":Vr(K,J),width:Vr(K,J),height:Vr(K,J),"line-height":Vr(K,J),color:Z,fill:Z}," .uagb-separator-spacing-wrapper":{"margin-top":Vr(Ce,Ae),"margin-right":Vr(Se,Ae),"margin-bottom":Vr(we,Ae),"margin-left":Vr(ke,Ae),"padding-top":Vr(re,be||"px"),"padding-right":Vr(se,be||"px"),"padding-bottom":Vr(ue,be||"px"),"padding-left":Vr(ce,be||"px")}},Ke=".editor-styles-wrapper .uagb-block-"+n;let Je=ae(De,Ke);return"tablet"!==o&&"mobile"!==o||(Je+=ae(We,""+Ke,!0,"tablet"),"mobile"===o&&(Je+=ae(Ye,""+Ke,!0,"mobile"))),Je}(a,0,v,T),[a,T]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:S}),React.createElement(iA,{attributes:a}),t&&React.createElement(nA,e),React.createElement(sA,e))}),uA={from:[{type:"block",blocks:["core/spacer"],transform:e=>{const t={"xxx-small":"0px","xx-small":"0px","x-small":"4px",small:"8px",medium:"12px",large:"22px","x-large":"30px","xx-large":"48px"},a=e.height?e.height.split("|"):[],l=3===a.length?a[2].trim():null,i=l&&t.hasOwnProperty(l),o=i?N(t[l]):N(e.height||"0")/2,n=V(i?t[l]:e.height||"px");return Object(de.createBlock)("uagb/separator",{separatorStyle:"none",separatorHeight:o,separatorHeightType:n})}},{type:"block",blocks:["core/separator"],transform:e=>{var t,a,l,i;const o=e&&e.className&&e.className.includes("is-style-dots")?"dotted":"solid";return Object(de.createBlock)("uagb/separator",{separatorColor:/^#([0-9A-Fa-f]{3}){1,2}$/.test((null==e||null===(t=e.style)||void 0===t||null===(a=t.color)||void 0===a?void 0:a.background)||"")?null==e||null===(l=e.style)||void 0===l||null===(i=l.color)||void 0===i?void 0:i.background:Pc(null==e?void 0:e.backgroundColor),separatorStyle:o,separatorHeight:0,separatorBorderHeight:1,separatorWidth:null==e||!e.className||e.className.includes("is-style-default")?25:100})}},{type:"block",blocks:["core/nextpage"],transform:e=>{let{}=e;return Object(de.createBlock)("uagb/separator",{})}}]},pA=[{attributes:{block_id:{type:"string"},isPreview:{type:"boolean",default:!1},separatorAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment"}},separatorAlignTablet:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},separatorAlignMobile:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},separatorStyle:{type:"string",default:"solid",UAGCopyPaste:{styleType:"separator-style"}},separatorWidth:{type:"number",default:100,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthTablet:{type:"number",default:100,UAGCopyPaste:{styleType:"separator-width-tablet"}},separatorWidthMobile:{type:"number",default:100,UAGCopyPaste:{styleType:"separator-width-mobile"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},separatorBorderHeight:{type:"number",default:3,UAGCopyPaste:{styleType:"separator-height"}},separatorBorderHeightMobile:{type:"number",default:3,UAGCopyPaste:{styleType:"separator-height-mobile"}},separatorBorderHeightTablet:{type:"number",default:3,UAGCopyPaste:{styleType:"separator-height-tablet"}},separatorBorderHeightUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},separatorSize:{type:"number",default:5,UAGCopyPaste:{styleType:"separator-size"}},separatorSizeMobile:{type:"number",default:5,UAGCopyPaste:{styleType:"separator-size-Mobile"}},separatorSizeTablet:{type:"number",default:5,UAGCopyPaste:{styleType:"separator-size-Tablet"}},separatorSizeType:{default:"px",UAGCopyPaste:{styleType:"separator-size-type"}},separatorColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"separator-color"}},separatorHeight:{type:"number",default:10,UAGCopyPaste:{styleType:"separator-gap"}},separatorHeightMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"separator-gap-mobile"}},separatorHeightTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"separator-gap-tablet"}},separatorHeightType:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-gap-unit"}},separatorBottomPadding:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-padding"}},separatorPaddingTopTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-padding-tablet"}},separatorPaddingRightTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-padding-tablet"}},separatorPaddingBottomTablet:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-padding-tablet"}},separatorPaddingLeftTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-padding-tablet"}},separatorPaddingTopMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-padding-mobile"}},separatorPaddingRightMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-padding-mobile"}},separatorPaddingBottomMobile:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-padding-mobile"}},separatorPaddingLeftMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-padding-mobile"}},separatorPaddingUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"separator-padding-unit"}},separatorMobilePaddingUnit:{type:"number",UAGCopyPaste:{styleType:"separator-padding-unit-mobile"},default:"px"},separatorTabletPaddingUnit:{type:"number",UAGCopyPaste:{styleType:"separator-padding-unit-tablet"},default:"px"},separatorPaddingLink:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"separator-padding-link"}},elementType:{type:"string",default:"none"},separatorText:{type:"string",default:Object(r.__)("Divider","ultimate-addons-for-gutenberg")},separatorTextTag:{type:"string",default:"h4",UAGCopyPaste:{styleType:"separator-text-tag"}},separatorIcon:{type:"string",default:"circle-check"},elementPosition:{type:"string",default:"center",UAGCopyPaste:{styleType:"element-position"}},elementSpacing:{type:"number",default:15,UAGCopyPaste:{styleType:"element-spacing"}},elementSpacingTablet:{type:"number",default:15,UAGCopyPaste:{styleType:"element-spacing-tablet"}},elementSpacingMobile:{type:"number",default:15,UAGCopyPaste:{styleType:"element-spacing-mobile"}},elementSpacingUnit:{type:"string",default:"px"},elementTextLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},elementTextFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},elementTextFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},elementTextFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},elementTextFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},elementTextFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},elementTextFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},elementTextLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},elementTextLineHeight:{type:"number",default:1,UAGCopyPaste:{styleType:"main-title-line-height"}},elementTextLineHeightTablet:{type:"number",default:1,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},elementTextLineHeightMobile:{type:"number",default:1,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},elementTextFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},elementTextLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"label-letter-spacing"}},elementTextLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"label-letter-spacing-tablet"}},elementTextLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"label-letter-spacing-mobile"}},elementTextLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-letter-spacing-type"}},elementTextDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},elementTextTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},elementColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},elementIconWidth:{type:"number",default:30,UAGCopyPaste:{styleType:"main-icon-width"}},elementIconWidthTablet:{type:"number",default:30,UAGCopyPaste:{styleType:"main-icon-width-tablet"}},elementIconWidthMobile:{type:"number",default:30,UAGCopyPaste:{styleType:"main-icon-width-mobile"}},elementIconWidthType:{type:"string",default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!1},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!1}},save:function(e){const{attributes:{block_id:t,elementType:a,separatorText:l,separatorTextTag:i,separatorStyle:o,separatorIcon:n}}=e,r=rA(o),s=""+i,c=ge.useBlockProps.save({className:Z(["uagb-block-"+t,"none"!==a?"wp-block-uagb-separator--"+a:""])});return React.createElement("div",c,React.createElement("div",{className:"wp-block-uagb-separator__inner",style:{"--my-background-image":""+r}},"none"!==a&&React.createElement("div",{className:"wp-block-uagb-separator-element"},"icon"===a?Ce(n):React.createElement(s,{className:"uagb-html-tag"},l))))}}];const dA=Object(F.applyFilters)("uagb/separator",ss({}));Object(de.registerBlockType)("uagb/separator",{...dA,apiVersion:2,title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a modern separator to divide your page content with icon/text.","ultimate-addons-for-gutenberg"),icon:se.separator,category:uagb_blocks_info.category,keywords:[Object(r.__)("divider","ultimate-addons-for-gutenberg"),Object(r.__)("separator","ultimate-addons-for-gutenberg")],attributes:Ba,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"separator"}):React.createElement(cA,e),save:function(e){const{attributes:{block_id:t,elementType:a,separatorText:l,separatorTextTag:i,separatorStyle:o,separatorIcon:n,blockTopPadding:r,blockRightPadding:s,blockLeftPadding:c,blockBottomPadding:u,blockTopPaddingTablet:p,blockRightPaddingTablet:d,blockLeftPaddingTablet:b,blockBottomPaddingTablet:g,blockTopPaddingMobile:m,blockRightPaddingMobile:y,blockLeftPaddingMobile:f,blockBottomPaddingMobile:h,blockTopMargin:v,blockRightMargin:_,blockLeftMargin:T,blockBottomMargin:C,blockTopMarginTablet:S,blockRightMarginTablet:k,blockLeftMarginTablet:w,blockBottomMarginTablet:P,blockTopMarginMobile:x,blockRightMarginMobile:A,blockLeftMarginMobile:G,blockBottomMarginMobile:M}}=e,R=[r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M].some(e=>"number"==typeof e),B=rA(o),U=""+i,E=ge.useBlockProps.save({className:Z(["uagb-block-"+t,"none"!==a?"wp-block-uagb-separator--"+a:""])}),O=()=>React.createElement("div",{className:"wp-block-uagb-separator__inner",style:{"--my-background-image":""+B}},"none"!==a&&React.createElement("div",{className:"wp-block-uagb-separator-element"},"icon"===a?Ce(n):React.createElement(U,{className:"uagb-html-tag"},l)));return React.createElement("div",E,R?React.createElement("div",{className:"uagb-separator-spacing-wrapper"},O()):O())},transforms:uA,deprecated:pA});const bA=[{defaultAttributes:Fa},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowColor",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '}],gA=[{defaultAttributes:Fa},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:15},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '}];function mA(){return(mA=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l,insertBlock:i,block:o,swiperInstance:n}=e,{block_id:s,pauseOn:c,infiniteLoop:u,transitionSpeed:p,displayArrows:d,displayDots:b,autoplay:g,autoplaySpeed:m,transitionEffect:y,backgroundType:f,backgroundImageDesktop:h,backgroundImageTablet:v,backgroundImageMobile:_,backgroundColor:T,backgroundPositionDesktop:C,backgroundPositionTablet:S,backgroundPositionMobile:k,backgroundAttachmentDesktop:w,backgroundAttachmentTablet:P,backgroundAttachmentMobile:x,backgroundRepeatDesktop:A,backgroundRepeatTablet:G,backgroundRepeatMobile:M,backgroundSizeDesktop:R,backgroundSizeTablet:U,backgroundSizeMobile:E,backgroundImageColor:O,gradientValue:L,useSeparateBoxShadows:H,gradientColor1:j,gradientColor2:z,gradientLocation1:D,gradientLocation2:N,gradientType:I,gradientAngle:V,selectGradient:W,boxShadowColor:q,boxShadowHOffset:Z,boxShadowVOffset:$,boxShadowBlur:Y,boxShadowSpread:K,boxShadowPosition:J,boxShadowColorHover:X,boxShadowHOffsetHover:Q,boxShadowVOffsetHover:ee,boxShadowBlurHover:te,boxShadowSpreadHover:ae,boxShadowPositionHover:le,topPaddingDesktop:ie,bottomPaddingDesktop:oe,leftPaddingDesktop:ne,rightPaddingDesktop:re,topPaddingTablet:se,bottomPaddingTablet:ce,leftPaddingTablet:ue,rightPaddingTablet:pe,topPaddingMobile:be,bottomPaddingMobile:me,leftPaddingMobile:ye,rightPaddingMobile:fe,paddingType:he,paddingTypeTablet:ve,paddingTypeMobile:_e,paddingLink:Te,topMarginDesktop:Ce,bottomMarginDesktop:Se,leftMarginDesktop:ke,rightMarginDesktop:we,topMarginTablet:Pe,bottomMarginTablet:xe,leftMarginTablet:Ae,rightMarginTablet:Ge,topMarginMobile:Me,bottomMarginMobile:Re,leftMarginMobile:Be,rightMarginMobile:Ue,marginType:Oe,marginTypeTablet:He,marginTypeMobile:Fe,marginLink:De,backgroundCustomSizeDesktop:Ne,backgroundCustomSizeTablet:Ie,backgroundCustomSizeMobile:Ve,backgroundCustomSizeType:We,overlayType:qe,customPosition:Ze,xPositionDesktop:$e,xPositionTablet:Ye,xPositionMobile:Ke,xPositionType:Je,xPositionTypeTablet:Xe,xPositionTypeMobile:Qe,yPositionDesktop:et,yPositionTablet:tt,yPositionMobile:at,yPositionType:lt,yPositionTypeTablet:it,yPositionTypeMobile:ot,arrowSize:nt,arrowSizeTablet:rt,arrowSizeMobile:st,arrowPadding:ct,arrowPaddingTablet:ut,arrowPaddingMobile:pt,arrowColor:dt,arrowBgColor:bt,arrowDistance:gt,arrowDistanceTablet:mt,arrowDistanceMobile:yt,verticalAlign:ft,dotsMarginTop:ht,dotsMarginTopTablet:vt,dotsMarginTopMobile:_t,minHeight:Tt,minHeightTablet:Ct,minHeightMobile:St}=t;Object(B.useEffect)(()=>{"color"===f&&a({backgroundSizeDesktop:"cover",backgroundSizeTablet:"cover",backgroundSizeMobile:"cover"})},[f]);const kt=[{value:"start",tooltip:Object(r.__)("Top","ultimate-addons-for-gutenberg"),icon:React.createElement(Le.Icon,{icon:ze("flex-column-start")})},{value:"center",tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg"),icon:React.createElement(Le.Icon,{icon:ze("flex-column-center")})},{value:"end",tooltip:Object(r.__)("Bottom","ultimate-addons-for-gutenberg"),icon:React.createElement(Le.Icon,{icon:ze("flex-column-end")})}],wt=Object(F.applyFilters)("spectra.slider.tab_style.NavigationStyle.after","",e);return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(Le.ToolbarGroup,null,React.createElement(Le.ToolbarButton,{icon:"insert",label:Object(r.__)("Add Slide","ultimate-addons-for-gutenberg"),onClick:()=>{i(Object(de.createBlock)("uagb/slider-child"),o.innerBlocks.length,o.clientId),a({slideItem:t.slideItem+1}),n.activeIndex=t.slideItem+1}}))),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,(()=>{const t=Object(F.applyFilters)("spectra.slider.tab_general.displayDots.after","",e),l=Object(F.applyFilters)("spectra.slider.tab_general.autoplay.after","",e),i=Object(F.applyFilters)("spectra.slider.tab_general.transitionSpeed.after","",e);return React.createElement(React.Fragment,null,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Slider","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:g,onChange:()=>{a({autoplay:!g})},help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),!0===g&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:a,value:m,data:{value:m,label:"autoplaySpeed"},min:0,max:15e3,displayUnit:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Pause On","ultimate-addons-for-gutenberg"),data:{value:c,label:"pauseOn"},options:[{value:"hover",label:Object(r.__)("Hover","ultimate-addons-for-gutenberg")},{value:"click",label:Object(r.__)("Interaction","ultimate-addons-for-gutenberg")},{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")})),l,React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Loop","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>{a({infiniteLoop:!u})},help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Minimum Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:Tt,label:"minHeight"},tablet:{value:Ct,label:"minHeightTablet"},mobile:{value:St,label:"minHeightMobile"}},min:100,max:1e3,displayUnit:!1,setAttributes:a}),React.createElement(Pi,{label:Object(r.__)("Transition Effect","ultimate-addons-for-gutenberg"),data:{value:y,label:"transitionEffect"},onChange:e=>a({transitionEffect:e}),setAttributes:a,help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")},React.createElement("option",{value:"slide"},Object(r.__)("Slide","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"fade"},Object(r.__)("Fade","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"flip"},Object(r.__)("Flip","ultimate-addons-for-gutenberg"))),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:a,value:p,data:{value:p,label:"transitionSpeed"},onChange:e=>a({transitionSpeed:e}),min:100,max:9999,displayUnit:!1}),i),React.createElement(je,{title:Object(r.__)("Navigation","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Arrows","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>{a({displayArrows:!d})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Dots","ultimate-addons-for-gutenberg"),checked:b,onChange:()=>{a({displayDots:!b})}}),t)))})()),React.createElement(il,nl,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:ft,label:"verticalAlign"},options:kt,showIcons:!0,responsive:!1}))),React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(vi,mA({setAttributes:a,backgroundGradient:{value:L,label:"gradientValue"},backgroundGradientColor1:{value:j,label:"gradientColor1"},gradientType:{value:W,label:"selectGradient"},backgroundGradientColor2:{value:z,label:"gradientColor2"},backgroundGradientLocation1:{value:D,label:"gradientLocation1"},backgroundGradientLocation2:{value:N,label:"gradientLocation2"},backgroundGradientType:{value:I,label:"gradientType"},backgroundGradientAngle:{value:V,label:"gradientAngle"},backgroundImageColor:{value:O,label:"backgroundImageColor"},backgroundSize:{desktop:{value:R,label:"backgroundSizeDesktop"},tablet:{value:U,label:"backgroundSizeTablet"},mobile:{value:E,label:"backgroundSizeMobile"}},backgroundCustomSize:{desktop:{value:Ne,label:"backgroundCustomSizeDesktop"},tablet:{value:Ie,label:"backgroundCustomSizeTablet"},mobile:{value:Ve,label:"backgroundCustomSizeMobile"}},backgroundCustomSizeType:{value:We,label:"backgroundCustomSizeType"},backgroundRepeat:{desktop:{value:A,label:"backgroundRepeatDesktop"},tablet:{value:G,label:"backgroundRepeatTablet"},mobile:{value:M,label:"backgroundRepeatMobile"}},backgroundAttachment:{desktop:{value:w,label:"backgroundAttachmentDesktop"},tablet:{value:P,label:"backgroundAttachmentTablet"},mobile:{value:x,label:"backgroundAttachmentMobile"}},backgroundPosition:{desktop:{value:C,label:"backgroundPositionDesktop"},tablet:{value:S,label:"backgroundPositionTablet"},mobile:{value:k,label:"backgroundPositionMobile"}},backgroundImage:{desktop:{value:h,label:"backgroundImageDesktop"},tablet:{value:v,label:"backgroundImageTablet"},mobile:{value:_,label:"backgroundImageMobile"}},imageResponsive:!0,backgroundColor:{value:T,label:"backgroundColor"},backgroundType:{value:f,label:"backgroundType"},overlayType:{value:qe,label:"overlayType"},gradientOverlay:{value:!0},customPosition:{value:Ze,label:"customPosition"},xPositionDesktop:{value:$e,label:"xPositionDesktop"},xPositionTablet:{value:Ye,label:"xPositionTablet"},xPositionMobile:{value:Ke,label:"xPositionMobile"},xPositionType:{value:Je,label:"xPositionType"},xPositionTypeTablet:{value:Xe,label:"xPositionTypeTablet"},xPositionTypeMobile:{value:Qe,label:"xPositionTypeMobile"},yPositionDesktop:{value:et,label:"yPositionDesktop"},yPositionTablet:{value:tt,label:"yPositionTablet"},yPositionMobile:{value:at,label:"yPositionMobile"},yPositionType:{value:lt,label:"yPositionType"},yPositionTypeTablet:{value:it,label:"yPositionTypeTablet"},yPositionTypeMobile:{value:ot,label:"yPositionTypeMobile"},backgroundVideoType:{value:!1}},e))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"slider",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:H,onChange:()=>a({useSeparateBoxShadows:!H})}),H?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:bA,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:q,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Z,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:$,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Y,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:K,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:J,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:gA,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:X,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Q,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:ee,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:te,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ae,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:le,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:bA,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:q,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Z,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:$,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Y,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:K,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:J,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,mA({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ie,label:"topPaddingDesktop"},valueRight:{value:re,label:"rightPaddingDesktop"},valueBottom:{value:oe,label:"bottomPaddingDesktop"},valueLeft:{value:ne,label:"leftPaddingDesktop"},valueTopTablet:{value:se,label:"topPaddingTablet"},valueRightTablet:{value:pe,label:"rightPaddingTablet"},valueBottomTablet:{value:ce,label:"bottomPaddingTablet"},valueLeftTablet:{value:ue,label:"leftPaddingTablet"},valueTopMobile:{value:be,label:"topPaddingMobile"},valueRightMobile:{value:fe,label:"rightPaddingMobile"},valueBottomMobile:{value:me,label:"bottomPaddingMobile"},valueLeftMobile:{value:ye,label:"leftPaddingMobile"},unit:{value:he,label:"paddingType"},mUnit:{value:_e,label:"paddingTypeMobile"},tUnit:{value:ve,label:"paddingTypeTablet"},attributes:t,setAttributes:a,link:{value:Te,label:"paddingLink"}})),React.createElement(Pl,mA({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Ce,label:"topMarginDesktop"},valueRight:{value:we,label:"rightMarginDesktop"},valueBottom:{value:Se,label:"bottomMarginDesktop"},valueLeft:{value:ke,label:"leftMarginDesktop"},valueTopTablet:{value:Pe,label:"topMarginTablet"},valueRightTablet:{value:Ge,label:"rightMarginTablet"},valueBottomTablet:{value:xe,label:"bottomMarginTablet"},valueLeftTablet:{value:Ae,label:"leftMarginTablet"},valueTopMobile:{value:Me,label:"topMarginMobile"},valueRightMobile:{value:Ue,label:"rightMarginMobile"},valueBottomMobile:{value:Re,label:"bottomMarginMobile"},valueLeftMobile:{value:Be,label:"leftMarginMobile"},unit:{value:Oe,label:"marginType"},mUnit:{value:Fe,label:"marginTypeMobile"},tUnit:{value:He,label:"marginTypeTablet"},attributes:t,setAttributes:a,link:{value:De,label:"marginLink"}}))),(d||b)&&React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Arrows and Dots","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:dt,data:{value:dt,label:"arrowColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:bt,data:{value:bt,label:"arrowBgColor"},setAttributes:a}),d&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:nt,label:"arrowSize"},tablet:{value:rt,label:"arrowSizeTablet"},mobile:{value:st,label:"arrowSizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),data:{desktop:{value:ct,label:"arrowPadding"},tablet:{value:ut,label:"arrowPaddingTablet"},mobile:{value:pt,label:"arrowPaddingMobile"}},min:0,max:80,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Arrow Distance from Edges","ultimate-addons-for-gutenberg"),data:{desktop:{value:gt,label:"arrowDistance"},tablet:{value:mt,label:"arrowDistanceTablet"},mobile:{value:yt,label:"arrowDistanceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:a})),b&&React.createElement(tl,{label:Object(r.__)("Top Margin for Dots","ultimate-addons-for-gutenberg"),data:{desktop:{value:ht,label:"dotsMarginTop"},tablet:{value:vt,label:"dotsMarginTopTablet"},mobile:{value:_t,label:"dotsMarginTopMobile"}},min:-100,max:100,displayUnit:!1,setAttributes:a}),d&&React.createElement(Hi,{setAttributes:a,prefix:"slider-arrow",attributes:t,deviceType:l,disableBottomSeparator:!0}))),wt),React.createElement(il,mA({},rl,{parentProps:e})))))});function fA(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function hA(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>a.indexOf(e)<0).forEach(a=>{void 0===e[a]?e[a]=t[a]:fA(t[a])&&fA(e[a])&&Object.keys(t[a]).length>0?t[a].__swiper__?e[a]=t[a]:hA(e[a],t[a]):e[a]=t[a]})}function vA(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function _A(e={}){return e.pagination&&void 0===e.pagination.el}function TA(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function CA(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),a=[];return t.forEach(e=>{a.indexOf(e)<0&&a.push(e)}),a.join(" ")}const SA=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"],kA=(e,t)=>{let a=t.slidesPerView;if(t.breakpoints){const e=sk.prototype.getBreakpoint(t.breakpoints),l=e in t.breakpoints?t.breakpoints[e]:void 0;l&&l.slidesPerView&&(a=l.slidesPerView)}let l=Math.ceil(parseFloat(t.loopedSlides||a,10));return l+=t.loopAdditionalSlides,l>e.length&&t.loopedSlidesLimit&&(l=e.length),l};function wA(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function PA(e,t){return"undefined"==typeof window?Object(mo.useEffect)(e,t):Object(mo.useLayoutEffect)(e,t)}const xA=Object(mo.createContext)(null),AA=Object(mo.createContext)(null);function GA(){return(GA=Object.assign?Object.assign.bind():function(e){for(var t=1;te.replace(/_/,"")),r=Object.assign({},e);return Object.keys(r).forEach(r=>{void 0!==e[r]&&(n.indexOf(r)>=0?fA(e[r])?(a[r]={},i[r]={},hA(a[r],e[r]),hA(i[r],e[r])):(a[r]=e[r],i[r]=e[r]):0===r.search(/on[A-Z]/)&&"function"==typeof e[r]?t?l[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:a.on[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:o[r]=e[r])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===a[e]&&(a[e]={}),!1===a[e]&&delete a[e]}),{params:a,passedParams:i,rest:o,events:l}}(r),{slides:A,slots:G}=function(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return yo.a.Children.toArray(e).forEach(e=>{if(wA(e))t.push(e);else if(e.props&&e.props.slot&&a[e.props.slot])a[e.props.slot].push(e);else if(e.props&&e.props.children){const l=function e(t){const a=[];return yo.a.Children.toArray(t).forEach(t=>{wA(t)?a.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>a.push(e))}),a}(e.props.children);l.length>0?l.forEach(e=>t.push(e)):a["container-end"].push(e)}else a["container-end"].push(e)}),{slides:t,slots:a}}(o),M=()=>{g(!b)};Object.assign(k.on,{_containerClasses(e,t){u(t)}});const R=()=>{if(Object.assign(k.on,x),s=!0,f.current=new sk(k),f.current.loopCreate=()=>{},f.current.loopDestroy=()=>{},k.loop&&(f.current.loopedSlides=kA(A,k)),f.current.virtual&&f.current.params.virtual.enabled){f.current.virtual.slides=A;const e={cache:!1,slides:A,renderExternal:d,renderExternalUpdate:!1};hA(f.current.params.virtual,e),hA(f.current.originalParams.virtual,e)}};return y.current||R(),f.current&&f.current.on("_beforeBreakpoint",M),Object(mo.useEffect)(()=>()=>{f.current&&f.current.off("_beforeBreakpoint",M)}),Object(mo.useEffect)(()=>{!m.current&&f.current&&(f.current.emitSlidesClasses(),m.current=!0)}),PA(()=>{if(t&&(t.current=y.current),y.current)return f.current.destroyed&&R(),function({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:i,swiper:o},n){vA(n)&&t&&a&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=a,o.originalParams.navigation.prevEl=a),_A(n)&&l&&(o.params.pagination.el=l,o.originalParams.pagination.el=l),TA(n)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:y.current,nextEl:_.current,prevEl:T.current,paginationEl:C.current,scrollbarEl:S.current,swiper:f.current},k),n&&n(f.current),()=>{f.current&&!f.current.destroyed&&f.current.destroy(!0,!1)}},[]),PA(()=>{!s&&x&&f.current&&Object.keys(x).forEach(e=>{f.current.on(e,x[e])});const e=function(e,t,a,l,i){const o=[];if(!t)return o;const n=e=>{o.indexOf(e)<0&&o.push(e)};if(a&&l){const e=l.map(i),t=a.map(i);e.join("")!==t.join("")&&n("children"),l.length!==a.length&&n("children")}return SA.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(fA(e[a])&&fA(t[a])){const l=Object.keys(e[a]),i=Object.keys(t[a]);l.length!==i.length?n(a):(l.forEach(l=>{e[a][l]!==t[a][l]&&n(a)}),i.forEach(l=>{e[a][l]!==t[a][l]&&n(a)}))}else e[a]!==t[a]&&n(a)}),o}(w,h.current,A,v.current,e=>e.key);return h.current=w,v.current=A,e.length&&f.current&&!f.current.destroyed&&function({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:i,prevEl:o,scrollbarEl:n,paginationEl:r}){const s=l.filter(e=>"children"!==e&&"direction"!==e),{params:c,pagination:u,navigation:p,scrollbar:d,virtual:b,thumbs:g}=e;let m,y,f,h,v;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(m=!0),l.includes("controller")&&a.controller&&a.controller.control&&c.controller&&!c.controller.control&&(y=!0),l.includes("pagination")&&a.pagination&&(a.pagination.el||r)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(f=!0),l.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||n)&&(c.scrollbar||!1===c.scrollbar)&&d&&!d.el&&(h=!0),l.includes("navigation")&&a.navigation&&(a.navigation.prevEl||o)&&(a.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&p&&!p.prevEl&&!p.nextEl&&(v=!0),s.forEach(t=>{if(fA(c[t])&&fA(a[t]))hA(c[t],a[t]);else{const i=a[t];!0!==i&&!1!==i||"navigation"!==t&&"pagination"!==t&&"scrollbar"!==t?c[t]=a[t]:!1===i&&e[l=t]&&(e[l].destroy(),"navigation"===l?(c[l].prevEl=void 0,c[l].nextEl=void 0,e[l].prevEl=void 0,e[l].nextEl=void 0):(c[l].el=void 0,e[l].el=void 0))}var l}),s.includes("controller")&&!y&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),l.includes("children")&&t&&b&&c.virtual.enabled?(b.slides=t,b.update(!0)):l.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),m&&g.init()&&g.update(!0),y&&(e.controller.control=c.controller.control),f&&(r&&(c.pagination.el=r),u.init(),u.render(),u.update()),h&&(n&&(c.scrollbar.el=n),d.init(),d.updateSize(),d.setTranslate()),v&&(i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),p.init(),p.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),e.update()}({swiper:f.current,slides:A,passedParams:w,changedParams:e,nextEl:_.current,prevEl:T.current,scrollbarEl:S.current,paginationEl:C.current}),()=>{x&&f.current&&Object.keys(x).forEach(e=>{f.current.off(e,x[e])})}}),PA(()=>{var e;!(e=f.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[p]),yo.a.createElement(l,GA({ref:y,className:CA(`${c}${a?" "+a:""}`)},P),yo.a.createElement(AA.Provider,{value:f.current},G["container-start"],yo.a.createElement(i,{className:"swiper-wrapper"},G["wrapper-start"],k.virtual?function(e,t,a){if(!a)return null;const l=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:a.offset+"px"}:{top:a.offset+"px"};return t.filter((e,t)=>t>=a.from&&t<=a.to).map(t=>yo.a.cloneElement(t,{swiper:e,style:l}))}(f.current,A,p):!k.loop||f.current&&f.current.destroyed?A.map(e=>yo.a.cloneElement(e,{swiper:f.current})):function(e,t,a){const l=t.map((t,a)=>yo.a.cloneElement(t,{swiper:e,"data-swiper-slide-index":a}));function i(e,t,l){return yo.a.cloneElement(e,{key:`${e.key}-duplicate-${t}-${l}`,className:`${e.props.className||""} ${a.slideDuplicateClass}`})}if(a.loopFillGroupWithBlank){const e=a.slidesPerGroup-l.length%a.slidesPerGroup;if(e!==a.slidesPerGroup)for(let t=0;t{if(t&&(t.current=c.current),c.current&&o){if(!o.destroyed)return o.on("_slideClass",d),()=>{o&&o.off("_slideClass",d)};"swiper-slide"!==u&&p("swiper-slide")}}),PA(()=>{o&&c.current&&!o.destroyed&&p(o.getSlideClasses(c.current))},[o]);const b={isActive:u.indexOf("swiper-slide-active")>=0||u.indexOf("swiper-slide-duplicate-active")>=0,isVisible:u.indexOf("swiper-slide-visible")>=0,isDuplicate:u.indexOf("swiper-slide-duplicate")>=0,isPrev:u.indexOf("swiper-slide-prev")>=0||u.indexOf("swiper-slide-duplicate-prev")>=0,isNext:u.indexOf("swiper-slide-next")>=0||u.indexOf("swiper-slide-duplicate-next")>=0},g=()=>"function"==typeof l?l(b):l;return yo.a.createElement(a,RA({ref:c,className:CA(`${u}${i?" "+i:""}`),"data-swiper-slide-index":r},s),yo.a.createElement(xA.Provider,{value:b},n?yo.a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof n?n:void 0},g()):g()))}));function UA(){return(UA=Object.assign||function(e){for(var t=1;t{const{attributes:t,clientId:a,block:l,blockParents:i,attributes:{slide_content:o},deviceType:s,setSwiperInstance:c,swiperInstance:u}=e,p=Object(B.useRef)(),d=Object(B.useRef)(),b=Object(B.useRef)(),g=Object(B.useRef)(),{selectBlock:m}=Object(n.useDispatch)(ge.store),y={...t,swiperInstance:u};Object(F.doAction)("spectra.slider.before_render",y);const{isListViewOpen:f,hasChildren:h}=Object(n.useSelect)(e=>{var t;const l=e("core/edit-post")||e("core/edit-widgets")||e("core/edit-site");return{isListViewOpen:!(null==l||!l.isListViewOpened)&&l.isListViewOpened(),hasChildren:0!==(null===(t=e("core/block-editor"))||void 0===t?void 0:t.getBlocks(a).length)}},[]),{isPreview:v,transitionSpeed:_,slideItem:T,block_id:C,displayArrows:S,displayDots:k,extraClasses:w}=t,P=Object(B.useMemo)(()=>[["uagb/slider-child",{},[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide 1","ultimate-addons-for-gutenberg"),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]]],["uagb/slider-child",{},[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide 2","ultimate-addons-for-gutenberg"),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]]],["uagb/slider-child",{},[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide 3","ultimate-addons-for-gutenberg"),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]]]],[T,o]),x=h?"uagb-slider-has-children":"",A=f?"uagb-list-view-enabled":"",G=Object(ge.useBlockProps)({className:`uagb-block-${C} ${x} ${A} uagb-slider-container uagb-slider-editor-wrap uagb-editor-preview-mode-${s.toLowerCase()} ${w}`}),M=Object(ge.useInnerBlocksProps)({className:"swiper-wrapper",slot:"container-start"},{allowedBlocks:EA,template:P,renderAppender:!1,orientation:"horizontal"}),R=e=>{var t,a;null!=e&&null!==(t=e.params)&&void 0!==t&&t.navigation&&(e.params.navigation.prevEl=b.current,e.params.navigation.nextEl=g.current,e.navigation.destroy(),e.navigation.init(),e.navigation.update()),null!=e&&null!==(a=e.params)&&void 0!==a&&a.pagination&&(e.params.pagination.el=d.current,e.params.pagination.clickable=!0,e.pagination.init(),e.pagination.render(),e.pagination.update())},U={slidesPerView:1,autoplay:!1,speed:_,loop:!1,effect:"slide",allowTouchMove:!1,onBeforeInit(e){p.current=e,c(e)},onAfterInit(e){setTimeout(()=>{R(e)})}};return Object(B.useEffect)(()=>{u&&u.update()},[e]),Object(B.useEffect)(()=>{u&&R(u)},[S,k]),Object(B.useEffect)(()=>{if(u&&u.slides){const e=u.slides.length;u.slideTo(e+1,_,!1),setTimeout(()=>{u.slideTo(0,0,!1)},100);const t=["uagb/slider","uagb/slider-child"];let a=!1;for(let e=0;e0&&!--FA&&(OA(),OA=null)};var DA=zA;function NA(){return(NA=Object.assign||function(e){for(var t=1;t{const{insertBlock:a}=Object(n.useDispatch)("core/block-editor"),{getSelectedBlock:l,getBlockParents:i}=e("core/block-editor"),o=l(),r=i(null==o?void 0:o.clientId),s=e("core/block-editor").getBlocksByClientId(r);return{insertBlock:a,block:(e("core/block-editor")||e("core/editor")).getBlock(t.clientId),blockParents:s}});var VA=Object(L.compose)(ls,IA,fe)(e=>{const{isSelected:t,attributes:a,clientId:l,deviceType:i,attributes:{UAGHideDesktop:o,UAGHideTab:n,UAGHideMob:r}}=e,[s,c]=Object(B.useState)(null);e={...e,swiperInstance:s,setSwiperInstance:c},Object(B.useLayoutEffect)(()=>(DA.use(),()=>{DA.unuse()}),[]),Object(B.useEffect)(()=>{he(e)},[o,n,r,i]);const u=Object(B.useMemo)(()=>function(e,t,a){let{backgroundType:l,backgroundImageDesktop:i,backgroundImageTablet:o,backgroundImageMobile:n,backgroundColor:r,backgroundPositionDesktop:s,backgroundPositionTablet:c,backgroundPositionMobile:u,backgroundAttachmentDesktop:p,backgroundAttachmentTablet:d,backgroundAttachmentMobile:b,backgroundRepeatDesktop:g,backgroundRepeatTablet:m,backgroundRepeatMobile:y,backgroundSizeDesktop:f,backgroundSizeTablet:h,backgroundSizeMobile:v,gradientValue:_,sliderBorderHColor:T,useSeparateBoxShadows:C,boxShadowColor:S,boxShadowHOffset:k,boxShadowVOffset:w,boxShadowBlur:P,boxShadowSpread:x,boxShadowPosition:A,boxShadowColorHover:G,boxShadowHOffsetHover:M,boxShadowVOffsetHover:R,boxShadowBlurHover:B,boxShadowSpreadHover:U,boxShadowPositionHover:E,topPaddingDesktop:O,bottomPaddingDesktop:L,leftPaddingDesktop:H,rightPaddingDesktop:j,topPaddingTablet:z,bottomPaddingTablet:D,leftPaddingTablet:N,rightPaddingTablet:I,topPaddingMobile:V,bottomPaddingMobile:W,leftPaddingMobile:q,rightPaddingMobile:Z,paddingType:$,paddingTypeTablet:Y,paddingTypeMobile:K,topMarginDesktop:J,bottomMarginDesktop:X,leftMarginDesktop:Q,rightMarginDesktop:ee,topMarginTablet:te,bottomMarginTablet:le,leftMarginTablet:ie,rightMarginTablet:oe,topMarginMobile:ne,bottomMarginMobile:re,leftMarginMobile:se,rightMarginMobile:ce,marginType:ue,marginTypeTablet:pe,marginTypeMobile:de,backgroundCustomSizeDesktop:be,backgroundCustomSizeTablet:ge,backgroundCustomSizeMobile:me,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPositionDesktop:_e,xPositionTablet:Te,xPositionMobile:Ce,xPositionType:Se,xPositionTypeTablet:ke,xPositionTypeMobile:we,yPositionDesktop:Pe,yPositionTablet:xe,yPositionMobile:Ae,yPositionType:Ge,yPositionTypeTablet:Me,yPositionTypeMobile:Re,arrowColor:Be,arrowSize:Ue,arrowSizeTablet:Ee,arrowSizeMobile:Oe,arrowDistance:Le,arrowDistanceTablet:He,arrowDistanceMobile:Fe,arrowPadding:je,arrowPaddingTablet:ze,arrowPaddingMobile:De,arrowBgColor:Ne,verticalAlign:Ie,dotsMarginTop:Ve,dotsMarginTopTablet:We,dotsMarginTopMobile:qe,minHeight:Ze,minHeightTablet:$e,minHeightMobile:Ye,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at}=e;const lt=a.toLowerCase(),it=Wr(e,"slider"),ot=Wr(e,"slider","tablet"),nt=Wr(e,"slider","mobile"),rt=Wr(e,"slider-arrow"),st=Wr(e,"slider-arrow","tablet"),ct=Wr(e,"slider-arrow","mobile");Ee=void 0!==Ee?Ee:Ue,Oe=void 0!==Oe?Oe:Ee,z=void 0!==z?z:O,V=void 0!==V?V:z,D=void 0!==D?D:L,W=void 0!==W?W:D,N=void 0!==N?N:H,q=void 0!==q?q:N,I=void 0!==I?I:j,Z=void 0!==Z?Z:I,te=void 0!==te?te:J,ne=void 0!==ne?ne:te,le=void 0!==le?le:X,re=void 0!==re?re:le,ie=void 0!==ie?ie:Q,se=void 0!==se?se:ie,oe=void 0!==oe?oe:ee,ce=void 0!==ce?ce:oe,ze=void 0!==ze?ze:je,De=void 0!==De?De:ze;const ut=qr({backgroundType:l,backgroundImage:i,backgroundColor:r,gradientValue:_,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at,backgroundRepeat:g,backgroundPosition:s,backgroundSize:f,backgroundAttachment:p,backgroundCustomSize:be,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPosition:_e,xPositionType:Se,yPosition:Pe,yPositionType:Ge}),pt=Zr({horizontal:k,vertical:w,blur:P,spread:x,color:S,position:A}),dt=Zr({horizontal:M,vertical:R,blur:B,spread:U,color:G,position:E,altColor:S});let bt={".wp-block":{"padding-top":Vr(O,$),"padding-bottom":Vr(L,$),"padding-left":Vr(H,$),"padding-right":Vr(j,$),"margin-top":Vr(J,ue)+" !important","margin-bottom":Vr(X,ue)+" !important","margin-left":Vr(Q,ue),"margin-right":Vr(ee,ue),...ut,"box-shadow":pt,...it},".wp-block:hover":{"border-color":T,"box-shadow":""}," .swiper-button-next:after":{"font-size":Vr(Ue,"px")}," .swiper-button-next":{color:Be,right:Vr(Le,"px"),width:Vr(2*je+Ue,"px"),height:Vr(2*je+Ue,"px"),"line-height":Vr(2*je+Ue,"px"),"background-color":Ne,...rt}," .swiper-button-prev":{color:Be,left:Vr(Le,"px"),width:Vr(2*je+Ue,"px"),height:Vr(2*je+Ue,"px"),"line-height":Vr(2*je+Ue,"px"),"background-color":Ne,...rt}," .swiper-button-next:hover":{"border-color":e["slider-arrowBorderHColor"]}," .swiper-button-prev:hover":{"border-color":e["slider-arrowBorderHColor"]}," .swiper-button-prev:after":{"font-size":Vr(Ue,"px")}," .swiper-pagination":{bottom:Vr(Ve,"px")}," .swiper-pagination-bullet":{"background-color":Be}," .swiper-wrapper":{"align-items":Ie,"min-height":Vr(Ze,"px")}};C&&(bt[".wp-block:hover"]["box-shadow"]=dt);const gt=qr({backgroundType:l,backgroundImage:o,backgroundColor:r,gradientValue:_,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at,backgroundRepeat:m,backgroundPosition:c,backgroundSize:h,backgroundAttachment:d,backgroundCustomSize:ge,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPosition:Te,xPositionType:ke,yPosition:xe,yPositionType:Me});let mt={".wp-block":{"padding-top":Vr(z,Y),"padding-bottom":Vr(D,Y),"padding-left":Vr(N,Y),"padding-right":Vr(I,Y),"margin-top":Vr(te,pe)+" !important","margin-bottom":Vr(le,pe)+" !important","margin-left":Vr(ie,pe),"margin-right":Vr(oe,pe),...gt,...ot}," .swiper-button-next:after":{"font-size":Vr(Ee,"px")}," .swiper-button-prev:after":{"font-size":Vr(Ee,"px")}," .swiper-button-prev":{left:Vr(He,"px"),width:Vr(2*ze+Ee,"px"),height:Vr(2*ze+Ee,"px"),"line-height":Vr(2*ze+Ee,"px"),...st}," .swiper-button-next":{right:Vr(He,"px"),width:Vr(2*ze+Ee,"px"),height:Vr(2*ze+Ee,"px"),"line-height":Vr(2*ze+Ee,"px"),...st}," .swiper-pagination":{bottom:Vr(We,"px")}," .swiper-wrapper":{"min-height":Vr($e,"px")}};const yt=qr({backgroundType:l,backgroundImage:n,backgroundColor:r,gradientValue:_,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at,backgroundRepeat:y,backgroundPosition:u,backgroundSize:v,backgroundAttachment:b,backgroundCustomSize:me,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPosition:Ce,xPositionType:we,yPosition:Ae,yPositionType:Re});let ft={".wp-block":{"padding-top":Vr(V,K),"padding-bottom":Vr(W,K),"padding-left":Vr(q,K),"padding-right":Vr(Z,K),"margin-top":Vr(ne,de)+" !important","margin-bottom":Vr(re,de)+" !important","margin-left":Vr(se,de),"margin-right":Vr(ce,de),...yt,...nt}," .swiper-button-next:after":{"font-size":Vr(Oe,"px")}," .swiper-button-prev:after":{"font-size":Vr(Oe,"px")}," .swiper-button-prev":{left:Vr(Fe,"px"),width:Vr(2*De+Oe,"px"),height:Vr(2*De+Oe,"px"),"line-height":Vr(2*De+Oe,"px"),...ct}," .swiper-button-next":{right:Vr(Fe,"px"),width:Vr(2*De+Oe,"px"),height:Vr(2*De+Oe,"px"),"line-height":Vr(2*De+Oe,"px"),...ct}," .swiper-pagination":{bottom:Vr(qe,"px")}," .swiper-wrapper":{"min-height":Vr(Ye,"px")}};const ht=".editor-styles-wrapper #block-"+t;bt=Object(F.applyFilters)("spectra.slider.styling",bt,e),mt=Object(F.applyFilters)("spectra.slider.tabletStyling",mt,e),ft=Object(F.applyFilters)("spectra.slider.mobileStyling",ft,e);let vt=ae(bt,ht);return"tablet"!==lt&&"mobile"!==lt||(vt+=ae(mt,""+ht,!0,"tablet"),"mobile"===lt&&(vt+=ae(ft,""+ht,!0,"mobile"))),vt}(a,l,i),[a,i]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:u}),t&&React.createElement(yA,e),React.createElement(LA,e))});const WA=Object(L.createHigherOrderComponent)(e=>t=>{const a=le();if("uagb/slider-child"===t.name){const l={className:"uagb-editor-preview-mode-"+a.toLowerCase(),...t.wrapperProps};return React.createElement(BA,{onClick:e=>(e=>{const t=e.target.closest("div").classList.contains("block-editor-inserter"),a=e.target.closest(".block-editor-block-list__block");if(!t&&a&&a.hasAttribute("data-block")){const e=a.dataset.block;wp.data.select("core/block-editor").isBlockSelected(e)||wp.data.dispatch("core/block-editor").selectBlock(e)}})(e),"aria-hidden":"true"},React.createElement(e,NA({},t,{wrapperProps:l})))}return React.createElement(e,t)},"uagbSlideClass");Object(F.addFilter)("editor.BlockListBlock","uagb/slider-child",WA);let qA={};function ZA(){return(ZA=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"slider"}):React.createElement(VA,e),save:function(e){const{attributes:t}=e,{block_id:a,displayArrows:l,displayDots:i}=t,o=ge.useBlockProps.save();return React.createElement("div",{key:a,className:Be()(o.className,"uagb-block-"+a,"uagb-slider-container")},React.createElement("div",{className:"uagb-slides uagb-swiper"},React.createElement("div",{className:"swiper-wrapper"},React.createElement(ge.InnerBlocks.Content,null))),i&&React.createElement("div",{className:"swiper-pagination"}),l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"swiper-button-prev"}),React.createElement("div",{className:"swiper-button-next"})))}});var YA=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,clientId:l}=e,{backgroundType:i,backgroundImageDesktop:o,backgroundImageTablet:s,backgroundImageMobile:c,backgroundColor:u,backgroundPositionDesktop:p,backgroundPositionTablet:d,backgroundPositionMobile:b,backgroundAttachmentDesktop:g,backgroundAttachmentTablet:m,backgroundAttachmentMobile:y,backgroundRepeatDesktop:f,backgroundRepeatTablet:h,backgroundRepeatMobile:v,backgroundSizeDesktop:_,backgroundSizeTablet:T,backgroundSizeMobile:C,backgroundImageColor:S,gradientValue:k,gradientColor1:w,gradientColor2:P,gradientLocation1:x,gradientLocation2:A,gradientType:G,gradientAngle:M,selectGradient:R,topPaddingDesktop:U,bottomPaddingDesktop:E,leftPaddingDesktop:O,rightPaddingDesktop:L,topPaddingTablet:H,bottomPaddingTablet:F,leftPaddingTablet:j,rightPaddingTablet:z,topPaddingMobile:D,bottomPaddingMobile:N,leftPaddingMobile:I,rightPaddingMobile:V,paddingType:W,paddingTypeTablet:q,paddingTypeMobile:Z,paddingLink:$,topMarginDesktop:Y,bottomMarginDesktop:K,leftMarginDesktop:J,rightMarginDesktop:X,topMarginTablet:Q,bottomMarginTablet:ee,leftMarginTablet:te,rightMarginTablet:ae,topMarginMobile:le,bottomMarginMobile:ie,leftMarginMobile:oe,rightMarginMobile:ne,marginType:re,marginTypeTablet:se,marginTypeMobile:ce,marginLink:ue,backgroundCustomSizeDesktop:pe,backgroundCustomSizeTablet:de,backgroundCustomSizeMobile:be,backgroundCustomSizeType:me,overlayType:ye,customPosition:fe,xPositionDesktop:he,xPositionTablet:ve,xPositionMobile:_e,xPositionType:Te,xPositionTypeTablet:Ce,xPositionTypeMobile:Se,yPositionDesktop:ke,yPositionTablet:we,yPositionMobile:Pe,yPositionType:xe,yPositionTypeTablet:Ae,yPositionTypeMobile:Ge}=t,Me=Object(n.select)("core/block-editor").getBlockParents(l).at(-1),Re=Object(n.select)("core/block-editor").getBlockAttributes(Me),{enableHashNavigation:Be}=Re;Object(B.useEffect)(()=>{"color"===i&&a({backgroundSizeDesktop:"cover",backgroundSizeTablet:"cover",backgroundSizeMobile:"cover"})},[i]);const Ue=uagb_blocks_info.spectra_pro_status,Oe=Ue&&Be?["general","style","advance"]:["style","advance"],Le=Ue&&Be?"general":"style";return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{defaultTab:Le,tabs:Oe},Ue&&React.createElement(il,ol),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(vi,$A({setAttributes:a,backgroundGradient:{value:k,label:"gradientValue"},backgroundGradientColor1:{value:w,label:"gradientColor1"},gradientType:{value:R,label:"selectGradient"},backgroundGradientColor2:{value:P,label:"gradientColor2"},backgroundGradientLocation1:{value:x,label:"gradientLocation1"},backgroundGradientLocation2:{value:A,label:"gradientLocation2"},backgroundGradientType:{value:G,label:"gradientType"},backgroundGradientAngle:{value:M,label:"gradientAngle"},backgroundImageColor:{value:S,label:"backgroundImageColor"},backgroundSize:{desktop:{value:_,label:"backgroundSizeDesktop"},tablet:{value:T,label:"backgroundSizeTablet"},mobile:{value:C,label:"backgroundSizeMobile"}},backgroundCustomSize:{desktop:{value:pe,label:"backgroundCustomSizeDesktop"},tablet:{value:de,label:"backgroundCustomSizeTablet"},mobile:{value:be,label:"backgroundCustomSizeMobile"}},backgroundCustomSizeType:{value:me,label:"backgroundCustomSizeType"},backgroundRepeat:{desktop:{value:f,label:"backgroundRepeatDesktop"},tablet:{value:h,label:"backgroundRepeatTablet"},mobile:{value:v,label:"backgroundRepeatMobile"}},backgroundAttachment:{desktop:{value:g,label:"backgroundAttachmentDesktop"},tablet:{value:m,label:"backgroundAttachmentTablet"},mobile:{value:y,label:"backgroundAttachmentMobile"}},backgroundPosition:{desktop:{value:p,label:"backgroundPositionDesktop"},tablet:{value:d,label:"backgroundPositionTablet"},mobile:{value:b,label:"backgroundPositionMobile"}},backgroundImage:{desktop:{value:o,label:"backgroundImageDesktop"},tablet:{value:s,label:"backgroundImageTablet"},mobile:{value:c,label:"backgroundImageMobile"}},imageResponsive:!0,backgroundColor:{value:u,label:"backgroundColor"},backgroundType:{value:i,label:"backgroundType"},overlayType:{value:ye,label:"overlayType"},gradientOverlay:{value:!0},customPosition:{value:fe,label:"customPosition"},xPositionDesktop:{value:he,label:"xPositionDesktop"},xPositionTablet:{value:ve,label:"xPositionTablet"},xPositionMobile:{value:_e,label:"xPositionMobile"},xPositionType:{value:Te,label:"xPositionType"},xPositionTypeTablet:{value:Ce,label:"xPositionTypeTablet"},xPositionTypeMobile:{value:Se,label:"xPositionTypeMobile"},yPositionDesktop:{value:ke,label:"yPositionDesktop"},yPositionTablet:{value:we,label:"yPositionTablet"},yPositionMobile:{value:Pe,label:"yPositionMobile"},yPositionType:{value:xe,label:"yPositionType"},yPositionTypeTablet:{value:Ae,label:"yPositionTypeTablet"},yPositionTypeMobile:{value:Ge,label:"yPositionTypeMobile"},backgroundVideoType:{value:!1}},e))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,$A({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:U,label:"topPaddingDesktop"},valueRight:{value:L,label:"rightPaddingDesktop"},valueBottom:{value:E,label:"bottomPaddingDesktop"},valueLeft:{value:O,label:"leftPaddingDesktop"},valueTopTablet:{value:H,label:"topPaddingTablet"},valueRightTablet:{value:z,label:"rightPaddingTablet"},valueBottomTablet:{value:F,label:"bottomPaddingTablet"},valueLeftTablet:{value:j,label:"leftPaddingTablet"},valueTopMobile:{value:D,label:"topPaddingMobile"},valueRightMobile:{value:V,label:"rightPaddingMobile"},valueBottomMobile:{value:N,label:"bottomPaddingMobile"},valueLeftMobile:{value:I,label:"leftPaddingMobile"},unit:{value:W,label:"paddingType"},mUnit:{value:Z,label:"paddingTypeMobile"},tUnit:{value:q,label:"paddingTypeTablet"},attributes:t,setAttributes:a,link:{value:$,label:"paddingLink"}})),React.createElement(Pl,$A({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Y,label:"topMarginDesktop"},valueRight:{value:X,label:"rightMarginDesktop"},valueBottom:{value:K,label:"bottomMarginDesktop"},valueLeft:{value:J,label:"leftMarginDesktop"},valueTopTablet:{value:Q,label:"topMarginTablet"},valueRightTablet:{value:ae,label:"rightMarginTablet"},valueBottomTablet:{value:ee,label:"bottomMarginTablet"},valueLeftTablet:{value:te,label:"leftMarginTablet"},valueTopMobile:{value:le,label:"topMarginMobile"},valueRightMobile:{value:ne,label:"rightMarginMobile"},valueBottomMobile:{value:ie,label:"bottomMarginMobile"},valueLeftMobile:{value:oe,label:"leftMarginMobile"},unit:{value:re,label:"marginType"},mUnit:{value:ce,label:"marginTypeMobile"},tUnit:{value:se,label:"marginTypeTablet"},attributes:t,setAttributes:a,link:{value:ue,label:"marginLink"}})))),React.createElement(il,$A({},rl,{parentProps:e}))))}),KA=Object(B.memo)(e=>{const{slideIndex:t}=e,a=wp.blocks.getBlockTypes().filter((function(e){return!e.parent})),l=[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide ","ultimate-addons-for-gutenberg")+parseInt(t+1),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]],i={allowedBlocks:a.map(e=>e.name).filter(e=>-1===["uagb/slider","uagb/post-carousel","uagb/testimonial"].indexOf(e)),template:l},o=Object(ge.useInnerBlocksProps)({className:"swiper-content",slot:"container-start"},i);return React.createElement("div",o)});const JA=Object(n.withSelect)((e,t)=>{const a=e("core/edit-post")||e("core/edit-widgets")||e("core/edit-site"),l=null!=a&&a.__experimentalGetPreviewDeviceType?a.__experimentalGetPreviewDeviceType():null,{getBlocks:i,getBlockIndex:o}=e("core/block-editor"),{getBlockType:r}=e("core/blocks"),{insertBlock:s}=Object(n.useDispatch)("core/block-editor"),c=i(t.clientId),{replaceInnerBlocks:u}=Object(n.useDispatch)("core/block-editor"),p=o(t.clientId);return{innerBlocks:c,insertBlock:s,blockType:r(t.name),replaceInnerBlocks:u,deviceType:l,isParentOfSelectedBlock:e("core/block-editor").hasSelectedInnerBlock(t.clientId,!0),slideIndex:p}});var XA=Object(L.compose)(JA,ls,fe)(e=>{const{isSelected:t,attributes:a,deviceType:l,clientId:i}=e,o=Object(B.useMemo)(()=>function(e,t,a){let{backgroundType:l,backgroundImageDesktop:i,backgroundImageTablet:o,backgroundImageMobile:n,backgroundColor:r,backgroundPositionDesktop:s,backgroundPositionTablet:c,backgroundPositionMobile:u,backgroundAttachmentDesktop:p,backgroundAttachmentTablet:d,backgroundAttachmentMobile:b,backgroundRepeatDesktop:g,backgroundRepeatTablet:m,backgroundRepeatMobile:y,backgroundSizeDesktop:f,backgroundSizeTablet:h,backgroundSizeMobile:v,gradientValue:_,topPaddingDesktop:T,bottomPaddingDesktop:C,leftPaddingDesktop:S,rightPaddingDesktop:k,topPaddingTablet:w,bottomPaddingTablet:P,leftPaddingTablet:x,rightPaddingTablet:A,topPaddingMobile:G,bottomPaddingMobile:M,leftPaddingMobile:R,rightPaddingMobile:B,paddingType:U,paddingTypeTablet:E,paddingTypeMobile:O,topMarginDesktop:L,bottomMarginDesktop:H,leftMarginDesktop:F,rightMarginDesktop:j,topMarginTablet:z,bottomMarginTablet:D,leftMarginTablet:N,rightMarginTablet:I,topMarginMobile:V,bottomMarginMobile:W,leftMarginMobile:q,rightMarginMobile:Z,marginType:$,marginTypeTablet:Y,marginTypeMobile:K,backgroundCustomSizeDesktop:J,backgroundCustomSizeTablet:X,backgroundCustomSizeMobile:Q,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPositionDesktop:oe,xPositionTablet:ne,xPositionMobile:re,xPositionType:se,xPositionTypeTablet:ce,xPositionTypeMobile:ue,yPositionDesktop:pe,yPositionTablet:de,yPositionMobile:be,yPositionType:ge,yPositionTypeTablet:me,yPositionTypeMobile:ye,overflow:fe,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke}=e;const we=a.toLowerCase(),Pe=Wr(e,"container","tablet"),xe=Wr(e,"container","mobile");w=void 0!==w?w:T,G=void 0!==G?G:w,P=void 0!==P?P:C,M=void 0!==M?M:P,x=void 0!==x?x:S,R=void 0!==R?R:x,A=void 0!==A?A:k,B=void 0!==B?B:A,z=void 0!==z?z:L,V=void 0!==V?V:z,D=void 0!==D?D:H,W=void 0!==W?W:D,N=void 0!==N?N:F,q=void 0!==q?q:N,I=void 0!==I?I:j,Z=void 0!==Z?Z:I;const Ae={},Ge=qr({backgroundType:l,backgroundImage:i,backgroundColor:r,gradientValue:_,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke,backgroundRepeat:g,backgroundPosition:s,backgroundSize:f,backgroundAttachment:p,backgroundCustomSize:J,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPosition:oe,xPositionType:se,yPosition:pe,yPositionType:ge}),Me={"padding-top":Vr(T,U),"padding-bottom":Vr(C,U),"padding-left":Vr(S,U),"padding-right":Vr(k,U),"margin-top":Vr(L,$)+" !important","margin-bottom":Vr(H,$)+" !important","margin-left":Vr(F,$),"margin-right":Vr(j,$),...Ge,overflow:fe};Ae[" .swiper-content"]=Me;const Re=qr({backgroundType:l,backgroundImage:o,backgroundColor:r,gradientValue:_,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke,backgroundRepeat:m,backgroundPosition:c,backgroundSize:h,backgroundAttachment:d,backgroundCustomSize:X,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPosition:ne,xPositionType:ce,yPosition:de,yPositionType:me}),Be={" .swiper-content":{"padding-top":Vr(w,E),"padding-bottom":Vr(P,E),"padding-left":Vr(x,E),"padding-right":Vr(A,E),"margin-top":Vr(z,Y)+" !important","margin-bottom":Vr(D,Y)+" !important","margin-left":Vr(N,Y),"margin-right":Vr(I,Y),...Re,...Pe}},Ue=qr({backgroundType:l,backgroundImage:n,backgroundColor:r,gradientValue:_,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke,backgroundRepeat:y,backgroundPosition:u,backgroundSize:v,backgroundAttachment:b,backgroundCustomSize:Q,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPosition:re,xPositionType:ue,yPosition:be,yPositionType:ye}),Ee={" .swiper-content":{"padding-top":Vr(G,O),"padding-bottom":Vr(M,O),"padding-left":Vr(R,O),"padding-right":Vr(B,O),"margin-top":Vr(V,K)+" !important","margin-bottom":Vr(W,K)+" !important","margin-left":Vr(q,K),"margin-right":Vr(Z,K),...Ue,...xe}},Oe=".editor-styles-wrapper #block-"+t;let Le=ae(Ae,Oe);return"tablet"!==we&&"mobile"!==we||(Le+=ae(Be,""+Oe,!0,"tablet"),"mobile"===we&&(Le+=ae(Ee,""+Oe,!0,"mobile"))),Le}(a,i,l),[a,l]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),t&&React.createElement(YA,e),React.createElement(KA,e))}),QA=[{attributes:{block_id:{type:"string",default:"0"},backgroundType:{type:"string",default:"none",UAGCopyPaste:{styleType:"slider-bg-type"}},backgroundImageDesktop:{type:"object",UAGCopyPaste:{styleType:"slider-bg-image-desktop"}},backgroundImageTablet:{type:"object",UAGCopyPaste:{styleType:"slider-bg-image-tablet"}},backgroundImageMobile:{type:"object",UAGCopyPaste:{styleType:"slider-bg-image-mobile"}},backgroundPositionDesktop:{type:"object",default:{x:.5,y:.5},UAGCopyPaste:{styleType:"slider-bg-position-desktop"}},backgroundPositionTablet:{type:"object",UAGCopyPaste:{styleType:"slider-bg-position-tablet"}},backgroundPositionMobile:{type:"object",UAGCopyPaste:{styleType:"slider-bg-position-mobile"}},backgroundSizeDesktop:{type:"string",default:"cover",UAGCopyPaste:{styleType:"slider-bg-size-desktop"}},backgroundSizeTablet:{type:"string",UAGCopyPaste:{styleType:"slider-bg-size-tablet"}},backgroundSizeMobile:{type:"string",UAGCopyPaste:{styleType:"slider-bg-size-mobile"}},backgroundRepeatDesktop:{type:"string",default:"no-repeat",UAGCopyPaste:{styleType:"slider-bg-repeat-desktop"}},backgroundRepeatTablet:{type:"string",UAGCopyPaste:{styleType:"slider-bg-repeat-tablet"}},backgroundRepeatMobile:{type:"string",UAGCopyPaste:{styleType:"slider-bg-repeat-mobile"}},backgroundAttachmentDesktop:{type:"string",default:"scroll",UAGCopyPaste:{styleType:"slider-bg-attachment-desktop"}},backgroundAttachmentTablet:{type:"string",UAGCopyPaste:{styleType:"slider-bg-attachment-tablet"}},backgroundAttachmentMobile:{type:"string",UAGCopyPaste:{styleType:"slider-bg-attachment-mobile"}},backgroundColor:{type:"string",UAGCopyPaste:{styleType:"slider-bg-color"}},backgroundOpacity:{type:"number",UAGCopyPaste:{styleType:"slider-bg-opacity"}},backgroundImageColor:{type:"string",UAGCopyPaste:{styleType:"slider-bg-image-color"},default:"#FFFFFF75"},gradientValue:{type:"string",default:"linear-gradient(90deg, rgba(6, 147, 227, 0.5) 0%, rgba(155, 81, 224, 0.5) 100%)",UAGCopyPaste:{styleType:"slider-bg-gradient-value"}},topPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-top-padding-desktop"},default:20},bottomPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-padding-desktop"},default:20},leftPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-left-padding-desktop"},default:20},rightPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-right-padding-desktop"},default:20},topPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-top-padding-tablet"},default:20},bottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-padding-tablet"},default:20},leftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-left-padding-tablet"},default:20},rightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-right-padding-tablet"},default:20},topPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-top-padding-mobile"},default:20},bottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-padding-mobile"},default:20},leftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-left-padding-mobile"},default:20},rightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-right-padding-mobile"},default:20},paddingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-padding-type"}},paddingTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-padding-type-tablet"}},paddingTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-padding-type-mobile"}},paddingLink:{type:"boolean",default:!0},topMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-top-margin-desktop"}},bottomMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-margin-desktop"}},leftMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-left-margin-desktop"}},rightMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-right-margin-desktop"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-top-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-left-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-right-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-top-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-left-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-right-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-margin-type"}},marginTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-margin-type-tablet"}},marginTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-margin-type-mobile"}},isPreview:{type:"boolean",default:!1},isBlockRootParent:{type:"boolean",default:!1},backgroundCustomSizeDesktop:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-desktop"},default:100},backgroundCustomSizeTablet:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-tablet"}},backgroundCustomSizeMobile:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-mobile"}},backgroundCustomSizeType:{type:"string",default:"%",UAGCopyPaste:{styleType:"background-custom-size-type"}},overlayType:{type:"string",default:"none",UAGCopyPaste:{styleType:"background-overlay-type"}},customPosition:{type:"string",default:"default",UAGCopyPaste:{styleType:"background-image-position-type"}},xPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-desktop"},default:""},xPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-tablet"}},xPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-mobile"}},xPositionType:{type:"string",default:"px"},xPositionTypeTablet:{type:"string",default:"px"},xPositionTypeMobile:{type:"string",default:"px"},yPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-desktop"},default:""},yPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-tablet"}},yPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-mobile"}},yPositionType:{type:"string",default:"px"},yPositionTypeTablet:{type:"string",default:"px"},yPositionTypeMobile:{type:"string",default:"px"}},save:function(e){const{block_id:t}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-slider-child-wrap","swiper-slide","uagb-block-"+t),key:t},React.createElement("div",{className:"swiper-content"},React.createElement(ge.InnerBlocks.Content,null))))}}];let eG={};eG=Object(F.applyFilters)("uagb/slider-child",ss(eG)),Object(de.registerBlockType)("uagb/slider-child",{...eG,title:Object(r.__)("Slider Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add and customize content of this slide.","ultimate-addons-for-gutenberg"),icon:se.slider_child,parent:["uagb/slider"],keywords:[Object(r.__)("slider","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],attributes:ja,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"slider-child",isChildren:!0}):React.createElement(XA,e),save:function(e){const{block_id:t}=e.attributes,a=ge.useBlockProps.save({className:Be()("uagb-slider-child-wrap","swiper-slide","uagb-block-"+t)});return React.createElement(React.Fragment,null,React.createElement("div",ZA({},a,{key:t}),React.createElement("div",{className:"swiper-content"},React.createElement(ge.InnerBlocks.Content,null))))},deprecated:QA}),a(370);var tG={from:[{type:"raw",priority:20,selector:"p",schema:e=>{let{phrasingContentSchema:t,isPaste:a}=e;return{p:{children:t,attributes:a?[]:["style"]}}},transform(e){const t=Object(de.getBlockAttributes)("uagb/social-share",e.outerHTML),{textAlign:a}=e.style||{};return"left"!==a&&"center"!==a&&"right"!==a||(t.align=a),Object(de.createBlock)("uagb/social-share",t)}}]};const aG=[{defaultAttributes:ht},{defaultChildAttributes:vt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"gap",value:15},{label:"gapTablet",value:15},{label:"gapMobile",value:15},{label:"bgSize",value:12},{label:"bgSizeTablet",value:12},{label:"bgSizeMobile",value:12},{label:"size",value:20},{label:"sizeTablet",value:20},{label:"sizeMobile",value:20},{label:"borderRadius",value:0},{label:"borderRadiusTablet",value:0},{label:"borderRadiusMobile",value:0},{label:"border",value:0},{label:"iconColor",value:"#ffffff"},{label:"iconBgColor",value:"#0170B9"}],childAttributes:[{label:"icon_color",value:""},{label:"icon_bg_color",value:""}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"gap",value:15},{label:"gapTablet",value:15},{label:"gapMobile",value:15},{label:"bgSize",value:12},{label:"bgSizeTablet",value:12},{label:"bgSizeMobile",value:12},{label:"size",value:20},{label:"sizeTablet",value:20},{label:"sizeMobile",value:20},{label:"borderRadius",value:5},{label:"borderRadiusTablet",value:5},{label:"borderRadiusMobile",value:5},{label:"border",value:0},{label:"iconColor",value:"#ffffff"},{label:"iconBgColor",value:"#0170B9"}],childAttributes:[{label:"icon_color",value:""},{label:"icon_bg_color",value:""}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"gap",value:15},{label:"gapTablet",value:15},{label:"gapMobile",value:15},{label:"bgSize",value:12},{label:"bgSizeTablet",value:12},{label:"bgSizeMobile",value:12},{label:"size",value:20},{label:"sizeTablet",value:20},{label:"sizeMobile",value:20},{label:"borderRadius",value:100},{label:"borderRadiusTablet",value:100},{label:"borderRadiusMobile",value:100},{label:"border",value:0},{label:"iconColor",value:"#ffffff"},{label:"iconBgColor",value:"#0170B9"}],childAttributes:[{label:"icon_color",value:""},{label:"icon_bg_color",value:""}],icon:' '}];var lG=Object(F.applyFilters)("uag_social_share_presets",aG);function iG(){return(iG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{align:l,alignTablet:i,alignMobile:o,gap:n,gapTablet:s,gapMobile:c,stack:u,social_layout:p,borderRadius:d,borderRadiusTablet:b,borderRadiusMobile:g,size:m,sizeType:y,sizeMobile:f,sizeTablet:h,bgSize:v,iconColor:_,iconHoverColor:T,iconBgColor:C,iconBgHoverColor:S}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:p,label:"social_layout"},className:"uagb-multi-button-alignment-control",options:[{value:"horizontal",label:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},{value:"vertical",label:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"align"},tablet:{value:i,label:"alignTablet"},mobile:{value:o,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),"horizontal"===p&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:u,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],showIcons:!1,help:Object(r.__)("Note: Choose on what breakpoint the Icons will stack.","ultimate-addons-for-gutenberg")}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:lG,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"size"},tablet:{value:h,label:"sizeTablet"},mobile:{value:f,label:"sizeMobile"}},min:0,max:100,unit:{value:y,label:"sizeType"},setAttributes:a}),React.createElement(Qa,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:v,data:{value:v,label:"bgSize"},min:0,max:100,displayUnit:!1,help:Object(r.__)("Note: Background Size option is useful when one adds background color to the icons.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:d,label:"borderRadius"},tablet:{value:b,label:"borderRadiusTablet"},mobile:{value:g,label:"borderRadiusMobile"}},min:0,max:100,displayUnit:!1,help:Object(r.__)("Note: Border Radius option is useful when one adds background color to the icons.","ultimate-addons-for-gutenberg"),setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"iconColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:C||"",data:{value:C,label:"iconBgColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:T||"",data:{value:T,label:"iconHoverColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:S||"",data:{value:S,label:"iconBgHoverColor"},setAttributes:a})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Gap between Items","ultimate-addons-for-gutenberg"),data:{desktop:{value:n,label:"gap"},tablet:{value:s,label:"gapTablet"},mobile:{value:c,label:"gapMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}))),React.createElement(il,iG({},rl,{parentProps:e}))))}),rG=a(137),sG=0,cG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},uG={};uG.locals=rG.a.locals||{},uG.use=function(){return sG++||(oG=we()(rG.a,cG)),uG},uG.unuse=function(){sG>0&&!--sG&&(oG(),oG=null)};var pG=uG;const dG=["uagb/social-share-child"];var bG=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(pG.use(),()=>{pG.unuse()}),[]);const{attributes:t,deviceType:a}=e,{className:l,social_layout:i,block_id:o}=t;return React.createElement("div",{className:Be()(l,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+i,"uagb-editor-preview-mode-"+a.toLowerCase(),"uagb-block-"+o)},React.createElement(ge.InnerBlocks,{template:[["uagb/social-share-child",{type:"facebook",image_icon:"icon",icon:"fab fa-facebook",image:"",icon_color:"#3b5998",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}],["uagb/social-share-child",{type:"twitter",image_icon:"icon",icon:"fab fa-twitter-square",image:"",icon_color:"#55acee",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}],["uagb/social-share-child",{type:"pinterest",image_icon:"icon",icon:"fab fa-pinterest-square",image:"",icon_color:"#bd081c",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}],["uagb/social-share-child",{type:"linkedin",image_icon:"icon",icon:"fab fa-linkedin",image:"",icon_color:"#0077b5",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}]],templateLock:!1,allowedBlocks:dG,__experimentalMoverDirection:i}))}),gG=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,clientId:a,attributes:l,name:i,attributes:{UAGHideDesktop:o,UAGHideTab:r,UAGHideMob:s},deviceType:c}=e;Object(B.useEffect)(()=>{he(e)},[o,r,s,c]),Object(B.useEffect)(()=>{ys()},[c]),Object(B.useEffect)(()=>{var e;null===(e=Object(n.select)("core/block-editor").getBlocksByClientId(a)[0])||void 0===e||e.innerBlocks.forEach((function(e){Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{parentSize:l.size,parentSizeMobile:l.sizeMobile,parentSizeTablet:l.sizeTablet})}))},[l.size,l.sizeMobile,l.sizeTablet]);const u=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{align:n,alignTablet:r,alignMobile:s,gap:c,gapTablet:u,gapMobile:p,social_layout:d,borderRadius:b,borderRadiusTablet:g,borderRadiusMobile:m,size:y,sizeType:f,sizeMobile:h,sizeTablet:v,bgSize:_,stack:T,iconColor:C,iconHoverColor:S,iconBgColor:k,iconBgHoverColor:w,block_id:P}=e,x=us(_,"bgSize",i),A=us(y,"size",i),G=us(c,"gap",i),M=isNaN(u)?G:u,R=isNaN(p)?M:p,B={" span.uagb-ss__link":{color:C}," span.uagb-ss__link svg":{fill:C}," .uagb-ss-repeater:hover span.uagb-ss__link":{color:S}," .uagb-ss-repeater:hover span.uagb-ss__link svg":{fill:S}," .uagb-ss__wrapper":{background:k}," .uagb-ss__wrapper:hover":{background:w}},U={},E={};function O(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"}B[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={padding:Vr(x,"px"),"margin-left":0,"margin-right":0,"margin-top":Vr(G/2,"px"),"margin-bottom":Vr(G/2,"px")},U[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-top":Vr(M/2,"px"),"margin-bottom":Vr(M/2,"px")},E[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-top":Vr(R/2,"px"),"margin-bottom":Vr(R/2,"px")},B[".uagb-social-share__layout-vertical.uagb-social-share__outer-wrap"]={"flex-direction":"column"},B[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={padding:Vr(x,"px"),"margin-left":Vr(G/2,"px"),"margin-right":Vr(G/2,"px")},U[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":Vr(M/2,"px"),"margin-right":Vr(M/2,"px")},E[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":Vr(R/2,"px"),"margin-right":Vr(R/2,"px")},B[" .uagb-ss__wrapper.uagb-ss-repeater "]={"border-radius":Vr(b,"px")},U[" .uagb-ss__wrapper.uagb-ss-repeater "]={"border-radius":Vr(g,"px")},E[" .uagb-ss__wrapper.uagb-ss-repeater "]={"border-radius":Vr(m,"px")},B[" .uagb-ss__source-image"]={width:Vr(A,f)},B[" .uagb-ss__source-wrap"]={width:Vr(A,f)},B[" .uagb-ss__source-wrap svg"]={width:Vr(A,f),height:Vr(A,f)},B[" .uagb-ss__source-icon"]={width:Vr(A,f),height:Vr(A,f),"font-size":Vr(A,f)};const L=O(n),H=O(r),F=O(s);B[".uagb-social-share__outer-wrap .block-editor-inner-blocks"]={"text-align":n},B[".uagb-social-share__outer-wrap .block-editor-inner-blocks .block-editor-block-list__layout"]={"justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap .block-editor-inner-blocks .block-editor-block-list__layout"]={"justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap .block-editor-inner-blocks .block-editor-block-list__layout"]={"justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F},B[".uagb-social-share__outer-wrap"]={"justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F},"horizontal"===d&&("desktop"===T?(B[".uagb-social-share__layout-horizontal .block-editor-inner-blocks > .block-editor-block-list__layout"]={"flex-direction":"column"},B[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(G,"px"),background:k},U[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(u,"px"),background:k},E[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(p,"px"),background:k},B[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F}):"tablet"===T?(U[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(u,"px"),background:k},U[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={"flex-direction":"column"},E[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"flex-direction":"column"},U[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0},B[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F}):"mobile"===T&&(E[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(p,"px"),background:k},E[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"flex-direction":"column"},E[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0},B[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F})),E[" .uagb-ss__source-image"]={width:Vr(h,f)},E[" .uagb-ss__source-wrap"]={width:Vr(h,f),height:Vr(h,f),"line-height":Vr(h,f)},E[" .uagb-ss__source-wrap svg"]={width:Vr(h,f),height:Vr(h,f)},E[" .uagb-ss__source-icon"]={width:Vr(h,f),height:Vr(h,f),"font-size":Vr(h,f),"line-height":Vr(h,f)},U[" .uagb-ss__source-image"]={width:Vr(v,f)},U[" .uagb-ss__source-wrap"]={width:Vr(v,f),height:Vr(v,f),"line-height":Vr(v,f)},U[" .uagb-ss__source-wrap svg"]={width:Vr(v,f),height:Vr(v,f)},U[" .uagb-ss__source-icon"]={width:Vr(v,f),height:Vr(v,f),"font-size":Vr(v,f),"line-height":Vr(v,f)};let j="";const z=".uagb-block-"+P;return j=ae(B,z),"tablet"!==o&&"mobile"!==o||(j+=ae(U,""+z,!0,"tablet"),"mobile"===o&&(j+=ae(E,""+z,!0,"mobile"))),j}(l,0,i,c),[l,c]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:u}),t&&React.createElement(nG,e),React.createElement(bG,e))}),mG={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",pinterest:"https://pinterest.com/pin/create/link/?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"https://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body="},yG=[{attributes:ht,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,socials:n,social_count:r,social_layout:s,current_url:c}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+s),id:"uagb-social-share-"+l},React.createElement("div",{className:"uagb-social-share__wrap"},n.map((e,t)=>{if(r<=t)return;let a="";null!=c&&(a=mG[e.type]+encodeURI(c));let l="";return"icon"==e.image_icon?e.icon&&(l=React.createElement("span",{className:Be()(e.icon,"uagb-ss__source-icon")})):e.image&&(l=React.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),React.createElement("div",{className:Be()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},React.createElement("a",{className:"uagb-ss__link",href:a,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},l)))})))}},{attributes:ht,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,socials:n,social_count:r,social_layout:s,current_url:c}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+s),id:"uagb-social-share-"+l},React.createElement("div",{className:"uagb-social-share__wrap"},n.map((e,t)=>{if(r<=t)return;let a="";null!=c&&(a=mG[e.type]);let l="";return"icon"==e.image_icon?e.icon&&(l=React.createElement("span",{className:"uagb-ss__source-icon"},kb(e.icon))):e.image&&(l=React.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),React.createElement("div",{className:Be()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},React.createElement("a",{className:"uagb-ss__link","data-href":a,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},l)))})))}},{attributes:ht,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,socials:n,social_count:r,social_layout:s,current_url:c}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+s,"uagb-block-"+l)},React.createElement("div",{className:"uagb-social-share__wrap"},n.map((e,t)=>{if(r<=t)return;let a="";null!=c&&(a=mG[e.type]);let l="";return"icon"==e.image_icon?e.icon&&(l=React.createElement("span",{className:"uagb-ss__source-icon"},kb(e.icon))):e.image&&(l=React.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),React.createElement("div",{className:Be()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},React.createElement("a",{className:"uagb-ss__link","data-href":a,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},l)))})))}},{attributes:ht,save:e=>{const{className:t}=e,{block_id:a,social_layout:l}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+l,"uagb-block-"+a)},React.createElement("div",{className:"uagb-social-share__wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];let fG={};fG=Object(F.applyFilters)("uagb/social-share",ss(fG)),Object(de.registerBlockType)("uagb/social-share",{...fG,title:Object(r.__)("Social Share","ultimate-addons-for-gutenberg"),description:Object(r.__)("Share your content on different social media platforms.","ultimate-addons-for-gutenberg"),icon:se.social_share,keywords:[Object(r.__)("social share","ultimate-addons-for-gutenberg"),Object(r.__)("icon","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:ht,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"social-share"}):React.createElement(gG,e),save:function(e){const{className:t}=e,{block_id:a,social_layout:l}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+l,"uagb-block-"+a)},React.createElement(ge.InnerBlocks.Content,null))},transform:tG,deprecated:yG});function hG(){return(hG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{type:l,image_icon:i,icon:o,image:n,icon_color:s,icon_hover_color:c,icon_bg_color:u,icon_bg_hover_color:p}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:l},onChange:e=>{a({type:e}),a({icon:{facebook:"fab fa-facebook",twitter:"fab fa-twitter-square",google:"fab fa-google-plus-square",pinterest:"fab fa-pinterest-square",linkedin:"fab fa-linkedin",digg:"fab fa-digg",blogger:"fab fa-blogger",reddit:"fab fa-reddit-square",stumbleupon:"fab fa-stumbleupon-circle",tumblr:"fab fa-tumblr-square",myspace:"fas fa-user-friends",email:"fas fa-envelope",pocket:"fab fa-get-pocket",vk:"fab fa-vk",odnoklassniki:"fab fa-odnoklassniki",skype:"fab fa-skype",telegram:"fab fa-telegram",whatsapp:"fab fa-whatsapp",xing:"fab fa-xing",buffer:"fab fa-buffer"}[e]})},options:[{value:"facebook",label:Object(r.__)("Facebook","ultimate-addons-for-gutenberg")},{value:"twitter",label:Object(r.__)("Twitter / X","ultimate-addons-for-gutenberg")},{value:"google",label:Object(r.__)("Google Currents","ultimate-addons-for-gutenberg")},{value:"pinterest",label:Object(r.__)("Pinterest","ultimate-addons-for-gutenberg")},{value:"linkedin",label:Object(r.__)("LinkedIn","ultimate-addons-for-gutenberg")},{value:"digg",label:Object(r.__)("Digg","ultimate-addons-for-gutenberg")},{value:"blogger",label:Object(r.__)("Blogger","ultimate-addons-for-gutenberg")},{value:"reddit",label:Object(r.__)("Reddit","ultimate-addons-for-gutenberg")},{value:"stumbleupon",label:Object(r.__)("StumbleUpon","ultimate-addons-for-gutenberg")},{value:"tumblr",label:Object(r.__)("Tumblr","ultimate-addons-for-gutenberg")},{value:"myspace",label:Object(r.__)("Myspace","ultimate-addons-for-gutenberg")},{value:"email",label:Object(r.__)("Email","ultimate-addons-for-gutenberg")},{value:"pocket",label:Object(r.__)("Pocket","ultimate-addons-for-gutenberg")},{value:"vk",label:Object(r.__)("VK","ultimate-addons-for-gutenberg")},{value:"odnoklassniki",label:Object(r.__)("Odnoklassniki","ultimate-addons-for-gutenberg")},{value:"skype",label:Object(r.__)("Skype","ultimate-addons-for-gutenberg")},{value:"telegram",label:Object(r.__)("Telegram","ultimate-addons-for-gutenberg")},{value:"whatsapp",label:Object(r.__)("WhatsApp","ultimate-addons-for-gutenberg")},{value:"xing",label:Object(r.__)("Xing","ultimate-addons-for-gutenberg")},{value:"buffer",label:Object(r.__)("Buffer","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Image / Icon","ultimate-addons-for-gutenberg"),data:{value:i,label:"image_icon"},className:"uagb-multi-button-alignment-control",options:[{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")}],showIcons:!1}),"icon"===i&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({icon:e})})),"image"===i&&React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({image:e}):a({image:null})},backgroundImage:n,onRemoveImage:()=>{a({image:""})}}))),React.createElement(il,nl,(()=>{let e="",t="";return"image"===i?(e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"icon_bg_color"},setAttributes:a})),t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"icon_bg_hover_color"},setAttributes:a}))):(e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"icon_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"icon_bg_color"},setAttributes:a})),t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"icon_hover_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"icon_bg_hover_color"},setAttributes:a}))),React.createElement(je,{title:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:e,hover:t,disableBottomSeparator:!0}))})()),React.createElement(il,hG({},rl,{parentProps:e}))))}),TG=a(138),CG=0,SG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},kG={};kG.locals=TG.a.locals||{},kG.use=function(){return CG++||(vG=we()(TG.a,SG)),kG},kG.unuse=function(){CG>0&&!--CG&&(vG(),vG=null)};var wG=kG,PG=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(wG.use(),()=>{wG.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{className:l,image_icon:i,icon:o,image:n,parentSize:r,imgTagHeight:s,block_id:c}=t,u=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let p="";return Object(B.useEffect)(()=>{n&&n.url&&"none"!==i&&Zg(null==n?void 0:n.url,a,{type:"width",value:r})},[n,r]),"icon"===i?o&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},Ce(o,a))):n&&n.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:n.url,alt:u,width:r,height:s,loading:"lazy"})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",l,"uagb-block-"+c)},React.createElement("span",{className:"uagb-ss__link",href:"/"},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))}),xG=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,clientId:l,deviceType:i}=e;Object(B.useEffect)(()=>{ys()},[i]);const o=Object(B.useMemo)(()=>function(e){const{icon_color:t,icon_hover_color:a,icon_bg_color:l,icon_bg_hover_color:i,block_id:o}=e;let n="";return n=ae({".uagb-ss-repeater span.uagb-ss__link":{color:t},".uagb-ss-repeater span.uagb-ss__link svg":{fill:t},".uagb-ss-repeater:hover span.uagb-ss__link":{color:a},".uagb-ss-repeater:hover span.uagb-ss__link svg":{fill:a},".uagb-ss-repeater.uagb-ss__wrapper":{background:l},".uagb-ss-repeater.uagb-ss__wrapper:hover":{background:i}},".uagb-block-"+o),n}(a),[a,i]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),t&&React.createElement(_G,e),React.createElement(PG,e))}),AG={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"https://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body=",pinterest:"https://pinterest.com/pin/create/link/?url=",vk:"https://vkontakte.ru/share.php?url=",odnoklassniki:"https://connect.ok.ru/offer?url=",pocket:"https://getpocket.com/edit?url=",whatsapp:"https://api.whatsapp.com/send?text=",xing:"https://www.xing.com/app/user?op=share&url=",telegram:"https://telegram.me/share/url?url=",skype:"https://web.skype.com/share?url=",buffer:"https://buffer.com/add?url="};a(371);var GG={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"http://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body=",pinterest:"https://pinterest.com/pin/create/link/?url=",vk:"https://vkontakte.ru/share.php?url=",odnoklassniki:"https://connect.ok.ru/offer?url=",pocket:"https://getpocket.com/edit?url=",whatsapp:"https://api.whatsapp.com/send?text=",xing:"https://www.xing.com/app/user?op=share&url=",telegram:"https://telegram.me/share/url?url=",skype:"https://web.skype.com/share?url=",buffer:"https://buffer.com/add?url="},MG=[{attributes:vt,save:e=>{const{attributes:t,className:a}=e,{current_url:l,type:i,image_icon:o,icon:n,image:r,block_id:s,link:c}=e.attributes;let u="";null!=l&&(u=GG[i]);let p="";return"icon"==o?n&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},kb(n))):r&&r.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:r.url})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",a,"uagb-block-"+s)},React.createElement("a",{className:"uagb-ss__link","data-href":u,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))}},{attributes:vt,save:function(e){const{className:t}=e,{type:a,image_icon:l,icon:i,image:o,block_id:n,parentSize:r,imgTagHeight:s}=e.attributes,c=AG[a],u=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let p="";return"icon"===l?i&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},Ce(i))):o&&o.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:o.url,alt:u,width:r,height:s,loading:"lazy"})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",t,"uagb-block-"+n)},React.createElement("a",{className:"uagb-ss__link","data-href":c,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))}}];let RG={};RG=Object(F.applyFilters)("uagb/social-share-child",ss(RG)),Object(de.registerBlockType)("uagb/social-share-child",{...RG,title:Object(r.__)("Social Share Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Share your content on this social media platform .","ultimate-addons-for-gutenberg"),icon:se.social_share_child,parent:["uagb/social-share"],keywords:[Object(r.__)("social share","ultimate-addons-for-gutenberg"),Object(r.__)("icon","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],attributes:vt,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"social-share-child",isChildren:!0}):React.createElement(xG,e),save:function(e){const{className:t}=e,{type:a,image_icon:l,icon:i,image:o,block_id:n,parentSize:r,imgTagHeight:s}=e.attributes,c=AG[a],u=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let p="";return"icon"===l?i&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},Ce(i))):o&&o.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:o.url,alt:u,width:r,height:s,loading:"lazy"})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",t,"uagb-block-"+n)},React.createElement("span",{className:"uagb-ss__link","data-href":c,tabIndex:0,role:"button","aria-label":a},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))},deprecated:MG});function BG(){return(BG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,attributes:{rating:l,range:i,layout:o,layoutTablet:n,layoutMobile:s,align:c,alignTablet:u,alignMobile:p,size:d,sizeTablet:b,sizeMobile:g,gap:m,gapMobile:y,gapTablet:f,unmarkedColor:h,color:v,title:_,loadGoogleFonts:T,fontFamily:C,fontWeight:S,fontSizeType:k,fontSize:w,fontSizeMobile:P,fontSizeTablet:x,lineHeightType:A,lineHeight:G,lineHeightMobile:M,lineHeightTablet:R,titleColor:B,titleGap:U,titleGapMobile:E,titleGapTablet:O,fontStyle:L,fontTransform:H,fontDecoration:F,displayTitle:j,letterSpacing:z,letterSpacingTablet:D,letterSpacingMobile:N,letterSpacingType:I,blockTopPadding:V,blockRightPadding:W,blockLeftPadding:q,blockBottomPadding:Z,blockTopPaddingTablet:$,blockRightPaddingTablet:Y,blockLeftPaddingTablet:K,blockBottomPaddingTablet:J,blockTopPaddingMobile:X,blockRightPaddingMobile:Q,blockLeftPaddingMobile:ee,blockBottomPaddingMobile:te,blockPaddingUnit:ae,blockPaddingUnitTablet:le,blockPaddingUnitMobile:ie,blockPaddingLink:oe,blockTopMargin:ne,blockRightMargin:re,blockLeftMargin:se,blockBottomMargin:ce,blockTopMarginTablet:ue,blockRightMarginTablet:pe,blockLeftMarginTablet:de,blockBottomMarginTablet:be,blockTopMarginMobile:me,blockRightMarginMobile:ye,blockLeftMarginMobile:fe,blockBottomMarginMobile:he,blockMarginUnit:ve,blockMarginUnitTablet:_e,blockMarginUnitMobile:Te,blockMarginLink:Se,starPosition:ke,starPositionTablet:we,starPositionMobile:Pe},deviceType:xe}=e;let Ae=[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full","ultimate-addons-for-gutenberg")}];("stack"===o||"stack"===n&&"Tablet"===xe||"stack"===s&&"Mobile"===xe)&&(Ae=[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],"full"===c&&a({align:"left"}));const Ge=React.createElement(je,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Title","ultimate-addons-for-gutenberg"),checked:j,onChange:()=>a({displayTitle:!j})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Range","ultimate-addons-for-gutenberg"),data:{value:i,label:"range"},options:[{value:"5",label:Object(r.__)("1-5","ultimate-addons-for-gutenberg")},{value:"10",label:Object(r.__)("1-10","ultimate-addons-for-gutenberg")}]}),React.createElement(Qa,{label:Object(r.__)("Rating","ultimate-addons-for-gutenberg"),setAttributes:a,value:l,data:{value:l,label:"rating"},min:0,max:i,step:.1,displayUnit:!1}),j&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{desktop:{value:o,label:"layout"},tablet:{value:n,label:"layoutTablet"},mobile:{value:s,label:"layoutMobile"}},options:[{value:"inline",label:Object(r.__)("Inline","ultimate-addons-for-gutenberg")},{value:"stack",label:Object(r.__)("Stack","ultimate-addons-for-gutenberg")}],responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Star Position","ultimate-addons-for-gutenberg"),data:{desktop:{value:ke,label:"starPosition"},tablet:{value:we,label:"starPositionTablet"},mobile:{value:Pe,label:"starPositionMobile"}},options:[{value:"before",label:Object(r.__)("Before","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After","ultimate-addons-for-gutenberg")}],responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"align"},tablet:{value:u,label:"alignTablet"},mobile:{value:p,label:"alignMobile"}},options:Ae,showIcons:!0,responsive:!0})),Me=React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:B,data:{value:B,label:"titleColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:T,label:"loadGoogleFonts"},fontFamily:{value:C,label:"fontFamily"},fontWeight:{value:S,label:"fontWeight"},fontStyle:{value:L,label:"fontStyle"},transform:{value:H,label:"fontTransform"},decoration:{value:F,label:"fontDecoration"},fontSizeType:{value:k,label:"fontSizeType"},fontSize:{value:w,label:"fontSize"},fontSizeMobile:{value:P,label:"fontSizeMobile"},fontSizeTablet:{value:x,label:"fontSizeTablet"},lineHeightType:{value:A,label:"lineHeightType"},lineHeight:{value:G,label:"lineHeight"},lineHeightMobile:{value:M,label:"lineHeightMobile"},lineHeightTablet:{value:R,label:"lineHeightTablet"},letterSpacing:{value:z,label:"letterSpacing"},letterSpacingTablet:{value:D,label:"letterSpacingTablet"},letterSpacingMobile:{value:N,label:"letterSpacingMobile"},letterSpacingType:{value:I,label:"letterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Gap Between Title And Stars","ultimate-addons-for-gutenberg"),data:{desktop:{value:U,label:"titleGap"},tablet:{value:O,label:"titleGapTablet"},mobile:{value:E,label:"titleGapMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a})),Re=React.createElement(je,{title:Object(r.__)("Star","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:v,data:{value:v,label:"color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Unmarked Color","ultimate-addons-for-gutenberg"),colorValue:h,data:{value:h,label:"unmarkedColor"},setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:d,label:"size"},tablet:{value:b,label:"sizeTablet"},mobile:{value:g,label:"sizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Stars","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"gap"},tablet:{value:f,label:"gapTablet"},mobile:{value:y,label:"gapMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a})),Be=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:V,label:"blockTopPadding"},valueRight:{value:W,label:"blockRightPadding"},valueBottom:{value:Z,label:"blockBottomPadding"},valueLeft:{value:q,label:"blockLeftPadding"},valueTopTablet:{value:$,label:"blockTopPaddingTablet"},valueRightTablet:{value:Y,label:"blockRightPaddingTablet"},valueBottomTablet:{value:J,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:K,label:"blockLeftPaddingTablet"},valueTopMobile:{value:X,label:"blockTopPaddingMobile"},valueRightMobile:{value:Q,label:"blockRightPaddingMobile"},valueBottomMobile:{value:te,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:ee,label:"blockLeftPaddingMobile"},unit:{value:ae,label:"blockPaddingUnit"},mUnit:{value:ie,label:"blockPaddingUnitMobile"},tUnit:{value:le,label:"blockPaddingUnitTablet"},deviceType:xe,attributes:t,setAttributes:a,link:{value:oe,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:ne,label:"blockTopMargin"},valueRight:{value:re,label:"blockRightMargin"},valueBottom:{value:ce,label:"blockBottomMargin"},valueLeft:{value:se,label:"blockLeftMargin"},valueTopTablet:{value:ue,label:"blockTopMarginTablet"},valueRightTablet:{value:pe,label:"blockRightMarginTablet"},valueBottomTablet:{value:be,label:"blockBottomMarginTablet"},valueLeftTablet:{value:de,label:"blockLeftMarginTablet"},valueTopMobile:{value:me,label:"blockTopMarginMobile"},valueRightMobile:{value:ye,label:"blockRightMarginMobile"},valueBottomMobile:{value:he,label:"blockBottomMarginMobile"},valueLeftMobile:{value:fe,label:"blockLeftMarginMobile"},unit:{value:ve,label:"blockMarginUnit"},mUnit:{value:Te,label:"blockMarginUnitMobile"},tUnit:{value:_e,label:"blockMarginUnitTablet"},deviceType:xe,attributes:t,setAttributes:a,link:{value:Se,label:"blockMarginLink"}}));return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","style","advance"]},React.createElement(il,ol,Ge),React.createElement(il,nl,Re,j&&""!==_&&Me,Be),React.createElement(il,BG({},rl,{parentProps:e})))))}),OG=a(139),LG=0,HG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},FG={};FG.locals=OG.a.locals||{},FG.use=function(){return LG++||(UG=we()(OG.a,HG)),FG},FG.unuse=function(){LG>0&&!--LG&&(UG(),UG=null)};var jG=FG,zG=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(jG.use(),()=>{jG.unuse()}),[]);const{className:t,setAttributes:a,attributes:{rating:l,range:i,title:o,displayTitle:n,block_id:s},deviceType:c}=e,u=parseInt(i),p=[];for(let e=1;e<=u;e++)p.push(React.createElement("span",{key:e,className:"uag-star"},"★"));return React.createElement("div",{className:Be()(t,"uagb-editor-preview-mode-"+c.toLowerCase(),"uagb-block-"+s)},n&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("Write a title","ultimate-addons-for-gutenberg"),value:o,className:"uag-star-rating__title",onChange:e=>a({title:e})}),React.createElement("div",{className:"uag-star-rating",title:`${l}/${i}`},p))}),DG=Object(B.memo)(e=>{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)}),NG=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:n,name:r,deviceType:s}=e;Object(B.useEffect)(()=>{he(e)},[l,i,o,s]),Object(B.useEffect)(()=>{ys()},[s]);const c=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{layout:n,layoutTablet:r,layoutMobile:s,rating:c,size:u,sizeMobile:p,sizeTablet:d,align:b,alignTablet:g,alignMobile:m,gap:y,gapTablet:f,gapMobile:h,unmarkedColor:v,color:_,fontFamily:T,fontWeight:C,fontSizeType:S,fontSize:k,fontSizeMobile:w,fontSizeTablet:P,lineHeightType:x,lineHeight:A,lineHeightMobile:G,lineHeightTablet:M,titleColor:R,titleGap:B,titleGapTablet:U,titleGapMobile:E,fontStyle:O,fontTransform:L,fontDecoration:H,letterSpacing:F,letterSpacingTablet:j,letterSpacingMobile:z,letterSpacingType:D,blockTopPadding:N,blockRightPadding:I,blockLeftPadding:V,blockBottomPadding:W,blockTopPaddingTablet:q,blockRightPaddingTablet:Z,blockLeftPaddingTablet:$,blockBottomPaddingTablet:Y,blockTopPaddingMobile:K,blockRightPaddingMobile:J,blockLeftPaddingMobile:X,blockBottomPaddingMobile:Q,blockPaddingUnit:ee,blockPaddingUnitTablet:te,blockPaddingUnitMobile:le,blockTopMargin:ie,blockRightMargin:oe,blockLeftMargin:ne,blockBottomMargin:re,blockTopMarginTablet:se,blockRightMarginTablet:ce,blockLeftMarginTablet:ue,blockBottomMarginTablet:pe,blockTopMarginMobile:de,blockRightMarginMobile:be,blockLeftMarginMobile:ge,blockBottomMarginMobile:me,blockMarginUnit:ye,blockMarginUnitTablet:fe,blockMarginUnitMobile:he,starPosition:ve,starPositionTablet:_e,starPositionMobile:Te,block_id:Ce}=e,Se=us(c,"rating",i),ke=us(B,"titleGap",i),we=us(u,"size",i),Pe=us(y,"gap",i);let xe=b;"full"===b&&(xe="left");const Ae=e=>{let t="";switch(e){case"right":t="flex-end";break;case"center":t="center";break;case"full":t="space-between";break;default:t="flex-start"}return t};function Ge(e){switch(Ae(e)){case"flex-end":return"flex-start";case"center":return"center";case"space-between":return"space-between";default:return"flex-end"}}const Me=100*(Se%1).toFixed(1),Re={"margin-top":Vr(ie,ye),"margin-right":Vr(oe,ye),"margin-bottom":Vr(re,ye),"margin-left":Vr(ne,ye),"padding-top":Vr(N,ee),"padding-right":Vr(I,ee),"padding-bottom":Vr(W,ee),"padding-left":Vr(V,ee)},Be={" .uag-star-rating":{"font-size":Vr(we,"px")}," .uag-star-rating > span":{"margin-right":Vr(Pe,"px"),color:v}," p.uag-star-rating__title.block-editor-rich-text__editable":{"font-size":Vr(k,S),"font-family":T,"font-style":O,"text-decoration":H,"text-transform":L,"font-weight":C,"line-height":Vr(A,x),color:R,"letter-spacing":Vr(F,D)},".wp-block-uagb-star-rating ":{"justify-content":Ae(b),"text-align":xe}};let Ue="margin-right";"stack"===n?"before"===ve?(Ue="margin-top",Be[".wp-block-uagb-star-rating"]={"flex-direction":"column-reverse","align-items":Ae(b),...Re}):"after"===ve&&(Ue="margin-bottom",Be[".wp-block-uagb-star-rating"]={"flex-direction":"column","align-items":Ae(b),...Re}):"inline"===n&&("before"===ve?(Ue="margin-left",Be[".wp-block-uagb-star-rating"]={"flex-direction":"row-reverse","justify-content":Ge(b),...Re}):"after"===ve&&(Ue="margin-right",Be[".wp-block-uagb-star-rating"]={"flex-direction":"row","align-items":"center","justify-content":Ae(b),...Re})),Be[" p.uag-star-rating__title.block-editor-rich-text__editable"][Ue]=Vr(ke,"px"),0!==Me&&(Be[" .uag-star:nth-child("+Math.ceil(Se)+"):before"]={color:_,width:Vr(Me,"%"),position:"absolute",content:"'★'",overflow:"hidden"},Be[" .uag-star:nth-child("+Math.ceil(Se)+")"]={position:"relative"}),Be[" .uag-star:nth-child(-n+"+Math.floor(Se)+")"]={color:_};const Ee={"margin-top":Vr(se,fe),"margin-right":Vr(ce,fe),"margin-bottom":Vr(pe,fe),"margin-left":Vr(ue,fe),"padding-top":Vr(q,te),"padding-right":Vr(Z,te),"padding-bottom":Vr(Y,te),"padding-left":Vr($,te)},Oe={".wp-block-uagb-star-rating ":{"justify-content":Ae(g)}," .uag-star-rating":{"font-size":Vr(d,"px")}," .uag-star-rating > span":{"margin-right":Vr(f,"px")}," .uag-star-rating__title.block-editor-rich-text__editable":{"font-size":Vr(P,S),"line-height":Vr(M,x),"letter-spacing":Vr(j,D)}};let Le="margin-right";"stack"===r?"before"===_e?(Le="margin-top",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"column-reverse","align-items":Ae(g),...Ee}):"after"===_e&&(Le="margin-bottom",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"column","align-items":Ae(g),...Ee}):"inline"===r&&("before"===_e?(Le="margin-left",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"row-reverse","justify-content":Ge(g),...Ee}):"after"===_e&&(Le="margin-right",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"row","align-items":"center","justify-content":Ae(g),...Ee}),Oe[".wp-block-uagb-star-rating p.block-editor-rich-text__editable.uag-star-rating__title "]={"margin-bottom":0});const He={"margin-top":Vr(de,he),"margin-right":Vr(be,he),"margin-bottom":Vr(me,he),"margin-left":Vr(ge,he),"padding-top":Vr(K,le),"padding-right":Vr(J,le),"padding-bottom":Vr(Q,le),"padding-left":Vr(X,le)},Fe={".wp-block-uagb-star-rating ":{"justify-content":Ae(m)}," .uag-star-rating":{"font-size":Vr(p,"px")}," .uag-star-rating > span":{"margin-right":Vr(h,"px")}," .uag-star-rating__title.block-editor-rich-text__editable":{"font-size":Vr(w,S),"line-height":Vr(G,x),"letter-spacing":Vr(z,D)}};let je="margin-right";"stack"===s?"before"===Te?(je="margin-top",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"column-reverse","align-items":Ae(m),...He}):"after"===Te&&(je="margin-bottom",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"column","align-items":Ae(m),...He}):"inline"===s&&("before"===Te?(je="margin-left",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"row-reverse","justify-content":Ge(m),...He}):"after"===Te&&(je="margin-right",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"row","align-items":"center","justify-content":Ae(m),"margin-bottom":0,...He}),Fe[".wp-block-uagb-star-rating p.block-editor-rich-text__editable.uag-star-rating__title "]={"margin-bottom":0}),Oe[" .uag-star-rating__title.block-editor-rich-text__editable"][Le]=Vr(U,"px"),Fe[" .uag-star-rating__title.block-editor-rich-text__editable"][je]=Vr(E,"px");const ze=".editor-styles-wrapper .uagb-block-"+Ce;let De=ae(Be,ze);return"tablet"!==o&&"mobile"!==o||(De+=ae(Oe,""+ze,!0,"tablet"),"mobile"===o&&(De+=ae(Fe,""+ze,!0,"mobile"))),De}(a,0,r,s),[a,s]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),React.createElement(DG,{attributes:a}),t&&React.createElement(EG,e),React.createElement(zG,e))});a(372);var IG=[{attributes:ya,save(e){const{block_id:t,layout:a,title:l,rating:i,range:o}=e.attributes,n=parseInt(o),r=[];for(let e=1;e<=n;e++)r.push(React.createElement("span",{key:e,className:"uag-star"},"★"));return React.createElement("div",{className:Be()(e.className,"uag-star-rating__wrapper","uagb-block-"+t,"uag-star-rating__layout-"+a)},l&&React.createElement(ge.RichText.Content,{tagName:"p",value:l,className:"uag-star-rating__title"}),React.createElement("div",{className:"uag-star-rating",title:`${i}/${o}`},r))}}];let VG={};VG=Object(F.applyFilters)("uagb/star-rating",ss(VG)),Object(de.registerBlockType)("uagb/star-rating",{...VG,title:Object(r.__)("Star Ratings","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display customizable star ratings on your page.","ultimate-addons-for-gutenberg"),icon:se.star_rating,keywords:[Object(r.__)("rating","ultimate-addons-for-gutenberg"),Object(r.__)("star rating","ultimate-addons-for-gutenberg"),Object(r.__)("review","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:ya,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"star-rating"}):React.createElement(NG,e),save:function(e){const{rating:t,block_id:a,title:l,range:i,displayTitle:o}=e.attributes,n=parseInt(i),r=[];for(let e=1;e<=n;e++)r.push(React.createElement("span",{key:e,className:"uag-star"},"★"));return React.createElement("div",{className:Be()(e.className,"uagb-block-"+a)},o&&l&&React.createElement(ge.RichText.Content,{tagName:"p",value:l,className:"uag-star-rating__title"}),React.createElement("div",{className:"uag-star-rating",title:`${t}/${i}`},r))},deprecated:IG});var WG=Object(B.memo)(e=>{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i,headingLoadGoogleFonts:o,headingFontFamily:n,headingFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)});function qG(){return(qG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{align:i,headingAlignment:o,overallAlign:n,disableBullets:s,makeCollapsible:c,initialCollapse:u,icon:p,iconColor:d,bulletColor:b,iconSize:g,smoothScroll:m,smoothScrollOffset:y,smoothScrollOffsetType:f,scrollToTop:h,scrollToTopColor:v,scrollToTopBgColor:_,customWidth:T,widthDesktop:C,widthTablet:S,widthMobile:k,widthTypeMobile:w,widthTypeTablet:P,widthTypeDesktop:x,tColumnsDesktop:A,tColumnsTablet:G,tColumnsMobile:M,backgroundColor:R,linkColor:B,linkHoverColor:U,headingColor:E,paddingTypeMobile:O,paddingTypeTablet:L,paddingTypeDesktop:H,topPadding:F,rightPadding:j,bottomPadding:z,leftPadding:D,topPaddingTablet:N,rightPaddingTablet:I,bottomPaddingTablet:V,leftPaddingTablet:W,topPaddingMobile:q,rightPaddingMobile:Z,bottomPaddingMobile:$,leftPaddingMobile:Y,marginLink:K,paddingLink:J,headingBottom:X,headingBottomTablet:Q,headingBottomMobile:ee,headingBottomType:te,contentPaddingDesktop:ae,contentPaddingTablet:le,contentPaddingMobile:ie,contentPaddingTypeMobile:oe,contentPaddingTypeTablet:ne,contentPaddingTypeDesktop:re,topMargin:se,rightMargin:ce,bottomMargin:ue,leftMargin:pe,topMarginTablet:de,rightMarginTablet:be,bottomMarginTablet:me,leftMarginTablet:ye,topMarginMobile:fe,rightMarginMobile:he,bottomMarginMobile:ve,leftMarginMobile:_e,marginTypeMobile:Te,marginTypeTablet:Se,marginTypeDesktop:ke,loadGoogleFonts:we,fontFamily:Pe,fontWeight:xe,fontSize:Ae,fontSizeType:Ge,fontSizeTablet:Me,fontSizeMobile:Re,lineHeightType:Be,lineHeight:Ue,lineHeightTablet:Oe,lineHeightMobile:He,headingLoadGoogleFonts:Fe,headingFontFamily:ze,headingFontWeight:De,headingFontSize:Ne,headingFontSizeType:Ie,headingFontSizeTablet:Ve,headingFontSizeMobile:We,headingLineHeightType:qe,headingLineHeight:Ze,headingLineHeightTablet:$e,headingLineHeightMobile:Ye,mappingHeaders:Ke,fontStyle:Je,fontTransform:Xe,fontDecoration:Qe,headingFontStyle:et,headingTransform:tt,headingDecoration:at,headingLetterSpacing:lt,headingLetterSpacingTablet:it,headingLetterSpacingMobile:ot,headingLetterSpacingType:nt,letterSpacing:rt,letterSpacingTablet:st,letterSpacingMobile:ct,letterSpacingType:ut,markerView:pt,separatorStyle:dt,separatorColor:bt,separatorHColor:gt,separatorHeight:mt,separatorHeightType:yt,separatorSpace:ft,separatorSpaceTablet:ht,separatorSpaceMobile:vt,separatorSpaceType:_t}=t,Tt="%"===x?100:1e3,Ct="%"===P?100:1e3,St="%"===w?100:1e3;return React.createElement(React.Fragment,null,!T&&React.createElement(ge.BlockControls,null,React.createElement(ge.AlignmentToolbar,{value:i,onChange:e=>{a({align:e})},controls:["left","center","right"]})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement("h2",null,Object(r.__)("Choose heading tags to generate table","ultimate-addons-for-gutenberg")),Ke.map((e,t)=>React.createElement(Le.PanelRow,{key:t},React.createElement("label",{htmlFor:"ub_toggle_h"+(t+1)},"H"+(t+1)),React.createElement(Le.ToggleControl,{id:"ub_toggle_h"+(t+1),checked:e,onChange:()=>a({mappingHeaders:[...Ke.slice(0,t),!Ke[t],...Ke.slice(t+1)]})})))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),data:{value:n,label:"overallAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),!c&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Title Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"headingAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("List Alignment","ultimate-addons-for-gutenberg"),data:{value:i,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:A,label:"tColumnsDesktop"},tablet:{value:G,label:"tColumnsTablet"},mobile:{value:M,label:"tColumnsMobile"}},min:1,max:10,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Lists","ultimate-addons-for-gutenberg"),data:{desktop:{value:ae,label:"contentPaddingDesktop",unit:{value:re,label:"contentPaddingTypeDesktop"}},tablet:{value:le,label:"contentPaddingTablet",unit:{value:ne,label:"contentPaddingTypeTablet"}},mobile:{value:ie,label:"contentPaddingMobile",unit:{value:oe,label:"contentPaddingTypeMobile"}}},min:0,max:100,limitMin:{px:0,"%":0},limitMax:{px:1500,"%":100},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),checked:T,onChange:()=>a({customWidth:!T}),help:Object(r.__)("Table's width will be auto if this is kept off.","ultimate-addons-for-gutenberg")}),T&&React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:C,label:"widthDesktop",unit:{value:x,label:"widthTypeDesktop"},min:0,max:Tt},tablet:{value:S,label:"widthTablet",unit:{value:P,label:"widthTypeTablet"},min:0,max:Ct},mobile:{value:k,label:"widthMobile",unit:{value:w,label:"widthTypeMobile"},min:0,max:St}},min:0,max:100,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Disable Marker","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({disableBullets:!s})}),!s&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Marker View","ultimate-addons-for-gutenberg"),data:{value:pt,label:"markerView"},className:"uagb-multi-button-alignment-control",options:[{value:"disc",label:Object(r.__)("Bullets","ultimate-addons-for-gutenberg")},{value:"decimal",label:Object(r.__)("Numbers","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Make Content Collapsible","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({makeCollapsible:!c})}),c&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Keep Collapsed Initially","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>a({initialCollapse:!u})}),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:p,onChange:e=>a({icon:e})}),React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:g,data:{value:g,label:"iconSize"},min:0,max:300,displayUnit:!1})),React.createElement(Pi,{label:Object(r.__)("Separator Style","ultimate-addons-for-gutenberg"),data:{value:dt,label:"separatorStyle"},setAttributes:a,help:"double"===dt&&Object(r.__)("Please set the separator thickness to 3px or more to perceive the Double border.","ultimate-addons-for-gutenberg"),options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Scroll","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Smooth Scroll","ultimate-addons-for-gutenberg"),checked:m,help:Object(r.__)("This will be in action only in Front End.","ultimate-addons-for-gutenberg"),onChange:()=>a({smoothScroll:!m})}),m&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Smooth Scroll Offset","ultimate-addons-for-gutenberg"),setAttributes:a,value:y,data:{value:y,label:"smoothScrollOffset"},min:0,max:1e3,unit:{value:f,label:"smoothScrollOffsetType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Scroll To Top","ultimate-addons-for-gutenberg"),checked:h,help:Object(r.__)("This will add a scroll to top arrow at the bottom of page.","ultimate-addons-for-gutenberg"),onChange:()=>a({scrollToTop:!h})}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Background","ultimate-addons-for-gutenberg"),colorValue:R||"",data:{value:R,label:"backgroundColor"},setAttributes:a}),React.createElement(Pl,qG({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:F,label:"topPadding"},valueRight:{value:j,label:"rightPadding"},valueBottom:{value:z,label:"bottomPadding"},valueLeft:{value:D,label:"leftPadding"},valueTopTablet:{value:N,label:"topPaddingTablet"},valueRightTablet:{value:I,label:"rightPaddingTablet"},valueBottomTablet:{value:V,label:"bottomPaddingTablet"},valueLeftTablet:{value:W,label:"leftPaddingTablet"},valueTopMobile:{value:q,label:"topPaddingMobile"},valueRightMobile:{value:Z,label:"rightPaddingMobile"},valueBottomMobile:{value:$,label:"bottomPaddingMobile"},valueLeftMobile:{value:Y,label:"leftPaddingMobile"},unit:{value:H,label:"paddingTypeDesktop"},mUnit:{value:O,label:"paddingTypeMobile"},tUnit:{value:L,label:"paddingTypeTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:J,label:"paddingLink"}})),React.createElement(Hi,{setAttributes:a,borderStyleLabel:Object(r.__)("Style","ultimate-addons-for-gutenberg"),borderWidthLabel:Object(r.__)("Width","ultimate-addons-for-gutenberg"),borderRadiusLabel:Object(r.__)("Radius","ultimate-addons-for-gutenberg"),prefix:"overall",attributes:t,deviceType:l,disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:E||"",data:{value:E,label:"headingColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Fe,label:"headingLoadGoogleFonts"},fontFamily:{value:ze,label:"headingFontFamily"},fontWeight:{value:De,label:"headingFontWeight"},fontStyle:{value:et,label:"headingFontStyle"},transform:{value:tt,label:"headingTransform"},decoration:{value:at,label:"headingDecoration"},fontSizeType:{value:Ie,label:"headingFontSizeType"},fontSize:{value:Ne,label:"headingFontSize"},fontSizeMobile:{value:We,label:"headingFontSizeMobile"},fontSizeTablet:{value:Ve,label:"headingFontSizeTablet"},lineHeightType:{value:qe,label:"headingLineHeightType"},lineHeight:{value:Ze,label:"headingLineHeight"},lineHeightMobile:{value:Ye,label:"headingLineHeightMobile"},lineHeightTablet:{value:$e,label:"headingLineHeightTablet"},letterSpacing:{value:lt,label:"headingLetterSpacing"},letterSpacingTablet:{value:it,label:"headingLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"headingLetterSpacingMobile"},letterSpacingType:{value:nt,label:"headingLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:X,label:"headingBottom"},tablet:{value:Q,label:"headingBottomTablet"},mobile:{value:ee,label:"headingBottomMobile"}},min:0,max:50,unit:{value:te,label:"headingBottomType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}),c&&React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"iconColor"},setAttributes:a})),React.createElement(je,{title:Object(r.__)("List","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"linkColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:U||"",data:{value:U,label:"linkHoverColor"},setAttributes:a}),disableBottomSeparator:!1}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:we,label:"loadGoogleFonts"},fontFamily:{value:Pe,label:"fontFamily"},fontWeight:{value:xe,label:"fontWeight"},fontStyle:{value:Je,label:"fontStyle"},transform:{value:Xe,label:"fontTransform"},decoration:{value:Qe,label:"fontDecoration"},fontSizeType:{value:Ge,label:"fontSizeType"},fontSize:{value:Ae,label:"fontSize"},fontSizeMobile:{value:Re,label:"fontSizeMobile"},fontSizeTablet:{value:Me,label:"fontSizeTablet"},lineHeightType:{value:Be,label:"lineHeightType"},lineHeight:{value:Ue,label:"lineHeight"},lineHeightMobile:{value:He,label:"lineHeightMobile"},lineHeightTablet:{value:Oe,label:"lineHeightTablet"},letterSpacing:{value:rt,label:"letterSpacing"},letterSpacingTablet:{value:st,label:"letterSpacingTablet"},letterSpacingMobile:{value:ct,label:"letterSpacingMobile"},letterSpacingType:{value:ut,label:"letterSpacingType"}}),React.createElement(Pl,qG({},e,{label:Object(r.__)("Inner Content Spacing","ultimate-addons-for-gutenberg"),valueTop:{value:se,label:"topMargin"},valueRight:{value:ce,label:"rightMargin"},valueBottom:{value:ue,label:"bottomMargin"},valueLeft:{value:pe,label:"leftMargin"},valueTopTablet:{value:de,label:"topMarginTablet"},valueRightTablet:{value:be,label:"rightMarginTablet"},valueBottomTablet:{value:me,label:"bottomMarginTablet"},valueLeftTablet:{value:ye,label:"leftMarginTablet"},valueTopMobile:{value:fe,label:"topMarginMobile"},valueRightMobile:{value:he,label:"rightMarginMobile"},valueBottomMobile:{value:ve,label:"bottomMarginMobile"},valueLeftMobile:{value:_e,label:"leftMarginMobile"},unit:{value:ke,label:"marginTypeDesktop"},mUnit:{value:Te,label:"marginTypeMobile"},tUnit:{value:Se,label:"marginTypeTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:K,label:"marginLink"}})),!s&&React.createElement(hl,{label:Object(r.__)("Marker Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"bulletColor"},setAttributes:a})),h&&React.createElement(je,{title:Object(r.__)("Scroll To Top","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:v||"",data:{value:v,label:"scrollToTopColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"scrollToTopBgColor"},setAttributes:a}))),"none"!==dt&&(()=>{const e=[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}];return React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:a,value:mt,data:{value:mt,label:"separatorHeight"},min:0,max:20,unit:{value:yt,label:"separatorHeightType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]}),React.createElement(Ui,{tabs:e,normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:bt||"",data:{value:bt,label:"separatorColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:gt||"",data:{value:gt,label:"separatorHColor"},setAttributes:a}),active:"",disableBottomSeparator:!1}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:ft,label:"separatorSpace"},tablet:{value:ht,label:"separatorSpaceTablet"},mobile:{value:vt,label:"separatorSpaceMobile"}},min:0,max:200,unit:{value:_t,label:"separatorSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}))})()),React.createElement(il,qG({},rl,{parentProps:e})))))}),YG=function(e){const{mappingHeaders:t,headers:a}=e;return"undefined"!==t&&a&&a.length>0&&a.filter(e=>t[e.tag-1]).length>0?React.createElement("div",{className:"uagb-toc__list-wrap"},(e=>{let t="",a="",l="",i="";const o="";let n=0;const r={1:0,2:0,3:0,4:0,5:0,6:0};return e.forEach((e,s)=>{const c=e.tag,u=e.content;if(0===s&&(l=c),ct)i+='
    ',n++,r[c]=n;else if(c===t&&c!==a)i+='
  • ',r[c]=n;else if(ca?(i+=o.repeat(e),n=Math.abs(n-e)):c===a&&(i+=o.repeat(e),i+="
  • ")}const p=document.querySelector("iframe[name='editor-canvas']");i+=p?'
  • '+u+"":'
  • '+u+"",t=c}),i+=o.repeat(t),React.createElement("ol",{className:"uagb-toc__list",dangerouslySetInnerHTML:{__html:i}})})((()=>{const e=[];return a.forEach(a=>{t[a.tag-1]&&e.push(a)}),e})())):React.createElement("p",{className:"uagb_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents","ultimate-addons-for-gutenberg"))},KG=a(140),JG=0,XG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},QG={};QG.locals=KG.a.locals||{},QG.use=function(){return JG++||(ZG=we()(KG.a,XG)),QG},QG.unuse=function(){JG>0&&!--JG&&(ZG(),ZG=null)};var eM=QG,tM=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(eM.use(),()=>{eM.unuse()}),[]);const{headers:t}=e,{attributes:a,setAttributes:l,className:i,deviceType:o,name:n}=e,s=n.replace("uagb/",""),{align:c,makeCollapsible:u,initialCollapse:p,icon:d,tColumnsDesktop:b,mappingHeaders:g,headingTitle:m,separatorStyle:y,block_id:f}=a;Object(B.useEffect)(()=>{if(UAGBTableOfContents){const e=".uagb-block-"+f;UAGBTableOfContents.init(e,a)}},[]);const h=Object(B.useRef)();Object(B.useEffect)(()=>{h.current&&!u&&h.current.classList.contains("uagb-toc__collapse")&&(h.current.classList.remove("uagb-toc__collapse"),UAGBTableOfContents._slideDown(h.current.querySelector(".uagb-toc__list-wrap"),500))},[u]);let v="";return u&&d&&(v=Ce(d,l)),React.createElement("div",{className:Be()(i,"uagb-toc__align-"+c,"uagb-toc__columns-"+us(b,"tColumnsDesktop",s),u&&p?"uagb-toc__collapse":"","uagb-editor-preview-mode-"+o.toLowerCase(),"uagb-block-"+f),ref:h},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title"},React.createElement(ge.RichText,{placeholder:Object(r.__)("Table Of Contents","ultimate-addons-for-gutenberg"),value:m,onChange:e=>l({headingTitle:e}),multiline:!1,onRemove:()=>e.onReplace([])}),v),"none"!==y&&React.createElement("div",{className:"uagb-toc__separator"}),React.createElement(YG,{mappingHeaders:g,headers:t})))});function aM(){return(aM=Object.assign||function(e){for(var t=1;t{const{isSelected:t,setAttributes:a,attributes:l,name:i,clientId:o,attributes:{scrollToTop:r,UAGHideDesktop:s,UAGHideTab:c,UAGHideMob:u,borderStyle:p,borderWidth:d,borderRadius:b,borderColor:g,borderHoverColor:m},deviceType:y}=e;Object(B.useEffect)(()=>{if(null===document.querySelector(".uagb-toc__scroll-top")){const e=document.createElement("div");e.classList.add("uagb-toc__scroll-top"),e.innerHTML='',document.body.appendChild(e)}e.attributes.heading&&""!==e.attributes.heading&&a({headingTitle:e.attributes.heading}),(d||b||g||m||p)&&ue("overall",{label:"borderWidth",value:d},{label:"borderRadius",value:b},{label:"borderColor",value:g},{label:"borderHoverColor",value:m},{label:"borderStyle",value:p},a,l)},[]),Object(B.useEffect)(()=>{he(e)},[s,c,u,y]),Object(B.useEffect)(()=>{ys()},[y]);const f=[];Object(n.useSelect)(e=>{let t=0,a=[];const l=document.querySelector("iframe[name='editor-canvas']");let i;var o,n;l?(i=l.contentDocument.getElementsByClassName("is-root-container"),a=null===(o=i[0])||void 0===o?void 0:o.querySelectorAll("h1, h2, h3, h4, h5, h6")):a=null===(n=document.body.getElementsByClassName("is-root-container")[0])||void 0===n?void 0:n.querySelectorAll("h1, h2, h3, h4, h5, h6");const r=document.querySelectorAll(".uagb-toc-hide-heading");return r&&r.forEach((function(e){const t=e.querySelectorAll("h1, h2, h3, h4, h5, h6");t&&t.forEach((function(e){e.classList.add("uagb-toc-hide-heading")}))})),a&&a.forEach((function(e,a){const l=e;let i;i=!!e.className.includes("uagb-toc-hide-heading");const o=(e=>{if(!e)return e;const 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.textContent),n=l.nodeName.replace(/^H+/,""),r=l.textContent;t=parseInt(n),i||f.push({tag:t,text:r,link:o,content:l.textContent})})),f&&f.forEach((function(e,t){e.level=0;for(let a=t-1;a>=0;a--){const t=f[a];if(t.tag<=e.tag){e.level=t.level,t.tagfunction(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,customWidth:r,makeCollapsible:s,widthDesktop:c,widthTablet:u,widthMobile:p,widthTypeTablet:d,widthTypeMobile:b,widthTypeDesktop:g,tColumnsDesktop:m,tColumnsTablet:y,tColumnsMobile:f,iconColor:h,bulletColor:v,iconSize:_,align:T,overallAlign:C,backgroundColor:S,linkColor:k,linkHoverColor:w,scrollToTopColor:P,scrollToTopBgColor:x,headingColor:A,marginTypeDesktop:G,marginTypeMobile:M,topMargin:R,rightMargin:B,bottomMargin:U,leftMargin:E,topMarginTablet:O,rightMarginTablet:L,bottomMarginTablet:H,leftMarginTablet:F,topMarginMobile:j,rightMarginMobile:z,bottomMarginMobile:D,leftMarginMobile:N,marginTypeTablet:I,vPaddingDesktop:V,hPaddingDesktop:W,vPaddingTablet:q,hPaddingTablet:Z,vPaddingMobile:$,hPaddingMobile:Y,topPadding:K,rightPadding:J,bottomPadding:X,leftPadding:Q,topPaddingTablet:ee,rightPaddingTablet:te,bottomPaddingTablet:le,leftPaddingTablet:ie,topPaddingMobile:oe,rightPaddingMobile:ne,bottomPaddingMobile:re,leftPaddingMobile:se,paddingTypeMobile:ce,paddingTypeTablet:ue,paddingTypeDesktop:pe,headingBottom:de,headingBottomTablet:be,headingBottomMobile:ge,headingBottomType:me,contentPaddingDesktop:ye,contentPaddingTablet:fe,contentPaddingMobile:he,contentPaddingTypeDesktop:ve,contentPaddingTypeTablet:_e,contentPaddingTypeMobile:Te,fontFamily:Ce,fontWeight:Se,fontSize:ke,fontSizeType:we,fontSizeTablet:Pe,fontSizeMobile:xe,lineHeightType:Ae,lineHeight:Ge,lineHeightTablet:Me,lineHeightMobile:Re,headingFontFamily:Be,headingFontWeight:Ue,headingFontSize:Ee,headingFontSizeType:Oe,headingFontSizeTablet:Le,headingFontSizeMobile:He,headingLineHeightType:Fe,headingLineHeight:je,headingLineHeightTablet:ze,headingLineHeightMobile:De,disableBullets:Ne,overallBorderHColor:Ie,fontStyle:Ve,fontTransform:We,fontDecoration:qe,headingFontStyle:Ze,headingTransform:$e,headingDecoration:Ye,headingAlignment:Ke,headingLetterSpacing:Je,headingLetterSpacingTablet:Xe,headingLetterSpacingMobile:Qe,headingLetterSpacingType:et,letterSpacing:tt,letterSpacingTablet:at,letterSpacingMobile:lt,letterSpacingType:it,markerView:ot,separatorStyle:nt,separatorHeight:rt,separatorHeightType:st,separatorSpace:ct,separatorSpaceType:ut,separatorColor:pt,separatorHColor:dt,separatorSpaceTablet:bt,separatorSpaceMobile:gt}=e,mt=us(m,"tColumnsDesktop",i),yt=us(y,"tColumnsTablet",i),ft=us(f,"tColumnsMobile",i),ht=us(c,"widthDesktop",i);let vt={},_t={},Tt={};const Ct=Wr(e,"overall"),St=Wr(e,"overall","tablet"),kt=Wr(e,"overall","mobile"),wt="number"==typeof K?K:V,Pt="number"==typeof X?X:V,xt="number"==typeof Q?Q:W,At="number"==typeof J?J:W,Gt="number"==typeof ee?ee:q,Mt="number"==typeof le?le:q,Rt="number"==typeof ie?ie:Z,Bt="number"==typeof te?te:Z,Ut="number"==typeof oe?oe:$,Et="number"==typeof re?re:$,Ot="number"==typeof se?se:Y,Lt="number"==typeof ne?ne:Y;if(vt={".wp-block-uagb-table-of-contents":{"text-align":C}," .uagb-toc__list-wrap ul li":{"font-size":Vr(ke,we)}," .uagb-toc__list-wrap ol li":{"font-size":Vr(ke,we)}," .uagb-toc__list-wrap li a":{"font-size":Vr(ke,we),"line-height":Vr(Ge,Ae),"font-family":Ce,"font-style":Ve,"text-decoration":qe,"text-transform":We,"font-weight":Se,color:k,"letter-spacing":Vr(tt,it)}," .uagb-toc__title-wrap":{"justify-content":T,"margin-bottom":Vr(de,me)}," .uagb-toc__title":{"justify-content":Ke,"margin-bottom":Vr(de,me),"font-size":Vr(Ee,Oe),"line-height":Vr(je,Fe),"font-family":Be,"font-style":Ze,"text-decoration":Ye,"text-transform":$e,"font-weight":Ue,color:A,"letter-spacing":Vr(Je,et)}," .uagb-toc__list-wrap ol li a:hover":{color:w}," .uagb-toc__wrap":{...Ct,"padding-left":Vr(xt,pe),"padding-right":Vr(At,pe),"padding-top":Vr(wt,pe),"padding-bottom":Vr(Pt,pe),background:S}," .uagb-toc__wrap:hover":{"border-color":Ie}," .uagb-toc__list-wrap ol.uagb-toc__list:first-child":{"margin-left":Vr(E,G),"margin-right":Vr(B,G),"margin-top":Vr(R,G),"margin-bottom":Vr(U,G)}," .uagb-toc__list-wrap > ol.uagb-toc__list li":{color:v}," .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":{"list-style-type":Ne?"none !important":ot+" !important","padding-top":"calc( "+Vr(ye,ve)+" / 2 )","padding-bottom":"calc( "+Vr(ye,ve)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"list-style-type":Ne?"none !important":ot+" !important","padding-top":"calc( "+Vr(ye,ve)+" / 2 )","padding-bottom":"calc( "+Vr(ye,ve)+" / 2 )"}," .uag-toc__collapsible-wrap svg":{width:Vr(_,"px"),height:Vr(_,"px"),fill:h}," svg":{width:Vr(_,"px"),height:Vr(_,"px"),fill:h}},vt[" .uagb-toc__list-wrap"]={"column-count":mt,overflow:"hidden","text-align":T},r&&(vt[" .uagb-toc__wrap"].width=Vr(ht,g)),r&&s&&(vt[" .uagb-toc__title"]["justify-content"]="space-between"),r&&s&&(vt[" .uagb-toc__title"].cursor="pointer"),Ne&&(vt[".wp-block-uagb-table-of-contents ol.uagb-toc__list>li"]={"list-style-type":"none !important"},vt[" .uagb-toc__list"]={"list-style-type":"none !important"},vt[" .uagb-toc__list .uagb-toc__list"]={"list-style-type":"none !important"}),_t={" .uagb-toc__list-wrap ul li":{"font-size":Vr(Pe,we)}," .uagb-toc__list-wrap ol li":{"font-size":Vr(Pe,we)}," .uagb-toc__list-wrap ol li a":{"font-size":Vr(Pe,we),"line-height":Vr(Me,Ae),"letter-spacing":Vr(at,it)}," .uagb-toc__title":{"font-size":Vr(Le,Oe),"line-height":Vr(ze,Fe),"margin-bottom":Vr(be,me),"letter-spacing":Vr(Xe,et)}," .uagb-toc__wrap":{...St,width:Vr(u,d),"padding-left":Vr(Rt,ue),"padding-right":Vr(Bt,ue),"padding-top":Vr(Gt,ue),"padding-bottom":Vr(Mt,ue)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":Vr(F,I),"margin-right":Vr(L,I),"margin-top":Vr(O,I),"margin-bottom":Vr(H,I)}," .uagb-toc__list-wrap":{"column-count":yt,overflow:"hidden","text-align":T}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":Vr(fe,_e)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":Vr(fe,_e)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+Vr(fe,_e)+" / 2 )","padding-bottom":"calc( "+Vr(fe,_e)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+Vr(fe,_e)+" / 2 )","padding-bottom":"calc( "+Vr(fe,_e)+" / 2 )"}},Tt={" .uagb-toc__list-wrap ul li":{"font-size":Vr(xe,we)}," .uagb-toc__list-wrap ol li":{"font-size":Vr(xe,we)}," .uagb-toc__list-wrap ol li a":{"font-size":Vr(xe,we),"line-height":Vr(Re,Ae),"letter-spacing":Vr(lt,it)}," .uagb-toc__title":{"font-size":Vr(He,Oe),"line-height":Vr(De,Fe),"margin-bottom":Vr(ge,me),"letter-spacing":Vr(Qe,et)}," .uagb-toc__wrap":{...kt,width:Vr(p,b),"padding-left":Vr(Ot,ce),"padding-right":Vr(Lt,ce),"padding-top":Vr(Ut,ce),"padding-bottom":Vr(Et,ce)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":Vr(N,M),"margin-right":Vr(z,M),"margin-top":Vr(j,M),"margin-bottom":Vr(D,M)}," .uagb-toc__list-wrap":{"column-count":ft,overflow:"hidden","text-align":T}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":Vr(he,Te)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":Vr(he,Te)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+Vr(he,Te)+" / 2 )","padding-bottom":"calc( "+Vr(he,Te)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+Vr(he,Te)+" / 2 )","padding-bottom":"calc( "+Vr(he,Te)+" / 2 )"}},"none"!==nt){const e=Vr(xt,pe),t=Vr(At,pe),a=Vr(Rt,ue),l=Vr(Bt,ue),o=Vr(Ot,ce),n=Vr(Lt,ce);vt[" .uagb-toc__separator"]={"border-top-style":nt,"border-top-width":Vr(us(rt,"separatorHeight",i),st),width:"calc( 100% + "+e+" + "+t+")","margin-left":"-"+e,"border-color":pt,"margin-bottom":Vr(us(ct,"separatorSpace",i),ut)},vt[" .uagb-toc__wrap:hover .uagb-toc__separator"]={"border-color":dt},_t[" .uagb-toc__separator"]={width:"calc( 100% + "+a+" + "+l+")","margin-left":"-"+a,"margin-bottom":Vr(us(bt,"separatorSpaceTablet",i),ut)},Tt[" .uagb-toc__separator"]={width:"calc( 100% + "+o+" + "+n+")","margin-left":"-"+o,"margin-bottom":Vr(us(gt,"separatorSpaceMobile",i),ut)}}const Ht=".block-editor-block-list__block .uagb-block-"+n;let Ft=ae(vt,Ht);return"tablet"!==o&&"mobile"!==o||(Ft+=ae(_t,""+Ht,!0,"tablet"),"mobile"===o&&(Ft+=ae(Tt,""+Ht,!0,"mobile"))),""!==P&&(Ft+=".uagb-toc__scroll-top { color: "+P+"; }"),""!==x&&(Ft+=".block-editor-page .uagb-toc__scroll-top.uagb-toc__show-scroll.uagb-toc__show-scroll { background: "+x+"; }"),Ft}(l,0,i,y),[l,y]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:h}),React.createElement(WG,{attributes:l}),t&&React.createElement($G,e),React.createElement(tM,aM({},e,{headers:f})))});class iM extends B.Component{constructor(e){super(e),this.state={headers:e.headers,deregister:null}}componentDidMount(){const e=(t,a)=>(t.map(t=>{const 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),t=()=>{const t=e(Object(n.select)("core/block-editor").getBlocks(),[]);void 0!==t&&t.forEach((e,t)=>{const a=void 0===e.content||""===e.content?"headingId":"anchor",l=void 0===e[a]||""===e[a],i=void 0===e.content||""===e.content?"headingTitle":"content",o=void 0===e[i]||""===e[i],n=!l&&0===e[a].indexOf(t+"-");o||!l&&!n||(e[a]=t+"-"+strip_tags(e[i]).toString().toLowerCase().replace(/( |<.+?>| )/g,"-"),e[a]=e[a].replace(/[^\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s-]/g,""))}),this.setState({headers:t})};t();const a=Object(n.subscribe)(()=>{t()});this.setState({deregister:a})}componentWillUnmount(){this.state.deregister()}componentDidUpdate(e,t){JSON.stringify(this.state.headers)!==JSON.stringify(t.headers)&&this.props.blockProp.setAttributes({headerLinks:JSON.stringify(this.state.headers)})}render(){const{mappingHeaders:e,blockProp:t,style:a}=this.props,{headers:l}=this.state,i=e=>{const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(i(e)):void 0===e.content||""===e.content?e.headingTitle&&t.push(React.createElement("li",{key:e.headingId},React.createElement("a",{href:"#"+e.headingId,dangerouslySetInnerHTML:{__html:e.headingTitle.replace(/(|<\/a>)/g,"")}}))):e.content&&t.push(React.createElement("li",{key:"#"+e.anchor},React.createElement("a",{href:"#"+e.anchor,dangerouslySetInnerHTML:{__html:e.content.replace(/(|<\/a>)/g,"")}})))}),React.createElement("ul",{className:"uagb-toc__list"},t)};return void 0!==typeof e&&l.length>0&&l.filter(t=>e[t.level-1]).length>0?React.createElement("div",{style:a,className:"uagb-toc__list-wrap"},i((t=>{const a=[];for(t.filter(t=>e[t.level-1]).forEach(e=>{let t=a.length-1;if(0===a.length||a[t][0].levele.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]})(l))):t&&React.createElement("p",{className:"ub_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents"))}}var oM=iM;class nM extends B.Component{render(){const{mappingHeaders:e,headers:t}=this.props,a=e=>{const t=[];return e.forEach(l=>{Array.isArray(l)?t.push(a(l)):t.push(React.createElement("li",{key:e.indexOf(l)},React.createElement("a",{href:"#"+l.link,dangerouslySetInnerHTML:{__html:l.text}})))}),React.createElement("ul",{className:"uagb-toc__list"},t)};return void 0!==typeof e&&t&&t.length>0&&t.filter(t=>e[t.tag-1]).length>0?React.createElement("div",{className:"uagb-toc__list-wrap","data-headers":JSON.stringify(t)},a((()=>{const a=[];return t.forEach(t=>{e[t.tag-1]&&a.push(t)}),(t=>{const a=[];for(t.filter(t=>e[t.tag-1]).forEach(e=>{let t=a.length-1;if(0===a.length||a[t][0].tage.tag&&a.length>1;)a[a.length-2].push(a.pop()),t=a.length-1;a[t][0].tag===e.tag&&a[t].push(e)}});a.length>1&&a[a.length-1][0].tag>a[a.length-2][0].tag;)a[a.length-2].push(a.pop());return a[0]})(a)})())):React.createElement("p",{className:"uagb_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents"))}}var rM=nM;class sM extends B.Component{render(){const{mappingHeaders:e,headers:t}=this.props;let a=0,l=0;const i=e=>{const t=[];if("undefined"!==e&&e&&e.length>0)return e.forEach(e=>{Array.isArray(e)?t.push(i(e)):(t.push(React.createElement("li",{key:a},React.createElement("a",{href:"#"+e.link,dangerouslySetInnerHTML:{__html:e.text}}))),a++)}),l++,React.createElement("ul",{key:a+"-"+l,className:"uagb-toc__list"},t)};return"undefined"!=e&&t&&t.length>0&&t.filter(t=>e[t.tag-1]).length>0?React.createElement("div",{className:"uagb-toc__list-wrap"},i((a=>{const l=[];return t.forEach((t,a)=>{e[t.tag-1]&&l.push(t)}),(t=>{const a=[];for(t.filter(t=>e[t.tag-1]).forEach(e=>{let t=a.length-1;if(0===a.length||a[t][0].tage.tag&&a.length>1;)a[a.length-2].push(a.pop()),t=a.length-1;a[t][0].tag===e.tag&&a[t].push(e)}});a.length>1&&a[a.length-1][0].tag>a[a.length-2][0].tag;)a[a.length-2].push(a.pop());return a[0]})(l)})())):React.createElement("p",{className:"uagb_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents"))}}var cM=sM,uM=[{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,scrollToTop:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i),id:"uagb-toc-"+l},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),React.createElement(oM,{align:a,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:n&&JSON.parse(n),blockProp:e})))}},{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,scrollToTop:s,smoothScroll:c,makeCollapsible:u,icon:p,initialCollapse:d,smoothScrollOffset:b,smoothScrollDelay:g}=e.attributes;let m="";return u&&p&&(m=React.createElement("span",{className:"uag-toc__collapsible-wrap"},kb(p))),React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i,d?"uagb-toc__collapse":""),"data-scroll":c,"data-offset":b,"data-delay":g,id:"uagb-toc-"+l},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title-wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),m),React.createElement(oM,{align:a,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:n&&JSON.parse(n),blockProp:e})))}},{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,smoothScroll:s,makeCollapsible:c,icon:u,initialCollapse:p,smoothScrollOffset:d,smoothScrollDelay:b}=e.attributes;let g="";return c&&u&&(g=React.createElement("span",{className:"uag-toc__collapsible-wrap"},kb(u))),React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i,p?"uagb-toc__collapse":"","uagb-block-"+l),"data-scroll":s,"data-offset":d,"data-delay":b},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title-wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),g),React.createElement(rM,{mappingHeaders:r,headers:n&&JSON.parse(n)})))}},{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,smoothScroll:s,makeCollapsible:c,icon:u,initialCollapse:p,smoothScrollOffset:d,smoothScrollDelay:b}=e.attributes;let g="";return c&&u&&(g=React.createElement("span",{className:"uag-toc__collapsible-wrap"},kb(u))),React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i,p?"uagb-toc__collapse":"","uagb-block-"+l),"data-scroll":s,"data-offset":d,"data-delay":b},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title-wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),g),React.createElement(cM,{mappingHeaders:r,headers:n&&JSON.parse(n)})))}}];a(373);let pM={};pM=Object(F.applyFilters)("uagb/table-of-contents",ss(pM)),Object(de.registerBlockType)("uagb/table-of-contents",{...pM,title:Object(r.__)("Table Of Contents","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a table of contents to allow page navigation.","ultimate-addons-for-gutenberg"),icon:se.table_of_contents,keywords:[Object(r.__)("table of contents","ultimate-addons-for-gutenberg"),Object(r.__)("table","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:It,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"table-of-content"}):React.createElement(lM,e),save:()=>null,deprecated:uM}),a(374);const dM=[{defaultAttributes:ga},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"hstyle2"},{label:"tabBodyTopPadding",value:15},{label:"tabBodyRightPadding",value:15},{label:"tabBodyBottomPadding",value:15},{label:"tabBodyLeftPadding",value:0},{label:"tabBorderTopLeftRadius",value:0},{label:"tabBorderTopRightRadius",value:0},{label:"tabBorderBottomLeftRadius",value:0},{label:"tabBorderBottomRightRadius",value:0},{label:"tabBorderStyle",value:"none"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"hstyle3"},{label:"titleAlign",value:"left"},{label:"tabBodyTopPadding",value:""},{label:"tabBodyRightPadding",value:""},{label:"tabBodyBottomPadding",value:""},{label:"tabBodyLeftPadding",value:""},{label:"tabBorderTopLeftRadius",value:0},{label:"tabBorderTopRightRadius",value:0},{label:"tabBorderBottomLeftRadius",value:0},{label:"tabBorderBottomRightRadius",value:0},{label:"tabBorderTopWidth",value:1},{label:"tabBorderRightWidth",value:1},{label:"tabBorderBottomWidth",value:1},{label:"tabBorderLeftWidth",value:1},{label:"tabBorderStyle",value:"solid"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"vstyle6"},{label:"titleAlign",value:"center"},{label:"tabBodyTopPadding",value:""},{label:"tabBodyRightPadding",value:""},{label:"tabBodyBottomPadding",value:""},{label:"tabBodyLeftPadding",value:""},{label:"tabBorderTopLeftRadius",value:4},{label:"tabBorderTopRightRadius",value:4},{label:"tabBorderBottomLeftRadius",value:4},{label:"tabBorderBottomRightRadius",value:4},{label:"tabBorderTopWidth",value:1},{label:"tabBorderRightWidth",value:1},{label:"tabBorderBottomWidth",value:1},{label:"tabBorderLeftWidth",value:1},{label:"tabBorderStyle",value:"solid"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"vstyle8"},{label:"titleAlign",value:"center"},{label:"tabBodyTopPadding",value:""},{label:"tabBodyRightPadding",value:""},{label:"tabBodyBottomPadding",value:""},{label:"tabBodyLeftPadding",value:""},{label:"tabBorderTopLeftRadius",value:0},{label:"tabBorderTopRightRadius",value:0},{label:"tabBorderBottomLeftRadius",value:0},{label:"tabBorderBottomRightRadius",value:0},{label:"tabBorderTopWidth",value:1},{label:"tabBorderRightWidth",value:1},{label:"tabBorderBottomWidth",value:1},{label:"tabBorderLeftWidth",value:1},{label:"tabBorderStyle",value:"solid"}],icon:' '}];var bM=Object(F.applyFilters)("uag_tabs_presets",dM);function gM(){return(gM=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{tabsStyleD:i,tabsStyleM:o,tabsStyleT:n,tabActiveFrontend:s,tabHeaders:c,headerBgColor:u,headerTextColor:p,activeTabBgColor:d,activeTabTextColor:b,bodyBgColor:g,bodyTextColor:m,tabTitleLeftMargin:y,tabTitleRightMargin:f,tabTitleTopMargin:h,tabTitleBottomMargin:v,tabTitleLeftMarginTablet:_,tabTitleRightMarginTablet:T,tabTitleTopMarginTablet:C,tabTitleBottomMarginTablet:S,tabTitleLeftMarginMobile:k,tabTitleRightMarginMobile:w,tabTitleTopMarginMobile:P,tabTitleBottomMarginMobile:x,tabTitleMarginUnit:A,mobiletabTitleMarginUnit:G,tablettabTitleMarginUnit:M,tabTitleMarginLink:R,tabTitleTopPadding:B,tabTitleRightPadding:U,tabTitleBottomPadding:E,tabTitleLeftPadding:O,tabTitleTopPaddingTablet:L,tabTitleRightPaddingTablet:H,tabTitleBottomPaddingTablet:F,tabTitleLeftPaddingTablet:j,tabTitleTopPaddingMobile:z,tabTitleRightPaddingMobile:D,tabTitleBottomPaddingMobile:N,tabTitleLeftPaddingMobile:I,tabTitlePaddingUnit:V,mobiletabTitlePaddingUnit:W,tablettabTitlePaddingUnit:q,tabTitlePaddingLink:Z,tabBodyLeftMargin:$,tabBodyRightMargin:Y,tabBodyTopMargin:K,tabBodyBottomMargin:J,tabBodyLeftMarginTablet:X,tabBodyRightMarginTablet:Q,tabBodyTopMarginTablet:ee,tabBodyBottomMarginTablet:te,tabBodyLeftMarginMobile:ae,tabBodyRightMarginMobile:le,tabBodyTopMarginMobile:ie,tabBodyBottomMarginMobile:oe,tabBodyMarginUnit:ne,mobiletabBodyMarginUnit:re,tablettabBodyMarginUnit:se,tabBodyMarginLink:ce,tabBodyTopPadding:ue,tabBodyRightPadding:pe,tabBodyBottomPadding:de,tabBodyLeftPadding:be,tabBodyTopPaddingTablet:me,tabBodyRightPaddingTablet:ye,tabBodyBottomPaddingTablet:fe,tabBodyLeftPaddingTablet:he,tabBodyTopPaddingMobile:ve,tabBodyRightPaddingMobile:_e,tabBodyBottomPaddingMobile:Te,tabBodyLeftPaddingMobile:Se,tabBodyPaddingUnit:ke,mobiletabBodyPaddingUnit:we,tablettabBodyPaddingUnit:Pe,tabBodyPaddingLink:xe,titleLoadGoogleFonts:Ae,titleFontFamily:Ge,titleFontWeight:Me,titleFontSizeType:Re,titleFontSize:Be,titleFontSizeMobile:Ue,titleFontSizeTablet:Oe,titleLineHeightType:He,titleLineHeight:Fe,titleLineHeightMobile:ze,titleLineHeightTablet:De,titleLetterSpacing:Ne,titleLetterSpacingTablet:Ie,titleLetterSpacingMobile:Ve,titleLetterSpacingType:We,titleTransform:qe,titleDecoration:Ze,titleAlign:$e,tabAlign:Ye,showIcon:Ke,icon:Je,iconColor:Xe,iconPosition:Qe,iconSpacing:et,iconSpacingTablet:tt,iconSpacingMobile:at,iconSize:lt,iconSizeTablet:it,iconSizeMobile:ot,activeiconColor:nt,titleFontStyle:rt}=t,st=e=>{a({tabActiveFrontend:parseInt(e)})};return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,(()=>{const e={desktop:[{value:"hstyle1",label:Object(r.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(r.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(r.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(r.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(r.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(r.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(r.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(r.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(r.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(r.__)("Vertical Style 10","ultimate-addons-for-gutenberg")}],tablet:[{value:"hstyle1",label:Object(r.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(r.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(r.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(r.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(r.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(r.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(r.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(r.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(r.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(r.__)("Vertical Style 10","ultimate-addons-for-gutenberg")}],mobile:[{value:"stack1",label:Object(r.__)("Stack Style 1","ultimate-addons-for-gutenberg")},{value:"stack2",label:Object(r.__)("Stack Style 2","ultimate-addons-for-gutenberg")},{value:"stack3",label:Object(r.__)("Stack Style 3","ultimate-addons-for-gutenberg")},{value:"stack4",label:Object(r.__)("Stack Style 4","ultimate-addons-for-gutenberg")}]};return React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(ai,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"tabsStyleD"},tablet:{value:n,label:"tabsStyleT"},mobile:{value:o,label:"tabsStyleM"}},options:e,setAttributes:a}),React.createElement(Pi,{label:Object(r.__)("Initial Open Tab","ultimate-addons-for-gutenberg"),data:{value:s},onChange:st,options:c.map((e,t)=>({value:t,label:e}))}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Tab Alignment","ultimate-addons-for-gutenberg"),data:{value:Ye,label:"tabAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:$e,label:"titleAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:Ke,onChange:()=>a({showIcon:!Ke})}),Ke&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Tab Icon","ultimate-addons-for-gutenberg"),value:Je,onChange:e=>a({icon:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:Qe,label:"iconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",label:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}]})))})(),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:bM,presetInputType:"radioImage"}))),React.createElement(il,nl,(()=>{const l=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:p,data:{value:p,label:"headerTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u,data:{value:u,label:"headerBgColor"},setAttributes:a})),i=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:b,data:{value:b,label:"activeTabTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:d,data:{value:d,label:"activeTabBgColor"},setAttributes:a}));return React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:l,active:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Ae,label:"titleLoadGoogleFonts"},fontFamily:{value:Ge,label:"titleFontFamily"},fontWeight:{value:Me,label:"titleFontWeight"},fontStyle:{value:rt,label:"titleFontStyle"},fontSizeType:{value:Re,label:"titleFontSizeType"},fontSize:{value:Be,label:"titleFontSize"},fontSizeMobile:{value:Ue,label:"titleFontSizeMobile"},fontSizeTablet:{value:Oe,label:"titleFontSizeTablet"},lineHeightType:{value:He,label:"titleLineHeightType"},lineHeight:{value:Fe,label:"titleLineHeight"},lineHeightMobile:{value:ze,label:"titleLineHeightMobile"},lineHeightTablet:{value:De,label:"titleLineHeightTablet"},letterSpacing:{value:Ne,label:"titleLetterSpacing"},letterSpacingTablet:{value:Ie,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Ve,label:"titleLetterSpacingMobile"},letterSpacingType:{value:We,label:"titleLetterSpacingType"},transform:{value:qe,label:"titleTransform"},decoration:{value:Ze,label:"titleDecoration"}}),React.createElement(Pl,gM({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:h,label:"tabTitleTopMargin"},valueRight:{value:f,label:"tabTitleRightMargin"},valueBottom:{value:v,label:"tabTitleBottomMargin"},valueLeft:{value:y,label:"tabTitleLeftMargin"},valueTopTablet:{value:C,label:"tabTitleTopMarginTablet"},valueRightTablet:{value:T,label:"tabTitleRightMarginTablet"},valueBottomTablet:{value:S,label:"tabTitleBottomMarginTablet"},valueLeftTablet:{value:_,label:"tabTitleLeftMarginTablet"},valueTopMobile:{value:P,label:"tabTitleTopMarginMobile"},valueRightMobile:{value:w,label:"tabTitleRightMarginMobile"},valueBottomMobile:{value:x,label:"tabTitleBottomMarginMobile"},valueLeftMobile:{value:k,label:"tabTitleLeftMarginMobile"},unit:{value:A,label:"tabTitleMarginUnit"},mUnit:{value:G,label:"mobiletabTitleMarginUnit"},tUnit:{value:M,label:"tablettabTitleMarginUnit"},attributes:t,setAttributes:a,link:{value:R,label:"tabTitleMarginLink"}})),React.createElement(Pl,gM({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:B,label:"tabTitleTopPadding"},valueRight:{value:U,label:"tabTitleRightPadding"},valueBottom:{value:E,label:"tabTitleBottomPadding"},valueLeft:{value:O,label:"tabTitleLeftPadding"},valueTopTablet:{value:L,label:"tabTitleTopPaddingTablet"},valueRightTablet:{value:H,label:"tabTitleRightPaddingTablet"},valueBottomTablet:{value:F,label:"tabTitleBottomPaddingTablet"},valueLeftTablet:{value:j,label:"tabTitleLeftPaddingTablet"},valueTopMobile:{value:z,label:"tabTitleTopPaddingMobile"},valueRightMobile:{value:D,label:"tabTitleRightPaddingMobile"},valueBottomMobile:{value:N,label:"tabTitleBottomPaddingMobile"},valueLeftMobile:{value:I,label:"tabTitleLeftPaddingMobile"},unit:{value:V,label:"tabTitlePaddingUnit"},mUnit:{value:W,label:"mobiletabTitlePaddingUnit"},tUnit:{value:q,label:"tablettabTitlePaddingUnit"},attributes:t,setAttributes:a,link:{value:Z,label:"tabTitlePaddingLink"}})))})(),(()=>{if(!Ke)return"";const e=React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Xe,data:{value:Xe,label:"iconColor"},setAttributes:a}),t=React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:nt,data:{value:nt,label:"activeiconColor"},setAttributes:a});return React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:lt,label:"iconSize"},tablet:{value:it,label:"iconSizeTablet"},mobile:{value:ot,label:"iconSizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:e,active:t}),React.createElement(tl,{label:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:et,label:"iconSpacing"},tablet:{value:tt,label:"iconSpacingTablet"},mobile:{value:at,label:"iconSpacingMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}))})(),React.createElement(je,{title:Object(r.__)("Body","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:m,data:{value:m,label:"bodyTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:g,data:{value:g,label:"bodyBgColor"},setAttributes:a}),React.createElement(Pl,gM({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:K,label:"tabBodyTopMargin"},valueRight:{value:Y,label:"tabBodyRightMargin"},valueBottom:{value:J,label:"tabBodyBottomMargin"},valueLeft:{value:$,label:"tabBodyLeftMargin"},valueTopTablet:{value:ee,label:"tabBodyTopMarginTablet"},valueRightTablet:{value:Q,label:"tabBodyRightMarginTablet"},valueBottomTablet:{value:te,label:"tabBodyBottomMarginTablet"},valueLeftTablet:{value:X,label:"tabBodyLeftMarginTablet"},valueTopMobile:{value:ie,label:"tabBodyTopMarginMobile"},valueRightMobile:{value:le,label:"tabBodyRightMarginMobile"},valueBottomMobile:{value:oe,label:"tabBodyBottomMarginMobile"},valueLeftMobile:{value:ae,label:"tabBodyLeftMarginMobile"},unit:{value:ne,label:"tabBodyMarginUnit"},mUnit:{value:re,label:"mobiletabBodyMarginUnit"},tUnit:{value:se,label:"tablettabBodyMarginUnit"},attributes:t,setAttributes:a,link:{value:ce,label:"tabBodyMarginLink"}})),React.createElement(Pl,gM({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ue,label:"tabBodyTopPadding"},valueRight:{value:pe,label:"tabBodyRightPadding"},valueBottom:{value:de,label:"tabBodyBottomPadding"},valueLeft:{value:be,label:"tabBodyLeftPadding"},valueTopTablet:{value:me,label:"tabBodyTopPaddingTablet"},valueRightTablet:{value:ye,label:"tabBodyRightPaddingTablet"},valueBottomTablet:{value:fe,label:"tabBodyBottomPaddingTablet"},valueLeftTablet:{value:he,label:"tabBodyLeftPaddingTablet"},valueTopMobile:{value:ve,label:"tabBodyTopPaddingMobile"},valueRightMobile:{value:_e,label:"tabBodyRightPaddingMobile"},valueBottomMobile:{value:Te,label:"tabBodyBottomPaddingMobile"},valueLeftMobile:{value:Se,label:"tabBodyLeftPaddingMobile"},unit:{value:ke,label:"tabBodyPaddingUnit"},mUnit:{value:we,label:"mobiletabBodyPaddingUnit"},tUnit:{value:Pe,label:"tablettabBodyPaddingUnit"},attributes:t,setAttributes:a,link:{value:xe,label:"tabBodyPaddingLink"}}))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"tab",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0}))),React.createElement(il,gM({},rl,{parentProps:e}))))}),fM=a(141),hM=0,vM={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},_M={};_M.locals=fM.a.locals||{},_M.use=function(){return hM++||(mM=we()(fM.a,vM)),_M},_M.unuse=function(){hM>0&&!--hM&&(mM(),mM=null)};var TM=_M;const{updateBlockAttributes:CM,insertBlock:SM,removeBlock:kM}=wp.blockEditor?Object(n.dispatch)("core/block-editor"):Object(n.dispatch)("core/editor"),{getBlockOrder:wM}=wp.blockEditor?Object(n.select)("core/block-editor"):Object(n.select)("core/editor");var PM=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(TM.use(),()=>{TM.unuse()}),[]);const{attributes:t,setAttributes:a,clientId:l,deviceType:i}=e,{tabsStyleD:o,tabsStyleM:s,tabsStyleT:c,tabHeaders:u,tabActive:p,tabAlign:d,showIcon:b,icon:g,iconPosition:m}=t,y=(e,t)=>()=>{e!==t-1&&f(e,e+1)},f=(i,o)=>{const{tabActiveFrontend:r}=t,{getBlock:s}=wp.blockEditor?Object(n.select)("core/block-editor"):Object(n.select)("core/editor"),c=s(l),p=[...u];p.splice(o,1,u[i]),p.splice(i,1,u[o]),a({tabHeaders:p}),r===i+1?a({tabActiveFrontend:o+1}):r===o+1&&a({tabActiveFrontend:i+1}),e.moveTab(c.innerBlocks[i].clientId,o),e.resetTabOrder()};return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-editor-preview-mode-"+i.toLowerCase(),"uagb-block-"+l.substr(0,8),"uagb-tabs__wrap",`uagb-tabs__${o}-desktop`,`uagb-tabs__${c}-tablet`,`uagb-tabs__${s}-mobile`)},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d},u.map((n,d)=>{return React.createElement("li",{key:d,className:`uagb-tab ${p===d?"uagb-tabs__active":""} `,id:"uagb-tabs__tab"+d},u.length>0&&React.createElement("div",{className:"uagb-tabs-editor-controls"},0!==d&&React.createElement(Le.Tooltip,{text:Object(r.__)("Move item back","ultimate-addons-for-gutenberg")},React.createElement("span",{role:"button",className:"uagb-tab-item__move-back",onClick:0===d?" ":(h=d,u.length,()=>{h<0||f(h,h-1)}),"aria-disabled":d===u.length,disabled:d===u.length},o.includes("vstyle")&&"Desktop"===i||c.includes("vstyle")&&"Tablet"===i||(s.includes("vstyle")||s.includes("stack"))&&"Mobile"===i?React.createElement(Le.Dashicon,{icon:"arrow-up"}):React.createElement(Le.Dashicon,{icon:"arrow-left"}))),d+1!==u.length&&React.createElement(Le.Tooltip,{text:Object(r.__)("Move item forward","ultimate-addons-for-gutenberg")},React.createElement("span",{role:"button",className:"uagb-tab-item__move-forward",onClick:d===u.length?" ":y(d,u.length),"aria-disabled":d===u.length,disabled:d===u.length},o.includes("vstyle")&&"Desktop"===i||c.includes("vstyle")&&"Tablet"===i||(s.includes("vstyle")||s.includes("stack"))&&"Mobile"===i?React.createElement(Le.Dashicon,{icon:"arrow-down"}):React.createElement(Le.Dashicon,{icon:"arrow-right"}))),React.createElement(Le.Tooltip,{text:Object(r.__)("Remove tab","ultimate-addons-for-gutenberg")},React.createElement("span",{role:"button",tabIndex:d,className:"uagb-tabs__remove",onClick:()=>(i=>{const o=wM(l);kM(o[i],!1),a({tabHeaders:t.tabHeaders.filter((e,t)=>t!==i)}),(e=>{const t=wM(l);a(e),t.forEach(t=>CM(t,e))})({tabActive:0}),e.resetTabOrder()})(d)},React.createElement(Le.Dashicon,{icon:"no"})))),React.createElement("a",{role:"button",tabIndex:d,className:`uagb-tabs__icon-position-${m} uagb-tabs-list`,onClick:()=>{e.updateActiveTab(d)},"data-tab":d},b&&g&&("left"===m||"top"===m)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(g,a)),React.createElement(ge.RichText,{tagName:"p",value:n,onChange:e=>((e,t)=>{const i=wM(l),o=u.map((a,l)=>(t===l&&(a=e),a));a({tabHeaders:o}),CM(i[t],{header:e}),wM(l).forEach(e=>CM(e,{tabHeaders:u}))})(e,d),onSplit:()=>null,placeholder:Object(r.__)("Title…","ultimate-addons-for-gutenberg"),allowedFormats:["core/bold","core/italic"]}),b&&g&&("right"===m||"bottom"===m)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(g,a))));var h}),React.createElement("li",{className:"uagb-tab uagb-tabs__add-tab",role:"presentation",tabIndex:"0",onClick:()=>(()=>{const i=Object(de.createBlock)("uagb/tabs-child");SM(i,t.tabHeaders.length,l),a({tabHeaders:[...t.tabHeaders,"New Tab"]}),e.resetTabOrder()})()},React.createElement(Le.Tooltip,{text:Object(r.__)("Add tab","ultimate-addons-for-gutenberg")},React.createElement(Le.Dashicon,{icon:"plus"})))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks,{template:[["uagb/tabs-child"],["uagb/tabs-child"],["uagb/tabs-child"]],templateLock:!1,allowedBlocks:["uagb/tabs-child"],renderAppender:!1}))))}),xM=Object(L.compose)(Object(n.withDispatch)((e,t,a)=>{let{clientId:l}=t,{select:i}=a;const{getBlock:o}=i("core/block-editor"),{updateBlockAttributes:n,moveBlockToPosition:r}=e("core/block-editor"),s=o(l);return{resetTabOrder(){for(let e=0;e{const{isSelected:t,setAttributes:a,attributes:l,attributes:{tabHeaders:i,borderStyle:o,borderWidth:r,borderRadius:s,borderColor:c,borderHoverColor:u,UAGHideDesktop:p,UAGHideTab:d,UAGHideMob:b},clientId:g,name:m,deviceType:y}=e;Object(B.useEffect)(()=>{(r||s||c||u||o)&&ue("tab",{label:"borderWidth",value:r},{label:"borderRadius",value:s},{label:"borderColor",value:c},{label:"borderHoverColor",value:u},{label:"borderStyle",value:o},a,l)},[]),Object(B.useEffect)(()=>{(()=>{const{updateBlockAttributes:e}=wp.blockEditor?Object(n.dispatch)("core/block-editor"):Object(n.dispatch)("core/editor"),{getBlockOrder:t}=wp.blockEditor?Object(n.select)("core/block-editor"):Object(n.select)("core/editor");t(g).forEach(t=>e(t,{tabHeaders:i}))})(),e.resetTabOrder()},[y,e]),Object(B.useEffect)(()=>{ys()},[y]),Object(B.useEffect)(()=>{he(e)},[p,d,b,y]);const f=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{headerBgColor:n,titleAlign:r,headerTextColor:s,activeTabBgColor:c,activeTabTextColor:u,bodyBgColor:p,bodyTextColor:d,tabTitleTopMargin:b,tabTitleLeftMargin:g,tabTitleRightMargin:m,tabTitleBottomMargin:y,tabTitleTopPadding:f,tabTitleBottomPadding:h,tabTitleLeftPadding:v,tabTitleRightPadding:_,titleFontFamily:T,titleFontWeight:C,titleFontSize:S,titleFontSizeType:k,titleFontSizeMobile:w,titleFontSizeTablet:P,titleLineHeight:x,titleLineHeightType:A,titleLineHeightMobile:G,titleLineHeightTablet:M,titleTransform:R,titleDecoration:B,tabBorderHColor:U,iconColor:E,iconSize:O,iconSizeTablet:L,iconSizeMobile:H,tabBodyLeftMargin:F,tabBodyRightMargin:j,tabBodyTopMargin:z,tabBodyBottomMargin:D,iconSpacing:N,iconSpacingTablet:I,iconSpacingMobile:V,activeiconColor:W,tabTitlePaddingUnit:q,tabTitleMarginUnit:Z,tabBodyPaddingUnit:$,tabBodyMarginUnit:Y,tabTitleTopPaddingTablet:K,tabTitleBottomPaddingTablet:J,tabTitleLeftPaddingTablet:X,tabTitleRightPaddingTablet:Q,tabTitleTopMarginTablet:ee,tabTitleLeftMarginTablet:te,tabTitleRightMarginTablet:le,tabTitleBottomMarginTablet:ie,tablettabTitlePaddingUnit:oe,tablettabTitleMarginUnit:ne,tabTitleTopPaddingMobile:re,tabTitleBottomPaddingMobile:se,tabTitleLeftPaddingMobile:ce,tabTitleRightPaddingMobile:ue,tabTitleTopMarginMobile:pe,tabTitleLeftMarginMobile:de,tabTitleRightMarginMobile:be,tabTitleBottomMarginMobile:ge,mobiletabTitlePaddingUnit:me,mobiletabTitleMarginUnit:ye,tabBodyTopPadding:fe,tabBodyBottomPadding:he,tabBodyLeftPadding:ve,tabBodyRightPadding:_e,tabBodyTopPaddingTablet:Te,tabBodyBottomPaddingTablet:Ce,tabBodyLeftPaddingTablet:Se,tabBodyRightPaddingTablet:ke,tabBodyTopMarginTablet:we,tabBodyLeftMarginTablet:Pe,tabBodyRightMarginTablet:xe,tabBodyBottomMarginTablet:Ae,tablettabBodyPaddingUnit:Ge,tablettabBodyMarginUnit:Me,tabBodyTopPaddingMobile:Re,tabBodyBottomPaddingMobile:Be,tabBodyLeftPaddingMobile:Ue,tabBodyRightPaddingMobile:Ee,tabBodyTopMarginMobile:Oe,tabBodyLeftMarginMobile:Le,tabBodyRightMarginMobile:He,tabBodyBottomMarginMobile:Fe,mobiletabBodyPaddingUnit:je,mobiletabBodyMarginUnit:ze,titleFontStyle:De,tabAlign:Ne,titleLetterSpacing:Ie,titleLetterSpacingTablet:Ve,titleLetterSpacingMobile:We,titleLetterSpacingType:qe}=e,Ze=us(O,"iconSize",i),$e=us(N,"iconSpacing",i),Ye=Wr(e,"tab",""),Ke=Wr(e,"tab","tablet"),Je=Wr(e,"tab","mobile");let Xe={},Qe={},et={};Xe={".uagb-tabs__hstyle1-desktop > .uagb-tabs__panel .uagb-tab":Ye,".uagb-tabs__hstyle1-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__hstyle2-desktop > .uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle2-desktop ul.uagb-tabs__panel":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__hstyle2-desktop > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle3-desktop .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__hstyle3-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__hstyle4-desktop .uagb-tab":{"border-radius":"30px",...Ye},".uagb-tabs__hstyle4-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__hstyle5-desktop":{...Ye},".uagb-tabs__hstyle5-desktop .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__hstyle5-desktop .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__vstyle6-desktop .uagb-tab":Ye,".uagb-tabs__vstyle6-desktop .uagb-tabs__body-wrap":Ye,".uagb-tabs__vstyle7-desktop .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__vstyle7-desktop > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle8-desktop .uagb-tab":{"border-right-width":"0px","border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__vstyle8-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__vstyle9-desktop .uagb-tab":{"border-radius":"30px",...Ye},".uagb-tabs__vstyle9-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__vstyle10-desktop":{...Ye},".uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-desktop .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-bottom-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-bottom":0,outline:0,"border-radius":0,...Ye}," > .uagb-tabs__panel .uagb-tab":{background:n,"text-align":r,"margin-top":Vr(b,Z),"margin-left":Vr(g,Z),"margin-right":Vr(m,Z),"margin-bottom":Vr(y,Z)}," > .uagb-tabs__panel .uagb-tab a":{"padding-top":Vr(f,q),"padding-bottom":Vr(h,q),"padding-left":Vr(v,q),"padding-right":Vr(_,q)}," > .uagb-tabs__panel .uagb-tab a > p":{color:s,"font-family":T,"font-weight":C,"font-size":Vr(S,k),"line-height":Vr(x,A),"letter-spacing":Vr(Ie,qe),"text-transform":R,"text-decoration":B,"font-style":De}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active ":{background:c}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active p":{color:u}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active .uagb-tabs__icon svg":{fill:W}," > .uagb-tabs__body-wrap ":{background:p,"padding-top":Vr(fe,$),"padding-bottom":Vr(he,$),"padding-left":Vr(ve,$),"padding-right":Vr(_e,$),"margin-top":Vr(z,Y),"margin-left":Vr(F,Y),"margin-right":Vr(j,Y),"margin-bottom":Vr(D,Y)}," > .uagb-tabs__body-wrap > .block-editor-inner-blocks p":{color:d}," .uagb-tabs__icon svg":{height:Vr(Ze,"px"),width:Vr(Ze,"px"),fill:E},".uagb-tabs__wrap > .uagb-tabs__panel .uagb-tab:hover":{"border-color":U},".uagb-tabs__wrap > .uagb-tabs__body-wrap:hover":{"border-color":U}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":Vr($e,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":Vr($e,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":Vr($e,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":Vr($e,"px")}},Xe[" .uagb-tabs__panel"]="left"===Ne?{"margin-right":"auto","margin-left":0}:"right"===Ne?{"margin-left":"auto","margin-right":0}:{margin:"auto"},Qe={".uagb-tabs__hstyle1-tablet > .uagb-tabs__panel .uagb-tab":Ke,".uagb-tabs__hstyle1-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__hstyle2-tablet > .uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle2-tablet ul.uagb-tabs__panel":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__hstyle2-tablet > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle3-tablet .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__hstyle3-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__hstyle4-tablet .uagb-tab":{"border-radius":"30px",...Ke},".uagb-tabs__hstyle4-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__hstyle5-tablet":{...Ke},".uagb-tabs__hstyle5-tablet .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__hstyle5-tablet .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__vstyle6-tablet > .uagb-tabs__panel .uagb-tab":Ke,".uagb-tabs__vstyle6-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__vstyle7-tablet .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__vstyle7-tablet > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle8-tablet > .uagb-tabs__panel .uagb-tab":{"border-right-width":"0px","border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__vstyle8-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__vstyle9-tablet .uagb-tab":{"border-radius":"30px",...Ke},".uagb-tabs__vstyle9-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__vstyle10-tablet":{...Ke},".uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-tablet .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-bottom-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-bottom":0,outline:0,"border-radius":0,...Ke}," .uagb-tabs__icon svg":{height:Vr(L,"px"),width:Vr(L,"px")}," > .uagb-tabs__panel .uagb-tab p":{"font-size":Vr(P,k),"line-height":Vr(M,A),"letter-spacing":Vr(Ve,qe)}," > .uagb-tabs__panel .uagb-tab a":{"padding-top":Vr(K,oe),"padding-bottom":Vr(J,oe),"padding-left":Vr(X,oe),"padding-right":Vr(Q,oe)}," > .uagb-tabs__panel .uagb-tab":{"margin-top":Vr(ee,ne),"margin-left":Vr(te,ne),"margin-right":Vr(le,ne),"margin-bottom":Vr(ie,ne),...Ke}," > .uagb-tabs__body-wrap ":{"padding-top":Vr(Te,Ge),"padding-bottom":Vr(Ce,Ge),"padding-left":Vr(Se,Ge),"padding-right":Vr(ke,Ge),"margin-top":Vr(we,Me),"margin-left":Vr(Pe,Me),"margin-right":Vr(xe,Me),"margin-bottom":Vr(Ae,Me),...Ke}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":Vr(I,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":Vr(I,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":Vr(I,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":Vr(I,"px")}},et={".uagb-tabs__hstyle1-mobile > .uagb-tabs__panel .uagb-tab":Je,".uagb-tabs__hstyle1-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__hstyle2-mobile > .uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle2-mobile ul.uagb-tabs__panel":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__hstyle2-mobile > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle3-mobile .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Je},".uagb-tabs__hstyle3-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__hstyle4-mobile .uagb-tab":{"border-radius":"30px",...Je},".uagb-tabs__hstyle4-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__hstyle5-mobile":{...Je},".uagb-tabs__hstyle5-mobile .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__hstyle5-mobile .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__vstyle6-mobile .uagb-tab":Je,".uagb-tabs__vstyle6-mobile .uagb-tabs__body-wrap":Je,".uagb-tabs__vstyle7-mobile .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__vstyle7-mobile > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle8-mobile .uagb-tab":{"border-right-width":"0px","border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__vstyle8-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__vstyle9-mobile .uagb-tab":{"border-radius":"30px",...Je},".uagb-tabs__vstyle9-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__vstyle10-mobile":{...Je},".uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-mobile .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-bottom-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-bottom":0,outline:0,"border-radius":0,...Je},".uagb-tabs__stack1-mobile > .uagb-tabs__panel .uagb-tab":Je,".uagb-tabs__stack1-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__stack2-mobile .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Je},".uagb-tabs__stack2-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__stack3-mobile .uagb-tab":{"border-radius":"30px",...Je},".uagb-tabs__stack3-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__stack4-mobile":Je,".uagb-tabs__stack4-mobile .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__stack4-mobile .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je}," .uagb-tabs__icon svg":{height:Vr(H,"px"),width:Vr(H,"px")}," > .uagb-tabs__panel .uagb-tab p":{"font-size":Vr(w,k),"line-height":Vr(G,A),"letter-spacing":Vr(We,qe)}," > .uagb-tabs__panel .uagb-tab":{"margin-top":Vr(pe,ye),"margin-left":Vr(de,ye),"margin-right":Vr(be,ye),"margin-bottom":Vr(ge,ye),...Je}," > .uagb-tabs__panel .uagb-tab a":{"padding-top":Vr(re,me),"padding-bottom":Vr(se,me),"padding-left":Vr(ce,me),"padding-right":Vr(ue,me)}," > .uagb-tabs__body-wrap ":{"padding-top":Vr(Re,je),"padding-bottom":Vr(Be,je),"padding-left":Vr(Ue,je),"padding-right":Vr(Ee,je),"margin-top":Vr(Oe,ze),"margin-left":Vr(Le,ze),"margin-right":Vr(He,ze),"margin-bottom":Vr(Fe,ze),...Je}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":Vr(V,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":Vr(V,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":Vr(V,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":Vr(V,"px")}};const tt=".editor-styles-wrapper .uagb-block-"+t.substr(0,8);let at=ae(Xe,tt);return"tablet"!==o&&"mobile"!==o||(at+=ae(Qe,""+tt,!0,"tablet"),"mobile"===o&&(at+=ae(et,""+tt,!0,"mobile"))),at}(l,g,m,y),[l,y]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:f}),t&&React.createElement(yM,e),React.createElement(PM,e))});const AM=ce("tab");var GM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"stack1",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},...AM,titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}};const MM=ce("tab");var RM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"stack1",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},...MM,titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}};const BM=ce("tab");var UM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"stack1",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},...BM,titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}};const EM=ce("tab"),OM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},...EM};var LM=[{attributes:OM,save(e){const{className:t}=e,{block_id:a,tabHeaders:l,tabActiveFrontend:i,tabsStyleD:o,tabsStyleT:n,tabsStyleM:r,icon:s,showIcon:c,iconPosition:u}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-block-"+a,"uagb-tabs__wrap",`uagb-tabs__${o}-desktop`,`uagb-tabs__${n}-tablet`,`uagb-tabs__${r}-mobile`),"data-tab-active":i},React.createElement("ul",{className:"uagb-tabs__panel"},l.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs__icon-position-"+u},c&&("left"===u||"top"===u)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(s)),React.createElement(ge.RichText.Content,{tagName:"span",value:e}),c&&("right"===u||"bottom"===u)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(s)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:OM,save(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":"")},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(c)),React.createElement(ge.RichText.Content,{tagName:"span",value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:GM,save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":"")},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:RM,save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d,role:"tablist"},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":""),role:"none"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t,role:"tab"},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:UM,save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d,role:"tablist"},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":""),role:"none"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t,role:"tab"},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{tagName:"div",value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];let HM={};HM=Object(F.applyFilters)("uagb/tabs",ss(HM)),Object(de.registerBlockType)("uagb/tabs",{...HM,title:Object(r.__)("Tabs","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your content under different tabs.","ultimate-addons-for-gutenberg"),icon:se.tabs,keywords:[Object(r.__)("tabs","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:ga,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"tabs"}):React.createElement(xM,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d,role:"tablist"},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":""),role:"none"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t,role:"tab"},u&&c&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{tagName:"div",value:e}),u&&c&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:LM}),a(375);var FM={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},id:{type:"number",default:0},header:{type:"html"},tabActive:{type:"number"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]}},jM=Object(B.memo)(e=>{const{attributes:t}=e,{tabActive:a,id:l}=t;return React.createElement("div",{className:"uagb-tabs__body-container uagb-inner-tab-"+l,style:{display:l===a?"block":"none"},"aria-labelledby":"uagb-tabs__tab"+l},React.createElement(ge.InnerBlocks,{template:[["core/paragraph",{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]],templateLock:!1}))}),zM=Object(L.compose)(ls)(e=>{const{attributes:t,setAttributes:a,clientId:l}=e;return Object(B.useEffect)(()=>{const{getBlockRootClientId:e,getBlockAttributes:i}=Object(n.select)("core/block-editor"),o=i(e(l));null!=o&&o.tabActiveFrontend&&o.tabActiveFrontend!==(null==t?void 0:t.tabActive)&&a({tabActive:o.tabActiveFrontend}),null!==o&&!1!==o.needUpdate&&Object.keys(o).forEach(e=>{"metadata"!==e&&(t[e]=o[e])})},[]),React.createElement(jM,e)}),DM=[{attributes:FM,save(e){const{attributes:t,className:a}=e,{id:l,block_id:i}=t;return React.createElement("div",{className:"uagb-tabs__body-container"},React.createElement("div",{className:Be()(a,"uagb-blocks__"+i,"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab"+l},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:FM,save(e){const{attributes:t,className:a}=e,{id:l,block_id:i}=t;return React.createElement("div",{className:"uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-"+l},React.createElement("div",{className:Be()(a,"uagb-blocks__"+i,"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab"+l},React.createElement(ge.InnerBlocks.Content,null)))}}];let NM={};NM=Object(F.applyFilters)("uagb/tabs-child",ss(NM)),Object(de.registerBlockType)("uagb/tabs-child",{...NM,title:Object(r.__)("Tabs child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your content in a tab.","ultimate-addons-for-gutenberg"),parent:["uagb/tabs"],icon:se.tabs_child,keywords:[Object(r.__)("tabs","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:FM,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"tabs-child",isChildren:!0}):React.createElement(zM,e),save:function(e){const{attributes:t}=e,{id:a}=t;return React.createElement("div",{className:"uagb-tabs__body-container uagb-inner-tab-"+a,"aria-labelledby":"uagb-tabs__tab"+a},React.createElement(ge.InnerBlocks.Content,null))},deprecated:DM}),a(376);var IM=Object(B.memo)(e=>{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,countLoadGoogleFonts:o,countFontFamily:n,countFontWeight:r,listLoadGoogleFonts:s,listFontFamily:c,listFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});const VM=[{defaultAttributes:Jt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '}];var WM=Object(F.applyFilters)("uag_taxonomy_presets",VM);function qM(){return(qM=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,taxonomyList:l,termsList:i,deviceType:o}=e,{block_id:n,postType:s,taxonomyType:c,layout:u,columns:p,tcolumns:d,mcolumns:b,bgColor:g,titleColor:m,countColor:y,rowGap:f,rowGapTablet:h,rowGapMobile:v,columnGap:_,columnGapTablet:T,columnGapMobile:C,contentTopPadding:S,contentRightPadding:k,contentBottomPadding:w,contentLeftPadding:P,contentTopPaddingTablet:x,contentRightPaddingTablet:A,contentBottomPaddingTablet:G,contentLeftPaddingTablet:M,contentTopPaddingMobile:R,contentRightPaddingMobile:B,contentBottomPaddingMobile:U,contentLeftPaddingMobile:E,contentPaddingUnit:O,mobileContentPaddingUnit:L,tabletContentPaddingUnit:H,contentPaddingLink:F,titleBottomSpace:j,titleBottomSpaceTablet:z,titleBottomSpaceMobile:D,alignment:N,listStyle:I,listTextColor:V,hoverlistTextColor:W,listBottomMargin:q,listStyleColor:Z,hoverlistStyleColor:$,noTaxDisplaytext:Y,boxShadowColor:K,boxShadowHOffset:J,boxShadowVOffset:X,boxShadowBlur:Q,boxShadowSpread:ee,boxShadowPosition:te,showCount:ae,titleFontSize:le,titleFontSizeType:ie,titleFontSizeMobile:oe,titleFontSizeTablet:ne,titleFontFamily:re,titleFontWeight:se,titleFontStyle:ce,titleLineHeightType:ue,titleLineHeight:pe,titleLineHeightTablet:de,titleLineHeightMobile:be,titleLoadGoogleFonts:me,countFontSize:ye,countFontSizeType:fe,countFontSizeMobile:he,countFontSizeTablet:ve,countFontFamily:_e,countFontWeight:Te,countFontStyle:Se,countLineHeightType:ke,countLineHeight:we,countLineHeightTablet:Pe,countLineHeightMobile:xe,countLoadGoogleFonts:Ae,listFontSize:Ge,listFontSizeType:Me,listFontSizeMobile:Re,listFontSizeTablet:Be,listFontFamily:Ue,listFontWeight:Oe,listFontStyle:He,listLineHeightType:Fe,listLineHeight:ze,listLineHeightTablet:De,listLineHeightMobile:Ne,listLoadGoogleFonts:Ie,showEmptyTaxonomy:Ve,listDisplayStyle:We,showhierarchy:qe,titleTag:Ze,titleTransform:$e,countTransform:Ye,listTransform:Ke,titleDecoration:Je,countDecoration:Xe,listDecoration:Qe,titleLetterSpacing:et,titleLetterSpacingTablet:tt,titleLetterSpacingMobile:at,titleLetterSpacingType:lt,countLetterSpacing:it,countLetterSpacingTablet:ot,countLetterSpacingMobile:nt,countLetterSpacingType:rt,listLetterSpacing:st,listLetterSpacingTablet:ct,listLetterSpacingMobile:ut,listLetterSpacingType:pt,seperatorStyle:dt,seperatorWidth:bt,seperatorThickness:gt,seperatorColor:mt,seperatorHoverColor:yt}=t,ft=Ve?l:i,ht=[{value:"",label:Object(r.__)("Select Taxonomy","ultimate-addons-for-gutenberg")}];""!==ft&&void 0!==ft&&Object.keys(ft).map(e=>ht.push({value:l[e].name,label:l[e].label}));const vt=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:V||"",data:{value:V,label:"listTextColor"},setAttributes:a}),React.createElement("br",null),"none"!==I&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Bullet/Numbers Color","ultimate-addons-for-gutenberg"),colorValue:Z||"",data:{value:Z,label:"listStyleColor"},setAttributes:a}))),_t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:W||"",data:{value:W,label:"hoverlistTextColor"},setAttributes:a}),React.createElement("br",null),"none"!==I&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Bullet/Numbers Color","ultimate-addons-for-gutenberg"),colorValue:$||"",data:{value:$,label:"hoverlistStyleColor"},setAttributes:a}))),Tt=React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Query","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:s},onChange:e=>{const t={nonce:uagb_blocks_info.uagb_ajax_nonce};$l({url:uagb_blocks_info.ajax_url,action:"uagb_get_taxonomy",data:t}).then(t=>{a({listInJson:t}),a({postType:e}),a({categories:""}),a({taxonomyType:""})})},options:uagb_blocks_info.post_types}),""!==l&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:c},onChange:e=>{a({taxonomyType:e}),a({categories:""})},options:ht}),""===l&&React.createElement(Ss,{autoComplete:"off",label:Object(r.__)("Display Message","ultimate-addons-for-gutenberg"),value:Y,data:{value:Y,label:"noTaxDisplaytext"},setAttributes:a,onChange:e=>a({noTaxDisplaytext:e}),help:Object(r.__)("If taxonomy Not Found","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Empty Taxonomy","ultimate-addons-for-gutenberg"),checked:Ve,onChange:()=>a({showEmptyTaxonomy:!Ve})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Posts Count","ultimate-addons-for-gutenberg"),checked:ae,onChange:()=>a({showCount:!ae})}),"list"===u&&"list"===We&&"post_tag"!==c&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Hierarchy","ultimate-addons-for-gutenberg"),checked:qe,onChange:()=>a({showhierarchy:!qe})})),(()=>{let e=Ze;return""===Ze&&(e="h4","list"===u&&(e="div")),React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:e,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"div",label:Object(r.__)("Div","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:u,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"grid",label:"Grid"},{value:"list",label:"List"}],showIcons:!1}),"grid"===u&&React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"columns",min:1,max:4},tablet:{value:d,label:"tcolumns",min:1,max:3},mobile:{value:b,label:"mcolumns",min:1,max:2}},min:1,max:4,displayUnit:!1,setAttributes:a}),"list"===u&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Display Style","ultimate-addons-for-gutenberg"),data:{value:We,label:"listDisplayStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"list",label:"List"},{value:"dropdown",label:"Dropdown"}],showIcons:!1})),"grid"===u&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:N,label:"alignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),"list"===u&&"dropdown"!==We&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("List Style","ultimate-addons-for-gutenberg"),data:{value:I,label:"listStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"disc",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-list-ul")}),tooltip:Object(r.__)("Bullet","ultimate-addons-for-gutenberg")},{value:"decimal",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-list-ol")}),tooltip:Object(r.__)("Numbers","ultimate-addons-for-gutenberg")},{value:"none",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-bars")}),tooltip:Object(r.__)("None","ultimate-addons-for-gutenberg")}],showIcons:!0})))})()),React.createElement(il,nl,"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:me,label:"titleLoadGoogleFonts"},fontFamily:{value:re,label:"titleFontFamily"},fontWeight:{value:se,label:"titleFontWeight"},fontStyle:{value:ce,label:"titleFontStyle"},fontSizeType:{value:ie,label:"titleFontSizeType"},fontSize:{value:le,label:"titleFontSize"},fontSizeMobile:{value:oe,label:"titleFontSizeMobile"},fontSizeTablet:{value:ne,label:"titleFontSizeTablet"},lineHeightType:{value:ue,label:"titleLineHeightType"},lineHeight:{value:pe,label:"titleLineHeight"},lineHeightMobile:{value:be,label:"titleLineHeightMobile"},lineHeightTablet:{value:de,label:"titleLineHeightTablet"},transform:{value:$e,label:"titleTransform"},decoration:{value:Je,label:"titleDecoration"},letterSpacing:{value:et,label:"titleLetterSpacing"},letterSpacingTablet:{value:tt,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:at,label:"titleLetterSpacingMobile"},letterSpacingType:{value:lt,label:"titleLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"titleColor"},setAttributes:a}),ae&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:j,label:"titleBottomSpace"},tablet:{value:z,label:"titleBottomSpaceTablet"},mobile:{value:D,label:"titleBottomSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a})),"grid"===u&&"dropdown"!==We&&ae&&React.createElement(je,{title:Object(r.__)("Count","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:y||"",data:{value:y,label:"countColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Ae,label:"countLoadGoogleFonts"},fontFamily:{value:_e,label:"countFontFamily"},fontWeight:{value:Te,label:"countFontWeight"},fontStyle:{value:Se,label:"countFontStyle"},fontSizeType:{value:fe,label:"countFontSizeType"},fontSize:{value:ye,label:"countFontSize"},fontSizeMobile:{value:he,label:"countFontSizeMobile"},fontSizeTablet:{value:ve,label:"countFontSizeTablet"},lineHeightType:{value:ke,label:"countLineHeightType"},lineHeight:{value:we,label:"countLineHeight"},lineHeightMobile:{value:xe,label:"countLineHeightMobile"},lineHeightTablet:{value:Pe,label:"countLineHeightTablet"},transform:{value:Ye,label:"countTransform"},decoration:{value:Xe,label:"countDecoration"},letterSpacing:{value:it,label:"countLetterSpacing"},letterSpacingTablet:{value:ot,label:"countLetterSpacingTablet"},letterSpacingMobile:{value:nt,label:"countLetterSpacingMobile"},letterSpacingType:{value:rt,label:"countLetterSpacingType"}})),"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"bgColor"},setAttributes:a})),"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"overall",attributes:t,deviceType:o,disableBottomSeparator:!0,disabledBorderTitle:!0})),"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:WM,presetInputType:"radioImage"}),React.createElement(vl,{blockId:n,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:K,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:J,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:X,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Q,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ee,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:te,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),"list"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("List","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Ie,label:"listLoadGoogleFonts"},fontFamily:{value:Ue,label:"listFontFamily"},fontWeight:{value:Oe,label:"listFontWeight"},fontStyle:{value:He,label:"listFontStyle"},fontSizeType:{value:Me,label:"listFontSizeType"},fontSize:{value:Ge,label:"listFontSize"},fontSizeMobile:{value:Re,label:"listFontSizeMobile"},fontSizeTablet:{value:Be,label:"listFontSizeTablet"},lineHeightType:{value:Fe,label:"listLineHeightType"},lineHeight:{value:ze,label:"listLineHeight"},lineHeightMobile:{value:Ne,label:"listLineHeightMobile"},lineHeightTablet:{value:De,label:"listLineHeightTablet"},transform:{value:Ke,label:"listTransform"},decoration:{value:Qe,label:"listDecoration"},letterSpacing:{value:st,label:"listLetterSpacing"},letterSpacingTablet:{value:ct,label:"listLetterSpacingTablet"},letterSpacingMobile:{value:ut,label:"listLetterSpacingMobile"},letterSpacingType:{value:pt,label:"listLetterSpacingType"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:vt,hover:_t,disableBottomSeparator:!0})),"list"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Separator Style","ultimate-addons-for-gutenberg"),data:{value:dt,label:"seperatorStyle"},setAttributes:a,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(r.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(r.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(r.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(r.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!==dt&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Separator Width (%)","ultimate-addons-for-gutenberg"),value:bt,min:0,max:100,setAttributes:a,data:{value:bt,label:"seperatorWidth"},displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Separator Thickness","ultimate-addons-for-gutenberg"),value:gt,min:0,max:20,setAttributes:a,data:{value:gt,label:"seperatorThickness"},displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:mt||"",data:{value:mt,label:"seperatorColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Hover Color","ultimate-addons-for-gutenberg"),colorValue:yt||"",data:{value:yt,label:"seperatorHoverColor"},setAttributes:a}))),"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"===u&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Row Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:f,label:"rowGap"},tablet:{value:h,label:"rowGapTablet"},mobile:{value:v,label:"rowGapMobile"}},min:1,max:50,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:_,label:"columnGap"},tablet:{value:T,label:"columnGapTablet"},mobile:{value:C,label:"columnGapMobile"}},min:1,max:50,displayUnit:!1,setAttributes:a}),React.createElement(Pl,qM({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:S,label:"contentTopPadding"},valueRight:{value:k,label:"contentRightPadding"},valueBottom:{value:w,label:"contentBottomPadding"},valueLeft:{value:P,label:"contentLeftPadding"},valueTopTablet:{value:x,label:"contentTopPaddingTablet"},valueRightTablet:{value:A,label:"contentRightPaddingTablet"},valueBottomTablet:{value:G,label:"contentBottomPaddingTablet"},valueLeftTablet:{value:M,label:"contentLeftPaddingTablet"},valueTopMobile:{value:R,label:"contentTopPaddingMobile"},valueRightMobile:{value:B,label:"contentRightPaddingMobile"},valueBottomMobile:{value:U,label:"contentBottomPaddingMobile"},valueLeftMobile:{value:E,label:"contentLeftPaddingMobile"},unit:{value:O,label:"contentPaddingUnit"},mUnit:{value:L,label:"mobileContentPaddingUnit"},tUnit:{value:H,label:"tabletContentPaddingUnit"},deviceType:o,attributes:t,setAttributes:a,link:{value:F,label:"contentPaddingLink"}}))),"list"===u&&React.createElement(Qa,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),setAttributes:a,value:q,data:{value:q,label:"listBottomMargin"},min:0,max:100,displayUnit:!1})),"list"===u&&"dropdown"===We&&React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("There is no style available for the currently selected layout.","ultimate-addons-for-gutenberg"))),React.createElement(il,qM({},rl,{parentProps:e}))));return React.createElement(React.Fragment,null,Tt)}),YM=a(142),KM=0,JM={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},XM={};XM.locals=YM.a.locals||{},XM.use=function(){return KM++||(ZM=we()(YM.a,JM)),XM},XM.unuse=function(){KM>0&&!--KM&&(ZM(),ZM=null)};var QM=XM,eR=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(QM.use(),()=>{QM.unuse()}),[]);const{categoriesList:t,attributes:a,deviceType:l}=e,{layout:i,seperatorStyle:o,noTaxDisplaytext:n,showCount:s,listDisplayStyle:c,titleTag:u,block_id:p,showEmptyTaxonomy:d,taxonomyType:b}=a,g="post_tag"!==b&&a.showhierarchy;let m;"grid"===i?m=u||"h4":"list"===i&&(m=u||"div");const y={per_page:-1,hide_empty:!d,context:"view"},{records:f}=Object(be.useEntityRecords)("taxonomy",b,y),h=e=>null!=f&&f.length?null===e?f:f.filter(t=>{let{parent:a}=t;return a===e}):[],v=e=>e?Object(Zw.decodeEntities)(e).trim():Object(r.__)("(Untitled)","ultimate-addons-for-gutenberg"),_=e=>{const t=h(e.id),{id:a,link:l,count:i,name:n}=e;return 0===e.parent&&!g||"post_tag"===b?React.createElement("li",{key:a,className:"uagb-tax-list"},React.createElement(m,{class:"uagb-tax-link-wrap"},React.createElement("a",{className:"uagb-tax-link",href:l,target:"_blank",rel:"noreferrer noopener"},v(n)),s&&` (${i})`),"none"!==o&&React.createElement("div",{className:"uagb-tax-separator"})):g?React.createElement("li",{key:a,className:"uagb-tax-list"},React.createElement(m,{class:"uagb-tax-link-wrap"},React.createElement("a",{className:"uagb-tax-link",href:l,target:"_blank",rel:"noreferrer noopener"},v(n)),s&&` (${i})`),"none"!==o&&React.createElement("div",{className:"uagb-tax-separator"}),g&&!!t.length&&React.createElement("ul",{className:"uagb-taxonomy-list-children"},t.map(e=>_(e)))):void 0};return t.length?React.createElement("div",{className:Z(["uagb-taxonomy__outer-wrap","uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-layout-"+i,"uagb-block-"+p])},"grid"===i&&t.map((e,t)=>React.createElement("div",{className:"uagb-taxomony-box",key:t},React.createElement("a",{className:"uagb-tax-link",href:e.link},React.createElement(m,{className:"uagb-tax-title",dangerouslySetInnerHTML:{__html:e.name}}),s&&React.createElement(React.Fragment,null,e.count," ",e.count>"1"?e.singular_name+"s":e.singular_name)))),"list"===i&&"list"===c&&React.createElement("ul",{className:"uagb-list-wrap"},h(g?0:null).map(e=>_(e))),"list"===i&&"dropdown"===c&&React.createElement("select",{className:"uagb-list-dropdown-wrap"},t.map((e,t)=>React.createElement("option",{key:t,value:e.link},Object(Zw.decodeEntities)(e.name),s&&` (${e.count})`)))):React.createElement("div",{className:Z(["uagb-taxonomy__outer-wrap","uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-layout-"+i,"uagb-block-"+p])},React.createElement("div",{className:"uagb-tax-not-available"},n))});function tR(){return(tR=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a,attributes:{postType:l,taxonomyType:i,showEmptyTaxonomy:o,listInJson:r=null,borderStyle:s,borderThickness:c,borderRadius:u,borderColor:p,borderHoverColor:d,overallBorderTopWidth:b,overallBorderLeftWidth:g,overallBorderRightWidth:m,overallBorderBottomWidth:y,overallBorderTopLeftRadius:f,overallBorderTopRightRadius:h,overallBorderBottomLeftRadius:v,overallBorderBottomRightRadius:_,overallBorderColor:T,overallBorderHColor:C,overallBorderStyle:S,UAGHideDesktop:k,UAGHideTab:w,UAGHideMob:P},setAttributes:x,name:A,deviceType:G}=e;let M=[];const{taxonomyList:R,termsList:U}=Object(n.useSelect)(e=>{const t=null!==r?r.data:"",a=""!==t?t[l]:"undefined",n=o?"with_empty_taxonomy":"without_empty_taxonomy";return void 0!==a&&void 0!==a[n]&&void 0!==a[n][i]&&(M=a[n][i]),{categoriesList:M,taxonomyList:void 0!==a?a.taxonomy:[],termsList:void 0!==a?a.terms:[]}});Object(B.useEffect)(()=>{if(!r){const e={nonce:uagb_blocks_info.uagb_ajax_nonce};$l({url:uagb_blocks_info.ajax_url,action:"uagb_get_taxonomy",data:e}).then(e=>{x({listInJson:e})})}c&&(void 0===b&&x({overallBorderTopWidth:c}),void 0===g&&x({overallBorderLeftWidth:c}),void 0===m&&x({overallBorderRightWidth:c}),void 0===y&&x({overallBorderBottomWidth:c})),u&&(void 0===f&&x({overallBorderTopLeftRadius:u}),void 0===h&&x({overallBorderTopRightRadius:u}),void 0===v&&x({overallBorderBottomLeftRadius:u}),void 0===_&&x({overallBorderBottomRightRadius:u})),p&&void 0===T&&x({overallBorderColor:p}),d&&void 0===C&&x({overallBorderHColor:d}),s&&void 0===S&&x({overallBorderStyle:s})},[]),Object(B.useEffect)(()=>{he(e)},[k,w,P,G]),Object(B.useEffect)(()=>{ys()},[G]);const E=Object(B.useMemo)(()=>function(e,t,a){const l=t.replace("uagb/",""),i=a.toLowerCase(),{block_id:o,columns:n,tcolumns:r,mcolumns:s,bgColor:c,titleColor:u,countColor:p,rowGap:d,rowGapTablet:b,rowGapMobile:g,columnGap:m,columnGapTablet:y,columnGapMobile:f,contentTopPadding:h,contentRightPadding:v,contentBottomPadding:_,contentLeftPadding:T,contentTopPaddingTablet:C,contentRightPaddingTablet:S,contentBottomPaddingTablet:k,contentLeftPaddingTablet:w,contentTopPaddingMobile:P,contentRightPaddingMobile:x,contentBottomPaddingMobile:A,contentLeftPaddingMobile:G,contentPaddingUnit:M,mobileContentPaddingUnit:R,tabletContentPaddingUnit:B,titleBottomSpace:U,titleBottomSpaceTablet:E,titleBottomSpaceMobile:O,alignment:L,listStyle:H,seperatorHoverColor:F,listTextColor:j,hoverlistTextColor:z,listBottomMargin:D,listStyleColor:N,hoverlistStyleColor:I,boxShadowColor:V,boxShadowHOffset:W,boxShadowVOffset:q,boxShadowBlur:Z,boxShadowSpread:$,boxShadowPosition:Y,titleFontSize:K,titleFontSizeType:J,titleFontSizeMobile:X,titleFontSizeTablet:Q,titleFontFamily:ee,titleFontWeight:te,titleLineHeightType:le,titleLineHeight:ie,titleLineHeightTablet:oe,titleLineHeightMobile:ne,countFontSize:re,countFontSizeType:se,countFontSizeMobile:ce,countFontSizeTablet:ue,countFontFamily:pe,countFontWeight:de,countLineHeightType:be,countLineHeight:ge,countLineHeightTablet:me,countLineHeightMobile:ye,listFontSize:fe,listFontSizeType:he,listFontSizeMobile:ve,listFontSizeTablet:_e,listFontFamily:Te,listFontWeight:Ce,listLineHeightType:Se,listLineHeight:ke,listLineHeightTablet:we,listLineHeightMobile:Pe,overallBorderHColor:xe,titleFontStyle:Ae,countFontStyle:Ge,listFontStyle:Me,titleTransform:Re,countTransform:Be,listTransform:Ue,titleDecoration:Ee,countDecoration:Oe,listDecoration:Le,titleLetterSpacing:He,titleLetterSpacingTablet:Fe,titleLetterSpacingMobile:je,titleLetterSpacingType:ze,countLetterSpacing:De,countLetterSpacingTablet:Ne,countLetterSpacingMobile:Ie,countLetterSpacingType:Ve,listLetterSpacing:We,listLetterSpacingTablet:qe,listLetterSpacingMobile:Ze,listLetterSpacingType:$e,seperatorStyle:Ye,seperatorWidth:Ke,seperatorThickness:Je,seperatorColor:Xe}=e,Qe=us(D,"listBottomMargin",l),et=us(n,"columns",l),tt=us(r,"tcolumns",l),at=us(s,"mcolumns",l),lt=us(U,"titleBottomSpace",l),it=us(d,"rowGap",l),ot=us(m,"columnGap",l),nt=Wr(e,"overall",""),rt=Wr(e,"overall","tablet"),st=Wr(e,"overall","mobile");let ct={},ut={},pt={},dt=Y;"outset"===Y&&(dt=""),ct={".uagb-taxonomy__outer-wrap.uagb-layout-grid":{display:"grid","grid-template-columns":"repeat("+et+", 1fr)","grid-column-gap":Vr(ot,"px"),"grid-row-gap":Vr(it,"px")},".uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(h,M),"padding-bottom":Vr(_,M),"padding-left":Vr(T,M),"padding-right":Vr(v,M),"background-color":c,"text-align":L,"box-shadow":Vr(W,"px")+" "+Vr(q,"px")+" "+Vr(Z,"px")+" "+Vr($,"px")+" "+V+" "+dt},".uagb-layout-grid .uagb-tax-link":{color:p,"font-size":Vr(re,se),"font-family":pe,"font-weight":de,"line-height":Vr(ge,be),"font-style":Ge,"text-decoration":Oe,"text-transform":Be,"letter-spacing":Vr(De,Ve),"pointer-events":"none"},".uagb-layout-grid .uagb-tax-title":{color:u,"margin-top":"0","margin-bottom":Vr(lt,"px"),"font-size":Vr(K,J),"font-family":ee,"font-weight":te,"line-height":Vr(ie,le),"font-style":Ae,"text-decoration":Ee,"text-transform":Re,"letter-spacing":Vr(He,ze)},".uagb-layout-list .uagb-tax-list":{"list-style":H,color:N,"font-size":Vr(fe,he),"font-family":Te,"font-weight":Ce,"line-height":Vr(ke,Se),"font-style":Me,"text-decoration":Le,"text-transform":Ue,"letter-spacing":Vr(We,$e)},".uagb-layout-list .uagb-tax-list:hover":{color:I},".uagb-layout-list .uagb-tax-link-wrap:hover":{color:I},".uagb-layout-list .uagb-tax-list a.uagb-tax-link":{color:j},".uagb-layout-list .uagb-tax-list a.uagb-tax-link:hover":{color:z},".uagb-layout-list .uagb-tax-list .uagb-tax-link-wrap":{"margin-bottom":Vr(Qe,"px")}," .uagb-taxonomy-wrap.uagb-layout-grid":{display:"grid","grid-template-columns":"repeat("+et+", 1fr)","grid-column-gap":Vr(ot,"px"),"grid-row-gap":Vr(it,"px")}," .uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(h,M),"padding-bottom":Vr(_,M),"padding-left":Vr(T,M),"padding-right":Vr(v,M),"background-color":c,"text-align":L,"box-shadow":Vr(W,"px")+" "+Vr(q,"px")+" "+Vr(Z,"px")+" "+Vr($,"px")+" "+V+" "+dt}," .uagb-layout-grid .uagb-tax-title":{color:u,"margin-top":"0","margin-bottom":Vr(lt,"px"),"font-size":Vr(K,J),"font-family":ee,"font-weight":te,"line-height":Vr(ie,le),"font-style":Ae,"text-decoration":Ee,"text-transform":Re}," .uagb-layout-grid .uagb-tax-link":{color:p,"font-size":Vr(re,se),"font-family":pe,"font-weight":de,"line-height":Vr(ge,be),"font-style":Ge,"text-decoration":Oe,"text-transform":Be}," .uagb-layout-list .uagb-tax-list":{"list-style":H,color:N,"font-size":Vr(fe,he),"font-family":Te,"font-weight":Ce,"line-height":Vr(ke,Se),"font-style":Me,"text-decoration":Le,"text-transform":Ue}," .uagb-layout-list .uagb-tax-list:hover":{color:I}," .uagb-layout-list .uagb-tax-list a.uagb-tax-link":{color:j}," .uagb-layout-list .uagb-tax-list a.uagb-tax-link:hover":{color:z}," .uagb-layout-list .uagb-tax-list .uagb-tax-link-wrap":{"margin-bottom":Vr(Qe,"px")}},"none"!==Ye&&(ct[" .uagb-layout-list .uagb-tax-separator"]={"border-top-color":Xe,"border-top-style":Ye,"border-top-width":Vr(Je,"px"),width:Vr(Ke,"%")},ct[" .uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F},ct[".uagb-layout-list .uagb-tax-separator"]={"border-top-color":Xe,"border-top-style":Ye,"border-top-width":Vr(Je,"px"),width:Vr(Ke,"%")},ct[".uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F}),ct[" .uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F},ct[".uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F},ct[" .uagb-taxomony-box"]=nt,ct[" .uagb-taxomony-box:hover"]={"border-color":xe},pt={".uagb-taxonomy__outer-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+at+", 1fr)","grid-column-gap":Vr(f,"px"),"grid-row-gap":Vr(g,"px")},".uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(P,R),"padding-bottom":Vr(A,R),"padding-left":Vr(G,R),"padding-right":Vr(x,R),...st},".uagb-layout-grid .uagb-tax-title":{"font-size":Vr(X,J),"line-height":Vr(ne,le),"margin-bottom":Vr(O,"px"),"letter-spacing":Vr(je,ze)},".uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ce,se),"line-height":Vr(ye,be),"letter-spacing":Vr(Ie,Ve)},".uagb-layout-list .uagb-tax-list":{"font-size":Vr(ve,he),"line-height":Vr(Pe,Se),"letter-spacing":Vr(Ze,$e)}," .uagb-taxonomy-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+at+", 1fr)"}," .uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(P,R),"padding-bottom":Vr(A,R),"padding-left":Vr(G,R),"padding-right":Vr(x,R)}," .uagb-layout-grid .uagb-tax-title":{"font-size":Vr(X,J),"line-height":Vr(ne,le)}," .uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ce,se),"line-height":Vr(ye,be)}," .uagb-layout-list .uagb-tax-list":{"font-size":Vr(ve,he),"line-height":Vr(Pe,Se)}},ut={".uagb-taxonomy__outer-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+tt+", 1fr)","grid-column-gap":Vr(y,"px"),"grid-row-gap":Vr(b,"px")},".uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(C,B),"padding-bottom":Vr(k,B),"padding-left":Vr(w,B),"padding-right":Vr(S,B),...rt},".uagb-layout-grid .uagb-tax-title":{"font-size":Vr(Q,J),"line-height":Vr(oe,le),"margin-bottom":Vr(E,"px"),"letter-spacing":Vr(Fe,ze)},".uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ue,se),"line-height":Vr(me,be),"letter-spacing":Vr(Ne,Ve)},".uagb-layout-list .uagb-tax-list":{"font-size":Vr(_e,he),"line-height":Vr(we,Se),"letter-spacing":Vr(qe,$e)}," .uagb-taxonomy-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+tt+", 1fr)"}," .uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(C,B),"padding-bottom":Vr(k,B),"padding-left":Vr(w,B),"padding-right":Vr(S,B)}," .uagb-layout-grid .uagb-tax-title":{"font-size":Vr(Q,J),"line-height":Vr(oe,le)}," .uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ue,se),"line-height":Vr(me,be)}," .uagb-layout-list .uagb-tax-list":{"font-size":Vr(_e,he),"line-height":Vr(we,Se)}};let bt="";const gt=".uagb-block-"+o;return bt=ae(ct,gt),"tablet"!==i&&"mobile"!==i||(bt+=ae(ut,""+gt,!0,"tablet"),"mobile"===i&&(bt+=ae(pt,""+gt,!0,"mobile"))),bt}(a,A,G),[a,G]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:E}),React.createElement(IM,{attributes:a}),t&&React.createElement($M,tR({},e,{taxonomyList:R,termsList:U})),React.createElement(eR,tR({},e,{categoriesList:M})))});let lR={};lR=Object(F.applyFilters)("uagb/taxonomy-list",ss(lR)),Object(de.registerBlockType)("uagb/taxonomy-list",{...lR,title:Object(r.__)("Taxonomy List","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your content categorized as per post type.","ultimate-addons-for-gutenberg"),icon:se.taxonomy_list,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("taxonomy","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"taxonomy-list"}):React.createElement(aR,e),save:()=>null});var iR=Object(B.memo)(e=>{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,prefixLoadGoogleFonts:o,prefixFontFamily:n,prefixFontWeight:r,descLoadGoogleFonts:s,descFontFamily:c,descFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});let oR="";yt.image&&(oR=yt.image.url);const nR=[{defaultAttributes:yt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"image",value:{url:oR||uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},{label:"titleSpace",value:10},{label:"prefixSpace",value:11},{label:"descSpace",value:10},{label:"align",value:"center"},{label:"imgPosition",value:"above"},{label:"imgAlign",value:""},{label:"socialEnable",value:!0},{label:"imgStyle",value:"circle"},{label:"imageLeftMargin",value:20},{label:"imageRightMargin",value:20},{label:"imgWidth",value:100},{label:"imgWidthMobile",value:100},{label:"imgWidthTablet",value:100}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"image",value:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},{label:"titleSpace",value:5},{label:"prefixSpace",value:13},{label:"descSpace",value:20},{label:"align",value:"center"},{label:"imgPosition",value:"above"},{label:"imgAlign",value:""},{label:"socialEnable",value:!1},{label:"imgStyle",value:"circle"},{label:"imageLeftMargin",value:20},{label:"imageRightMargin",value:20},{label:"imgWidth",value:100},{label:"imgWidthMobile",value:100},{label:"imgWidthTablet",value:100}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"image",value:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},{label:"titleSpace",value:5},{label:"prefixSpace",value:13},{label:"descSpace",value:20},{label:"align",value:"left"},{label:"imgPosition",value:"left"},{label:"imgAlign",value:"middle"},{label:"socialEnable",value:!0},{label:"imgStyle",value:"circle"},{label:"imageLeftMargin",value:20},{label:"imageRightMargin",value:20},{label:"imgWidth",value:100},{label:"imgWidthMobile",value:100},{label:"imgWidthTablet",value:100}],icon:' '}];var rR=Object(F.applyFilters)("uag_team_presets",nR);function sR(){return(sR=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{align:i,tag:o,titleColor:n,prefixColor:s,descColor:c,titleFontFamily:u,titleFontWeight:p,titleFontSizeType:d,titleFontSize:b,titleFontSizeMobile:g,titleFontSizeTablet:m,titleLineHeightType:y,titleLineHeight:f,titleLineHeightMobile:h,titleLineHeightTablet:v,prefixFontFamily:_,prefixFontWeight:T,prefixFontSizeType:C,prefixFontSize:S,prefixFontSizeMobile:k,prefixFontSizeTablet:w,prefixLineHeightType:P,prefixLineHeight:x,prefixLineHeightMobile:A,prefixLineHeightTablet:G,descFontFamily:M,descFontWeight:R,descFontSizeType:B,descFontSize:U,descFontSizeMobile:E,descFontSizeTablet:O,descLineHeightType:L,descLineHeight:H,descLineHeightMobile:F,descLineHeightTablet:z,socialFontSize:D,socialFontSizeType:N,socialFontSizeMobile:I,socialFontSizeTablet:V,titleLoadGoogleFonts:W,prefixLoadGoogleFonts:q,descLoadGoogleFonts:Z,image:$,imgStyle:Y,imgAlign:K,imgSize:J,imgWidth:X,imgWidthTablet:Q,imgWidthMobile:ee,imgPosition:te,titleSpace:ae,titleSpaceTablet:le,titleSpaceMobile:ie,descSpace:oe,descSpaceTablet:ne,descSpaceMobile:re,prefixSpace:se,prefixSpaceTablet:ce,prefixSpaceMobile:ue,twitterIcon:pe,fbIcon:de,linkedinIcon:be,pinIcon:me,twitterLink:ye,fbLink:fe,linkedinLink:he,pinLink:ve,socialColor:_e,socialHoverColor:Te,socialSpace:Se,socialSpaceTablet:ke,socialSpaceMobile:we,socialTarget:Pe,socialEnable:xe,stack:Ae,imageLeftMargin:Ge,imageRightMargin:Me,imageTopMargin:Re,imageBottomMargin:Be,imageMarginTopTablet:Ue,imageMarginRightTablet:Oe,imageMarginBottomTablet:He,imageMarginLeftTablet:Fe,imageMarginTopMobile:ze,imageMarginRightMobile:De,imageMarginBottomMobile:Ne,imageMarginLeftMobile:Ie,imageMarginUnit:Ve,tabletImageMarginUnit:We,mobileImageMarginUnit:qe,spacingLink:Ze,titleTransform:$e,titleDecoration:Ye,descTransform:Ke,descDecoration:Je,prefixTransform:Xe,prefixDecoration:Qe,titleFontStyle:et,descFontStyle:tt,prefixFontStyle:at,titleLetterSpacing:lt,titleLetterSpacingTablet:it,titleLetterSpacingMobile:ot,titleLetterSpacingType:nt,prefixLetterSpacing:rt,prefixLetterSpacingTablet:st,prefixLetterSpacingMobile:ct,prefixLetterSpacingType:ut,descLetterSpacing:pt,descLetterSpacingTablet:dt,descLetterSpacingMobile:bt,descLetterSpacingType:gt}=a;return $&&$.sizes&&(cR=j($.sizes)),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Title Tag","ultimate-addons-for-gutenberg"),data:{value:o,label:"tag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"div",label:Object(r.__)("Div","ultimate-addons-for-gutenberg")}]}),"above"===te&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:i,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);cR=t}t({image:e})}else t({image:null});else t({image:null})},backgroundImage:$,onRemoveImage:()=>{t({image:""})}}),$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Image Position","ultimate-addons-for-gutenberg"),data:{value:te,label:"imgPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"above",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),"above"!==te&&$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:Ae,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}]}),$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Image Style","ultimate-addons-for-gutenberg"),data:{value:Y,label:"imgStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"normal",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"circle",label:Object(r.__)("Circle","ultimate-addons-for-gutenberg")},{value:"square",label:Object(r.__)("Square","ultimate-addons-for-gutenberg")}]}),te&&"above"!==te&&$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:K,label:"imgAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}]}),$&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:J,label:"imgSize"},setAttributes:t,options:cR}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:X,label:"imgWidth"},tablet:{value:Q,label:"imgWidthTablet"},mobile:{value:ee,label:"imgWidthMobile"}},min:0,max:500,displayUnit:!1,setAttributes:t}))),React.createElement(je,{title:Object(r.__)("Social Links","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Social Links","ultimate-addons-for-gutenberg"),checked:xe,onChange:()=>t({socialEnable:!xe})}),xe&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Open Links in New Window","ultimate-addons-for-gutenberg"),checked:Pe,onChange:()=>t({socialTarget:!Pe})}),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 1","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:pe,onChange:e=>t({twitterIcon:e})}),pe&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:ye,data:{value:ye,label:"twitterLink"},setAttributes:t,onChange:e=>t({twitterLink:e}),placeholder:Object(r.__)("Enter Item 1 URL","ultimate-addons-for-gutenberg")})),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 2","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:de,onChange:e=>t({fbIcon:e})}),de&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:fe,data:{value:fe,label:"fbLink"},setAttributes:t,onChange:e=>t({fbLink:e}),placeholder:Object(r.__)("Enter Item 2 URL","ultimate-addons-for-gutenberg")})),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 3","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:be,onChange:e=>t({linkedinIcon:e})}),be&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:he,data:{value:he,label:"linkedinLink"},setAttributes:t,onChange:e=>t({linkedinLink:e}),placeholder:Object(r.__)("Enter Item 3 URL","ultimate-addons-for-gutenberg")})),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 4","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:me,onChange:e=>t({pinIcon:e})}),me&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:ve,data:{value:ve,label:"pinLink"},setAttributes:t,onChange:e=>t({pinLink:e}),placeholder:Object(r.__)("Enter Item 4 URL","ultimate-addons-for-gutenberg")})))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:t,presets:rR,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"titleColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:W,label:"titleLoadGoogleFonts"},fontFamily:{value:u,label:"titleFontFamily"},fontWeight:{value:p,label:"titleFontWeight"},fontStyle:{value:et,label:"titleFontStyle"},transform:{value:$e,label:"titleTransform"},decoration:{value:Ye,label:"titleDecoration"},fontSizeType:{value:d,label:"titleFontSizeType"},fontSize:{value:b,label:"titleFontSize"},fontSizeMobile:{value:g,label:"titleFontSizeMobile"},fontSizeTablet:{value:m,label:"titleFontSizeTablet"},lineHeightType:{value:y,label:"titleLineHeightType"},lineHeight:{value:f,label:"titleLineHeight"},lineHeightMobile:{value:h,label:"titleLineHeightMobile"},lineHeightTablet:{value:v,label:"titleLineHeightTablet"},letterSpacing:{value:lt,label:"titleLetterSpacing"},letterSpacingTablet:{value:it,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"titleLetterSpacingMobile"},letterSpacingType:{value:nt,label:"titleLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:ae,label:"titleSpace"},tablet:{value:le,label:"titleSpaceTablet"},mobile:{value:ie,label:"titleSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),React.createElement(je,{title:Object(r.__)("Designation","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"prefixColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:q,label:"prefixLoadGoogleFonts"},fontFamily:{value:_,label:"prefixFontFamily"},fontWeight:{value:T,label:"prefixFontWeight"},fontStyle:{value:at,label:"prefixFontStyle"},transform:{value:Xe,label:"prefixTransform"},decoration:{value:Qe,label:"prefixDecoration"},fontSizeType:{value:C,label:"prefixFontSizeType"},fontSize:{value:S,label:"prefixFontSize"},fontSizeMobile:{value:k,label:"prefixFontSizeMobile"},fontSizeTablet:{value:w,label:"prefixFontSizeTablet"},lineHeightType:{value:P,label:"prefixLineHeightType"},lineHeight:{value:x,label:"prefixLineHeight"},lineHeightMobile:{value:A,label:"prefixLineHeightMobile"},lineHeightTablet:{value:G,label:"prefixLineHeightTablet"},letterSpacing:{value:rt,label:"prefixLetterSpacing"},letterSpacingTablet:{value:st,label:"prefixLetterSpacingTablet"},letterSpacingMobile:{value:ct,label:"prefixLetterSpacingMobile"},letterSpacingType:{value:ut,label:"prefixLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:se,label:"prefixSpace"},tablet:{value:ce,label:"prefixSpaceTablet"},mobile:{value:ue,label:"prefixSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:Z,label:"descLoadGoogleFonts"},fontFamily:{value:M,label:"descFontFamily"},fontWeight:{value:R,label:"descFontWeight"},fontStyle:{value:tt,label:"descFontStyle"},transform:{value:Ke,label:"descTransform"},decoration:{value:Je,label:"descDecoration"},fontSizeType:{value:B,label:"descFontSizeType"},fontSize:{value:U,label:"descFontSize"},fontSizeMobile:{value:E,label:"descFontSizeMobile"},fontSizeTablet:{value:O,label:"descFontSizeTablet"},lineHeightType:{value:L,label:"descLineHeightType"},lineHeight:{value:H,label:"descLineHeight"},lineHeightMobile:{value:F,label:"descLineHeightMobile"},lineHeightTablet:{value:z,label:"descLineHeightTablet"},letterSpacing:{value:pt,label:"descLetterSpacing"},letterSpacingTablet:{value:dt,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:bt,label:"descLetterSpacingMobile"},letterSpacingType:{value:gt,label:"descLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:oe,label:"descSpace"},tablet:{value:ne,label:"descSpaceTablet"},mobile:{value:re,label:"descSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),React.createElement(React.Fragment,null,xe&&React.createElement(je,{title:Object(r.__)("Social Icons","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:D,label:"socialFontSize"},tablet:{value:V,label:"socialFontSizeTablet"},mobile:{value:I,label:"socialFontSizeMobile"}},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],unit:{value:N,label:"socialFontSizeType"},min:0,limitMax:{px:100,em:100},displayUnit:!0,setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"socialSpace"},tablet:{value:ke,label:"socialSpaceTablet"},mobile:{value:we,label:"socialSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:_e||"",data:{value:_e,label:"socialColor"},setAttributes:t}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Te||"",data:{value:Te,label:"socialHoverColor"},setAttributes:t}),disableBottomSeparator:!0}))),$&&React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,sR({},e,{label:Object(r.__)("Image Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Re,label:"imageTopMargin"},valueRight:{value:Me,label:"imageRightMargin"},valueBottom:{value:Be,label:"imageBottomMargin"},valueLeft:{value:Ge,label:"imageLeftMargin"},valueTopTablet:{value:Ue,label:"imageMarginTopTablet"},valueRightTablet:{value:Oe,label:"imageMarginRightTablet"},valueBottomTablet:{value:He,label:"imageMarginBottomTablet"},valueLeftTablet:{value:Fe,label:"imageMarginLeftTablet"},valueTopMobile:{value:ze,label:"imageMarginTopMobile"},valueRightMobile:{value:De,label:"imageMarginRightMobile"},valueBottomMobile:{value:Ne,label:"imageMarginBottomMobile"},valueLeftMobile:{value:Ie,label:"imageMarginLeftMobile"},unit:{value:Ve,label:"imageMarginUnit"},mUnit:{value:qe,label:"mobileImageMarginUnit"},tUnit:{value:We,label:"tabletImageMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ze,label:"spacingLink"}})))),React.createElement(il,sR({},rl,{parentProps:e})))))}),dR=a(143),bR=0,gR={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},mR={};mR.locals=dR.a.locals||{},mR.use=function(){return bR++||(uR=we()(dR.a,gR)),mR},mR.unuse=function(){bR>0&&!--bR&&(uR(),uR=null)};var yR=mR,fR=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(yR.use(),()=>{yR.unuse()}),[]);const{className:t,setAttributes:a,attributes:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n,deviceType:s}=e,{align:c,tag:u,title:p,prefix:d,description_text:b,image:g,imgStyle:m,imgSize:y,imgPosition:f,twitterIcon:h,fbIcon:v,linkedinIcon:_,pinIcon:T,twitterLink:C,fbLink:S,linkedinLink:k,pinLink:w,socialTarget:P,socialEnable:x,stack:A,imgWidth:G,block_id:M}=l,R=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{tagName:u,value:p,className:"uagb-team__title",onChange:e=>a({title:e}),multiline:!1,placeholder:Object(r.__)("Write a Title","ultimate-addons-for-gutenberg"),onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}),React.createElement(ge.RichText,{tagName:"div",value:d,className:"uagb-team__prefix",onChange:e=>a({prefix:e}),onMerge:i,placeholder:Object(r.__)("Write a Designation","ultimate-addons-for-gutenberg"),onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])})),U=(e,t,l)=>{const i=l?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:i,title:"",rel:"noopener noreferrer"},Ce(e,a)))},E=React.createElement("ul",{className:"uagb-team__social-list"},""!==h&&U(h,C,P),""!==v&&U(v,S,P),""!==_&&U(_,k,P),""!==T&&U(T,w,P)),O=React.createElement(ge.RichText,{tagName:"p",value:b,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-team__desc",onChange:e=>a({description_text:e}),onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])});let L="",H="";g&&(L=g.sizes,H=g.sizes&&L[y]?L[y].url:g.url);let F="";return""!==H&&(F=React.createElement("img",{className:"uagb-team__image-crop-"+m,src:H,alt:g.alt?g.alt:"",height:G,width:G,loading:"lazy"})),React.createElement("div",{className:Be()(t,"uagb-team__image-position-"+f,"uagb-team__align-"+c,"uagb-team__stack-"+A,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+M)},"left"===f&&F,React.createElement("div",{className:"uagb-team__content"},"above"===f&&F,R,O,x&&E),"right"===f&&F)}),hR=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:n,name:r,deviceType:s}=e;Object(B.useEffect)(()=>{he(e)},[l,i,o,s]),Object(B.useEffect)(()=>{ys()},[s]);const c=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,tag:r,align:s,titleColor:c,prefixColor:u,descColor:p,titleFontFamily:d,titleFontWeight:b,titleFontSizeType:g,titleFontSize:m,titleFontSizeMobile:y,titleFontSizeTablet:f,titleLineHeightType:h,titleLineHeight:v,titleLineHeightTablet:_,titleLineHeightMobile:T,prefixFontFamily:C,prefixFontWeight:S,prefixFontSizeType:k,prefixFontSize:w,prefixFontSizeMobile:P,prefixFontSizeTablet:x,prefixLineHeightType:A,prefixLineHeight:G,prefixLineHeightTablet:M,prefixLineHeightMobile:R,descFontFamily:B,descFontWeight:U,descFontSizeType:E,descFontSize:O,descFontSizeMobile:L,descFontSizeTablet:H,descLineHeightType:F,descLineHeight:j,descLineHeightTablet:z,descLineHeightMobile:D,socialFontSize:N,socialFontSizeType:I,socialFontSizeMobile:V,socialFontSizeTablet:W,socialSpaceTablet:q,socialSpaceMobile:Z,imgAlign:$,imgWidth:Y,imgWidthTablet:K,imgWidthMobile:J,imgPosition:X,titleSpace:Q,titleSpaceTablet:ee,titleSpaceMobile:te,descSpace:le,descSpaceTablet:ie,descSpaceMobile:oe,prefixSpace:ne,prefixSpaceTablet:re,prefixSpaceMobile:se,socialColor:ce,socialHoverColor:ue,socialSpace:pe,imageLeftMargin:de,imageRightMargin:be,imageTopMargin:ge,imageBottomMargin:me,imageMarginTopTablet:ye,imageMarginRightTablet:fe,imageMarginBottomTablet:he,imageMarginLeftTablet:ve,imageMarginTopMobile:_e,imageMarginRightMobile:Te,imageMarginBottomMobile:Ce,imageMarginLeftMobile:Se,imageMarginUnit:ke,tabletImageMarginUnit:we,mobileImageMarginUnit:Pe,titleTransform:xe,titleDecoration:Ae,descTransform:Ge,descDecoration:Me,prefixTransform:Re,prefixDecoration:Be,titleFontStyle:Ue,descFontStyle:Ee,prefixFontStyle:Oe,titleLetterSpacing:Le,titleLetterSpacingTablet:He,titleLetterSpacingMobile:Fe,titleLetterSpacingType:je,prefixLetterSpacing:ze,prefixLetterSpacingTablet:De,prefixLetterSpacingMobile:Ne,prefixLetterSpacingType:Ie,descLetterSpacing:Ve,descLetterSpacingTablet:We,descLetterSpacingMobile:qe,descLetterSpacingType:Ze}=e,$e=us(Y,"imgWidth",i),Ye=us(Q,"titleSpace",i),Ke=us(ne,"prefixSpace",i),Je=us(le,"descSpace",i),Xe=us(N,"socialFontSize",i),Qe=us(pe,"socialSpace",i),et=isNaN(q)?Qe:q,tt=isNaN(Z)?et:Z;let at={},lt={};const it={" p.uagb-team__desc.block-editor-rich-text__editable":{"font-size":Vr(O,E),"line-height":Vr(j,F),"font-family":B,"font-style":Ee,"text-decoration":Me,"text-transform":Ge,"font-weight":U,color:p,"margin-bottom":Vr(Je,"px"),"margin-top":Vr(Ke,"px"),"letter-spacing":Vr(Ve,Ze)}," .rich-text.block-editor-rich-text__editable.uagb-team__prefix":{"font-family":C,"font-style":Oe,"text-decoration":Be,"text-transform":Re,"font-weight":S,"font-size":Vr(w,k),"line-height":Vr(G,A),color:u,"letter-spacing":Vr(ze,Ie)}," .uagb-team__social-icon a":{color:ce,"font-size":Vr(Xe,I),width:Vr(Xe,I),height:Vr(Xe,I),"line-height":Vr(Xe,I)}," .uagb-team__social-icon svg":{fill:ce,width:Vr(Xe,I),height:Vr(Xe,I)}," .uagb-team__social-icon:hover a":{color:ue}," .uagb-team__social-icon:hover svg":{fill:ue},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":Vr(Qe,"px"),"margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":Vr(Qe,"px"),"margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":Vr(Qe/2,"px"),"margin-left":Vr(Qe/2,"px")},".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon":{"margin-right":Vr(Qe,"px"),"margin-left":"0"},".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon":{"margin-left":Vr(Qe,"px"),"margin-right":"0"}," .uagb-team__image-wrap":{"margin-top":Vr(ge,ke),"margin-bottom":Vr(me,ke),"margin-left":Vr(de,ke),"margin-right":Vr(be,ke),width:Vr($e,"px")}," img":{"margin-top":Vr(ge,ke),"margin-bottom":Vr(me,ke),"margin-left":Vr(de,ke),"margin-right":Vr(be,ke),width:Vr($e,"px"),height:Vr($e,"px")}};"above"===X&&("center"===s?(it[" img"]["margin-left"]="auto",it[" img"]["margin-right"]="auto",it[" .uagb-team__social-list"]={"justify-content":"center"}):"left"===s?(it[" img"]["margin-right"]="auto",it[" .uagb-team__social-list"]={"justify-content":"flex-start"}):"right"===s&&(it[" .uagb-team__social-list"]={"justify-content":"flex-end"},it[" img"]["margin-left"]="auto")),"above"!==X&&("middle"===$?(it[" img"]["align-self"]="center",it[" .uagb-team__content"]={"align-self":"center"}):it[" img"]["align-self"]="flex-start"),it[" "+r+".rich-text.block-editor-rich-text__editable.uagb-team__title"]={"font-family":d,"font-style":Ue,"text-decoration":Ae,"text-transform":xe,"font-weight":b,"font-size":Vr(m,g),"line-height":Vr(v,h),color:c,"margin-bottom":Vr(Ye,"px"),"letter-spacing":Vr(Le,je)},lt={" img":{width:Vr(J,"px"),height:Vr(J,"px")}," p.uagb-team__desc.block-editor-rich-text__editable":{"font-size":Vr(L,E),"margin-top":Vr(se,"px"),"margin-bottom":Vr(oe,"px"),"letter-spacing":Vr(qe,Ze),"line-height":Vr(D,F)}," .rich-text.block-editor-rich-text__editable.uagb-team__prefix":{"font-size":Vr(P,k),"letter-spacing":Vr(Ne,Ie),"line-height":Vr(R,A)}," .uagb-team__social-icon a":{"font-size":Vr(V,I),width:Vr(V,I),height:Vr(V,I),"line-height":Vr(V,I)}," .uagb-team__social-icon svg":{width:Vr(V,I),height:Vr(V,I)}," .uagb-team__image-wrap":{"margin-top":Vr(_e,Pe),"margin-bottom":Vr(Ce,Pe),"margin-left":Vr(Se,Pe),"margin-right":Vr(Te,Pe)},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":Vr(Z,"px"),"margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":Vr(Z,"px"),"margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":Vr(tt/2,"px"),"margin-left":Vr(tt/2,"px")}},lt[" "+r+".rich-text.block-editor-rich-text__editable.uagb-team__title"]={"margin-bottom":Vr(te,"px"),"letter-spacing":Vr(Fe,je),"line-height":Vr(T,h)},at={" img":{width:Vr(K,"px"),height:Vr(K,"px")}," p.uagb-team__desc.block-editor-rich-text__editable":{"font-size":Vr(H,E),"margin-top":Vr(re,"px"),"margin-bottom":Vr(ie,"px"),"letter-spacing":Vr(We,Ze),"line-height":Vr(z,F)}," .rich-text.block-editor-rich-text__editable.uagb-team__prefix":{"font-size":Vr(x,k),"letter-spacing":Vr(De,Ie),"line-height":Vr(M,A)}," .uagb-team__social-icon a":{"font-size":Vr(W,I),width:Vr(W,I),height:Vr(W,I),"line-height":Vr(W,I)}," .uagb-team__social-icon svg":{width:Vr(W,I),height:Vr(W,I)}," .uagb-team__image-wrap":{"margin-top":Vr(ye,we),"margin-bottom":Vr(he,we),"margin-left":Vr(ve,we),"margin-right":Vr(fe,we)},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":Vr(q,"px"),"margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":Vr(q,"px"),"margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":Vr(et/2,"px"),"margin-left":Vr(et/2,"px")}},at[" "+r+".rich-text.block-editor-rich-text__editable.uagb-team__title"]={"margin-bottom":Vr(ee,"px"),"letter-spacing":Vr(He,je),"line-height":Vr(_,h)},lt[" "+r+".uagb-team__title"]={"font-size":Vr(y,g)},at[" "+r+".uagb-team__title"]={"font-size":Vr(f,g)};let ot="";const nt=`#block-${t} .uagb-block-${n}`;return ot=ae(it,nt),"tablet"!==o&&"mobile"!==o||(ot+=ae(at,""+nt,!0,"tablet"),"mobile"===o&&(ot+=ae(lt,""+nt,!0,"mobile"))),ot}(a,n,r,s),[a,s]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),React.createElement(iR,{attributes:a}),t&&React.createElement(pR,e),React.createElement(fR,e))});function vR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:l,title:"",rel:"noopener noreferrer"},Ce(e)))}const _R={block_id:{type:"string"},classMigrate:{type:"boolean",default:!1},align:{type:"string",default:"center"},tag:{type:"string",default:"h3"},title:{selector:"h1,h2,h3,h4,h5,h6",default:"John Doe"},prefix:{selector:"div.uagb-team__prefix",default:"Designation"},description_text:{selector:"p",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."},titleColor:{type:"string"},prefixColor:{type:"string",default:"#888888"},descColor:{type:"string"},socialColor:{type:"string",default:"#333"},socialHoverColor:{type:"string"},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"},prefixFontFamily:{type:"string",default:"Default"},prefixFontWeight:{type:"string"},prefixFontSubset:{type:"string"},prefixFontSizeType:{type:"string",default:"px"},prefixLineHeightType:{type:"string",default:"em"},prefixFontSize:{type:"number",default:15},prefixFontSizeTablet:{type:"number"},prefixFontSizeMobile:{type:"number"},prefixLineHeight:{type:"number"},prefixLineHeightTablet:{type:"number"},prefixLineHeightMobile:{type:"number"},descFontFamily:{type:"string",default:"Default"},descFontWeight:{type:"string"},descFontSubset:{type:"string"},descFontSizeType:{type:"string",default:"px"},descLineHeightType:{type:"string",default:"em"},descFontSize:{type:"number"},descFontSizeTablet:{type:"number"},descFontSizeMobile:{type:"number"},descLineHeight:{type:"number"},descLineHeightTablet:{type:"number"},descLineHeightMobile:{type:"number"},socialFontSize:{type:"number",default:20},socialFontSizeType:{type:"string",default:"px"},socialFontSizeMobile:{type:"number"},socialFontSizeTablet:{type:"number"},image:{type:"object"},imgStyle:{type:"string",default:"normal"},imgPosition:{type:"string",default:"above"},imgAlign:{type:"string",default:"top"},imgSize:{type:"string",default:"thumbnail"},imgWidth:{type:"number",default:120},titleSpace:{type:"number"},prefixSpace:{type:"number"},descSpace:{type:"number",default:10},imgLeftMargin:{type:"number",default:20},imgRightMargin:{type:"number",default:20},imgTopMargin:{type:"number",default:15},imgBottomMargin:{type:"number",default:15},socialEnable:{type:"boolean",default:!0},socialSpace:{type:"number",default:20},socialTarget:{type:"boolean",default:!1},twitterIcon:{type:"string",default:"fab fa-twitter"},fbIcon:{type:"string",default:"fab fa-facebook"},linkedinIcon:{type:"string",default:"fab fa-linkedin"},pinIcon:{type:"string",default:"fab fa-pinterest"},twitterLink:{type:"string",default:"#"},fbLink:{type:"string",default:"#"},linkedinLink:{type:"string",default:"#"},pinLink:{type:"string",default:"#"},stack:{type:"string",default:"tablet"},titleLoadGoogleFonts:{type:"boolean",default:!1},prefixLoadGoogleFonts:{type:"boolean",default:!1},descLoadGoogleFonts:{type:"boolean",default:!1},imageMarginUnit:{type:"string",default:"px"}};function TR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,target:l,title:"",rel:"noopener noreferrer"},kb(e)))}function CR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:l,title:"",rel:"noopener noreferrer"},Ce(e)))}function SR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,target:l,title:"",rel:"noopener noreferrer"},React.createElement("span",{className:e})))}function kR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:l,title:"",rel:"noopener noreferrer"},kb(e)))}var wR=[{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T),id:"uagb-team-"+t},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&SR(p,m,v),""!=d&&SR(d,y,v),""!=b&&SR(b,f,v),""!=g&&SR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T),id:"uagb-team-"+t},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&TR(p,m,v),""!=d&&TR(d,y,v),""!=b&&TR(b,f,v),""!=g&&TR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&TR(p,m,v),""!=d&&TR(d,y,v),""!=b&&TR(b,f,v),""!=g&&TR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&kR(p,m,v),""!=d&&kR(d,y,v),""!=b&&kR(b,f,v),""!=g&&kR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!==S&&(k=React.createElement("img",{className:"uagb-team__image-crop-"+c,src:S,alt:r.alt?r.alt:""})),React.createElement("div",{className:Be()(e.className,"uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},"left"===u&&k,React.createElement("div",{className:"uagb-team__content"},"above"===u&&k,React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"}),React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"}),_&&React.createElement("ul",{className:"uagb-team__social-list"},""!==p&&TR(p,m,v),""!==d&&TR(d,y,v),""!==b&&TR(b,f,v),""!==g&&TR(g,h,v))),"right"===u&&k)}},{attributes:yt,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!==S&&(k=React.createElement("img",{className:"uagb-team__image-crop-"+c,src:S,alt:r.alt?r.alt:""})),React.createElement("div",{className:Be()(e.className,"uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},"left"===u&&k,React.createElement("div",{className:"uagb-team__content"},"above"===u&&k,React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"}),React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"}),_&&React.createElement("ul",{className:"uagb-team__social-list"},""!==p&&CR(p,m,v),""!==d&&CR(d,y,v),""!==b&&CR(b,f,v),""!==g&&CR(g,h,v))),"right"===u&&k)}}];a(377);let PR={};PR=Object(F.applyFilters)("uagb/team",ss(PR)),Object(de.registerBlockType)("uagb/team",{...PR,title:Object(r.__)("Team","ultimate-addons-for-gutenberg"),description:Object(r.__)("Showcase your team by displaying info and social media profiles.","ultimate-addons-for-gutenberg"),icon:se.team,keywords:[Object(r.__)("team","ultimate-addons-for-gutenberg"),Object(r.__)("members","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:yt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"team"}):React.createElement(hR,e),save:function(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T,imgWidth:C}=e.attributes;let S="",k="";r&&(S=r.sizes,k=r.sizes&&S[s]?S[s].url:r.url);let w="";return""!==k&&(w=React.createElement("img",{className:"uagb-team__image-crop-"+c,src:k,alt:r.alt?r.alt:"",height:C,width:C,loading:"lazy"})),React.createElement("div",{className:Be()(e.className,"uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},"left"===u&&w,React.createElement("div",{className:"uagb-team__content"},"above"===u&&w,React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"}),React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"}),_&&React.createElement("ul",{className:"uagb-team__social-list"},""!==p&&vR(p,m,v),""!==d&&vR(d,y,v),""!==b&&vR(b,f,v),""!==g&&vR(g,h,v))),"right"===u&&w)},deprecated:wR});function xR(){return(xR=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l,name:i}=e,o=i.replace("uagb/",""),{test_item_count:n,headingAlign:s,headingAlignTablet:c,headingAlignMobile:u,companyColor:p,descColor:d,authorColor:b,nameFontSizeType:g,nameFontSize:m,nameFontSizeTablet:y,nameFontSizeMobile:f,nameFontFamily:h,nameFontWeight:v,nameFontStyle:_,nameLineHeightType:T,nameLineHeight:C,nameLineHeightTablet:S,nameLineHeightMobile:k,nameLoadGoogleFonts:w,companyFontSizeType:P,companyFontSize:x,companyFontSizeTablet:A,companyFontSizeMobile:G,companyFontFamily:M,companyFontWeight:R,companyFontStyle:B,companyLineHeightType:U,companyLineHeight:E,companyLineHeightTablet:O,companyLineHeightMobile:L,companyLoadGoogleFonts:H,descFontSizeType:F,descFontSize:j,descFontSizeTablet:z,descFontSizeMobile:D,descFontFamily:N,descFontWeight:I,descFontStyle:V,descLineHeightType:W,descLineHeight:q,descLineHeightTablet:Z,descLineHeightMobile:$,descLoadGoogleFonts:Y,descSpace:K,descSpaceTablet:J,descSpaceMobile:X,iconimgStyle:Q,imagePosition:ee,imageAlignment:te,nameSpace:ae,nameSpaceTablet:le,nameSpaceMobile:ie,imageSize:oe,imageWidth:ne,imageWidthTablet:re,imageWidthMobile:se,columns:ce,tcolumns:ue,mcolumns:pe,pauseOnHover:de,infiniteLoop:be,transitionSpeed:me,arrowDots:ye,arrowSize:fe,arrowBorderSize:he,arrowBorderSizeUnit:ve,arrowBorderRadius:_e,arrowBorderRadiusUnit:Te,autoplay:Se,autoplaySpeed:ke,arrowColor:we,rowGap:Pe,rowGapTablet:xe,rowGapMobile:Ae,columnGap:Ge,columnGapTablet:Me,columnGapMobile:Re,backgroundType:Be,backgroundColor:Ue,backgroundImage:Oe,backgroundPosition:He,backgroundSize:Fe,backgroundRepeat:ze,backgroundImageColor:De,stack:Ne,imageWidthType:Ie,arrowSizeType:Ve,rowGapType:We,columnGapType:qe,descSpaceType:Ze,nameSpaceType:$e,overlayType:Ye,backgroundAttachment:Ke,gradientValue:Je,gradientColor1:Xe,gradientColor2:Qe,gradientLocation1:et,gradientLocation2:tt,gradientType:at,gradientAngle:lt,selectGradient:it,descTransform:ot,descDecoration:nt,nameTransform:rt,nameDecoration:st,companyTransform:ct,companyDecoration:ut,paddingUnit:pt,mobilePaddingUnit:dt,tabletPaddingUnit:bt,paddingTop:gt,paddingBottom:mt,paddingLeft:yt,paddingRight:ft,paddingTopTablet:ht,paddingRightTablet:vt,paddingBottomTablet:_t,paddingLeftTablet:Tt,paddingTopMobile:Ct,paddingRightMobile:St,paddingBottomMobile:kt,paddingLeftMobile:wt,imgspacingLink:Pt,spacingLink:xt,imgpaddingTop:At,imgpaddingRight:Gt,imgpaddingBottom:Mt,imgpaddingLeft:Rt,imgpaddingTopTablet:Bt,imgpaddingRightTablet:Ut,imgpaddingBottomTablet:Et,imgpaddingLeftTablet:Ot,imgpaddingTopMobile:Lt,imgpaddingRightMobile:Ht,imgpaddingBottomMobile:Ft,imgpaddingLeftMobile:jt,imgpaddingUnit:zt,imgmobilePaddingUnit:Dt,imgtabletPaddingUnit:Nt,equalHeight:It,vAlignContent:Vt,nameLetterSpacing:Wt,nameLetterSpacingTablet:qt,nameLetterSpacingMobile:Zt,nameLetterSpacingType:$t,descLetterSpacing:Yt,descLetterSpacingTablet:Kt,descLetterSpacingMobile:Jt,descLetterSpacingType:Xt,companyLetterSpacing:Qt,companyLetterSpacingTablet:ea,companyLetterSpacingMobile:ta,companyLetterSpacingType:aa}=a,la=us(n,"test_item_count",o),ia=(oa=a.test_block,JSON.parse(JSON.stringify(oa)));var oa;const na=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}],ra=e=>{let a=null;ia[e]&&void 0!==ia[e]&&(a=ia[e].image);const l=e+1,i=Object(r.__)("Image","ultimate-addons-for-gutenberg");return React.createElement(Yl,{onSelectImage:a=>((e,a)=>{let l=null;l=e&&e.url?e:null,e.type&&"image"===e.type||(l=null);const i=ia.map((e,t)=>(a===t&&(e.image=l),e));t({test_block:i})})(a,e),backgroundImage:a,onRemoveImage:()=>(e=>{const a=ia.map((t,a)=>(e===a&&(t.image=null),t));t({test_block:a})})(e),slug:"image-"+l,label:`${i} ${l}`})};let sa=0;return ia.map((e,t)=>{const a=ia[t];if(a&&void 0!==a){const e=a.image;null!=e&&""!==e&&sa++}}),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Qa,{label:Object(r.__)("Number of Testimonials","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"test_item_count"},onChange:e=>{const a=[...ia],l=us(e,"test_item_count","testimonial");if(a.length1&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:It,onChange:()=>t({equalHeight:!It}),help:Object(r.__)("Note: Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),ce>1&&It&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:Vt,label:"vAlignContent"},className:"uagb-multi-button-alignment-control",options:[{value:"flex-start",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")},{value:"end",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}],showIcons:!1})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},(()=>{const e=[];for(let t=0;t0&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:ee,label:"imagePosition"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")},{value:"left",label:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(r.__)("Right","ultimate-addons-for-gutenberg")}]}),("left"===ee||"right"===ee)&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:te,label:"imageAlignment"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:Ne,label:"stack"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}]})),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:Q,label:"iconimgStyle"},options:[{value:"normal",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"circle",label:Object(r.__)("Circle","ultimate-addons-for-gutenberg")},{value:"square",label:Object(r.__)("Square","ultimate-addons-for-gutenberg")}]}),React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:oe,label:"imageSize"},setAttributes:t,options:na}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:ne,label:"imageWidth"},tablet:{value:re,label:"imageWidthTablet"},mobile:{value:se,label:"imageWidthMobile"}},min:1,max:500,unit:{value:Ie,label:"imageWidthType"},setAttributes:t}))),React.createElement(je,{title:Object(r.__)("Carousel","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Pause On Hover","ultimate-addons-for-gutenberg"),checked:de,onChange:()=>{t({pauseOnHover:!de})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:Se,onChange:()=>{t({autoplay:!Se})}}),!0===Se&&React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:t,value:ke,data:{value:ke,label:"autoplaySpeed"},min:100,max:15e3,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Loop","ultimate-addons-for-gutenberg"),checked:be,onChange:()=>{t({infiniteLoop:!be})}}),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:t,value:me,data:{value:me,label:"transitionSpeed"},min:100,max:5e3,displayUnit:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Show Arrows & Dots","ultimate-addons-for-gutenberg"),data:{value:ye,label:"arrowDots"},options:[{value:"arrows",label:Object(r.__)("Arrows","ultimate-addons-for-gutenberg")},{value:"dots",label:Object(r.__)("Dots","ultimate-addons-for-gutenberg")},{value:"arrows_dots",label:Object(r.__)("Both","ultimate-addons-for-gutenberg")}]}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Name","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"authorColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:w,label:"nameLoadGoogleFonts"},fontFamily:{value:h,label:"nameFontFamily"},fontWeight:{value:v,label:"nameFontWeight"},fontStyle:{value:_,label:"nameFontStyle"},fontSizeType:{value:g,label:"nameFontSizeType"},fontSize:{value:m,label:"nameFontSize"},fontSizeMobile:{value:f,label:"nameFontSizeMobile"},fontSizeTablet:{value:y,label:"nameFontSizeTablet"},lineHeightType:{value:T,label:"nameLineHeightType"},lineHeight:{value:C,label:"nameLineHeight"},lineHeightMobile:{value:k,label:"nameLineHeightMobile"},lineHeightTablet:{value:S,label:"nameLineHeightTablet"},transform:{value:rt,label:"nameTransform"},decoration:{value:st,label:"nameDecoration"},letterSpacing:{value:Wt,label:"nameLetterSpacing"},letterSpacingTablet:{value:qt,label:"nameLetterSpacingTablet"},letterSpacingMobile:{value:Zt,label:"nameLetterSpacingMobile"},letterSpacingType:{value:$t,label:"nameLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:ae,label:"nameSpace"},tablet:{value:le,label:"nameSpaceTablet"},mobile:{value:ie,label:"nameSpaceMobile"}},min:1,max:50,unit:{value:$e,label:"nameSpaceType"},setAttributes:t})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:Y,label:"descLoadGoogleFonts"},fontFamily:{value:N,label:"descFontFamily"},fontWeight:{value:I,label:"descFontWeight"},fontStyle:{value:V,label:"descFontStyle"},fontSizeType:{value:F,label:"descFontSizeType"},fontSize:{value:j,label:"descFontSize"},fontSizeMobile:{value:D,label:"descFontSizeMobile"},fontSizeTablet:{value:z,label:"descFontSizeTablet"},lineHeightType:{value:W,label:"descLineHeightType"},lineHeight:{value:q,label:"descLineHeight"},lineHeightMobile:{value:$,label:"descLineHeightMobile"},lineHeightTablet:{value:Z,label:"descLineHeightTablet"},transform:{value:ot,label:"descTransform"},decoration:{value:nt,label:"descDecoration"},letterSpacing:{value:Yt,label:"descLetterSpacing"},letterSpacingTablet:{value:Kt,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:Jt,label:"descLetterSpacingMobile"},letterSpacingType:{value:Xt,label:"descLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"descSpace"},tablet:{value:J,label:"descSpaceTablet"},mobile:{value:X,label:"descSpaceMobile"}},min:1,max:50,unit:{value:Ze,label:"descSpaceType"},setAttributes:t})),React.createElement(je,{title:Object(r.__)("Company","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"companyColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:H,label:"companyLoadGoogleFonts"},fontFamily:{value:M,label:"companyFontFamily"},fontWeight:{value:R,label:"companyFontWeight"},fontStyle:{value:B,label:"companyFontStyle"},fontSizeType:{value:P,label:"companyFontSizeType"},fontSize:{value:x,label:"companyFontSize"},fontSizeMobile:{value:G,label:"companyFontSizeMobile"},fontSizeTablet:{value:A,label:"companyFontSizeTablet"},lineHeightType:{value:U,label:"companyLineHeightType"},lineHeight:{value:E,label:"companyLineHeight"},lineHeightMobile:{value:L,label:"companyLineHeightMobile"},lineHeightTablet:{value:O,label:"companyLineHeightTablet"},transform:{value:ct,label:"companyTransform"},decoration:{value:ut,label:"companyDecoration"},letterSpacing:{value:Qt,label:"companyLetterSpacing"},letterSpacingTablet:{value:ea,label:"companyLetterSpacingTablet"},letterSpacingMobile:{value:ta,label:"companyLetterSpacingMobile"},letterSpacingType:{value:aa,label:"companyLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,xR({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:At,label:"imgpaddingTop"},valueRight:{value:Gt,label:"imgpaddingRight"},valueBottom:{value:Mt,label:"imgpaddingBottom"},valueLeft:{value:Rt,label:"imgpaddingLeft"},valueTopTablet:{value:Bt,label:"imgpaddingTopTablet"},valueRightTablet:{value:Ut,label:"imgpaddingRightTablet"},valueBottomTablet:{value:Et,label:"imgpaddingBottomTablet"},valueLeftTablet:{value:Ot,label:"imgpaddingLeftTablet"},valueTopMobile:{value:Lt,label:"imgpaddingTopMobile"},valueRightMobile:{value:Ht,label:"imgpaddingRightMobile"},valueBottomMobile:{value:Ft,label:"imgpaddingBottomMobile"},valueLeftMobile:{value:jt,label:"imgpaddingLeftMobile"},unit:{value:zt,label:"imgpaddingUnit"},mUnit:{value:Dt,label:"imgmobilePaddingUnit"},tUnit:{value:Nt,label:"imgtabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Pt,label:"imgspacingLink"}}))),React.createElement(je,{title:Object(r.__)("Arrow & Dots","ultimate-addons-for-gutenberg"),initialOpen:!1},"dots"!==ye&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Arrow Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:fe,data:{value:fe,label:"arrowSize"},min:0,max:50,unit:{value:Ve,label:"arrowSizeType"}}),React.createElement(Qa,{label:Object(r.__)("Arrow Border Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:he,data:{value:he,label:"arrowBorderSize"},min:0,max:50,unit:{value:ve,label:"arrowBorderSizeUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]}),React.createElement(Qa,{label:Object(r.__)("Arrow Border Radius","ultimate-addons-for-gutenberg"),setAttributes:t,value:_e,data:{value:_e,label:"arrowBorderRadius"},min:0,max:50,unit:{value:Te,label:"arrowBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]})),React.createElement(tl,{label:Object(r.__)("Top Margin for Dots","ultimate-addons-for-gutenberg"),data:{desktop:{value:Pe,label:"rowGap"},tablet:{value:xe,label:"rowGapTablet"},mobile:{value:Ae,label:"rowGapMobile"}},min:1,max:50,unit:{value:We,label:"rowGapType"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:we||"",data:{value:we,label:"arrowColor"},setAttributes:t})),React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(vi,xR({setAttributes:t,backgroundGradient:{value:Je,label:"gradientValue"},backgroundGradientColor1:{value:Xe,label:"gradientColor1"},gradientType:{value:it,label:"selectGradient"},backgroundGradientColor2:{value:Qe,label:"gradientColor2"},backgroundGradientLocation1:{value:et,label:"gradientLocation1"},backgroundGradientLocation2:{value:tt,label:"gradientLocation2"},backgroundGradientType:{value:at,label:"gradientType"},backgroundGradientAngle:{value:lt,label:"gradientAngle"},backgroundImageColor:{value:De,label:"backgroundImageColor"},overlayType:{value:Ye,label:"overlayType"},gradientOverlay:{value:!0},backgroundSize:{value:Fe,label:"backgroundSize"},backgroundRepeat:{value:ze,label:"backgroundRepeat"},backgroundAttachment:{value:Ke,label:"backgroundAttachment"},backgroundPosition:{value:He,label:"backgroundPosition"},backgroundImage:{value:Oe,label:"backgroundImage"},backgroundColor:{value:Ue,label:"backgroundColor"},backgroundType:{value:Be,label:"backgroundType"},backgroundVideoType:{value:!1}},e))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:t,borderStyleLabel:Object(r.__)("Style","ultimate-addons-for-gutenberg"),borderWidthLabel:Object(r.__)("Width","ultimate-addons-for-gutenberg"),borderRadiusLabel:Object(r.__)("Radius","ultimate-addons-for-gutenberg"),prefix:"overall",attributes:a,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ge,label:"columnGap"},tablet:{value:Me,label:"columnGapTablet"},mobile:{value:Re,label:"columnGapMobile"}},min:1,max:50,unit:{value:qe,label:"columnGapType"},setAttributes:t}),React.createElement(Pl,xR({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:gt,label:"paddingTop"},valueRight:{value:ft,label:"paddingRight"},valueBottom:{value:mt,label:"paddingBottom"},valueLeft:{value:yt,label:"paddingLeft"},valueTopTablet:{value:ht,label:"paddingTopTablet"},valueRightTablet:{value:vt,label:"paddingRightTablet"},valueBottomTablet:{value:_t,label:"paddingBottomTablet"},valueLeftTablet:{value:Tt,label:"paddingLeftTablet"},valueTopMobile:{value:Ct,label:"paddingTopMobile"},valueRightMobile:{value:St,label:"paddingRightMobile"},valueBottomMobile:{value:kt,label:"paddingBottomMobile"},valueLeftMobile:{value:wt,label:"paddingLeftMobile"},unit:{value:pt,label:"paddingUnit"},mUnit:{value:dt,label:"mobilePaddingUnit"},tUnit:{value:bt,label:"tabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:xt,label:"spacingLink"}})))),React.createElement(il,xR({},rl,{parentProps:e})))))}),MR=function(e){let t="";return t+=" uagb-tm__imgicon-style-"+e.iconimgStyle+" ",t+="uagb-tm__image-position-"+e.imagePosition+" ","left"!==e.imagePosition&&"right"!==e.imagePosition||(t+="uagb-tm__image-aligned-"+e.imageAlignment+" ","none"!==e.stack&&(t+="uagb-tm-stacked-"+e.stack+" ","right"===e.imagePosition&&(t+="uagb-tm-reverse-order-"+e.stack+" "))),t+="uagb-tm__bg-type-"+e.backgroundType+" ",[t]},RR=e=>{const{attributes:t,index_value:a}=e;let l="";const i=t.test_block[a];if(i&&void 0!==i){const e=i.image,{imageWidth:o,imgTagHeight:n}=t;let r="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,s=t.imageSize;return r=void 0!==i&&void 0!==i[s]?i[s].url:l,React.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+a},React.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+a},React.createElement("img",{className:"uagb-tm-img-src",src:r,alt:e.alt,width:o,height:n,loading:"lazy"})))}return null}return null},BR=e=>{const{attributes:t,setAttributes:a,index_value:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n}=e,s=t.test_block[l];let c="";s&&void 0!==s&&(c=s.name);const u=[...t.test_block];return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:c,placeholder:Object(r.__)("Author Name","ultimate-addons-for-gutenberg"),className:"uagb-tm__author-name",onChange:e=>{const t={description:u[l].description,name:e,company:u[l].company,image:u[l].image};u[l]=t,a({test_block:u})},onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}):React.createElement(ge.RichText.Content,{tagName:"span",value:c,className:"uagb-tm__author-name"})},UR=e=>{const{attributes:t,setAttributes:a,index_value:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n}=e,s=t.test_block[l];let c="";s&&void 0!==s&&(c=s.company);const u=[...t.test_block];return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:c,className:"uagb-tm__company",onChange:e=>{const t={description:u[l].description,name:u[l].name,company:e,image:u[l].image};u[l]=t,a({test_block:u})},multiline:!1,placeholder:Object(r.__)("Company Name","ultimate-addons-for-gutenberg"),onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}):React.createElement(ge.RichText.Content,{tagName:"span",value:c,className:"uagb-tm__company"})},ER=e=>{const{attributes:t,setAttributes:a,index_value:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n}=e,s=t.test_block[l];let c="";s&&void 0!==s&&(c=s.description);const u=[...t.test_block];return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:c,placeholder:Object(r.__)("Write Description","ultimate-addons-for-gutenberg"),className:"uagb-tm__desc",onChange:e=>{const t={description:e,name:u[l].name,company:u[l].company,image:u[l].image};u[l]=t,a({test_block:u})},onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}):React.createElement(ge.RichText.Content,{tagName:"div",value:c,className:"uagb-tm__desc"})},OR=a(144),LR=0,HR={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},FR={};FR.locals=OR.a.locals||{},FR.use=function(){return LR++||(AR=we()(OR.a,HR)),FR},FR.unuse=function(){LR>0&&!--LR&&(AR(),AR=null)};var jR=FR;function zR(){return(zR=Object.assign||function(e){for(var t=1;t{var t,a,l;Object(B.useLayoutEffect)(()=>(jR.use(),()=>{jR.unuse()}),[]);const{className:i,setAttributes:o,attributes:n,deviceType:r,name:s}=e,c=s.replace("uagb/",""),{block_id:u,test_block:p,imagePosition:d,columns:b,tcolumns:g,mcolumns:m,test_item_count:y,pauseOnHover:f,infiniteLoop:h,transitionSpeed:v,arrowDots:_,arrowSize:T,arrowBorderSize:C,arrowBorderRadius:S,autoplay:k,autoplaySpeed:w,arrowColor:P,equalHeight:x,imageWidth:A}=n,G=Object(B.useRef)(),M=e=>{let{onClick:t}=e;return React.createElement("button",{type:"button","data-role":"none",className:"slick-next slick-arrow","aria-label":"Next",tabIndex:"0",style:{borderColor:P,borderRadius:S,borderWidth:us(C,"arrowBorderSize",c)},onClick:t},se.carousel_right)},R=e=>{let{onClick:t}=e;return React.createElement("button",{type:"button","data-role":"none",className:"slick-prev slick-arrow","aria-label":"Previous",tabIndex:"0",style:{borderColor:P,borderRadius:S,borderWidth:us(C,"arrowBorderSize",c)},onClick:t},se.carousel_left)},U="dots"===_||"arrows_dots"===_,E="arrows"===_||"arrows_dots"===_,O=x?"uagb-post__carousel_equal-height":"",L={accessibility:!1,slidesToShow:us("Desktop"===r?b:"Tablet"===r?g:m,"columns",c),slidesToScroll:1,autoplaySpeed:us(w,"autoplaySpeed",c),autoplay:k,infinite:h,pauseOnHover:f,speed:us(v,"transitionSpeed",c),arrows:E,dots:U,rtl:!1,afterChange:()=>{x&&uagb_carousel_height(u)},draggable:!1,nextArrow:React.createElement(M,{arrowSize:T,onClick:G.slickNext}),prevArrow:React.createElement(R,{arrowSize:T,onClick:G.slickPrev})},H=y===b?"uagb-post__carousel_notset":"",F=y===g?"uagb-post__carousel_notset-tablet":"",j=y===m?"uagb-post__carousel_notset-mobile":"",z=(null===(t=n.test_block[0])||void 0===t?void 0:t.image)||(null===(a=n.test_block[1])||void 0===a?void 0:a.image)||(null===(l=n.test_block[2])||void 0===l?void 0:l.image);let D="",N="";if(z){const e=z;if(null!=e&&""!==e&&(N=e.url),""!==N){const t=e.sizes,a=n.imageSize;D=void 0!==t&&void 0!==t[a]?t[a].url:N}}return Object(B.useEffect)(()=>{Zg(D,o,{type:"width",value:A})},[A,D]),React.createElement("div",{className:Be()(i,"uagb-slick-carousel uagb-tm__arrow-outside","uagb-editor-preview-mode-"+r.toLowerCase(),"uagb-block-"+u,""+O,H,F,j)},React.createElement(vS.a,zR({className:Be()("is-carousel","uagb-tm__columns-"+us(b,"columns",c),"uagb-tm__items")},L,{ref:G}),p.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(n)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"===d||"left"===d)&&React.createElement(RR,{attributes:n,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement(ER,{attributes:n,setAttributes:o,props:e,index_value:a})),React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"===d&&React.createElement(RR,{attributes:n,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:n,setAttributes:o,props:e,index_value:a}),React.createElement(UR,{attributes:n,setAttributes:o,props:e,index_value:a}))))),"right"===d&&React.createElement(RR,{attributes:n,index_value:a}))))))}),NR=function(e,t){if(!e)return"";void 0!==t&&""!==t||(t=100),t=void 0!==t?t/100:1,e=(e=e.replace("#","")).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,a,l){return t+t+a+a+l+l}));const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),l=a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null;return l?"rgba("+l.r+","+l.g+","+l.b+","+t+")":""},IR=Object(B.memo)(e=>{let{attributes:t}=e;const{nameLoadGoogleFonts:a,nameFontFamily:l,nameFontWeight:i,companyLoadGoogleFonts:o,companyFontFamily:n,companyFontWeight:r,descLoadGoogleFonts:s,descFontFamily:c,descFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),VR=Object(L.compose)(ls,fe)(e=>{const{setAttributes:t,attributes:a,attributes:{backgroundOpacity:l,backgroundImageColor:i,backgroundType:o,overlayType:n,gradientColor1:r,gradientColor2:s,gradientLocation1:c,gradientLocation2:u,gradientType:p,gradientAngle:d,gradientPosition:b,borderStyle:g,borderWidth:m,borderRadius:y,borderColor:f,borderHoverColor:h,equalHeight:v,UAGHideDesktop:_,UAGHideTab:T,UAGHideMob:C,block_id:S},isSelected:k,clientId:w,name:P,deviceType:x}=e;Object(B.useEffect)(()=>{if(101!==l&&"image"===o&&"gradient"===n){const e=NR(pl(r),l),a=NR(pl(s),l);let i;i="linear"===p?`linear-gradient(${d}deg, ${e} ${c}%, ${a} ${u}%)`:`radial-gradient( at ${b}, ${e} ${c}%, ${a} ${u}%)`,t({gradientValue:i})}if("image"===o&&101!==l){const e=NR(pl(i),l);t({backgroundImageColor:e}),t({backgroundOpacity:101})}(m||y||f||h||g)&&ue("overall",{label:"borderWidth",value:m},{label:"borderRadius",value:y},{label:"borderColor",value:f},{label:"borderHoverColor",value:h},{label:"borderStyle",value:g},t,a)},[]),Object(B.useEffect)(()=>{v?uagb_carousel_height(S):uagb_carousel_unset_height(S)},[a,x]),Object(B.useEffect)(()=>{he(e)},[_,T,C,x]),Object(B.useEffect)(()=>{ys()},[x]);const A=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,headingAlign:r,headingAlignTablet:s,headingAlignMobile:c,companyColor:u,descColor:p,authorColor:d,nameFontSizeType:b,nameFontSize:g,nameFontSizeTablet:m,nameFontSizeMobile:y,nameFontFamily:f,nameFontWeight:h,nameLineHeightType:v,nameLineHeight:_,nameLineHeightTablet:T,nameLineHeightMobile:C,companyFontSizeType:S,companyFontSize:k,companyFontSizeTablet:w,companyFontSizeMobile:P,companyFontFamily:x,companyFontWeight:A,companyLineHeightType:G,companyLineHeight:M,companyLineHeightTablet:R,companyLineHeightMobile:B,descFontSizeType:U,descFontSize:E,descFontSizeTablet:O,descFontSizeMobile:L,descFontFamily:H,descFontWeight:F,descLineHeightType:j,descLineHeight:z,descLineHeightTablet:D,descLineHeightMobile:N,descSpace:I,descSpaceTablet:V,descSpaceMobile:W,nameSpace:q,nameSpaceTablet:Z,nameSpaceMobile:$,imageWidth:Y,imageWidthTablet:K,imageWidthMobile:J,rowGap:X,rowGapTablet:Q,rowGapMobile:ee,columnGap:te,columnGapTablet:le,columnGapMobile:ie,backgroundType:oe,backgroundColor:ne,backgroundImage:re,backgroundPosition:se,backgroundSize:ce,backgroundRepeat:ue,backgroundImageColor:pe,arrowColor:de,test_item_count:be,columns:ge,arrowDots:me,arrowSize:ye,imageWidthType:fe,arrowSizeType:he,rowGapType:ve,columnGapType:_e,descSpaceType:Te,nameSpaceType:Ce,gradientValue:Se,descTransform:ke,descDecoration:we,nameTransform:Pe,nameDecoration:xe,companyTransform:Ae,companyDecoration:Ge,paddingUnit:Me,mobilePaddingUnit:Re,tabletPaddingUnit:Be,paddingTop:Ue,paddingBottom:Ee,paddingLeft:Oe,paddingRight:Le,paddingTopTablet:He,paddingRightTablet:Fe,paddingBottomTablet:je,paddingLeftTablet:ze,paddingTopMobile:De,paddingRightMobile:Ne,paddingBottomMobile:Ie,paddingLeftMobile:Ve,imgpaddingTop:We,imgpaddingRight:qe,imgpaddingBottom:Ze,imgpaddingLeft:$e,imgpaddingTopTablet:Ye,imgpaddingRightTablet:Ke,imgpaddingBottomTablet:Je,imgpaddingLeftTablet:Xe,imgpaddingTopMobile:Qe,imgpaddingRightMobile:et,imgpaddingBottomMobile:tt,imgpaddingLeftMobile:at,imgpaddingUnit:lt,imgmobilePaddingUnit:it,imgtabletPaddingUnit:ot,nameFontStyle:nt,companyFontStyle:rt,descFontStyle:st,overallBorderHColor:ct,nameLetterSpacing:ut,nameLetterSpacingTablet:pt,nameLetterSpacingMobile:dt,nameLetterSpacingType:bt,descLetterSpacing:gt,descLetterSpacingTablet:mt,descLetterSpacingMobile:yt,descLetterSpacingType:ft,companyLetterSpacing:ht,companyLetterSpacingTablet:vt,companyLetterSpacingMobile:_t,companyLetterSpacingType:Tt,overlayType:Ct,gradientColor1:St,gradientColor2:kt,gradientLocation1:wt,gradientLocation2:Pt,gradientAngle:xt,selectGradient:At,gradientType:Gt}=e,Mt=us(ye,"arrowSize",i),Rt=us(be,"test_item_count",i),Bt=us(X,"rowGap",i),Ut=us(q,"nameSpace",i),Et=us(I,"descSpace",i),Ot=us(te,"columnGap",i),Lt=us(ge,"columns",i),Ht=us(Y,"imageWidth",i),Ft=isNaN(le)?Ot:le,jt=isNaN(ie)?Ft:ie,zt=Wr(e,"overall"),Dt=Wr(e,"overall","tablet"),Nt=Wr(e,"overall","mobile");let It="center";"left"===r?It="flex-start":"right"===r&&(It="flex-end");const Vt=se.replace("-"," "),Wt={" .uagb-testimonial__wrap":{"margin-bottom":Vr(Bt,ve),"padding-left":Vr(Ot/2,_e),"padding-right":Vr(Ot/2,_e)}," .uagb-testimonial__wrap .uagb-tm__image-content":{"padding-top":Vr(We,lt),"padding-right":Vr(qe,lt),"padding-bottom":Vr(Ze,lt),"padding-left":Vr($e,lt)}," .uagb-tm__image-position-top .uagb-tm__image-content":{"justify-content":It}," .uagb-tm__image img":{width:Vr(Ht,fe),"max-width":Vr(Ht,fe)}," .uagb-tm__content":{"text-align":r,"padding-top":Vr(Ue,Me),"padding-bottom":Vr(Ee,Me),"padding-left":Vr(Oe,Me),"padding-right":Vr(Le,Me)}," .uagb-tm__author-name":{"font-size":Vr(g,b),"font-family":f,"font-weight":h,"font-style":nt,"text-decoration":xe,"text-transform":Pe,"line-height":Vr(_,v),color:d,"margin-bottom":Vr(Ut,Ce),"letter-spacing":Vr(ut,bt)}," .uagb-tm__company":{"font-size":Vr(k,S),"font-family":x,"font-weight":A,"font-style":rt,"text-decoration":Ge,"text-transform":Ae,"line-height":Vr(M,G),color:u,"letter-spacing":Vr(ht,Tt)}," .uagb-tm__desc":{"font-size":Vr(E,U),"font-family":H,"font-style":st,"text-decoration":we,"text-transform":ke,"font-weight":F,"line-height":Vr(z,j),color:p,"margin-bottom":Vr(Et,Te),"letter-spacing":Vr(gt,ft)}," ul.slick-dots li button:before":{color:de}," ul.slick-dots li.slick-active button:before":{color:de}," .slick-arrow svg":{fill:de,height:Vr(Mt,he),width:Vr(Mt,he)}," .uagb-testimonial__wrap .uagb-tm__content":zt," .uagb-testimonial__wrap .uagb-tm__content:hover":{"border-color":ct}};Rt===Lt&&(Wt[".uagb-slick-carousel"]={padding:"0"}),"dots"===me&&(Wt[" .uagb-slick-carousel.uagb-tm__arrow-outside"]={padding:"0 0 35px 0"}),1!==Rt&&Rt!==Lt||(Wt[" .uagb-slick-carousel.uagb-tm__arrow-outside"]={padding:"0"});const qt={" .uagb-tm__image img":{width:Vr(J,fe),"max-width":Vr(J,fe)}," .uagb-testimonial__wrap":{"padding-left":Vr(jt/2,_e),"padding-right":Vr(jt/2,_e),"margin-bottom":Vr(ee,ve)}," .block-editor-rich-text__editable.uagb-tm__author-name":{"margin-bottom":Vr($,Ce),"letter-spacing":Vr(dt,bt)}," .uagb-tm__desc":{"margin-bottom":Vr(W,Te),"font-size":Vr(L,U),"line-height":Vr(N,j),"letter-spacing":Vr(yt,ft)}," .uagb-testimonial__wrap .uagb-tm__content":Nt," .uagb-testimonial__wrap .uagb-tm__image-content":{"text-align":c,"padding-top":Vr(Qe,it),"padding-right":Vr(et,it),"padding-bottom":Vr(tt,it),"padding-left":Vr(at,it)}," .uagb-tm__company":{"font-size":Vr(P,S),"line-height":Vr(B,G),"letter-spacing":Vr(_t,Tt)}," .uagb-tm__author-name":{"font-size":Vr(y,b),"line-height":Vr(C,v)}," .uagb-tm__content":{"text-align":c,"padding-top":Vr(De,Re),"padding-bottom":Vr(Ie,Re),"padding-left":Vr(Ve,Re),"padding-right":Vr(Ne,Re)}},Zt={" .uagb-tm__image img":{width:Vr(K,fe),"max-width":Vr(K,fe)}," .block-editor-rich-text__editable.uagb-tm__author-name":{"margin-bottom":Vr(Z,Ce),"letter-spacing":Vr(pt,bt)}," .uagb-testimonial__wrap":{"padding-left":Vr(Ft/2,_e),"padding-right":Vr(Ft/2,_e),"margin-bottom":Vr(Q,ve)}," .uagb-testimonial__wrap .uagb-tm__content":Dt," .uagb-testimonial__wrap .uagb-tm__image-content":{"text-align":s,"padding-top":Vr(Ye,ot),"padding-right":Vr(Ke,ot),"padding-bottom":Vr(Je,ot),"padding-left":Vr(Xe,ot)}," .uagb-tm__content":{"text-align":s,"padding-top":Vr(He,Be),"padding-bottom":Vr(je,Be),"padding-left":Vr(ze,Be),"padding-right":Vr(Fe,Be)}," .uagb-tm__desc":{"margin-bottom":Vr(V,Te),"font-size":Vr(O,U),"line-height":Vr(D,j),"letter-spacing":Vr(mt,ft)}," .uagb-tm__company":{"font-size":Vr(w,S),"line-height":Vr(R,G),"letter-spacing":Vr(vt,Tt)}," .uagb-tm__author-name":{"font-size":Vr(m,b),"line-height":Vr(T,v)}};let $t;switch(At){case"basic":$t=Se;break;case"advanced":switch(Gt){case"linear":$t=`linear-gradient(${xt}deg, ${St} ${wt}%, ${kt} ${Pt}%)`;break;case"radial":$t=`radial-gradient( at center center, ${St} ${wt}%, ${kt} ${Pt}%)`;break;default:$t=""}break;default:$t=""}"gradient"===oe&&(Wt[" .uagb-tm__content"]["background-image"]=$t),"image"===oe?"color"===Ct?Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay"]={"background-color":pe}:"gradient"===Ct&&(Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay"]={"background-image":$t}):Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content"]={"background-color":ne},Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content"]={"background-image":re?`url(${re.url})`:null,"background-position":Vt,"background-repeat":ue,"background-size":ce};let Yt="";const Kt=".uagb-block-"+n;return Yt=ae(Wt,Kt),"tablet"!==o&&"mobile"!==o||(Yt+=ae(Zt,""+Kt,!0,"tablet"),"mobile"===o&&(Yt+=ae(qt,""+Kt,!0,"mobile"))),Yt}(a,0,P,x),[a,x]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:A}),React.createElement(IR,{attributes:a}),k&&React.createElement(GR,e),React.createElement(DR,e))}),WR=e=>{const{attributes:t,index_value:a}=e;let l="";const i=t.test_block[a];if(i&&void 0!==i){const e=i.image;let o="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,n=t.imageSize;return o=void 0!==i&&void 0!==i[n]?i[n].url:l,React.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+a},React.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+a},React.createElement("img",{className:"",src:o,alt:e.alt})))}return null}return null},qR=e=>{const{attributes:t,index_value:a}=e;let l="";const i=t.test_block[a];if(i&&void 0!==i){const e=i.image;let o="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,n=t.imageSize;return o=void 0!==i&&void 0!==i[n]?i[n].url:l,React.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+a},React.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+a},React.createElement("img",{className:"uagb-tm-img-src",src:o,alt:e.alt})))}return null}return null};const ZR=[];for(var $R=1;$R<=3;$R++){var YR="Company"+$R;ZR.push({description:"I have been working with these guys since years now! With lots of hard work and timely communication they made sure they delivered the best to me. Highly recommended!",name:"John Doe ",company:YR,image:""})}const KR=ce("overall"),JR={test_item_count:{type:"number",default:3},classMigrate:{type:"boolean",default:!1},test_block:{type:"array",default:ZR},headingAlign:{type:"string",default:"center"},descColor:{type:"string",default:"#333"},companyColor:{type:"string",default:"#888888"},authorColor:{type:"string",default:"#333"},iconimgStyle:{type:"string",default:"circle"},imagePosition:{type:"string",default:"bottom"},imageAlignment:{type:"string",default:"top"},nameFontSizeType:{type:"string",default:"px"},nameFontSize:{type:"number"},nameFontSizeTablet:{type:"number"},nameFontSizeMobile:{type:"number"},nameFontFamily:{type:"string",default:"Default"},nameFontWeight:{type:"string"},nameFontSubset:{type:"string"},nameLineHeightType:{type:"string",default:"em"},nameLineHeight:{type:"number"},nameLineHeightTablet:{type:"number"},nameLineHeightMobile:{type:"number"},nameLoadGoogleFonts:{type:"boolean",default:!1},companyFontSizeType:{type:"string",default:"px"},companyFontSize:{type:"number"},companyFontSizeTablet:{type:"number"},companyFontSizeMobile:{type:"number"},companyFontFamily:{type:"string",default:"Default"},companyFontWeight:{type:"string"},companyFontSubset:{type:"string"},companyLineHeightType:{type:"string",default:"em"},companyLineHeight:{type:"number"},companyLineHeightTablet:{type:"number"},companyLineHeightMobile:{type:"number"},companyLoadGoogleFonts:{type:"boolean",default:!1},descFontSizeType:{type:"string",default:"px"},descFontSize:{type:"number"},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},nameSpace:{type:"number",default:5},descSpace:{type:"number",default:15},block_id:{type:"string",default:"not_set"},authorSpace:{type:"number",default:5},imgVrPadding:{type:"number",default:10},imgHrPadding:{type:"number",default:10},imgTopPadding:{type:"number",default:10},imgBottomPadding:{type:"number",default:10},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",default:60},columns:{type:"number",default:1},tcolumns:{type:"number",default:1},mcolumns:{type:"number",default:1},pauseOnHover:{type:"boolean",default:!0},infiniteLoop:{type:"boolean",default:!0},transitionSpeed:{type:"number",default:500},autoplay:{type:"boolean",default:!0},autoplaySpeed:{type:"number",default:2e3},arrowDots:{type:"string",default:"arrows_dots"},arrowSize:{type:"number",default:20},arrowBorderSize:{type:"number",default:1},arrowBorderRadius:{type:"number",default:0},arrowColor:{type:"string",default:"#aaaaaa"},rowGap:{type:"number",default:10},columnGap:{type:"number",default:10},contentPadding:{type:"number",default:5},backgroundType:{type:"string"},backgroundImage:{type:"object"},backgroundPosition:{type:"string",default:"center-center"},backgroundSize:{type:"string",default:"cover"},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundColor:{type:"string"},backgroundImageColor:{type:"string"},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number",default:"1"},borderRadius:{type:"number"},borderColor:{type:"string"},backgroundOpacity:{type:"number",default:50},arrowColor:{type:"string",default:"#333"},stack:{type:"string",default:"tablet"},nameSpaceType:{type:"string",default:"px"},descSpaceType:{type:"string",default:"px"},imgpaddingUnit:{type:"string",default:"px"},arrowBorderSizeUnit:{type:"string",default:"px"},arrowBorderRadiusUnit:{type:"string",default:"px"},arrowSizeType:{type:"string",default:"px"},rowGapType:{type:"string",default:"px"},columnGapType:{type:"string",default:"px"},paddingUnit:{type:"string",default:"px"},...KR},XR=[];for(let e=1;e<=3;e++){const e="I have been working with these guys for years now! With lots of hard work and timely communication, they made sure they delivered the best to me. Highly recommended!",t="John Doe ",a="Company Name";XR.push({description:e,name:t,company:a,image:""})}var QR=[{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes,m=[];return m.push({block_id:t,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,arrowColor:g}),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside"),id:"uagb-testimonial-"+t,"data-slider":JSON.stringify(m)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a})))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside"),id:"uagb-testimonial-"+t},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(qR,{attributes:e.attributes,index_value:a}))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(B.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(B.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}))))))}},{attributes:{test_item_count:{type:"number",default:3},classMigrate:{type:"boolean",default:!1},test_block:{type:"array",default:XR},headingAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},headingAlignTablet:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align-tablet"}},headingAlignMobile:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align-mobile"}},descColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"desc-color"}},companyColor:{type:"string",default:"#888888",UAGCopyPaste:{styleType:"prefix-color"}},authorColor:{type:"string",UAGCopyPaste:{styleType:"author-color"},default:"#333"},iconimgStyle:{type:"string",UAGCopyPaste:{styleType:"image-style"},default:"circle"},imagePosition:{type:"string",UAGCopyPaste:{styleType:"image-position"},default:"bottom"},imageAlignment:{type:"string",UAGCopyPaste:{styleType:"image-align"},default:"top"},nameFontSizeType:{type:"string",UAGCopyPaste:{styleType:"author-font-size-type"},default:"px"},nameFontSize:{type:"number",default:20,UAGCopyPaste:{styleType:"author-font-size"}},nameFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"author-font-size-tablet"}},nameFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"author-font-size-mobile"}},nameFontFamily:{type:"string",UAGCopyPaste:{styleType:"author-font-family"},default:"Default"},nameFontWeight:{type:"string",default:"500",UAGCopyPaste:{styleType:"author-font-weight"}},nameFontStyle:{type:"string",UAGCopyPaste:{styleType:"author-font-style"}},nameLineHeightType:{type:"string",UAGCopyPaste:{styleType:"author-line-height-type"},default:"em"},nameLineHeight:{type:"number",default:2,UAGCopyPaste:{styleType:"author-line-height"}},nameLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"author-line-height-tablet"}},nameLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"author-line-height-mobile"}},nameLoadGoogleFonts:{type:"boolean",default:!1},companyFontSizeType:{type:"string",UAGCopyPaste:{styleType:"prefix-font-size-type"},default:"px"},companyFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},companyFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},companyFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},companyFontFamily:{type:"string",UAGCopyPaste:{styleType:"prefix-font-family"},default:"Default"},companyFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},companyFontStyle:{type:"string",UAGCopyPaste:{styleType:"prefix-font-style"}},companyLineHeightType:{type:"string",UAGCopyPaste:{styleType:"prefix-line-height-type"},default:"em"},companyLineHeight:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height"}},companyLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},companyLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},companyLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-fonts"}},descFontSizeType:{type:"string",UAGCopyPaste:{styleType:"desc-font-size-type"},default:"px"},descFontSize:{type:"number",default:18,UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descFontFamily:{type:"string",UAGCopyPaste:{styleType:"desc-font-family"},default:"Default"},descFontWeight:{type:"string",default:"400",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"}},descLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descLineHeight:{type:"number",default:1.6,UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},nameSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"author-bottom-margin"}},nameSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"author-bottom-margin-mobile"}},nameSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"author-bottom-margin-tablet"}},descSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"},default:20},descSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},descSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},block_id:{type:"string",default:"not_set"},authorSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"author-bottom-margin"}},imgVrPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"image-vertical-padding"}},imgHrPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"image-horizontal-padding"}},imgTopPadding:{type:"number",UAGCopyPaste:{styleType:"image-top-padding"},default:10},imgBottomPadding:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding"},default:10},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",UAGCopyPaste:{styleType:"image-size"},default:"thumbnail"},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:60},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},columns:{type:"number",default:1},tcolumns:{type:"number",default:1},mcolumns:{type:"number",default:1},pauseOnHover:{type:"boolean",default:!0},infiniteLoop:{type:"boolean",default:!0},transitionSpeed:{type:"number",default:500},autoplay:{type:"boolean",default:!0},autoplaySpeed:{type:"number",default:2e3},arrowDots:{type:"string",default:"arrows_dots"},arrowSize:{type:"number",default:20,UAGCopyPaste:{styleType:"arrow-size"}},arrowBorderSize:{type:"number",default:0,UAGCopyPaste:{styleType:"arrow-border-size"}},arrowBorderSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"arrow-unit"}},arrowBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"arrow-border-radius"}},arrowBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"arrow-unit"}},arrowColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"arrow-color"}},rowGap:{type:"number",default:10,UAGCopyPaste:{styleType:"row-gap"}},rowGapMobile:{type:"number",UAGCopyPaste:{styleType:"row-gap-mobile"}},rowGapTablet:{type:"number",UAGCopyPaste:{styleType:"row-gap-tablet"}},columnGap:{type:"number",default:10,UAGCopyPaste:{styleType:"column-gap"}},columnGapMobile:{type:"number",UAGCopyPaste:{styleType:"column-gap-mobile"}},columnGapTablet:{type:"number",UAGCopyPaste:{styleType:"column-gap-tablet"}},contentPadding:{type:"number",default:5,UAGCopyPaste:{styleType:"content-padding"}},backgroundType:{type:"string",default:"none",UAGCopyPaste:{styleType:"column-bg-type"}},backgroundImage:{type:"object",UAGCopyPaste:{styleType:"column-bg-image"}},backgroundPosition:{type:"string",UAGCopyPaste:{styleType:"column-bg-position"},default:"center-center"},backgroundSize:{type:"string",default:"cover",UAGCopyPaste:{styleType:"column-bg-size"}},backgroundRepeat:{type:"string",default:"no-repeat",UAGCopyPaste:{styleType:"column-bg-repeat"}},backgroundColor:{type:"string",UAGCopyPaste:{styleType:"column-bg-color"}},backgroundImageColor:{type:"string",UAGCopyPaste:{styleType:"column-bg-image-color"}},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number"},borderRadius:{type:"number"},borderColor:{type:"string"},backgroundOpacity:{type:"number",UAGCopyPaste:{styleType:"column-bg-opacity"}},stack:{type:"string",default:"tablet"},imageWidthType:{type:"string",UAGCopyPaste:{styleType:"image-width-type"},default:"px"},arrowSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"arrow-size-type"}},rowGapType:{type:"string",default:"px",UAGCopyPaste:{styleType:"row-gap-unit"}},columnGapType:{type:"string",default:"px",UAGCopyPaste:{styleType:"column-gap-unit"}},descSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-bottom-margin-unit"}},nameSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"author-bottom-margin-type"}},borderHoverColor:{type:"string"},overlayType:{type:"string",UAGCopyPaste:{styleType:"column-overlay-type"},default:"color"},backgroundAttachment:{type:"string",UAGCopyPaste:{styleType:"column-bg-attachment"}},gradientValue:{type:"string",default:"linear-gradient(90deg, rgb(6, 147, 227, 0.5) 0%, rgb(155, 81, 224, 0.5) 100%)",UAGCopyPaste:{styleType:"column-gradient-value"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},nameTransform:{type:"string",UAGCopyPaste:{styleType:"author-transform"}},nameDecoration:{type:"string",UAGCopyPaste:{styleType:"author-decoration"}},companyTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},companyDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobilePaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"},default:"px"},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},paddingTop:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},paddingBottom:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},paddingLeft:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},paddingRight:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},paddingTopTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingRightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingBottomTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingLeftTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingTopMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},paddingRightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},paddingBottomMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},paddingLeftMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},imgspacingLink:{type:"boolean"},spacingLink:{type:"boolean"},imgpaddingTop:{type:"number",UAGCopyPaste:{styleType:"image-top-padding"}},imgpaddingRight:{type:"number",UAGCopyPaste:{styleType:"image-right-padding"}},imgpaddingBottom:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding"}},imgpaddingLeft:{type:"number",UAGCopyPaste:{styleType:"image-left-padding"}},imgpaddingTopTablet:{type:"number",UAGCopyPaste:{styleType:"image-top-padding-tablet"}},imgpaddingRightTablet:{type:"number",UAGCopyPaste:{styleType:"image-right-padding-tablet"}},imgpaddingBottomTablet:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding-tablet"}},imgpaddingLeftTablet:{type:"number",UAGCopyPaste:{styleType:"image-left-padding-tablet"}},imgpaddingTopMobile:{type:"number",UAGCopyPaste:{styleType:"image-top-padding-mobile"}},imgpaddingRightMobile:{type:"number",UAGCopyPaste:{styleType:"image-right-padding-mobile"}},imgpaddingBottomMobile:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding-mobile"}},imgpaddingLeftMobile:{type:"number",UAGCopyPaste:{styleType:"image-left-padding-mobile"}},imgpaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-padding-unit"}},imgmobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-padding-unit-mobile"}},imgtabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-padding-unit-tablet"}},gradientColor1:{type:"string",UAGCopyPaste:{styleType:"column-gradient-color-1"}},gradientColor2:{type:"string",UAGCopyPaste:{styleType:"column-gradient-color-2"}},gradientType:{type:"string",UAGCopyPaste:{styleType:"column-gradient-type"},default:"linear"},gradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"column-gradient-location-1"}},gradientLocation2:{type:"number",UAGCopyPaste:{styleType:"column-gradient-location-2"},default:100},gradientAngle:{type:"number",UAGCopyPaste:{styleType:"column-gradient-angle"},default:0},gradientPosition:{type:"string",UAGCopyPaste:{styleType:"column-gradient-position"},default:"center center"},isPreview:{type:"boolean",default:!1},equalHeight:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"post-equal-height"}},...KR,nameLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},nameLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},nameLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},nameLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},companyLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},companyLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},companyLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},companyLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}}},save(e){const{block_id:t,className:a,columns:l,tcolumns:i,mcolumns:o,test_block:n,imagePosition:r,equalHeight:s,test_item_count:c}=e.attributes,u=s?"uagb-post__carousel_equal-height":"",p=c===l?"uagb-post__carousel_notset":"",d=c===i?"uagb-post__carousel_notset-tablet":"",b=c===o?"uagb-post__carousel_notset-mobile":"";return React.createElement("div",{className:Be()(a,"uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t,""+u,p,d,b)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+us(l,"columns","testimonial"),"uagb-tm__items")},n.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"===r||"left"===r)&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})),React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"===r&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"===r&&React.createElement(qR,{attributes:e.attributes,index_value:a}))))))}}];a(378);let eB={};eB=Object(F.applyFilters)("uagb/testimonial",ss(eB)),Object(de.registerBlockType)("uagb/testimonial",{...eB,title:Object(r.__)("Testimonials","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display customer testimonials in customizable layouts.","ultimate-addons-for-gutenberg"),icon:se.testimonial,keywords:[Object(r.__)("testimonial","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:mt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"testimonial"}):React.createElement(VR,e),save:function(e){const{block_id:t,className:a,columns:l,tcolumns:i,mcolumns:o,test_block:n,imagePosition:r,equalHeight:s,test_item_count:c}=e.attributes,u=s?"uagb-post__carousel_equal-height":"",p=c===l?"uagb-post__carousel_notset":"",d=c===i?"uagb-post__carousel_notset-tablet":"",b=c===o?"uagb-post__carousel_notset-mobile":"";return React.createElement("div",{className:Be()(a,"uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t,""+u,p,d,b)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+us(l,"columns","testimonial"),"uagb-tm__items")},n.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"===r||"left"===r)&&React.createElement(RR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})),React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"===r&&React.createElement(RR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"===r&&React.createElement(RR,{attributes:e.attributes,index_value:a}))))))},deprecated:QR});var tB={UAGAnimationType:{type:"string",default:"",UAGCopyPaste:{styleType:"block-animation-type"}},UAGAnimationTime:{type:"number",default:400,UAGCopyPaste:{styleType:"block-animation-time"}},UAGAnimationDelay:{type:"number",default:0,UAGCopyPaste:{styleType:"block-animation-delay"}},UAGAnimationEasing:{type:"string",default:"ease",UAGCopyPaste:{styleType:"block-animation-easing"}},UAGAnimationRepeat:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"block-animation-repeat"}}},aB={UAGPosition:{type:"string",default:"",UAGCopyPaste:{styleType:"block-position-type"}},UAGStickyLocation:{type:"string",default:"top",UAGCopyPaste:{styleType:"block-position-sticky-location"}},UAGStickyRestricted:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"block-position-sticky-restricted"}},UAGStickyOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"block-position-sticky-offset"}}},lB={isGridCssInParent:{type:"boolean",default:!1},gridSettingType:{type:"string"},gridColumnStart:{type:"number"},gridColumnEnd:{type:"number"},gridColumnStartTablet:{type:"number"},gridColumnEndTablet:{type:"number"},gridColumnStartMobile:{type:"number"},gridColumnEndMobile:{type:"number"},gridRowStart:{type:"number"},gridRowEnd:{type:"number"},gridRowStartTablet:{type:"number"},gridRowEndTablet:{type:"number"},gridRowStartMobile:{type:"number"},gridRowEndMobile:{type:"number"},gridAlignItems:{type:"string"},gridAlignItemsTablet:{type:"string"},gridAlignItemsMobile:{type:"string"},gridJustifyItems:{type:"string"},gridJustifyItemsTablet:{type:"string"},gridJustifyItemsMobile:{type:"string"},gridColumnSpan:{type:"number"},gridRowSpan:{type:"number"},gridColumnSpanTablet:{type:"number"},gridRowSpanTablet:{type:"number"},gridColumnSpanMobile:{type:"number"},gridRowSpanMobile:{type:"number"}};const{enableMasonryGallery:iB}=uagb_blocks_info;Object(F.addFilter)("blocks.registerBlockType","uagb/advanced-control-block",(function(e){return uagb_blocks_info.uagb_exclude_blocks_from_extension.includes(e.name)||e.attributes&&(e.attributes=Object.assign(e.attributes,{UAGUserRole:{type:"string"},UAGBrowser:{type:"string"},UAGSystem:{type:"string"},UAGHideDesktop:{type:"boolean",default:!1},UAGHideMob:{type:"boolean",default:!1},UAGHideTab:{type:"boolean",default:!1},UAGLoggedIn:{type:"boolean",default:!1},UAGLoggedOut:{type:"boolean",default:!1},UAGDisplayConditions:{type:"string"},UAGDay:{type:"array",default:[]},zIndex:{type:"number"},zIndexTablet:{type:"number"},zIndexMobile:{type:"number"},UAGResponsiveConditions:{type:"boolean",default:!1},...tB,...aB})),"uagb/container"===e.name&&null!=e&&e.attributes&&(e.attributes={...e.attributes,...lB}),e})),("enabled"===iB||!0===iB)&&Object(F.addFilter)("blocks.registerBlockType","uagb/masonry-gallery",(function(e){return["core/gallery"].includes(e.name)&&e.attributes&&(e.attributes=Object.assign(e.attributes,{masonry:{type:"boolean",default:!1},masonryGutter:{type:"number"},block_id:{type:"string"}})),e})),Object(F.addFilter)("blocks.registerBlockType","uagb/block-label",(function(e){return e.name.includes("uagb/")&&(e.attributes={...e.attributes,metadata:{type:"object",default:{name:""}}},null!=e&&e.__experimentalLabel||(e.__experimentalLabel=(e,t)=>{let{context:a}=t;const{metadata:l}=e;if("list-view"===a&&l.name)return l.name})),e}));var oB,nB=a(145),rB=0,sB={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},cB={};cB.locals=nB.a.locals||{},cB.use=function(){return rB++||(oB=we()(nB.a,sB)),cB},cB.unuse=function(){rB>0&&!--rB&&(oB(),oB=null)};var uB=cB;const{enableMasonryGallery:pB}=uagb_blocks_info,dB=Object(L.createHigherOrderComponent)(e=>t=>{const{attributes:a,setAttributes:l,isSelected:i}=t,o=t.name;Object(B.useLayoutEffect)(()=>(uB.use(),()=>{uB.unuse()}),[]),(()=>{const e=a.columns?a.columns:3,l={".wp-block-gallery ul.blocks-gallery-grid":{"column-gap":Vr(a.masonryGutter,"px"),"column-count":e},".wp-block-gallery ul.blocks-gallery-grid li.blocks-gallery-item":{"margin-bottom":Vr(a.masonryGutter,"px")},".wp-block-gallery.blocks-gallery-grid.has-nested-images.uag-masonry.blocks-gallery-grid":{"column-gap":Vr(a.masonryGutter,"px"),"column-count":e},".wp-block-gallery.blocks-gallery-grid.has-nested-images.uag-masonry.blocks-gallery-grid figure.wp-block-image:not(#individual-image)":{"margin-bottom":Vr(a.masonryGutter,"px")}},i=ae(l,"#block-"+t.clientId),o=(()=>{var e,t,a;let l=document;const i=document.querySelectorAll('iframe[name="editor-canvas"]');if(null==i||!i[0])return document;const o=(null===(e=i[0])||void 0===e||null===(t=e.contentWindow)||void 0===t?void 0:t.document)||(null===(a=i[0])||void 0===a?void 0:a.contentDocument);if(!o)return document;l=o;const n=l.getElementById("uagb-editor-styles"),r=document.getElementById("uagb-editor-styles");if(!n&&r){var s;const e=r.cloneNode(!0);null===(s=l.head)||void 0===s||s.appendChild(e)}return l})();if(a.masonry){const e=o.getElementById("uag-gallery-masonry-style-"+t.clientId.substr(0,8));if(null!=e)e.innerHTML=i;else{var n;const e=o.createElement("style");e.setAttribute("id","uag-gallery-masonry-style-"+t.clientId.substr(0,8)),e.innerHTML=i,null===(n=o.head)||void 0===n||n.appendChild(e)}}})();const s=void 0!==a.ids?a.ids.length:Object(n.select)("core/block-editor").getBlocks(t.clientId).length;return React.createElement(React.Fragment,null,React.createElement(e,t),i&&["core/gallery"].includes(o)&&0!==s.length&&React.createElement(ge.InspectorControls,null,React.createElement(je,{title:Object(r.__)("Masonry Gallery","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Masonry Layout","ultimate-addons-for-gutenberg"),checked:a.masonry,onChange:e=>(e=>{if(e)l({className:"uag-masonry"});else{let e=a.className;e=e.replace("uag-masonry",""),l({className:e})}l({masonry:!a.masonry}),l({block_id:t.clientId.substr(0,8)})})(e)}),a.masonry&&React.createElement(Qa,{label:Object(r.__)("Gap","ultimate-addons-for-gutenberg"),data:{value:a.masonryGutter,label:"masonryGutter"},min:0,max:100,setAttributes:l,value:a.masonryGutter,units:[{name:Object(r.__)("Gap","ultimate-addons-for-gutenberg"),unitValue:"px"}]}))))},"MasonryGallery");"enabled"!==pB&&!0!==pB||(Object(F.addFilter)("editor.BlockEdit","uagb/masonry-gallery",dB,999),Object(F.addFilter)("blocks.getSaveContent.extraProps","uagb/apply-extra-class",(function(e,t,a){return"core/gallery"===t.name&&a.masonry&&(e.className=e.className+" uagb-block-"+a.block_id),e})));const bB=[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{label:Object(r.__)("Fade","ultimate-addons-for-gutenberg"),options:[{value:"fade",label:Object(r.__)("Fade","ultimate-addons-for-gutenberg")},{value:"fade-down",label:Object(r.__)("Fade Down","ultimate-addons-for-gutenberg")},{value:"fade-up",label:Object(r.__)("Fade Up","ultimate-addons-for-gutenberg")},{value:"fade-left",label:Object(r.__)("Fade Left","ultimate-addons-for-gutenberg")},{value:"fade-right",label:Object(r.__)("Fade Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Flip","ultimate-addons-for-gutenberg"),options:[{value:"flip-down",label:Object(r.__)("Flip Down","ultimate-addons-for-gutenberg")},{value:"flip-up",label:Object(r.__)("Flip Up","ultimate-addons-for-gutenberg")},{value:"flip-left",label:Object(r.__)("Flip Left","ultimate-addons-for-gutenberg")},{value:"flip-right",label:Object(r.__)("Flip Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Slide","ultimate-addons-for-gutenberg"),options:[{value:"slide-down",label:Object(r.__)("Slide Down","ultimate-addons-for-gutenberg")},{value:"slide-up",label:Object(r.__)("Slide Up","ultimate-addons-for-gutenberg")},{value:"slide-left",label:Object(r.__)("Slide Left","ultimate-addons-for-gutenberg")},{value:"slide-right",label:Object(r.__)("Slide Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Zoom-In","ultimate-addons-for-gutenberg"),options:[{value:"zoom-in",label:Object(r.__)("Zoom-In","ultimate-addons-for-gutenberg")},{value:"zoom-in-down",label:Object(r.__)("Zoom-In Down","ultimate-addons-for-gutenberg")},{value:"zoom-in-up",label:Object(r.__)("Zoom-In Up","ultimate-addons-for-gutenberg")},{value:"zoom-in-left",label:Object(r.__)("Zoom-In Left","ultimate-addons-for-gutenberg")},{value:"zoom-in-right",label:Object(r.__)("Zoom-In Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Zoom-Out","ultimate-addons-for-gutenberg"),options:[{value:"zoom-out",label:Object(r.__)("Zoom-Out","ultimate-addons-for-gutenberg")},{value:"zoom-out-down",label:Object(r.__)("Zoom-Out Down","ultimate-addons-for-gutenberg")},{value:"zoom-out-up",label:Object(r.__)("Zoom-Out Up","ultimate-addons-for-gutenberg")},{value:"zoom-out-left",label:Object(r.__)("Zoom-Out Left","ultimate-addons-for-gutenberg")},{value:"zoom-out-right",label:Object(r.__)("Zoom-Out Right","ultimate-addons-for-gutenberg")}]}],gB={none:{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},fade:{value:"fade",label:Object(r.__)("Fade","ultimate-addons-for-gutenberg")},"fade-down":{value:"fade-down",label:Object(r.__)("Fade Down","ultimate-addons-for-gutenberg")},"fade-up":{value:"fade-up",label:Object(r.__)("Fade Up","ultimate-addons-for-gutenberg")},"fade-left":{value:"fade-left",label:Object(r.__)("Fade Left","ultimate-addons-for-gutenberg")},"fade-right":{value:"fade-right",label:Object(r.__)("Fade Right","ultimate-addons-for-gutenberg")},"flip-down":{value:"flip-down",label:Object(r.__)("Flip Down","ultimate-addons-for-gutenberg")},"flip-up":{value:"flip-up",label:Object(r.__)("Flip Up","ultimate-addons-for-gutenberg")},"flip-left":{value:"flip-left",label:Object(r.__)("Flip Left","ultimate-addons-for-gutenberg")},"flip-right":{value:"flip-right",label:Object(r.__)("Flip Right","ultimate-addons-for-gutenberg")},"slide-down":{value:"slide-down",label:Object(r.__)("Slide Down","ultimate-addons-for-gutenberg")},"slide-up":{value:"slide-up",label:Object(r.__)("Slide Up","ultimate-addons-for-gutenberg")},"slide-left":{value:"slide-left",label:Object(r.__)("Slide Left","ultimate-addons-for-gutenberg")},"slide-right":{value:"slide-right",label:Object(r.__)("Slide Right","ultimate-addons-for-gutenberg")},"zoom-in":{value:"zoom-in",label:Object(r.__)("Zoom-In","ultimate-addons-for-gutenberg")},"zoom-in-down":{value:"zoom-in-down",label:Object(r.__)("Zoom-In Down","ultimate-addons-for-gutenberg")},"zoom-in-up":{value:"zoom-in-up",label:Object(r.__)("Zoom-In Up","ultimate-addons-for-gutenberg")},"zoom-in-left":{value:"zoom-in-left",label:Object(r.__)("Zoom-In Left","ultimate-addons-for-gutenberg")},"zoom-in-right":{value:"zoom-in-right",label:Object(r.__)("Zoom-In Right","ultimate-addons-for-gutenberg")},"zoom-out":{value:"zoom-out",label:Object(r.__)("Zoom-Out","ultimate-addons-for-gutenberg")},"zoom-out-down":{value:"zoom-out-down",label:Object(r.__)("Zoom-Out Down","ultimate-addons-for-gutenberg")},"zoom-out-up":{value:"zoom-out-up",label:Object(r.__)("Zoom-Out Up","ultimate-addons-for-gutenberg")},"zoom-out-left":{value:"zoom-out-left",label:Object(r.__)("Zoom-Out Left","ultimate-addons-for-gutenberg")},"zoom-out-right":{value:"zoom-out-right",label:Object(r.__)("Zoom-Out Right","ultimate-addons-for-gutenberg")}};var mB=e=>{const{attributes:{UAGStickyLocation:t,UAGStickyRestricted:a,UAGStickyOffset:l,isBlockRootParent:i},setAttributes:o}=e;return React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Stick at","ultimate-addons-for-gutenberg"),data:{value:t,label:"UAGStickyLocation"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}]}),React.createElement(Qa,{label:Object(r.__)("Offset","ultimate-addons-for-gutenberg"),setAttributes:o,value:l,data:{value:l,label:"UAGStickyOffset"},min:0,max:500,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]}),"top"===t&&!i&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Keep Inside Parent","ultimate-addons-for-gutenberg"),checked:a,onChange:()=>o({UAGStickyRestricted:!a})}))},yB=e=>{const{attributes:{UAGPosition:t},setAttributes:a}=e;return React.createElement(je,{title:Object(r.__)("Sticky","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},React.createElement(Le.ToggleControl,{label:Object(r.__)("Sticky Container","ultimate-addons-for-gutenberg"),checked:"sticky"===t,onChange:()=>a({UAGPosition:"sticky"===t?"":"sticky"}),help:Object(r.__)("Changes affect the frontend only","ultimate-addons-for-gutenberg")}),"sticky"===t&&React.createElement(mB,e))};function fB(){return(fB=Object.assign||function(e){for(var t=1;tt=>{const{attributes:a}=t,{UAGAnimationType:l,UAGAnimationTime:i,UAGAnimationDelay:o,UAGAnimationEasing:n,UAGAnimationRepeat:r,layout:s}=a,c={...t.wrapperProps};return""!==l&&(c["data-aos-duration"]=i,c["data-aos-delay"]=o,c["data-aos-easing"]=n,r||(c["data-aos-once"]="true")),["grid","flex"].includes(s)&&(c.className=Be()(c.className,"uagb-layout-"+s)),React.createElement(e,fB({},t,{wrapperProps:c}))},"withAOSWrapperProps");Object(F.addFilter)("uag_advance_tab_content","uagb/advanced-display-condition",(function(e,t){if(!t)return e;const{isSelected:a,name:l}=t,i=["uagb/cf7-styler","uagb/wp-search","uagb/gf-styler","uagb/columns","uagb/section","uagb/popup-builder"],o=["uagb/tabs","uagb/tabs-child","uagb/countdown","uagb/modal","uagb/popup-builder"],s=Object(n.select)("core/block-editor").getBlockParents(t.clientId);let c=!0;if(s.length)for(let e=0;e{var t;const{clientId:a,name:l,attributes:{UAGAnimationType:i,UAGAnimationTime:o,UAGAnimationDelay:n,UAGAnimationEasing:s},setAttributes:c}=e,u=Object(F.applyFilters)("spectra.animations-extension.easing-pro-options","",l),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t=document.querySelector('iframe[name="editor-canvas"]'),l=(null==t?void 0:t.contentDocument)||(null==t?void 0:t.contentWindow.document),r=t?l.getElementById("block-"+a):document.getElementById("block-"+a),c=parseInt(localStorage.getItem("aosWaitTimeoutCode-"+a)),p=parseInt(localStorage.getItem("aosRemoveClassesTimeoutCode-"+a));c&&(r.removeAttribute("data-aos"),r.classList.remove("aos-animate")),r.style.transitionDuration="0s",r.setAttribute("data-aos",e),r.style.transitionTimingFunction=u?u[s]:"cubic-bezier(.250, .100, .250, 1)",clearTimeout(c),clearTimeout(p);const d=setTimeout(()=>{r.style.transitionDuration=o/1e3+"s",r.classList.add("aos-animate")},0),b=setTimeout(()=>{r.removeAttribute("data-aos"),r.classList.remove("aos-animate"),r.style.transitionDuration="",r.style.transitionTimingFunction=""},n+o);localStorage.setItem("aosWaitTimeoutCode-"+a,d),localStorage.setItem("aosRemoveClassesTimeoutCode-"+a,b)};e={...e,playAnimation:p};const d=Object(F.applyFilters)("spectra.animations-extension.pro-options",e),b=!(d.$$typeof!==Symbol.for("react.element")||null==d||null===(t=d.props)||void 0===t||!t.children)||null;return React.createElement(React.Fragment,null,React.createElement(Bp,{placeholder:Object(r.__)("Animation Type","ultimate-addons-for-gutenberg"),onChange:e=>{c({UAGAnimationType:e.value}),p(e.value)},options:bB,value:""!==i?gB[i]:gB.none,defaultValue:""!==i?gB[i]:gB.none,isSearchable:!0,className:"uagb-animation-type-searchable-select",classNamePrefix:"uagb-animation-type-select"}),b&&d,!uagb_blocks_info.spectra_pro_status&&React.createElement("br",null),i&&!b&&React.createElement(Le.Button,{className:"uagb-animation__play-button",onClick:()=>p(),variant:"tertiary"},Object(r.__)("Preview","ultimate-addons-for-gutenberg")))})(t)),a&&!["uagb/buttons-child","uagb/faq-child","uagb/icon-list-child","uagb/social-share-child","uagb/restaurant-menu-child","uagb/slider-child"].includes(l)&&React.createElement(React.Fragment,null,"enabled"===hB&&!["uagb/popup-builder"].includes(l)&&React.createElement(je,{title:Object(r.__)("Display Conditions","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},(e=>{const{attributes:t,setAttributes:a}=e,{UAGLoggedIn:l,UAGLoggedOut:i,UAGDisplayConditions:o,UAGSystem:n,UAGBrowser:s,UAGUserRole:c,UAGDay:u}=t,p=e=>{const{value:t,checked:l}=e.target;a({UAGDay:l?[...u,t]:Y(u,t)})},d=[{value:"monday",label:Object(r.__)("Monday","ultimate-addons-for-gutenberg")},{value:"tuesday",label:Object(r.__)("Tuesday","ultimate-addons-for-gutenberg")},{value:"wednesday",label:Object(r.__)("Wednesday","ultimate-addons-for-gutenberg")},{value:"thursday",label:Object(r.__)("Thursday","ultimate-addons-for-gutenberg")},{value:"friday",label:Object(r.__)("Friday","ultimate-addons-for-gutenberg")},{value:"saturday",label:Object(r.__)("Saturday","ultimate-addons-for-gutenberg")},{value:"sunday",label:Object(r.__)("Sunday","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Display Conditions","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({UAGDisplayConditions:e}),options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"userstate",label:Object(r.__)("User State","ultimate-addons-for-gutenberg")},{value:"userRole",label:Object(r.__)("User Role","ultimate-addons-for-gutenberg")},{value:"browser",label:Object(r.__)("Browser","ultimate-addons-for-gutenberg")},{value:"os",label:Object(r.__)("Operating System","ultimate-addons-for-gutenberg")},{value:"day",label:Object(r.__)("Day","ultimate-addons-for-gutenberg")}]}),"userstate"===o&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged In Users","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGLoggedIn:!t.UAGLoggedIn})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged Out Users","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGLoggedOut:!t.UAGLoggedOut})})),"os"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Operating System","ultimate-addons-for-gutenberg"),value:n,onChange:e=>a({UAGSystem:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"iphone",label:Object(r.__)("iOS","ultimate-addons-for-gutenberg")},{value:"android",label:Object(r.__)("Android","ultimate-addons-for-gutenberg")},{value:"windows",label:Object(r.__)("Windows","ultimate-addons-for-gutenberg")},{value:"open_bsd",label:Object(r.__)("OpenBSD","ultimate-addons-for-gutenberg")},{value:"sun_os",label:Object(r.__)("SunOS","ultimate-addons-for-gutenberg")},{value:"linux",label:Object(r.__)("Linux","ultimate-addons-for-gutenberg")},{value:"mac_os",label:Object(r.__)("Mac OS","ultimate-addons-for-gutenberg")}]})),"browser"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Browser","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({UAGBrowser:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"firefox",label:Object(r.__)("Mozilla Firefox","ultimate-addons-for-gutenberg")},{value:"chrome",label:Object(r.__)("Google Chrome","ultimate-addons-for-gutenberg")},{value:"opera_mini",label:Object(r.__)("Opera Mini","ultimate-addons-for-gutenberg")},{value:"opera",label:Object(r.__)("Opera","ultimate-addons-for-gutenberg")},{value:"safari",label:Object(r.__)("Safari","ultimate-addons-for-gutenberg")},{value:"edge",label:Object(r.__)("Microsoft Edge","ultimate-addons-for-gutenberg")}]})),"userRole"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide for User Role","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({UAGUserRole:e}),options:uagb_blocks_info.user_role})),"day"===o&&React.createElement(React.Fragment,null,React.createElement("p",null,Object(r.__)("Select days you want to disable.","ultimate-addons-for-gutenberg")),d.map((e,t)=>React.createElement("label",{key:t,className:"form-check-label",htmlFor:"flexCheckDefault"},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",name:e.value,value:e.value,sunday:!0,onChange:p,checked:!(null==u||!u.includes(e.value))}),e.label))))})(t),React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"))),"enabled"===vB&&React.createElement(je,{title:Object(r.__)("Responsive Conditions","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},(e=>{const{attributes:t,setAttributes:a}=e,{UAGHideDesktop:l,UAGHideMob:i,UAGHideTab:o,UAGResponsiveConditions:n,UAGDisplayConditions:s}=t;return Object(B.useEffect)(()=>{"responsiveVisibility"===s||n||a({UAGHideDesktop:!1,UAGHideTab:!1,UAGHideMob:!1})},[]),React.createElement(React.Fragment,null,React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Desktop","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGHideDesktop:!t.UAGHideDesktop,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Tablet","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({UAGHideTab:!t.UAGHideTab,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Mobile","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGHideMob:!t.UAGHideMob,UAGResponsiveConditions:!0})})))})(t),React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"))),!i.includes(l)&&React.createElement(je,{title:Object(r.__)("Z-Index","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},(e=>{const{attributes:t,setAttributes:a}=e,{zIndex:l,zIndexTablet:i,zIndexMobile:o}=t;return React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Z-Index","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"zIndex"},tablet:{value:i,label:"zIndexTablet"},mobile:{value:o,label:"zIndexMobile"}},min:-100,max:1e3,displayUnit:!1,setAttributes:a}),React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")))})(t))))})),Object(F.addFilter)("editor.BlockListBlock","uagb/with-aos-wrapper-props",TB),Object(F.addFilter)("blocks.getSaveContent.extraProps","uagb/apply-extra-class",(function(e,t,a){const{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,zIndex:n,zIndexTablet:r,zIndexMobile:s,UAGDisplayConditions:c,UAGResponsiveConditions:u,layout:p}=a,d=Object(F.applyFilters)("uag_reponsive_conditions_compatible_blocks",["uagb/"]);let b=!1;for(const e of d)if(t.name.includes(e)){b=!0;break}return("responsiveVisibility"===c||u&&b)&&(l&&(e.className=Be()(e.className,"uag-hide-desktop")),i&&(e.className=Be()(e.className,"uag-hide-tab")),o&&(e.className=Be()(e.className,"uag-hide-mob"))),(n||r||s)&&(e.className=Be()(e.className,"uag-blocks-common-selector"),e.style={"--z-index-desktop":n+";","--z-index-tablet":r+";","--z-index-mobile":s+";"}),"uagb/container"!==(null==t?void 0:t.name)||"grid"!==p&&"flex"!==p||(e.className=Be()(e.className,"uagb-layout-"+p)),e}));var CB=a(57),SB={copy:React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",height:"18px",viewBox:"0 0 24 24",width:"18px",fill:"#000000"},React.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),React.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})),paste:React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",height:"18px",viewBox:"0 0 24 24",width:"18px",fill:"#000000"},React.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),React.createElement("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"}))};const kB=()=>{const{registerShortcut:e}=Object(n.useDispatch)(CB.store),t=Object(F.applyFilters)("uagb.blocksAttributes",za),[a,l]=Object(B.useState)(!1),[i,o]=Object(B.useState)(!1),{hasMultiSelection:s}=Object(n.select)("core/block-editor"),c=te();Object(B.useLayoutEffect)(()=>(uB.use(),()=>{uB.unuse()}),[]),Object(B.useEffect)(()=>{const t=te("spectraCopyPasteStyles");if(t||c.setItem("spectraCopyPasteStyles",JSON.stringify({})),t){for(const e in t)Math.abs(Date.now()-t[e].stylesSavedTimeStamp)/36e5>=8&&delete t[e];c.setItem("spectraCopyPasteStyles",JSON.stringify(t))}e({name:"uagb/copy",category:"block",description:Object(r.__)("Copy the selected block(s).","ultimate-addons-for-gutenberg"),keyCombination:{modifier:"primaryShift",character:"y"}}),e({name:"uagb/paste",category:"block",description:Object(r.__)("Paste the selected block(s).","ultimate-addons-for-gutenberg"),keyCombination:{modifier:"primaryShift",character:"u"}})},[]);const u=()=>{l(!1);const{getSelectedBlock:e,hasMultiSelection:t,getMultiSelectedBlocks:a}=Object(n.select)("core/block-editor");if(t())return void a().map(e=>(e&&d(e),e));const i=e();i&&d(i)},p=()=>{l(!1);const{getSelectedBlock:e,hasMultiSelection:t,getMultiSelectedBlocks:a}=Object(n.select)("core/block-editor");if(t())return void a().map(e=>(e&&b(e),e));const i=e();i&&b(i)},d=e=>{const a=te("spectraCopyPasteStyles");c.setItem("spectraCopyPasteStyles",JSON.stringify({}));const{attributes:l,name:i,innerBlocks:o}=e;a&&c.setItem("spectraCopyPasteStyles",JSON.stringify({}));let n={};const r={};if(i.includes("uagb/")){const e=i.replace("uagb/","");let s=t[e];a[e+"-styles"]={},a["global-style"]={},s&&a&&("enabled"===uagb_blocks_info.enableAnimationsExtension&&(s={...s,...tB,...aB}),Object.keys(s).map(e=>{if(s[e].UAGCopyPaste){const t=s[e].UAGCopyPaste.styleType;void 0!==l[e]&&null!==l[e]&&(n[t]=l[e],r[e]=l[e])}return e})),o&&(r.innerblocks=o),n.stylesSavedTimeStamp=Date.now(),a[e+"-styles"]=r,a["global-style"]=n,c.setItem("spectraCopyPasteStyles",JSON.stringify(a))}if(i.includes("core/")){const e=i.replace("core/","");n=l,n.stylesSavedTimeStamp=Date.now(),a[`core-${e}-styles`]=n,c.setItem("spectraCopyPasteStyles",JSON.stringify(a))}},b=e=>{const{name:a,clientId:l,innerBlocks:i}=e;let o,n;const r={},s=te("spectraCopyPasteStyles");if(a.includes("uagb/")){o=s["global-style"];const e=a.replace("uagb/",""),c=t[e];if(n=s[e+"-styles"],c&&n){if(g(l,n),i){const e={};i.map((a,l)=>{const i=a.name.replace("uagb/",""),o=t[i];return n.innerblocks[l].name==="uagb/"+i&&Object.keys(o).map(t=>(o[t].UAGCopyPaste&&(e[t]=n.innerblocks[l].attributes[t]),e)),g(a.clientId,e),a})}}else c&&o&&(Object.keys(c).map(e=>{if(c[e].UAGCopyPaste){const t=c[e].UAGCopyPaste.styleType;Object.keys(o).map(a=>(a===t&&(r[e]=o[t]),r))}return r}),g(l,r))}if(a.includes("core/")){const e=a.replace("core/",""),t=["content","values","value","citation","body","caption","foot","head","url","alt","id","linkDestination"];n=s[`core-${e}-styles`],t.map(e=>(n[e]&&delete n[e],e)),g(l,n)}},g=(e,t)=>{Object(n.dispatch)("core/block-editor").updateBlockAttributes(e,t)};Object(CB.useShortcut)("uagb/copy",e=>{u(),e.preventDefault()}),Object(CB.useShortcut)("uagb/paste",e=>{p(),e.preventDefault()});let m=Object(r.__)("Style","ultimate-addons-for-gutenberg");return s()&&(m=Object(r.__)("Styles","ultimate-addons-for-gutenberg")),React.createElement(ge.BlockControls,{group:"block"},React.createElement(Le.ToolbarGroup,{className:"uag-copy-paste-styles"},React.createElement(Le.ToolbarButton,{icon:"admin-appearance",label:Object(r.__)("Spectra Copy/Paste","ultimate-addons-for-gutenberg"),onClick:()=>{(()=>{const e=te("spectraCopyPasteStyles");l(!a),0!==Object.keys(e).length?o(!1):o(!0)})()}})),a&&React.createElement(Le.Popover,{position:"bottom center",className:"uag-copy-paste-styles-popover",focusOnMount:"container",onFocusOutside:()=>{l(!1)}},React.createElement(Le.MenuItem,{onClick:u},SB.copy,Object(r.__)("Copy ","ultimate-addons-for-gutenberg")+m),React.createElement(Le.MenuItem,{icon:"paste",onClick:p,disabled:i},SB.paste,Object(r.__)("Paste ","ultimate-addons-for-gutenberg")+m)))},wB=Object(L.createHigherOrderComponent)(e=>t=>{const{getSelectedBlock:a,getMultiSelectedBlocks:l}=Object(n.select)("core/block-editor"),i=["core/missing","uagb/faq-child","uagb/restaurant-menu-child","uagb/google-map","uagb/content-timeline-child","uagb/tabs-child"],o=a(),r=l();let s=!1,c=!1;if(o){const e=o.name;!e.includes("uagb/")&&!e.includes("core/")||"core/missing"===e||i.includes(e)||(s=!0)}r&&0!==r.length&&r.map(e=>{const t=e.name;return!t.includes("uagb/")&&!t.includes("core/")||"core/missing"===t||i.includes(t)||(c=!0),e});const{isSelected:u}=t;return u?React.createElement(React.Fragment,null,React.createElement(e,t),(s||c)&&React.createElement(kB,null)):React.createElement(e,t)},"displayUAGCopyPasteSettingConditionally");"enabled"===uagb_blocks_info.copy_paste&&Object(F.addFilter)("editor.BlockEdit","uag-copy-paste",wB);const{enableConditionsForCoreBlocks:PB,enableResponsiveConditionsForCoreBlocks:xB}=uagb_blocks_info,AB=Object(L.createHigherOrderComponent)(e=>t=>{const{InspectorAdvancedControls:a}=wp.blockEditor,l=t.name,i=l.includes("core/");return React.createElement(React.Fragment,null,React.createElement(e,t),i&&!["uagb/*","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","core/legacy-widget","core/navigation","core/search","core/file"].includes(l)&&React.createElement(a,null,React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Below setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")),React.createElement(Le.ExternalLink,{href:"https://wpspectra.com/docs/display-conditions-blocks/"},Object(r.__)("Filter to disable responsive/display condition. ","ultimate-addons-for-gutenberg")),"1"===xB&&(e=>{const{attributes:t,setAttributes:a}=e,{UAGHideDesktop:l,UAGHideMob:i,UAGHideTab:o,UAGResponsiveConditions:n,UAGDisplayConditions:s}=t;return Object(B.useEffect)(()=>{"responsiveVisibility"===s||n||a({UAGHideDesktop:!1,UAGHideTab:!1,UAGHideMob:!1})},[]),React.createElement(React.Fragment,null,React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Responsive Conditions","ultimate-addons-for-gutenberg")),React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Desktop","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGHideDesktop:!t.UAGHideDesktop,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Tablet","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({UAGHideTab:!t.UAGHideTab,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Mobile","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGHideMob:!t.UAGHideMob,UAGResponsiveConditions:!0})})))})(t),React.createElement("hr",{className:"uagb-editor__separator"}),(e=>{const{attributes:t,setAttributes:a}=e,{UAGLoggedIn:l,UAGLoggedOut:i,UAGDisplayConditions:o,UAGSystem:n,UAGBrowser:s,UAGUserRole:c,UAGDay:u}=t,p=[{value:"monday",label:Object(r.__)("Monday","ultimate-addons-for-gutenberg")},{value:"tuesday",label:Object(r.__)("Tuesday","ultimate-addons-for-gutenberg")},{value:"wednesday",label:Object(r.__)("Wednesday","ultimate-addons-for-gutenberg")},{value:"thursday",label:Object(r.__)("Thursday","ultimate-addons-for-gutenberg")},{value:"friday",label:Object(r.__)("Friday","ultimate-addons-for-gutenberg")},{value:"saturday",label:Object(r.__)("Saturday","ultimate-addons-for-gutenberg")},{value:"sunday",label:Object(r.__)("Sunday","ultimate-addons-for-gutenberg")}],d=e=>{const{value:t,checked:l}=e.target;a({UAGDay:l?[...u,t]:Y(u,t)})};return React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Display Conditions","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({UAGDisplayConditions:e}),options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"userstate",label:Object(r.__)("User State","ultimate-addons-for-gutenberg")},{value:"userRole",label:Object(r.__)("User Role","ultimate-addons-for-gutenberg")},{value:"browser",label:Object(r.__)("Browser","ultimate-addons-for-gutenberg")},{value:"os",label:Object(r.__)("Operating System","ultimate-addons-for-gutenberg")},{value:"day",label:Object(r.__)("Day","ultimate-addons-for-gutenberg")}]}),"userstate"===o&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged In Users","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGLoggedIn:!t.UAGLoggedIn})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged Out Users","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGLoggedOut:!t.UAGLoggedOut})})),"os"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Operating System","ultimate-addons-for-gutenberg"),value:n,onChange:e=>a({UAGSystem:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"iphone",label:Object(r.__)("iOS","ultimate-addons-for-gutenberg")},{value:"android",label:Object(r.__)("Android","ultimate-addons-for-gutenberg")},{value:"windows",label:Object(r.__)("Windows","ultimate-addons-for-gutenberg")},{value:"open_bsd",label:Object(r.__)("OpenBSD","ultimate-addons-for-gutenberg")},{value:"sun_os",label:Object(r.__)("SunOS","ultimate-addons-for-gutenberg")},{value:"linux",label:Object(r.__)("Linux","ultimate-addons-for-gutenberg")},{value:"mac_os",label:Object(r.__)("Mac OS","ultimate-addons-for-gutenberg")}]})),"browser"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Browser","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({UAGBrowser:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"firefox",label:Object(r.__)("Mozilla Firefox","ultimate-addons-for-gutenberg")},{value:"chrome",label:Object(r.__)("Google Chrome","ultimate-addons-for-gutenberg")},{value:"opera_mini",label:Object(r.__)("Opera Mini","ultimate-addons-for-gutenberg")},{value:"opera",label:Object(r.__)("Opera","ultimate-addons-for-gutenberg")},{value:"safari",label:Object(r.__)("Safari","ultimate-addons-for-gutenberg")},{value:"edge",label:Object(r.__)("Microsoft Edge","ultimate-addons-for-gutenberg")}]})),"userRole"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide for User Role","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({UAGUserRole:e}),options:uagb_blocks_info.user_role})),"day"===o&&React.createElement(React.Fragment,null,React.createElement("p",null,"Select days you want to disable."),p.map((e,t)=>React.createElement("label",{key:t,className:"form-check-label",htmlFor:"flexCheckDefault"},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",name:e.value,value:e.value,sunday:!0,onChange:d,checked:!(null==u||!u.includes(e.value))}),e.label))))})(t)))},"AdvancedControlsBlock");"1"===PB&&(Object(F.addFilter)("editor.BlockEdit","uagb/advanced-control-block",AB),Object(F.addFilter)("blocks.getSaveContent.extraProps","uagb/apply-extra-class-core",(function(e,t,a){const{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,UAGDisplayConditions:n,UAGResponsiveConditions:r}=a,s=t.name.includes("core/");return("responsiveVisibility"===n||r&&s)&&(l&&(e.className=Be()(e.className,"uag-hide-desktop")),i&&(e.className=Be()(e.className,"uag-hide-tab")),o&&(e.className=Be()(e.className,"uag-hide-mob"))),e})));const GB="uagb-remove-group-parent-tabs",MB=e=>{const{name:t}=e,a=()=>!!document.getElementById(GB);return Object(B.useEffect)(()=>{t&&(t.includes("uagb/")?a()||(()=>{const e=document.createElement("style");e.setAttribute("id",GB),e.textContent='.components-panel .block-editor-block-inspector :not(.uag-control-tabs) > div[role="tablist"].components-tab-panel__tabs{display:none;}',document.head.appendChild(e)})():a()&&document.getElementById(GB).remove())},[t]),null},RB=Object(L.createHigherOrderComponent)(e=>t=>{const{isSelected:a}=t;return a?React.createElement(React.Fragment,null,React.createElement(e,t),React.createElement(MB,t)):React.createElement(e,t)},"addUagbSelectedCss");Object(F.addFilter)("editor.BlockEdit","add-uagb-block-selected-css",RB);var BB,UB=a(146),EB=0,OB={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},LB={};LB.locals=UB.a.locals||{},LB.use=function(){return EB++||(BB=we()(UB.a,OB)),LB},LB.unuse=function(){EB>0&&!--EB&&(BB(),BB=null)};var HB=LB,FB=Object(L.compose)(Object(n.withSelect)(e=>({getDefaultAllowedQuickSidebarBlocks:e(w).getDefaultAllowedQuickSidebarBlocks()})),Object(n.withDispatch)(e=>({updateDefaultAllowedQuickSidebarBlocks:t=>e("spectra").updateDefaultAllowedQuickSidebarBlocks(t)})))(e=>{const{updateDefaultAllowedQuickSidebarBlocks:t,getDefaultAllowedQuickSidebarBlocks:a}=e,{block:l,id:i,create:o,blockInsertionPoint:s,getSelectedBlockClientId:c,getSelectedBlockAllowedBlocks:u,getBlockRootClientId:p}=e,[d,b]=Object(B.useState)(!1),g=Object(B.useRef)(!1),{createNotice:m}=Object(n.useDispatch)("core/notices"),[y,f]=Object(B.useState)(0),h="quick-action-sidebar/remove-notices-flow/removed-notice/"+y,v=()=>b(!0),_=()=>b(!1),T=React.createElement(Le.Popover,{placement:"right",key:i,className:"spectra-ee-quick-access__sidebar--blocks--block--icon--name"},React.createElement("div",{className:"block-title"},React.createElement("div",{onClick:()=>{var e;(e=>{t(e);const a={security:uagb_blocks_info.uagb_ajax_nonce,defaultAllowedQuickSidebarBlocks:JSON.stringify(e)};$l({url:uagb_blocks_info.ajax_url,action:"uag_global_update_allowed_block",data:a})})(((e,t)=>e.filter(e=>e!==t))(a,(e=l).name)),f(e=>e+1),m("success",Object(r.sprintf)( +Object(r.__)("This image has an empty title attribute; its file name is %s","ultimate-addons-for-gutenberg"),J):Object(r.__)("This image has an empty title attribute","ultimate-addons-for-gutenberg"));const ee=d&&i&&(o||s)&&(i!==o||i!==s);let te,ae,ie=React.createElement(React.Fragment,null,React.createElement("img",{srcSet:ee?`${a||i} ${o?","+o+" 780w":""}${s?", "+s+" 360w":""}`:null,src:a||i,alt:"presentation"===_?"":X,title:"presentation"===_?"":Q,onLoad:e=>{var t,a;V({loadedNaturalWidth:null===(t=e.target)||void 0===t?void 0:t.naturalWidth,loadedNaturalHeight:null===(a=e.target)||void 0===a?void 0:a.naturalHeight})},ref:R,loading:v?void 0:"lazy",role:_}),a&&React.createElement(Le.Spinner,null));if(Z&&Y&&K){const e=Y>Z,t=K/Y;te=e?Z:Y,ae=e?Z*t:K}Object(B.useEffect)(()=>{C||q(!1),C&&Gd(d)&&M()},[C]);const oe=d&&Y&&K&&F,ne=!H&&oe&&!W;if(oe&&W)ie=React.createElement(ge.__experimentalImageEditor,{id:d,url:i,width:b,height:y,clientWidth:Z,naturalHeight:K,naturalWidth:Y,onSaveImage:e=>T(e),onFinishEditing:()=>{q(!1)}});else if($&&te){const e=b||te,t=y||ae,a=Y/K,l=Y{if(E(!0),"Tablet"===O){const e=g||780;T({widthTablet:Math.abs(parseInt(e+o.width,10)),heightTablet:Math.abs(parseInt(f+o.height,10))})}else if("Mobile"===O){const e=m||320;T({widthMobile:Math.abs(parseInt(e+o.width,10)),heightMobile:Math.abs(parseInt(h+o.height,10))})}else T({width:Math.abs(parseInt(e+o.width,10)),height:Math.abs(parseInt(t+o.height,10))})}},ie)}else"full"!==p&&(ie=React.createElement("div",null,ie));const re=React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{group:"block"},ne&&React.createElement(Le.ToolbarButton,{onClick:()=>q(!0),icon:Ld,label:Object(r.__)("Crop","ultimate-addons-for-gutenberg")})),!H&&!W&&React.createElement(ge.BlockControls,{group:"other"},React.createElement(ge.MediaReplaceFlow,{mediaId:d,mediaURL:i,allowedTypes:Hd,accept:"image/*",onSelect:k,onSelectURL:w,onError:P,onCloseModal:S})));return React.createElement(React.Fragment,null,!a&&re,ie)}function jd(e){let{attributes:t,isSelected:a,setAttributes:l,captionRef:i}=e;const{caption:o,enableCaption:n,heading:s,headingTag:c,layout:u,overlayContentPosition:p,seperatorStyle:d,seperatorPosition:b}=t,g=Object(B.useRef)();Object(B.useEffect)(()=>{g.current=s},[o]);const m=React.createElement(React.Fragment,null,(!ge.RichText.isEmpty(s)||a)&&React.createElement(ge.RichText,{ref:g,tagName:c,className:"uagb-image-heading","aria-label":Object(r.__)("Image overlay heading text","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Add Heading","ultimate-addons-for-gutenberg"),value:s,onChange:e=>l({heading:e})})),y=React.createElement(React.Fragment,null,(!ge.RichText.isEmpty(o)||a)&&React.createElement(ge.RichText,{ref:i,tagName:"figcaption",className:"uagb-image-caption","aria-label":Object(r.__)("Image caption text","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Add caption","ultimate-addons-for-gutenberg"),value:o,onChange:e=>l({caption:e})})),f="none"!==d&&React.createElement("div",{className:"uagb-image-separator"});return React.createElement(React.Fragment,null,"overlay"===u?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+p.replace(" ","-")},"before_title"===b&&f,m,"after_title"===b&&f,y,"after_sub_title"===b&&f)):React.createElement(React.Fragment,null,n&&y))}var zd,Dd=a(102),Nd=0,Id={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Vd={};Vd.locals=Dd.a.locals||{},Vd.use=function(){return Nd++||(zd=we()(Dd.a,Id)),Vd},Vd.unuse=function(){Nd>0&&!--Nd&&(zd(),zd=null)};var Wd=Vd;function qd(){return(qd=Object.assign||function(e){for(var t=1;t{let{attributes:t}=e;const{setAttributes:a,className:l,isSelected:i,insertBlocksAfter:o,onReplace:s,context:c,clientId:u,deviceType:p}=e;null!=e&&e.loopUrl&&(t={...t,url:e.loopUrl}),null!=e&&e.loopAlt&&(t={...t,alt:e.loopAlt}),null!=e&&e.loopTitle&&(t={...t,title:e.loopTitle}),null!=e&&e.loopWidth&&(t={...t,width:e.loopWidth});const{block_id:d,layout:b,url:g,alt:m,title:y,caption:f,align:h,id:v,linkTarget:_,linkClass:T,rel:C,imageHoverEffect:S,href:k,linkDestination:w,sizeSlug:P,sizeSlugTablet:x,sizeSlugMobile:A}=t;Object(B.useLayoutEffect)(()=>(Wd.use(),()=>{Wd.unuse()}),[]);const{createNotice:G}=Object(n.useDispatch)("core/notices"),[M,R]=Object(B.useState)(),[U,E]=Object(B.useState)(),O=Object(B.useRef)();Object(B.useEffect)(()=>{O.current=m},[m]);const L=Object(B.useRef)();Object(B.useEffect)(()=>{L.current=y},[y]);const H=Object(B.useRef)();Object(B.useEffect)(()=>{H.current=f},[f]);const F=Object(B.useRef)(),{imageDefaultSize:j,mediaUpload:z}=Object(n.useSelect)(e=>{const{getSettings:t}=e(ge.store),{imageDefaultSize:a,mediaUpload:l}=t();return{imageDefaultSize:a,mediaUpload:l}},[]),{image:D}=Object(n.useSelect)(e=>{const{getMedia:t}=e(be.store);return{image:v&&i?t(v):null}},[v,i]);function N(){var e;Gd(null===(e=t)||void 0===e?void 0:e.id)&&a({url:void 0,id:void 0})}function I(e){G("error",e,{type:"snackbar"})}function V(e){var l,i,o,n,r;if(!e||!e.url)return void a({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if(Object(wd.isBlobURL)(e.url))return void R(e.url);R();let s=Pd(e,j);"custom"===P&&(delete s.width,delete s.height),H.current&&!s.caption&&(s={...s,alt:s.alt,title:s.title,id:s.id,link:s.link});let c={};e.id&&e.id===v?c={url:g}:("custom"!==P&&(c={width:void 0,height:void 0,sizeSlug:Ad(e,j)?j:"full",...c}),"custom"!==x&&(c={...c,sizeSlugTablet:Ad(e,j)?j:"full"}),"custom"!==A&&(c={...c,sizeSlugMobile:Ad(e,j)?j:"full"}));let u,p=t.linkDestination;if(!p)switch((null===(l=wp)||void 0===l||null===(i=l.media)||void 0===i||null===(o=i.view)||void 0===o||null===(n=o.settings)||void 0===n||null===(r=n.defaultProps)||void 0===r?void 0:r.link)||"none"){case"file":case"media":p="media";break;case"post":case"attachment":p="attachment";break;case"custom":p="custom";break;case"none":p="none"}switch(p){case"media":u=e.url;break;case"attachment":u=e.link}s.href=u,s={...s,...Md(e,"Tablet"),...Md(e,"Mobile")};const d={...s,...c,linkDestination:p};a(d)}function W(e){if(e!==g){let t={url:e,urlTablet:e,urlMobile:e,id:void 0};"custom"!==P&&(t={...t,width:void 0,height:void 0,sizeSlug:j}),"custom"!==x&&(t={...t,widthTablet:void 0,heightTablet:void 0,sizeSlugTablet:j}),"custom"!==A&&(t={...t,heightMobile:void 0,widthMobile:void 0,sizeSlugMobile:j}),a(t)}}let q=((e,t)=>!e&&Object(wd.isBlobURL)(t))(v,g);Object(B.useEffect)(()=>{if(!q)return;const e=Object(wd.getBlobByURL)(g);e&&z({filesList:[e],onFileChange:e=>{let[t]=e;V(t)},allowedTypes:Hd,onError:e=>{q=!1,G("error",e,{type:"snackbar"}),a({src:void 0,id:void 0,url:void 0})}})},[]),Object(B.useEffect)(()=>{q?R(g):Object(wd.revokeBlobURL)(M)},[q,g]);const Z=xd(v,g)?g:void 0,$=!!g&&React.createElement("img",{alt:Object(r.__)("Edit image","ultimate-addons-for-gutenberg"),title:Object(r.__)("Edit image","ultimate-addons-for-gutenberg"),className:"edit-image-preview",src:g});Object(B.useEffect)(()=>{xd(v,g)&&i&&!U&&window.fetch(g).then(e=>e.blob()).then(e=>E(e)).catch(()=>{})},[v,g,i,U]);const Y=Object(ge.useBlockProps)({ref:F});return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{group:"block"},React.createElement(ge.__experimentalImageURLInputUI,{url:k||"",onChangeUrl:function(e){a(e)},linkDestination:w,mediaUrl:D&&D.source_url||g,mediaLink:D&&D.link,linkTarget:_,linkClass:T,rel:C}),U&&React.createElement(Le.ToolbarButton,{onClick:function(){z({filesList:[U],onFileChange(e){let[t]=e;V(t),Object(wd.isBlobURL)(null==t?void 0:t.url)||(E(),G("success",Object(r.__)("Image uploaded.","ultimate-addons-for-gutenberg"),{type:"snackbar"}))},allowedTypes:Hd,onError(e){G("error",e,{type:"snackbar"})}})},icon:Ed,label:Object(r.__)("Upload external image","ultimate-addons-for-gutenberg")})),React.createElement("div",qd({},Y,{className:Be()(l,"uagb-editor-preview-mode-"+p.toLowerCase(),"uagb-block-"+d,"wp-block-uagb-image--layout-"+b,"wp-block-uagb-image--effect-"+S,"wp-block-uagb-image--align-"+(h||"none"))}),(M||g)&&React.createElement("figure",{className:"wp-block-uagb-image__figure"},React.createElement(Fd,{temporaryURL:M,attributes:t,setAttributes:a,isSelected:i,insertBlocksAfter:o,onReplace:s,onSelectImage:V,onSelectURL:W,onUploadError:I,containerRef:F,context:c,clientId:u,onCloseModal:N,onImageLoadError:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||a({url:void 0,id:void 0})}}),React.createElement(jd,{captionRef:H,attributes:t,setAttributes:a,isSelected:i})),React.createElement(ge.MediaPlaceholder,{icon:React.createElement(ge.BlockIcon,{icon:se.image}),labels:{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),instructions:Object(r.__)("Upload an image file, pick one from your media library, or add one with a URL.","ultimate-addons-for-gutenberg")},onSelect:V,onSelectURL:W,onError:I,onClose:N,accept:"image/*",allowedTypes:Hd,value:{id:v,src:Z},mediaPreview:$,disableMediaButtons:M||g})))};Zd.propTypes={},Zd.defaultProps={};var $d=Object(B.memo)(Zd);a(162);var Yd=Object(L.compose)((function(e){return t=>{var a,l;const{attributes:i,context:o}=t,n=null==i||null===(a=i.dynamicContent)||void 0===a||null===(l=a.bgImage)||void 0===l?void 0:l.enable;if(t={...t,hasDynamicContent:n},!n)return React.createElement(e,t);const r=Object(F.applyFilters)("spectra_filter_dc_image",i,o);return t={...t,attributes:r},React.createElement(e,t)}}),ls,fe,uc)((function(e){const{isSelected:t,attributes:a,name:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n,id:r},deviceType:s,context:c,setAttributes:u,clientId:p,hasDynamicContent:d}=e;Object(B.useEffect)(()=>{var e;!d||null!=a&&null!==(e=a.context)&&void 0!==e&&e.postId||u(e=>({...e,context:c}))},[d,null==c?void 0:c.postId]),Object(B.useEffect)(()=>{ys()},[s]);const b=Object(B.useMemo)(()=>gd(a,p,l,s),[a,s]);return Object(B.useEffect)(()=>{he(e)},[i,o,n,s]),Object(B.useMemo)(()=>{r&&(e=>{const t=window.location.protocol,a=!!(l=e.url)&&(l&&l.indexOf("http:")>=0?"http:":"https:");var l;a!==t&&["url","urlMobile","urlTablet"].map(l=>{e[l]=e[l].replace(a,t)})})(e.attributes)},[a]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:b}),t&&React.createElement(Bd,e),React.createElement($d,e))}));const Kd=ce("overlay");var Jd={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},imageBoxShadowColor:{type:"string",UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...Kd};const Xd=ce("overlay");var Qd={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},imageBoxShadowColor:{type:"string",default:"#00000070",UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...Xd};const eb=ce("overlay");var tb={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},imgRole:{type:"string",default:"img"},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},captionFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headingFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",isGBSStyle:!0,UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},useSeparateBoxShadows:{type:"boolean",default:!0},imageBoxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-position"}},imageBoxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"image-shadow-color-hover"}},imageBoxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset-hover"}},imageBoxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset-hover"}},imageBoxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur-hover"}},imageBoxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread-hover"}},imageBoxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position-hover"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...eb};const ab=ce("overlay");var lb=[{attributes:tb,save:e=>{const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} 1024w${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h}),P=()=>f?f+" noopener":"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:tb,save:e=>{const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h}),P=()=>f?f+" noopener":"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:Jd,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h}),P=()=>f?f.trim():"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:Qd,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h,loading:"lazy"}),P=()=>f?f.trim():"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:tb,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,align:g,id:m,linkTarget:y,rel:f,title:h,heading:v,headingTag:_,headingId:T,overlayContentPosition:C,seperatorStyle:S,seperatorPosition:k}=e.attributes,w=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,src:l,alt:n,className:m?"uag-image-"+m:null,width:d,height:b,title:h,loading:"lazy"}),P=()=>f?f.trim():"noopener",x=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:y,rel:P()},w):w),A=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(v)&&React.createElement(ge.RichText.Content,{tagName:_,id:T,className:"uagb-image-heading",value:v})),G=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),M="none"!==S&&React.createElement("div",{className:"uagb-image-separator"}),R=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:y,rel:P()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(g||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},x,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+C.replace(" ","-")},R,"before_title"===k&&M,A,"after_title"===k&&M,G,"after_sub_title"===k&&M)):React.createElement(React.Fragment,null,s&&G)))}},{attributes:tb,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,naturalHeight:g,naturalWidth:m,align:y,id:f,linkTarget:h,rel:v,title:_,heading:T,headingTag:C,headingId:S,overlayContentPosition:k,seperatorStyle:w,seperatorPosition:P}=e.attributes,x=React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:l,alt:n,className:f?"uag-image-"+f:null,width:d||m,height:b||g,title:_,loading:"lazy"}),A=()=>v?v.trim():"noopener",G=React.createElement(React.Fragment,null,u?React.createElement("a",{className:p,href:u,target:h,rel:A()},x):x),M=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(T)&&React.createElement(ge.RichText.Content,{tagName:C,id:S,className:"uagb-image-heading",value:T})),R=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),B="none"!==w&&React.createElement("div",{className:"uagb-image-separator"}),U=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:h,rel:A()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(y||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},G,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+k.replace(" ","-")},U,"before_title"===P&&B,M,"after_title"===P&&B,R,"after_sub_title"===P&&B)):React.createElement(React.Fragment,null,s&&R)))}},{attributes:tb,save:function(e){const{block_id:t,layout:a,url:l,urlTablet:i,urlMobile:o,alt:n,caption:r,enableCaption:s,imageHoverEffect:c,href:u,linkClass:p,width:d,height:b,naturalHeight:g,naturalWidth:m,align:y,id:f,linkTarget:h,rel:v,title:_,heading:T,headingTag:C,headingId:S,overlayContentPosition:k,seperatorStyle:w,seperatorPosition:P}=e.attributes,x=l&&""!==l&&React.createElement("img",{srcSet:`${l} ${i?","+i+" 780w":""}${o?", "+o+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:l,alt:n,className:f?"uag-image-"+f:null,width:d||m,height:b||g,title:_,loading:"lazy"}),A=()=>v?v.trim():"noopener",G=React.createElement(React.Fragment,null,u&&""!==u?React.createElement("a",{className:p,href:u,target:h,rel:A()},x):x),M=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(T)&&React.createElement(ge.RichText.Content,{tagName:C,id:S,className:"uagb-image-heading",value:T})),R=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(r)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:r})),B="none"!==w&&React.createElement("div",{className:"uagb-image-separator"}),U=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+p,href:u,target:h,rel:A()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"wp-block-uagb-image","wp-block-uagb-image--layout-"+a,"wp-block-uagb-image--effect-"+c,"wp-block-uagb-image--align-"+(y||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},G,"overlay"===a?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+k.replace(" ","-")},U,"before_title"===P&&B,M,"after_title"===P&&B,R,"after_sub_title"===P&&B)):React.createElement(React.Fragment,null,s&&R)))}},{attributes:{block_id:{type:"string"},isPreview:{type:"boolean",default:!1},layout:{type:"string",default:"default",UAGCopyPaste:{styleType:"image-layout"}},disableLazyLoad:{type:"boolean",default:!1},url:{type:"string",default:""},urlTablet:{type:"string",default:""},urlMobile:{type:"string",default:""},alt:{type:"string",default:""},imgRole:{type:"string",default:"img"},enableCaption:{type:"boolean",default:!1},caption:{type:"string",default:""},align:{type:"string",default:"",UAGCopyPaste:{styleType:"image-align"}},alignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-tablet"}},alignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-align-mobile"}},id:{type:"integer",default:""},href:{type:"string",default:""},rel:{type:"string",default:""},linkClass:{type:"string",default:""},linkDestination:{type:"string",default:""},title:{type:"string",default:""},width:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width"}},widthTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-tablet"}},widthMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-width-mobile"}},height:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height"}},heightTablet:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-tablet"}},heightMobile:{type:"integer",default:"",UAGCopyPaste:{styleType:"image-height-mobile"}},naturalWidth:{type:"integer",default:""},naturalHeight:{type:"integer",default:""},linkTarget:{type:"string",default:""},sizeSlug:{type:"string",default:""},sizeSlugTablet:{type:"string",default:""},sizeSlugMobile:{type:"string",default:""},imageTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin"}},imageRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin"}},imageLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin"}},imageBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin"}},imageTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-tablet"}},imageRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-tablet"}},imageLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-tablet"}},imageBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-tablet"}},imageTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-top-margin-mobile"}},imageRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-right-margin-mobile"}},imageLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-left-margin-mobile"}},imageBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-bottom-margin-mobile"}},imageMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit"}},imageMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-tablet"}},imageMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-margin-unit-mobile"}},imageMarginLink:{type:"boolean",default:!0},captionText:{type:"string",default:""},captionShowOn:{type:"string",default:"hover"},captionLoadGoogleFonts:{type:"boolean",default:!1},captionColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},captionAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-align"}},captionFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},captionFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},captionFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},captionTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},captionDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},captionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},captionFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},captionFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},captionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},captionFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},captionFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},captionFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},captionLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},captionLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},captionLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},captionTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},captionRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},captionLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},captionBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},captionTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},captionRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},captionLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},captionBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},captionTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},captionRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},captionLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},captionBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},captionMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},captionMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},captionMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},captionMarginLink:{type:"boolean",default:!1},heading:{type:"string",default:""},headingShowOn:{type:"string",default:"always"},headingTag:{type:"string",default:"h2"},headingId:{type:"string"},headingLoadGoogleFonts:{type:"boolean",default:!1},headingColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},headingFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headingFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headingFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headingTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headingDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headingFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headingFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headingFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headingLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height"}},headingFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headingFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headingFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headingLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headingLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headingLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},headingTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headingRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headingLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headingBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},headingTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headingRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headingLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},headingBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headingTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headingRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headingLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headingBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headingMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit"}},headingMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},headingMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},headingMarginLink:{type:"boolean",default:!1},overlayPositionFromEdge:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-position-from-edge"}},overlayPositionFromEdgeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"overlay-position-from-edge-unit"}},overlayContentPosition:{type:"string",default:"center center",UAGCopyPaste:{styleType:"overlay-content-position"}},overlayBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-background"}},overlayOpacity:{type:"float",default:.2,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-opacity"}},overlayHoverOpacity:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"overlay-hover-opacity"}},seperatorShowOn:{type:"string",default:"hover",isGBSStyle:!0,UAGCopyPaste:{styleType:"seperator-show-on"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"}},seperatorPosition:{type:"string",default:"after_title"},seperatorWidth:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},seperatorThicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-width-unit"}},seperatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},seperatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},seperatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},seperatorBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},seperatorTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},seperatorRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},seperatorBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},seperatorTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},seperatorRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},seperatorMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},seperatorMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"}},seperatorMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"}},seperatorMarginLink:{type:"boolean",default:!1},imageHoverEffect:{type:"string",default:"static"},objectFit:{type:"string"},objectFitTablet:{type:"string"},objectFitMobile:{type:"string"},useSeparateBoxShadows:{type:"boolean",default:!0},imageBoxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-color"}},imageBoxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-h-offset"}},imageBoxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-v-offset"}},imageBoxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-blur"}},imageBoxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-spread"}},imageBoxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-shadow-position"}},imageBoxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"image-shadow-color-hover"}},imageBoxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-h-offset-hover"}},imageBoxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"image-shadow-v-offset-hover"}},imageBoxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-blur-hover"}},imageBoxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"image-shadow-spread-hover"}},imageBoxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"image-shadow-position-hover"}},maskShape:{type:"string",default:"none"},maskCustomShape:{type:"object",default:{url:"",alt:"mask shape"}},maskSize:{type:"string",default:"auto"},maskPosition:{type:"string",default:"center center"},maskRepeat:{type:"string",default:"no-repeat"},headingLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},headingLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},headingLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},headingLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},captionLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},captionLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},captionLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},captionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},customHeightSetDesktop:{type:"boolean",default:!1},customHeightSetTablet:{type:"boolean",default:!1},customHeightSetMobile:{type:"boolean",default:!1},...ce("image"),...ab},save:function(e){var t,a;const{attributes:l}=e,{block_id:i,layout:o,url:n,urlTablet:r,urlMobile:s,alt:c,caption:u,enableCaption:p,imageHoverEffect:d,href:b,linkClass:g,width:m,height:y,naturalHeight:f,naturalWidth:h,align:v,id:_,linkTarget:T,rel:C,title:S,heading:k,headingTag:w,headingId:P,overlayContentPosition:x,seperatorStyle:A,seperatorPosition:G,disableLazyLoad:M}=e.attributes,R=n&&""!==n&&React.createElement("img",{srcSet:`${n} ${r?","+r+" 780w":""}${s?", "+s+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:n,alt:c,className:_?"uag-image-"+_:null,width:m||h,height:y||f,title:S,loading:M?void 0:"lazy"}),B=()=>C?C.trim():"noopener",U=React.createElement(React.Fragment,null,b&&""!==b?React.createElement("a",{className:g,href:b,target:T,rel:B()},R):R),E=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(k)&&React.createElement(ge.RichText.Content,{tagName:w,id:P,className:"uagb-image-heading",value:k})),O=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(u)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:u})),L="none"!==A&&React.createElement("div",{className:"uagb-image-separator"}),H=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+g,href:b,target:T,rel:B()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+i,"wp-block-uagb-image","wp-block-uagb-image--layout-"+o,"wp-block-uagb-image--effect-"+d,"wp-block-uagb-image--align-"+(v||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},U,"overlay"===o?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+x.replace(" ","-")},(!0===(null==l||null===(t=l.dynamicContent)||void 0===t||null===(a=t.bgImageLink)||void 0===a?void 0:a.enable)||b)&&H,"before_title"===G&&L,E,"after_title"===G&&L,O,"after_sub_title"===G&&L)):React.createElement(React.Fragment,null,p&&O)))}}],ib={from:[{type:"block",blocks:["core/image"],transform:e=>{let{url:t,sizeSlug:a}=e;return Object(de.createBlock)("uagb/image",{url:t,sizeSlug:a})}},{type:"block",blocks:["core/post-featured-image"],transform:e=>{let{sizeSlug:t}=e;return Object(de.createBlock)("uagb/image",{useDynamicData:!0,dynamicContentType:"featured-image",sizeSlug:t})}},{type:"block",blocks:["core/cover"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be,ge,me,ye,fe,he,ve,_e,Te,Ce,Se,ke,we,Pe,xe,Ae,Ge,Me,Re,Be,Ue,Ee,Oe,Le,He,Fe,je,ze,De,Ne,Ie,Ve,We,qe,Ze,$e,Ye,Ke,Je,Xe,Qe,et,tt,at,lt,it,ot,nt,rt,st,ct,ut,pt,dt,bt,gt,mt,yt,ft,ht,vt,_t,Tt,Ct,St,kt,wt,Pt,xt,At,Gt,Mt,Rt,Bt,Ut,Et,Ot,Lt,Ht,Ft,jt,zt,Dt,Nt,It,Vt;const Wt=V("object"!=typeof(null==e||null===(a=e.style)||void 0===a||null===(l=a.border)||void 0===l?void 0:l.radius)&&(null==e||null===(i=e.style)||void 0===i||null===(o=i.border)||void 0===o?void 0:o.radius)||(null==e||null===(n=e.style)||void 0===n||null===(r=n.border)||void 0===r||null===(s=r.radius)||void 0===s?void 0:s.topRight)||(null==e||null===(c=e.style)||void 0===c||null===(u=c.border)||void 0===u||null===(p=u.radius)||void 0===p?void 0:p.topLeft)||(null==e||null===(d=e.style)||void 0===d||null===(b=d.border)||void 0===b||null===(g=b.radius)||void 0===g?void 0:g.bottomRight)||(null==e||null===(m=e.style)||void 0===m||null===(y=m.border)||void 0===y||null===(f=y.radius)||void 0===f?void 0:f.bottomLeft)||""),qt=(null===(h=t[0])||void 0===h?void 0:h.attributes)||{},Zt=Boolean(qt.content);let $t;var Yt,Kt;if(null!=qt&&null!==(v=qt.style)&&void 0!==v&&null!==(_=v.color)&&void 0!==_&&_.text)$t=null==qt||null===(Yt=qt.style)||void 0===Yt||null===(Kt=Yt.color)||void 0===Kt?void 0:Kt.text;else if(Pc(null==qt?void 0:qt.textColor))$t=Pc(null==qt?void 0:qt.textColor);else if(null!=e&&null!==(T=e.style)&&void 0!==T&&null!==(C=T.color)&&void 0!==C&&C.text){var Jt,Xt;$t=null==e||null===(Jt=e.style)||void 0===Jt||null===(Xt=Jt.color)||void 0===Xt?void 0:Xt.text}else $t=Pc(null==e?void 0:e.textColor)?Pc(null==e?void 0:e.textColor):"";return Object(de.createBlock)("uagb/image",{url:e.url,alt:e.alt,title:e.title,enableCaption:Zt,headingColor:$t,heading:Zt?qt.content:"",headingFontWeight:(null==qt||null===(S=qt.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.fontWeight)||(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.fontWeight)||"",headingFontSize:N((null==qt||null===(x=qt.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.fontSize)||(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.fontSize)||""),headingFontSizeType:I((null==qt||null===(R=qt.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.fontSize)||(null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.fontSize)||""),headingLetterSpacing:N((null==qt||null===(O=qt.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.letterSpacing)||(null==e||null===(H=e.style)||void 0===H||null===(F=H.typography)||void 0===F?void 0:F.letterSpacing)||""),headingLetterSpacingType:I((null==qt||null===(j=qt.style)||void 0===j||null===(z=j.typography)||void 0===z?void 0:z.letterSpacing)||(null==e||null===(D=e.style)||void 0===D||null===(W=D.typography)||void 0===W?void 0:W.letterSpacing)||""),headingDecoration:(null==qt||null===(q=qt.style)||void 0===q||null===(Z=q.typography)||void 0===Z?void 0:Z.textDecoration)||(null==e||null===($=e.style)||void 0===$||null===(Y=$.typography)||void 0===Y?void 0:Y.textDecoration)||"",headingTransform:(null==qt||null===(K=qt.style)||void 0===K||null===(J=K.typography)||void 0===J?void 0:J.textTransform)||(null==e||null===(X=e.style)||void 0===X||null===(Q=X.typography)||void 0===Q?void 0:Q.textTransform)||"",headingLineHeight:N((null==qt||null===(ee=qt.style)||void 0===ee||null===(te=ee.typography)||void 0===te?void 0:te.lineHeight)||(null==e||null===(ae=e.style)||void 0===ae||null===(le=ae.typography)||void 0===le?void 0:le.lineHeight)||""),imageTopMargin:N((null==e||null===(ie=e.style)||void 0===ie||null===(oe=ie.spacing)||void 0===oe||null===(ne=oe.margin)||void 0===ne?void 0:ne.top)||""),imageBottomMargin:N((null==e||null===(re=e.style)||void 0===re||null===(se=re.spacing)||void 0===se||null===(ce=se.margin)||void 0===ce?void 0:ce.bottom)||""),imageMarginLink:!1,imageMarginUnit:I((null==e||null===(ue=e.style)||void 0===ue||null===(pe=ue.spacing)||void 0===pe||null===(be=pe.margin)||void 0===be?void 0:be.top)||"px"),headingTopMargin:N((null==qt||null===(ge=qt.style)||void 0===ge||null===(me=ge.spacing)||void 0===me||null===(ye=me.margin)||void 0===ye?void 0:ye.top)||""),headingRightMargin:N((null==qt||null===(fe=qt.style)||void 0===fe||null===(he=fe.spacing)||void 0===he||null===(ve=he.margin)||void 0===ve?void 0:ve.right)||""),headingLeftMargin:N((null==qt||null===(_e=qt.style)||void 0===_e||null===(Te=_e.spacing)||void 0===Te||null===(Ce=Te.margin)||void 0===Ce?void 0:Ce.left)||""),headingBottomMargin:N((null==qt||null===(Se=qt.style)||void 0===Se||null===(ke=Se.spacing)||void 0===ke||null===(we=ke.margin)||void 0===we?void 0:we.bottom)||""),headingMarginUnit:I((null==qt||null===(Pe=qt.style)||void 0===Pe||null===(xe=Pe.spacing)||void 0===xe||null===(Ae=xe.margin)||void 0===Ae?void 0:Ae.top)||""),align:"center",imageBorderStyle:(null==e||null===(Ge=e.style)||void 0===Ge||null===(Me=Ge.border)||void 0===Me?void 0:Me.style)||(null!=e&&null!==(Re=e.style)&&void 0!==Re&&null!==(Be=Re.border)&&void 0!==Be&&Be.width||null!=e&&null!==(Ue=e.style)&&void 0!==Ue&&null!==(Ee=Ue.border)&&void 0!==Ee&&null!==(Oe=Ee.top)&&void 0!==Oe&&Oe.width?(null==e||null===(Le=e.style)||void 0===Le||null===(He=Le.border)||void 0===He?void 0:He.style)||"solid":"none"),imageBorderTopWidth:N((null==e||null===(Fe=e.style)||void 0===Fe||null===(je=Fe.border)||void 0===je?void 0:je.width)||(null==e||null===(ze=e.style)||void 0===ze||null===(De=ze.border)||void 0===De||null===(Ne=De.top)||void 0===Ne?void 0:Ne.width)||""),imageBorderBottomWidth:N((null==e||null===(Ie=e.style)||void 0===Ie||null===(Ve=Ie.border)||void 0===Ve?void 0:Ve.width)||(null==e||null===(We=e.style)||void 0===We||null===(qe=We.border)||void 0===qe||null===(Ze=qe.bottom)||void 0===Ze?void 0:Ze.width)||""),imageBorderLeftWidth:N((null==e||null===($e=e.style)||void 0===$e||null===(Ye=$e.border)||void 0===Ye?void 0:Ye.width)||(null==e||null===(Ke=e.style)||void 0===Ke||null===(Je=Ke.border)||void 0===Je||null===(Xe=Je.left)||void 0===Xe?void 0:Xe.width)||""),imageBorderRightWidth:N((null==e||null===(Qe=e.style)||void 0===Qe||null===(et=Qe.border)||void 0===et?void 0:et.width)||(null==e||null===(tt=e.style)||void 0===tt||null===(at=tt.border)||void 0===at||null===(lt=at.right)||void 0===lt?void 0:lt.width)||""),imageBorderWidthUnit:N((null==e||null===(it=e.style)||void 0===it||null===(ot=it.border)||void 0===ot?void 0:ot.width)||(null==e||null===(nt=e.style)||void 0===nt||null===(rt=nt.border)||void 0===rt||null===(st=rt.top)||void 0===st?void 0:st.width)||""),imageBorderColor:Pc(null==e?void 0:e.borderColor)||Pc(null==e||null===(ct=e.style)||void 0===ct||null===(ut=ct.border)||void 0===ut||null===(pt=ut.right)||void 0===pt?void 0:pt.color)||(null==e||null===(dt=e.style)||void 0===dt||null===(bt=dt.border)||void 0===bt?void 0:bt.color)||(null==e||null===(gt=e.style)||void 0===gt||null===(mt=gt.border)||void 0===mt||null===(yt=mt.right)||void 0===yt?void 0:yt.color)||"",imageBorderTopRightRadius:N("object"!=typeof(null==e||null===(ft=e.style)||void 0===ft||null===(ht=ft.border)||void 0===ht?void 0:ht.radius)&&(null==e||null===(vt=e.style)||void 0===vt||null===(_t=vt.border)||void 0===_t?void 0:_t.radius)||(null==e||null===(Tt=e.style)||void 0===Tt||null===(Ct=Tt.border)||void 0===Ct||null===(St=Ct.radius)||void 0===St?void 0:St.topRight)||""),imageBorderTopLeftRadius:N("object"!=typeof(null==e||null===(kt=e.style)||void 0===kt||null===(wt=kt.border)||void 0===wt?void 0:wt.radius)&&(null==e||null===(Pt=e.style)||void 0===Pt||null===(xt=Pt.border)||void 0===xt?void 0:xt.radius)||(null==e||null===(At=e.style)||void 0===At||null===(Gt=At.border)||void 0===Gt||null===(Mt=Gt.radius)||void 0===Mt?void 0:Mt.topLeft)||""),imageBorderBottomRightRadius:N("object"!=typeof(null==e||null===(Rt=e.style)||void 0===Rt||null===(Bt=Rt.border)||void 0===Bt?void 0:Bt.radius)&&(null==e||null===(Ut=e.style)||void 0===Ut||null===(Et=Ut.border)||void 0===Et?void 0:Et.radius)||(null==e||null===(Ot=e.style)||void 0===Ot||null===(Lt=Ot.border)||void 0===Lt||null===(Ht=Lt.radius)||void 0===Ht?void 0:Ht.bottomRight)||""),imageBorderBottomLeftRadius:N("object"!=typeof(null==e||null===(Ft=e.style)||void 0===Ft||null===(jt=Ft.border)||void 0===jt?void 0:jt.radius)&&(null==e||null===(zt=e.style)||void 0===zt||null===(Dt=zt.border)||void 0===Dt?void 0:Dt.radius)||(null==e||null===(Nt=e.style)||void 0===Nt||null===(It=Nt.border)||void 0===It||null===(Vt=It.radius)||void 0===Vt?void 0:Vt.bottomLeft)||""),imageBorderRadiusUnit:Wt,layout:"overlay",overlayOpacity:0!==e.dimRatio?e.dimRatio/100:0,overlayHoverOpacity:0!==e.dimRatio?e.dimRatio/100:0,overlayBackground:(null==e?void 0:e.customOverlayColor)||Pc(null==e?void 0:e.overlayColor)})}},{type:"block",blocks:["core/media-text"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be,ge,me,ye,fe,he;const ve=(null===(a=t[0])||void 0===a?void 0:a.attributes)||{},_e=Boolean(ve.content);let Te;var Ce,Se;if(null!=ve&&null!==(l=ve.style)&&void 0!==l&&null!==(i=l.color)&&void 0!==i&&i.text)Te=null==ve||null===(Ce=ve.style)||void 0===Ce||null===(Se=Ce.color)||void 0===Se?void 0:Se.text;else if(Pc(null==ve?void 0:ve.textColor))Te=Pc(null==ve?void 0:ve.textColor);else if(null!=e&&null!==(o=e.style)&&void 0!==o&&null!==(n=o.color)&&void 0!==n&&n.text){var ke,we;Te=null==e||null===(ke=e.style)||void 0===ke||null===(we=ke.color)||void 0===we?void 0:we.text}else Te=Pc(null==e?void 0:e.textColor)?Pc(null==e?void 0:e.textColor):"";return Object(de.createBlock)("uagb/image",{url:e.mediaUrl,alt:e.mediaAlt,title:e.mediaTitle,enableCaption:_e,captionColor:Te,caption:_e?ve.content:"",captionFontWeight:(null==ve||null===(r=ve.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.fontWeight)||(null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.fontWeight)||"",captionFontSize:N((null==ve||null===(p=ve.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.fontSize)||(null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.fontSize)||""),captionFontSizeType:I((null==ve||null===(m=ve.style)||void 0===m||null===(y=m.typography)||void 0===y?void 0:y.fontSize)||(null==e||null===(f=e.style)||void 0===f||null===(h=f.typography)||void 0===h?void 0:h.fontSize)||""),captionLetterSpacing:N((null==ve||null===(v=ve.style)||void 0===v||null===(_=v.typography)||void 0===_?void 0:_.letterSpacing)||(null==e||null===(T=e.style)||void 0===T||null===(C=T.typography)||void 0===C?void 0:C.letterSpacing)||""),captionLetterSpacingType:I((null==ve||null===(S=ve.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.letterSpacing)||(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.letterSpacing)||""),captionDecoration:(null==ve||null===(x=ve.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.textDecoration)||(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.textDecoration)||"",captionTransform:(null==ve||null===(R=ve.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.textTransform)||(null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.textTransform)||"",captionLineHeight:N((null==ve||null===(O=ve.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.lineHeight)||(null==e||null===(H=e.style)||void 0===H||null===(F=H.typography)||void 0===F?void 0:F.lineHeight)||""),imageTopMargin:N((null==e||null===(j=e.style)||void 0===j||null===(z=j.spacing)||void 0===z||null===(D=z.margin)||void 0===D?void 0:D.top)||""),imageRightMargin:N((null==e||null===(W=e.style)||void 0===W||null===(q=W.spacing)||void 0===q||null===(Z=q.margin)||void 0===Z?void 0:Z.right)||""),imageLeftMargin:N((null==e||null===($=e.style)||void 0===$||null===(Y=$.spacing)||void 0===Y||null===(K=Y.margin)||void 0===K?void 0:K.left)||""),imageBottomMargin:N((null==e||null===(J=e.style)||void 0===J||null===(X=J.spacing)||void 0===X||null===(Q=X.margin)||void 0===Q?void 0:Q.bottom)||""),imageMarginUnit:V((null==e||null===(ee=e.style)||void 0===ee||null===(te=ee.spacing)||void 0===te||null===(ae=te.margin)||void 0===ae?void 0:ae.top)||"px"),captionTopMargin:N((null==ve||null===(le=ve.style)||void 0===le||null===(ie=le.spacing)||void 0===ie||null===(oe=ie.margin)||void 0===oe?void 0:oe.top)||""),captionRightMargin:N((null==ve||null===(ne=ve.style)||void 0===ne||null===(re=ne.spacing)||void 0===re||null===(se=re.margin)||void 0===se?void 0:se.right)||""),captionLeftMargin:N((null==ve||null===(ce=ve.style)||void 0===ce||null===(ue=ce.spacing)||void 0===ue||null===(pe=ue.margin)||void 0===pe?void 0:pe.left)||""),captionBottomMargin:N((null==ve||null===(be=ve.style)||void 0===be||null===(ge=be.spacing)||void 0===ge||null===(me=ge.margin)||void 0===me?void 0:me.bottom)||""),captionMarginUnit:V((null==ve||null===(ye=ve.style)||void 0===ye||null===(fe=ye.spacing)||void 0===fe||null===(he=fe.margin)||void 0===he?void 0:he.top)||""),align:"center"})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{url:t,sizeSlug:a}=e;return Object(de.createBlock)("core/image",{url:t,sizeSlug:a})}}]};let ob={};ob=Object(F.applyFilters)("uagb/image",ss(ob)),Object(de.registerBlockType)("uagb/image",{...ob,title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add images on your webpage with multiple customization options.","ultimate-addons-for-gutenberg"),icon:se.image,keywords:[Object(r.__)("image","ultimate-addons-for-gutenberg"),Object(r.__)("advance image","ultimate-addons-for-gutenberg"),Object(r.__)("caption","ultimate-addons-for-gutenberg"),Object(r.__)("overlay image","ultimate-addons-for-gutenberg")],supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},align:!0},attributes:Ta,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"image"}):React.createElement(Yd,e),save:function(e){var t,a;const{attributes:l}=e,{block_id:i,layout:o,url:n,urlTablet:r,urlMobile:s,alt:c,caption:u,enableCaption:p,imageHoverEffect:d,href:b,linkClass:g,width:m,height:y,naturalHeight:f,naturalWidth:h,align:v,id:_,linkTarget:T,rel:C,title:S,heading:k,headingTag:w,headingId:P,overlayContentPosition:x,seperatorStyle:A,seperatorPosition:G,disableLazyLoad:M,imgRole:R}=e.attributes,B=n&&""!==n&&React.createElement("img",{srcSet:`${n} ${r?","+r+" 780w":""}${s?", "+s+" 360w":""}`,sizes:"(max-width: 480px) 150px",src:n,alt:"presentation"===R?"":c,className:_?"uag-image-"+_:null,width:m||h,height:y||f,title:"presentation"===R?"":S,loading:M?void 0:"lazy",role:R}),U=()=>C?C.trim():"noopener",E=React.createElement(React.Fragment,null,b&&""!==b?React.createElement("a",{className:g,href:b,target:T,rel:U()},B):B),O=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(k)&&React.createElement(ge.RichText.Content,{tagName:w,id:P,className:"uagb-image-heading",value:k})),L=React.createElement(React.Fragment,null,!ge.RichText.isEmpty(u)&&React.createElement(ge.RichText.Content,{tagName:"figcaption",className:"uagb-image-caption",value:u})),H="none"!==A&&React.createElement("div",{className:"uagb-image-separator"}),F=React.createElement("a",{className:"wp-block-uagb-image--layout-overlay-link "+g,href:b,target:T,rel:U()});return React.createElement("div",{className:Be()(e.className,"uagb-block-"+i,"wp-block-uagb-image","wp-block-uagb-image--layout-"+o,"wp-block-uagb-image--effect-"+d,"wp-block-uagb-image--align-"+(v||"none"))},React.createElement("figure",{className:"wp-block-uagb-image__figure"},E,"overlay"===o?React.createElement(React.Fragment,null,React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__color-wrapper"}),React.createElement("div",{className:"wp-block-uagb-image--layout-overlay__inner "+x.replace(" ","-")},(!0===(null==l||null===(t=l.dynamicContent)||void 0===t||null===(a=t.bgImageLink)||void 0===a?void 0:a.enable)||b)&&F,"before_title"===G&&H,O,"after_title"===G&&H,L,"after_sub_title"===G&&H)):React.createElement(React.Fragment,null,p&&L)))},__experimentalLabel:(e,t)=>{var a;let{context:l}=t;return"list-view"===l&&null!=e&&null!==(a=e.metadata)&&void 0!==a&&a.name&&e.metadata.name?e.metadata.name:Object(F.applyFilters)("uag_loop_data_source_label",Object(r.__)("Image","ultimate-addons-for-gutenberg"),e)},usesContext:["postId","postType"],deprecated:lb,transforms:ib});var nb=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{block_id:r,fontFamily:s,fontWeight:c,gap:u,gapTablet:p,gapMobile:d,inheritGap:b,flexWrap:g,stack:m,align:y,fontStyle:f,fontTransform:h,fontDecoration:v,alignTablet:_,alignMobile:T,fontSizeType:C,fontSizeTypeTablet:S,fontSizeTypeMobile:k,fontSize:w,fontSizeMobile:P,fontSizeTablet:x,lineHeightType:A,lineHeight:G,lineHeightMobile:M,lineHeightTablet:R,topPadding:B,rightPadding:U,bottomPadding:E,leftPadding:O,topMobilePadding:L,rightMobilePadding:H,bottomMobilePadding:F,leftMobilePadding:j,topTabletPadding:z,rightTabletPadding:D,bottomTabletPadding:N,leftTabletPadding:I,paddingUnit:V,mobilePaddingUnit:W,tabletPaddingUnit:q,topMargin:Z,rightMargin:$,bottomMargin:Y,leftMargin:K,topMarginTablet:J,rightMarginTablet:X,bottomMarginTablet:Q,leftMarginTablet:ee,topMarginMobile:te,rightMarginMobile:le,bottomMarginMobile:ie,leftMarginMobile:oe,marginType:ne,fontLetterSpacing:re,fontLetterSpacingTablet:se,fontLetterSpacingMobile:ce,fontLetterSpacingType:ue,verticalAlignment:pe,buttonSize:de}=e,be={},ge={},me={};let ye;switch(pe){case"top":ye="flex-start";break;case"bottom":ye="flex-end";break;default:ye="center"}be[".uagb-buttons__outer-wrap .uagb-buttons-repeater:not(.wp-block-button__link)"]={"font-family":s,"font-style":f,"text-decoration":v,"text-transform":h,"font-weight":c,"font-size":Vr(w,C),"line-height":Vr(G,A)},be[".uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-buttons-repeater"]={"font-family":s,"font-style":f,"text-decoration":v,"text-transform":h,"font-weight":c,"font-size":Vr(w,C),"line-height":Vr(G,A),"letter-spacing":Vr(re,ue)},be[".uagb-buttons__outer-wrap .uagb-button__wrapper"]={"margin-left":Vr(K,ne),"margin-right":Vr($,ne),"margin-top":Vr(Z,ne),"margin-bottom":Vr(Y,ne)},"default"===de&&(be[" .uagb-buttons-repeater.wp-block-button__link"]={"padding-left":Vr(O,V),"padding-right":Vr(U,V),"padding-top":Vr(B,V),"padding-bottom":Vr(E,V)},ge[" .uagb-buttons-repeater.wp-block-button__link"]={"padding-left":Vr(I,q),"padding-right":Vr(D,q),"padding-top":Vr(z,q),"padding-bottom":Vr(N,q)},me[" .uagb-buttons-repeater.wp-block-button__link"]={"padding-left":Vr(j,W),"padding-right":Vr(H,W),"padding-top":Vr(L,W),"padding-bottom":Vr(F,W)}),b?b&&("desktop"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"}):"tablet"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row"},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"}):"mobile"===m&&(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row"},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row"},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column"})):"desktop"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(d,"px")}):"tablet"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row",gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(d,"px")}):"mobile"===m?(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row",gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"row",gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={"flex-direction":"column",gap:Vr(d,"px")}):"none"===m&&(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={gap:Vr(us(u,"gap",o),"px")},ge[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={gap:Vr(p,"px")},me[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]={gap:Vr(d,"px")}),g&&(be[".uagb-buttons__outer-wrap .block-editor-block-list__layout"]["flex-wrap"]="wrap"),"full"!==y?(be[".uagb-editor-preview-mode-desktop .block-editor-inner-blocks"]={"text-align":y},be[".uagb-editor-preview-mode-desktop .block-editor-block-list__layout"]={"align-items":ye,"justify-content":y}):(be[".uagb-editor-preview-mode-desktop .block-editor-block-list__layout"]={width:"100%","align-items":ye},be[" .block-editor-block-list__block"]={width:"100%"}),"full"!==_?(ge[".uagb-editor-preview-mode-tablet .block-editor-inner-blocks"]={"text-align":_},ge[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={"align-items":ye,"justify-content":_}):(ge[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={"flex-direction":"column","row-gap":Vr(us(u,"gap",o),"px")},ge[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={width:"100%","align-items":ye},ge[" .block-editor-block-list__block "]={width:"100%"}),"full"!==T?(me[".uagb-editor-preview-mode-mobile .block-editor-inner-blocks"]={"text-align":T},me[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"align-items":ye,"justify-content":T}):(me[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"flex-direction":"column","row-gap":Vr(us(u,"gap",o),"px")},me[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={width:"100%","align-items":ye},me[" .block-editor-block-list__block "]={width:"100%"}),ge[".uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-buttons-repeater"]={"font-size":Vr(x,S),"line-height":Vr(R,A),"letter-spacing":Vr(se,ue)},ge[".uagb-buttons__outer-wrap .uagb-button__wrapper"]={"margin-left":Vr(ee,ne),"margin-right":Vr(X,ne),"margin-top":Vr(J,ne),"margin-bottom":Vr(Q,ne)},me[".uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-buttons-repeater"]={"font-size":Vr(P,k),"line-height":Vr(M,A),"letter-spacing":Vr(ce,ue)},me[".uagb-buttons__outer-wrap .uagb-button__wrapper"]={"margin-left":Vr(oe,ne),"margin-right":Vr(le,ne),"margin-top":Vr(te,ne),"margin-bottom":Vr(ie,ne)};const fe=i?i+" ":".editor-styles-wrapper .uagb-block-"+r;let he=ae(be,fe);return("tablet"===n||"mobile"===n||i)&&(he+=ae(ge,""+fe,!0,"tablet"),("mobile"===n||i)&&(he+=ae(me,""+fe,!0,"mobile"))),he};function rb(){return(rb=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{align:l,gap:i,gapTablet:o,gapMobile:s,inheritGap:c,flexWrap:u,stack:p,loadGoogleFonts:d,fontFamily:b,fontWeight:g,fontStyle:m,fontTransform:y,fontDecoration:f,alignTablet:h,alignMobile:v,fontSizeType:_,fontSizeTypeMobile:T,fontSizeTypeTablet:C,fontSize:S,fontSizeMobile:k,fontSizeTablet:w,lineHeightType:P,lineHeight:x,lineHeightMobile:A,lineHeightTablet:G,buttonSize:M,buttonSizeTablet:R,buttonSizeMobile:B,paddingUnit:U,mobilePaddingUnit:E,tabletPaddingUnit:O,paddingLink:L,topPadding:H,rightPadding:F,bottomPadding:j,leftPadding:z,topMobilePadding:D,rightMobilePadding:N,bottomMobilePadding:I,leftMobilePadding:V,topTabletPadding:W,rightTabletPadding:q,bottomTabletPadding:Z,leftTabletPadding:$,topMargin:Y,rightMargin:K,bottomMargin:J,leftMargin:X,topMarginTablet:Q,rightMarginTablet:ee,bottomMarginTablet:te,leftMarginTablet:ae,topMarginMobile:le,rightMarginMobile:ie,bottomMarginMobile:oe,leftMarginMobile:ne,marginType:re,marginLink:se,fontLetterSpacing:ce,fontLetterSpacingTablet:ue,fontLetterSpacingMobile:pe,fontLetterSpacingType:de,verticalAlignment:be}=t,me=Object(n.select)("core/block-editor").getSelectedBlock().innerBlocks.length,ye=[{value:"default",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"small",label:Object(r.__)("Small","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"large",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")},{value:"extralarge",label:Object(r.__)("Extra Large","ultimate-addons-for-gutenberg")}],fe=[{align:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),title:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{align:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),title:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{align:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),title:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{align:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),title:Object(r.__)("Full","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(ge.BlockVerticalAlignmentControl,{onChange:e=>a({verticalAlignment:e}),value:be}),React.createElement(ge.AlignmentToolbar,{value:l,onChange:e=>{a({align:e})},alignmentControls:fe})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,rb({},ol,{parentProps:e}),React.createElement(je,{initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"align"},tablet:{value:h,label:"alignTablet"},mobile:{value:v,label:"alignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full Width","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:be,label:"verticalAlignment"},options:[{value:"top",label:"Top"},{value:"center",label:"Middle"},{value:"bottom",label:"Bottom"}],showIcons:!1,responsive:!1}),me>1&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Stack Orientation","ultimate-addons-for-gutenberg"),data:{value:p,label:"stack"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: Choose on what breakpoint the buttons will stack.","ultimate-addons-for-gutenberg")}),me>1&&React.createElement(React.Fragment,null,!u&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Inherit gap from theme","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({inheritGap:!c})}),!c&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Flex wrap","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>a({flexWrap:!u})}),!c&&React.createElement(tl,{label:Object(r.__)("Gap Between Buttons","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"gap"},tablet:{value:o,label:"gapTablet"},mobile:{value:s,label:"gapMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a})),React.createElement(ai,{label:Object(r.__)("Button Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:M,label:"buttonSize"},tablet:{value:R,label:"buttonSizeTablet"},mobile:{value:B,label:"buttonSizeMobile"}},options:{desktop:ye,tablet:ye,mobile:ye},setAttributes:a}))),React.createElement(il,rb({},nl,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Text","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:d,label:"loadGoogleFonts"},fontFamily:{value:b,label:"fontFamily"},fontWeight:{value:g,label:"fontWeight"},fontStyle:{value:m,label:"fontStyle"},transform:{value:y,label:"fontTransform"},decoration:{value:f,label:"fontDecoration"},fontSizeType:{value:_,label:"fontSizeType"},fontSizeTypeTablet:{value:C,label:"fontSizeTypeTablet"},fontSizeTypeMobile:{value:T,label:"fontSizeTypeMobile"},fontSize:{value:S,label:"fontSize"},fontSizeMobile:{value:k,label:"fontSizeMobile"},fontSizeTablet:{value:w,label:"fontSizeTablet"},lineHeightType:{value:P,label:"lineHeightType"},lineHeight:{value:x,label:"lineHeight"},lineHeightMobile:{value:A,label:"lineHeightMobile"},lineHeightTablet:{value:G,label:"lineHeightTablet"},letterSpacing:{value:ce,label:"fontLetterSpacing"},letterSpacingTablet:{value:ue,label:"fontLetterSpacingTablet"},letterSpacingMobile:{value:pe,label:"fontLetterSpacingMobile"},letterSpacingType:{value:de,label:"fontLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"default"===M&&React.createElement(Pl,rb({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:H,label:"topPadding"},valueRight:{value:F,label:"rightPadding"},valueBottom:{value:j,label:"bottomPadding"},valueLeft:{value:z,label:"leftPadding"},valueTopTablet:{value:W,label:"topTabletPadding"},valueRightTablet:{value:q,label:"rightTabletPadding"},valueBottomTablet:{value:Z,label:"bottomTabletPadding"},valueLeftTablet:{value:$,label:"leftTabletPadding"},valueTopMobile:{value:D,label:"topMobilePadding"},valueRightMobile:{value:N,label:"rightMobilePadding"},valueBottomMobile:{value:I,label:"bottomMobilePadding"},valueLeftMobile:{value:V,label:"leftMobilePadding"},unit:{value:U,label:"paddingUnit"},mUnit:{value:E,label:"mobilePaddingUnit"},tUnit:{value:O,label:"tabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:L,label:"paddingLink"}})),React.createElement(Pl,rb({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Y,label:"topMargin"},valueRight:{value:K,label:"rightMargin"},valueBottom:{value:J,label:"bottomMargin"},valueLeft:{value:X,label:"leftMargin"},valueTopTablet:{value:Q,label:"topMarginTablet"},valueRightTablet:{value:ee,label:"rightMarginTablet"},valueBottomTablet:{value:te,label:"bottomMarginTablet"},valueLeftTablet:{value:ae,label:"leftMarginTablet"},valueTopMobile:{value:le,label:"topMarginMobile"},valueRightMobile:{value:ie,label:"rightMarginMobile"},valueBottomMobile:{value:oe,label:"bottomMarginMobile"},valueLeftMobile:{value:ne,label:"leftMarginMobile"},unit:{value:re,label:"marginType"},mUnit:{value:re,label:"marginType"},tUnit:{value:re,label:"marginType"},attributes:t,setAttributes:a,link:{value:se,label:"marginLink"}})))),React.createElement(il,rb({},rl,{parentProps:e}),Ds(nb,a,t)))))}),ub=a(103),pb=0,db={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},bb={};bb.locals=ub.a.locals||{},bb.use=function(){return pb++||(sb=we()(ub.a,db)),bb},bb.unuse=function(){pb>0&&!--pb&&(sb(),sb=null)};var gb=bb;const mb=["uagb/buttons-child"];var yb=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(gb.use(),()=>{gb.unuse()}),[]);const{attributes:t,deviceType:a}=e,{className:l,btn_count:i,buttons:o,stack:n,buttonSize:r,buttonSizeTablet:s,buttonSizeMobile:c,block_id:u,inheritGap:p}=t,d={template:Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)});let hb;var vb=Object(L.compose)(uc,ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:n,name:r,deviceType:s}=e,[c,u]=Object(B.useState)({isFocused:"false",isHovered:"false"});Object(B.useEffect)(()=>{hb=t},[]),Object(B.useEffect)(()=>{!t&&hb&&c.isFocused&&u({isFocused:"false"}),hb=t},[a,s]),Object(B.useEffect)(()=>{ys()},[s]),Object(B.useEffect)(()=>{he(e)},[l,i,o,s]);const p=Object(B.useMemo)(()=>nb(a,n,r,s),[a,s]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:p}),React.createElement(fb,{attributes:a}),t&&React.createElement(cb,e),React.createElement(yb,e))});const _b=[];for(let e=1;e<=2;e++){const e="Click Here",t="#";_b.push({label:e,link:t,target:"_self",size:"",vPadding:"",hPadding:"",color:"",background:"",hColor:"",hBackground:"",sizeType:"px",sizeMobile:"",sizeTablet:"",lineHeight:"",lineHeightType:"em",lineHeightMobile:"",lineHeightTablet:""})}var Tb=[{attributes:rt,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,buttons:n,btn_count:r}=e.attributes,s=n.map((e,t)=>React.createElement("div",{className:Be()("uagb-buttons-repeater-"+t,"uagb-button__wrapper"),key:t},React.createElement(ge.RichText.Content,{value:e.label,tagName:"a",className:"uagb-button__link",href:e.link,rel:"noopener noreferrer",target:e.target})));return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap"),id:"uagb-buttons-"+l},React.createElement("div",{className:"uagb-buttons__wrap"},s))}},{attributes:rt,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,buttons:n,btn_count:r}=e.attributes,s=n.map((e,t)=>React.createElement("div",{className:Be()("uagb-buttons-repeater-"+t,"uagb-button__wrapper"),key:t},React.createElement(ge.RichText.Content,{value:e.label,tagName:"a",className:"uagb-button__link",href:e.link,rel:"noopener noreferrer",target:e.target})));return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap"),id:"uagb-buttons-"+l},React.createElement("div",{className:"uagb-buttons__wrap"},s))}},{attributes:rt,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,buttons:n,btn_count:r}=e.attributes,s=n.map((e,t)=>React.createElement("div",{className:Be()("uagb-buttons-repeater-"+t,"uagb-button__wrapper"),key:t},React.createElement(ge.RichText.Content,{value:e.label,tagName:"a",className:"uagb-button__link",href:e.link,rel:"noopener noreferrer",target:e.target})));return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l)},React.createElement("div",{className:"uagb-buttons__wrap"},s))}},{attributes:rt,save:e=>{const{className:t}=e,{block_id:a}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-buttons__outer-wrap","uagb-block-"+a)},React.createElement("div",{className:"uagb-buttons__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:{block_id:{type:"string"},btn_count:{type:"number",default:2},buttons:{type:"array",default:_b},classMigrate:{type:"boolean",default:!1},childMigrate:{type:"boolean",default:!1},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},alignTablet:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align-tablet"}},alignMobile:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align-mobile"}},gap:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-gap"}},gapTablet:{type:"number",UAGCopyPaste:{styleType:"btn-gap-tablet"}},gapMobile:{type:"number",UAGCopyPaste:{styleType:"btn-gap-mobile"}},stack:{type:"string",default:"none",UAGCopyPaste:{styleType:"btn-stack"}},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},fontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"btn-font-style"}},fontTransform:{type:"string",UAGCopyPaste:{styleType:"btn-font-transform"}},fontDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-font-decoration"}},isPreview:{type:"boolean",default:!1},fontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},fontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},fontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},fontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},fontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},fontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},lineHeightType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeight:{type:"number",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},buttonSize:{type:"string",default:"default",UAGCopyPaste:{styleType:"btn-size"}},buttonSizeTablet:{type:"string",default:"default",UAGCopyPaste:{styleType:"btn-size-tablet"}},buttonSizeMobile:{type:"string",default:"default",UAGCopyPaste:{styleType:"btn-size-mobile"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},fontLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},fontLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},fontLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},fontLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}},save:function(e){const{className:t}=e,{block_id:a,buttonSize:l,buttonSizeTablet:i,buttonSizeMobile:o}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-buttons__outer-wrap",`uagb-btn__${l}-btn`,`uagb-btn-tablet__${i}-btn`,`uagb-btn-mobile__${o}-btn`,"uagb-block-"+a)},React.createElement("div",{className:"uagb-buttons__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];a(219);var Cb={from:[{type:"block",blocks:["core/buttons"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y;let f=!1;const h=[],v=(null==e||null===(a=e.layout)||void 0===a?void 0:a.justifyContent)||"left";return t.forEach(e=>{var t,a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be,ge,me,ye,fe,he,ve,_e,Te,Ce,Se,ke,we,Pe,xe,Ae,Ge,Me,Re,Be,Ue,Ee,Oe,Le,He,Fe,je,ze,De,Ne,Ie,Ve,We,qe,Ze,$e,Ye,Ke,Je,Xe,Qe,et,tt,at,lt,it,ot,nt,rt,st,ct,ut,pt,dt,bt,gt,mt,yt,ft,ht,vt,_t,Tt,Ct,St,kt,wt,Pt,xt,At,Gt,Mt,Rt,Bt,Ut,Et,Ot,Lt,Ht,Ft,jt;const zt=e.attributes;f=100===(null==zt?void 0:zt.width)||f;const Dt=V("object"!=typeof(null==zt||null===(t=zt.style)||void 0===t||null===(a=t.border)||void 0===a?void 0:a.radius)&&(null==zt||null===(l=zt.style)||void 0===l||null===(i=l.border)||void 0===i?void 0:i.radius)||(null==zt||null===(o=zt.style)||void 0===o||null===(n=o.border)||void 0===n||null===(r=n.radius)||void 0===r?void 0:r.topRight)||(null==zt||null===(s=zt.style)||void 0===s||null===(c=s.border)||void 0===c||null===(u=c.radius)||void 0===u?void 0:u.topLeft)||(null==zt||null===(p=zt.style)||void 0===p||null===(d=p.border)||void 0===d||null===(b=d.radius)||void 0===b?void 0:b.bottomRight)||(null==zt||null===(g=zt.style)||void 0===g||null===(m=g.border)||void 0===m||null===(y=m.radius)||void 0===y?void 0:y.bottomLeft)||""),Nt=Object(de.createBlock)("uagb/buttons-child",{label:zt.text,color:(null==zt||null===(v=zt.style)||void 0===v||null===(_=v.color)||void 0===_?void 0:_.text)||Pc(zt.textColor),background:(null==zt||null===(T=zt.style)||void 0===T||null===(C=T.color)||void 0===C?void 0:C.background)||Pc(zt.backgroundColor)||"",fontWeight:(null==zt||null===(S=zt.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.fontWeight)||"",size:N((null==zt||null===(w=zt.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.fontSize)||"#"),sizeType:I((null==zt||null===(x=zt.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.letterSpacing)||""),letterSpacing:N((null==zt||null===(G=zt.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.letterSpacing)||"#"),letterSpacingType:I((null==zt||null===(R=zt.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.letterSpacing)||"px"),decoration:(null==zt||null===(U=zt.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.textDecoration)||"",transform:(null==zt||null===(O=zt.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.textTransform)||"",lineHeight:N((null==zt||null===(H=zt.style)||void 0===H||null===(F=H.typography)||void 0===F?void 0:F.lineHeight)||"#"),lineHeightType:"em",borderColor:(null==zt||null===(j=zt.style)||void 0===j||null===(z=j.border)||void 0===z?void 0:z.color)||Pc((null==zt?void 0:zt.borderColor)||"")||(null==zt||null===(D=zt.style)||void 0===D||null===(W=D.border)||void 0===W||null===(q=W.top)||void 0===q?void 0:q.color)||Pc((null==zt||null===(Z=zt.style)||void 0===Z||null===($=Z.border)||void 0===$||null===(Y=$.top)||void 0===Y?void 0:Y.color)||""),btnBorderTopWidth:N((null==zt||null===(K=zt.style)||void 0===K||null===(J=K.border)||void 0===J?void 0:J.width)||(null==zt||null===(X=zt.style)||void 0===X||null===(Q=X.border)||void 0===Q||null===(ee=Q.top)||void 0===ee?void 0:ee.width)||"#"),btnBorderBottomWidth:N((null==zt||null===(te=zt.style)||void 0===te||null===(ae=te.border)||void 0===ae?void 0:ae.width)||(null==zt||null===(le=zt.style)||void 0===le||null===(ie=le.border)||void 0===ie||null===(oe=ie.bottom)||void 0===oe?void 0:oe.width)||"#"),btnBorderLeftWidth:N((null==zt||null===(ne=zt.style)||void 0===ne||null===(re=ne.border)||void 0===re?void 0:re.width)||(null==zt||null===(se=zt.style)||void 0===se||null===(ce=se.border)||void 0===ce||null===(ue=ce.left)||void 0===ue?void 0:ue.width)||"#"),btnBorderRightWidth:N((null==zt||null===(pe=zt.style)||void 0===pe||null===(be=pe.border)||void 0===be?void 0:be.width)||(null==zt||null===(ge=zt.style)||void 0===ge||null===(me=ge.border)||void 0===me||null===(ye=me.right)||void 0===ye?void 0:ye.width)||"#"),borderRadius:N("object"!=typeof(null==zt||null===(fe=zt.style)||void 0===fe||null===(he=fe.border)||void 0===he?void 0:he.radius)&&(null==zt||null===(ve=zt.style)||void 0===ve||null===(_e=ve.border)||void 0===_e?void 0:_e.radius)||(null==zt||null===(Te=zt.style)||void 0===Te||null===(Ce=Te.border)||void 0===Ce||null===(Se=Ce.radius)||void 0===Se?void 0:Se.topRight)||"#"),leftMargin:N((null==zt||null===(ke=zt.style)||void 0===ke||null===(we=ke.spacing)||void 0===we||null===(Pe=we.margin)||void 0===Pe?void 0:Pe.left)||"#"),bottomMargin:N((null==zt||null===(xe=zt.style)||void 0===xe||null===(Ae=xe.spacing)||void 0===Ae||null===(Ge=Ae.margin)||void 0===Ge?void 0:Ge.bottom)||"#"),rightMargin:N((null==zt||null===(Me=zt.style)||void 0===Me||null===(Re=Me.spacing)||void 0===Re||null===(Be=Re.margin)||void 0===Be?void 0:Be.right)||"#"),topMargin:N((null==zt||null===(Ue=zt.style)||void 0===Ue||null===(Ee=Ue.spacing)||void 0===Ee||null===(Oe=Ee.margin)||void 0===Oe?void 0:Oe.top)||"#"),marginType:I((null==zt||null===(Le=zt.style)||void 0===Le||null===(He=Le.spacing)||void 0===He||null===(Fe=He.margin)||void 0===Fe?void 0:Fe.top)||""),leftPadding:N((null==zt||null===(je=zt.style)||void 0===je||null===(ze=je.spacing)||void 0===ze||null===(De=ze.padding)||void 0===De?void 0:De.left)||"#"),bottomPadding:N((null==zt||null===(Ne=zt.style)||void 0===Ne||null===(Ie=Ne.spacing)||void 0===Ie||null===(Ve=Ie.padding)||void 0===Ve?void 0:Ve.bottom)||"#"),rightPadding:N((null==zt||null===(We=zt.style)||void 0===We||null===(qe=We.spacing)||void 0===qe||null===(Ze=qe.padding)||void 0===Ze?void 0:Ze.right)||"#"),topPadding:N((null==zt||null===($e=zt.style)||void 0===$e||null===(Ye=$e.spacing)||void 0===Ye||null===(Ke=Ye.padding)||void 0===Ke?void 0:Ke.top)||"#"),paddingUnit:I((null==zt||null===(Je=zt.style)||void 0===Je||null===(Xe=Je.spacing)||void 0===Xe||null===(Qe=Xe.padding)||void 0===Qe?void 0:Qe.top)||""),borderHColor:"",borderStyle:(null==zt||null===(et=zt.style)||void 0===et||null===(tt=et.border)||void 0===tt?void 0:tt.style)||(null!=zt&&null!==(at=zt.style)&&void 0!==at&&null!==(lt=at.border)&&void 0!==lt&<.width||null!=zt&&null!==(it=zt.style)&&void 0!==it&&null!==(ot=it.border)&&void 0!==ot&&null!==(nt=ot.top)&&void 0!==nt&&nt.width?(null==zt||null===(rt=zt.style)||void 0===rt||null===(st=rt.border)||void 0===st||null===(ct=st.top)||void 0===ct?void 0:ct.style)||(null==zt||null===(ut=zt.style)||void 0===ut||null===(pt=ut.border)||void 0===pt?void 0:pt.style)||"solid":"none"),btnBorderBottomLeftRadius:N("object"!=typeof(null==zt||null===(dt=zt.style)||void 0===dt||null===(bt=dt.border)||void 0===bt?void 0:bt.radius)&&(null==zt||null===(gt=zt.style)||void 0===gt||null===(mt=gt.border)||void 0===mt?void 0:mt.radius)||(null==zt||null===(yt=zt.style)||void 0===yt||null===(ft=yt.border)||void 0===ft||null===(ht=ft.radius)||void 0===ht?void 0:ht.bottomLeft)||"#"),btnBorderBottomRightRadius:N("object"!=typeof(null==zt||null===(vt=zt.style)||void 0===vt||null===(_t=vt.border)||void 0===_t?void 0:_t.radius)&&(null==zt||null===(Tt=zt.style)||void 0===Tt||null===(Ct=Tt.border)||void 0===Ct?void 0:Ct.radius)||(null==zt||null===(St=zt.style)||void 0===St||null===(kt=St.border)||void 0===kt||null===(wt=kt.radius)||void 0===wt?void 0:wt.bottomRight)||"#"),btnBorderTopLeftRadius:N("object"!=typeof(null==zt||null===(Pt=zt.style)||void 0===Pt||null===(xt=Pt.border)||void 0===xt?void 0:xt.radius)&&(null==zt||null===(At=zt.style)||void 0===At||null===(Gt=At.border)||void 0===Gt?void 0:Gt.radius)||(null==zt||null===(Mt=zt.style)||void 0===Mt||null===(Rt=Mt.border)||void 0===Rt||null===(Bt=Rt.radius)||void 0===Bt?void 0:Bt.topLeft)||"#"),btnBorderTopRightRadius:N("object"!=typeof(null==zt||null===(Ut=zt.style)||void 0===Ut||null===(Et=Ut.border)||void 0===Et?void 0:Et.radius)&&(null==zt||null===(Ot=zt.style)||void 0===Ot||null===(Lt=Ot.border)||void 0===Lt?void 0:Lt.radius)||(null==zt||null===(Ht=zt.style)||void 0===Ht||null===(Ft=Ht.border)||void 0===Ft||null===(jt=Ft.radius)||void 0===jt?void 0:jt.topRight)||"#"),btnBorderRadiusUnit:Dt,link:(null==zt?void 0:zt.url)||"",opensInNewTab:"_blank"===(null==zt?void 0:zt.linkTarget)});h.push(Nt)}),Object(de.createBlock)("uagb/buttons",{fontWeight:(null==e||null===(l=e.style)||void 0===l||null===(i=l.typography)||void 0===i?void 0:i.fontWeight)||"",fontSize:N((null==e||null===(o=e.style)||void 0===o||null===(n=o.typography)||void 0===n?void 0:n.fontSize)||"#"),fontLetterSpacing:N((null==e||null===(r=e.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.letterSpacing)||"#"),fontDecoration:(null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.textDecoration)||"",fontTransform:(null==e||null===(p=e.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.textTransform)||"",lineHeight:N((null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.lineHeight)||"#"),lineHeightType:"em",align:f?"full":"space-between"===v?"center":v,gap:W((null==e||null===(m=e.style)||void 0===m||null===(y=m.spacing)||void 0===y?void 0:y.blockGap)||"10px")},h)}}]};let Sb={};Sb=Object(F.applyFilters)("uagb/buttons",ss(Sb)),Object(de.registerBlockType)("uagb/buttons",{...Sb,title:Object(r.__)("Buttons","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add multiple buttons to redirect user to different webpages.","ultimate-addons-for-gutenberg"),icon:se.buttons,keywords:[Object(r.__)("buttons","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},getEditWrapperProps:e=>({"data-btn-width":e.align}),attributes:rt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"buttons"}):React.createElement(vb,e),save:function(e){const{className:t}=e,{block_id:a,buttonSize:l,buttonSizeTablet:i,buttonSizeMobile:o,inheritGap:n}=e.attributes,r=n?"is-layout-flex":"";return React.createElement("div",{className:Be()(t,"uagb-buttons__outer-wrap",`uagb-btn__${l}-btn`,`uagb-btn-tablet__${i}-btn`,`uagb-btn-mobile__${o}-btn`,"uagb-block-"+a)},React.createElement("div",{className:"uagb-buttons__wrap uagb-buttons-layout-wrap "+r},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:Tb,transforms:Cb});var kb=function(e){e=ve(e);const t=uagb_blocks_info.uagb_svg_icons[e];if(void 0!==t){const e=t.svg.hasOwnProperty("brands")?t.svg.brands.viewBox:t.svg.solid.viewBox,a=t.svg.hasOwnProperty("brands")?t.svg.brands.path:t.svg.solid.path,l=null==e?void 0:e.join(" ");return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l},React.createElement("path",{d:a}))}};const wb=ce("btn"),Pb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",xb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Ab={inheritFromTheme:{type:"boolean",default:!1},block_id:{type:"string"},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Pb,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:xb,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},hovergradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},boxShadowColor:{type:"string",default:"#000",UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...wb,letterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Gb=ce("btn"),Mb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Rb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Bb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:!1},block_id:{type:"string"},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Mb,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Rb,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},hovergradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},boxShadowColor:{type:"string",default:"#00000026",UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Gb,letterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Ub=ce("btn"),Eb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Ob="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Lb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},block_id:{type:"string"},align:{type:"string",default:"center",UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Eb,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Ob,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Ub,letterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Hb=ce("btn"),Fb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",jb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var zb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Fb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:jb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Hb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Db=ce("btn"),Nb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Ib="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Vb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Nb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Ib,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Db,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Wb=ce("btn"),qb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Zb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var $b={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:qb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Zb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Wb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Yb=ce("btn"),Kb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",Jb="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var Xb={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:Kb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:Jb,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Yb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const Qb=ce("btn"),eg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",tg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var ag={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:eg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:tg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...Qb,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const lg=ce("btn"),ig="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",og="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var ng={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:ig,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:og,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...lg,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const rg=ce("btn"),sg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?10:"",cg="yes"===uagb_blocks_info.uagb_old_user_less_than_2||"yes"===uagb_blocks_info.enable_legacy_blocks?14:"";var ug={isPreview:{type:"boolean",default:!1},inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},buttonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"btn-type"}},block_id:{type:"string"},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},gap:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},fontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},fontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},label:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"}},vPadding:{type:"number",default:sg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},hPadding:{type:"number",default:cg,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},topPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},rightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},bottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},leftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},topMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},rightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},bottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},leftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},topTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},rightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},bottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},leftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingUnit:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-unit"}},gradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-gradient-value"}},gradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-2"}},gradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-color-type"}},hoverselectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},selectGradient:{type:"string",default:"basic",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-type"}},gradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-1"}},gradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-location-2"}},gradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-gradient-angle"}},hovergradientValue:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbg-gradient-value"}},hovergradientColor1:{type:"string",default:"#06558a",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-1"}},hovergradientColor2:{type:"string",default:"#0063A1",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-2"}},hovergradientType:{type:"string",default:"linear",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-color-type"}},hovergradientLocation1:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-1"}},hovergradientLocation2:{type:"number",default:100,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-location-2"}},hovergradientAngle:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-gradient-angle"}},mobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingLink:{type:"boolean",default:!0},color:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},background:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},hColor:{type:"string",default:"#fff",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},hBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},sizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},sizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},sizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},sizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},sizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},lineHeight:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height"}},lineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},lineHeightMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-mobile"}},lineHeightTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-line-height-tablet"}},opensInNewTab:{type:"boolean"},noFollow:{type:"boolean",default:!1},icon:{type:"string",default:"arrow-right"},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},iconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},iconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},fontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},transform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},decoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},backgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-background-type"}},hoverbackgroundType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hbackground-type"}},topMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},rightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},bottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},leftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},topMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},rightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},bottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},leftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},topMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},rightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},bottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},leftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-type"}},marginLink:{type:"string",default:!0},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000026",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-h-offset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-v-offset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"btn-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"btn-box-shadow-position-hover"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"btn-icon-color"}},iconHColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-hover-color"}},iconSize:{type:"number",default:15,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-size-mobile"}},removeText:{type:"boolean",default:!1},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:""},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},...rg,letterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},letterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},letterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},letterSpacingType:{type:"string",default:"px",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},showIcon:{type:"boolean",default:!1}};const pg={inheritFromTheme:{type:"boolean",default:!1},block_id:{type:"string"},align:{type:"string",default:"center"},gap:{type:"number",default:10},stack:{type:"string",default:"none"},loadGoogleFonts:{type:"boolean",default:!1},fontFamily:{type:"string",default:"Default"},fontWeight:{type:"string"},fontSubset:{type:"string"},label:{type:"html",default:"#Click Here"},link:{type:"string",default:""},target:{type:"string",default:"_self"},size:{type:"number"},vPadding:{type:"number",default:10},hPadding:{type:"number",default:14},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderStyle:{type:"string",default:"solid"},borderColor:{type:"string",default:"#333"},borderHColor:{type:"string",default:"#333"},color:{type:"string",default:"#333"},background:{type:"string",default:""},backgroundType:{type:"string",default:"color"},hColor:{type:"string",default:"#333"},hBackground:{type:"string",default:""},sizeType:{type:"string",default:"px"},sizeMobile:{type:"number",default:""},sizeTablet:{type:"number",default:""},lineHeight:{type:"number",default:""},lineHeightType:{type:"string",default:"em"},lineHeightMobile:{type:"number",default:""},lineHeightTablet:{type:"number",default:""},opensInNewTab:{type:"boolean"},icon:{type:"string",default:""},iconPosition:{type:"string",default:"after"},iconSpace:{type:"number",default:8},paddingUnit:{type:"string",default:"px"},...ce("btn")};var dg=[{attributes:pg,save:e=>{const{attributes:t,className:a}=e,{block_id:l,target:i,link:o,label:n}=t;return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l)},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("div",{className:"uagb-buttons-repeater"},React.createElement(ge.RichText.Content,{value:n,tagName:"a",className:"uagb-button__link",href:o,rel:"noopener noreferrer",target:i}))))}},{attributes:pg,save:e=>{const{attributes:t,className:a}=e,{block_id:l,target:i,link:o,label:n,inheritFromTheme:r,icon:s,iconPosition:c}=t,u=e=>""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},kb(s)):null;return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,r?"wp-block-button":null)},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",r?"wp-block-button__link":null),href:o,rel:"noopener noreferrer",target:i},u("before"),React.createElement(ge.RichText.Content,{value:n,tagName:"div",className:"uagb-button__link"}),u("after"))))}},{attributes:Ab,save:function(e){const{attributes:t,className:a}=e,{block_id:l,opensInNewTab:i,link:o,label:n,icon:r,iconPosition:s,removeText:c,noFollow:u,backgroundType:p,borderStyle:d,background:b,color:g,showIcon:m}=t,y=e=>m&&""!==r&&e===s?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+s)},Ce(r)):null,f=i?"_blank":"_self",h=""!==b||"transparent"===p||"gradient"===p?"has-background":"";return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,"wp-block-button","none"!==d?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",h,""!==g?"has-text-color":""),href:o,rel:u?"nofollow noopener ":"follow noopener",target:f},y("before"),c?"":React.createElement(ge.RichText.Content,{value:n.replace(/(<([^>]+)>)/gi,""),tagName:"div",className:"uagb-button__link"}),y("after"))))}},{attributes:Bb,save:function(e){const{attributes:t,className:a}=e,{block_id:l,opensInNewTab:i,link:o,label:n,icon:r,iconPosition:s,removeText:c,noFollow:u,backgroundType:p,btnBorderStyle:d,background:b,color:g,showIcon:m}=t,y=e=>m&&""!==r&&e===s?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+s)},Ce(r)):null,f=i?"_blank":"_self",h=""!==b||"transparent"===p||"gradient"===p?"has-background":"";return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,"wp-block-button","none"!==d&&"default"!==d?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",h,""!==g?"has-text-color":""),href:o,rel:u?"nofollow noopener":"follow noopener",target:f},y("before"),c?"":React.createElement(ge.RichText.Content,{value:n.replace(/(<([^>]+)>)/gi,""),tagName:"div",className:"uagb-button__link"}),y("after"))))}},{attributes:zb,save:function(e){const{attributes:t,className:a}=e,{block_id:l,opensInNewTab:i,link:o,label:n,icon:r,iconPosition:s,removeText:c,noFollow:u,backgroundType:p,btnBorderStyle:d,background:b,color:g,showIcon:m}=t,y=e=>m&&""!==r&&e===s?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+s)},Ce(r)):null,f=i?"_blank":"_self",h=""!==b||"transparent"===p||"gradient"===p?"has-background":"";return React.createElement("div",{className:Be()(a,"uagb-buttons__outer-wrap","uagb-block-"+l,"wp-block-button","none"!==d&&"default"!==d?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",h,""!==g?"has-text-color":""),href:""===o||"#"===o?"#":o,onClick:""===o||"#"===o?"return false;":"return true;",rel:u?"nofollow noopener":"follow noopener",target:f},y("before"),c?"":React.createElement(ge.RichText.Content,{value:n.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:"div",className:"uagb-button__link"}),y("after"))))}},{attributes:Vb,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,backgroundType:d,btnBorderStyle:b,background:g,color:m,showIcon:y,dynamicContent:f}=a,h=e=>y&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,v=o?"_blank":"_self",_=""!==g||"transparent"===d||"gradient"===d?"has-background":"";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button","none"!==b&&"default"!==b?"is-style-outline":"")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link",_,""!==m?"has-text-color":""),href:""===n||"#"===n?"#":n,onClick:""!==n&&"#"!==n||null!=f&&null!==(t=f.link)&&void 0!==t&&t.enable?"return true;":"return false;",rel:p?"nofollow noopener":"follow noopener",target:v},h("before"),u?"":React.createElement(ge.RichText.Content,{value:r.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:"div",className:"uagb-button__link"}),h("after"))))}},{attributes:$b,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,dynamicContent:b}=a,g=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,m=o?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link"),href:""===n?"#":n,onClick:""!==n&&"#"!==n||null!=b&&null!==(t=b.link)&&void 0!==t&&t.enable?"return true;":"return false;",rel:p?"nofollow noopener":"follow noopener",target:m},g("before"),u?"":React.createElement(ge.RichText.Content,{value:r.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:"div",className:"uagb-button__link"}),g("after"))))}},{attributes:Xb,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,dynamicContent:b}=a,g=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,m=o?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link"),href:""===n?"#":n,onClick:""!==n&&"#"!==n||null!=b&&null!==(t=b.link)&&void 0!==t&&t.enable?"return true;":"return false;",rel:p?"nofollow noopener":"follow noopener",target:m},g("before"),u?"":React.createElement(ge.RichText.Content,{value:r,tagName:"div",className:"uagb-button__link"}),g("after"))))}},{attributes:Lb,save:function(e){var t,a;const{attributes:l,className:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g}=l,m=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c)):null,y=n?"_blank":"_self";return React.createElement("div",{className:Be()(i,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater","wp-block-button__link"),href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,onClick:""!==r&&"#"!==r||null!=g&&null!==(a=g.link)&&void 0!==a&&a.enable?"return true;":"return false;",rel:d?"nofollow noopener":"follow noopener",target:y},m("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),m("after"))))}},{attributes:ag,save:function(e){var t,a;const{attributes:l,className:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g,buttonType:m,inheritFromTheme:y}=l,f=y&&"secondary"===m,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{},_=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c)):null,T=n?"_blank":"_self";return React.createElement("div",{className:Be()(i,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+h),style:v,href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,onClick:""!==r&&"#"!==r||null!=g&&null!==(a=g.link)&&void 0!==a&&a.enable?"return true;":"return false;",rel:d?"nofollow noopener":"follow noopener",target:T},_("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),_("after"))))}},{attributes:ng,save:function(e){var t;const{attributes:a,className:l}=e,{block_id:i,opensInNewTab:o,link:n,label:r,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,dynamicContent:b,buttonType:g,inheritFromTheme:m}=a,y=m&&"secondary"===g,f=y?"ast-outline-button":"wp-block-button__link",h=y?{borderWidth:"revert-layer"}:{},v=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s)):null,_=o?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+i,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+f),"aria-label":u?r:"",style:h,href:""===n||null!=b&&null!==(t=b.link)&&void 0!==t&&t.enable?"#":n,rel:p?"nofollow noopener":"follow noopener",target:_},v("before"),u?"":React.createElement(ge.RichText.Content,{value:r,tagName:"div",className:"uagb-button__link"}),v("after"))))}},{attributes:ug,save:function(e){var t;const{attributes:a,className:l,setAttributes:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g,buttonType:m,inheritFromTheme:y}=a,f=y&&"secondary"===m,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{},_={"aria-hidden":"true",focussable:"false"},T=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c,i,_)):null,C=n?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+h),"aria-label":p?s:"",style:v,href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,rel:d?"nofollow noopener":"follow noopener",target:C},T("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),T("after"))))}}],bg=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{block_id:r,fontFamily:s,fontWeight:c,size:u,topPadding:p,rightPadding:d,bottomPadding:b,leftPadding:g,topMobilePadding:m,rightMobilePadding:y,bottomMobilePadding:f,leftMobilePadding:h,topTabletPadding:v,rightTabletPadding:_,bottomTabletPadding:T,leftTabletPadding:C,paddingUnit:S,mobilePaddingUnit:k,tabletPaddingUnit:w,btnBorderHColor:P,color:x,background:A,hColor:G,hBackground:M,sizeType:R,sizeTypeTablet:B,sizeTypeMobile:U,sizeMobile:E,sizeTablet:O,lineHeight:L,lineHeightType:H,lineHeightMobile:F,lineHeightTablet:j,iconSpace:z,iconSpaceMobile:D,iconSpaceTablet:N,fontStyle:I,transform:V,decoration:W,backgroundType:q,hoverbackgroundType:Z,gradientValue:$,gradientColor1:Y,gradientColor2:K,gradientLocation1:J,gradientLocation2:X,gradientType:Q,gradientAngle:ee,selectGradient:te,hovergradientValue:le,hovergradientColor1:ie,hovergradientColor2:oe,hovergradientLocation1:ne,hovergradientLocation2:re,hovergradientType:se,hovergradientAngle:ce,hoverselectGradient:ue,topMargin:pe,rightMargin:de,bottomMargin:be,leftMargin:ge,topMarginTablet:me,rightMarginTablet:ye,bottomMarginTablet:fe,leftMarginTablet:he,topMarginMobile:ve,rightMarginMobile:_e,bottomMarginMobile:Te,leftMarginMobile:Ce,marginType:Se,useSeparateBoxShadows:ke,boxShadowColor:we,boxShadowHOffset:Pe,boxShadowVOffset:xe,boxShadowBlur:Ae,boxShadowSpread:Ge,boxShadowPosition:Me,boxShadowColorHover:Re,boxShadowHOffsetHover:Be,boxShadowVOffsetHover:Ue,boxShadowBlurHover:Ee,boxShadowSpreadHover:Oe,boxShadowPositionHover:Le,iconColor:He,iconHColor:Fe,iconSize:je,iconSizeTablet:ze,iconSizeMobile:De,removeText:Ne,letterSpacing:Ie,letterSpacingTablet:Ve,letterSpacingMobile:We,letterSpacingType:qe,inheritFromTheme:Ze,buttonType:$e}=e,Ye="primary"===$e?".wp-block-button__link":".ast-outline-button",Ke={},Je={};let Xe={};const Qe=Zr({horizontal:Pe,vertical:xe,blur:Ae,spread:Ge,color:we,position:Me}),et=Zr({horizontal:Be,vertical:Ue,blur:Ee,spread:Oe,color:Re,position:Le,altColor:we});if(Ze)Xe[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"margin-left":Vr(ge,Se),"margin-right":Vr(de,Se),"margin-top":Vr(pe,Se),"margin-bottom":Vr(be,Se),"box-shadow":Qe},Je[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"margin-left":Vr(Ce,Se),"margin-right":Vr(_e,Se),"margin-top":Vr(ve,Se),"margin-bottom":Vr(Te,Se)},Ke[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"margin-left":Vr(he,Se),"margin-right":Vr(ye,Se),"margin-top":Vr(me,Se),"margin-bottom":Vr(fe,Se)};else{const t=Wr(e,"btn"),a=Wr(e,"btn","tablet"),l=Wr(e,"btn","mobile");if(Xe={".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater:hover .uagb-button__link":{color:G},".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater:hover":{color:G},".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater .uagb-button__link":{color:x}},Xe[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"font-size":Vr(u,R),"line-height":Vr(L,H),"font-family":s,"font-weight":c,"font-style":I,"text-transform":V,"text-decoration":W,"padding-left":Vr(g,S),"padding-right":Vr(d,S),"padding-top":Vr(p,S),"padding-bottom":Vr(b,S),"margin-left":Vr(ge,Se),"margin-right":Vr(de,Se),"margin-top":Vr(pe,Se),"margin-bottom":Vr(be,Se),color:x,"box-shadow":Qe,"letter-spacing":Vr(Ie,qe)},Xe[" .wp-block-button__link.uagb-buttons-repeater"]=t,Xe[".uagb-buttons__outer-wrap .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater:hover"]={"border-color":P},ke&&(Xe[".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater:hover"]={"box-shadow":et}),Xe[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater"]=t,Ke[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater"]=a,Je[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater"]=l,Xe[".uagb-buttons__outer-wrap.wp-block-button.is-style-outline .uagb-button__wrapper .wp-block-button__link.uagb-buttons-repeater:hover"]={"border-color":P},Je[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"font-size":Vr(E,U),"line-height":Vr(F,H),"letter-spacing":Vr(We,qe),"padding-left":Vr(h,k),"padding-right":Vr(y,k),"padding-top":Vr(m,k),"padding-bottom":Vr(f,k),"margin-left":Vr(Ce,Se),"margin-right":Vr(_e,Se),"margin-top":Vr(ve,Se),"margin-bottom":Vr(Te,Se),...l},Ke[`.uagb-buttons__outer-wrap .uagb-button__wrapper ${Ye}.uagb-buttons-repeater`]={"font-size":Vr(O,B),"line-height":Vr(j,H),"letter-spacing":Vr(Ve,qe),"padding-left":Vr(C,w),"padding-right":Vr(_,w),"padding-top":Vr(v,w),"padding-bottom":Vr(T,w),"margin-left":Vr(he,Se),"margin-right":Vr(ye,Se),"margin-top":Vr(me,Se),"margin-bottom":Vr(fe,Se),...a},"transparent"===q)Xe[".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater"]={background:"transparent"};else if("gradient"===q){const e=qr({backgroundType:"gradient",gradientValue:$,gradientColor1:Y,gradientColor2:K,gradientLocation1:J,gradientLocation2:X,gradientType:Q,gradientAngle:ee,selectGradient:te});Xe[".uagb-buttons__outer-wrap .wp-block-button__link.uagb-buttons-repeater"]=e}else"color"===q&&(Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater"]={background:A});if("transparent"===Z)Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater:hover"]={background:"transparent"};else if("gradient"===Z){const e=qr({backgroundType:"gradient",gradientValue:le,gradientColor1:ie,gradientColor2:oe,gradientLocation1:ne,gradientLocation2:re,gradientType:se,gradientAngle:ce,selectGradient:ue});Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater:hover"]=e}else"color"===Z&&(Xe[".uagb-buttons__outer-wrap.wp-block-button .wp-block-button__link.uagb-buttons-repeater:hover"]={background:M})}if(Xe[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater .uagb-button__icon svg`]={width:Vr(us(je,"iconSize",o),"px"),height:Vr(us(je,"iconSize",o),"px"),fill:He},Ke[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater .uagb-button__icon svg`]={width:Vr(ze,"px"),height:Vr(ze,"px"),fill:He},Je[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater .uagb-button__icon svg`]={width:Vr(De,"px"),height:Vr(De,"px"),fill:He},Xe[`.uagb-buttons__outer-wrap ${Ye}.uagb-buttons-repeater:hover .uagb-button__icon > svg`]={fill:Fe||G},!Ne){const e=Vr(us(z,"iconSpace",o),"px"),t=Vr(N,"px"),a=Vr(D,"px");let l="margin-right",i="margin-left";"1"!==uagb_blocks_info.is_rtl&&(l="margin-left",i="margin-right"),Xe[" .uagb-button__icon-position-after"]={[l]:e},Xe[" .uagb-button__icon-position-before"]={[i]:e},Ke[" .uagb-button__icon-position-before"]={[i]:t},Ke[" .uagb-button__icon-position-after"]={[l]:t},Je[" .uagb-button__icon-position-before"]={[i]:a},Je[" .uagb-button__icon-position-after"]={[l]:a}}const tt=i?i+" ":".editor-styles-wrapper .uagb-block-"+r;let at=ae(Xe,tt);return("tablet"===n||"mobile"===n||i)&&(at+=ae(Ke,""+tt,!0,"tablet"),("mobile"===n||i)&&(at+=ae(Je,""+tt,!0,"mobile"))),at},gg=Object(B.memo)(e=>{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)});const mg=[{defaultAttributes:ct},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowPosition",value:"outset"},{label:"boxShadowSpread",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '}],yg=[{defaultAttributes:ct},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowPositionHover",value:"outset"},{label:"boxShadowSpreadHover",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '}];var fg=Object(F.applyFilters)("uag_buttons_child_presets",mg);const hg=[{defaultAttributes:ct},{defaultPresetAttributes:[{label:"iconSpace"},{label:"backgroundType"},{label:"hoverbackgroundType"},{label:"hBackground"},{label:"hColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidth"},{label:"btnBorderTopWidth"},{label:"btnBorderLeftWidth"},{label:"btnBorderRightWidth"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"color"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"color"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"color"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"backgroundType",value:"color"},{label:"showIcon",value:!0},{label:"iconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"color",value:"#ffffff"},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderColor",value:""},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"btnBorderColor",value:""},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"btnBorderColor",value:""},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"backgroundType",value:"transparent"},{label:"color",value:"#0170b9"},{label:"hoverbackgroundType",value:"color"},{label:"hBackground",value:"#3a3a3a"},{label:"hColor",value:"#ffffff"},{label:"showIcon",value:!0},{label:"iconSpace",value:12},{label:"btnBorderColor",value:""},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];function vg(){return(vg=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l,clientId:i}=e,{block_id:o,link:s,size:c,topPadding:u,rightPadding:p,bottomPadding:d,leftPadding:b,topMobilePadding:g,rightMobilePadding:m,bottomMobilePadding:y,leftMobilePadding:f,topTabletPadding:h,rightTabletPadding:v,bottomTabletPadding:_,leftTabletPadding:T,paddingUnit:C,mobilePaddingUnit:S,tabletPaddingUnit:k,paddingLink:w,color:P,background:x,hColor:A,hBackground:G,sizeType:M,sizeTypeMobile:R,sizeTypeTablet:B,sizeMobile:U,sizeTablet:E,lineHeight:O,lineHeightType:L,lineHeightMobile:H,lineHeightTablet:F,icon:j,iconPosition:z,iconSpace:D,iconSpaceTablet:N,iconSpaceMobile:I,opensInNewTab:V,loadGoogleFonts:W,fontFamily:q,fontWeight:Z,fontStyle:$,transform:Y,decoration:K,backgroundType:J,hoverbackgroundType:X,gradientValue:Q,hovergradientValue:ee,hovergradientColor1:te,hoverselectGradient:ae,hovergradientColor2:le,hovergradientLocation1:ie,hovergradientLocation2:oe,hovergradientType:ne,hovergradientAngle:re,gradientColor1:se,gradientColor2:ce,gradientLocation1:ue,gradientLocation2:pe,gradientType:de,gradientAngle:be,selectGradient:me,topMargin:ye,rightMargin:fe,bottomMargin:he,leftMargin:ve,topMarginTablet:_e,rightMarginTablet:Te,bottomMarginTablet:Se,leftMarginTablet:ke,topMarginMobile:we,rightMarginMobile:Pe,bottomMarginMobile:xe,leftMarginMobile:Ae,marginType:Ge,marginLink:Me,useSeparateBoxShadows:Re,boxShadowColor:Be,boxShadowHOffset:Ue,boxShadowVOffset:Oe,boxShadowBlur:He,boxShadowSpread:Fe,boxShadowPosition:ze,boxShadowColorHover:De,boxShadowHOffsetHover:Ne,boxShadowVOffsetHover:Ie,boxShadowBlurHover:Ve,boxShadowSpreadHover:We,boxShadowPositionHover:qe,iconColor:Ze,iconHColor:$e,iconSize:Ye,iconSizeTablet:Ke,iconSizeMobile:Je,removeText:Xe,noFollow:Qe,letterSpacing:et,letterSpacingTablet:tt,letterSpacingMobile:at,letterSpacingType:lt,showIcon:it,inheritFromTheme:ot,buttonType:nt}=t,rt=uagb_blocks_info.current_theme,st=uagb_blocks_info.is_astra_based_theme,{updateBlockAttributes:ct}=Object(n.useDispatch)(ge.store),ut=Object(n.select)("core/block-editor").getBlockParents(i).at(-1),pt=Object(n.select)("core/block-editor").getBlockAttributes(ut),dt=[{align:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),title:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{align:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),title:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{align:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),title:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{align:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),title:Object(r.__)("Full","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(ge.AlignmentToolbar,{value:pt.align,onChange:e=>{a({align:e}),ct(ut,{align:e})},alignmentControls:dt})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,vg({},ol,{parentProps:e}),!ot&&React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Hr,{setAttributes:a,presets:hg,presetInputType:"radioImage"})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{checked:ot,onChange:()=>a({inheritFromTheme:!ot}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),ot&&("Astra"===rt||st)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:nt,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:it,onChange:()=>a({showIcon:!it})}),it&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:j,onChange:e=>a({icon:e})}),""!==j&&!Xe&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:z,label:"iconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:"Before Text"},{value:"after",label:"After Text"}],showIcons:!1}))),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,name:"link",value:s,setAttributes:a,data:{value:s,label:"link"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:V,onChange:()=>a({opensInNewTab:!V})}),React.createElement(Le.ToggleControl,{label:Object(r.__)('Add "nofollow" to link',"ultimate-addons-for-gutenberg"),checked:Qe,onChange:()=>a({noFollow:!Qe})}),""!==j&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Remove Text","ultimate-addons-for-gutenberg"),checked:Xe,onChange:()=>a({removeText:!Xe})}))),React.createElement(il,vg({},nl,{parentProps:e}),!Xe&&!ot&&React.createElement(je,{title:Object(r.__)("Text","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:P||"",data:{value:P,label:"color"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:A||"",data:{value:A,label:"hColor"},setAttributes:a}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:W,label:"loadGoogleFonts"},fontFamily:{value:q,label:"fontFamily"},fontWeight:{value:Z,label:"fontWeight"},fontStyle:{value:$,label:"fontStyle"},transform:{value:Y,label:"transform"},decoration:{value:K,label:"decoration"},fontSizeType:{value:M,label:"sizeType"},fontSizeTypeTablet:{value:B,label:"sizeTypeTablet"},fontSizeTypeMobile:{value:R,label:"sizeTypeMobile"},fontSize:{value:c,label:"size"},fontSizeMobile:{value:U,label:"sizeMobile"},fontSizeTablet:{value:E,label:"sizeTablet"},lineHeightType:{value:L,label:"lineHeightType"},lineHeight:{value:O,label:"lineHeight"},lineHeightMobile:{value:H,label:"lineHeightMobile"},lineHeightTablet:{value:F,label:"lineHeightTablet"},letterSpacing:{value:et,label:"letterSpacing"},letterSpacingTablet:{value:tt,label:"letterSpacingTablet"},letterSpacingMobile:{value:at,label:"letterSpacingMobile"},letterSpacingType:{value:lt,label:"letterSpacingType"}})),it&&""!==j&&React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ye,label:"iconSize"},tablet:{value:Ke,label:"iconSizeTablet"},mobile:{value:Je,label:"iconSizeMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),""!==j&&!Xe&&React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:D,label:"iconSpace"},tablet:{value:N,label:"iconSpaceTablet"},mobile:{value:I,label:"iconSpaceMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ze||"",data:{value:Ze,label:"iconColor"},setAttributes:a}),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:$e||"",data:{value:$e,label:"iconHColor"},setAttributes:a})),disableBottomSeparator:!0})),!ot&&React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:J,label:"backgroundType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===J&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x||"",data:{value:x,label:"background"},setAttributes:a})),"gradient"===J&&React.createElement(jl,{backgroundGradient:{value:Q,label:"gradientValue"},backgroundGradientColor1:{value:se,label:"gradientColor1"},gradientType:{value:me,label:"selectGradient"},backgroundGradientColor2:{value:ce,label:"gradientColor2"},backgroundGradientLocation1:{value:ue,label:"gradientLocation1"},backgroundGradientLocation2:{value:pe,label:"gradientLocation2"},backgroundGradientType:{value:de,label:"gradientType"},backgroundGradientAngle:{value:be,label:"gradientAngle"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:X,label:"hoverbackgroundType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===X&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:G||"",data:{value:G,label:"hBackground"},setAttributes:a})),"gradient"===X&&React.createElement(jl,{backgroundGradient:{value:ee,label:"hovergradientValue"},backgroundGradientColor1:{value:te,label:"hovergradientColor1"},gradientType:{value:ae,label:"hoverselectGradient"},backgroundGradientColor2:{value:le,label:"hovergradientColor2"},backgroundGradientLocation1:{value:ie,label:"hovergradientLocation1"},backgroundGradientLocation2:{value:oe,label:"hovergradientLocation2"},backgroundGradientType:{value:ne,label:"hovergradientType"},backgroundGradientAngle:{value:re,label:"hovergradientAngle"},setAttributes:a})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"btn",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:Re,onChange:()=>a({useSeparateBoxShadows:!Re})}),Re?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:fg,presetInputType:"radioImage"}),React.createElement(vl,{blockId:o,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Be,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ue,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Oe,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:He,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Fe,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ze,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:yg,presetInputType:"radioImage"}),React.createElement(vl,{blockId:o,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:De,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ne,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Ie,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Ve,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:We,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:qe,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:fg,presetInputType:"radioImage"}),React.createElement(vl,{blockId:o,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Be,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ue,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Oe,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:He,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Fe,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ze,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},!ot&&React.createElement(Pl,vg({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:u,label:"topPadding"},valueRight:{value:p,label:"rightPadding"},valueBottom:{value:d,label:"bottomPadding"},valueLeft:{value:b,label:"leftPadding"},valueTopTablet:{value:h,label:"topTabletPadding"},valueRightTablet:{value:v,label:"rightTabletPadding"},valueBottomTablet:{value:_,label:"bottomTabletPadding"},valueLeftTablet:{value:T,label:"leftTabletPadding"},valueTopMobile:{value:g,label:"topMobilePadding"},valueRightMobile:{value:m,label:"rightMobilePadding"},valueBottomMobile:{value:y,label:"bottomMobilePadding"},valueLeftMobile:{value:f,label:"leftMobilePadding"},unit:{value:C,label:"paddingUnit"},mUnit:{value:S,label:"mobilePaddingUnit"},tUnit:{value:k,label:"tabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:w,label:"paddingLink"}})),React.createElement(Pl,vg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:ye,label:"topMargin"},valueRight:{value:fe,label:"rightMargin"},valueBottom:{value:he,label:"bottomMargin"},valueLeft:{value:ve,label:"leftMargin"},valueTopTablet:{value:_e,label:"topMarginTablet"},valueRightTablet:{value:Te,label:"rightMarginTablet"},valueBottomTablet:{value:Se,label:"bottomMarginTablet"},valueLeftTablet:{value:ke,label:"leftMarginTablet"},valueTopMobile:{value:we,label:"topMarginMobile"},valueRightMobile:{value:Pe,label:"rightMarginMobile"},valueBottomMobile:{value:xe,label:"bottomMarginMobile"},valueLeftMobile:{value:Ae,label:"leftMarginMobile"},unit:{value:Ge,label:"marginType"},mUnit:{value:Ge,label:"marginType"},tUnit:{value:Ge,label:"marginType"},attributes:t,setAttributes:a,link:{value:Me,label:"marginLink"}})))),React.createElement(il,vg({},rl,{parentProps:e}),Ds(bg,a,t)))))}),Tg=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,deviceType:l,context:i,labelHasDynamicContent:o}=e,{className:n,icon:s,iconPosition:c,removeText:u,noFollow:p,showIcon:d,block_id:b,buttonType:g,inheritFromTheme:m}=t;let{label:y}=t;const f=m&&"secondary"===g,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{};if(o){const e=Object(F.applyFilters)("uag_render_text_loop_data",y,i);""!==e&&(y=e)}const _={"aria-hidden":"true",focussable:"false"},T=e=>d&&""!==s&&e===c?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+c)},Ce(s,a,_)):null,C=uagb_blocks_info.spectra_pro_status?["uagb/dynamic-content"]:[];return React.createElement("div",{className:Be()(n,"uagb-buttons__outer-wrap","uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-block-"+b,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("div",{className:Be()("uagb-buttons-repeater",""+h),style:v},T("before"),u?"":React.createElement(ge.RichText,{placeholder:Object(r.__)("Add text…","ultimate-addons-for-gutenberg"),value:y,tagName:"div",onChange:e=>{a({label:e})},className:"uagb-button__link",rel:p?"nofollow noopener":"follow noopener",keepPlaceholderOnFocus:!0,allowedFormats:C}),T("after"))))});function Cg(){return(Cg=Object.assign||function(e){for(var t=1;t{const{isSelected:t,clientId:a,attributes:l,attributes:{borderStyle:i,borderWidth:o,borderRadius:n,borderHColor:r,borderColor:s,label:c,globalBlockStyleId:u},setAttributes:p,name:d,deviceType:b,context:g}=e,[m,y]=Object(B.useState)({isURLPickerOpen:!1}),f=c&&-1!==c.indexOf('{var e;!f||null!=l&&null!==(e=l.context)&&void 0!==e&&e.postId||p(e=>({...e,context:g}))},[f,null==g?void 0:g.postId]),Object(B.useEffect)(()=>{ys()},[b]);const h=Object(B.useMemo)(()=>bg(l,a,d,b),[l,b]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:h}),React.createElement(gg,{attributes:l}),t&&React.createElement(_g,Cg({},e,{state:m,setStateValue:y})),React.createElement(Tg,e))});a(220);let kg={};kg=Object(F.applyFilters)("uagb/buttons-child",ss(kg)),Object(de.registerBlockType)("uagb/buttons-child",{...kg,title:Object(r.__)("Button","ultimate-addons-for-gutenberg"),description:Object(r.__)("This block allows you to style button.","ultimate-addons-for-gutenberg"),icon:se.buttons_child,parent:["uagb/buttons"],attributes:ct,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"buttons-child",isChildren:!0}):React.createElement(Sg,e),save:function(e){var t;const{attributes:a,className:l,setAttributes:i}=e,{block_id:o,opensInNewTab:n,link:r,label:s,icon:c,iconPosition:u,removeText:p,noFollow:d,showIcon:b,dynamicContent:g,buttonType:m,inheritFromTheme:y}=a,f=y&&"secondary"===m,h=f?"ast-outline-button":"wp-block-button__link",v=f?{borderWidth:"revert-layer"}:{},_={"aria-hidden":"true",focussable:"false"},T=e=>b&&""!==c&&e===u?React.createElement("span",{className:Be()("uagb-button__icon","uagb-button__icon-position-"+u)},Ce(c,i,_)):null,C=n?"_blank":"_self";return React.createElement("div",{className:Be()(l,"uagb-buttons__outer-wrap","uagb-block-"+o,"wp-block-button")},React.createElement("div",{className:"uagb-button__wrapper"},React.createElement("a",{className:Be()("uagb-buttons-repeater",""+h),"aria-label":p?s:"",style:v,href:""===r||null!=g&&null!==(t=g.link)&&void 0!==t&&t.enable?"#":r,rel:d?"nofollow noopener":"follow noopener",target:C,role:"button"},T("before"),p?"":React.createElement(ge.RichText.Content,{value:s,tagName:"div",className:"uagb-button__link"}),T("after"))))},deprecated:dg,usesContext:["queryId","query","queryContext","postId","postType"],supports:{anchor:!0,html:!1}});var wg=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=l.toLowerCase(),{block_id:n,headingAlign:r,headingAlignTablet:s,headingAlignMobile:c,headingColor:u,subHeadingColor:p,prefixColor:d,prefixFontSize:b,prefixFontSizeType:g,prefixFontSizeTypeMobile:m,prefixFontSizeTypeTablet:y,prefixFontSizeTablet:f,prefixFontSizeMobile:h,prefixFontFamily:v,prefixFontWeight:_,prefixLineHeightType:T,prefixLineHeight:C,prefixLineHeightTablet:S,prefixLineHeightMobile:k,prefixLetterSpacing:w,prefixLetterSpacingTablet:P,prefixLetterSpacingMobile:x,prefixLetterSpacingType:A,headFontSize:G,headFontSizeType:M,headFontSizeTypeMobile:R,headFontSizeTypeTablet:B,headFontSizeTablet:U,headFontSizeMobile:E,headFontFamily:O,headFontWeight:L,headLineHeightType:H,headLineHeight:F,headLineHeightTablet:j,headLineHeightMobile:z,headLetterSpacing:D,headLetterSpacingTablet:N,headLetterSpacingMobile:I,headLetterSpacingType:V,subHeadFontSize:W,subHeadFontSizeType:q,subHeadFontSizeTypeMobile:Z,subHeadFontSizeTypeTablet:$,subHeadFontSizeTablet:Y,subHeadFontSizeMobile:K,subHeadFontFamily:J,subHeadFontWeight:X,subHeadLineHeightType:Q,subHeadLineHeight:ee,subHeadLineHeightTablet:te,subHeadLineHeightMobile:le,separatorWidthType:ie,iconColor:oe,iconSize:ne,iconSizeType:re,iconSizeTablet:se,iconSizeMobile:ce,iconimgPosition:ue,iconHover:pe,iconimgBorderRadius:de,iconimgBorderRadiusUnit:be,seperatorStyle:ge,seperatorWidth:me,seperatorWidthTablet:ye,seperatorWidthMobile:fe,seperatorColor:he,seperatorThickness:ve,thicknessUnit:_e,ctaLinkColor:Te,ctaFontSize:Ce,ctaFontSizeType:Se,ctaFontSizeTypeMobile:ke,ctaFontSizeTypeTablet:we,ctaFontSizeMobile:Pe,ctaFontSizeTablet:xe,ctaLineHeightType:Ae,ctaLineHeight:Ge,ctaLineHeightMobile:Me,ctaLineHeightTablet:Re,ctaLetterSpacingType:Be,ctaLetterSpacing:Ue,ctaLetterSpacingTablet:Ee,ctaLetterSpacingMobile:Oe,ctaFontFamily:Le,ctaFontWeight:He,ctaBtnLinkColor:Fe,ctaBgType:je,ctaBgHoverType:ze,ctaBgColor:De,paddingBtnUnit:Ne,mobilePaddingBtnUnit:Ie,tabletPaddingBtnUnit:Ve,paddingBtnTop:We,paddingBtnBottom:qe,paddingBtnLeft:Ze,paddingBtnRight:$e,paddingBtnTopTablet:Ye,paddingBtnRightTablet:Ke,paddingBtnBottomTablet:Je,paddingBtnLeftTablet:Xe,paddingBtnTopMobile:Qe,paddingBtnRightMobile:et,paddingBtnBottomMobile:tt,paddingBtnLeftMobile:at,iconLeftMargin:lt,iconRightMargin:it,iconTopMargin:ot,iconBottomMargin:nt,iconMarginTopTablet:rt,iconMarginRightTablet:st,iconMarginBottomTablet:ct,iconMarginLeftTablet:ut,iconMarginTopMobile:pt,iconMarginRightMobile:dt,iconMarginBottomMobile:bt,iconMarginLeftMobile:gt,iconMarginUnit:mt,iconMobileMarginUnit:yt,iconTabletMarginUnit:ft,imageWidth:ht,imageWidthMobile:vt,imageWidthTablet:_t,imageWidthType:Tt,imageWidthUnit:Ct,imageWidthUnitTablet:St,imageWidthUnitMobile:kt,ctaLinkHoverColor:wt,ctaBgHoverColor:Pt,btnBorderHColor:xt,ctaIconSpace:At,ctaIconSpaceTablet:Gt,ctaIconSpaceMobile:Mt,ctaIconSpaceType:Rt,ctaTransform:Bt,ctaDecoration:Ut,prefixTransform:Et,prefixDecoration:Ot,headTransform:Lt,headDecoration:Ht,subHeadTransform:Ft,subHeadDecoration:jt,stack:zt,prefixFontStyle:Dt,headFontStyle:Nt,subHeadFontStyle:It,ctaFontStyle:Vt,ctaIconPosition:Wt,prefixTopMargin:qt,prefixRightMargin:Zt,prefixSpace:$t,prefixLeftMargin:Yt,prefixMarginTopTablet:Kt,prefixMarginRightTablet:Jt,prefixTabletSpace:Xt,prefixMarginLeftTablet:Qt,prefixMarginTopMobile:ea,prefixMarginRightMobile:ta,prefixMobileSpace:aa,prefixMarginLeftMobile:la,prefixSpaceUnit:ia,prefixMobileMarginUnit:oa,prefixTabletMarginUnit:na,headTopMargin:ra,headRightMargin:sa,headSpace:ca,headLeftMargin:ua,headMarginTopTablet:pa,headMarginRightTablet:da,headTabletSpace:ba,headMarginLeftTablet:ga,headMarginTopMobile:ma,headMarginRightMobile:ya,headMobileSpace:fa,headMarginLeftMobile:ha,headSpaceUnit:va,headMobileMarginUnit:_a,headTabletMarginUnit:Ta,separatorTopMargin:Ca,separatorRightMargin:Sa,seperatorSpace:ka,separatorLeftMargin:wa,separatorMarginTopTablet:Pa,separatorMarginRightTablet:xa,seperatorTabletSpace:Aa,separatorMarginLeftTablet:Ga,separatorMarginTopMobile:Ma,separatorMarginRightMobile:Ra,seperatorMobileSpace:Ba,separatorMarginLeftMobile:Ua,seperatorSpaceUnit:Ea,separatorMobileMarginUnit:Oa,separatorTabletMarginUnit:La,subHeadTopMargin:Ha,subHeadRightMargin:Fa,subHeadSpace:ja,subHeadLeftMargin:za,subHeadMarginTopTablet:Da,subHeadMarginRightTablet:Na,subHeadTabletSpace:Ia,subHeadMarginLeftTablet:Va,subHeadMarginTopMobile:Wa,subHeadMarginRightMobile:qa,subHeadMobileSpace:Za,subHeadMarginLeftMobile:$a,subHeadSpaceUnit:Ya,subHeadMobileMarginUnit:Ka,subHeadTabletMarginUnit:Ja,subHeadLetterSpacing:Xa,subHeadLetterSpacingTablet:Qa,subHeadLetterSpacingMobile:el,subHeadLetterSpacingType:tl,iconView:al,iconBackgroundColor:ll,iconBackgroundHoverColor:il,iconBorderWidth:ol,blockTopMargin:nl,blockRightMargin:rl,blockLeftMargin:sl,blockBottomMargin:cl,blockTopMarginTablet:ul,blockRightMarginTablet:pl,blockLeftMarginTablet:dl,blockBottomMarginTablet:bl,blockTopMarginMobile:gl,blockRightMarginMobile:ml,blockLeftMarginMobile:yl,blockBottomMarginMobile:fl,blockMarginUnit:hl,blockMarginUnitTablet:vl,blockMarginUnitMobile:_l,blockTopPadding:Tl,blockRightPadding:Cl,blockLeftPadding:Sl,blockBottomPadding:kl,blockTopPaddingTablet:wl,blockRightPaddingTablet:Pl,blockLeftPaddingTablet:xl,blockBottomPaddingTablet:Al,blockTopPaddingMobile:Gl,blockRightPaddingMobile:Ml,blockLeftPaddingMobile:Rl,blockBottomPaddingMobile:Bl,blockPaddingUnit:Ul,blockPaddingUnitTablet:El,blockPaddingUnitMobile:Ol,inheritFromTheme:Ll,infoboxBorderHColor:Hl}=e,Fl=a.replace("uagb/",""),jl=us(ve,"seperatorThickness",Fl),zl=us(ne,"iconSize",Fl),Dl=isNaN(se)?zl:se,Nl=isNaN(ce)?Dl:ce,Il=us(de,"iconimgBorderRadius",Fl),Vl=us(me,"seperatorWidth",Fl),Wl=us(ye,"seperatorWidthTablet",Fl),ql=us(fe,"seperatorWidthMobile",Fl),Zl=us(At,"ctaIconSpace",Fl),$l=isNaN(Gt)?Zl:Gt,Yl=isNaN(Mt)?$l:Mt,Kl=us(ht,"imageWidth",Fl),Jl=isNaN(_t)?Kl:_t,Xl=isNaN(vt)?Jl:vt,Ql="%"===re?"border-box":"content-box",ei="%"===Ct?"border-box":"content-box",ti="%"===St?"border-box":"content-box",ai="%"===kt?"border-box":"content-box",li=Wr(e,"infobox"),ii=Wr(e,"infobox","tablet"),oi=Wr(e,"infobox","mobile"),ni={" .uagb-ifb-content .uagb-ifb-icon-wrap svg":{"font-size":Vr(zl,re),color:oe,fill:oe,"line-height":Vr(zl,re)}," .uagb-iconbox-icon-wrap":{margin:"auto",display:"inline-flex","align-items":"center","justify-content":"center","box-sizing":"content-box",width:Vr(zl,re),height:Vr(zl,re),"line-height":Vr(zl,re),"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt)}," .uagb-ifb-content .uagb-ifb-left-title-image svg":{"font-size":Vr(zl,re),color:oe,fill:oe,width:Vr(zl,re),"line-height":Vr(zl,re)}," .uagb-ifb-content .uagb-ifb-right-title-image svg":{"font-size":Vr(zl,re),color:oe,fill:oe,width:Vr(zl,re),"line-height":Vr(zl,re)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg":{"font-size":Vr(zl,re),color:oe,fill:oe,width:Vr(zl,re),height:Vr(zl,re),"line-height":Vr(zl,re)}," .uagb-ifb-content .uagb-ifb-icon-wrap svg:hover":{fill:pe},".uagb-infobox-icon-left .uagb-ifb-icon-wrap > svg:hover":{fill:pe},".uagb-infobox-icon-right .uagb-ifb-icon-wrap:hover > svg:hover":{fill:pe},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg:hover":{fill:pe},".uagb-infobox_cta-type-all:hover .uagb-infobox__content-wrap svg":{fill:pe,color:pe},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap > svg":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt)},".uagb-infobox__content-wrap .uagb-ifb-image-content > img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"padding-left":Vr(lt,mt),"padding-right":Vr(it,mt),"padding-top":Vr(ot,mt),"padding-bottom":Vr(nt,mt),"border-radius":Vr(Il,be),"box-sizing":""+ei}," .block-editor-rich-text__editable.uagb-ifb-title-prefix":{"font-size":Vr(b,g),"font-family":v,"font-weight":_,"line-height":Vr(C,T),"font-style":Dt,"text-decoration":Ot,"text-transform":Et,color:d,"letter-spacing":Vr(w,A),"margin-bottom":Vr($t,ia),"margin-top":Vr(qt,ia),"margin-left":Vr(Yt,ia),"margin-right":Vr(Zt,ia)}," .block-editor-rich-text__editable.uagb-ifb-title a":{color:u}," .block-editor-rich-text__editable.uagb-ifb-title":{"font-size":Vr(G,M),"font-family":O,"font-weight":L,"line-height":Vr(F,H),"font-style":Nt,"text-decoration":Ht,"text-transform":Lt,"letter-spacing":Vr(D,V),color:u,"margin-top":Vr(ra,va),"margin-bottom":Vr(ca,va),"margin-left":Vr(ua,va),"margin-right":Vr(sa,va)}," .uagb-ifb-desc.block-editor-block-list__layout p":{color:p,"line-height":Vr(ee,Q),"text-decoration":jt}," .uagb-ifb-desc.block-editor-block-list__layout":{"font-size":Vr(W,q),"font-family":J,"font-weight":X,"font-style":It,"text-transform":Ft,"letter-spacing":Vr(Xa,tl),color:p,"margin-bottom":Vr(ja,Ya),"margin-top":Vr(Ha,Ya),"margin-left":Vr(za,Ya),"margin-right":Vr(Fa,Ya)}," .block-editor-rich-text__editable.uagb-ifb-desc":{"font-size":Vr(W,q),"font-family":J,"font-weight":X,"line-height":Vr(ee,Q),"font-style":It,"text-decoration":jt,"text-transform":Ft,"letter-spacing":Vr(Xa,tl),color:p,"margin-bottom":Vr(ja,Ya),"margin-top":Vr(Ha,Ya),"margin-left":Vr(za,Ya),"margin-right":Vr(Fa,Ya)},".uagb-infobox__content-wrap .uagb-ifb-separator":{width:Vr(Vl,ie),"border-top-width":Vr(jl,_e),"border-top-color":he,"border-top-style":ge}," .uagb-ifb-separator":{"margin-bottom":Vr(ka,Ea),"margin-top":Vr(Ca,Ea),"margin-left":Vr(wa,Ea),"margin-right":Vr(Sa,Ea)},".uagb-infobox__content-wrap .uagb-ifb-content svg":{"box-sizing":""+Ql},".uagb-infobox__content-wrap":li,".uagb-infobox__content-wrap:hover":{"border-color":Hl}};"Stacked"===al?(ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-circle"]={"background-color":ll,"border-radius":"50%"},ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-squre"]={"background-color":ll},ni[" .uagb-iconbox-icon-wrap:hover"]={"background-color":il+" !important"}):"Framed"===al&&(ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-circle"]={border:`${ol}px solid ${ll}`,"border-radius":"50%"},ni[" .uagb-iconbox-icon-wrap.uagb-infobox-shape-squre"]={border:`${ol}px solid ${ll}`},ni[" .uagb-iconbox-icon-wrap:hover"]={border:`${ol}px solid ${il}`});const ri={" .uagb-iconbox-icon-wrap":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft),width:Vr(Dl,re),height:Vr(Dl,re),"line-height":Vr(Dl,re)}," .block-editor-rich-text__editable.uagb-ifb-desc":{"margin-bottom":Vr(Ia,Ja),"margin-top":Vr(Da,Ja),"margin-left":Vr(Va,Ja),"margin-right":Vr(Na,Ja),"font-size":Vr(Y,$),"line-height":Vr(te,Q),"letter-spacing":Vr(Qa,tl)}," .uagb-ifb-desc.block-editor-block-list__layout p":{"line-height":Vr(te,Q)}," .uagb-ifb-desc.block-editor-block-list__layout":{"margin-bottom":Vr(Ia,Ja),"margin-top":Vr(Da,Ja),"margin-left":Vr(Va,Ja),"margin-right":Vr(Na,Ja),"font-size":Vr(Y,$),"letter-spacing":Vr(Qa,tl)}," .block-editor-rich-text__editable.uagb-ifb-title":{"margin-top":Vr(pa,Ta),"margin-bottom":Vr(ba,Ta),"margin-left":Vr(ga,Ta),"margin-right":Vr(da,Ta),"font-size":Vr(U,B),"line-height":Vr(j,H),"letter-spacing":Vr(N,V)}," .block-editor-rich-text__editable.uagb-ifb-title-prefix":{"margin-bottom":Vr(Xt,na),"margin-top":Vr(Kt,na),"margin-left":Vr(Qt,na),"margin-right":Vr(Jt,na),"font-size":Vr(f,y),"line-height":Vr(S,T),"letter-spacing":Vr(P,A)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-image-content > img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"padding-top":Vr(rt,ft),"padding-right":Vr(st,ft),"padding-bottom":Vr(ct,ft),"padding-left":Vr(ut,ft)},".uagb-infobox__content-wrap .uagb-ifb-separator":{width:Vr(Wl,ie)}," .uagb-ifb-separator":{"margin-bottom":Vr(Aa,La),"margin-top":Vr(Pa,La),"margin-left":Vr(Ga,La),"margin-right":Vr(xa,La)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"box-sizing":""+ti}," .uagb-ifb-content .uagb-ifb-icon-wrap svg":{"font-size":Vr(Dl,re),"line-height":Vr(Dl,re)}," .uagb-ifb-content .uagb-ifb-left-title-image svg":{"font-size":Vr(Dl,re),width:Vr(Dl,re),"line-height":Vr(Dl,re)}," .uagb-ifb-content .uagb-ifb-right-title-image svg":{"font-size":Vr(Dl,re),width:Vr(Dl,re),"line-height":Vr(Dl,re)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg":{"font-size":Vr(Dl,re),width:Vr(Dl,re),height:Vr(Dl,re),"line-height":Vr(Dl,re)},".uagb-infobox__content-wrap":ii},si={" .uagb-iconbox-icon-wrap":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)}," .uagb-ifb-desc.block-editor-block-list__layout p":{"line-height":Vr(le,Q)}," .block-editor-rich-text__editable.uagb-ifb-desc":{"font-size":Vr(K,Z),"letter-spacing":Vr(el,tl),"margin-bottom":Vr(Za,Ka),"margin-top":Vr(Wa,Ka),"margin-left":Vr($a,Ka),"margin-right":Vr(qa,Ka)}," .uagb-ifb-desc.block-editor-block-list__layout":{"font-size":Vr(K,Z),"letter-spacing":Vr(el,tl),"margin-bottom":Vr(Za,Ka),"margin-top":Vr(Wa,Ka),"margin-left":Vr($a,Ka),"margin-right":Vr(qa,Ka)}," .block-editor-rich-text__editable.uagb-ifb-title":{"font-size":Vr(E,R),"line-height":Vr(z,H),"letter-spacing":Vr(I,V),"margin-top":Vr(ma,_a),"margin-bottom":Vr(fa,_a),"margin-left":Vr(ha,_a),"margin-right":Vr(ya,_a)}," .block-editor-rich-text__editable.uagb-ifb-title-prefix":{"font-size":Vr(h,m),"line-height":Vr(k,T),"letter-spacing":Vr(x,A),"margin-bottom":Vr(aa,oa),"margin-top":Vr(ea,oa),"margin-left":Vr(la,oa),"margin-right":Vr(ta,oa)}," .uagb-ifb-separator":{"margin-bottom":Vr(Ba,Oa),"margin-top":Vr(Ma,Oa),"margin-left":Vr(Ua,Oa),"margin-right":Vr(Ra,Oa)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-icon-wrap > svg":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-image-content > img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt)},".uagb-infobox__content-wrap .uagb-ifb-content img":{"padding-top":Vr(pt,yt),"padding-right":Vr(dt,yt),"padding-bottom":Vr(bt,yt),"padding-left":Vr(gt,yt),"box-sizing":""+ai},".uagb-infobox__content-wrap .uagb-ifb-separator":{width:Vr(ql,ie)}," .uagb-infobox-cta-link svg":{"font-size":Vr(Pe,ke),height:Vr(Pe,ke),"line-height":Vr(Pe,ke),width:Vr(Pe,ke)}," .uagb-ifb-content .uagb-ifb-icon-wrap svg":{"font-size":Vr(Nl,re),"line-height":Vr(Nl,re)}," .uagb-ifb-content .uagb-ifb-left-title-image svg":{"font-size":Vr(Nl,re),width:Vr(Nl,re),"line-height":Vr(Nl,re)}," .uagb-ifb-content .uagb-ifb-right-title-image svg":{"font-size":Vr(Nl,re),width:Vr(Nl,re),"line-height":Vr(Nl,re)},".uagb-infobox__content-wrap .uagb-ifb-icon-wrap svg":{"font-size":Vr(Nl,re),width:Vr(Nl,re),height:Vr(Nl,re),"line-height":Vr(Nl,re)},".uagb-infobox__content-wrap":oi};"left"!==ue&&"right"!==ue||("none"===zt?(ri[" .uagb-infobox-margin-wrapper"]={display:"flex"},si[" .uagb-infobox-margin-wrapper"]={display:"flex"}):"mobile"===zt&&(ri[" .uagb-infobox-margin-wrapper"]={display:"flex"},si[" .uagb-infobox-margin-wrapper"]={display:"block"})),"above-title"===ue&&(ni[".uagb-infobox-icon-above-title"]={"text-align":r},ri[".uagb-infobox-icon-above-title"]={"text-align":s},si[".uagb-infobox-icon-above-title"]={"text-align":c}),"below-title"===ue&&(ni[".uagb-infobox-icon-below-title"]={"text-align":r},ri[".uagb-infobox-icon-below-title"]={"text-align":s},si[".uagb-infobox-icon-below-title"]={"text-align":c}),ni[".uagb-infobox__content-wrap:not(.wp-block-uagb-info-box--has-margin)"]={"padding-top":Vr(Tl,Ul),"padding-right":Vr(Cl,Ul),"padding-bottom":Vr(kl,Ul),"padding-left":Vr(Sl,Ul)},ni[".uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper"]={"padding-top":Vr(Tl,Ul),"padding-right":Vr(Cl,Ul),"padding-bottom":Vr(kl,Ul),"padding-left":Vr(Sl,Ul),"margin-top":Vr(nl,hl),"margin-right":Vr(rl,hl),"margin-bottom":Vr(cl,hl),"margin-left":Vr(sl,hl)},ri[".uagb-infobox__content-wrap:not(.wp-block-uagb-info-box--has-margin)"]={"padding-top":Vr(wl,El),"padding-right":Vr(Pl,El),"padding-bottom":Vr(Al,El),"padding-left":Vr(xl,El)},ri[".uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper"]={"padding-top":Vr(wl,El),"padding-right":Vr(Pl,El),"padding-bottom":Vr(Al,El),"padding-left":Vr(xl,El),"margin-top":Vr(ul,vl),"margin-right":Vr(pl,vl),"margin-bottom":Vr(bl,vl),"margin-left":Vr(dl,vl)},si[".uagb-infobox__content-wrap:not(.wp-block-uagb-info-box--has-margin)"]={"padding-top":Vr(Gl,Ol),"padding-right":Vr(Ml,Ol),"padding-bottom":Vr(Bl,Ol),"padding-left":Vr(Rl,Ol)},si[".uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper"]={"padding-top":Vr(Gl,Ol),"padding-right":Vr(Ml,Ol),"padding-bottom":Vr(Bl,Ol),"padding-left":Vr(Rl,Ol),"margin-top":Vr(gl,_l),"margin-right":Vr(ml,_l),"margin-bottom":Vr(fl,_l),"margin-left":Vr(yl,_l)},Tt&&(ni[".uagb-infobox__content-wrap img"]={width:Vr(Kl,Ct)},ni[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image > img"]={width:Vr(Kl,Ct)},ni[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image > img"]={width:Vr(Kl,Ct)},ni[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-image-content > img"]={width:Vr(Kl,Ct)},ri[".uagb-infobox__content-wrap img"]={width:Vr(Jl,St)},ri[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image > img"]={width:Vr(Jl,St)},ri[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image > img"]={width:Vr(Jl,St)},ri[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-image-content > img"]={width:Vr(Jl,St)},si[".uagb-infobox__content-wrap img"]={width:Vr(Xl,kt)},si[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-right-title-image > img"]={width:Vr(Xl,kt)},si[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-left-title-image > img"]={width:Vr(Xl,kt)},si[".uagb-infobox__content-wrap .uagb-ifb-content .uagb-ifb-image-content > img"]={width:Vr(Xl,kt)});const ci=Vr(Zl,Rt),ui=Vr($l,Rt),pi=Vr(Yl,Rt);if("after"===Wt){const e="1"===uagb_blocks_info.is_rtl?"margin-right":"margin-left";ni[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ci},ri[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ui},si[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:pi}}else{const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";ni[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ci},ri[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:ui},si[".uagb-infobox__content-wrap .uagb-infobox-cta-link > svg"]={[e]:pi}}if(!Ll){const t=Wr(e,"btn"),a=Wr(e,"btn","tablet"),l=Wr(e,"btn","mobile");ni[" div.uagb-ifb-cta a.uagb-infobox-cta-link"]={"font-size":Vr(Ce,Se),"font-family":Le,"font-weight":He,"font-style":Vt,"text-decoration":Ut,"text-transform":Bt,"letter-spacing":Vr(Ue,Be),"line-height":Vr(Ge,Ae),color:Te},ni[" div.uagb-ifb-cta a.uagb-infobox-cta-link:hover"]={color:wt},ni[" .uagb-infobox-cta-link svg"]={"font-size":Vr(Ce,Se),height:Vr(Ce,Se),width:Vr(Ce,Se),"line-height":Vr(Ce,Se),fill:Te},ni[" .uagb-infobox-cta-link:hover svg"]={fill:wt},ni[" div.uagb-ifb-button-wrapper a.uagb-infobox-cta-link"]={color:Fe,"background-color":"color"===je?De:"transparent","padding-top":Vr(We,Ne),"padding-bottom":Vr(qe,Ne),"padding-left":Vr(Ze,Ne),"padding-right":Vr($e,Ne)},ni[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link"]={color:Fe,"background-color":De,"padding-top":Vr(We,Ne),"padding-bottom":Vr(qe,Ne),"padding-left":Vr(Ze,Ne),"padding-right":Vr($e,Ne)},ni[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link:hover"]={color:wt,"background-color":"color"===ze?Pt:"transparent","border-color":xt},ni[" .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover"]={color:wt,"background-color":"color"===ze?Pt:"transparent","border-color":xt},ni[" .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg"]={fill:Fe},ni[" .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg"]={fill:wt},ri[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link"]={"padding-top":Vr(Ye,Ve),"padding-bottom":Vr(Je,Ve),"padding-left":Vr(Xe,Ve),"padding-right":Vr(Ke,Ve)},ri[" .uagb-infobox-cta-link"]={"font-size":Vr(xe,we),"letter-spacing":Vr(Ee,Be),"line-height":Vr(Re,Ae)},si[".uagb-infobox__content-wrap .uagb-ifb-cta .uagb-ifb-button-wrapper.wp-block-button a.uagb-infobox-cta-link.wp-block-button__link"]={"padding-top":Vr(Qe,Ie),"padding-bottom":Vr(tt,Ie),"padding-left":Vr(at,Ie),"padding-right":Vr(et,Ie)},si[" .uagb-infobox-cta-link"]={"font-size":Vr(Pe,ke),"letter-spacing":Vr(Oe,Be),"line-height":Vr(Me,Ae)},ni[" .uagb-infobox-cta-link.wp-block-button__link"]=t,si[" .uagb-infobox-cta-link.wp-block-button__link"]=l,ri[" .uagb-infobox-cta-link.wp-block-button__link"]=a}const di=".editor-styles-wrapper "+(i?i+" ":`#block-${t} .uagb-block-${n}`);let bi=ae(ni,di);return("tablet"===o||"mobile"===o||i)&&(bi+=ae(ri,""+di,!0,"tablet"),("mobile"===o||i)&&(bi+=ae(si,""+di,!0,"mobile"))),bi},Pg=Object(B.memo)(e=>{let{attributes:t}=e;const{prefixLoadGoogleFonts:a,headLoadGoogleFonts:l,subHeadLoadGoogleFonts:i,ctaLoadGoogleFonts:o,prefixFontFamily:n,prefixFontWeight:r,headFontFamily:s,headFontWeight:c,subHeadFontFamily:u,subHeadFontWeight:p,ctaFontFamily:d,ctaFontWeight:b}=t;let g,m,y,f;if(!0===a){const e={google:{families:[n+(r?":"+r:"")]}};g=React.createElement(O,{config:e})}if(!0===l){const e={google:{families:[s+(c?":"+c:"")]}};f=React.createElement(O,{config:e})}if(!0===i){const e={google:{families:[u+(p?":"+p:"")]}};m=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[d+(b?":"+b:"")]}};y=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,g,m,y,f)});const xg=[{defaultAttributes:bt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"center"},{label:"ctaType",value:"button"},{label:"showIcon",value:!0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"left"},{label:"ctaType",value:"button"},{label:"iconLeftMargin",value:0},{label:"iconRightMargin",value:0},{label:"showIcon",value:!0}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"left"},{label:"ctaType",value:"none"},{label:"showIcon",value:!0}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"center"},{label:"showIcon",value:!1},{label:"ctaType",value:"text"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"headingAlign",value:"left"},{label:"showIcon",value:!1},{label:"ctaType",value:"text"}],icon:' '}];var Ag=Object(F.applyFilters)("uag_info_box_presets",xg);const Gg=[{defaultAttributes:bt},{defaultPresetAttributes:[{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"},{label:"showCtaIcon"},{label:"ctaIconSpace"},{label:"ctaBgType"},{label:"ctaBgHoverColor"},{label:"ctaBtnLinkColor"},{label:"ctaLinkHoverColor"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"showCtaIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showCtaIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverType",value:"color"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"showCtaIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '}];function Mg(){return(Mg=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{headingAlign:i,headingAlignTablet:o,headingAlignMobile:n,headingColor:s,subHeadingColor:c,prefixColor:u,prefixFontSize:p,prefixFontSizeType:d,prefixFontSizeTypeMobile:b,prefixFontSizeTypeTablet:g,prefixFontSizeTablet:m,prefixFontSizeMobile:y,prefixFontFamily:f,prefixFontWeight:h,prefixFontStyle:v,prefixLineHeightType:_,prefixLineHeight:T,prefixLineHeightTablet:C,prefixLineHeightMobile:S,prefixTransform:k,prefixDecoration:w,prefixLoadGoogleFonts:P,prefixHeadingTag:x,headingTag:A,headFontSize:G,headFontSizeType:M,headFontSizeTypeMobile:R,headFontSizeTypeTablet:B,headFontSizeTablet:U,headFontSizeMobile:E,headFontFamily:O,headFontWeight:L,headFontStyle:H,headLineHeightType:F,headLineHeight:z,headLineHeightTablet:D,headLineHeightMobile:N,headLoadGoogleFonts:I,subHeadFontSize:V,subHeadFontSizeType:W,subHeadFontSizeTypeMobile:q,subHeadFontSizeTypeTablet:Z,subHeadFontSizeTablet:$,subHeadFontSizeMobile:Y,subHeadFontFamily:K,subHeadFontWeight:J,subHeadFontStyle:X,subHeadLineHeightType:Q,subHeadLineHeight:ee,subHeadLineHeightTablet:te,subHeadLineHeightMobile:ae,subHeadTransform:le,subHeadDecoration:ie,subHeadLoadGoogleFonts:oe,separatorWidthType:ne,icon:re,iconColor:se,iconSize:ce,iconSizeType:ue,iconSizeTablet:pe,iconSizeMobile:de,iconimgPosition:be,iconHover:me,iconimgBorderRadius:ye,iconimgBorderRadiusUnit:fe,source_type:he,sourceAlign:ve,seperatorPosition:_e,seperatorStyle:Te,seperatorWidth:Se,seperatorWidthTablet:ke,seperatorWidthMobile:we,seperatorColor:Pe,seperatorThickness:xe,thicknessUnit:Ae,ctaType:Ge,ctaButtonType:Me,ctaBgType:Re,ctaBgHoverType:Be,ctaLink:Ue,ctaTarget:Oe,showCtaIcon:He,ctaIcon:Fe,ctaIconPosition:ze,ctaIconSpace:De,ctaIconSpaceTablet:Ne,ctaIconSpaceMobile:Ie,ctaIconSpaceType:Ve,ctaLinkColor:We,ctaFontSize:qe,ctaFontSizeType:Ze,ctaFontSizeTypeMobile:$e,ctaFontSizeTypeTablet:Ye,ctaFontSizeMobile:Ke,ctaFontSizeTablet:Je,ctaTransform:Xe,ctaDecoration:Qe,ctaFontFamily:et,ctaFontWeight:tt,ctaFontStyle:at,ctaLineHeightType:lt,ctaLineHeight:it,ctaLineHeightMobile:ot,ctaLineHeightTablet:nt,ctaLetterSpacingType:rt,ctaLetterSpacing:st,ctaLetterSpacingTablet:ct,ctaLetterSpacingMobile:ut,ctaLoadGoogleFonts:pt,ctaBtnLinkColor:dt,ctaLinkHoverColor:bt,ctaBgHoverColor:gt,ctaBgColor:mt,paddingBtnUnit:yt,mobilePaddingBtnUnit:ft,tabletPaddingBtnUnit:ht,paddingBtnTop:vt,paddingBtnBottom:_t,paddingBtnLeft:Tt,paddingBtnRight:Ct,paddingBtnTopTablet:St,paddingBtnRightTablet:kt,paddingBtnBottomTablet:wt,paddingBtnLeftTablet:Pt,paddingBtnTopMobile:xt,paddingBtnRightMobile:At,paddingBtnBottomMobile:Gt,paddingBtnLeftMobile:Mt,iconLeftMargin:Rt,iconRightMargin:Bt,iconTopMargin:Ut,iconBottomMargin:Et,iconMarginTopTablet:Ot,iconMarginRightTablet:Lt,iconMarginBottomTablet:Ht,iconMarginLeftTablet:Ft,iconMarginTopMobile:jt,iconMarginRightMobile:zt,iconMarginBottomMobile:Dt,iconMarginLeftMobile:Nt,iconMarginUnit:It,iconMobileMarginUnit:Vt,iconTabletMarginUnit:Wt,iconImage:qt,imageSize:Zt,imageWidth:$t,imageWidthMobile:Yt,imageWidthTablet:Kt,imageWidthType:Jt,imageWidthUnit:Xt,imageWidthUnitTablet:Qt,imageWidthUnitMobile:ea,stack:ta,showIcon:aa,showPrefix:la,showTitle:ia,showDesc:oa,spacingLink:na,paddingspacingLink:ra,htmlTag:sa,headTransform:ca,headDecoration:ua,headLetterSpacing:pa,headLetterSpacingTablet:da,headLetterSpacingMobile:ba,headLetterSpacingType:ga,prefixTopMargin:ma,prefixRightMargin:ya,prefixSpace:fa,prefixLeftMargin:ha,prefixMarginTopTablet:va,prefixMarginRightTablet:_a,prefixTabletSpace:Ta,prefixMarginLeftTablet:Ca,prefixMarginTopMobile:Sa,prefixMarginRightMobile:ka,prefixMobileSpace:wa,prefixMarginLeftMobile:Pa,prefixSpaceUnit:xa,prefixMobileMarginUnit:Aa,prefixTabletMarginUnit:Ga,spacingPrefixLink:Ma,prefixLetterSpacing:Ra,prefixLetterSpacingTablet:Ba,prefixLetterSpacingMobile:Ua,prefixLetterSpacingType:Ea,headTopMargin:Oa,headRightMargin:La,headSpace:Ha,headLeftMargin:Fa,headMarginTopTablet:ja,headMarginRightTablet:za,headTabletSpace:Da,headMarginLeftTablet:Ia,headMarginTopMobile:Va,headMarginRightMobile:Wa,headMobileSpace:qa,headMarginLeftMobile:Za,headSpaceUnit:$a,headMobileMarginUnit:Ya,headTabletMarginUnit:Ka,spacingHeadLink:Ja,separatorTopMargin:Xa,separatorRightMargin:el,seperatorSpace:al,separatorLeftMargin:ll,separatorMarginTopTablet:sl,separatorMarginRightTablet:cl,seperatorTabletSpace:ul,separatorMarginLeftTablet:pl,separatorMarginTopMobile:dl,separatorMarginRightMobile:bl,seperatorMobileSpace:gl,separatorMarginLeftMobile:ml,seperatorSpaceUnit:yl,separatorMobileMarginUnit:fl,separatorTabletMarginUnit:vl,spacingSeparatorLink:_l,subHeadTopMargin:Tl,subHeadRightMargin:Cl,subHeadSpace:Sl,subHeadLeftMargin:kl,subHeadMarginTopTablet:wl,subHeadMarginRightTablet:xl,subHeadTabletSpace:Al,subHeadMarginLeftTablet:Gl,subHeadMarginTopMobile:Ml,subHeadMarginRightMobile:Rl,subHeadMobileSpace:Bl,subHeadMarginLeftMobile:Ul,subHeadSpaceUnit:El,subHeadMobileMarginUnit:Ol,subHeadTabletMarginUnit:Ll,spacingSubheadLink:Hl,subHeadLetterSpacing:Fl,subHeadLetterSpacingTablet:jl,subHeadLetterSpacingMobile:zl,subHeadLetterSpacingType:Dl,iconView:Nl,iconShape:Il,iconBackgroundColor:Vl,iconBackgroundHoverColor:Wl,iconBorderWidth:ql,blockTopMargin:Zl,blockRightMargin:$l,blockLeftMargin:Kl,blockBottomMargin:Jl,blockTopMarginTablet:Xl,blockRightMarginTablet:Ql,blockLeftMarginTablet:ei,blockBottomMarginTablet:ti,blockTopMarginMobile:ai,blockRightMarginMobile:li,blockLeftMarginMobile:ii,blockBottomMarginMobile:oi,blockMarginUnit:ni,blockMarginUnitTablet:ri,blockMarginUnitMobile:si,blockMarginLink:ci,blockTopPadding:ui,blockRightPadding:pi,blockLeftPadding:di,blockBottomPadding:bi,blockTopPaddingTablet:gi,blockRightPaddingTablet:mi,blockLeftPaddingTablet:yi,blockBottomPaddingTablet:fi,blockTopPaddingMobile:hi,blockRightPaddingMobile:vi,blockLeftPaddingMobile:_i,blockBottomPaddingMobile:Ti,blockPaddingUnit:Ci,blockPaddingUnitTablet:Si,blockPaddingUnitMobile:ki,blockPaddingLink:wi,inheritFromTheme:xi,enableMultilineParagraph:Ai,imageAlt:Gi}=a;qt&&qt.sizes&&(Rg=j(qt.sizes));const Mi=uagb_blocks_info.current_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,Mg({},ol,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Image/Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{checked:aa,onChange:()=>t({showIcon:!aa}),label:Object(r.__)("Enable Icon/Image","ultimate-addons-for-gutenberg")}),aa&&React.createElement(Pi,{label:Object(r.__)("Select Position","ultimate-addons-for-gutenberg"),data:{value:be,label:"iconimgPosition"},setAttributes:t,options:[{value:"above-title",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")},{value:"below-title",label:Object(r.__)("Below Title","ultimate-addons-for-gutenberg")},{value:"left-title",label:Object(r.__)("Left of Title","ultimate-addons-for-gutenberg")},{value:"right-title",label:Object(r.__)("Right of Title","ultimate-addons-for-gutenberg")},{value:"left",label:Object(r.__)("Left of Text and Title","ultimate-addons-for-gutenberg")},{value:"right",label:Object(r.__)("Right of Text and Title","ultimate-addons-for-gutenberg")}]}),("left"===be||"right"===be)&&React.createElement(Pi,{label:Object(r.__)("Stack on","ultimate-addons-for-gutenberg"),data:{value:ta,label:"stack"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: Choose on what breakpoint the Info Box will stack.","ultimate-addons-for-gutenberg")}),be&&"above-title"!==be&&"below-title"!==be&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:ve,label:"sourceAlign"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}]}),aa&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Select Source","ultimate-addons-for-gutenberg"),data:{value:he,label:"source_type"},options:[{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")}]}),!1!==aa&&"icon"===he&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:re,onChange:e=>t({icon:e})})),!1!==aa&&"image"===he&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);Rg=t}t({iconImage:e}),t({imageAlt:e.alt})}else t({iconImage:null});else t({iconImage:null})},backgroundImage:qt,onRemoveImage:()=>{t({iconImage:""})}}),React.createElement(Ss,{label:Object(r.__)("Alternate Text","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,dynamicContentType:"text",value:Gi,name:"imageAlt",setAttributes:t,data:{value:Gi,label:"imageAlt"}}),qt&&"null"!==qt.url&&""!==qt.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:Zt,label:"imageSize"},setAttributes:t,options:Rg}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:sa,label:"htmlTag"},setAttributes:t,options:[{value:"div",label:Object(r.__)("div","ultimate-addons-for-gutenberg")},{value:"header",label:Object(r.__)("header","ultimate-addons-for-gutenberg")},{value:"footer",label:Object(r.__)("footer","ultimate-addons-for-gutenberg")},{value:"main",label:Object(r.__)("main","ultimate-addons-for-gutenberg")},{value:"article",label:Object(r.__)("article","ultimate-addons-for-gutenberg")},{value:"section",label:Object(r.__)("section","ultimate-addons-for-gutenberg")},{value:"aside",label:Object(r.__)("aside","ultimate-addons-for-gutenberg")},{value:"nav",label:Object(r.__)("nav","ultimate-addons-for-gutenberg")}]}),(!1===aa||be&&("above-title"===be||"below-title"===be))&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:i,label:"headingAlign"},tablet:{value:o,label:"headingAlignTablet"},mobile:{value:n,label:"headingAlignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{checked:la,onChange:()=>t({showPrefix:!la}),label:Object(r.__)("Enable Prefix","ultimate-addons-for-gutenberg")}),la&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Prefix Tag","ultimate-addons-for-gutenberg"),data:{value:x,label:"prefixHeadingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")}]})),React.createElement(Le.ToggleControl,{checked:ia,onChange:()=>t({showTitle:!ia}),label:Object(r.__)("Enable Title","ultimate-addons-for-gutenberg")}),ia&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Title Tag","ultimate-addons-for-gutenberg"),data:{value:A,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]})),React.createElement(Le.ToggleControl,{checked:oa,onChange:()=>t({showDesc:!oa}),label:Object(r.__)("Enable Description","ultimate-addons-for-gutenberg")}),oa&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Ai,onChange:()=>t({enableMultilineParagraph:!Ai}),label:Object(r.__)("Enable Semantic Markup","ultimate-addons-for-gutenberg"),help:Ai?"":Object(r.__)("Use Core/Paragraph: Improve accessibility and SEO with semantic HTML markup. Note: Existing Rich Text content will not be preserved.","ultimate-addons-for-gutenberg")}))),React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:Te,label:"seperatorStyle"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")}]}),"none"!==Te&&React.createElement(Pi,{label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:_e,label:"seperatorPosition"},setAttributes:t,options:[{value:"after_icon",label:Object(r.__)("After Icon/Image","ultimate-addons-for-gutenberg")},{value:"after_prefix",label:Object(r.__)("After Prefix","ultimate-addons-for-gutenberg")},{value:"after_title",label:Object(r.__)("After Title","ultimate-addons-for-gutenberg")},{value:"after_desc",label:Object(r.__)("After Description","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:Ge,label:"ctaType"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"button",label:Object(r.__)("Button","ultimate-addons-for-gutenberg")},{value:"all",label:Object(r.__)("Complete Box","ultimate-addons-for-gutenberg")}]}),"button"===Ge&&React.createElement(React.Fragment,null,!xi&&React.createElement(Hr,{setAttributes:t,presets:Gg,presetInputType:"radioImage"})),"all"!==Ge&&"none"!==Ge&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:xi,onChange:()=>t({inheritFromTheme:!xi}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),xi&&"Astra"===Mi&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Me,label:"ctaButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Icon","ultimate-addons-for-gutenberg"),checked:He,onChange:()=>t({showCtaIcon:!He})}),He&&React.createElement(Mr,{label:Object(r.__)("Button Icon","ultimate-addons-for-gutenberg"),value:Fe,onChange:e=>t({ctaIcon:e})})),"none"!==Ge&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,name:"ctaLink",value:Ue,setAttributes:t,data:{value:Ue,label:"ctaLink"}}),React.createElement(Le.ToggleControl,{checked:Oe,onChange:()=>t({ctaTarget:!Oe}),label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg")})),He&&""!==Fe&&"all"!==Ge&&"none"!==Ge&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:ze,label:"ctaIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:De,label:"ctaIconSpace"},tablet:{value:Ne,label:"ctaIconSpaceTablet"},mobile:{value:Ie,label:"ctaIconSpaceMobile"}},min:-50,max:50,unit:{value:Ve,label:"ctaIconSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:t,presets:Ag,presetInputType:"radioImage"}))),React.createElement(il,Mg({},nl,{parentProps:e}),React.createElement(React.Fragment,null,(!1!==aa&&"icon"!==he&&qt&&"null"!==qt.url&&""!==qt.url||!1!==aa&&"icon"===he&&""!==re)&&React.createElement(je,{title:"Icon/Image",initialOpen:!0},React.createElement(React.Fragment,null,"icon"===he&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("View","ultimate-addons-for-gutenberg"),data:{value:Nl,label:"iconView"},setAttributes:t,options:[{value:"none",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"Stacked",label:Object(r.__)("Stacked","ultimate-addons-for-gutenberg")},{value:"Framed",label:Object(r.__)("Framed","ultimate-addons-for-gutenberg")}]}),"none"!==Nl&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Shape","ultimate-addons-for-gutenberg"),data:{value:Il,label:"iconShape"},setAttributes:t,options:[{value:"Circle",label:Object(r.__)("Circle","ultimate-addons-for-gutenberg")},{value:"Square",label:Object(r.__)("Square","ultimate-addons-for-gutenberg")}]})),"Framed"===Nl&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Set Border Width","ultimate-addons-for-gutenberg"),setAttributes:t,value:ql,data:{value:ql,label:"iconBorderWidth"},min:0,max:15,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]})),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:se||"",data:{value:se,label:"iconColor"},setAttributes:t}),"none"!==Nl&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Vl||"",data:{value:Vl,label:"iconBackgroundColor"},setAttributes:t}))),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:me||"",data:{value:me,label:"iconHover"},setAttributes:t}),"none"!==Nl&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Wl||"",data:{value:Wl,label:"iconBackgroundHoverColor"},setAttributes:t}))),disableBottomSeparator:!1}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:ce,label:"iconSize"},tablet:{value:pe,label:"iconSizeTablet"},mobile:{value:de,label:"iconSizeMobile"}},min:0,max:100,unit:{value:ue,label:"iconSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t})),"image"===he&&qt&&"null"!==qt.url&&""!==qt.url&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Jt,onChange:()=>t({imageWidthType:!Jt}),label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),help:Object(r.__)("Turn this off to inherit the natural width of Image.","ultimate-addons-for-gutenberg")}),Jt&&React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:$t,label:"imageWidth",unit:{value:Xt,label:"imageWidthUnit"}},tablet:{value:Kt,label:"imageWidthTablet",unit:{value:Qt,label:"imageWidthUnitTablet"}},mobile:{value:Yt,label:"imageWidthMobile",unit:{value:ea,label:"imageWidthUnitMobile"}}},min:0,limitMax:{px:500,"%":100,em:100},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),setAttributes:t,value:ye,data:{value:ye,label:"iconimgBorderRadius"},min:0,max:100,unit:{value:fe,label:"iconimgBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]})),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ut,label:"iconTopMargin"},valueRight:{value:Bt,label:"iconRightMargin"},valueBottom:{value:Et,label:"iconBottomMargin"},valueLeft:{value:Rt,label:"iconLeftMargin"},valueTopTablet:{value:Ot,label:"iconMarginTopTablet"},valueRightTablet:{value:Lt,label:"iconMarginRightTablet"},valueBottomTablet:{value:Ht,label:"iconMarginBottomTablet"},valueLeftTablet:{value:Ft,label:"iconMarginLeftTablet"},valueTopMobile:{value:jt,label:"iconMarginTopMobile"},valueRightMobile:{value:zt,label:"iconMarginRightMobile"},valueBottomMobile:{value:Dt,label:"iconMarginBottomMobile"},valueLeftMobile:{value:Nt,label:"iconMarginLeftMobile"},unit:{value:It,label:"iconMarginUnit"},mUnit:{value:Vt,label:"iconMobileMarginUnit"},tUnit:{value:Wt,label:"iconTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:na,label:"spacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]})))),la&&React.createElement(je,{title:"Prefix",initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"prefixColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:P,label:"prefixLoadGoogleFonts"},fontFamily:{value:f,label:"prefixFontFamily"},fontWeight:{value:h,label:"prefixFontWeight"},fontStyle:{value:v,label:"prefixFontStyle"},fontSizeType:{value:d,label:"prefixFontSizeType"},fontSizeTypeTablet:{value:g,label:"prefixFontSizeTypeTablet"},fontSizeTypeMobile:{value:b,label:"prefixFontSizeTypeMobile"},fontSize:{value:p,label:"prefixFontSize"},fontSizeMobile:{value:y,label:"prefixFontSizeMobile"},fontSizeTablet:{value:m,label:"prefixFontSizeTablet"},lineHeightType:{value:_,label:"prefixLineHeightType"},lineHeight:{value:T,label:"prefixLineHeight"},lineHeightMobile:{value:S,label:"prefixLineHeightMobile"},lineHeightTablet:{value:C,label:"prefixLineHeightTablet"},transform:{value:k,label:"prefixTransform"},decoration:{value:w,label:"prefixDecoration"},letterSpacing:{value:Ra,label:"prefixLetterSpacing"},letterSpacingTablet:{value:Ba,label:"prefixLetterSpacingTablet"},letterSpacingMobile:{value:Ua,label:"prefixLetterSpacingMobile"},letterSpacingType:{value:Ea,label:"prefixLetterSpacingType"}}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:ma,label:"prefixTopMargin"},valueRight:{value:ya,label:"prefixRightMargin"},valueBottom:{value:fa,label:"prefixSpace"},valueLeft:{value:ha,label:"prefixLeftMargin"},valueTopTablet:{value:va,label:"prefixMarginTopTablet"},valueRightTablet:{value:_a,label:"prefixMarginRightTablet"},valueBottomTablet:{value:Ta,label:"prefixTabletSpace"},valueLeftTablet:{value:Ca,label:"prefixMarginLeftTablet"},valueTopMobile:{value:Sa,label:"prefixMarginTopMobile"},valueRightMobile:{value:ka,label:"prefixMarginRightMobile"},valueBottomMobile:{value:wa,label:"prefixMobileSpace"},valueLeftMobile:{value:Pa,label:"prefixMarginLeftMobile"},unit:{value:xa,label:"prefixSpaceUnit"},mUnit:{value:Aa,label:"prefixMobileMarginUnit"},tUnit:{value:Ga,label:"prefixTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ma,label:"spacingPrefixLink"}})))),ia&&React.createElement(je,{title:"Title",initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"headingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:I,label:"headLoadGoogleFonts"},fontFamily:{value:O,label:"headFontFamily"},fontWeight:{value:L,label:"headFontWeight"},fontStyle:{value:H,label:"headFontStyle"},fontSizeType:{value:M,label:"headFontSizeType"},fontSizeTypeTablet:{value:B,label:"headFontSizeTypeTablet"},fontSizeTypeMobile:{value:R,label:"headFontSizeTypeMobile"},fontSize:{value:G,label:"headFontSize"},fontSizeMobile:{value:E,label:"headFontSizeMobile"},fontSizeTablet:{value:U,label:"headFontSizeTablet"},lineHeightType:{value:F,label:"headLineHeightType"},lineHeight:{value:z,label:"headLineHeight"},lineHeightMobile:{value:N,label:"headLineHeightMobile"},lineHeightTablet:{value:D,label:"headLineHeightTablet"},transform:{value:ca,label:"headTransform"},decoration:{value:ua,label:"headDecoration"},letterSpacing:{value:pa,label:"headLetterSpacing"},letterSpacingTablet:{value:da,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:ba,label:"headLetterSpacingMobile"},letterSpacingType:{value:ga,label:"headLetterSpacingType"}}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Oa,label:"headTopMargin"},valueRight:{value:La,label:"headRightMargin"},valueBottom:{value:Ha,label:"headSpace"},valueLeft:{value:Fa,label:"headLeftMargin"},valueTopTablet:{value:ja,label:"headMarginTopTablet"},valueRightTablet:{value:za,label:"headMarginRightTablet"},valueBottomTablet:{value:Da,label:"headTabletSpace"},valueLeftTablet:{value:Ia,label:"headMarginLeftTablet"},valueTopMobile:{value:Va,label:"headMarginTopMobile"},valueRightMobile:{value:Wa,label:"headMarginRightMobile"},valueBottomMobile:{value:qa,label:"headMobileSpace"},valueLeftMobile:{value:Za,label:"headMarginLeftMobile"},unit:{value:$a,label:"headSpaceUnit"},mUnit:{value:Ya,label:"headMobileMarginUnit"},tUnit:{value:Ka,label:"headTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ja,label:"spacingHeadLink"}}))),"none"!==Te&&React.createElement(je,{title:"Separator",initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"seperatorWidth"},tablet:{value:ke,label:"seperatorWidthTablet"},mobile:{value:we,label:"seperatorWidthMobile"}},min:0,max:"%"===ne?100:500,unit:{value:ne,label:"separatorWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:xe,data:{value:xe,label:"seperatorThickness"},min:0,max:10,unit:{value:Ae,label:"thicknessUnit"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Pe||"",data:{value:Pe,label:"seperatorColor"},setAttributes:t}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Xa,label:"separatorTopMargin"},valueRight:{value:el,label:"separatorRightMargin"},valueBottom:{value:al,label:"seperatorSpace"},valueLeft:{value:ll,label:"separatorLeftMargin"},valueTopTablet:{value:sl,label:"separatorMarginTopTablet"},valueRightTablet:{value:cl,label:"separatorMarginRightTablet"},valueBottomTablet:{value:ul,label:"seperatorTabletSpace"},valueLeftTablet:{value:pl,label:"separatorMarginLeftTablet"},valueTopMobile:{value:dl,label:"separatorMarginTopMobile"},valueRightMobile:{value:bl,label:"separatorMarginRightMobile"},valueBottomMobile:{value:gl,label:"seperatorMobileSpace"},valueLeftMobile:{value:ml,label:"separatorMarginLeftMobile"},unit:{value:yl,label:"seperatorSpaceUnit"},mUnit:{value:fl,label:"separatorMobileMarginUnit"},tUnit:{value:vl,label:"separatorTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:_l,label:"spacingSeparatorLink"}}))),oa&&React.createElement(je,{title:"Description",initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"subHeadingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:oe,label:"subHeadLoadGoogleFonts"},fontFamily:{value:K,label:"subHeadFontFamily"},fontWeight:{value:J,label:"subHeadFontWeight"},fontStyle:{value:X,label:"subHeadFontStyle"},fontSizeType:{value:W,label:"subHeadFontSizeType"},fontSizeTypeTablet:{value:Z,label:"subHeadFontSizeTypeTablet"},fontSizeTypeMobile:{value:q,label:"subHeadFontSizeTypeMobile"},fontSize:{value:V,label:"subHeadFontSize"},fontSizeMobile:{value:Y,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:$,label:"subHeadFontSizeTablet"},lineHeightType:{value:Q,label:"subHeadLineHeightType"},lineHeight:{value:ee,label:"subHeadLineHeight"},lineHeightMobile:{value:ae,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:te,label:"subHeadLineHeightTablet"},transform:{value:le,label:"subHeadTransform"},decoration:{value:ie,label:"subHeadDecoration"},letterSpacing:{value:Fl,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:jl,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:zl,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:Dl,label:"subHeadLetterSpacingType"}}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Tl,label:"subHeadTopMargin"},valueRight:{value:Cl,label:"subHeadRightMargin"},valueBottom:{value:Sl,label:"subHeadSpace"},valueLeft:{value:kl,label:"subHeadLeftMargin"},valueTopTablet:{value:wl,label:"subHeadMarginTopTablet"},valueRightTablet:{value:xl,label:"subHeadMarginRightTablet"},valueBottomTablet:{value:Al,label:"subHeadTabletSpace"},valueLeftTablet:{value:Gl,label:"subHeadMarginLeftTablet"},valueTopMobile:{value:Ml,label:"subHeadMarginTopMobile"},valueRightMobile:{value:Rl,label:"subHeadMarginRightMobile"},valueBottomMobile:{value:Bl,label:"subHeadMobileSpace"},valueLeftMobile:{value:Ul,label:"subHeadMarginLeftMobile"},unit:{value:El,label:"subHeadSpaceUnit"},mUnit:{value:Ol,label:"subHeadMobileMarginUnit"},tUnit:{value:Ll,label:"subHeadTabletMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Hl,label:"spacingSubheadLink"}})))),"none"!==Ge&&"all"!==Ge&&!xi&&React.createElement(je,{title:"Call to Action",initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:pt,label:"ctaLoadGoogleFonts"},fontFamily:{value:et,label:"ctaFontFamily"},fontWeight:{value:tt,label:"ctaFontWeight"},fontStyle:{value:at,label:"ctaFontStyle"},fontSizeType:{value:Ze,label:"ctaFontSizeType"},fontSizeTypeTablet:{value:Ye,label:"ctaFontSizeTypeTablet"},fontSizeTypeMobile:{value:$e,label:"ctaFontSizeTypeMobile"},fontSize:{value:qe,label:"ctaFontSize"},fontSizeMobile:{value:Ke,label:"ctaFontSizeMobile"},fontSizeTablet:{value:Je,label:"ctaFontSizeTablet"},lineHeightType:{value:lt,label:"ctaLineHeightType"},lineHeight:{value:it,label:"ctaLineHeight"},lineHeightMobile:{value:ot,label:"ctaLineHeightMobile"},lineHeightTablet:{value:nt,label:"ctaLineHeightTablet"},transform:{value:Xe,label:"ctaTransform"},decoration:{value:Qe,label:"ctaDecoration"},letterSpacing:{value:st,label:"ctaLetterSpacing"},letterSpacingTablet:{value:ct,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:ut,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:rt,label:"ctaLetterSpacingType"}}),"text"===Ge&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:We||"",data:{value:We,label:"ctaLinkColor"},setAttributes:t}),hover:React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:bt||"",data:{value:bt,label:"ctaLinkHoverColor"},setAttributes:t}),disableBottomSeparator:!0}),"button"===Ge&&!xi&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Button Text Color","ultimate-addons-for-gutenberg"),colorValue:dt||"",data:{value:dt,label:"ctaBtnLinkColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Re,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===Re&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:mt||"",data:{value:mt,label:"ctaBgColor"},setAttributes:t}))),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Button Text Color","ultimate-addons-for-gutenberg"),colorValue:bt||"",data:{value:bt,label:"ctaLinkHoverColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Be,label:"ctaBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===Be&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:gt||"",data:{value:gt,label:"ctaBgHoverColor"},setAttributes:t})))}),React.createElement(Pl,Mg({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:vt,label:"paddingBtnTop"},valueRight:{value:Ct,label:"paddingBtnRight"},valueBottom:{value:_t,label:"paddingBtnBottom"},valueLeft:{value:Tt,label:"paddingBtnLeft"},valueTopTablet:{value:St,label:"paddingBtnTopTablet"},valueRightTablet:{value:kt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:wt,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:Pt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:xt,label:"paddingBtnTopMobile"},valueRightMobile:{value:At,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Gt,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:Mt,label:"paddingBtnLeftMobile"},unit:{value:yt,label:"paddingBtnUnit"},mUnit:{value:ft,label:"mobilePaddingBtnUnit"},tUnit:{value:ht,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:ra,label:"paddingspacingLink"}})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:t,prefix:"btn",attributes:a,deviceType:l,disableBottomSeparator:!0}))))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:t,prefix:"infobox",attributes:a,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ui,label:"blockTopPadding"},valueRight:{value:pi,label:"blockRightPadding"},valueBottom:{value:bi,label:"blockBottomPadding"},valueLeft:{value:di,label:"blockLeftPadding"},valueTopTablet:{value:gi,label:"blockTopPaddingTablet"},valueRightTablet:{value:mi,label:"blockRightPaddingTablet"},valueBottomTablet:{value:fi,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:yi,label:"blockLeftPaddingTablet"},valueTopMobile:{value:hi,label:"blockTopPaddingMobile"},valueRightMobile:{value:vi,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Ti,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:_i,label:"blockLeftPaddingMobile"},unit:{value:Ci,label:"blockPaddingUnit"},mUnit:{value:ki,label:"blockPaddingUnitMobile"},tUnit:{value:Si,label:"blockPaddingUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:wi,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Zl,label:"blockTopMargin"},valueRight:{value:$l,label:"blockRightMargin"},valueBottom:{value:Jl,label:"blockBottomMargin"},valueLeft:{value:Kl,label:"blockLeftMargin"},valueTopTablet:{value:Xl,label:"blockTopMarginTablet"},valueRightTablet:{value:Ql,label:"blockRightMarginTablet"},valueBottomTablet:{value:ti,label:"blockBottomMarginTablet"},valueLeftTablet:{value:ei,label:"blockLeftMarginTablet"},valueTopMobile:{value:ai,label:"blockTopMarginMobile"},valueRightMobile:{value:li,label:"blockRightMarginMobile"},valueBottomMobile:{value:oi,label:"blockBottomMarginMobile"},valueLeftMobile:{value:ii,label:"blockLeftMarginMobile"},unit:{value:ni,label:"blockMarginUnit"},mUnit:{value:si,label:"blockMarginUnitMobile"},tUnit:{value:ri,label:"blockMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:ci,label:"blockMarginLink"}}))),React.createElement(il,Mg({},rl,{parentProps:e}),Ds(wg,t,a)))))}),Ug=function(e){let t="";return t+=" ",t+="uagb-infobox-icon-"+e.iconimgPosition+" ","left"!==e.iconimgPosition&&"left-title"!==e.iconimgPosition||(t+="uagb-infobox-left "),"right"!==e.iconimgPosition&&"right-title"!==e.iconimgPosition||(t+="uagb-infobox-right "),"left"!==e.iconimgPosition&&"right"!==e.iconimgPosition||"none"===e.stack||(t+="uagb-infobox-stacked-"+e.stack+" ","right"===e.iconimgPosition&&(t+="uagb-infobox-reverse-order-"+e.stack+" ")),"above-title"===e.iconimgPosition&&"below-title"===e.iconimgPosition||(t+="uagb-infobox-image-valign-"+e.sourceAlign+" "),[t]},Eg=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasTitleDC:s}=e;let{infoBoxTitle:c}=t;if("not_set"===a)return React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:c,className:"uagb-ifb-title"});let u=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(u=["uagb/dynamic-content"],c=e)}return React.createElement(ge.RichText,{tagName:t.headingTag,placeholder:Object(r.__)("Write a Title","ultimate-addons-for-gutenberg"),value:c,className:"uagb-ifb-title",onChange:e=>a({infoBoxTitle:e}),multiline:!1,onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:u})},Og=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasDescriptionDC:s}=e;let{headingDesc:c,enableMultilineParagraph:u}=t;const p={allowedBlocks:["core/paragraph"],template:[["core/paragraph",{content:c}]],templateLock:!1,renderAppender:!1},d=Object(ge.useInnerBlocksProps)({className:"uagb-ifb-desc"},p);if("not_set"===a&&!u)return React.createElement(ge.RichText.Content,{tagName:"p",value:c,className:"uagb-ifb-desc"});let b=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(b=["uagb/dynamic-content"],c=e)}const g=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{tagName:"p",value:c,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-ifb-desc",onChange:e=>a({headingDesc:e,tempHeadingDesc:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:b}));return React.createElement(React.Fragment,null,u?React.createElement("div",d):g)},Lg=e=>{var t,a,l,i,o,n;const{attributes:s,setAttributes:c="not_set"}=e,u=s.inheritFromTheme&&"secondary"===s.ctaButtonType,p=u?{borderWidth:"revert-layer"}:{},d="uagb-infobox-cta-link "+(u?"ast-outline-button":"wp-block-button__link"),b=u?"div":"a";let g="_self";const m="noopener noreferrer";s.ctaTarget&&(g="_blank");let y="";s.showCtaIcon&&""!==s.ctaIcon&&(y=Ce(s.ctaIcon,c));const f=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{c({ctaText:e})},allowedFormats:[]}),"after"===s.ctaIconPosition&&y);if("not_set"!==c)return React.createElement("div",{className:"uagb-ifb-cta"},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","uagb-ifb-button-type-text","wp-block-button")},React.createElement(b,{target:g,className:Be()(d),rel:m,style:p},f)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement("a",{target:g,className:Be()("uagb-infobox-cta-link"),rel:m},f),"button"===s.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement(b,{className:d,target:g,rel:m,style:p},f)));const h=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText.Content,{tagName:"span",value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===s.ctaIconPosition&&y);return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","text"===s.ctaType&&s.inheritFromTheme?"uagb-ifb-button-type-text":"","wp-block-button")},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(t=s.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?"return true;":"return false;",className:d,rel:m,style:p},h)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(l=s.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable?"return true;":"return false;",className:"uagb-infobox-cta-link",rel:m},h)),"button"===s.ctaType&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",className:d,target:g,rel:m,style:p,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(o=s.dynamicContent)&&void 0!==o&&null!==(n=o.ctaLink)&&void 0!==n&&n.enable?"return true;":"return false;"},h))))};function Hg(){return React.createElement("div",{className:"uagb-ifb-separator"})}var Fg,jg=e=>{const{attributes:t,setAttributes:a}=e,{iconView:l,iconShape:i}=t;return React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-icon-wrap"},"none"===l?React.createElement(React.Fragment,null,Ce(t.icon,a)):React.createElement(React.Fragment,null,React.createElement("div",{className:"none"===l?"uagb-iconbox-icon-wrap":"Circle"===i?"uagb-iconbox-icon-wrap uagb-infobox-shape-circle":"uagb-iconbox-icon-wrap uagb-infobox-shape-squre"},Ce(t.icon,a)))))},zg=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize,{imgTagWidth:o,imgTagHeight:n,imageWidth:r,imageWidthType:s}=t;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{src:l,alt:t.imageAlt,width:s?r:o,height:n,loading:"lazy",style:{display:l?void 0:"none"}})))}return null},Dg=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasPrefixTitleDC:s}=e;let{prefixTitle:c}=t;if("not_set"===a)return React.createElement(ge.RichText.Content,{tagName:t.prefixHeadingTag,value:c,className:"uagb-ifb-title-prefix"});let u=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(u=["uagb/dynamic-content"],c=e)}return React.createElement(ge.RichText,{tagName:t.prefixHeadingTag,value:c,placeholder:Object(r.__)("Write a Prefix","ultimate-addons-for-gutenberg"),className:"uagb-ifb-title-prefix",multiline:!1,onChange:e=>{a({prefixTitle:e})},onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:u})},Ng=a(104),Ig=0,Vg={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Wg={};Wg.locals=Ng.a.locals||{},Wg.use=function(){return Ig++||(Fg=we()(Ng.a,Vg)),Wg},Wg.unuse=function(){Ig>0&&!--Ig&&(Fg(),Fg=null)};var qg=Wg,Zg=async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const l=new Image;l.addEventListener("load",(function(){const e="height"===(null==a?void 0:a.type)?parseInt(a.value*(null==this?void 0:this.naturalWidth)/(null==this?void 0:this.naturalHeight)):null==this?void 0:this.naturalWidth,l="width"===(null==a?void 0:a.type)?parseInt(a.value*(null==this?void 0:this.naturalHeight)/(null==this?void 0:this.naturalWidth)):null==this?void 0:this.naturalHeight;t({imgTagHeight:isNaN(l)&&null!==a?null==a?void 0:a.value:l}),t({imgTagWidth:isNaN(e)&&null!==a?null==a?void 0:a.value:e})})),l.src=e},$g=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(qg.use(),()=>{qg.unuse()}),[]);const{attributes:t,setAttributes:a,deviceType:l}=e,{icon:i,iconimgPosition:o,source_type:n,seperatorPosition:r,seperatorStyle:s,ctaType:c,showPrefix:u,showTitle:p,showDesc:d,block_id:b,imageWidthType:g,imageWidth:m,blockBottomMargin:y,blockLeftMargin:f,blockRightMargin:h,blockTopMargin:v,blockBottomMarginTablet:_,blockLeftMarginTablet:T,blockRightMarginTablet:C,blockTopMarginTablet:S,blockBottomMarginMobile:k,blockLeftMarginMobile:w,blockRightMarginMobile:P,blockTopMarginMobile:x,htmlTag:A}=t;let G="";G="icon"===n&&""!==i?React.createElement(jg,{attributes:t,setAttributes:a}):React.createElement(zg,{attributes:t});const M=[y,f,h,v,_,T,C,S,k,w,P,x].some(e=>"number"==typeof e),R=A||"div";let U=G,E=r;const O=React.createElement(Hg,{attributes:t});let L=!0,H="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(H=t.iconImage.url);let F="";if(""!==H){const e=t.iconImage.sizes,a=t.imageSize;F=void 0!==e&&void 0!==e[a]?e[a].url:H}Object(B.useEffect)(()=>{g?Zg(F,a,{type:"width",value:m}):Zg(F,a)},[F,m,g]),"after_icon"!==E||"above-title"!==o&&"below-title"!==o||(L=!1,U=React.createElement(React.Fragment,null,G,"none"!==s&&O)),"after_icon"!==E||"left-title"!==o&&"right-title"!==o&&"left"!==o&&"right"!==o||(E="after_title"),"below-title"===o&&"after_title"===E&&(L=!1,U=React.createElement(React.Fragment,null,"none"!==s&&O,G));const j=React.createElement(React.Fragment,null,"none"!==s&&"after_title"===E&&L&&O,d&&React.createElement(Og,e),"none"!==s&&"after_desc"===E&&O,"none"!==c&&React.createElement(Lg,{attributes:t,setAttributes:a})),z=React.createElement("div",{className:"uagb-ifb-title-wrap"},u&&React.createElement(Dg,e),"none"!==s&&"after_prefix"===E&&O,p&&React.createElement(Eg,e)),D=React.createElement(React.Fragment,null,"left"===o&&U,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===o&&U,("above-title"===o||"below-title"===o)&&z,"below-title"===o&&U,("above-title"===o||"below-title"===o)&&j,"left-title"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},U,z),j),"right-title"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},z,U),j),("left"===o||"right"===o)&&React.createElement(React.Fragment,null,z,j)),"right"===o&&U),N=React.createElement(React.Fragment,null,"all"===c&&React.createElement("a",{className:"uagb-infobox-link-wrap uagb-infbox__link-to-all","aria-label":"Infobox Link",rel:"noopener noreferrer",href:"/"}),D);return React.createElement(R,{className:Z(["uagb-block-"+b,"uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-infobox__content-wrap","all"===c?" uagb-infobox_cta-type-all":"",...Ug(t),M?"wp-block-uagb-info-box--has-margin":""])},M?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},N):React.createElement(React.Fragment,null,N))}),Yg=Object(L.compose)(ls,fe,(function(e){return t=>{var a,l;const{attributes:i,context:o}=t,n=null==i||null===(a=i.dynamicContent)||void 0===a||null===(l=a.bgImage)||void 0===l?void 0:l.enable,r=""!==i.headingDesc&&-1!==i.headingDesc.indexOf('{const{setAttributes:t,isSelected:a,attributes:l,attributes:{ctaBorderStyle:i,ctaBorderWidth:o,ctaBorderRadius:n,ctaBorderColor:r,ctaBorderhoverColor:s,ctaBgType:c,ctaBgHoverType:u,showCtaIcon:p,UAGHideDesktop:d,UAGHideTab:b,UAGHideMob:g,globalBlockStyleId:m,enableMultilineParagraph:y,tempHeadingDesc:f},name:h,clientId:v,deviceType:_,context:T,hasDynamicImg:C,hasDescriptionDC:S,hasPrefixTitleDC:k,hasTitleDC:w}=e;Object(B.useEffect)(()=>{m||(void 0===c&&t({ctaBgType:"color"}),void 0===u&&t({ctaBgHoverType:"color"}),void 0===p&&t({showCtaIcon:!0}),y&&t({headingDesc:f}),(o||n||r||s||i)&&ue("btn",{label:"ctaBorderWidth",value:o},{label:"ctaBorderRadius",value:n},{label:"ctaBorderColor",value:r},{label:"ctaBorderhoverColor",value:s},{label:"ctaBorderStyle",value:i},t,l))},[]),Object(B.useEffect)(()=>{var e;!(C||S||k||w)||null!=l&&null!==(e=l.context)&&void 0!==e&&e.postId||t(e=>({...e,context:T}))},[C,S,k,w,null==T?void 0:T.postId]),Object(B.useEffect)(()=>{he(e)},[d,b,g,_]);const P=Object(B.useMemo)(()=>wg(l,v,h,_),[l,_]);return Object(B.useEffect)(()=>{ys()},[_]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:P}),React.createElement(Pg,{attributes:l}),a&&React.createElement(Bg,e),React.createElement($g,e))}),Kg=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,context:n,hasDescriptionDC:s}=e;let{headingDesc:c}=t;if("not_set"===a)return React.createElement(ge.RichText.Content,{tagName:"p",value:c,className:"uagb-ifb-desc"});let u=!1;if(s){const e=Object(F.applyFilters)("uag_render_text_loop_data",c,n);""!==e&&(u=["uagb/dynamic-content"],c=e)}return React.createElement(ge.RichText,{tagName:"p",value:c,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-ifb-desc",onChange:e=>a({headingDesc:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([]),allowedFormats:u})},Jg=e=>{const{attributes:t}=e;return React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-icon-wrap"},React.createElement("span",{className:"uagb-ifb-icon"},React.createElement("span",{className:t.icon}))))},Xg=e=>{const{attributes:t}=e;return React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-icon-wrap"},React.createElement("span",{className:"uagb-ifb-icon"},kb(t.icon))))},Qg=function(e){let t="uagb-infobox-has-image";"icon"===e.source_type&&(t="uagb-infobox-has-icon");let a="";return a+="uagb-infobox ",a+=t+" ",a+="uagb-infobox-icon-"+e.iconimgPosition+" ","left"!==e.iconimgPosition&&"left-title"!==e.iconimgPosition||(a+="uagb-infobox-left "),"right"!==e.iconimgPosition&&"right-title"!==e.iconimgPosition||(a+="uagb-infobox-right "),"left"!==e.iconimgPosition&&"right"!==e.iconimgPosition||"none"===e.stack||(a+="uagb-infobox-stacked-"+e.stack+" ","right"===e.iconimgPosition&&(a+="uagb-infobox-reverse-order-"+e.stack+" ")),"above-title"===e.iconimgPosition&&"below-title"===e.iconimgPosition||(a+="uagb-infobox-image-valign-"+e.sourceAlign+" "),e.enableBorder&&(a+="uagb-infobox-enable-border "),a+="uagb-infobox-enable-border-radius ",[a]};function em(){return React.createElement("div",{className:"uagb-ifb-separator-parent"},React.createElement("div",{className:"uagb-ifb-separator"}))}var tm=e=>{const{attributes:t}=e;let a="_self";const l="noopener noreferrer";t.ctaTarget&&(a="_blank");let i="";return""!==t.ctaIcon&&(i=React.createElement("span",{className:Be()(`uagb-ifb-${t.ctaType}-icon`,"uagb-ifb-align-icon-"+t.ctaIconPosition)},React.createElement("i",{className:t.ctaIcon}))),React.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:a,className:"uagb-infobox-cta-link",rel:l},"before"===t.ctaIconPosition&&i,React.createElement("span",{className:"uagb-inline-editing"},t.ctaText),"after"===t.ctaIconPosition&&i),"button"===t.ctaType&&React.createElement("div",{className:"uagb-ifb-button-wrapper"},React.createElement("a",{href:t.ctaLink,className:"uagb-infobox-cta-link uagb-ifb-cta-button",target:a,rel:l},i,React.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},React.createElement("span",{className:"uagb-inline-editing "},t.ctaText)))))},am=e=>{const{attributes:t,setAttributes:a="not_set"}=e;let l="uagb-infobox-cta-link uagb-ifb-cta-button";t.inheritFromTheme&&(l="wp-block-button__link");let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return""!==t.ctaIcon&&(n=React.createElement("span",{className:Be()(`uagb-ifb-${t.ctaType}-icon`,"uagb-ifb-align-icon-"+t.ctaIconPosition)},kb(t.ctaIcon))),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===t.ctaType&&React.createElement("a",{target:i,className:"uagb-infobox-cta-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement("span",{className:"uagb-inline-editing"},t.ctaText),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper",t.inheritFromTheme?"wp-block-button":null)},React.createElement("a",{className:l,target:i,rel:o},n,React.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},React.createElement("span",{className:"uagb-inline-editing "},t.ctaText))))):React.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,className:"uagb-infobox-cta-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement("span",{className:"uagb-inline-editing"},t.ctaText),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper",t.inheritFromTheme?"wp-block-button":null)},React.createElement("a",{href:t.ctaLink,className:l,target:i,rel:o,alt:""},n,React.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},React.createElement("span",{className:"uagb-inline-editing "},t.ctaText)))))},lm=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-image"},React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{className:"",src:l,alt:t.iconImage.alt}))))}return null},im=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},React.createElement("div",{className:"uagb-ifb-image"},React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{className:"uagb-ifb-img-src",src:l,alt:t.iconImage.alt}))))}return null},om={inheritFromTheme:{type:"boolean",default:!0},prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:"Prefix"},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Info Box"},headingDesc:{source:"html",selector:"p",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."},headingAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,UAGCopyPaste:{styleType:"icon-size"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-font"}},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaText:{type:"html",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string"},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},iconLeftMargin:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:"yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:""},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"number",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"number",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"number",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"number",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"number",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,UAGCopyPaste:{styleType:"icon-border-width"}},...ce("btn")},nm=e=>{const{attributes:t,setAttributes:a="not_set"}=e,l="uagb-infobox-cta-link wp-block-button__link";let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return""!==t.ctaIcon&&(n=Ce(t.ctaIcon)),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta"},"text"===t.ctaType&&React.createElement("a",{target:i,className:"uagb-infobox-cta-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText,className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})}}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:l,target:i,rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText,className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})}}),"after"===t.ctaIconPosition&&n))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,className:"uagb-infobox-cta-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText,className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("a",{href:t.ctaLink,className:l,target:i,rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText,className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n)))},rm=e=>{const{attributes:t,setAttributes:a="not_set"}=e,l="uagb-infobox-cta-link wp-block-button__link";let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return t.showCtaIcon&&""!==t.ctaIcon&&(n=Ce(t.ctaIcon,a)),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta"},"text"===t.ctaType&&React.createElement("a",{target:i,className:t.ctaLink?"uagb-infobox-cta-link":"uagb-infobox-cta-link uagb-disable-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:t.ctaLink?l:l+" uagb-disable-link",target:i,rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,className:t.ctaLink?"uagb-infobox-cta-link":"uagb-infobox-cta-link uagb-disable-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("a",{href:t.ctaLink,className:t.ctaLink?l:l+" uagb-disable-link",target:i,rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/(<([^>]+)>)/gi,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n)))},sm=e=>{const{attributes:t,setAttributes:a="not_set"}=e,l="uagb-infobox-cta-link wp-block-button__link";let i="_self";const o="noopener noreferrer";t.ctaTarget&&(i="_blank");let n="";return t.showCtaIcon&&""!==t.ctaIcon&&(n=Ce(t.ctaIcon,a)),"not_set"!==a?React.createElement("div",{className:"uagb-ifb-cta"},"text"===t.ctaType&&React.createElement("a",{target:i,className:"uagb-infobox-cta-link",rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:l,target:i,rel:o},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&n))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===t.ctaType&&React.createElement("a",{href:t.ctaLink,target:i,onClick:""===t.ctaLink||"#"===t.ctaLink?"return false;":"return true;",className:"uagb-infobox-cta-link",rel:o,alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n),"button"===t.ctaType&&React.createElement("a",{href:t.ctaLink,className:l,target:i,rel:o,onClick:""===t.ctaLink||"#"===t.ctaLink?"return false;":"return true;",alt:""},"before"===t.ctaIconPosition&&n,React.createElement(ge.RichText.Content,{tagName:"span",value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===t.ctaIconPosition&&n)))},cm=e=>{var t,a,l,i;const{attributes:o,setAttributes:n="not_set"}=e,s="uagb-infobox-cta-link wp-block-button__link";let c="_self";const u="noopener noreferrer";o.ctaTarget&&(c="_blank");let p="";return o.showCtaIcon&&""!==o.ctaIcon&&(p=Ce(o.ctaIcon,n)),"not_set"!==n?React.createElement("div",{className:"uagb-ifb-cta"},"text"===o.ctaType&&React.createElement("a",{target:c,className:"uagb-infobox-cta-link",rel:u},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{n({ctaText:e})},allowedFormats:[]}),"after"===o.ctaIconPosition&&p),"button"===o.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement("a",{className:s,target:c,rel:u},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{n({ctaText:e})},allowedFormats:[]}),"after"===o.ctaIconPosition&&p))):React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-button-wrapper wp-block-button"},"text"===o.ctaType&&React.createElement("a",{href:o.ctaLink||"#",target:c,onClick:""!==o.ctaLink&&"#"!==o.ctaLink||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?"return true;":"return false;",className:"uagb-infobox-cta-link",rel:u,alt:""},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText.Content,{tagName:"span",value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===o.ctaIconPosition&&p),"button"===o.ctaType&&React.createElement("a",{href:o.ctaLink||"#",className:s,target:c,rel:u,onClick:""!==o.ctaLink&&"#"!==o.ctaLink||null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable?"return true;":"return false;",alt:""},"before"===o.ctaIconPosition&&p,React.createElement(ge.RichText.Content,{tagName:"span",value:o.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===o.ctaIconPosition&&p)))};const um="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",pm=ce("btn");var dm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-font"}},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string"},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},iconLeftMargin:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:um},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...pm};const bm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",gm=ce("btn");var mm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBtnVertPadding:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:bm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...gm};const ym="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",fm=ce("btn");var hm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBtnVertPadding:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:ym},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...fm};const vm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",_m=ce("btn");var Tm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},ctaType:{type:"string",default:"none"},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBtnVertPadding:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"}},ctaBtnHrPadding:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:vm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},..._m};const Cm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",Sm=ce("btn");var km={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},htmlTag:{type:"string",default:"div"},ctaType:{type:"string",default:"none"},ctaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"cta-btn-type"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:Cm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...Sm};const wm="yes"===uagb_blocks_info.uagb_old_user_less_than_2?120:"",Pm=ce("btn");var xm={inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},prefixTitle:{source:"html",selector:".uagb-ifb-title-prefix",default:Object(r.__)("Prefix","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:".uagb-ifb-title",default:Object(r.__)("Info Box","ultimate-addons-for-gutenberg")},headingDesc:{source:"html",selector:".uagb-ifb-desc",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},tempHeadingDesc:{type:"string",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},enableMultilineParagraph:{type:"boolean",default:!1},headingAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},headingAlignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},headingAlignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},headingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},subHeadingColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},prefixColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-color"}},icon:{type:"string",default:"circle-check"},iconimgPosition:{type:"string",default:"above-title",UAGCopyPaste:{styleType:"icon-img-position"}},iconSize:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"String",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconBgHover:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size"}},prefixFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type"}},prefixFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-tablet"}},prefixFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-font-size-type-mobile"}},prefixFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},prefixFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},prefixFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-family"}},prefixFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-weight"}},prefixFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-font-style"}},prefixLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"prefix-line-height-type"}},prefixLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height"}},prefixLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},prefixTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-transform"}},prefixDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-decoration"}},prefixLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},prefixLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-load-google-font"}},prefixHeadingTag:{type:"string",default:"span"},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},headFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},headFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},headFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},headFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},headFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},headFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"}},headFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},headFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},headTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},headDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},headLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},headLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},headLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},headLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},subHeadTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},subHeadDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},headLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},headLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},headLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},headLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},subHeadFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},subHeadFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},subHeadFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},subHeadFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},subHeadFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},subHeadFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},subHeadFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},subHeadFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},subHeadFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},subHeadLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},subHeadLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},subHeadLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},subHeadLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},subHeadLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},subHeadLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},subHeadLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},subHeadLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},subHeadLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},subHeadSpace:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},seperatorSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin"}},iconimgBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-radius"}},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},showCtaIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},seperatorPosition:{type:"string",default:"after_title",UAGCopyPaste:{styleType:"seperator-position"}},seperatorStyle:{type:"string",default:"none",UAGCopyPaste:{styleType:"separator-style"}},seperatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"},default:"#333"},seperatorWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"},default:30},seperatorWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},seperatorWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},seperatorThickness:{type:"number",default:2,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-thickness"}},thicknessUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},htmlTag:{type:"string",default:"div"},ctaType:{type:"string",default:"none"},ctaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"cta-btn-type"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:""},ctaLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},ctaLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"cta-line-height-type"}},ctaLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height"}},ctaLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-tablet"}},ctaLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-line-height-mobile"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-load-google-font"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBorderColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-color"}},ctaBorderhoverColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-hover-color"}},ctaBorderStyle:{type:"string",default:"solid",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-style"}},ctaBorderWidth:{type:"number",default:1,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-width"}},ctaBorderRadius:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-btn-border-radius"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:wm},imageWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!1},showTitle:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-tablet"}},iconMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-tablet"}},iconMarginBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-tablet"}},iconMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-tablet"}},iconMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin-mobile"}},iconMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin-mobile"}},iconMarginBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin-mobile"}},iconMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin-mobile"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-mobile"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit-tablet"}},spacingLink:{type:"boolean",default:!1},paddingspacingLink:{type:"boolean",default:!1},paddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobilePaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-mobile-unit"}},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-tablet-unit"}},paddingBtnTop:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-padding-tablet"}},paddingBtnTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},prefixTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin"},default:5},prefixRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin"}},prefixSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin"},default:10},prefixLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin"}},prefixMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-tablet"}},prefixMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-tablet"}},prefixTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-tablet"}},prefixMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-tablet"}},prefixMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-top-margin-mobile"}},prefixMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-right-margin-mobile"}},prefixMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-bottom-margin-mobile"}},prefixMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"prefix-left-margin-mobile"}},prefixSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-unit"}},prefixMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-mobile-unit"}},prefixTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"prefix-margin-tablet-unit"}},prefixLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},prefixLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},prefixLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},prefixLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},headTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin"}},headRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin"}},headLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin"}},headMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},headMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},headTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},headMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-margin-mobile"}},headMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},headMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},headMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},headMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},headSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit"},default:"px"},headMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"},default:"px"},headTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"},default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!0},separatorTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin"}},separatorRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin"}},separatorLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin"}},separatorMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-tablet"}},separatorMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-tablet"}},seperatorTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-tablet"}},separatorMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-tablet"}},separatorMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-margin-mobile"}},separatorMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-margin-mobile"}},seperatorMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-bottom-margin-mobile"}},separatorMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-left-margin-mobile"}},seperatorSpaceUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-margin-unit"}},separatorMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-mobile"},default:"px"},separatorTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"separator-margin-unit-tablet"},default:"px"},subHeadTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin"}},subHeadRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin"}},subHeadLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin"}},subHeadMarginTopTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},subHeadMarginRightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},subHeadTabletSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},subHeadMarginLeftTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},subHeadMarginTopMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},subHeadMarginRightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},subHeadMobileSpace:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},subHeadMarginLeftMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},subHeadSpaceUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit"},default:"px"},subHeadMobileMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"},default:"px"},subHeadTabletMarginUnit:{type:"string",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"},default:"px"},isPreview:{type:"boolean",default:!1},iconView:{type:"string",default:"none"},iconShape:{type:"string",default:"Circle"},iconBackgroundColor:{type:"string",default:"#6EC1E3",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-color"}},iconBackgroundHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bg-hover-color"}},iconBorderWidth:{type:"number",default:3,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-width"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},...Pm},Am=e=>{var t,a,l,i,o,n;const{attributes:s,setAttributes:c="not_set"}=e,u=s.inheritFromTheme&&"secondary"===s.ctaButtonType,p=u?{borderWidth:"revert-layer"}:{},d="uagb-infobox-cta-link "+(u?"ast-outline-button":"wp-block-button__link"),b=u?"div":"a";let g="_self";const m="noopener noreferrer";s.ctaTarget&&(g="_blank");let y="";s.showCtaIcon&&""!==s.ctaIcon&&(y=Ce(s.ctaIcon,c));const f=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing",multiline:!1,onChange:e=>{c({ctaText:e})},allowedFormats:[]}),"after"===s.ctaIconPosition&&y);if("not_set"!==c)return React.createElement("div",{className:"uagb-ifb-cta"},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","uagb-ifb-button-type-text","wp-block-button")},React.createElement(b,{target:g,className:Be()(d),rel:m,style:p},f)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement("a",{target:g,className:Be()("uagb-infobox-cta-link"),rel:m},f),"button"===s.ctaType&&React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","wp-block-button")},React.createElement(b,{className:d,target:g,rel:m,style:p},f)));const h=React.createElement(React.Fragment,null,"before"===s.ctaIconPosition&&y,React.createElement(ge.RichText.Content,{tagName:"span",value:s.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-inline-editing"}),"after"===s.ctaIconPosition&&y);return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-ifb-button-wrapper","text"===s.ctaType&&s.inheritFromTheme?"uagb-ifb-button-type-text":"","wp-block-button")},"text"===s.ctaType&&s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(t=s.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?"return true;":"return false;",className:d,rel:m,style:p,alt:""},h)),"text"===s.ctaType&&!s.inheritFromTheme&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",target:g,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(l=s.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable?"return true;":"return false;",className:"uagb-infobox-cta-link",rel:m,alt:""},h)),"button"===s.ctaType&&React.createElement(React.Fragment,null,React.createElement("a",{href:s.ctaLink||"#",className:d,target:g,rel:m,style:p,onClick:""!==s.ctaLink&&"#"!==s.ctaLink||null!=s&&null!==(o=s.dynamicContent)&&void 0!==o&&null!==(n=o.ctaLink)&&void 0!==n&&n.enable?"return true;":"return false;",alt:""},h))))},Gm=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize,{imgTagWidth:o,imgTagHeight:n,imageWidth:r,imageWidthType:s}=t;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{src:l,alt:t.iconImage.alt,width:s?r:o,height:n,loading:"lazy"})))}return null},Mm=e=>{const{attributes:t}=e;let a="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(a=t.iconImage.url);let l="";if(""!==a){const e=t.iconImage.sizes,i=t.imageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement(React.Fragment,null,t.showIcon&&React.createElement("div",{className:"uagb-ifb-image-content"},React.createElement("img",{src:l,alt:t.iconImage.alt})))}return null};const Rm={inheritFromTheme:{type:"boolean",default:!1},prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:"Prefix"},classMigrate:{type:"boolean",default:!1},infoBoxTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Info Box"},headingDesc:{source:"html",selector:"p",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."},headingAlign:{type:"string",default:"center"},headingColor:{type:"string"},subHeadingColor:{type:"string"},prefixColor:{type:"string"},icon:{type:"string",default:"fa fa-star"},iconimgPosition:{type:"string",default:"above-title"},iconSize:{type:"number",default:40},iconHover:{type:"string",default:""},iconSizeType:{type:"String",default:"px"},prefixFontSizeType:{type:"string",default:"px"},headFontSizeType:{type:"string",default:"px"},subHeadFontSizeType:{type:"string",default:"px"},ctaIconSpaceType:{type:"string",default:"px"},thicknessUnit:{type:"string",default:"px"},ctaFontSizeType:{type:"string",default:"px"},iconMarginUnit:{type:"string",default:"px"},iconMobilePaddingUnit:{type:"string",default:"px"},iconTabletPaddingUnit:{type:"string",default:"px"},paddingBtnUnit:{type:"string",default:"px"},mobilePaddingBtnUnit:{type:"string",default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px"},prefixSpaceUnit:{type:"string",default:"px"},headSpaceUnit:{type:"string",default:"px"},seperatorSpaceUnit:{type:"string",default:"px"},subHeadSpaceUnit:{type:"string",default:"px"},imageWidthUnit:{type:"string",default:"px"},iconimgBorderRadiusUnit:{type:"string",default:"px"},iconBgHover:{type:"string",default:""},iconColor:{type:"string",default:"#333"},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number"},prefixFontSizeType:{type:"string",default:"px"},prefixFontSizeTablet:{type:"number"},prefixFontSizeMobile:{type:"number"},prefixFontFamily:{type:"string",default:"Default"},prefixFontWeight:{type:"string"},prefixFontSubset:{type:"string"},prefixLineHeightType:{type:"string",default:"em"},prefixLineHeight:{type:"number"},prefixLineHeightTablet:{type:"number"},prefixLineHeightMobile:{type:"number"},prefixLoadGoogleFonts:{type:"boolean",default:!1},headingTag:{type:"string",default:"h3"},headFontSize:{type:"number"},headFontSizeType:{type:"string",default:"px"},headFontSizeTablet:{type:"number"},headFontSizeMobile:{type:"number"},headFontFamily:{type:"string",default:"Default"},headFontWeight:{type:"string"},headFontSubset:{type:"string"},headLineHeightType:{type:"string",default:"em"},headLineHeight:{type:"number"},headLineHeightTablet:{type:"number"},headLineHeightMobile:{type:"number"},headLoadGoogleFonts:{type:"boolean",default:!1},subHeadFontSize:{type:"number"},subHeadFontSizeType:{type:"string",default:"px"},subHeadFontSizeTablet:{type:"number"},subHeadFontSizeMobile:{type:"number"},subHeadFontFamily:{type:"string",default:"Default"},subHeadFontWeight:{type:"string"},subHeadFontSubset:{type:"string"},subHeadLineHeightType:{type:"string",default:"em"},subHeadLineHeight:{type:"number"},subHeadLineHeightTablet:{type:"number"},subHeadLineHeightMobile:{type:"number"},subHeadLoadGoogleFonts:{type:"boolean",default:!1},headSpace:{type:"number",default:10},subHeadSpace:{type:"number",default:10},seperatorSpace:{type:"number",default:10},iconimgBorderRadius:{type:"number",default:0},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5},seperatorPosition:{type:"string",default:"after_title"},seperatorStyle:{type:"string",default:"solid"},seperatorColor:{type:"string",default:"#333"},seperatorWidth:{type:"number",default:30},separatorWidthType:{type:"string",default:"%"},seperatorThickness:{type:"number",default:2},ctaType:{type:"string",default:"none"},ctaText:{type:"html",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaLinkColor:{type:"string",default:"#333"},ctaFontSize:{type:"number"},ctaFontSizeType:{type:"string",default:"px"},ctaFontSizeMobile:{type:"number"},ctaFontSizeTablet:{type:"number"},ctaFontFamily:{type:"string",default:"Default"},ctaFontWeight:{type:"string"},ctaFontSubset:{type:"string"},ctaLoadGoogleFonts:{type:"boolean",default:!1},ctaBtnLinkColor:{type:"string",default:"#333"},ctaLinkHoverColor:{type:"string",default:""},ctaBgColor:{type:"string",default:"transparent"},ctaBgHoverColor:{type:"string",default:"transparent"},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10},ctaBtnHrPadding:{type:"number",default:14},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},prefixSpace:{type:"number",default:5},iconLeftMargin:{type:"number",default:10},iconRightMargin:{type:"number",default:10},iconTopMargin:{type:"number",default:5},iconBottomMargin:{type:"number",default:5},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",default:120},imageWidthType:{type:"boolean",default:!0},stack:{type:"string",default:"tablet"},showIcon:{type:"boolean",default:!0},showPrefix:{type:"boolean",default:!0},showTitle:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0},iconView:{type:"string",default:"none"},...ce("btn")};var Bm=[{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c}=e.attributes;let u="";u="icon"===l?React.createElement(Jg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});const p=React.createElement(React.Fragment,null,"none"!==i&&React.createElement(em,{attributes:e.attributes}),React.createElement("div",{className:"uagb-ifb-text-wrap"},React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),React.createElement(tm,{attributes:e.attributes}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),b=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&u,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&u,("above-title"==t||"below-title"==t)&&d,"below-title"==t&&u,("above-title"==t||"below-title"==t)&&p,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},u,d),p),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},d,u),p),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,d,p)),"right"==t&&u)));let g="";return s&&(g="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap",target:g,rel:"noopener noreferrer"}," ",b)),"all"!==n&&b))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y}=e.attributes;let f="";f="icon"===l&&""!==y?React.createElement(Jg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});const h=React.createElement(React.Fragment,null,"none"!==i&&React.createElement(em,{attributes:e.attributes}),React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==n&&React.createElement(tm,{attributes:e.attributes}))),v=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),_=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&f,("above-title"==t||"below-title"==t)&&v,"below-title"==t&&f,("above-title"==t||"below-title"==t)&&h,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,v),h),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},v,f),h),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,v,h)),"right"==t&&f)));let T="";return s&&(T="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap",target:T,rel:"noopener noreferrer"}," ",_)),"all"!==n&&_))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y}=e.attributes;let f="";f="icon"===l&&""!==y?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});const h=React.createElement(React.Fragment,null,"none"!==i&&React.createElement(em,{attributes:e.attributes}),React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==n&&React.createElement(am,{attributes:e.attributes}))),v=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),_=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&f,("above-title"==t||"below-title"==t)&&v,"below-title"==t&&f,("above-title"==t||"below-title"==t)&&h,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,v),h),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},v,f),h),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,v,h)),"right"==t&&f)));let T="";return s&&(T="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap",target:T,rel:"noopener noreferrer"}," ",_)),"all"!==n&&_))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y,seperatorPosition:f}=e.attributes;let h="";h="icon"===l&&""!==y?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let v=h,_=f;const T=React.createElement(em,{attributes:e.attributes});let C=!0;"after_icon"!=f||"above-title"!=t&&"below-title"!=t||(C=!1,v=React.createElement(React.Fragment,null,h,"none"!==i&&T)),"after_icon"!=f||"above-title"===t&&"below-title"===t||(_="after_title"),"below-title"==t&&"after_title"==f&&(C=!1,v=React.createElement(React.Fragment,null,"none"!==i&&T,h));const S=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==_&&C&&T,React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==_&&T,"none"!==n&&React.createElement(am,{attributes:e.attributes}))),k=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==_&&T,g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),w=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==n?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&v,("above-title"==t||"below-title"==t)&&k,"below-title"==t&&v,("above-title"==t||"below-title"==t)&&S,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},v,k),S),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},k,v),S),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,k,S)),"right"==t&&v)));let P="";return s&&(P="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap"),id:"uagb-infobox-"+a},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:P,rel:"noopener noreferrer"}),w),"all"!==n&&w))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,backgroundType:o,ctaType:n,ctaLink:r,ctaTarget:s,className:c,prefixTitle:u,infoBoxTitle:p,headingDesc:d,showPrefix:b,showTitle:g,showDesc:m,icon:y,seperatorPosition:f}=e.attributes;let h="";h="icon"===l&&""!==y?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let v=h,_=f;const T=React.createElement(em,{attributes:e.attributes});let C=!0;"after_icon"!=f||"above-title"!=t&&"below-title"!=t||(C=!1,v=React.createElement(React.Fragment,null,h,"none"!==i&&T)),"after_icon"!=f||"above-title"===t&&"below-title"===t||(_="after_title"),"below-title"==t&&"after_title"==f&&(C=!1,v=React.createElement(React.Fragment,null,"none"!==i&&T,h));const S=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==_&&C&&T,React.createElement("div",{className:"uagb-ifb-text-wrap"},m&&""!==d&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==_&&T,"none"!==n&&React.createElement(am,{attributes:e.attributes}))),k=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-title-wrap"},b&&""!==u&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==_&&T,g&&""!==p&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"}))),w=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==n?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&v,("above-title"==t||"below-title"==t)&&k,"below-title"==t&&v,("above-title"==t||"below-title"==t)&&S,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},v,k),S),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},k,v),S),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,k,S)),"right"==t&&v)));let P="";return s&&(P="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(c,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"==n&&React.createElement(React.Fragment,null,React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:P,rel:"noopener noreferrer"}),w),"all"!==n&&w))}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,className:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=e.attributes;let f="";f="icon"===l&&""!==m?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let h=f,v=y;const _=React.createElement(em,{attributes:e.attributes});let T=!0;"after_icon"!=y||"above-title"!=t&&"below-title"!=t||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==i&&_)),"after_icon"!=y||"above-title"===t&&"below-title"===t||(v="after_title"),"below-title"==t&&"after_title"==y&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==i&&_,f));const C=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==v&&T&&_,React.createElement("div",{className:"uagb-ifb-text-wrap"},g&&""!==p&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==v&&_,"none"!==o&&React.createElement(am,{attributes:e.attributes}))),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==v&&_,b&&""!==u&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),k=React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==o?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&h,("above-title"==t||"below-title"==t)&&S,"below-title"==t&&h,("above-title"==t||"below-title"==t)&&C,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,S,C)),"right"==t&&h));let w="";return r&&(w="_blank"),React.createElement("div",{className:Be()(s,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"==o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),k)}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,className:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=e.attributes;let f="";f="icon"===l&&""!==m?React.createElement(Xg,{attributes:e.attributes}):React.createElement(lm,{attributes:e.attributes});let h=f,v=y;const _=React.createElement(em,{attributes:e.attributes});let T=!0;"after_icon"!=y||"above-title"!=t&&"below-title"!=t||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==i&&_)),"after_icon"!=y||"above-title"===t&&"below-title"===t||(v="after_title"),"below-title"==t&&"after_title"==y&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==i&&_,f));const C=React.createElement(React.Fragment,null,"none"!==i&&"after_title"==v&&T&&_,React.createElement("div",{className:"uagb-ifb-text-wrap"},g&&""!==p&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"==v&&_,"none"!==o&&React.createElement(am,{attributes:e.attributes}))),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"==v&&_,b&&""!==u&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),k=React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"==o?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"==t&&h,("above-title"==t||"below-title"==t)&&S,"below-title"==t&&h,("above-title"==t||"below-title"==t)&&C,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,S,C)),"right"==t&&h));let w="";return r&&(w="_blank"),React.createElement("div",{className:Be()(s,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"==o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),k)}},{attributes:Rm,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,className:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=e.attributes;let f="";f="icon"===l&&""!==m?React.createElement(Xg,{attributes:e.attributes}):React.createElement(im,{attributes:e.attributes});let h=f,v=y;const _=React.createElement(em,{attributes:e.attributes});let T=!0;"after_icon"!==v||"above-title"!==t&&"below-title"!==t||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==i&&_)),"after_icon"!==v||"above-title"===t&&"below-title"===t||(v="after_title"),"below-title"===t&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==i&&_,f));const C=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===v&&T&&_,React.createElement("div",{className:"uagb-ifb-text-wrap"},g&&""!==p&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===v&&_,"none"!==o&&React.createElement(am,{attributes:e.attributes}))),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),k=React.createElement("div",{className:Be()("uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Qg(e.attributes))},React.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&h,("above-title"===t||"below-title"===t)&&S,"below-title"===t&&h,("above-title"===t||"below-title"===t)&&C,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,S,C)),"right"===t&&h));let w="_self";return r&&(w="_blank"),React.createElement("div",{className:Be()(s,"uagb-infobox__outer-wrap","uagb-block-"+a)},"all"===o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),k)}},{attributes:bt,save(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,prefixTitle:s,infoBoxTitle:c,headingDesc:u,showPrefix:p,showTitle:d,showDesc:b,icon:g,seperatorPosition:m}=e.attributes;let y="";y="icon"===l&&""!==g?React.createElement(jg,{attributes:e.attributes}):React.createElement(Mm,{attributes:e.attributes});let f=y,h=m;const v=React.createElement(Hg,{attributes:e.attributes});let _=!0;"after_icon"!==h||"above-title"!==t&&"below-title"!==t||(_=!1,f=React.createElement(React.Fragment,null,y,"none"!==i&&v)),"after_icon"!==h||"left-title"!==t&&"right-title"!==t&&"left"!==t&&"right"!==t||(h="after_title"),"below-title"===t&&"after_title"===h&&(_=!1,f=React.createElement(React.Fragment,null,"none"!==i&&v,y));const T=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===h&&_&&v,b&&""!==u&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===h&&v,"none"!==o&&React.createElement(am,{attributes:e.attributes})),C=React.createElement("div",{className:"uagb-ifb-title-wrap"},p&&""!==s&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===h&&v,d&&""!==c&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),S=React.createElement(React.Fragment,null,"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&f,("above-title"===t||"below-title"===t)&&C,"below-title"===t&&f,("above-title"===t||"below-title"===t)&&T,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,C),T),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},C,f),T),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,C,T)),"right"===t&&f);let k="_self";return r&&(k="_blank"),React.createElement("div",{className:Be()("uagb-block-"+a,"uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Ug(e.attributes))},"all"===o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:k,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),S)}},{attributes:om,save:function(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,prefixTitle:s,infoBoxTitle:c,headingDesc:u,showPrefix:p,showTitle:d,showDesc:b,icon:g,seperatorPosition:m}=e.attributes;let y="";y="icon"===l&&""!==g?React.createElement(jg,{attributes:e.attributes}):React.createElement(zg,{attributes:e.attributes});let f=y,h=m;const v=React.createElement(Hg,{attributes:e.attributes});let _=!0;"after_icon"!==h||"above-title"!==t&&"below-title"!==t||(_=!1,f=React.createElement(React.Fragment,null,y,"none"!==i&&v)),"after_icon"!==h||"left-title"!==t&&"right-title"!==t&&"left"!==t&&"right"!==t||(h="after_title"),"below-title"===t&&"after_title"===h&&(_=!1,f=React.createElement(React.Fragment,null,"none"!==i&&v,y));const T=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===h&&_&&v,b&&""!==u&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===h&&v,"none"!==o&&React.createElement(nm,{attributes:e.attributes})),C=React.createElement("div",{className:"uagb-ifb-title-wrap"},p&&""!==s&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===h&&v,d&&""!==c&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),S=React.createElement(React.Fragment,null,"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&f,("above-title"===t||"below-title"===t)&&C,"below-title"===t&&f,("above-title"===t||"below-title"===t)&&T,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,C),T),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},C,f),T),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,C,T)),"right"===t&&f);let k="_self";return r&&(k="_blank"),React.createElement("div",{className:Be()("uagb-block-"+a,"uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Ug(e.attributes))},"all"===o&&React.createElement("a",{href:n,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:k,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),S)}},{attributes:bt,save:function(e){const{iconimgPosition:t,block_id:a,source_type:l,seperatorStyle:i,ctaType:o,ctaLink:n,ctaTarget:r,prefixTitle:s,infoBoxTitle:c,headingDesc:u,showPrefix:p,showTitle:d,showDesc:b,icon:g,seperatorPosition:m}=e.attributes;let y="";y="icon"===l&&""!==g?React.createElement(jg,{attributes:e.attributes}):React.createElement(zg,{attributes:e.attributes});let f=y,h=m;const v=React.createElement(Hg,{attributes:e.attributes});let _=!0;"after_icon"!==h||"above-title"!==t&&"below-title"!==t||(_=!1,f=React.createElement(React.Fragment,null,y,"none"!==i&&v)),"after_icon"!==h||"left-title"!==t&&"right-title"!==t&&"left"!==t&&"right"!==t||(h="after_title"),"below-title"===t&&"after_title"===h&&(_=!1,f=React.createElement(React.Fragment,null,"none"!==i&&v,y));const T=React.createElement(React.Fragment,null,"none"!==i&&"after_title"===h&&_&&v,b&&""!==u&&React.createElement(Kg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_desc"===h&&v,"none"!==o&&React.createElement(rm,{attributes:e.attributes})),C=React.createElement("div",{className:"uagb-ifb-title-wrap"},p&&""!==s&&React.createElement(Dg,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==i&&"after_prefix"===h&&v,d&&""!==c&&React.createElement(Eg,{attributes:e.attributes,setAttributes:"not_set"})),S=React.createElement(React.Fragment,null,"left"===t&&f,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===t&&f,("above-title"===t||"below-title"===t)&&C,"below-title"===t&&f,("above-title"===t||"below-title"===t)&&T,"left-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},f,C),T),"right-title"===t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},C,f),T),("left"===t||"right"===t)&&React.createElement(React.Fragment,null,C,T)),"right"===t&&f);let k="_self";return r&&(k="_blank"),React.createElement("div",{className:Be()("uagb-block-"+a,"uagb-infobox__content-wrap","all"===o?" uagb-infobox_cta-type-all":"",...Ug(e.attributes))},"all"===o&&React.createElement("a",{href:n,className:n?"uagb-infobox-link-wrap uagb-infbox__link-to-all":"uagb-infobox-link-wrap uagb-infbox__link-to-all uagb-disable-link",target:k,"aria-label":"Infobox Link",rel:"noopener noreferrer"}),S)}},{attributes:bt,save:function(e){const{attributes:t}=e,{iconimgPosition:a,block_id:l,source_type:i,seperatorStyle:o,ctaType:n,ctaLink:r,ctaTarget:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=t;let f="";f="icon"===i&&""!==m?React.createElement(jg,{attributes:t}):React.createElement(zg,{attributes:t});let h=f,v=y;const _=React.createElement(Hg,{attributes:t});let T=!0;"after_icon"!==v||"above-title"!==a&&"below-title"!==a||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==o&&_)),"after_icon"!==v||"left-title"!==a&&"right-title"!==a&&"left"!==a&&"right"!==a||(v="after_title"),"below-title"===a&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==o&&_,f));const C=React.createElement(React.Fragment,null,"none"!==o&&"after_title"===v&&T&&_,g&&""!==p&&React.createElement(ge.RichText.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"}),"none"!==o&&"after_desc"===v&&_,"none"!==n&&React.createElement(sm,{attributes:t})),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(ge.RichText.Content,{tagName:"span",value:t.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==o&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})),k=React.createElement(React.Fragment,null,"left"===a&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===a&&h,("above-title"===a||"below-title"===a)&&S,"below-title"===a&&h,("above-title"===a||"below-title"===a)&&C,"left-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===a||"right"===a)&&React.createElement(React.Fragment,null,S,C)),"right"===a&&h);let w="_self";return s&&(w="_blank"),React.createElement("div",{className:Be()("uagb-block-"+l,"uagb-infobox__content-wrap","all"===n?" uagb-infobox_cta-type-all":"",...Ug(t))},"all"===n&&React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:""===r||"#"===r?"return false;":"return true;"}),k)}},{attributes:dm,save:function(e){const{attributes:t}=e,{iconimgPosition:a,block_id:l,source_type:i,seperatorStyle:o,ctaType:n,ctaLink:r,ctaTarget:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=t;let f="";f="icon"===i&&""!==m?React.createElement(jg,{attributes:t}):React.createElement(zg,{attributes:t});let h=f,v=y;const _=React.createElement(Hg,{attributes:t});let T=!0;"after_icon"!==v||"above-title"!==a&&"below-title"!==a||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==o&&_)),"after_icon"!==v||"left-title"!==a&&"right-title"!==a&&"left"!==a&&"right"!==a||(v="after_title"),"below-title"===a&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==o&&_,f));const C=React.createElement(React.Fragment,null,"none"!==o&&"after_title"===v&&T&&_,g&&""!==p&&React.createElement(ge.RichText.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"}),"none"!==o&&"after_desc"===v&&_,"none"!==n&&React.createElement(cm,{attributes:t})),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(ge.RichText.Content,{tagName:"span",value:t.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==o&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})),k=React.createElement(React.Fragment,null,"left"===a&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===a&&h,("above-title"===a||"below-title"===a)&&S,"below-title"===a&&h,("above-title"===a||"below-title"===a)&&C,"left-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===a||"right"===a)&&React.createElement(React.Fragment,null,S,C)),"right"===a&&h);let w="_self";return s&&(w="_blank"),React.createElement("div",{className:Be()("uagb-block-"+l,"uagb-infobox__content-wrap","all"===n?" uagb-infobox_cta-type-all":"",...Ug(t))},"all"===n&&React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:""===r||"#"===r?"return false;":"return true;"}),k)}},{attributes:mm,save:function(e){const{attributes:t}=e,{iconimgPosition:a,block_id:l,source_type:i,seperatorStyle:o,ctaType:n,ctaLink:r,ctaTarget:s,prefixTitle:c,infoBoxTitle:u,headingDesc:p,showPrefix:d,showTitle:b,showDesc:g,icon:m,seperatorPosition:y}=t;let f="";f="icon"===i&&""!==m?React.createElement(jg,{attributes:t}):React.createElement(zg,{attributes:t});let h=f,v=y;const _=React.createElement(Hg,{attributes:t});let T=!0;"after_icon"!==v||"above-title"!==a&&"below-title"!==a||(T=!1,h=React.createElement(React.Fragment,null,f,"none"!==o&&_)),"after_icon"!==v||"left-title"!==a&&"right-title"!==a&&"left"!==a&&"right"!==a||(v="after_title"),"below-title"===a&&"after_title"===v&&(T=!1,h=React.createElement(React.Fragment,null,"none"!==o&&_,f));const C=React.createElement(React.Fragment,null,"none"!==o&&"after_title"===v&&T&&_,g&&""!==p&&React.createElement(ge.RichText.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"}),"none"!==o&&"after_desc"===v&&_,"none"!==n&&React.createElement(Lg,{attributes:t})),S=React.createElement("div",{className:"uagb-ifb-title-wrap"},d&&""!==c&&React.createElement(ge.RichText.Content,{tagName:t.prefixHeadingTag,value:t.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==o&&"after_prefix"===v&&_,b&&""!==u&&React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})),k=React.createElement(React.Fragment,null,"left"===a&&h,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===a&&h,("above-title"===a||"below-title"===a)&&S,"below-title"===a&&h,("above-title"===a||"below-title"===a)&&C,"left-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},h,S),C),"right-title"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},S,h),C),("left"===a||"right"===a)&&React.createElement(React.Fragment,null,S,C)),"right"===a&&h);let w="_self";return s&&(w="_blank"),React.createElement("div",{className:Be()("uagb-block-"+l,"uagb-infobox__content-wrap","all"===n?" uagb-infobox_cta-type-all":"",...Ug(t))},"all"===n&&React.createElement("a",{href:r,className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:w,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:""===r||"#"===r?"return false;":"return true;"}),k)}},{attributes:hm,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_}=o;let T="";T="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});let C=T,S=_;const k=React.createElement(Hg,{attributes:o});let w=!0;"after_icon"!==S||"above-title"!==n&&"below-title"!==n||(w=!1,C=React.createElement(React.Fragment,null,T,"none"!==c&&k)),"after_icon"!==S||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(S="after_title"),"below-title"===n&&"after_title"===S&&(w=!1,C=React.createElement(React.Fragment,null,"none"!==c&&k,T));const P=React.createElement(React.Fragment,null,"none"!==c&&"after_title"===S&&w&&k,h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),"none"!==c&&"after_desc"===S&&k,"none"!==u&&React.createElement(Lg,{attributes:o})),x=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==c&&"after_prefix"===S&&k,f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),A=React.createElement(React.Fragment,null,"left"===n&&C,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&C,("above-title"===n||"below-title"===n)&&x,"below-title"===n&&C,("above-title"===n||"below-title"===n)&&P,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},C,x),P),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},x,C),P),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,x,P)),"right"===n&&C);let G="_self";d&&(G="_blank");let M="return false;";return""===p&&"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&(M="return true;"):M="return true;",React.createElement("div",{className:Be()("uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o))},"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:G,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:M}),A)}},{attributes:Tm,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_}=o;let T="";T="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});let C=T,S=_;const k=React.createElement(Hg,{attributes:o});let w=!0;"after_icon"!==S||"above-title"!==n&&"below-title"!==n||(w=!1,C=React.createElement(React.Fragment,null,T,"none"!==c&&k)),"after_icon"!==S||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(S="after_title"),"below-title"===n&&"after_title"===S&&(w=!1,C=React.createElement(React.Fragment,null,"none"!==c&&k,T));const P=React.createElement(React.Fragment,null,"none"!==c&&"after_title"===S&&w&&k,h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),"none"!==c&&"after_desc"===S&&k,"none"!==u&&React.createElement(Lg,{attributes:o})),x=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==c&&"after_prefix"===S&&k,f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),A=React.createElement(React.Fragment,null,"left"===n&&C,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&C,("above-title"===n||"below-title"===n)&&x,"below-title"===n&&C,("above-title"===n||"below-title"===n)&&P,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},C,x),P),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},x,C),P),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,x,P)),"right"===n&&C);let G="_self";d&&(G="_blank");let M="return false;";return""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&(M="return true;"):M="return true;",React.createElement("div",{className:Be()("uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o))},"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:G,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:M}),A)}},{attributes:km,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_,blockBottomMargin:T,blockLeftMargin:C,blockRightMargin:S,blockTopMargin:k,blockBottomMarginTablet:w,blockLeftMarginTablet:P,blockRightMarginTablet:x,blockTopMarginTablet:A,blockBottomMarginMobile:G,blockLeftMarginMobile:M,blockRightMarginMobile:R,blockTopMarginMobile:B,htmlTag:U}=o;let E="";const O=U||"div";E="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});const L=[T,C,S,k,w,P,x,A,G,M,R,B].some(e=>"number"==typeof e);let H=E,F=_;const j=React.createElement(Hg,{attributes:o});let z=!0;"after_icon"!==F||"above-title"!==n&&"below-title"!==n||(z=!1,H=React.createElement(React.Fragment,null,E,"none"!==c&&j)),"after_icon"!==F||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(F="after_title"),"below-title"===n&&"after_title"===F&&(z=!1,H=React.createElement(React.Fragment,null,"none"!==c&&j,E));const D=React.createElement(React.Fragment,null,"none"!==c&&"after_title"===F&&z&&j,h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),"none"!==c&&"after_desc"===F&&j,"none"!==u&&React.createElement(Lg,{attributes:o})),N=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),"none"!==c&&"after_prefix"===F&&j,f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),I=React.createElement(React.Fragment,null,"left"===n&&H,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&H,("above-title"===n||"below-title"===n)&&N,"below-title"===n&&H,("above-title"===n||"below-title"===n)&&D,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},H,N),D),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},N,H),D),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,N,D)),"right"===n&&H);let V="_self";d&&(V="_blank");let W="return false;";""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&(W="return true;"):W="return true;";const q=React.createElement(React.Fragment,null,"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:V,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:W}),I);return React.createElement(O,{className:Z(["uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o),L?"wp-block-uagb-info-box--has-margin":""])},L?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},q):React.createElement(React.Fragment,null,q))}},{attributes:xm,save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_,blockBottomMargin:T,blockLeftMargin:C,blockRightMargin:S,blockTopMargin:k,blockBottomMarginTablet:w,blockLeftMarginTablet:P,blockRightMarginTablet:x,blockTopMarginTablet:A,blockBottomMarginMobile:G,blockLeftMarginMobile:M,blockRightMarginMobile:R,blockTopMarginMobile:B,htmlTag:U,enableMultilineParagraph:E}=o;let O="";const L=U||"div";O="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(Gm,{attributes:o});const H=[T,C,S,k,w,P,x,A,G,M,R,B].some(e=>"number"==typeof e);let F=O,j=_;const z=React.createElement(Hg,{attributes:o});let D=!0;const N=e=>{if("none"!==c&&j===e&&D)return z};"after_icon"!==j||"above-title"!==n&&"below-title"!==n||(D=!1,F=React.createElement(React.Fragment,null,O,"none"!==c&&z)),"after_icon"!==j||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(j="after_title"),"below-title"===n&&"after_title"===j&&(D=!1,F=React.createElement(React.Fragment,null,"none"!==c&&z,O));const I=E?React.createElement(React.Fragment,null,N("after_title"),h&&React.createElement("div",{className:"uagb-ifb-desc"},React.createElement(ge.InnerBlocks.Content,null)),N("after_desc"),"none"!==u&&React.createElement(Am,{attributes:o})):React.createElement(React.Fragment,null,N("after_title"),h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),N("after_desc"),"none"!==u&&React.createElement(Am,{attributes:o})),V=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),N("after_prefix"),f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),W=React.createElement(React.Fragment,null,"left"===n&&F,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&F,("above-title"===n||"below-title"===n)&&V,"below-title"===n&&F,("above-title"===n||"below-title"===n)&&I,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},F,V),I),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},V,F),I),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,V,I)),"right"===n&&F);let q="_self";d&&(q="_blank");let $="return false;";""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&($="return true;"):$="return true;";const Y=React.createElement(React.Fragment,null,"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:q,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:$}),W);return React.createElement(L,{className:Z(["uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o),H?"wp-block-uagb-info-box--has-margin":""])},H?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},Y):React.createElement(React.Fragment,null,Y))}}];a(221);var Um={from:[{type:"block",blocks:["core/media-text"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,V,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le,ie,oe,ne,re,se,ce,ue,pe,be;const ge=(null===(a=t[0])||void 0===a?void 0:a.attributes)||{},me=Boolean(ge.content);let ye;var fe,he;if(null!=ge&&null!==(l=ge.style)&&void 0!==l&&null!==(i=l.color)&&void 0!==i&&i.text)ye=null==ge||null===(fe=ge.style)||void 0===fe||null===(he=fe.color)||void 0===he?void 0:he.text;else if(Pc(null==ge?void 0:ge.textColor))ye=Pc(null==ge?void 0:ge.textColor);else if(null!=e&&null!==(o=e.style)&&void 0!==o&&null!==(n=o.color)&&void 0!==n&&n.text){var ve,_e;ye=null==e||null===(ve=e.style)||void 0===ve||null===(_e=ve.color)||void 0===_e?void 0:_e.text}else ye=Pc(null==e?void 0:e.textColor)?Pc(null==e?void 0:e.textColor):"";return Object(de.createBlock)("uagb/info-box",{source_type:"image",infoBoxTitle:me?ge.content:"",imageSize:(null==e?void 0:e.mediaSizeSlug)||"large",headingColor:ye,iconImage:{url:e.mediaUrl},headFontWeight:(null==ge||null===(r=ge.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.fontWeight)||(null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.fontWeight)||"",headFontSize:N((null==ge||null===(p=ge.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.fontSize)||(null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.fontSize)||""),headLetterSpacing:N((null==ge||null===(m=ge.style)||void 0===m||null===(y=m.typography)||void 0===y?void 0:y.letterSpacing)||(null==e||null===(f=e.style)||void 0===f||null===(h=f.typography)||void 0===h?void 0:h.letterSpacing)||""),headLetterSpacingType:I((null==ge||null===(v=ge.style)||void 0===v||null===(_=v.typography)||void 0===_?void 0:_.letterSpacing)||(null==e||null===(T=e.style)||void 0===T||null===(C=T.typography)||void 0===C?void 0:C.letterSpacing)||""),headDecoration:(null==ge||null===(S=ge.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.textDecoration)||(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.textDecoration)||"",headTransform:(null==ge||null===(x=ge.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.textTransform)||(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.textTransform)||"",headLineHeight:N((null==ge||null===(R=ge.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.lineHeight)||(null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.lineHeight)||""),showDesc:!1,blockTopPadding:N((null==e||null===(O=e.style)||void 0===O||null===(L=O.spacing)||void 0===L||null===(H=L.padding)||void 0===H?void 0:H.top)||""),blockRightPadding:N((null==e||null===(F=e.style)||void 0===F||null===(j=F.spacing)||void 0===j||null===(z=j.padding)||void 0===z?void 0:z.right)||""),blockLeftPadding:N((null==e||null===(D=e.style)||void 0===D||null===(V=D.spacing)||void 0===V||null===(W=V.padding)||void 0===W?void 0:W.left)||""),blockBottomPadding:N((null==e||null===(q=e.style)||void 0===q||null===(Z=q.spacing)||void 0===Z||null===($=Z.padding)||void 0===$?void 0:$.bottom)||""),blockPaddingUnit:I((null==e||null===(Y=e.style)||void 0===Y||null===(K=Y.spacing)||void 0===K||null===(J=K.margin)||void 0===J?void 0:J.top)||""),headLeftMargin:N((null==ge||null===(X=ge.style)||void 0===X||null===(Q=X.spacing)||void 0===Q||null===(ee=Q.margin)||void 0===ee?void 0:ee.left)||"30"),headSpace:N((null==ge||null===(te=ge.style)||void 0===te||null===(ae=te.spacing)||void 0===ae||null===(le=ae.margin)||void 0===le?void 0:le.bottom)||""),headRightMargin:N((null==ge||null===(ie=ge.style)||void 0===ie||null===(oe=ie.spacing)||void 0===oe||null===(ne=oe.margin)||void 0===ne?void 0:ne.right)||""),headTopMargin:N((null==ge||null===(re=ge.style)||void 0===re||null===(se=re.spacing)||void 0===se||null===(ce=se.margin)||void 0===ce?void 0:ce.top)||""),headSpaceUnit:I((null==ge||null===(ue=ge.style)||void 0===ue||null===(pe=ue.spacing)||void 0===pe||null===(be=pe.margin)||void 0===be?void 0:be.top)||""),imageWidth:350,imageWidthUnit:"px",iconimgPosition:"left",sourceAlign:"middle"})}}]};let Em={};Em=Object(F.applyFilters)("uagb/info-box",ss(Em)),Object(de.registerBlockType)("uagb/info-box",{...Em,title:Object(r.__)("Info Box","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add image/icon, separator and text description using a single block.","ultimate-addons-for-gutenberg"),icon:se.info_box,keywords:[Object(r.__)("info box","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},usesContext:["postId","postType"],attributes:bt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"info-box"}):React.createElement(Yg,e),save:function(e){var t,a,l,i;const{attributes:o}=e,{iconimgPosition:n,block_id:r,source_type:s,seperatorStyle:c,ctaType:u,ctaLink:p,ctaTarget:d,prefixTitle:b,infoBoxTitle:g,headingDesc:m,showPrefix:y,showTitle:f,showDesc:h,icon:v,seperatorPosition:_,blockBottomMargin:T,blockLeftMargin:C,blockRightMargin:S,blockTopMargin:k,blockBottomMarginTablet:w,blockLeftMarginTablet:P,blockRightMarginTablet:x,blockTopMarginTablet:A,blockBottomMarginMobile:G,blockLeftMarginMobile:M,blockRightMarginMobile:R,blockTopMarginMobile:B,htmlTag:U,enableMultilineParagraph:E}=o;let O="";const L=U||"div";O="icon"===s&&""!==v?React.createElement(jg,{attributes:o}):React.createElement(zg,{attributes:o});const H=[T,C,S,k,w,P,x,A,G,M,R,B].some(e=>"number"==typeof e);let F=O,j=_;const z=React.createElement(Hg,{attributes:o});let D=!0;const N=e=>{if("none"!==c&&j===e&&D)return z};"after_icon"!==j||"above-title"!==n&&"below-title"!==n||(D=!1,F=React.createElement(React.Fragment,null,O,"none"!==c&&z)),"after_icon"!==j||"left-title"!==n&&"right-title"!==n&&"left"!==n&&"right"!==n||(j="after_title"),"below-title"===n&&"after_title"===j&&(D=!1,F=React.createElement(React.Fragment,null,"none"!==c&&z,O));const I=E?React.createElement(React.Fragment,null,N("after_title"),h&&React.createElement("div",{className:"uagb-ifb-desc"},React.createElement(ge.InnerBlocks.Content,null)),N("after_desc"),"none"!==u&&React.createElement(Lg,{attributes:o})):React.createElement(React.Fragment,null,N("after_title"),h&&""!==m&&React.createElement(ge.RichText.Content,{tagName:"p",value:o.headingDesc,className:"uagb-ifb-desc"}),N("after_desc"),"none"!==u&&React.createElement(Lg,{attributes:o})),V=React.createElement("div",{className:"uagb-ifb-title-wrap"},y&&""!==b&&React.createElement(ge.RichText.Content,{tagName:o.prefixHeadingTag,value:o.prefixTitle,className:"uagb-ifb-title-prefix"}),N("after_prefix"),f&&""!==g&&React.createElement(ge.RichText.Content,{tagName:o.headingTag,value:o.infoBoxTitle,className:"uagb-ifb-title"})),W=React.createElement(React.Fragment,null,"left"===n&&F,React.createElement("div",{className:"uagb-ifb-content"},"above-title"===n&&F,("above-title"===n||"below-title"===n)&&V,"below-title"===n&&F,("above-title"===n||"below-title"===n)&&I,"left-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-left-title-image"},F,V),I),"right-title"===n&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-ifb-right-title-image"},V,F),I),("left"===n||"right"===n)&&React.createElement(React.Fragment,null,V,I)),"right"===n&&F);let q="_self";d&&(q="_blank");let $="return false;";""===p||"#"===p||null!=o&&null!==(t=o.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable?null!=o&&null!==(l=o.dynamicContent)&&void 0!==l&&null!==(i=l.ctaLink)&&void 0!==i&&i.enable&&($="return true;"):$="return true;";const Y=React.createElement(React.Fragment,null,"all"===u&&React.createElement("a",{href:p||"",className:"uagb-infobox-link-wrap uagb-infbox__link-to-all",target:q,"aria-label":"Infobox Link",rel:"noopener noreferrer",onClick:$}),W);return React.createElement(L,{className:Z(["uagb-block-"+r,"uagb-infobox__content-wrap","all"===u?" uagb-infobox_cta-type-all":"",...Ug(o),H?"wp-block-uagb-info-box--has-margin":""])},H?React.createElement("div",{className:"uagb-infobox-margin-wrapper"},Y):React.createElement(React.Fragment,null,Y))},deprecated:Bm,transforms:Um});var Om=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{stack:r,textAlign:s,titleColor:c,descColor:u,titleFontSize:p,titleFontSizeType:d,titleFontSizeTypeMobile:b,titleFontSizeTypeTablet:g,titleFontSizeMobile:m,titleFontSizeTablet:y,titleFontFamily:f,titleFontWeight:h,titleLineHeightType:v,titleLineHeight:_,titleLineHeightTablet:T,titleLineHeightMobile:C,descFontSize:S,descFontSizeType:k,descFontSizeTypeMobile:w,descFontSizeTypeTablet:P,descFontSizeMobile:x,descFontSizeTablet:A,descFontFamily:G,descFontWeight:M,descLineHeightType:R,descLineHeight:B,descLineHeightTablet:U,descLineHeightMobile:E,titleSpace:O,titleSpaceTablet:L,titleSpaceMobile:H,titleSpaceType:F,descSpace:j,descSpaceTablet:z,descSpaceMobile:D,descSpaceType:N,ctaPosition:I,ctaFontSize:V,ctaFontSizeType:W,ctaFontSizeTypeMobile:q,ctaFontSizeTypeTablet:Z,ctaFontSizeMobile:$,ctaFontSizeTablet:Y,ctaFontFamily:K,ctaFontWeight:J,ctaBtnLinkColor:X,ctaBgType:Q,ctaBgColor:ee,ctaTopPadding:te,ctaRightPadding:le,ctaBottomPadding:ie,ctaLeftPadding:oe,ctaTopPaddingTablet:ne,ctaRightPaddingTablet:re,ctaBottomPaddingTablet:se,ctaLeftPaddingTablet:ce,ctaTopPaddingMobile:ue,ctaRightPaddingMobile:pe,ctaBottomPaddingMobile:de,ctaLeftPaddingMobile:be,ctaPaddingUnit:ge,mobileCTAPaddingUnit:me,tabletCTAPaddingUnit:ye,ctaLinkHoverColor:fe,ctaBgHoverType:he,ctaBgHoverColor:ve,btnBorderHColor:_e,ctaIconSpace:Te,ctaIconSpaceTablet:Ce,ctaIconSpaceMobile:Se,contentWidth:ke,contentWidthTablet:we,contentWidthMobile:Pe,contentWidthType:xe,ctaType:Ae,titleTransform:Ge,titleDecoration:Me,descTransform:Re,descDecoration:Be,ctaTransform:Ue,ctaDecoration:Ee,titleFontStyle:Oe,descFontStyle:Le,ctaFontStyle:He,buttonAlign:Fe,ctaIconPosition:je,secondCtaBgType:ze,secondCtaBgHoverType:De,secondCtaIconSpace:Ne,secondCtaIconPosition:Ie,secondCtaFontSize:Ve,secondCtaFontSizeType:We,secondCtaFontSizeTypeMobile:qe,secondCtaFontSizeTypeTablet:Ze,secondCtaFontSizeMobile:$e,secondCtaFontSizeTablet:Ye,secondCtaFontFamily:Ke,secondCtaFontWeight:Je,secondCtaFontStyle:Xe,secondCtaFontTransform:Qe,secondCtaFontDecoration:et,secondCtaTopPadding:tt,secondCtaRightPadding:at,secondCtaBottomPadding:lt,secondCtaLeftPadding:it,secondCtaTopMobilePadding:ot,secondCtaRightMobilePadding:nt,secondCtaBottomMobilePadding:rt,secondCtaLeftMobilePadding:st,secondCtaTopTabletPadding:ct,secondCtaRightTabletPadding:ut,secondCtaBottomTabletPadding:pt,secondCtaLeftTabletPadding:dt,secondCtaPaddingUnit:bt,secondCtaMobilePaddingUnit:gt,secondCtaTabletPaddingUnit:mt,secondCtaBorderHColor:yt,secondCtaColor:ft,secondCtaBackground:ht,secondCtaHoverColor:vt,secondCtaHoverBackground:_t,stackBtn:Tt,gapBtn:Ct,gapBtnTablet:St,gapBtnMobile:kt,textAlignTablet:wt,textAlignMobile:Pt,overallBlockTopMargin:xt,overallBlockRightMargin:At,overallBlockBottomMargin:Gt,overallBlockLeftMargin:Mt,overallBlockTopMobileMargin:Rt,overallBlockRightMobileMargin:Bt,overallBlockBottomMobileMargin:Ut,overallBlockLeftMobileMargin:Et,overallBlockTopTabletMargin:Ot,overallBlockRightTabletMargin:Lt,overallBlockBottomTabletMargin:Ht,overallBlockLeftTabletMargin:Ft,overallBlockMarginUnit:jt,overallBlockMobileMarginUnit:zt,overallBlockTabletMarginUnit:Dt,overallBlockTopPadding:Nt,overallBlockRightPadding:It,overallBlockBottomPadding:Vt,overallBlockLeftPadding:Wt,overallBlockTopMobilePadding:qt,overallBlockRightMobilePadding:Zt,overallBlockBottomMobilePadding:$t,overallBlockLeftMobilePadding:Yt,overallBlockTopTabletPadding:Kt,overallBlockRightTabletPadding:Jt,overallBlockBottomTabletPadding:Xt,overallBlockLeftTabletPadding:Qt,overallBlockPaddingUnit:ea,overallBlockMobilePaddingUnit:ta,overallBlockTabletPaddingUnit:aa,buttonRightSpace:la,buttonRightSpaceTablet:ia,buttonRightSpaceMobile:oa,buttonRightSpaceType:na,secondCtaIconSpaceTablet:ra,secondCtaIconSpaceMobile:sa,titleLetterSpacing:ca,titleLetterSpacingTablet:ua,titleLetterSpacingMobile:pa,titleLetterSpacingType:da,descLetterSpacing:ba,descLetterSpacingTablet:ga,descLetterSpacingMobile:ma,descLetterSpacingType:ya,ctaLetterSpacing:fa,ctaLetterSpacingTablet:ha,ctaLetterSpacingMobile:va,ctaLetterSpacingType:_a,secondCtaLetterSpacing:Ta,secondCtaLetterSpacingTablet:Ca,secondCtaLetterSpacingMobile:Sa,secondCtaLetterSpacingType:ka,btncontentWidth:wa,btncontentWidthTablet:Pa,btncontentWidthMobile:xa,btncontentWidthType:Aa,enabledSecondCtaButton:Ga,inheritFromTheme:Ma,secInheritFromTheme:Ra,block_id:Ba}=e,Ua=Wr(e,"btn"),Ea=Wr(e,"btn","tablet"),Oa=Wr(e,"btn","mobile"),La=us(O,"titleSpace",o),Ha=us(j,"descSpace",o),Fa=us(Ne,"secondCtaIconSpace",o),ja=us(Te,"ctaIconSpace",o),za=us(ke,"contentWidth",o),Da=us(wa,"btncontentWidth",o),Na=us(Ct,"gapBtn",o),Ia=us(la,"buttonRightSpace",o),Va=Wr(e,"secondCta"),Wa=Wr(e,"secondCta","tablet"),qa=Wr(e,"secondCta","mobile"),Za={" .uagb-cta__content-wrap":{"text-align":s}," .uagb-cta__wrap":{"text-align":s},".uagb-cta__outer-wrap":{"text-align":s,"padding-top":Vr(Nt,ea),"padding-bottom":Vr(Vt,ea),"padding-left":Vr(Wt,ea),"padding-right":Vr(It,ea),"margin-top":Vr(xt,jt),"margin-bottom":Vr(Gt,jt),"margin-left":Vr(Mt,jt),"margin-right":Vr(At,jt)}," .block-editor-rich-text__editable.uagb-cta__title":{"font-size":Vr(p,d),"font-family":f,"font-style":Oe,"text-decoration":Me,"text-transform":Ge,"font-weight":h,"line-height":Vr(_,v),"letter-spacing":Vr(ca,da),color:c,"margin-bottom":Vr(La,F)}," .block-editor-rich-text__editable.uagb-cta__desc":{"font-size":Vr(S,k),"font-family":G,"font-style":Le,"text-decoration":Be,"text-transform":Re,"font-weight":M,"line-height":Vr(B,R),"letter-spacing":Vr(ba,ya),color:u,"margin-bottom":Vr(Ha,N)}," .uagb-cta__desc":{"font-size":Vr(S,k),"font-family":G,"font-style":Le,"text-transform":Re,"font-weight":M,"letter-spacing":Vr(ba,ya),color:u,"margin-bottom":Vr(Ha,N)}," .uagb-cta__desc p":{color:u,"line-height":Vr(B,R),"text-decoration":Be}};"right"===I&&(Za[".uagb-cta__outer-wrap "]={display:"inline-flex"}),Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper svg"]={"font-size":Vr(V,W),width:Vr(V,W),height:Vr(V,W),"line-height":Vr(V,W),fill:X,"letter-spacing":Vr(fa,_a)},Za[".uagb-cta__outer-wrap a.uagb-cta-second__button svg"]={"font-size":Vr(Ve,We),width:Vr(Ve,We),"line-height":Vr(Ve,We),fill:ft},Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper:hover svg"]={fill:fe},Za[".uagb-cta__outer-wrap a.uagb-cta-second__button:hover svg"]={fill:vt};const $a={" .uagb-cta__wrap":{"text-align":wt},".uagb-editor-preview-mode-tablet.uagb-cta__outer-wrap ":{"text-align":wt,"padding-top":Vr(Kt,aa),"padding-bottom":Vr(Xt,aa),"padding-left":Vr(Qt,aa),"padding-right":Vr(Jt,aa),"margin-top":Vr(Ot,Dt),"margin-bottom":Vr(Ht,Dt),"margin-left":Vr(Ft,Dt),"margin-right":Vr(Lt,Dt)}," .block-editor-rich-text__editable.uagb-cta__title":{"font-size":Vr(y,g),"line-height":Vr(T,v),"letter-spacing":Vr(ua,da),"margin-bottom":Vr(L,F)}," .block-editor-rich-text__editable.uagb-cta__desc":{"font-size":Vr(A,P),"line-height":Vr(U,R),"letter-spacing":Vr(ga,ya),"margin-bottom":Vr(z,N)}," .uagb-cta__desc":{"font-size":Vr(A,P),"letter-spacing":Vr(ga,ya),"margin-bottom":Vr(z,N)}," .uagb-cta__desc p":{"line-height":Vr(U,R)},".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper svg":{"font-size":Vr(Y,Z),height:Vr(Y,Z),width:Vr(Y,Z),"line-height":Vr(Y,Z),"letter-spacing":Vr(ha,_a)},".uagb-cta__outer-wrap a.uagb-cta-second__button svg":{"font-size":Vr(Ye,Ze),height:Vr(Ye,Ze),width:Vr(Ye,Ze),"line-height":Vr(Ye,Ze),"letter-spacing":Vr(Ca,ka)}};"right"===I&&($a[".uagb-cta__outer-wrap.uagb-cta__content-stacked-tablet "]={display:"inherit"},$a[".uagb-cta__content-stacked-tablet .uagb-cta__wrap "]={width:"100%"});const Ya={" .uagb-cta__wrap":{"text-align":Pt},".uagb-editor-preview-mode-mobile.uagb-cta__outer-wrap ":{"text-align":Pt,"padding-top":Vr(qt,ta),"padding-bottom":Vr($t,ta),"padding-left":Vr(Yt,ta),"padding-right":Vr(Zt,ta),"margin-top":Vr(Rt,zt),"margin-bottom":Vr(Ut,zt),"margin-left":Vr(Et,zt),"margin-right":Vr(Bt,zt)}," .block-editor-rich-text__editable.uagb-cta__title":{"font-size":Vr(m,b),"line-height":Vr(C,v),"letter-spacing":Vr(pa,da),"margin-bottom":Vr(H,F)}," .block-editor-rich-text__editable.uagb-cta__desc":{"font-size":Vr(x,w),"line-height":Vr(E,R),"letter-spacing":Vr(ma,ya),"margin-bottom":Vr(D,N)}," .uagb-cta__desc":{"font-size":Vr(x,w),"letter-spacing":Vr(ma,ya),"margin-bottom":Vr(D,N)}," .uagb-cta__desc p":{"line-height":Vr(E,R)}," .uagb-cta__button-wrapper a.uagb-cta-typeof-text":{"font-size":Vr($,q),"letter-spacing":Vr(va,_a)}," .uagb-cta__button-wrapper .uagb-cta-with-svg":{"font-size":Vr($,q),height:Vr($,q),width:Vr($,q),"line-height":Vr($,q),"letter-spacing":Vr(va,_a)},".uagb-cta__outer-wrap a.uagb-cta-second__button svg":{"font-size":Vr($e,qe),height:Vr($e,qe),width:Vr($e,qe),"line-height":Vr($e,qe),"letter-spacing":Vr(Sa,ka)}};"text"===Ae&&(Za[" a.uagb-cta__button-link-wrapper"]={color:X,"border-style":"none !important","text-decoration":"underline",padding:"unset !important"},Za[" a.uagb-cta__button-link-wrapper:hover "]={color:fe});const Ka=Vr(Fa,"px"),Ja=Vr(ra,"px"),Xa=Vr(sa,"px");if("before"===Ie){const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";Za[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Xa},Za[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Xa}}else{const e="1"===uagb_blocks_info.is_rtl?"margin-right":"margin-left";Za[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap a.uagb-cta-second__button > svg"]={[e]:Xa},Za[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ka},$a[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Ja},Ya[".uagb-cta__outer-wrap div.uagb-cta-second__button > svg"]={[e]:Xa}}const Qa=Vr(ja,"px"),el=Vr(Ce,"px"),tl=Vr(Se,"px");if("before"===je){const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:tl},Za[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:tl}}else{const e="1"===uagb_blocks_info.is_rtl?"margin-right":"margin-left";Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper > svg"]={[e]:tl},Za[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:Qa},$a[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:el},Ya[".uagb-cta__outer-wrap div.uagb-cta__button-link-wrapper > svg"]={[e]:tl}}let al,ll,il;"none"!==Ae&&"all"!==Ae||(Za[" .uagb-cta__wrap"]={width:"100%"}),"right"!==I||"text"!==Ae&&"button"!==Ae||(Za[" .uagb-cta__wrap"]={width:Vr(za,xe)},Za[".uagb-cta__outer-wrap > a"]={"align-self":"top"===Fe?"flex-start":"center",height:"fit-content","margin-left":"auto"},$a[" .uagb-cta__wrap"]={width:Vr(we,xe)},Ya[" .uagb-cta__wrap"]={width:Vr(Pe,xe)}),"right"===I&&(Ya[".uagb-cta__outer-wrap.uagb-cta__content-stacked-mobile "]={display:"inherit"},Ya[".uagb-cta__outer-wrap.uagb-cta__content-stacked-tablet "]={display:"inherit"},Ya[".uagb-cta__content-stacked-mobile .uagb-cta__wrap "]={width:"100%"}),"below-title"===I&&(Ya[".uagb-cta__outer-wrap "]={display:"inherit"}),"desktop"===Tt?(Za[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(Na,"px")},$a[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(St,"px")},Ya[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(kt,"px")}):"tablet"===Tt?(Za[" .uagb-cta__buttons"]={"column-gap":Vr(Na,"px"),"align-items":"center"},$a[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(St,"px")},Ya[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(kt,"px")}):"mobile"===Tt?(Za[" .uagb-cta__buttons"]={"column-gap":Vr(Na,"px"),"align-items":"center"},$a[" .uagb-cta__buttons"]={"column-gap":Vr(St,"px"),"align-items":"center"},Ya[" .uagb-cta__buttons"]={"flex-direction":"column","row-gap":Vr(kt,"px")}):"none"===Tt&&(Za[" .uagb-cta__buttons"]={"column-gap":Vr(Na,"px"),"align-items":"center"},$a[" .uagb-cta__buttons"]={"column-gap":Vr(St,"px")},Ya[" .uagb-cta__buttons"]={"column-gap":Vr(kt,"px"),"justify-content":"center"}),"button"===Ae&&Ga&&(Za[".uagb-cta__outer-wrap .uagb-cta__buttons"]={width:Vr(Da,Aa)},$a[".uagb-cta__outer-wrap .uagb-cta__buttons"]={width:Vr(Pa,Aa)},Ya[".uagb-cta__outer-wrap .uagb-cta__buttons"]={width:Vr(xa,Aa)}),al="left"===s?"flex-start":"right"===s?"flex-end":"center",ll="left"===wt?"flex-start":"right"===wt?"flex-end":"center",il="left"===Pt?"flex-start":"right"===Pt?"flex-end":"center","desktop"===r?(Za[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":al},$a[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":ll},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":il}):"tablet"===r?(Za[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},$a[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":ll},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":il}):"mobile"===r?(Za[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},$a[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"column","align-items":il}):"none"===r&&(Za[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},$a[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},Ya[".uagb-cta__outer-wrap "]={"flex-direction":"row","align-items":"top"===Fe?"flex-start":"center"},Za[" .uagb-cta__buttons"]={"column-gap":Vr(Ct,"px"),"margin-left":Vr(Ia,na)},$a[" .uagb-cta__buttons"]={"column-gap":Vr(St,"px"),"margin-left":Vr(ia,na)},Ya[" .uagb-cta__buttons"]={"column-gap":Vr(kt,"px"),"margin-left":Vr(oa,na)}),Ma||(Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper"]={"font-size":Vr(V,W),"font-family":K,"font-style":He,"text-decoration":Ee,"text-transform":Ue,"font-weight":J,color:X,"background-color":"color"===Q?ee:"transparent","padding-top":Vr(te,ge),"padding-bottom":Vr(ie,ge),"padding-left":Vr(oe,ge),"padding-right":Vr(le,ge),...Ua,"letter-spacing":Vr(fa,_a)},Za[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper .wp-block-button__link:not(.has-background)"]={"font-size":Vr(V,W),"font-family":K,"font-style":He,"text-decoration":Ee,"text-transform":Ue,"font-weight":J,color:X,"background-color":ee,"padding-top":Vr(te,ge),"padding-bottom":Vr(ie,ge),"padding-left":Vr(oe,ge),"padding-right":Vr(le,ge),...Ua},Za[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper.wp-block-button__link:not(.has-background):hover"]={color:fe,"background-color":"color"===he?ve:"transparent","border-color":_e},$a[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper.wp-block-button__link:not(.has-background)"]={"font-size":Vr(Y,Z),"padding-top":Vr(ne,ye),"padding-bottom":Vr(se,ye),"padding-left":Vr(ce,ye),"padding-right":Vr(re,ye),"letter-spacing":Vr(ha,_a),...Ea},Ya[".uagb-cta__outer-wrap.wp-block-button:not(.is-style-outline) a.uagb-cta__button-link-wrapper.wp-block-button__link:not(.has-background)"]={"font-size":Vr($,q),"padding-top":Vr(ue,me),"padding-bottom":Vr(de,me),"padding-left":Vr(be,me),"padding-right":Vr(pe,me),"letter-spacing":Vr(va,_a),...Oa},$a[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper"]={"font-size":Vr(Y,Z),"padding-top":Vr(ne,ye),"padding-bottom":Vr(se,ye),"padding-left":Vr(ce,ye),"padding-right":Vr(re,ye),"letter-spacing":Vr(ha,_a),...Ea},Ya[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper"]={"font-size":Vr($,q),"padding-top":Vr(ue,me),"padding-bottom":Vr(de,me),"padding-left":Vr(be,me),"padding-right":Vr(pe,me),"letter-spacing":Vr(va,_a),...Oa}),Ra||(Za[".uagb-cta__outer-wrap a.uagb-cta-second__button"]={"font-size":Vr(Ve,We),"font-family":Ke,"font-style":Xe,"text-decoration":et,"text-transform":Qe,"font-weight":Je,color:ft,"background-color":"color"===ze?ht:"transparent","padding-top":Vr(tt,bt),"padding-bottom":Vr(lt,bt),"padding-left":Vr(it,bt),"padding-right":Vr(at,bt),"align-self":"top"===Fe?"flex-start":"center",height:"fit-content",...Va,"letter-spacing":Vr(Ta,ka)},Za[".uagb-cta__outer-wrap a.uagb-cta-second__button:hover"]={color:vt,"background-color":"color"===De?_t:"transparent","border-color":yt},Za[".uagb-cta__outer-wrap a.uagb-cta__button-link-wrapper:hover"]={color:fe,"background-color":"color"===he?ve:"transparent","border-color":_e},$a[".uagb-cta__outer-wrap a.uagb-cta-second__button"]={"font-size":Vr(Ye,Ze),"padding-top":Vr(ct,mt),"padding-bottom":Vr(pt,mt),"padding-left":Vr(dt,mt),"padding-right":Vr(ut,mt),...Wa,"letter-spacing":Vr(Ca,ka)},Ya[".uagb-cta__outer-wrap a.uagb-cta-second__button"]={"font-size":Vr($e,qe),"padding-top":Vr(ot,gt),"padding-bottom":Vr(rt,gt),"padding-left":Vr(st,gt),"padding-right":Vr(nt,gt),...qa,"letter-spacing":Vr(Sa,ka)});const ol=i?`.editor-styles-wrapper ${i} `:`.editor-styles-wrapper #block-${t} .uagb-block-${Ba}`;let nl=ae(Za,""+ol);return("tablet"===n||"mobile"===n||i)&&(nl+=ae($a,""+ol,!0,"tablet"),("mobile"===n||i)&&(nl+=ae(Ya,""+ol,!0,"mobile"))),nl};const Lm=[{defaultAttributes:Ot},{defaultPresetAttributes:[{label:"showIcon"},{label:"ctaIconSpace"},{label:"ctaBgType"},{label:"ctaBgHoverColor"},{label:"ctaBtnLinkColor"},{label:"ctaLinkHoverColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showIcon",value:!1},{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHoverColor",value:"#3a3a3a"},{label:"ctaBtnLinkColor",value:"#0170b9"},{label:"ctaLinkHoverColor",value:"#ffffff"},{label:"showIcon",value:!0},{label:"ctaIconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidthDesktop",value:1},{label:"btnBorderTopWidthDesktop",value:1},{label:"btnBorderLeftWidthDesktop",value:1},{label:"btnBorderRightWidthDesktop",value:1}],icon:' '}],Hm=[{defaultAttributes:Ot},{defaultPresetAttributes:[{label:"secondCtaBorderStyle"},{label:"secondCtaBorderTopLeftRadius"},{label:"secondCtaBorderTopRightRadius"},{label:"secondCtaBorderBottomLeftRadius"},{label:"secondCtaBorderBottomRightRadius"},{label:"secondCtaBorderBottomWidthDesktop"},{label:"secondCtaBorderTopWidthDesktop"},{label:"secondCtaBorderLeftWidthDesktop"},{label:"secondCtaBorderRightWidthDesktop"},{label:"showSecondIcon"},{label:"secondCtaIconSpace"},{label:"secondCtaBgType"},{label:"secondCtaHoverBackground"},{label:"secondCtaColor"},{label:"secondCtaHoverColor"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:0},{label:"secondCtaBorderTopRightRadius",value:0},{label:"secondCtaBorderBottomLeftRadius",value:0},{label:"secondCtaBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:30},{label:"secondCtaBorderTopRightRadius",value:30},{label:"secondCtaBorderBottomLeftRadius",value:30},{label:"secondCtaBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!0},{label:"secondCtaIconSpace",value:12},{label:"secondCtaBorderStyle",value:"none"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:0},{label:"secondCtaBorderTopRightRadius",value:0},{label:"secondCtaBorderBottomLeftRadius",value:0},{label:"secondCtaBorderBottomRightRadius",value:0},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showSecondIcon",value:!1},{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:30},{label:"secondCtaBorderTopRightRadius",value:30},{label:"secondCtaBorderBottomLeftRadius",value:30},{label:"secondCtaBorderBottomRightRadius",value:30},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"secondCtaBgType",value:"transparent"},{label:"secondCtaHoverBackground",value:"#3a3a3a"},{label:"secondCtaColor",value:"#0170b9"},{label:"secondCtaHoverColor",value:"#ffffff"},{label:"showSecondIcon",value:!0},{label:"secondCtaIconSpace",value:12},{label:"secondCtaBorderStyle",value:"solid"},{label:"secondCtaBorderTopLeftRadius",value:5},{label:"secondCtaBorderTopRightRadius",value:5},{label:"secondCtaBorderBottomLeftRadius",value:5},{label:"secondCtaBorderBottomRightRadius",value:5},{label:"secondCtaBorderBottomWidth",value:1},{label:"secondCtaBorderTopWidth",value:1},{label:"secondCtaBorderLeftWidth",value:1},{label:"secondCtaBorderRightWidth",value:1}],icon:' '}];function Fm(){return(Fm=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{textAlign:i,titleColor:o,descColor:n,titleTag:s,titleFontSize:c,titleFontSizeType:u,titleFontSizeTypeMobile:p,titleFontSizeTypeTablet:d,titleFontSizeMobile:b,titleFontSizeTablet:g,titleFontFamily:m,titleFontWeight:y,titleLineHeightType:f,titleLineHeight:h,titleLineHeightTablet:v,titleLineHeightMobile:_,titleLoadGoogleFonts:T,descFontSize:C,descFontSizeType:S,descFontSizeTypeMobile:k,descFontSizeTypeTablet:w,descFontSizeMobile:P,descFontSizeTablet:x,descFontFamily:A,descFontWeight:G,descLineHeightType:M,descLineHeight:R,descLineHeightTablet:B,descLineHeightMobile:U,descLoadGoogleFonts:E,titleSpace:O,titleSpaceTablet:L,titleSpaceMobile:H,titleSpaceType:F,descSpace:j,descSpaceTablet:z,descSpaceMobile:D,descSpaceType:N,buttonAlign:I,htmlTag:V,ctaType:W,ctaText:q,ctaLink:Z,ctaTarget:$,ctaIcon:Y,ctaIconPosition:K,ctaIconSpace:J,ctaIconSpaceTablet:X,ctaIconSpaceMobile:Q,ctaFontSize:ee,ctaFontSizeType:te,ctaFontSizeTypeMobile:ae,ctaFontSizeTypeTablet:le,ctaFontSizeMobile:ie,ctaFontSizeTablet:oe,ctaFontFamily:ne,ctaFontWeight:re,ctaLoadGoogleFonts:se,contentWidth:ce,contentWidthTablet:ue,contentWidthMobile:pe,contentWidthType:de,ctaBtnLinkColor:be,ctaBgType:me,ctaBgHoverType:ye,secondCtaBgType:fe,secondCtaBgHoverType:he,ctaBgHoverColor:ve,ctaBgColor:_e,ctaTopPadding:Te,ctaRightPadding:Se,ctaBottomPadding:ke,ctaLeftPadding:we,ctaTopPaddingTablet:Pe,ctaRightPaddingTablet:xe,ctaBottomPaddingTablet:Ae,ctaLeftPaddingTablet:Ge,ctaTopPaddingMobile:Me,ctaRightPaddingMobile:Re,ctaBottomPaddingMobile:Be,ctaLeftPaddingMobile:Ue,ctaPaddingUnit:Oe,mobileCTAPaddingUnit:He,tabletCTAPaddingUnit:Fe,ctaPaddingLink:ze,stack:De,ctaLinkHoverColor:Ne,titleTransform:Ie,titleDecoration:Ve,descTransform:We,descDecoration:qe,ctaTransform:Ze,ctaDecoration:$e,titleFontStyle:Ye,descFontStyle:Ke,ctaFontStyle:Je,enabledSecondCtaButton:Xe,secondCtaLink:Qe,secondCtaLabel:et,secondCtaTarget:tt,secondCtaLoadGoogleFonts:at,secondCtaFontFamily:lt,secondCtaFontWeight:it,secondCtaFontStyle:ot,secondCtaFontTransform:nt,secondCtaFontDecoration:rt,secondCtaTopPadding:st,secondCtaRightPadding:ct,secondCtaBottomPadding:ut,secondCtaLeftPadding:pt,secondCtaTopMobilePadding:dt,secondCtaRightMobilePadding:bt,secondCtaBottomMobilePadding:gt,secondCtaLeftMobilePadding:mt,secondCtaTopTabletPadding:yt,secondCtaRightTabletPadding:ft,secondCtaBottomTabletPadding:ht,secondCtaLeftTabletPadding:vt,secondCtaPaddingUnit:_t,secondCtaMobilePaddingUnit:Tt,secondCtaTabletPaddingUnit:Ct,secondCtaPaddingLink:St,secondCtaColor:kt,secondCtaBackground:wt,secondCtaHoverColor:Pt,secondCtaHoverBackground:xt,secondCtaFontSize:At,secondCtaFontSizeType:Gt,secondCtaFontSizeTypeMobile:Mt,secondCtaFontSizeTypeTablet:Rt,secondCtaFontSizeMobile:Bt,secondCtaFontSizeTablet:Ut,secondCtaIcon:Et,secondCtaIconPosition:Ot,secondCtaIconSpace:Lt,stackBtn:Ht,gapBtn:Ft,gapBtnTablet:jt,gapBtnMobile:zt,textAlignTablet:Dt,textAlignMobile:Nt,overallBlockTopMargin:It,overallBlockRightMargin:Vt,overallBlockBottomMargin:Wt,overallBlockLeftMargin:qt,overallBlockTopMobileMargin:Zt,overallBlockRightMobileMargin:$t,overallBlockBottomMobileMargin:Yt,overallBlockLeftMobileMargin:Kt,overallBlockTopTabletMargin:Jt,overallBlockRightTabletMargin:Xt,overallBlockBottomTabletMargin:Qt,overallBlockLeftTabletMargin:ea,overallBlockMarginUnit:ta,overallBlockMobileMarginUnit:aa,overallBlockTabletMarginUnit:la,overallBlockMarginLink:ia,overallBlockTopPadding:oa,overallBlockRightPadding:na,overallBlockBottomPadding:ra,overallBlockLeftPadding:sa,overallBlockTopMobilePadding:ca,overallBlockRightMobilePadding:ua,overallBlockBottomMobilePadding:pa,overallBlockLeftMobilePadding:da,overallBlockTopTabletPadding:ba,overallBlockRightTabletPadding:ga,overallBlockBottomTabletPadding:ma,overallBlockLeftTabletPadding:ya,overallBlockPaddingUnit:fa,overallBlockMobilePaddingUnit:ha,overallBlockTabletPaddingUnit:va,overallBlockPaddingLink:_a,buttonRightSpace:Ta,buttonRightSpaceTablet:Ca,buttonRightSpaceMobile:Sa,buttonRightSpaceType:ka,secondCtaIconSpaceTablet:wa,secondCtaIconSpaceMobile:Pa,titleLetterSpacing:xa,titleLetterSpacingTablet:Aa,titleLetterSpacingMobile:Ga,titleLetterSpacingType:Ma,descLetterSpacing:Ra,descLetterSpacingTablet:Ba,descLetterSpacingMobile:Ua,descLetterSpacingType:Ea,ctaLetterSpacing:Oa,ctaLetterSpacingTablet:La,ctaLetterSpacingMobile:Ha,ctaLetterSpacingType:Fa,secondCtaLetterSpacing:ja,secondCtaLetterSpacingTablet:za,secondCtaLetterSpacingMobile:Da,secondCtaLetterSpacingType:Ia,showIcon:Va,showSecondIcon:Wa,btncontentWidth:qa,btncontentWidthTablet:Za,btncontentWidthMobile:$a,btncontentWidthType:Ya,inheritFromTheme:Ka,ctaButtonType:Ja,secCtaButtonType:Xa,secInheritFromTheme:Qa,enableMultilineParagraph:el}=a,al=uagb_blocks_info.current_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,Fm({},ol,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:V,label:"htmlTag"},setAttributes:t,options:[{value:"div",label:Object(r.__)("div","ultimate-addons-for-gutenberg")},{value:"header",label:Object(r.__)("header","ultimate-addons-for-gutenberg")},{value:"footer",label:Object(r.__)("footer","ultimate-addons-for-gutenberg")},{value:"main",label:Object(r.__)("main","ultimate-addons-for-gutenberg")},{value:"article",label:Object(r.__)("article","ultimate-addons-for-gutenberg")},{value:"section",label:Object(r.__)("section","ultimate-addons-for-gutenberg")},{value:"aside",label:Object(r.__)("aside","ultimate-addons-for-gutenberg")},{value:"nav",label:Object(r.__)("nav","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{checked:el,onChange:()=>t({enableMultilineParagraph:!el}),label:Object(r.__)("Enable Semantic Markup","ultimate-addons-for-gutenberg"),help:el?"":Object(r.__)("Use Core/Paragraph: Improve accessibility and SEO with semantic HTML markup. Note: Existing Rich Text content will not be preserved.","ultimate-addons-for-gutenberg")}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"textAlign"},tablet:{value:Dt,label:"textAlignTablet"},mobile:{value:Nt,label:"textAlignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:De,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],showIcons:!1,help:Object(r.__)("Note: Choose on what breakpoint the CTA button will stack.","ultimate-addons-for-gutenberg")}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:s,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")}]}),"all"!==W&&"none"!==W&&React.createElement(React.Fragment,null,("text"===W||"button"===W)&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Content Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:ce,label:"contentWidth"},tablet:{value:ue,label:"contentWidthTablet"},mobile:{value:pe,label:"contentWidthMobile"}},min:0,max:100,unit:{value:de,label:"contentWidthType"},units:[{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}))),"all"!==W&&"none"!==W&&"text"!==W&&React.createElement(React.Fragment,null,Xe&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Buttons Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:qa,label:"btncontentWidth"},tablet:{value:Za,label:"btncontentWidthTablet"},mobile:{value:$a,label:"btncontentWidthMobile"}},min:20,max:100,unit:{value:Ya,label:"btncontentWidthType"},units:[{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t})))),React.createElement(je,{title:Object(r.__)("Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:W,label:"ctaType"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"button",label:Object(r.__)("Button","ultimate-addons-for-gutenberg")},{value:"all",label:Object(r.__)("Complete Box","ultimate-addons-for-gutenberg")}],showIcons:!1}),"button"===W&&React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:t,presets:Lm,presetInputType:"radioImage"}),React.createElement(Le.ToggleControl,{checked:Ka,onChange:()=>t({inheritFromTheme:!Ka}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Ka&&"Astra"===al&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ja,label:"ctaButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]})),"desktop"!==De&&"all"!==W&&"none"!==W&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:I,label:"buttonAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}],showIcons:!1}),"text"===W&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:q,data:{value:q,label:"ctaText"},setAttributes:t,onChange:e=>t({ctaText:e})})),"none"!==W&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),name:"ctaLink",enableDynamicContent:!0,value:Z,setAttributes:t,data:{value:Z,label:"ctaLink"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Window","ultimate-addons-for-gutenberg"),checked:$,onChange:()=>t({ctaTarget:!$})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Icon","ultimate-addons-for-gutenberg"),checked:Va,onChange:()=>t({showIcon:!Va})})),Va&&"all"!==W&&"none"!==W&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Y,onChange:e=>t({ctaIcon:e})}),""!==Y&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:K,label:"ctaIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:J,label:"ctaIconSpace"},tablet:{value:X,label:"ctaIconSpaceTablet"},mobile:{value:Q,label:"ctaIconSpaceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:t})))),"button"===W&&React.createElement(je,{title:Object(r.__)("Additional Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Additional Button","ultimate-addons-for-gutenberg"),checked:Xe,onChange:()=>t({enabledSecondCtaButton:!Xe})}),Xe&&React.createElement(React.Fragment,null,!Qa&&React.createElement(Hr,{setAttributes:t,presets:Hm,presetInputType:"radioImage"}),React.createElement(Le.ToggleControl,{checked:Qa,onChange:()=>t({secInheritFromTheme:!Qa}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Qa&&"Astra"===al&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Xa,label:"secCtaButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack Orientation","ultimate-addons-for-gutenberg"),data:{value:Ht,label:"stackBtn"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: Choose on what breakpoint the buttons will stack.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Gap Between Buttons","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ft,label:"gapBtn"},tablet:{value:jt,label:"gapBtnTablet"},mobile:{value:zt,label:"gapBtnMobile"}},min:0,max:200,displayUnit:!1,setAttributes:t}),React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:et,data:{value:et,label:"secondCtaLabel"},setAttributes:t,onChange:e=>t({secondCtaLabel:e})}),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,name:"secondCtaLink",value:Qe,setAttributes:t,data:{value:Qe,label:"secondCtaLink"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Window","ultimate-addons-for-gutenberg"),checked:tt,onChange:()=>t({secondCtaTarget:!tt})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Icon","ultimate-addons-for-gutenberg"),checked:Wa,onChange:()=>t({showSecondIcon:!Wa})}),Wa&&React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Et,onChange:e=>t({secondCtaIcon:e})}),Wa&&""!==Et&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:Ot,label:"secondCtaIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Lt,label:"secondCtaIconSpace"},tablet:{value:wa,label:"secondCtaIconSpaceTablet"},mobile:{value:Pa,label:"secondCtaIconSpaceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:t}))))),React.createElement(il,Fm({},nl,{parentProps:e}),React.createElement(je,{title:Object(r.__)("Heading","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:o||"",data:{value:o,label:"titleColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:T,label:"titleLoadGoogleFonts"},fontFamily:{value:m,label:"titleFontFamily"},fontWeight:{value:y,label:"titleFontWeight"},fontStyle:{value:Ye,label:"titleFontStyle"},transform:{value:Ie,label:"titleTransform"},decoration:{value:Ve,label:"titleDecoration"},fontSizeType:{value:u,label:"titleFontSizeType"},fontSizeTypeTablet:{value:d,label:"titleFontSizeTypeTablet"},fontSizeTypeMobile:{value:p,label:"titleFontSizeTypeMobile"},fontSize:{value:c,label:"titleFontSize"},fontSizeMobile:{value:b,label:"titleFontSizeMobile"},fontSizeTablet:{value:g,label:"titleFontSizeTablet"},lineHeightType:{value:f,label:"titleLineHeightType"},lineHeight:{value:h,label:"titleLineHeight"},lineHeightMobile:{value:_,label:"titleLineHeightMobile"},lineHeightTablet:{value:v,label:"titleLineHeightTablet"},letterSpacing:{value:xa,label:"titleLetterSpacing"},letterSpacingTablet:{value:Aa,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Ga,label:"titleLetterSpacingMobile"},letterSpacingType:{value:Ma,label:"titleLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:O,label:"titleSpace"},tablet:{value:L,label:"titleSpaceTablet"},mobile:{value:H,label:"titleSpaceMobile"}},min:0,max:200,unit:{value:F,label:"titleSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:t})),React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:E,label:"descLoadGoogleFonts"},fontFamily:{value:A,label:"descFontFamily"},fontWeight:{value:G,label:"descFontWeight"},fontStyle:{value:Ke,label:"descFontStyle"},transform:{value:We,label:"descTransform"},decoration:{value:qe,label:"descDecoration"},fontSizeType:{value:S,label:"descFontSizeType"},fontSizeTypeTablet:{value:w,label:"descFontSizeTypeMobile"},fontSizeTypeMobile:{value:k,label:"descFontSizeTypeMobile"},fontSize:{value:C,label:"descFontSize"},fontSizeMobile:{value:P,label:"descFontSizeMobile"},fontSizeTablet:{value:x,label:"descFontSizeTablet"},lineHeightType:{value:M,label:"descLineHeightType"},lineHeight:{value:R,label:"descLineHeight"},lineHeightMobile:{value:U,label:"descLineHeightMobile"},lineHeightTablet:{value:B,label:"descLineHeightTablet"},letterSpacing:{value:Ra,label:"descLetterSpacing"},letterSpacingTablet:{value:Ba,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:Ua,label:"descLetterSpacingMobile"},letterSpacingType:{value:Ea,label:"descLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:j,label:"descSpace"},tablet:{value:z,label:"descSpaceTablet"},mobile:{value:D,label:"descSpaceMobile"}},min:0,max:200,unit:{value:N,label:"descSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:t})),"all"!==W&&"none"!==W&&!Ka&&React.createElement(je,{title:Object(r.__)("Button","ultimate-addons-for-gutenberg"),initialOpen:!1},"text"===W&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"ctaBtnLinkColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:Ne||"",data:{value:Ne,label:"ctaLinkHoverColor"},setAttributes:t}))}),"button"===W&&!Ka&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"ctaBtnLinkColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:me,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===me&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_e||"",data:{value:_e,label:"ctaBgColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:Ne||"",data:{value:Ne,label:"ctaLinkHoverColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:ye,label:"ctaBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===ye&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ve||"",data:{value:ve,label:"ctaBgHoverColor"},setAttributes:t}))})),("text"===W||"button"===W&&!Ka)&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:se,label:"ctaLoadGoogleFonts"},fontFamily:{value:ne,label:"ctaFontFamily"},fontWeight:{value:re,label:"ctaFontWeight"},fontStyle:{value:Je,label:"ctaFontStyle"},transform:{value:Ze,label:"ctaTransform"},decoration:{value:$e,label:"ctaDecoration"},fontSizeType:{value:te,label:"ctaFontSizeType"},fontSizeTypeTablet:{value:le,label:"ctaFontSizeTypeTablet"},fontSizeTypeMobile:{value:ae,label:"ctaFontSizeTypeMobile"},fontSize:{value:ee,label:"ctaFontSize"},fontSizeMobile:{value:ie,label:"ctaFontSizeMobile"},fontSizeTablet:{value:oe,label:"ctaFontSizeTablet"},letterSpacing:{value:Oa,label:"ctaLetterSpacing"},letterSpacingTablet:{value:La,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:Ha,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:Fa,label:"ctaLetterSpacingType"},disableLineHeight:!0}),"button"===W&&!Ka&&React.createElement(React.Fragment,null,React.createElement(Hi,{setAttributes:t,prefix:"btn",attributes:a,deviceType:l,disabledBorderTitle:!1}),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Te,label:"ctaTopPadding"},valueRight:{value:Se,label:"ctaRightPadding"},valueBottom:{value:ke,label:"ctaBottomPadding"},valueLeft:{value:we,label:"ctaLeftPadding"},valueTopTablet:{value:Pe,label:"ctaTopPaddingTablet"},valueRightTablet:{value:xe,label:"ctaRightPaddingTablet"},valueBottomTablet:{value:Ae,label:"ctaBottomPaddingTablet"},valueLeftTablet:{value:Ge,label:"ctaLeftPaddingTablet"},valueTopMobile:{value:Me,label:"ctaTopPaddingMobile"},valueRightMobile:{value:Re,label:"ctaRightPaddingMobile"},valueBottomMobile:{value:Be,label:"ctaBottomPaddingMobile"},valueLeftMobile:{value:Ue,label:"ctaLeftPaddingMobile"},unit:{value:Oe,label:"ctaPaddingUnit"},mUnit:{value:He,label:"mobileCTAPaddingUnit"},tUnit:{value:Fe,label:"tabletCTAPaddingUnit"},attributes:a,setAttributes:t,link:{value:ze,label:"ctaPaddingLink"}})))),"button"===W&&Xe&&!Qa&&React.createElement(je,{title:Object(r.__)("Additional Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:at,label:"secondCtaLoadGoogleFonts"},fontFamily:{value:lt,label:"secondCtaFontFamily"},fontWeight:{value:it,label:"secondCtaFontWeight"},fontStyle:{value:ot,label:"secondCtaFontStyle"},transform:{value:nt,label:"secondCtaFontTransform"},decoration:{value:rt,label:"secondCtaFontDecoration"},fontSizeType:{value:Gt,label:"secondCtaFontSizeType"},fontSizeTypeTablet:{value:Rt,label:"secondCtaFontSizeTypeTablet"},fontSizeTypeMobile:{value:Mt,label:"secondCtaFontSizeTypeMobile"},fontSize:{value:At,label:"secondCtaFontSize"},fontSizeMobile:{value:Bt,label:"secondCtaFontSizeMobile"},fontSizeTablet:{value:Ut,label:"secondCtaFontSizeTablet"},letterSpacing:{value:ja,label:"secondCtaLetterSpacing"},letterSpacingTablet:{value:za,label:"secondCtaLetterSpacingTablet"},letterSpacingMobile:{value:Da,label:"secondCtaLetterSpacingMobile"},letterSpacingType:{value:Ia,label:"secondCtaLetterSpacingType"},disableLineHeight:!0}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:kt||"",data:{value:kt,label:"secondCtaColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:fe,label:"secondCtaBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===fe&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:wt||"",data:{value:wt,label:"secondCtaBackground"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:Pt||"",data:{value:Pt,label:"secondCtaHoverColor"},setAttributes:t}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:he,label:"secondCtaBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===he&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:xt||"",data:{value:xt,label:"secondCtaHoverBackground"},setAttributes:t})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:t,prefix:"secondCta",attributes:a,deviceType:l,disabledBorderTitle:!1}),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:st,label:"secondCtaTopPadding"},valueRight:{value:ct,label:"secondCtaRightPadding"},valueBottom:{value:ut,label:"secondCtaBottomPadding"},valueLeft:{value:pt,label:"secondCtaLeftPadding"},valueTopTablet:{value:yt,label:"secondCtaTopTabletPadding"},valueRightTablet:{value:ft,label:"secondCtaRightTabletPadding"},valueBottomTablet:{value:ht,label:"secondCtaBottomTabletPadding"},valueLeftTablet:{value:vt,label:"secondCtaLeftTabletPadding"},valueTopMobile:{value:dt,label:"secondCtaTopMobilePadding"},valueRightMobile:{value:bt,label:"secondCtaRightMobilePadding"},valueBottomMobile:{value:gt,label:"secondCtaBottomMobilePadding"},valueLeftMobile:{value:mt,label:"secondCtaLeftMobilePadding"},unit:{value:_t,label:"secondCtaPaddingUnit"},mUnit:{value:Tt,label:"secondCtaMobilePaddingUnit"},tUnit:{value:Ct,label:"secondCtaTabletPaddingUnit"},attributes:a,setAttributes:t,link:{value:St,label:"secondCtaPaddingLink"}}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},("right"!==i&&"none"===De&&"Desktop"===l||"right"!==Dt&&"Tablet"===l&&"none"===De||"right"!==Nt&&"Mobile"===l&&"none"===De)&&React.createElement(tl,{label:Object(r.__)("Content And Buttons Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ta,label:"buttonRightSpace"},tablet:{value:Ca,label:"buttonRightSpaceTablet"},mobile:{value:Sa,label:"buttonRightSpaceMobile"}},min:0,max:200,unit:{value:ka,label:"buttonRightSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:t}),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:oa,label:"overallBlockTopPadding"},valueRight:{value:na,label:"overallBlockRightPadding"},valueBottom:{value:ra,label:"overallBlockBottomPadding"},valueLeft:{value:sa,label:"overallBlockLeftPadding"},valueTopTablet:{value:ba,label:"overallBlockTopTabletPadding"},valueRightTablet:{value:ga,label:"overallBlockRightTabletPadding"},valueBottomTablet:{value:ma,label:"overallBlockBottomTabletPadding"},valueLeftTablet:{value:ya,label:"overallBlockLeftTabletPadding"},valueTopMobile:{value:ca,label:"overallBlockTopMobilePadding"},valueRightMobile:{value:ua,label:"overallBlockRightMobilePadding"},valueBottomMobile:{value:pa,label:"overallBlockBottomMobilePadding"},valueLeftMobile:{value:da,label:"overallBlockLeftMobilePadding"},unit:{value:fa,label:"overallBlockPaddingUnit"},mUnit:{value:ha,label:"overallBlockMobilePaddingUnit"},tUnit:{value:va,label:"overallBlockTabletPaddingUnit"},attributes:a,setAttributes:t,link:{value:_a,label:"overallBlockPaddingLink"}})),React.createElement(Pl,Fm({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:It,label:"overallBlockTopMargin"},valueRight:{value:Vt,label:"overallBlockRightMargin"},valueBottom:{value:Wt,label:"overallBlockBottomMargin"},valueLeft:{value:qt,label:"overallBlockLeftMargin"},valueTopTablet:{value:Jt,label:"overallBlockTopTabletMargin"},valueRightTablet:{value:Xt,label:"overallBlockRightTabletMargin"},valueBottomTablet:{value:Qt,label:"overallBlockBottomTabletMargin"},valueLeftTablet:{value:ea,label:"overallBlockLeftTabletMargin"},valueTopMobile:{value:Zt,label:"overallBlockTopMobileMargin"},valueRightMobile:{value:$t,label:"overallBlockRightMobileMargin"},valueBottomMobile:{value:Yt,label:"overallBlockBottomMobileMargin"},valueLeftMobile:{value:Kt,label:"overallBlockLeftMobileMargin"},unit:{value:ta,label:"overallBlockMarginUnit"},mUnit:{value:aa,label:"overallBlockMobileMarginUnit"},tUnit:{value:la,label:"overallBlockTabletMarginUnit"},attributes:a,setAttributes:t,link:{value:ia,label:"overallBlockMarginLink"}})))),React.createElement(il,Fm({},rl,{parentProps:e}),Ds(Om,t,a)))))}),Dm=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:t.titleTag,placeholder:Object(r.__)("Write a Heading","ultimate-addons-for-gutenberg"),value:t.ctaTitle,className:"uagb-cta__title",onChange:e=>a({ctaTitle:e}),multiline:!1,onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])}):React.createElement(ge.RichText.Content,{tagName:t.titleTag,value:t.ctaTitle,className:"uagb-cta__title"})},Nm=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o}=e,{enableMultilineParagraph:n,description:s}=t,c={allowedBlocks:["core/paragraph"],template:[["core/paragraph",{content:s}]],templateLock:!1,renderAppender:!1};if("not_set"===a&&!n)return React.createElement(ge.RichText.Content,{tagName:"p",value:t.description,className:"uagb-cta__desc"});const u=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{tagName:"p",value:t.description,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-cta__desc",onChange:e=>a({description:e,tempDesc:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])})),p=Object(ge.useInnerBlocksProps)({className:"uagb-cta__desc"},c);return React.createElement(React.Fragment,null,n?React.createElement("div",p):u)},Im=e=>{var t,a;const{attributes:l,setAttributes:i}=e;let o="_self";const n="noopener noreferrer";l.ctaTarget&&(o="_blank");const r=l.inheritFromTheme&&"secondary"===l.ctaButtonType,s=r?"ast-outline-button":"wp-block-button__link",c=r?{borderWidth:"revert-layer"}:{},u=r?"div":"a";let p="";l.showIcon&&""!==l.ctaIcon&&(p="not_set"!==i?Ce(l.ctaIcon,i):Ce(l.ctaIcon));let d="/",b=e=>{e.preventDefault()};return("not_set"===i||null!=l&&null!==(t=l.dynamicContent)&&void 0!==t&&null!==(a=t.ctaLink)&&void 0!==a&&a.enable)&&(d=l.ctaLink||"#",b=!1),"not_set"!==i?React.createElement(React.Fragment,null,("button"===l.ctaType||"text"===l.ctaType)&&React.createElement(u,{href:d,className:Be()("uagb-cta__button-link-wrapper","button"===l.ctaType?s:""),target:o,rel:n,style:c,onClick:b},"before"===l.ctaIconPosition&&p,React.createElement(ge.RichText,{value:l.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>{i({ctaText:e})},allowedFormats:[]}),"after"===l.ctaIconPosition&&p)):React.createElement(React.Fragment,null,("button"===l.ctaType||"text"===l.ctaType)&&React.createElement("a",{href:d,className:Be()("uagb-cta__button-link-wrapper","button"===l.ctaType?s:""),target:o,rel:n,style:c,onClick:b},"before"===l.ctaIconPosition&&p,React.createElement(ge.RichText.Content,{value:l.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,"")}),"after"===l.ctaIconPosition&&p))},Vm=e=>{const{attributes:t,setAttributes:a}=e;let l="_self";const i="noopener noreferrer";t.secondCtaTarget&&(l="_blank");const o=t.secInheritFromTheme&&"secondary"===t.secCtaButtonType,n=o?"ast-outline-button":"wp-block-button__link",r=o?{borderWidth:"revert-layer"}:{},s=o?"div":"a";let c="";t.showSecondIcon&&""!==t.secondCtaIcon&&(c="not_set"!==a?Ce(t.secondCtaIcon,a):Ce(t.secondCtaIcon));let u="/",p=e=>{e.preventDefault()};return"not_set"===a&&(u=t.secondCtaLink,p=!1),"not_set"!==a?React.createElement(React.Fragment,null,React.createElement(s,{href:u,className:Be()("uagb-cta-second__button",n),target:l,rel:i,style:r,onClick:p},"before"===t.secondCtaIconPosition&&c,React.createElement(ge.RichText,{value:t.secondCtaLabel.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>{a({secondCtaLabel:e})},allowedFormats:[]}),"after"===t.secondCtaIconPosition&&c)):React.createElement(React.Fragment,null,React.createElement("a",{href:u,className:Be()("uagb-cta-second__button",n),target:l,rel:i,style:r,onClick:p},"before"===t.secondCtaIconPosition&&c,React.createElement(ge.RichText.Content,{value:t.secondCtaLabel.replace(/<(?!br\s*V?)[^>]+>/g,"")}),"after"===t.secondCtaIconPosition&&c))},Wm=a(105),qm=0,Zm={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},$m={};$m.locals=Wm.a.locals||{},$m.use=function(){return qm++||(jm=we()(Wm.a,Zm)),$m},$m.unuse=function(){qm>0&&!--qm&&(jm(),jm=null)};var Ym=$m,Km=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Ym.use(),()=>{Ym.unuse()}),[]);const{setAttributes:t,attributes:a,deviceType:l}=e,{block_id:i,ctaType:o,enabledSecondCtaButton:n,htmlTag:r}=a,s=r||"div",c=React.createElement(Im,{attributes:a,setAttributes:t}),u="button"===o&&n?React.createElement(Vm,{attributes:a,setAttributes:t}):"",p=React.createElement(Nm,{attributes:a,setAttributes:t,props:e}),d=React.createElement(Dm,{attributes:a,setAttributes:t,props:e}),b=()=>React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},d,p),React.createElement("div",{className:"uagb-cta__buttons"},c,u));return React.createElement(s,{className:Be()("uagb-block-"+i,"uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-cta__outer-wrap","button"===o?"wp-block-button":"")},"all"===o&&React.createElement(React.Fragment,null,React.createElement("a",{href:"/",className:"uagb-cta__link-to-all",rel:"noopener noreferrer",onClick:e=>e.preventDefault()}," "),b()),"all"!==o&&b())}),Jm=Object(B.memo)(e=>{let{attributes:t}=e;const{secondCtaLoadGoogleFonts:a,ctaLoadGoogleFonts:l,titleLoadGoogleFonts:i,descLoadGoogleFonts:o,secondCtaFontFamily:n,secondCtaFontWeight:r,ctaFontFamily:s,ctaFontWeight:c,titleFontFamily:u,titleFontWeight:p,descFontFamily:d,descFontWeight:b}=t;let g,m,y,f;if(!0===a){const e={google:{families:[n+(r?":"+r:"")]}};f=React.createElement(O,{config:e})}if(!0===l){const e={google:{families:[s+(c?":"+c:"")]}};g=React.createElement(O,{config:e})}if(!0===i){const e={google:{families:[u+(p?":"+p:"")]}};m=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[d+(b?":"+b:"")]}};y=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,g,f,m,y)}),Xm=Object(L.compose)(ls,fe,uc)(e=>{const{isSelected:t,setAttributes:a,attributes:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n,ctaPosition:r,stack:s,ctaLeftSpace:c,overallBlockLeftMargin:u,textAlign:p,ctaBorderStyle:d,ctaBorderWidth:b,ctaBorderColor:g,ctaBorderhoverColor:m,ctaBorderRadius:y,globalBlockStyleId:f,enableMultilineParagraph:h,tempDesc:v},clientId:_,name:T,deviceType:C}=e;Object(B.useEffect)(()=>{"none"===s&&"right"===r?a({stack:"none"}):"none"===s&&"below-title"===r&&a({stack:"desktop"}),f||(c&&void 0===u&&"left"===p&&"right"===r&&a({overallBlockLeftMargin:c}),h&&a({description:v}),(b||y||g||m||d)&&ue("btn",{label:"ctaBorderWidth",value:b},{label:"ctaBorderRadius",value:y},{label:"ctaBorderColor",value:g},{label:"ctaBorderhoverColor",value:m},{label:"ctaBorderStyle",value:d},a,l))},[]),Object(B.useEffect)(()=>{ys()},[C]),Object(B.useEffect)(()=>{he(e)},[i,o,n,C]);const S=Object(B.useMemo)(()=>Om(l,_,T,C),[l,C]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:S}),React.createElement(Jm,{attributes:l}),t&&React.createElement(zm,e),React.createElement(Km,e))}),Qm=e=>{const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"p",value:t.description,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-cta__desc",onChange:e=>a({description:e}),onMerge:l,onSplit:i?function(e,t){a({content:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])}):React.createElement(ge.RichText.Content,{tagName:"p",value:t.description,className:"uagb-cta__desc"})},ey=function(e){let t="";return t+="uagb-cta__block ",t+="uagb-cta__icon-position-"+e.ctaPosition+" ","right"===e.ctaPosition&&(t+="uagb-cta__content-right "),"right"===e.ctaPosition&&"none"!==e.stack&&(t+="uagb-cta__content-stacked-"+e.stack+" "),"below-title"!==e.ctaPosition&&(t+="uagb-cta__button-valign-"+e.buttonAlign+" "),"text"!==e.ctaType&&"button"!==e.ctaType&&(t+="uagb-cta__button-type-none "),[t]},ty=e=>{const{attributes:t,setAttributes:a}=e,l="uagb-cta__block-link uagb-cta__button-link-wrapper uagb-cta-typeof-"+t.ctaType;let i="_self";t.ctaTarget&&(i="_blank");let o="";""!==t.ctaIcon&&(o=React.createElement("span",{className:Be()(`uagb-cta-${t.ctaType}-icon`,"uagb-cta__align-button-"+t.ctaIconPosition)},React.createElement("i",{className:t.ctaIcon})));let n="javascript:void(0)";return"not_set"===a&&(n=t.ctaLink),React.createElement("div",{className:"uagb-cta__link-wrapper uagb-cta__block-link-style"},("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("div",{className:"uagb-cta__button-wrapper"},React.createElement("a",{href:n,className:l,target:i,rel:"noopener noreferrer"},"before"===t.ctaIconPosition&&o,React.createElement("span",{className:"uagb-cta__link-content-inner"},React.createElement("span",null,t.ctaText)),"after"===t.ctaIconPosition&&o)))},ay=e=>{const{attributes:t,setAttributes:a}=e;let l="_self";t.ctaTarget&&(l="_blank");let i="";""!==t.ctaIcon&&(i=React.createElement("span",{className:Be()(`uagb-cta-${t.ctaType}-icon`,"uagb-cta__align-button-"+t.ctaIconPosition,"uagb-cta-with-svg")},kb(t.ctaIcon)));let o="/";return"not_set"===a&&(o=t.ctaLink),React.createElement("div",{className:"uagb-cta__link-wrapper uagb-cta__block-link-style"},("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("div",{className:Be()("uagb-cta__button-wrapper",t.inheritFromTheme&&"button"===t.ctaType?"wp-block-button":null)},React.createElement("a",{href:o,className:Be()("uagb-cta__button-link-wrapper",t.inheritFromTheme?null:"uagb-cta__block-link",t.inheritFromTheme?null:"uagb-cta-typeof-"+t.ctaType,t.inheritFromTheme&&"button"===t.ctaType?"wp-block-button__link":null),target:l,rel:"noopener noreferrer"},"before"===t.ctaIconPosition&&i,React.createElement("span",{className:"uagb-cta__link-content-inner"},React.createElement("span",null,t.ctaText)),"after"===t.ctaIconPosition&&i)))},ly={showIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},showSecondIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-second-show-icon"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-bg-type"}},ctaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-bg-hover-type"}},secondCtaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"second-btn-bg-type"}},secondCtaBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"second-btn-bg-type"}},inheritFromTheme:{type:"boolean",default:!1},ctaTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Call To Action"},classMigrate:{type:"boolean",default:!1},description:{source:"html",selector:"p",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."},textAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"main-title-align"}},titleColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},descColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},ctaPosition:{type:"string",default:"right",UAGCopyPaste:{styleType:"btn-position"}},titleTag:{type:"string",default:"h3"},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},descFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},titleSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},titleSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},titleSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-type"}},descSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-margin"}},descSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},descSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},descSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-bottom-margin-unit-type"}},block_id:{type:"string",default:"not_set"},buttonAlign:{type:"string",default:"middle",UAGCopyPaste:{styleType:"btn-align"}},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},ctaType:{type:"string",default:"button"},ctaText:{type:"html",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"},default:14},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",UAGCopyPaste:{styleType:"btn-font-family"},default:"Default"},ctaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",UAGCopyPaste:{styleType:"btn-font-style"},default:"normal"},ctaTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},contentWidth:{type:"number",default:70,UAGCopyPaste:{styleType:"desc-width"}},contentWidthTablet:{type:"number",UAGCopyPaste:{styleType:"desc-width"}},contentWidthMobile:{type:"number",UAGCopyPaste:{styleType:"desc-width"}},contentWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"desc-width-type"}},ctaBtnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBtnVertPadding:{type:"number",UAGCopyPaste:{styleType:"btn-vertical-padding"},default:""},ctaBtnHrPadding:{type:"number",UAGCopyPaste:{styleType:"btn-horizontal-padding"},default:""},stack:{type:"string",default:"tablet"},ctaLeftSpace:{type:"number",default:0,UAGCopyPaste:{styleType:"btn-right-margin"}},ctaTopPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},ctaBottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},ctaLeftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},ctaRightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},ctaLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},ctaRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},ctaTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},ctaBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},ctaLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},ctaRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},ctaTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},ctaBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},ctaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobileCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},ctaPaddingLink:{type:"boolean",default:!1},enabledSecondCtaButton:{type:"boolean",default:!1},secondCtaLabel:{type:"html",default:"Click Here"},secondCtaLink:{type:"string",default:"#"},secondCtaTarget:{type:"boolean",default:!1},secondCtaLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},secondCtaFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},secondCtaFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},secondCtaFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"btn-font-style"}},secondCtaFontTransform:{type:"string",UAGCopyPaste:{styleType:"btn-font-transform"}},secondCtaFontDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-font-decoration"}},secondCtaTopPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},secondCtaRightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},secondCtaBottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},secondCtaLeftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},secondCtaTopMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},secondCtaRightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},secondCtaBottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},secondCtaLeftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},secondCtaTopTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},secondCtaRightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},secondCtaBottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},secondCtaLeftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},secondCtaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},secondCtaMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},secondCtaTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},secondCtaPaddingLink:{type:"boolean",default:!1},secondCtaBorderWidth:{type:"number",default:""},secondCtaBorderRadius:{type:"number",default:""},secondCtaBorderStyle:{type:"string",default:"none"},secondCtaBorderColor:{type:"string",default:""},secondCtaBorderHColor:{type:"string",default:""},secondCtaColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},secondCtaBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-bg-color"}},secondCtaHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},secondCtaHoverBackground:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-h-background"}},secondCtaFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-size"},default:14},secondCtaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},secondCtaFontSizeMobile:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-mobile"}},secondCtaFontSizeTablet:{type:"number",default:"",UAGCopyPaste:{styleType:"btn-size-tablet"}},secondCtaIcon:{type:"string",default:""},secondCtaIconPosition:{type:"string",default:"after"},secondCtaIconSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"btn-icon-space"}},secondCtaIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},secondCtaIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},isPreview:{type:"boolean",default:!1},stackBtn:{type:"string",default:"none"},gapBtn:{type:"number",default:15},gapBtnTablet:{type:"number"},gapBtnMobile:{type:"number"},textAlignTablet:{type:"string",default:"center"},textAlignMobile:{type:"string",default:"center"},overallBlockTopPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},overallBlockRightPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},overallBlockBottomPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},overallBlockLeftPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},overallBlockTopMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},overallBlockRightMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},overallBlockBottomMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},overallBlockLeftMobilePadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},overallBlockTopTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},overallBlockRightTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},overallBlockBottomTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},overallBlockLeftTabletPadding:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},overallBlockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},overallBlockMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},overallBlockTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},overallBlockPaddingLink:{type:"boolean",default:!1},overallBlockTopMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin"}},overallBlockRightMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin"}},overallBlockBottomMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin"}},overallBlockLeftMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin"}},overallBlockTopMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},overallBlockRightMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},overallBlockBottomMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},overallBlockLeftMobileMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},overallBlockTopTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},overallBlockRightTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},overallBlockBottomTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},overallBlockLeftTabletMargin:{type:"number",UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},overallBlockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit"}},overallBlockMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-mobile"}},overallBlockTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-tablet"}},overallBlockMarginLink:{type:"boolean",default:!1},buttonRightSpace:{type:"number",default:10,UAGCopyPaste:{styleType:"main-button-bottom-margin"}},buttonRightSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"main-button-bottom-margin-tablet"}},buttonRightSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"main-button-bottom-margin-mobile"}},buttonRightSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-button-unit-type"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},...ce("btn"),...ce("secondCta"),titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},ctaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},secondCtaLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"secondCta-letter-spacing"}},secondCtaLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"secondCta-letter-spacing-tablet"}},secondCtaLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"secondCta-letter-spacing-mobile"}},secondCtaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"secondCta-letter-spacing-type"}}},iy=e=>{const{attributes:t,setAttributes:a}=e;let l="_self";const i="noopener noreferrer";t.ctaTarget&&(l="_blank");let o="";t.showIcon&&""!==t.ctaIcon&&(o="not_set"!==a?Ce(t.ctaIcon,a):Ce(t.ctaIcon));let n="/",r=e=>{e.preventDefault()};return"not_set"===a&&(n=t.ctaLink,r=!1),"not_set"!==a?React.createElement(React.Fragment,null,("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("a",{href:n,className:Be()("uagb-cta__button-link-wrapper","button"===t.ctaType?"wp-block-button__link":""),target:l,rel:i,onClick:r},"before"===t.ctaIconPosition&&o,React.createElement(ge.RichText,{value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>{a({ctaText:e})},allowedFormats:[]}),"after"===t.ctaIconPosition&&o)):React.createElement(React.Fragment,null,("button"===t.ctaType||"text"===t.ctaType)&&React.createElement("a",{href:n,className:Be()("uagb-cta__button-link-wrapper","button"===t.ctaType?"wp-block-button__link":""),target:l,rel:i,onClick:r},"before"===t.ctaIconPosition&&o,React.createElement(ge.RichText.Content,{value:t.ctaText.replace(/<(?!br\s*V?)[^>]+>/g,"")}),"after"===t.ctaIconPosition&&o))};const oy=ce("btn"),ny=ce("secondCta");var ry=[{attributes:ly,save(e){const{ctaPosition:t,block_id:a,ctaType:l,ctaLink:i,ctaTarget:o,className:n,ctaTitle:r,description:s}=e.attributes,c=React.createElement(ty,{attributes:e.attributes,setAttributes:"not_set"}),u=React.createElement(React.Fragment,null,""!==s&&React.createElement("div",{className:"uagb-cta-text-wrap"},React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"}))),p=React.createElement(React.Fragment,null,""!==r&&React.createElement("div",{className:"uagb-cta__title-wrap"},React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-cta__content-wrap",...ey(e.attributes))},React.createElement("div",{className:"uagb-cta__left-right-wrap"},"left"==t&&c,React.createElement("div",{className:"uagb-cta__content"},"above-title"==t&&React.createElement(React.Fragment,null,c,p,u),"below-title"==t&&React.createElement(React.Fragment,null,p,u,c),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,p,u)),"right"==t&&c)));let b="";return o&&(b="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(n,"uagb-cta__outer-wrap"),id:"uagb-cta-block-"+a},"all"==l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__block-link-wrap uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==l&&d))}},{attributes:ly,save(e){const{ctaPosition:t,block_id:a,ctaType:l,ctaLink:i,ctaTarget:o,className:n,ctaTitle:r,description:s}=e.attributes,c=React.createElement(ay,{attributes:e.attributes,setAttributes:"not_set"}),u=React.createElement(React.Fragment,null,""!==s&&React.createElement("div",{className:"uagb-cta-text-wrap"},React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"}))),p=React.createElement(React.Fragment,null,""!==r&&React.createElement("div",{className:"uagb-cta__title-wrap"},React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-cta__content-wrap",...ey(e.attributes))},React.createElement("div",{className:"uagb-cta__left-right-wrap"},"left"==t&&c,React.createElement("div",{className:"uagb-cta__content"},"above-title"==t&&React.createElement(React.Fragment,null,c,p,u),"below-title"==t&&React.createElement(React.Fragment,null,p,u,c),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,p,u)),"right"==t&&c)));let b="";return o&&(b="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(n,"uagb-cta__outer-wrap"),id:"uagb-cta-block-"+a},"all"==l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__block-link-wrap uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==l&&d))}},{attributes:ly,save(e){const{ctaPosition:t,block_id:a,ctaType:l,ctaLink:i,ctaTarget:o,className:n,ctaTitle:r,description:s}=e.attributes,c=React.createElement(ay,{attributes:e.attributes,setAttributes:"not_set"}),u=React.createElement(React.Fragment,null,""!==s&&React.createElement("div",{className:"uagb-cta-text-wrap"},React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"}))),p=React.createElement(React.Fragment,null,""!==r&&React.createElement("div",{className:"uagb-cta__title-wrap"},React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"}))),d=React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-cta__content-wrap",...ey(e.attributes))},React.createElement("div",{className:"uagb-cta__left-right-wrap"},"left"==t&&c,React.createElement("div",{className:"uagb-cta__content"},"above-title"==t&&React.createElement(React.Fragment,null,c,p,u),"below-title"==t&&React.createElement(React.Fragment,null,p,u,c),("left"==t||"right"==t)&&React.createElement(React.Fragment,null,p,u)),"right"==t&&c)));let b="";return o&&(b="_blank"),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(n,"uagb-cta__outer-wrap","uagb-block-"+a)},"all"==l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__block-link-wrap uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==l&&d))}},{attributes:ly,save(e){const{block_id:t,ctaType:a,ctaLink:l,ctaTarget:i,ctaTitle:o,description:n,enabledSecondCtaButton:r}=e.attributes,s=React.createElement(Im,{attributes:e.attributes,setAttributes:"not_set"}),c="button"===a&&r?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",u=React.createElement(React.Fragment,null,""!==n&&React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"})),p=React.createElement(React.Fragment,null,""!==o&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),d=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},p,u),React.createElement("div",{className:"uagb-cta__buttons"},s,c));let b="";return i&&(b="_blank"),React.createElement("div",{className:Be()("uagb-block-"+t,"button"===a?"wp-block-button":"")},"all"===a&&React.createElement(React.Fragment,null,React.createElement("a",{href:l,className:"uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==a&&d)}},{attributes:ly,saveV2_7_0:function(e){const{block_id:t,ctaType:a,ctaLink:l,ctaTarget:i,ctaTitle:o,description:n,enabledSecondCtaButton:r}=e.attributes,s=React.createElement(iy,{attributes:e.attributes,setAttributes:"not_set"}),c="button"===a&&r?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",u=React.createElement(React.Fragment,null,""!==n&&React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"})),p=React.createElement(React.Fragment,null,""!==o&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),d=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},p,u),React.createElement("div",{className:"uagb-cta__buttons"},s,c));let b="";return i&&(b="_blank"),React.createElement("div",{className:Be()("uagb-block-"+t,"button"===a?"wp-block-button":"")},"all"===a&&React.createElement(React.Fragment,null,React.createElement("a",{href:l,className:"uagb-cta__link-to-all",target:b,rel:"noopener noreferrer"}),d),"all"!==a&&d)}},{attributes:{inheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},ctaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"cta-btn-type"}},secCtaButtonType:{type:"string",default:"primary",UAGCopyPaste:{styleType:"sec-cta-btn-type"}},secInheritFromTheme:{type:"boolean",default:"enabled"===uagb_blocks_info.btn_inherit_from_theme},ctaTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg")},classMigrate:{type:"boolean",default:!1},description:{source:"html",selector:"p",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")},textAlign:{type:"string",default:"left",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-align"}},titleColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-color"}},descColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-color"}},ctaPosition:{type:"string",default:"right",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-position"}},titleTag:{type:"string",default:"h3"},titleFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-tablet"}},titleFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type-mobile"}},titleFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontFamily:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-font-style"}},titleTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-decoration"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},descFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-tablet"}},descFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type-mobile"}},descFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-decoration"}},descLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-line-height-mobile"}},descLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin"}},titleSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},titleSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},titleSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-type"}},descSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin"}},descSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},descSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},descSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-bottom-margin-unit-type"}},block_id:{type:"string",default:"not_set"},buttonAlign:{type:"string",default:"middle",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-align"}},ctaTarget:{type:"boolean",default:!1},showIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-show-icon"}},showSecondIcon:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"btn-second-show-icon"}},ctaIcon:{type:"string",default:"right-long"},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},ctaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},htmlTag:{type:"string",default:"div"},ctaType:{type:"string",default:"button"},ctaText:{type:"html",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},ctaLink:{type:"string",default:"#"},ctaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size"}},ctaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},ctaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-tablet"}},ctaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type-mobile"}},ctaFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-mobile"}},ctaFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-size-tablet"}},ctaFontFamily:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"},default:"Default"},ctaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},ctaFontStyle:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"},default:"normal"},ctaTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-transform"}},ctaDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-decoration"}},ctaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},contentWidth:{type:"number",default:70,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},contentWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},contentWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},contentWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"desc-width-type"}},ctaBtnLinkColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},ctaLinkHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},ctaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-bg-type"}},ctaBgHoverType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-type"}},secondCtaBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"second-btn-bg-type"}},secondCtaBgHoverType:{type:"string",default:"color",isGBSStyle:!0,UAGCopyPaste:{styleType:"second-btn-bg-type"}},ctaBgColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},ctaBgHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-hover-color"}},ctaBtnVertPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-vertical-padding"},default:""},ctaBtnHrPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-horizontal-padding"},default:""},stack:{type:"string",default:"tablet"},ctaLeftSpace:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},ctaTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},ctaBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},ctaLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},ctaRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},ctaLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},ctaRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},ctaTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},ctaBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},ctaLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},ctaRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},ctaTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},ctaBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},ctaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},mobileCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},tabletCTAPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},ctaPaddingLink:{type:"boolean",default:!1},enabledSecondCtaButton:{type:"boolean",default:!1},secondCtaLabel:{type:"html",default:Object(r.__)("Click Here","ultimate-addons-for-gutenberg")},secondCtaLink:{type:"string",default:"#"},secondCtaTarget:{type:"boolean",default:!1},secondCtaLoadGoogleFonts:{type:"boolean",default:!1,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},secondCtaFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-family"}},secondCtaFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-weight"}},secondCtaFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-style"}},secondCtaFontTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-transform"}},secondCtaFontDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-font-decoration"}},secondCtaTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},secondCtaRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},secondCtaBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},secondCtaLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},secondCtaTopMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},secondCtaRightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},secondCtaBottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},secondCtaLeftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},secondCtaTopTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},secondCtaRightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},secondCtaBottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},secondCtaLeftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},secondCtaPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},secondCtaMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},secondCtaTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},secondCtaPaddingLink:{type:"boolean",default:!1},secondCtaBorderWidth:{type:"number",default:""},secondCtaBorderRadius:{type:"number",default:""},secondCtaBorderStyle:{type:"string",default:"none"},secondCtaBorderColor:{type:"string",default:""},secondCtaBorderHColor:{type:"string",default:""},secondCtaColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-color"}},secondCtaBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bg-color"}},secondCtaHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-hover-color"}},secondCtaHoverBackground:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-h-background"}},secondCtaFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size"},default:14},secondCtaFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},secondCtaFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-tablet"}},secondCtaFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit-mobile"}},secondCtaFontSizeMobile:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-mobile"}},secondCtaFontSizeTablet:{type:"number",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-size-tablet"}},secondCtaIcon:{type:"string",default:"right-long"},secondCtaIconPosition:{type:"string",default:"after"},secondCtaIconSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space"}},secondCtaIconSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-tablet"}},secondCtaIconSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-icon-space-mobile"}},isPreview:{type:"boolean",default:!1},stackBtn:{type:"string",default:"none"},gapBtn:{type:"number",default:15},gapBtnTablet:{type:"number"},gapBtnMobile:{type:"number"},textAlignTablet:{type:"string",default:"center"},textAlignMobile:{type:"string",default:"center"},overallBlockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding"}},overallBlockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding"}},overallBlockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding"}},overallBlockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding"}},overallBlockTopMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},overallBlockRightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},overallBlockBottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},overallBlockLeftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},overallBlockTopTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},overallBlockRightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},overallBlockBottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},overallBlockLeftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},overallBlockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit"}},overallBlockMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"}},overallBlockTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},overallBlockPaddingLink:{type:"boolean",default:!1},overallBlockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin"}},overallBlockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin"}},overallBlockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin"}},overallBlockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin"}},overallBlockTopMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-mobile"}},overallBlockRightMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-mobile"}},overallBlockBottomMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-mobile"}},overallBlockLeftMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-mobile"}},overallBlockTopTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-top-margin-tablet"}},overallBlockRightTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-right-margin-tablet"}},overallBlockBottomTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-bottom-margin-tablet"}},overallBlockLeftTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"btn-left-margin-tablet"}},overallBlockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit"}},overallBlockMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-mobile"}},overallBlockTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-margin-unit-tablet"}},overallBlockMarginLink:{type:"boolean",default:!1},buttonRightSpace:{type:"number",default:10,isGBSStyle:!0,UAGCopyPaste:{styleType:"main-button-bottom-margin"}},buttonRightSpaceTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-button-bottom-margin-tablet"}},buttonRightSpaceMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-button-bottom-margin-mobile"}},buttonRightSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-button-unit-type"}},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},...oy,...ny,titleLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},ctaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing"}},ctaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-tablet"}},ctaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"cta-letter-spacing-mobile"}},ctaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"cta-letter-spacing-type"}},secondCtaLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"secondCta-letter-spacing"}},secondCtaLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"secondCta-letter-spacing-tablet"}},secondCtaLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"secondCta-letter-spacing-mobile"}},secondCtaLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"secondCta-letter-spacing-type"}},btncontentWidth:{type:"number",default:30,isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},btncontentWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},btncontentWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"desc-width"}},btncontentWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"desc-width-type"}}},save:function(e){const{block_id:t,htmlTag:a,ctaType:l,ctaLink:i,ctaTarget:o,ctaTitle:n,description:r,enabledSecondCtaButton:s}=e.attributes,c=React.createElement(Im,{attributes:e.attributes,setAttributes:"not_set"}),u="button"===l&&s?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",p=React.createElement(React.Fragment,null,""!==r&&React.createElement(Qm,{attributes:e.attributes,setAttributes:"not_set"})),d=React.createElement(React.Fragment,null,""!==n&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),b=a||"div",g=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},d,p),React.createElement("div",{className:"uagb-cta__buttons"},c,u));let m="";return o&&(m="_blank"),React.createElement(b,{className:Be()("uagb-block-"+t,"button"===l?"wp-block-button":"")},"all"===l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__link-to-all",target:m,rel:"noopener noreferrer"}),g),"all"!==l&&g)}}];a(222);let sy={};sy=Object(F.applyFilters)("uagb/call-to-action",ss(sy)),Object(de.registerBlockType)("uagb/call-to-action",{...sy,title:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a button along with heading and description.","ultimate-addons-for-gutenberg"),icon:se.call_to_action,keywords:[Object(r.__)("cta","ultimate-addons-for-gutenberg"),Object(r.__)("call to action","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Ot,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"call-to-action"}):React.createElement(Xm,e),save:function(e){const{block_id:t,htmlTag:a,ctaType:l,ctaLink:i,ctaTarget:o,ctaTitle:n,description:r,enabledSecondCtaButton:s,enableMultilineParagraph:c}=e.attributes,u=React.createElement(Im,{attributes:e.attributes,setAttributes:"not_set"}),p="button"===l&&s?React.createElement(Vm,{attributes:e.attributes,setAttributes:"not_set"}):"",d=c?React.createElement("div",{className:"uagb-cta__desc"}," ",React.createElement(ge.InnerBlocks.Content,null)," "):""!==r&&React.createElement(Nm,{attributes:e.attributes,setAttributes:"not_set"}),b=React.createElement(React.Fragment,null,""!==n&&React.createElement(Dm,{attributes:e.attributes,setAttributes:"not_set"})),g=a||"div",m=React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-cta__wrap"},b,d),React.createElement("div",{className:"uagb-cta__buttons"},u,p));let y="";return o&&(y="_blank"),React.createElement(g,{className:Be()("uagb-block-"+t,"button"===l?"wp-block-button":"")},"all"===l&&React.createElement(React.Fragment,null,React.createElement("a",{href:i,className:"uagb-cta__link-to-all",target:y,rel:"noopener noreferrer"}),m),"all"!==l&&m)},deprecated:ry});var cy=function(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=a.replace("uagb/",""),n=l.toLowerCase(),{block_id:r,iconSize:s,iconSizeTablet:c,iconSizeMobile:u,iconSizeUnit:p,align:d,alignTablet:b,alignMobile:g,rotation:m,rotationUnit:y,iconColor:f,iconBackgroundColorType:h,iconBackgroundColor:v,iconBackgroundGradientColor:_,iconHoverColor:T,iconHoverBackgroundColorType:C,iconHoverBackgroundColor:S,iconHoverBackgroundGradientColor:k,iconTopPadding:w,iconRightPadding:P,iconBottomPadding:x,iconLeftPadding:A,iconTopTabletPadding:G,iconRightTabletPadding:M,iconBottomTabletPadding:R,iconLeftTabletPadding:B,iconTopMobilePadding:U,iconRightMobilePadding:E,iconBottomMobilePadding:O,iconLeftMobilePadding:L,iconPaddingUnit:H,iconMobilePaddingUnit:F,iconTabletPaddingUnit:j,iconTopMargin:z,iconRightMargin:D,iconBottomMargin:N,iconLeftMargin:I,iconTopTabletMargin:V,iconRightTabletMargin:W,iconBottomTabletMargin:q,iconLeftTabletMargin:Z,iconTopMobileMargin:$,iconRightMobileMargin:Y,iconBottomMobileMargin:K,iconLeftMobileMargin:J,iconMarginUnit:X,iconMobileMarginUnit:Q,iconTabletMarginUnit:ee,iconBorderStyle:te,iconBorderColor:le,iconBorderHColor:ie,iconShadowColor:oe,iconShadowHOffset:ne,iconShadowVOffset:re,iconShadowBlur:se,useSeparateBoxShadows:ce,iconBoxShadowColor:ue,iconBoxShadowHOffset:pe,iconBoxShadowVOffset:de,iconBoxShadowBlur:be,iconBoxShadowSpread:ge,iconBoxShadowPosition:me,iconBoxShadowColorHover:ye,iconBoxShadowHOffsetHover:fe,iconBoxShadowVOffsetHover:he,iconBoxShadowBlurHover:ve,iconBoxShadowSpreadHover:_e,iconBoxShadowPositionHover:Te}=e,Ce=us(s,"iconSize",o),Se=Vr(us(m,"rotation",o),y),ke="classic"===h?v:_,we="classic"===C?S:k,Pe=Zr({horizontal:ne,vertical:re,blur:se,color:oe}),xe=Zr({horizontal:pe,vertical:de,blur:be,spread:ge,color:ue,position:me}),Ae=Zr({horizontal:fe,vertical:he,blur:ve,spread:_e,color:ye,position:Te,altColor:ue}),Ge={".uagb-icon-wrapper":{"text-align":d},".uagb-icon-wrapper svg":{width:Vr(Ce,p),height:Vr(Ce,p),"box-sizing":"content-box",transform:`rotate(${Se})`,fill:f,filter:Pe?`drop-shadow( ${Pe} )`:""},".uagb-icon-wrapper .uagb-svg-wrapper":{display:"inline-flex",background:ke,"padding-top":Vr(w,H),"padding-right":Vr(P,H),"padding-bottom":Vr(x,H),"padding-left":Vr(A,H),"border-style":te,"border-color":le,...Wr(e,"icon"),"box-shadow":xe},".uagb-icon-wrapper.wp-block-uagb-icon--has-margin .uagb-icon-margin-wrapper":{"margin-top":Vr(z,X),"margin-right":Vr(D,X),"margin-bottom":Vr(N,X),"margin-left":Vr(I,X)},".uagb-icon-wrapper .uagb-svg-wrapper:hover":{"border-color":ie,background:we},".uagb-icon-wrapper .uagb-svg-wrapper:hover svg":{fill:T}};ce&&(Ge[".uagb-icon-wrapper .uagb-svg-wrapper:hover"]={"box-shadow":Ae,background:we,"border-color":ie});const Me={".uagb-icon-wrapper":{"text-align":b},".uagb-icon-wrapper .uagb-svg-wrapper":{"padding-top":Vr(G,j),"padding-right":Vr(M,j),"padding-bottom":Vr(R,j),"padding-left":Vr(B,j),...Wr(e,"icon","tablet")},".uagb-icon-wrapper.wp-block-uagb-icon--has-margin .uagb-icon-margin-wrapper":{"margin-top":Vr(V,ee),"margin-right":Vr(W,ee),"margin-bottom":Vr(q,ee),"margin-left":Vr(Z,ee)},".uagb-icon-wrapper .uagb-svg-wrapper svg":{width:Vr(c,p),height:Vr(c,p)}},Re={".uagb-icon-wrapper":{"text-align":g},".uagb-icon-wrapper .uagb-svg-wrapper":{"padding-top":Vr(U,F),"padding-right":Vr(E,F),"padding-bottom":Vr(O,F),"padding-left":Vr(L,F),...Wr(e,"icon","mobile")},".uagb-icon-wrapper.wp-block-uagb-icon--has-margin .uagb-icon-margin-wrapper":{"margin-top":Vr($,Q),"margin-right":Vr(Y,Q),"margin-bottom":Vr(K,Q),"margin-left":Vr(J,Q)},".uagb-icon-wrapper .uagb-svg-wrapper svg":{width:Vr(u,p),height:Vr(u,p)}};let Be="";const Ue=i||".uagb-block-"+r;return Be=ae(Ge,Ue),("tablet"===n||"mobile"===n||i)&&(Be+=ae(Me,""+Ue,!0,"tablet"),("mobile"===n||i)&&(Be+=ae(Re,""+Ue,!0,"mobile"))),Be};const uy=[{defaultAttributes:Tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:2},{label:"iconShadowVOffset",value:4},{label:"iconShadowBlur",value:3}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:5},{label:"iconShadowBlur",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:2},{label:"iconShadowBlur",value:3}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:1},{label:"iconShadowBlur",value:3}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:5},{label:"iconShadowBlur",value:5}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"iconShadowHOffset",value:0},{label:"iconShadowVOffset",value:5},{label:"iconShadowBlur",value:8}],icon:' '}],py=[{defaultAttributes:Tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:3},{label:"iconBoxShadowVOffset",value:8},{label:"iconBoxShadowBlur",value:12},{label:"iconBoxShadowSpread",value:0},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:18},{label:"iconBoxShadowBlur",value:40},{label:"iconBoxShadowSpread",value:-10},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:4},{label:"iconBoxShadowBlur",value:12},{label:"iconBoxShadowSpread",value:0},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:2},{label:"iconBoxShadowBlur",value:5},{label:"iconBoxShadowSpread",value:-1},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:50},{label:"iconBoxShadowBlur",value:50},{label:"iconBoxShadowSpread",value:-30},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffset",value:0},{label:"iconBoxShadowVOffset",value:20},{label:"iconBoxShadowBlur",value:30},{label:"iconBoxShadowSpread",value:0},{label:"iconBoxShadowPosition",value:"outset"}],icon:' '}],dy=[{defaultAttributes:Tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:3},{label:"iconBoxShadowVOffsetHover",value:8},{label:"iconBoxShadowBlurHover",value:12},{label:"iconBoxShadowSpreadHover",value:0},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:18},{label:"iconBoxShadowBlurHover",value:40},{label:"iconBoxShadowSpreadHover",value:-10},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:4},{label:"iconBoxShadowBlurHover",value:12},{label:"iconBoxShadowSpreadHover",value:0},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:2},{label:"iconBoxShadowBlurHover",value:5},{label:"iconBoxShadowSpreadHover",value:-1},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:50},{label:"iconBoxShadowBlurHover",value:50},{label:"iconBoxShadowSpreadHover",value:-30},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBoxShadowHOffsetHover",value:0},{label:"iconBoxShadowVOffsetHover",value:20},{label:"iconBoxShadowBlurHover",value:30},{label:"iconBoxShadowSpreadHover",value:0},{label:"iconBoxShadowPositionHover",value:"outset"}],icon:' '}],by=[{defaultAttributes:Tt},{defaultPresetAttributes:[{label:"iconBackgroundColor"},{label:"iconBorderTopLeftRadius"},{label:"iconBorderTopRightRadius"},{label:"iconBorderBottomRightRadius"},{label:"iconBorderBottomLeftRadius"},{label:"iconBorderTopWidth"},{label:"iconBorderRightWidth"},{label:"iconBorderBottomWidth"},{label:"iconBorderLeftWidth"},{label:"iconBorderStyle"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:"#DCF1FF"},{label:"iconBorderStyle",value:""},{label:"iconBorderTopLeftRadius",value:50},{label:"iconBorderTopRightRadius",value:50},{label:"iconBorderBottomRightRadius",value:50},{label:"iconBorderBottomLeftRadius",value:50},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:""},{label:"iconBorderStyle",value:"solid"},{label:"iconBorderTopLeftRadius",value:50},{label:"iconBorderTopRightRadius",value:50},{label:"iconBorderBottomRightRadius",value:50},{label:"iconBorderBottomLeftRadius",value:50},{label:"iconBorderTopWidth",value:2},{label:"iconBorderRightWidth",value:2},{label:"iconBorderBottomWidth",value:2},{label:"iconBorderLeftWidth",value:2},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:"#DCF1FF"},{label:"iconBorderStyle",value:""},{label:"iconBorderTopLeftRadius",value:6},{label:"iconBorderTopRightRadius",value:6},{label:"iconBorderBottomRightRadius",value:6},{label:"iconBorderBottomLeftRadius",value:6},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconBackgroundColor",value:""},{label:"iconBorderStyle",value:"solid"},{label:"iconBorderTopWidth",value:2},{label:"iconBorderRightWidth",value:2},{label:"iconBorderBottomWidth",value:2},{label:"iconBorderLeftWidth",value:2},{label:"iconTopPadding",value:12},{label:"iconRightPadding",value:12},{label:"iconBottomPadding",value:12},{label:"iconLeftPadding",value:12}],icon:''}];var gy=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{icon:l,iconSize:i,iconSizeTablet:o,iconSizeMobile:n,iconSizeUnit:s,align:c,alignTablet:u,alignMobile:p,rotation:d,rotationUnit:b,link:g,target:m,disableLink:y,iconAccessabilityMode:f,iconAccessabilityDesc:h}=t;return React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:l,onChange:e=>a({icon:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Accessibility Mode","ultimate-addons-for-gutenberg"),data:{value:f,label:"iconAccessabilityMode"},options:[{value:"svg",label:Object(r.__)("SVG","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")},{value:"presentation",label:Object(r.__)("Decorative","ultimate-addons-for-gutenberg")}]}),"presentation"!==f&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Accessibility Label","ultimate-addons-for-gutenberg"),data:{value:h,label:"iconAccessabilityDesc"},value:h,setAttributes:a,onChange:e=>a({iconAccessabilityDesc:e})})),React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"iconSize"},tablet:{value:o,label:"iconSizeTablet"},mobile:{value:n,label:"iconSizeMobile"}},min:0,max:200,unit:{value:s,label:"iconSizeUnit"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"align"},tablet:{value:u,label:"alignTablet"},mobile:{value:p,label:"alignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Qa,{label:Object(r.__)("Rotation","ultimate-addons-for-gutenberg"),setAttributes:a,value:d,data:{value:d,label:"rotation"},min:-180,max:180,unit:{value:b,label:"rotationUnit"},units:[{name:Object(r.__)("Degree","ultimate-addons-for-gutenberg"),unitValue:"deg"}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),checked:y,onChange:()=>a({disableLink:!y})}),y&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:g,data:{value:g,label:"link"},setAttributes:a,onChange:e=>a({link:e}),placeholder:Object(r.__)("Enter URL","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Tab","ultimate-addons-for-gutenberg"),checked:m,onChange:()=>a({target:!m})}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:by,presetInputType:"radioImage"})))});function my(){return(my=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{block_id:i,iconColor:o,iconBackgroundColorType:n,iconBackgroundColor:s,iconBackgroundGradientColor:c,iconHoverColor:u,iconHoverBackgroundColorType:p,iconHoverBackgroundColor:d,iconHoverBackgroundGradientColor:b,iconTopPadding:g,iconRightPadding:m,iconBottomPadding:y,iconLeftPadding:f,iconTopTabletPadding:h,iconRightTabletPadding:v,iconBottomTabletPadding:_,iconLeftTabletPadding:T,iconTopMobilePadding:C,iconRightMobilePadding:S,iconBottomMobilePadding:k,iconLeftMobilePadding:w,iconPaddingUnit:P,iconMobilePaddingUnit:x,iconTabletPaddingUnit:A,iconPaddingLink:G,iconTopMargin:M,iconRightMargin:R,iconBottomMargin:B,iconLeftMargin:U,iconTopTabletMargin:E,iconRightTabletMargin:O,iconBottomTabletMargin:L,iconLeftTabletMargin:H,iconTopMobileMargin:F,iconRightMobileMargin:j,iconBottomMobileMargin:z,iconLeftMobileMargin:D,iconMarginUnit:N,iconMobileMarginUnit:I,iconTabletMarginUnit:V,iconMarginLink:W,iconShadowColor:q,iconShadowHOffset:Z,iconShadowVOffset:$,iconShadowBlur:Y,useSeparateBoxShadows:K,iconBoxShadowColor:J,iconBoxShadowHOffset:X,iconBoxShadowVOffset:Q,iconBoxShadowBlur:ee,iconBoxShadowSpread:te,iconBoxShadowPosition:ae,iconBoxShadowColorHover:le,iconBoxShadowHOffsetHover:ie,iconBoxShadowVOffsetHover:oe,iconBoxShadowBlurHover:ne,iconBoxShadowSpreadHover:re,iconBoxShadowPositionHover:se}=t;return React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:o||"",data:{value:o,label:"iconColor"},setAttributes:a}),React.createElement(Jp,{label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),type:{value:n,label:"iconBackgroundColorType"},classic:{value:s,label:"iconBackgroundColor"},gradient:{value:c,label:"iconBackgroundGradientColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"iconHoverColor"},setAttributes:a}),React.createElement(Jp,{label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),type:{value:p,label:"iconHoverBackgroundColorType"},classic:{value:d,label:"iconHoverBackgroundColor"},gradient:{value:b,label:"iconHoverBackgroundGradientColor"},setAttributes:a})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:a,prefix:"icon",attributes:t,deviceType:l,disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Drop Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:uy,presetInputType:"radioImage"}),React.createElement(Xp,{blockId:i,setAttributes:a,textShadowColor:{value:q,label:"iconShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},textShadowHOffset:{value:Z,label:"iconShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},textShadowVOffset:{value:$,label:"iconShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},textShadowBlur:{value:Y,label:"iconShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},popup:!1})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:K,onChange:()=>a({useSeparateBoxShadows:!K})}),K?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:py,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,boxShadowColor:{value:J,label:"iconBoxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:X,label:"iconBoxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Q,label:"iconBoxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ee,label:"iconBoxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:te,label:"iconBoxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ae,label:"iconBoxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:dy,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,boxShadowColor:{value:le,label:"iconBoxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ie,label:"iconBoxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:oe,label:"iconBoxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ne,label:"iconBoxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:re,label:"iconBoxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:se,label:"iconBoxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:py,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,boxShadowColor:{value:J,label:"iconBoxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:X,label:"iconBoxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Q,label:"iconBoxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ee,label:"iconBoxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:te,label:"iconBoxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ae,label:"iconBoxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,my({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:g,label:"iconTopPadding"},valueRight:{value:m,label:"iconRightPadding"},valueBottom:{value:y,label:"iconBottomPadding"},valueLeft:{value:f,label:"iconLeftPadding"},valueTopTablet:{value:h,label:"iconTopTabletPadding"},valueRightTablet:{value:v,label:"iconRightTabletPadding"},valueBottomTablet:{value:_,label:"iconBottomTabletPadding"},valueLeftTablet:{value:T,label:"iconLeftTabletPadding"},valueTopMobile:{value:C,label:"iconTopMobilePadding"},valueRightMobile:{value:S,label:"iconRightMobilePadding"},valueBottomMobile:{value:k,label:"iconBottomMobilePadding"},valueLeftMobile:{value:w,label:"iconLeftMobilePadding"},unit:{value:P,label:"iconPaddingUnit"},mUnit:{value:x,label:"iconMobilePaddingUnit"},tUnit:{value:A,label:"iconTabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:G,label:"iconPaddingLink"}})),React.createElement(Pl,my({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:M,label:"iconTopMargin"},valueRight:{value:R,label:"iconRightMargin"},valueBottom:{value:B,label:"iconBottomMargin"},valueLeft:{value:U,label:"iconLeftMargin"},valueTopTablet:{value:E,label:"iconTopTabletMargin"},valueRightTablet:{value:O,label:"iconRightTabletMargin"},valueBottomTablet:{value:L,label:"iconBottomTabletMargin"},valueLeftTablet:{value:H,label:"iconLeftTabletMargin"},valueTopMobile:{value:F,label:"iconTopMobileMargin"},valueRightMobile:{value:j,label:"iconRightMobileMargin"},valueBottomMobile:{value:z,label:"iconBottomMobileMargin"},valueLeftMobile:{value:D,label:"iconLeftMobileMargin"},unit:{value:N,label:"iconMarginUnit"},mUnit:{value:I,label:"iconMobileMarginUnit"},tUnit:{value:V,label:"iconTabletMarginUnit"},attributes:t,setAttributes:a,link:{value:W,label:"iconMarginLink"}}))))});function fy(){return(fy=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,fy({},ol,{parentProps:e}),React.createElement(gy,e)),React.createElement(il,fy({},nl,{parentProps:e}),React.createElement(yy,e)),React.createElement(il,fy({},rl,{parentProps:e}),Ds(cy,a,t))))}),vy=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,deviceType:l}=e,{icon:i,block_id:o,iconAccessabilityMode:n,iconAccessabilityDesc:r,iconBottomMargin:s,iconLeftMargin:c,iconRightMargin:u,iconTopMargin:p,iconTopTabletMargin:d,iconRightTabletMargin:b,iconLeftTabletMargin:g,iconBottomTabletMargin:m,iconTopMobileMargin:y,iconRightMobileMargin:f,iconLeftMobileMargin:h,iconBottomMobileMargin:v}=t,_={..."presentation"!==n&&{role:"svg"===n?"graphics-symbol":"image","aria-label":r},"aria-hidden":"presentation"===n},T=[s,c,u,p,d,b,g,m,y,f,h,v].some(e=>"number"==typeof e),C=Ce(i||"circle-check",a,_),S=T?"wp-block-uagb-icon--has-margin":"",k=Object(ge.useBlockProps)({className:`uagb-block-${o} uagb-icon-wrapper uagb-editor-preview-mode-${l.toLowerCase()} ${S}`}),w=()=>React.createElement("span",{className:"uagb-svg-wrapper"},C);return React.createElement("div",k,T?React.createElement("div",{className:"uagb-icon-margin-wrapper"},w()):w())}),_y=Object(L.compose)(ls,fe,uc)(e=>{const{attributes:t,attributes:{UAGHideDesktop:a,UAGHideTab:l,UAGHideMob:i},isSelected:o,name:n,deviceType:r,clientId:s}=e,c=Object(B.useMemo)(()=>cy(t,s,n,r),[t,r]);return Object(B.useEffect)(()=>{ys()},[r]),Object(B.useEffect)(()=>{he(e)},[a,l,i,r]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),o&&React.createElement(hy,e),React.createElement(vy,e))});a(223);var Ty=[{attributes:{icon:{type:"string",default:"circle-check"},iconSize:{type:"number",default:40,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},alignTablet:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},alignMobile:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},iconColor:{type:"string",default:"#333",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-color"}},iconBorderColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-color"}},iconBackgroundColorType:{type:"string",default:"classic",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-background-color-type"}},iconBackgroundColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-background-color"}},iconBackgroundGradientColor:{type:"string",default:"linear-gradient(90deg, rgb(155, 81, 224) 0%, rgb(6, 147, 227) 100%)",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-background-gradient-color"}},iconHoverColor:{type:"string",default:"",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-color"}},iconHoverBackgroundColorType:{type:"string",default:"classic",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-background-color-type"}},iconHoverBackgroundColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-background-color"}},iconHoverBackgroundGradientColor:{type:"string",default:"linear-gradient(90deg, rgb(155, 81, 224) 0%, rgb(6, 147, 227) 100%)",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-hover-background-gradient-color"}},rotation:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-rotation"}},rotationUnit:{type:"string",default:"deg",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-rotation-type"}},block_id:{type:"string"},link:{type:"string",default:""},target:{type:"boolean",default:!1},disableLink:{type:"boolean",default:!1},iconAccessabilityMode:{type:"string",default:"svg"},iconAccessabilityDesc:{type:"string",default:""},iconTopPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-padding"}},iconRightPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-padding"}},iconLeftPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-padding"}},iconBottomPadding:{type:"number",default:5,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-padding"}},iconTopTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-tablet-padding"}},iconRightTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-tablet-padding"}},iconLeftTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-tablet-padding"}},iconBottomTabletPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-tablet-padding"}},iconTopMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-mobile-padding"}},iconRightMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-mobile-padding"}},iconLeftMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-mobile-padding"}},iconBottomMobilePadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-mobile-padding"}},iconPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-padding-unit"}},iconTabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-tablet-padding-unit"}},iconMobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-mobile-padding-unit"}},iconPaddingLink:{type:"boolean",default:!1},iconTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-margin"}},iconRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-margin"}},iconLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-margin"}},iconBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-margin"}},iconTopTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-tablet-margin"}},iconRightTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-tablet-margin"}},iconLeftTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-tablet-margin"}},iconBottomTabletMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-tablet-margin"}},iconTopMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-top-mobile-margin"}},iconRightMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-right-mobile-margin"}},iconLeftMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-left-mobile-margin"}},iconBottomMobileMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-bottom-mobile-margin"}},iconMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-margin-unit"}},iconTabletMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-tablet-margin-unit"}},iconMobileMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-mobile-margin-unit"}},iconMarginLink:{type:"boolean",default:!1},isPreview:{type:"boolean",default:!1},...ce("icon"),iconBorderStyle:{type:"string",default:"default",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-border-style"}},useSeparateBoxShadows:{type:"boolean",default:!0},iconShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-color"}},iconShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-hoffset"}},iconShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-voffset"}},iconShadowBlur:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-shadow-blur"}},iconBoxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-color"}},iconBoxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-hoffset"}},iconBoxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-voffset"}},iconBoxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-blur"}},iconBoxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-spread"}},iconBoxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"icon-box-shadow-position"}},iconShadowColorHover:{type:"string",default:"#00000070",UAGCopyPaste:{styleType:"icon-shadow-color-hover"}},iconShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-shadow-hoffset-hover"}},iconShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-shadow-voffset-hover"}},iconShadowBlurHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-shadow-blur-hover"}},iconBoxShadowColorHover:{type:"string",UAGCopyPaste:{styleType:"icon-box-shadow-color-hover"}},iconBoxShadowHOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-box-shadow-hoffset-hover"}},iconBoxShadowVOffsetHover:{type:"number",default:0,UAGCopyPaste:{styleType:"icon-box-shadow-voffset-hover"}},iconBoxShadowBlurHover:{type:"number",UAGCopyPaste:{styleType:"icon-box-shadow-blur-hover"}},iconBoxShadowSpreadHover:{type:"number",UAGCopyPaste:{styleType:"icon-box-shadow-spread-hover"}},iconBoxShadowPositionHover:{type:"string",default:"outset",UAGCopyPaste:{styleType:"icon-box-shadow-position-hover"}}},save:function(e){const{attributes:t}=e,{icon:a,block_id:l,link:i,target:o,disableLink:n}=t;let r="";const s=o?"_blank":"_self";let c=n?i:"#";"#"!==c&&(c=Object(Od.getProtocol)(c)?c:Object(Od.prependHTTP)(c)),r=n&&c?React.createElement("a",{rel:"noopener noreferrer",href:c||"#",target:s},Ce(a||"circle-check")):Ce(a||"circle-check");const u=ge.useBlockProps.save({className:`uagb-block-${l} uagb-icon-wrapper`});return React.createElement("div",u,React.createElement("span",{className:"uagb-svg-wrapper"},r))}}];let Cy={};Cy=Object(F.applyFilters)("uagb/icon",ss(Cy)),Object(de.registerBlockType)("uagb/icon",{...Cy,apiVersion:2,title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add stunning customizable icons to your website.","ultimate-addons-for-gutenberg"),icon:se.icon,keywords:[Object(r.__)("icon","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:Tt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"icon"}):React.createElement(_y,e),save:()=>null,deprecated:Ty});const Sy=ce("box"),ky={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},timerType:{type:"string",default:"date"},ariaLiveType:{type:"string",default:"off"},endDateTime:{type:"string",default:"2023-01-01T00:00:00Z"},displayEndDateTime:{type:"string",default:"2023-01-01T00:00:00Z"},endDateTimeCopy:{type:"string"},timeModified:{type:"boolean",default:!1},showDays:{type:"boolean",default:!0},showHours:{type:"boolean",default:!0},showMinutes:{type:"boolean",default:!0},showLabels:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"countdown-show-labels"}},labelDays:{type:"string",default:Object(r.__)("DAYS","ultimate-addons-for-gutenberg")},labelHours:{type:"string",default:Object(r.__)("HOURS","ultimate-addons-for-gutenberg")},labelMinutes:{type:"string",default:Object(r.__)("MINUTES","ultimate-addons-for-gutenberg")},labelSeconds:{type:"string",default:Object(r.__)("SECONDS","ultimate-addons-for-gutenberg")},showSeparator:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"countdown-show-separator"}},separatorType:{type:"string",default:":",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-separator-type"}},timerEndAction:{type:"string",default:"zero"},redirectURL:{type:"object"},digitLoadGoogleFonts:{type:"boolean",default:!1},digitColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-color"}},digitFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-family"}},digitFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-weight"}},digitFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-style"}},digitTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-transform"}},digitDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-decoration"}},digitFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"digit-font-size-type"}},digitFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"digit-font-size-type-tablet"}},digitFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"digit-font-size-type-mobile"}},digitLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"digit-line-height-type"}},digitLetterSpacingType:{type:"string",default:"em",UAGCopyPaste:{styleType:"digit-letter-spacing-type"}},digitFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-size"}},digitFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-tablet"}},digitFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-font-size-mobile"}},digitLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-line-height"}},digitLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-line-height-tablet"}},digitLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-line-height-mobile"}},digitLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-letter-spacing"}},digitLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-letter-spacing-tablet"}},digitLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"digit-letter-spacing-mobile"}},labelLoadGoogleFonts:{type:"boolean",default:!1},labelColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-color"}},labelFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-family"}},labelFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-weight"}},labelFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-style"}},labelTransform:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-transform"}},labelDecoration:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-decoration"}},labelFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-font-size-type"}},labelFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-font-size-type-tablet"}},labelFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-font-size-type-mobile"}},labelLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"label-line-height-type"}},labelLetterSpacingType:{type:"string",default:"em",UAGCopyPaste:{styleType:"label-letter-spacing-type"}},labelFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-size"}},labelFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-tablet"}},labelFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-font-size-mobile"}},labelLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-line-height"}},labelLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-line-height-tablet"}},labelLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-line-height-mobile"}},labelLetterSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-letter-spacing"}},labelLetterSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-letter-spacing-tablet"}},labelLetterSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"label-letter-spacing-mobile"}},separatorLoadGoogleFonts:{type:"boolean",default:!1},separatorColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-color"}},separatorFontFamily:{type:"string",default:"Default",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-family"}},separatorFontWeight:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-weight"}},separatorFontStyle:{type:"string",default:"normal",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-style"}},separatorFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-font-size-type"}},separatorFontSizeTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-font-size-type-tablet"}},separatorFontSizeTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-font-size-type-mobile"}},separatorLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"separator-line-height-type"}},separatorFontSize:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-size"}},separatorFontSizeTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-tablet"}},separatorFontSizeMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-font-size-mobile"}},separatorLineHeight:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-line-height"}},separatorLineHeightTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-line-height-tablet"}},separatorLineHeightMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-line-height-mobile"}},separatorRightSpacing:{type:"number",default:26,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-spacing"}},separatorRightSpacingTablet:{type:"number",default:14,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-spacing-tablet"}},separatorRightSpacingMobile:{type:"number",default:12,isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-right-spacing-mobile"}},separatorTopSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-spacing"}},separatorTopSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-spacing-tablet"}},separatorTopSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"separator-top-spacing-mobile"}},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-desktop"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-desktop"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-desktop"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-desktop"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-desktop"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!1},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-desktop"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-desktop"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-desktop"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-desktop"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!1},boxTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-top-padding-desktop"}},boxRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-right-padding-desktop"}},boxLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-left-padding-desktop"}},boxBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bottom-padding-desktop"}},boxTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-top-padding-tablet"}},boxRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-right-padding-tablet"}},boxLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-left-padding-tablet"}},boxBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bottom-padding-tablet"}},boxTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-top-padding-mobile"}},boxRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-right-padding-mobile"}},boxLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-left-padding-mobile"}},boxBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bottom-padding-mobile"}},boxPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"countdown-box-padding-unit"}},boxPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"countdown-box-padding-unit-tablet"}},boxPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"countdown-box-padding-unit-mobile"}},boxPaddingLink:{type:"boolean",default:!1},align:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment"}},alignTablet:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-tablet"}},alignMobile:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"overall-alignment-mobile"}},boxAlign:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-alignment"}},boxAlignTablet:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-alignment-tablet"}},boxAlignMobile:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-alignment-mobile"}},boxWidth:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-width"}},boxWidthTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-width-tablet"}},boxWidthMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-width-mobile"}},isSquareBox:{type:"boolean",default:!0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-square"}},boxSpacing:{type:"number",default:38,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-gap"}},boxSpacingTablet:{type:"number",default:20,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-gap-tablet"}},boxSpacingMobile:{type:"number",default:18,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-gap-mobile"}},internalBoxSpacing:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-internal-box-gap"}},internalBoxSpacingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-internal-box-gap-tablet"}},internalBoxSpacingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-internal-box-gap-mobile"}},boxFlex:{type:"string",default:"column",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-flex-direction"}},boxFlexTablet:{type:"string",default:"column",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-flex-direction-tablet"}},boxFlexMobile:{type:"string",default:"column",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-flex-direction-mobile"}},labelVerticalAlignment:{type:"string",default:"center",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-label-vertical-alignment"}},labelVerticalAlignmentTablet:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-label-vertical-alignment-tablet"}},labelVerticalAlignmentMobile:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-label-vertical-alignment-mobile"}},boxBgType:{type:"string",default:"transparent",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bg-type"}},boxBgColor:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-bg-color"}},useSeparateBoxShadows:{type:"boolean",default:!0},boxShadowColor:{type:"string",default:"#00000070",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-color"}},boxShadowHOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-hoffset"}},boxShadowVOffset:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-voffset"}},boxShadowBlur:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-blur"}},boxShadowSpread:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-spread"}},boxShadowPosition:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-position"}},boxShadowColorHover:{type:"string",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-color-hover"}},boxShadowHOffsetHover:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-hoffset-hover"}},boxShadowVOffsetHover:{type:"number",default:0,isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-voffset-hover"}},boxShadowBlurHover:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-blur-hover"}},boxShadowSpreadHover:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-spread-hover"}},boxShadowPositionHover:{type:"string",default:"outset",isGBSStyle:!0,UAGCopyPaste:{styleType:"countdown-box-shadow-position-hover"}},...Sy,boxBorderStyle:{type:"string",default:"default",isGBSStyle:!0,UAGCopyPaste:{styleType:"box-border-style"}}};var wy=e=>React.createElement("div",{className:Z(["wp-block-uagb-countdown__box","wp-block-uagb-countdown__box-"+e.unitType])},React.createElement("div",{role:e.role,"aria-live":e.ariaLiveType,className:Z(["wp-block-uagb-countdown__time","wp-block-uagb-countdown__time-"+e.unitType])},"-"),e.showLabels&&React.createElement("div",{className:"wp-block-uagb-countdown__label"},e.label)),Py=[{attributes:ky,save:function(e){const{attributes:{block_id:t,showLabels:a,labelDays:l,labelHours:i,labelMinutes:o,labelSeconds:n,timerEndAction:r},name:s}=e,c=ge.useBlockProps.save({className:`uagb-block-${t} wp-block-uagb-countdown`}),u=!!uagb_blocks_info.spectra_pro_status&&"content"===r&&React.createElement("div",{className:`uagb-block-countdown-innerblocks-${t} wp-block-uagb-countdown-innerblocks`},Object(F.applyFilters)("spectra.countdown.save-innerblocks","",s));return React.createElement(React.Fragment,null,React.createElement("div",c,React.createElement(wy,{unitType:"days",showLabels:a,label:l}),React.createElement(wy,{unitType:"hours",showLabels:a,label:i}),React.createElement(wy,{unitType:"minutes",showLabels:a,label:o}),React.createElement(wy,{unitType:"seconds",showLabels:a,label:n}),u))}}];function xy(e,t,a,l){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=l.toLowerCase(),{block_id:n,showDays:r,showHours:s,showMinutes:c,showSeconds:u,digitFontFamily:p,digitFontWeight:d,digitFontStyle:b,digitFontSize:g,digitColor:m,digitDecoration:y,digitFontSizeType:f,digitFontSizeTypeMobile:h,digitFontSizeTypeTablet:v,digitFontSizeMobile:_,digitFontSizeTablet:T,digitLineHeight:C,digitLineHeightType:S,digitLineHeightMobile:k,digitLineHeightTablet:w,digitLetterSpacing:P,digitLetterSpacingType:x,digitLetterSpacingMobile:A,digitLetterSpacingTablet:G,labelFontFamily:M,labelFontWeight:R,labelFontStyle:B,labelFontSize:U,labelColor:E,labelTransform:O,labelDecoration:L,labelFontSizeType:H,labelFontSizeTypeMobile:j,labelFontSizeTypeTablet:z,labelFontSizeMobile:D,labelFontSizeTablet:N,labelLineHeight:I,labelLineHeightType:V,labelLineHeightMobile:W,labelLineHeightTablet:q,labelLetterSpacing:Z,labelLetterSpacingType:$,labelLetterSpacingMobile:Y,labelLetterSpacingTablet:K,separatorFontFamily:J,separatorFontWeight:X,separatorFontStyle:Q,separatorFontSize:ee,separatorColor:te,separatorFontSizeType:le,separatorFontSizeTypeMobile:ie,separatorFontSizeTypeTablet:oe,separatorFontSizeMobile:ne,separatorFontSizeTablet:re,separatorLineHeight:se,separatorLineHeightType:ce,separatorLineHeightMobile:ue,separatorLineHeightTablet:pe,separatorRightSpacing:de,separatorRightSpacingTablet:be,separatorRightSpacingMobile:ge,separatorTopSpacing:me,separatorTopSpacingTablet:ye,separatorTopSpacingMobile:fe,blockTopMargin:he,blockRightMargin:ve,blockLeftMargin:_e,blockBottomMargin:Te,blockTopMarginTablet:Ce,blockRightMarginTablet:Se,blockLeftMarginTablet:ke,blockBottomMarginTablet:we,blockTopMarginMobile:Pe,blockRightMarginMobile:xe,blockLeftMarginMobile:Ae,blockBottomMarginMobile:Ge,blockMarginUnit:Me,blockMarginUnitTablet:Re,blockMarginUnitMobile:Be,blockTopPadding:Ue,blockRightPadding:Ee,blockLeftPadding:Oe,blockBottomPadding:Le,blockTopPaddingTablet:He,blockRightPaddingTablet:Fe,blockLeftPaddingTablet:je,blockBottomPaddingTablet:ze,blockTopPaddingMobile:De,blockRightPaddingMobile:Ne,blockLeftPaddingMobile:Ie,blockBottomPaddingMobile:Ve,blockPaddingUnit:We,blockPaddingUnitTablet:qe,blockPaddingUnitMobile:Ze,boxTopPadding:$e,boxRightPadding:Ye,boxLeftPadding:Ke,boxBottomPadding:Je,boxTopPaddingTablet:Xe,boxRightPaddingTablet:Qe,boxLeftPaddingTablet:et,boxBottomPaddingTablet:tt,boxTopPaddingMobile:at,boxRightPaddingMobile:lt,boxLeftPaddingMobile:it,boxBottomPaddingMobile:ot,boxPaddingUnit:nt,boxPaddingUnitTablet:rt,boxPaddingUnitMobile:st,align:ct,alignTablet:ut,alignMobile:pt,boxAlign:dt,boxAlignTablet:bt,boxAlignMobile:gt,boxWidth:mt,boxWidthTablet:yt,boxWidthMobile:ft,isSquareBox:ht,labelVerticalAlignment:vt,labelVerticalAlignmentTablet:_t,labelVerticalAlignmentMobile:Tt,boxSpacing:Ct,boxSpacingTablet:St,boxSpacingMobile:kt,internalBoxSpacing:wt,internalBoxSpacingTablet:Pt,internalBoxSpacingMobile:xt,boxFlex:At,boxFlexTablet:Gt,boxFlexMobile:Mt,boxBgType:Rt,boxBgColor:Bt,useSeparateBoxShadows:Ut,boxShadowColor:Et,boxShadowHOffset:Ot,boxShadowVOffset:Lt,boxShadowBlur:Ht,boxShadowSpread:Ft,boxShadowPosition:jt,boxShadowColorHover:zt,boxShadowHOffsetHover:Dt,boxShadowVOffsetHover:Nt,boxShadowBlurHover:It,boxShadowSpreadHover:Vt,boxShadowPositionHover:Wt,showSeparator:qt,separatorType:Zt,boxBorderHColor:$t,globalBlockStyleId:Yt}=e,Kt=a.replace("uagb/",""),Jt="1"===uagb_blocks_info.is_rtl,Xt=Jt?"first":"last",Qt=Jt?"before":"after",ea=".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:"+Xt+"-child) .wp-block-uagb-countdown__time::"+Qt,ta=".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:"+Xt+"-child) .wp-block-uagb-countdown__time.wp-block-uagb-countdown__time-minutes::"+Qt,aa=".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:"+Xt+"-child) .wp-block-uagb-countdown__time.wp-block-uagb-countdown__time-hours::"+Qt,la=".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:"+Xt+"-child) .wp-block-uagb-countdown__time.wp-block-uagb-countdown__time-days::"+Qt,ia=us(Ct,"boxSpacing",Kt),oa=isNaN(St)?Ct:St,na=isNaN(kt)?St:kt,ra=us(wt,"internalBoxSpacing",Kt),sa=isNaN(Pt)?wt:Pt,ca=isNaN(xt)?Pt:xt,ua=us(de,"separatorRightSpacing",Kt),pa=isNaN(be)?de:be,da=isNaN(ge)?be:ge,ba=us(me,"separatorTopSpacing",Kt),ga=isNaN(ye)?me:ye,ma=isNaN(fe)?ye:fe,ya=Wr(e,"box"),fa=Wr(e,"box","tablet"),ha=Wr(e,"box","mobile"),va=Zr({horizontal:Ot,vertical:Lt,blur:Ht,spread:Ft,color:Et,position:jt}),_a=Zr({horizontal:Dt,vertical:Nt,blur:It,spread:Vt,color:zt,position:Wt,altColor:Et});let Ta={},Ca={},Sa={".wp-block-uagb-countdown":{"justify-content":ct,"margin-top":Vr(he,Me),"margin-right":Vr(ve,Me),"margin-bottom":Vr(Te,Me),"margin-left":Vr(_e,Me),"padding-top":Vr(Ue,We),"padding-right":Vr(Ee,We),"padding-bottom":Vr(Le,We),"padding-left":Vr(Oe,We)},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days":{display:r?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours":{display:s?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes":{display:c?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-seconds":{display:u?"":"none"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box":{"aspect-ratio":ht?1:Yt?"":"auto",width:Vr(mt,"px"),height:ht?Vr(mt,"px"):Yt?"":"auto","flex-direction":At,"justify-content":"column"!==At?dt:"center","align-items":"row"!==At?dt:"center","background-color":"transparent"!==Rt?Bt:"transparent","padding-top":Vr($e,nt),"padding-right":Vr(Ye,nt),"padding-bottom":Vr(Je,nt),"padding-left":Vr(Ke,nt),"row-gap":Vr(ra,"px"),"column-gap":Vr(ra,"px"),"box-shadow":va,...ya},".wp-block-uagb-countdown:hover .wp-block-uagb-countdown__box":{"border-color":$t},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:last-child)":{"margin-right":u?Vr(ia,"px"):"unset"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:last-child)":{"margin-right":u||c?Vr(ia,"px"):"unset"},".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:last-child)":{"margin-right":u||c||s?Vr(ia,"px"):"unset"},".wp-block-uagb-countdown .wp-block-uagb-countdown__time":{"font-family":p,"font-style":b,"text-decoration":y,"font-weight":d,"font-size":Vr(g,f),"line-height":Vr(C,S),"letter-spacing":Vr(P,x),color:m},".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:last-child) .wp-block-uagb-countdown__time::after":{},".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)":{},".wp-block-uagb-countdown div.wp-block-uagb-countdown__label":{"align-self":ht||"row"!==At?"unset":vt,"font-family":M,"font-style":B,"text-decoration":L,"text-transform":O,"font-weight":R,"font-size":Vr(U,H),"line-height":Vr(I,V),"letter-spacing":Vr(Z,$),color:E}};if(Ut&&(Sa[".wp-block-uagb-countdown:hover .wp-block-uagb-countdown__box"]["box-shadow"]=_a),Ta[".wp-block-uagb-countdown"]={"justify-content":ut,"margin-top":Vr(Ce,Re),"margin-right":Vr(Se,Re),"margin-bottom":Vr(we,Re),"margin-left":Vr(ke,Re),"padding-top":Vr(He,qe),"padding-right":Vr(Fe,qe),"padding-bottom":Vr(ze,qe),"padding-left":Vr(je,qe)},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box"]={width:Vr(yt,"px"),height:ht?Vr(yt,"px"):Yt?"":"auto","flex-direction":Gt,"justify-content":"column"!==Gt?bt:"center","align-items":"row"!==Gt?bt:"center","padding-top":Vr(Xe,rt),"padding-right":Vr(Qe,rt),"padding-bottom":Vr(tt,rt),"padding-left":Vr(et,rt),"row-gap":Vr(sa,"px"),"column-gap":Vr(sa,"px"),...fa},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:last-child)"]={"margin-right":u?Vr(oa,"px"):"unset"},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:last-child)"]={"margin-right":u||c?Vr(oa,"px"):"unset"},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:last-child)"]={"margin-right":u||c||s?Vr(oa,"px"):"unset"},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)"]={},Ta[".wp-block-uagb-countdown .wp-block-uagb-countdown__time"]={"font-size":Vr(T,v),"line-height":Vr(w,S),"letter-spacing":Vr(G,x)},Ta[".wp-block-uagb-countdown div.wp-block-uagb-countdown__label"]={"align-self":ht||"row"!==Gt?"unset":_t,"font-size":Vr(N,z),"line-height":Vr(q,V),"letter-spacing":Vr(K,$)},Ca[".wp-block-uagb-countdown"]={"justify-content":pt,"margin-top":Vr(Pe,Be),"margin-right":Vr(xe,Be),"margin-bottom":Vr(Ge,Be),"margin-left":Vr(Ae,Be),"padding-top":Vr(De,Ze),"padding-right":Vr(Ne,Ze),"padding-bottom":Vr(Ve,Ze),"padding-left":Vr(Ie,Ze)},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box"]={width:Vr(ft,"px"),height:ht?Vr(ft,"px"):Yt?"":"auto","flex-direction":Mt,"justify-content":"column"!==Mt?gt:"center","align-items":"row"!==Mt?gt:"center","padding-top":Vr(at,st),"padding-right":Vr(lt,st),"padding-bottom":Vr(ot,st),"padding-left":Vr(it,st),"row-gap":Vr(ca,"px"),"column-gap":Vr(ca,"px"),...ha},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-minutes:not(:last-child)"]={"margin-right":u?Vr(na,"px"):"unset"},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-hours:not(:last-child)"]={"margin-right":u||c?Vr(na,"px"):"unset"},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box.wp-block-uagb-countdown__box-days:not(:last-child)"]={"margin-right":u||c||s?Vr(na,"px"):"unset"},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)"]={},Ca[".wp-block-uagb-countdown .wp-block-uagb-countdown__time"]={"font-size":Vr(_,h),"line-height":Vr(k,S),"letter-spacing":Vr(A,x)},Ca[".wp-block-uagb-countdown div.wp-block-uagb-countdown__label"]={"align-self":ht||"row"!==Mt?"unset":Tt,"font-size":Vr(D,j),"line-height":Vr(W,V),"letter-spacing":Vr(Y,$)},qt&&(Sa[ea]={content:Zt?`'${Zt}'`:"","font-family":J,"font-style":Q,"font-weight":X,"font-size":Vr(ee,le),"line-height":Vr(se,ce),color:te,right:ua?Vr(-ua,"px"):"",top:Vr(ba,"px")},Sa[ta]={display:u?"":"none"},Sa[aa]={display:c||u?"":"none"},Sa[la]={display:s||c||u?"":"none"},Ta[ea]={"font-size":Vr(re,oe),"line-height":Vr(pe,ce),right:pa?Vr(-pa,"px"):"",top:Vr(ga,"px")},Ca[ea]={"font-size":Vr(ne,ie),"line-height":Vr(ue,ce),right:da?Vr(-da,"px"):"",top:Vr(ma,"px")}),Jt){const e=".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:last-child)",t=".wp-block-uagb-countdown .wp-block-uagb-countdown__box:not(:first-child)";Sa[e]["margin-right"]="unset",Ta[e]["margin-right"]="unset",Ca[e]["margin-right"]="unset",Sa[t]["margin-right"]=Vr(ia,"px"),Ta[t]["margin-right"]=Vr(oa,"px"),Ca[t]["margin-right"]=Vr(na,"px")}const ka=".editor-styles-wrapper "+(i||".uagb-block-"+n);Sa=Object(F.applyFilters)(`spectra.${Kt}.styling`,Sa,e),Ta=Object(F.applyFilters)(`spectra.${Kt}.tabletStyling`,Ta,e),Ca=Object(F.applyFilters)(`spectra.${Kt}.mobileStyling`,Ca,e);let wa=ae(Sa,ka);return("tablet"===o||"mobile"===o||i)&&(wa+=ae(Ta,""+ka,!0,"tablet"),("mobile"===o||i)&&(wa+=ae(Ca,""+ka,!0,"mobile"))),wa}const Ay=[{defaultAttributes:Ea},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!0},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"column"},{label:"boxFlexTablet",value:"column"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgColor",value:"#f0f0f1"},{label:"boxBgType",value:"color"},{label:"boxBorderBottomLeftRadius",value:50},{label:"boxBorderBottomRightRadius",value:50},{label:"boxBorderTopLeftRadius",value:50},{label:"boxBorderTopRightRadius",value:50},{label:"boxBorderBottomLeftRadiusTablet",value:50},{label:"boxBorderBottomRightRadiusTablet",value:50},{label:"boxBorderTopLeftRadiusTablet",value:50},{label:"boxBorderTopRightRadiusTablet",value:50},{label:"boxBorderBottomLeftRadiusMobile",value:50},{label:"boxBorderBottomRightRadiusMobile",value:50},{label:"boxBorderTopLeftRadiusMobile",value:50},{label:"boxBorderTopRightRadiusMobile",value:50},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:40},{label:"boxSpacingTablet",value:20},{label:"boxSpacingMobile",value:18},{label:"boxWidth",value:""},{label:"boxWidthTablet",value:""},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:""},{label:"boxRightPadding",value:""},{label:"boxLeftPadding",value:""},{label:"boxBottomPadding",value:""},{label:"boxTopPaddingTablet",value:""},{label:"boxRightPaddingTablet",value:""},{label:"boxLeftPaddingTablet",value:""},{label:"boxBottomPaddingTablet",value:""},{label:"boxTopPaddingMobile",value:5},{label:"boxRightPaddingMobile",value:5},{label:"boxLeftPaddingMobile",value:5},{label:"boxBottomPaddingMobile",value:5},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:4},{label:"internalBoxSpacingTablet",value:4},{label:"internalBoxSpacingMobile",value:2},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:56},{label:"digitFontSizeTablet",value:32},{label:"digitFontSizeMobile",value:26},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:"normal"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:12},{label:"labelFontSizeTablet",value:8},{label:"labelFontSizeMobile",value:8},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:"normal"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"none"}],icon:''},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!0},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"column"},{label:"boxFlexTablet",value:"column"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!0},{label:"separatorType",value:":"},{label:"separatorRightSpacing",value:40},{label:"separatorRightSpacingTablet",value:27},{label:"separatorRightSpacingMobile",value:16},{label:"boxBgType",value:"transparent"},{label:"boxBorderBottomLeftRadius",value:50},{label:"boxBorderBottomRightRadius",value:50},{label:"boxBorderTopLeftRadius",value:50},{label:"boxBorderTopRightRadius",value:50},{label:"boxBorderBottomLeftRadiusTablet",value:50},{label:"boxBorderBottomRightRadiusTablet",value:50},{label:"boxBorderTopLeftRadiusTablet",value:50},{label:"boxBorderTopRightRadiusTablet",value:50},{label:"boxBorderBottomLeftRadiusMobile",value:50},{label:"boxBorderBottomRightRadiusMobile",value:50},{label:"boxBorderTopLeftRadiusMobile",value:50},{label:"boxBorderTopRightRadiusMobile",value:50},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:60},{label:"boxSpacingTablet",value:40},{label:"boxSpacingMobile",value:20},{label:"boxWidth",value:""},{label:"boxWidthTablet",value:""},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:""},{label:"boxRightPadding",value:""},{label:"boxLeftPadding",value:""},{label:"boxBottomPadding",value:""},{label:"boxTopPaddingTablet",value:""},{label:"boxRightPaddingTablet",value:""},{label:"boxLeftPaddingTablet",value:""},{label:"boxBottomPaddingTablet",value:""},{label:"boxTopPaddingMobile",value:5},{label:"boxRightPaddingMobile",value:5},{label:"boxLeftPaddingMobile",value:5},{label:"boxBottomPaddingMobile",value:5},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:5},{label:"internalBoxSpacingTablet",value:5},{label:"internalBoxSpacingMobile",value:2},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:56},{label:"digitFontSizeTablet",value:32},{label:"digitFontSizeMobile",value:26},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:"normal"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:12},{label:"labelFontSizeTablet",value:8},{label:"labelFontSizeMobile",value:8},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:"normal"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"solid"},{label:"boxBorderColor",value:"rgba(33,33,33,0.67)"},{label:"boxBorderTopWidth",value:2},{label:"boxBorderTopWidthTablet",value:2},{label:"boxBorderTopWidthMobile",value:2},{label:"boxBorderBottomWidth",value:2},{label:"boxBorderBottomWidthTablet",value:2},{label:"boxBorderBottomWidthMobile",value:2},{label:"boxBorderLeftWidth",value:2},{label:"boxBorderLeftWidthTablet",value:2},{label:"boxBorderLeftWidthMobile",value:2},{label:"boxBorderRightWidth",value:2},{label:"boxBorderRightWidthTablet",value:2},{label:"boxBorderRightWidthMobile",value:2}],icon:''},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!1},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"column"},{label:"boxFlexTablet",value:"column"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgColor",value:"#2B2B2B"},{label:"boxBgType",value:"color"},{label:"boxBorderBottomLeftRadius",value:4},{label:"boxBorderBottomRightRadius",value:4},{label:"boxBorderTopLeftRadius",value:4},{label:"boxBorderTopRightRadius",value:4},{label:"boxBorderBottomLeftRadiusTablet",value:4},{label:"boxBorderBottomRightRadiusTablet",value:4},{label:"boxBorderTopLeftRadiusTablet",value:4},{label:"boxBorderTopRightRadiusTablet",value:4},{label:"boxBorderBottomLeftRadiusMobile",value:4},{label:"boxBorderBottomRightRadiusMobile",value:4},{label:"boxBorderTopLeftRadiusMobile",value:4},{label:"boxBorderTopRightRadiusMobile",value:4},{label:"boxBorderRadiusUnit",value:"px"},{label:"boxBorderRadiusUnitTablet",value:"px"},{label:"boxBorderRadiusUnitMobile",value:"px"},{label:"boxSpacing",value:40},{label:"boxSpacingTablet",value:40},{label:"boxSpacingMobile",value:15},{label:"boxWidth",value:160},{label:"boxWidthTablet",value:75},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:15},{label:"boxRightPadding",value:10},{label:"boxLeftPadding",value:10},{label:"boxBottomPadding",value:15},{label:"boxTopPaddingTablet",value:15},{label:"boxRightPaddingTablet",value:10},{label:"boxLeftPaddingTablet",value:10},{label:"boxBottomPaddingTablet",value:15},{label:"boxTopPaddingMobile",value:12},{label:"boxRightPaddingMobile",value:12},{label:"boxLeftPaddingMobile",value:12},{label:"boxBottomPaddingMobile",value:12},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:4},{label:"internalBoxSpacingTablet",value:4},{label:"internalBoxSpacingMobile",value:2},{label:"digitColor",value:"#ffffff"},{label:"digitFontSize",value:52},{label:"digitFontSizeTablet",value:32},{label:"digitFontSizeMobile",value:30},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:"normal"},{label:"showLabels",value:!0},{label:"labelColor",value:"#f4f4f4"},{label:"labelFontSize",value:11},{label:"labelFontSizeTablet",value:11},{label:"labelFontSizeMobile",value:10},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:"normal"},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxBorderStyle",value:"none"}],icon:''},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!1},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"row"},{label:"boxFlexTablet",value:"row"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgType",value:"transparent"},{label:"boxBorderBottomLeftRadius",value:4},{label:"boxBorderBottomRightRadius",value:4},{label:"boxBorderTopLeftRadius",value:4},{label:"boxBorderTopRightRadius",value:4},{label:"boxBorderBottomLeftRadiusTablet",value:4},{label:"boxBorderBottomRightRadiusTablet",value:4},{label:"boxBorderTopLeftRadiusTablet",value:4},{label:"boxBorderTopRightRadiusTablet",value:4},{label:"boxBorderBottomLeftRadiusMobile",value:4},{label:"boxBorderBottomRightRadiusMobile",value:4},{label:"boxBorderTopLeftRadiusMobile",value:4},{label:"boxBorderTopRightRadiusMobile",value:4},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:30},{label:"boxSpacingTablet",value:30},{label:"boxSpacingMobile",value:15},{label:"boxWidth",value:170},{label:"boxWidthTablet",value:130},{label:"boxWidthMobile",value:60},{label:"boxTopPadding",value:20},{label:"boxRightPadding",value:30},{label:"boxLeftPadding",value:30},{label:"boxBottomPadding",value:20},{label:"boxTopPaddingTablet",value:""},{label:"boxRightPaddingTablet",value:""},{label:"boxLeftPaddingTablet",value:""},{label:"boxBottomPaddingTablet",value:""},{label:"boxTopPaddingMobile",value:15},{label:"boxRightPaddingMobile",value:15},{label:"boxLeftPaddingMobile",value:15},{label:"boxBottomPaddingMobile",value:15},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:5},{label:"internalBoxSpacingTablet",value:5},{label:"internalBoxSpacingMobile",value:5},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:48},{label:"digitFontSizeTablet",value:35},{label:"digitFontSizeMobile",value:24},{label:"digitFontSizeType",value:"px"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:13},{label:"labelFontSizeTablet",value:13},{label:"labelFontSizeMobile",value:10},{label:"labelFontSizeType",value:"px"},{label:"labelVerticalAlignment",value:"center"},{label:"labelVerticalAlignmentTablet",value:"center"},{label:"labelVerticalAlignmentMobile",value:"center"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"solid"},{label:"boxBorderColor",value:"rgba(33,33,33,0.67)"},{label:"boxBorderTopWidth",value:2},{label:"boxBorderTopWidthTablet",value:2},{label:"boxBorderTopWidthMobile",value:2},{label:"boxBorderBottomWidth",value:2},{label:"boxBorderBottomWidthTablet",value:2},{label:"boxBorderBottomWidthMobile",value:2},{label:"boxBorderLeftWidth",value:2},{label:"boxBorderLeftWidthTablet",value:2},{label:"boxBorderLeftWidthMobile",value:2},{label:"boxBorderRightWidth",value:2},{label:"boxBorderRightWidthTablet",value:2},{label:"boxBorderRightWidthMobile",value:2}],icon:''},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"isSquareBox",value:!1},{label:"boxAlign",value:"center"},{label:"boxAlignTablet",value:"center"},{label:"boxAlignMobile",value:"center"},{label:"boxFlex",value:"row"},{label:"boxFlexTablet",value:"row"},{label:"boxFlexMobile",value:"column"},{label:"showSeparator",value:!1},{label:"boxBgType",value:"transparent"},{label:"boxBorderBottomLeftRadius",value:4},{label:"boxBorderBottomRightRadius",value:4},{label:"boxBorderTopLeftRadius",value:4},{label:"boxBorderTopRightRadius",value:4},{label:"boxBorderBottomLeftRadiusTablet",value:4},{label:"boxBorderBottomRightRadiusTablet",value:4},{label:"boxBorderTopLeftRadiusTablet",value:4},{label:"boxBorderTopRightRadiusTablet",value:4},{label:"boxBorderBottomLeftRadiusMobile",value:4},{label:"boxBorderBottomRightRadiusMobile",value:4},{label:"boxBorderTopLeftRadiusMobile",value:4},{label:"boxBorderTopRightRadiusMobile",value:4},{label:"boxBorderRadiusUnit",value:"%"},{label:"boxBorderRadiusUnitTablet",value:"%"},{label:"boxBorderRadiusUnitMobile",value:"%"},{label:"boxSpacing",value:22},{label:"boxSpacingTablet",value:22},{label:"boxSpacingMobile",value:15},{label:"boxWidth",value:""},{label:"boxWidthTablet",value:130},{label:"boxWidthMobile",value:25},{label:"boxTopPadding",value:25},{label:"boxRightPadding",value:25},{label:"boxLeftPadding",value:25},{label:"boxBottomPadding",value:25},{label:"boxTopPaddingTablet",value:25},{label:"boxRightPaddingTablet",value:25},{label:"boxLeftPaddingTablet",value:25},{label:"boxBottomPaddingTablet",value:25},{label:"boxTopPaddingMobile",value:25},{label:"boxRightPaddingMobile",value:25},{label:"boxLeftPaddingMobile",value:25},{label:"boxBottomPaddingMobile",value:25},{label:"boxPaddingUnit",value:"px"},{label:"boxPaddingUnitTablet",value:"px"},{label:"boxPaddingUnitMobile",value:"px"},{label:"internalBoxSpacing",value:10},{label:"internalBoxSpacingTablet",value:4},{label:"internalBoxSpacingMobile",value:6},{label:"digitColor",value:"inherit"},{label:"digitFontSize",value:""},{label:"digitFontSizeTablet",value:""},{label:"digitFontSizeMobile",value:""},{label:"digitFontSizeType",value:"px"},{label:"digitLineHeight",value:.8},{label:"digitLineHeightType",value:"em"},{label:"showLabels",value:!0},{label:"labelColor",value:"inherit"},{label:"labelFontSize",value:""},{label:"labelFontSizeTablet",value:""},{label:"labelFontSizeMobile",value:""},{label:"labelFontSizeType",value:"px"},{label:"labelLineHeight",value:1},{label:"labelLineHeightType",value:"em"},{label:"labelVerticalAlignment",value:"end"},{label:"labelVerticalAlignmentTablet",value:"end"},{label:"labelVerticalAlignmentMobile",value:"end"},{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:0},{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:0},{label:"boxShadowBlur",value:0},{label:"boxShadowSpread",value:0},{label:"boxBorderStyle",value:"none"}],icon:''}],Gy=[{defaultAttributes:Ea},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowColor",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '}],My=[{defaultAttributes:Ea},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:15},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '}];var Ry=a(14);function By(){return(By=Object.assign||function(e){for(var t=1;t{let e=!0;if(!o)return!1;switch(o){case"date":e=!0;break;case"evergreen":e=!t}return e})()&&React.createElement("div",{className:"uagb-countdown__datetime-picker"},React.createElement("div",null,React.createElement("h2",null,Object(r.__)("Timer End Date & Time","ultimate-addons-for-gutenberg"))),React.createElement(Le.DateTimePicker,{className:"uagb-date-picker",currentDate:n,onChange:e=>{const t=new Date(e+"Z");t.setMilliseconds(t.getMilliseconds()-60*ya.offset*60*1e3),a({endDateTime:t,endDateTimeCopy:t,displayEndDateTime:e})},is12Hour:!0,__nextRemoveResetButton:!0,__nextRemoveHelpButton:!0})),React.createElement(fi,null),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Days","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>{(c||u||p)&&a({showDays:!s})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Hours","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>{(s||u||p)&&a({showHours:!c})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Minutes","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>{(s||c||p)&&a({showMinutes:!u})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Seconds","ultimate-addons-for-gutenberg"),checked:p,onChange:()=>{(s||c||u)&&a({showSeconds:!p})}}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Aria Live Type","ultimate-addons-for-gutenberg"),data:{value:v,label:"ariaLiveType"},options:[{value:"off",label:Object(r.__)("Off","ultimate-addons-for-gutenberg")},{value:"polite",label:Object(r.__)("Polite","ultimate-addons-for-gutenberg")},{value:"assertive",label:Object(r.__)("Assertive","ultimate-addons-for-gutenberg")}]})),ha=React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:Ay,presetInputType:"radioImage"})),va=React.createElement(je,{title:Object(r.__)("Labels","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Labels","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>a({showLabels:!d})}),d&&React.createElement(React.Fragment,null,s&&React.createElement(Ss,{label:Object(r.__)("Days","ultimate-addons-for-gutenberg"),variant:"full-width",value:b,data:{value:b,label:"labelDays"},setAttributes:a}),c&&React.createElement(Ss,{label:Object(r.__)("Hours","ultimate-addons-for-gutenberg"),variant:"full-width",value:g,data:{value:g,label:"labelHours"},setAttributes:a}),u&&React.createElement(Ss,{label:Object(r.__)("Minutes","ultimate-addons-for-gutenberg"),variant:"full-width",value:m,data:{value:m,label:"labelMinutes"},setAttributes:a}),p&&React.createElement(Ss,{label:Object(r.__)("Seconds","ultimate-addons-for-gutenberg"),variant:"full-width",value:y,data:{value:y,label:"labelSeconds"},setAttributes:a}))),_a=React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Separator","ultimate-addons-for-gutenberg"),checked:f,onChange:()=>a({showSeparator:!f})}),f&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Separator Type","ultimate-addons-for-gutenberg"),data:{value:h,label:"separatorType"},options:[{value:":",label:Object(r.__)("Colon","ultimate-addons-for-gutenberg")},{value:"|",label:Object(r.__)("Line","ultimate-addons-for-gutenberg")},{value:"/",label:Object(r.__)("Slash","ultimate-addons-for-gutenberg")}]}))),Ta=React.createElement(je,{title:Object(r.__)("Box","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Square Shaped Box","ultimate-addons-for-gutenberg"),checked:Ot,onChange:()=>a({isSquareBox:!Ot})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:Gt,label:"align"},tablet:{value:Mt,label:"alignTablet"},mobile:{value:Rt,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:ga,showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Inner Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:Bt,label:"boxAlign"},tablet:{value:Ut,label:"boxAlignTablet"},mobile:{value:Et,label:"boxAlignMobile"}},className:"uagb-multi-button-alignment-control",options:ma,showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Label Position","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:$t,label:"boxFlex"},tablet:{value:Yt,label:"boxFlexTablet"},mobile:{value:Kt,label:"boxFlexMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"row",icon:React.createElement(Le.Icon,{icon:ze("flex-direction-row")}),tooltip:Object(r.__)("Row","ultimate-addons-for-gutenberg")},{value:"column",icon:React.createElement(Le.Icon,{icon:ze("flex-direction-column")}),tooltip:Object(r.__)("Column","ultimate-addons-for-gutenberg")}],showIcons:!0}),!Ot&&("Desktop"===da&&"row"===$t||"Tablet"===da&&"row"===Yt||"Mobile"===da&&"row"===Kt)&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Label Vertical Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:Lt,label:"labelVerticalAlignment"},tablet:{value:Ht,label:"labelVerticalAlignmentTablet"},mobile:{value:Ft,label:"labelVerticalAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"start",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"end",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}],showIcons:!1,help:Object(r.__)("This feature works best after adding line-height to the label.","ultimate-addons-for-gutenberg")})),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Jt,label:"boxBgType"},className:"uagb-multi-button-alignment-control",options:ba}),"color"===Jt&&React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Xt||"",data:{value:Xt,label:"boxBgColor"},setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Box Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:jt,label:"boxWidth"},tablet:{value:zt,label:"boxWidthTablet"},mobile:{value:Dt,label:"boxWidthMobile"}},min:0,max:250,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Boxes","ultimate-addons-for-gutenberg"),data:{desktop:{value:Nt,label:"boxSpacing"},tablet:{value:It,label:"boxSpacingTablet"},mobile:{value:Vt,label:"boxSpacingMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Digits & Labels","ultimate-addons-for-gutenberg"),data:{desktop:{value:Wt,label:"internalBoxSpacing"},tablet:{value:qt,label:"internalBoxSpacingTablet"},mobile:{value:Zt,label:"internalBoxSpacingMobile"}},min:0,max:200,displayUnit:!1,setAttributes:a}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:a,prefix:"box",attributes:l,deviceType:da,disableBottomSeparator:!1}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:bt,label:"boxTopPadding"},valueRight:{value:gt,label:"boxRightPadding"},valueBottom:{value:yt,label:"boxBottomPadding"},valueLeft:{value:mt,label:"boxLeftPadding"},valueTopTablet:{value:ft,label:"boxTopPaddingTablet"},valueRightTablet:{value:ht,label:"boxRightPaddingTablet"},valueBottomTablet:{value:_t,label:"boxBottomPaddingTablet"},valueLeftTablet:{value:vt,label:"boxLeftPaddingTablet"},valueTopMobile:{value:Tt,label:"boxTopPaddingMobile"},valueRightMobile:{value:Ct,label:"boxRightPaddingMobile"},valueBottomMobile:{value:kt,label:"boxBottomPaddingMobile"},valueLeftMobile:{value:St,label:"boxLeftPaddingMobile"},unit:{value:wt,label:"boxPaddingUnit"},mUnit:{value:xt,label:"boxPaddingUnitMobile"},tUnit:{value:Pt,label:"boxPaddingUnitTablet"},deviceType:da,attributes:l,setAttributes:a,link:{value:At,label:"boxPaddingLink"}})),Ca=React.createElement(je,{title:Object(r.__)("Digit","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:w||"",data:{value:w,label:"digitColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:a,loadGoogleFonts:{value:_,label:"digitLoadGoogleFonts"},fontFamily:{value:T,label:"digitFontFamily"},fontWeight:{value:C,label:"digitFontWeight"},fontStyle:{value:S,label:"digitFontStyle"},disableTransform:!0,decoration:{value:P,label:"digitDecoration"},fontSizeType:{value:x,label:"digitFontSizeType"},fontSizeTypeTablet:{value:G,label:"digitFontSizeTypeTablet"},fontSizeTypeMobile:{value:A,label:"digitFontSizeTypeMobile"},fontSize:{value:k,label:"digitFontSize"},fontSizeMobile:{value:M,label:"digitFontSizeMobile"},fontSizeTablet:{value:R,label:"digitFontSizeTablet"},lineHeightType:{value:U,label:"digitLineHeightType"},lineHeight:{value:B,label:"digitLineHeight"},lineHeightMobile:{value:E,label:"digitLineHeightMobile"},lineHeightTablet:{value:O,label:"digitLineHeightTablet"},letterSpacingType:{value:H,label:"digitLetterSpacingType"},letterSpacing:{value:L,label:"digitLetterSpacing"},letterSpacingMobile:{value:j,label:"digitLetterSpacingMobile"},letterSpacingTablet:{value:z,label:"digitLetterSpacingTablet"}})),Sa=React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:q||"",data:{value:q,label:"labelColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:a,loadGoogleFonts:{value:D,label:"labelLoadGoogleFonts"},fontFamily:{value:N,label:"labelFontFamily"},fontWeight:{value:I,label:"labelFontWeight"},fontStyle:{value:V,label:"labelFontStyle"},transform:{value:Z,label:"labelTransform"},decoration:{value:$,label:"labelDecoration"},fontSizeType:{value:Y,label:"labelFontSizeType"},fontSizeTypeTablet:{value:J,label:"labelFontSizeTypeTablet"},fontSizeTypeMobile:{value:K,label:"labelFontSizeTypeMobile"},fontSize:{value:W,label:"labelFontSize"},fontSizeMobile:{value:X,label:"labelFontSizeMobile"},fontSizeTablet:{value:Q,label:"labelFontSizeTablet"},lineHeightType:{value:te,label:"labelLineHeightType"},lineHeight:{value:ee,label:"labelLineHeight"},lineHeightMobile:{value:ae,label:"labelLineHeightMobile"},lineHeightTablet:{value:le,label:"labelLineHeightTablet"},letterSpacingType:{value:oe,label:"labelLetterSpacingType"},letterSpacing:{value:ie,label:"labelLetterSpacing"},letterSpacingMobile:{value:ne,label:"labelLetterSpacingMobile"},letterSpacingTablet:{value:re,label:"labelLetterSpacingTablet"}})),ka=React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"separatorColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:a,loadGoogleFonts:{value:se,label:"separatorLoadGoogleFonts"},fontFamily:{value:ce,label:"separatorFontFamily"},fontWeight:{value:ue,label:"separatorFontWeight"},fontStyle:{value:pe,label:"separatorFontStyle"},disableTransform:!0,disableDecoration:!0,fontSizeType:{value:me,label:"separatorFontSizeType"},fontSizeTypeTablet:{value:fe,label:"separatorFontSizeTypeTablet"},fontSizeTypeMobile:{value:ye,label:"separatorFontSizeTypeMobile"},fontSize:{value:de,label:"separatorFontSize"},fontSizeMobile:{value:he,label:"separatorFontSizeMobile"},fontSizeTablet:{value:ve,label:"separatorFontSizeTablet"},lineHeightType:{value:Te,label:"separatorLineHeightType"},lineHeight:{value:_e,label:"separatorLineHeight"},lineHeightMobile:{value:Se,label:"separatorLineHeightMobile"},lineHeightTablet:{value:ke,label:"separatorLineHeightTablet"}}),React.createElement(tl,{label:Object(r.__)("Separator Right Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:we,label:"separatorRightSpacing"},tablet:{value:Pe,label:"separatorRightSpacingTablet"},mobile:{value:xe,label:"separatorRightSpacingMobile"}},min:0,max:300,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Separator Top Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ae,label:"separatorTopSpacing"},tablet:{value:Ge,label:"separatorTopSpacingTablet"},mobile:{value:Me,label:"separatorTopSpacingMobile"}},min:0,max:300,displayUnit:!1,setAttributes:a})),wa=React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:Qt,onChange:()=>a({useSeparateBoxShadows:!Qt})}),Qt?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:Gy,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:ea,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ta,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:aa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:la,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ia,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:oa,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:My,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:na,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ra,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:sa,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:ca,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ua,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:pa,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:Gy,presetInputType:"radioImage"}),React.createElement(vl,{blockId:i,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:ea,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:ta,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:aa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:la,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ia,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:oa,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),Pa=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Je,label:"blockTopPadding"},valueRight:{value:Xe,label:"blockRightPadding"},valueBottom:{value:et,label:"blockBottomPadding"},valueLeft:{value:Qe,label:"blockLeftPadding"},valueTopTablet:{value:tt,label:"blockTopPaddingTablet"},valueRightTablet:{value:at,label:"blockRightPaddingTablet"},valueBottomTablet:{value:it,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:lt,label:"blockLeftPaddingTablet"},valueTopMobile:{value:ot,label:"blockTopPaddingMobile"},valueRightMobile:{value:nt,label:"blockRightPaddingMobile"},valueBottomMobile:{value:st,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:rt,label:"blockLeftPaddingMobile"},unit:{value:ct,label:"blockPaddingUnit"},mUnit:{value:pt,label:"blockPaddingUnitMobile"},tUnit:{value:ut,label:"blockPaddingUnitTablet"},deviceType:da,attributes:l,setAttributes:a,link:{value:dt,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Re,label:"blockTopMargin"},valueRight:{value:Be,label:"blockRightMargin"},valueBottom:{value:Oe,label:"blockBottomMargin"},valueLeft:{value:Ue,label:"blockLeftMargin"},valueTopTablet:{value:He,label:"blockTopMarginTablet"},valueRightTablet:{value:Fe,label:"blockRightMarginTablet"},valueBottomTablet:{value:Ne,label:"blockBottomMarginTablet"},valueLeftTablet:{value:De,label:"blockLeftMarginTablet"},valueTopMobile:{value:Ie,label:"blockTopMarginMobile"},valueRightMobile:{value:Ve,label:"blockRightMarginMobile"},valueBottomMobile:{value:qe,label:"blockBottomMarginMobile"},valueLeftMobile:{value:We,label:"blockLeftMarginMobile"},unit:{value:Ze,label:"blockMarginUnit"},mUnit:{value:Ye,label:"blockMarginUnitMobile"},tUnit:{value:$e,label:"blockMarginUnitTablet"},deviceType:da,attributes:l,setAttributes:a,link:{value:Ke,label:"blockMarginLink"}}));return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,By({},ol,{parentProps:e}),fa,va,_a,Object(F.applyFilters)("spectra.countdown.expiry-settings"),ha),React.createElement(il,By({},nl,{parentProps:e}),Ta,Ca,d&&Sa,f&&ka,wa,Pa),React.createElement(il,By({},rl,{parentProps:e}),Ds(xy,a,l)))))})),Oy=a(106),Ly=0,Hy={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Fy={};Fy.locals=Oy.a.locals||{},Fy.use=function(){return Ly++||(Uy=we()(Oy.a,Hy)),Fy},Fy.unuse=function(){Ly>0&&!--Ly&&(Uy(),Uy=null)};var jy=Fy,zy=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(jy.use(),()=>{jy.unuse()}),[]);const t=e.countdownRef,{attributes:{block_id:a,name:l,showLabels:i,labelDays:o,labelHours:n,labelMinutes:r,labelSeconds:s,timerEndAction:c},deviceType:u}=e,p=Object(ge.useBlockProps)({className:`uagb-block-${a} uagb-editor-preview-mode-${u.toLowerCase()}`,ref:t}),d=!!uagb_blocks_info.spectra_pro_status&&"content"===c&&React.createElement("div",{className:`uagb-block-countdown-innerblocks-${a} wp-block-uagb-countdown-innerblocks`},Object(F.applyFilters)("spectra.countdown.render-innerblocks","",l));return React.createElement(React.Fragment,null,React.createElement("div",p,React.createElement(wy,{unitType:"days",showLabels:i,label:o}),React.createElement(wy,{unitType:"hours",showLabels:i,label:n}),React.createElement(wy,{unitType:"minutes",showLabels:i,label:r}),React.createElement(wy,{unitType:"seconds",showLabels:i,label:s}),d))}),Dy=Object(B.memo)(e=>{let{attributes:t}=e;const{digitLoadGoogleFonts:a,digitFontFamily:l,digitFontWeight:i,labelLoadGoogleFonts:o,labelFontFamily:n,labelFontWeight:r,separatorLoadGoogleFonts:s,separatorFontFamily:c,separatorFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function Ny(){return(Ny=Object.assign||function(e){for(var t=1;t{const{isSelected:t,clientId:a,attributes:l,attributes:{block_id:i,timeModified:o,endDateTime:n,showDays:r,showHours:s,showMinutes:c,UAGHideDesktop:u,UAGHideTab:p,UAGHideMob:d},setAttributes:b,name:g,deviceType:m}=e,[y,f]=Object(B.useState)(0);Object(B.useEffect)(()=>{if(!o){const{timezone:e}=Object(Ry.getSettings)(),t=new Date,a=new Date;t.setMilliseconds(t.getMilliseconds()+6048e5),a.setMilliseconds(a.getMilliseconds()+6048e5),a.setMilliseconds(a.getMilliseconds()+(60*a.getTimezoneOffset()*1e3+60*e.offset*60*1e3)),b({endDateTime:t,endDateTimeCopy:t,displayEndDateTime:a,timeModified:!0})}},[]);const h=Object(B.useRef)(null);Object(B.useEffect)(()=>{let e=null;return h&&i&&(e=setTimeout(()=>{UAGBCountdown.editorInit(".uagb-block-"+i,l,h.current)})),()=>{null===e&&clearInterval(e)}},[h,i]);const v=Object(B.useMemo)(()=>xy(l,a,g,m),[l,m]);Object(B.useEffect)(()=>{i&&1===y&&UAGBCountdown.changeEndTime(".uagb-block-"+i,l,h.current),f(1)},[n,r,s,c]),Object(B.useEffect)(()=>{he(e)},[u,p,d,m]);const _=Object(F.applyFilters)("spectra.countdown.toolbar-hook","",g);return React.createElement(React.Fragment,null,"content"===l.timerEndAction&&_,React.createElement(Dy,{attributes:l}),React.createElement(me,{blockStyling:v}),t&&React.createElement(Ey,e),React.createElement(zy,Ny({countdownRef:h},e)))});let Vy={};Vy=Object(F.applyFilters)("uagb/countdown",ss(Vy)),Object(de.registerBlockType)("uagb/countdown",{...Vy,apiVersion:2,title:Object(r.__)("Countdown","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create a sense of urgency among your visitors.","ultimate-addons-for-gutenberg"),icon:se.countdown,keywords:[Object(r.__)("countdown","ultimate-addons-for-gutenberg"),Object(r.__)("timer","ultimate-addons-for-gutenberg"),Object(r.__)("sale","ultimate-addons-for-gutenberg"),Object(r.__)("offer","ultimate-addons-for-gutenberg"),Object(r.__)("discount","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Ea,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"countdown"}):React.createElement(Iy,e),save:function(e){const{attributes:{block_id:t,showLabels:a,labelDays:l,labelHours:i,labelMinutes:o,labelSeconds:n,timerEndAction:r,ariaLiveType:s},name:c}=e,u=ge.useBlockProps.save({className:`uagb-block-${t} wp-block-uagb-countdown`}),p=!!uagb_blocks_info.spectra_pro_status&&"content"===r&&React.createElement("div",{className:`uagb-block-countdown-innerblocks-${t} wp-block-uagb-countdown-innerblocks`},Object(F.applyFilters)("spectra.countdown.save-innerblocks","",c));return React.createElement(React.Fragment,null,React.createElement("div",u,React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"days",showLabels:a,label:l}),React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"hours",showLabels:a,label:i}),React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"minutes",showLabels:a,label:o}),React.createElement(wy,{role:"timer",ariaLiveType:s,unitType:"seconds",showLabels:a,label:n}),p))},deprecated:Py});var Wy=Object(B.memo)(e=>{let{attributes:t}=e;const{descLoadGoogleFonts:a,authorLoadGoogleFonts:l,tweetBtnLoadGoogleFonts:i,descFontFamily:o,descFontWeight:n,authorFontFamily:r,authorFontWeight:s,tweetBtnFontFamily:c,tweetBtnFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[o+(n?":"+n:"")]}};p=React.createElement(O,{config:e})}if(!0===l){const e={google:{families:[r+(s?":"+s:"")]}};d=React.createElement(O,{config:e})}if(!0===i){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function qy(){return(qy=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{skinStyle:i,align:o,authorColor:n,descColor:s,descFontSize:c,descFontSizeType:u,descFontSizeTablet:p,descFontSizeMobile:d,descFontFamily:b,descFontWeight:g,descFontStyle:m,descLineHeightType:y,descLineHeight:f,descLineHeightTablet:h,descLineHeightMobile:v,descLoadGoogleFonts:_,authorFontSize:T,authorFontSizeType:C,authorFontSizeTablet:S,authorFontSizeMobile:k,authorFontFamily:w,authorFontWeight:P,authorFontStyle:x,authorLineHeightType:A,authorLineHeight:G,authorLineHeightTablet:M,authorLineHeightMobile:R,authorLoadGoogleFonts:B,descSpace:U,descSpaceTablet:E,descSpaceMobile:O,authorSpace:L,authorSpaceTablet:H,authorSpaceMobile:F,borderColor:j,borderStyle:z,borderWidth:D,borderGap:N,borderGapTablet:I,borderGapMobile:V,verticalPadding:W,verticalPaddingTablet:q,verticalPaddingMobile:Z,quoteColor:$,quoteBgColor:Y,quoteSize:K,quoteSizeType:J,quoteSizeTablet:X,quoteSizeMobile:Q,quotePadding:ee,quotePaddingType:te,quotePaddingTablet:ae,quotePaddingMobile:le,quoteBorderRadius:ie,quoteStyle:oe,enableTweet:ne,tweetLinkColor:re,tweetBtnColor:se,tweetBtnHoverColor:ce,tweetBtnBgColor:ue,tweetBtnBgHoverColor:pe,tweetBtnFontSize:de,tweetBtnFontSizeType:be,tweetBtnFontSizeTablet:me,tweetBtnFontSizeMobile:ye,tweetBtnFontFamily:fe,tweetBtnFontWeight:he,tweetBtnFontStyle:ve,tweetBtnLineHeightType:_e,tweetBtnLineHeight:Te,tweetBtnLineHeightTablet:Se,tweetBtnLineHeightMobile:ke,tweetBtnLoadGoogleFonts:we,tweetIconSpacing:Pe,tweetIconSpacingUnit:xe,iconView:Ae,iconSkin:Ge,iconLabel:Me,iconShareVia:Re,iconTargetUrl:Be,customUrl:Ue,authorImage:Oe,authorImageWidth:He,authorImageWidthTablet:Fe,authorImageWidthMobile:ze,authorImageWidthUnit:De,authorImageGap:Ne,authorImageGapTablet:Ie,authorImageGapMobile:Ve,authorImageGapUnit:We,authorImageSize:qe,authorImgBorderRadius:Ze,authorImgBorderRadiusTablet:$e,authorImgBorderRadiusMobile:Ye,authorImgPosition:Ke,quoteTopMargin:Je,quoteBottomMargin:Xe,quoteLeftMargin:Qe,quoteRightMargin:et,quoteHoverColor:tt,quoteBgHoverColor:at,borderHoverColor:lt,authorImgBorderRadiusUnit:it,borderWidthUnit:ot,quoteBorderRadiusUnit:nt,quoteUnit:rt,quotemobileUnit:st,quotetabletUnit:ct,borderGapUnit:ut,descSpaceUnit:pt,authorSpaceUnit:dt,verticalPaddingUnit:bt,paddingBtnTop:gt,paddingBtnBottom:mt,paddingBtnLeft:yt,paddingBtnRight:ft,paddingBtnTopTablet:ht,paddingBtnRightTablet:vt,paddingBtnBottomTablet:_t,paddingBtnLeftTablet:Tt,paddingBtnTopMobile:Ct,paddingBtnRightMobile:St,paddingBtnBottomMobile:kt,paddingBtnLeftMobile:wt,paddingBtnUnit:Pt,mobilePaddingBtnUnit:xt,tabletPaddingBtnUnit:At,btnspacingLink:Gt,spacingLink:Mt,descTransform:Rt,authorTransform:Bt,tweetBtnTransform:Ut,descDecoration:Et,authorDecoration:Ot,tweetBtnDecoration:Lt,quoteTopMarginTablet:Ht,quoteBottomMarginTablet:Ft,quoteLeftMarginTablet:jt,quoteRightMarginTablet:zt,quoteTopMarginMobile:Dt,quoteBottomMarginMobile:Nt,quoteLeftMarginMobile:It,quoteRightMarginMobile:Vt,author:Wt,descLetterSpacing:qt,descLetterSpacingTablet:Zt,descLetterSpacingMobile:$t,descLetterSpacingType:Yt,authorLetterSpacing:Kt,authorLetterSpacingTablet:Jt,authorLetterSpacingMobile:Xt,authorLetterSpacingType:Qt,tweetBtnLetterSpacing:ea,tweetBtnLetterSpacingTablet:ta,tweetBtnLetterSpacingMobile:aa,tweetBtnLetterSpacingType:la}=a,ia=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}],oa=React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{e&&e.url?e.type&&"image"===e.type&&t({authorImage:e}):t({authorImage:null})},backgroundImage:Oe,onRemoveImage:()=>{t({authorImage:null})},label:Object(r.__)("Author Image","ultimate-addons-for-gutenberg"),slug:"author-image"}),Oe&&"null"!==Oe.url&&""!==Oe.url&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Author Image Position","ultimate-addons-for-gutenberg"),data:{value:Ke,label:"authorImgPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",label:"Left"},{value:"top",label:"Top"},{value:"right",label:"Right"}],showIcons:!1}))),na=React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Quote Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"quoteSize"},tablet:{value:X,label:"quoteSizeTablet"},mobile:{value:Q,label:"quoteSizeMobile"}},min:0,max:50,unit:{value:J,label:"quoteSizeType"},setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:ee,label:"quotePadding"},tablet:{value:ae,label:"quotePaddingTablet"},mobile:{value:le,label:"quotePaddingMobile"}},min:0,max:200,unit:{value:te,label:"quotePaddingType"},setAttributes:t}),Y&&React.createElement(Qa,{label:Object(r.__)("Quote Icon Border Radius","ultimate-addons-for-gutenberg"),setAttributes:t,value:ie,data:{value:ie,label:"quoteBorderRadius"},min:0,max:100,unit:{value:nt,label:"quoteBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),ra=React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg")},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:i,label:"skinStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"border",label:Object(r.__)("Border","ultimate-addons-for-gutenberg")},{value:"quotation",label:Object(r.__)("Quotation","ultimate-addons-for-gutenberg")}],showIcons:!1}),"quotation"===i&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Quotation Type","ultimate-addons-for-gutenberg"),data:{value:oe,label:"quoteStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"style_1",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"style_2",label:Object(r.__)("Inline","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),oa),sa=React.createElement(je,{title:Object(r.__)("Quote","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Quote Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Quote Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:_,label:"descLoadGoogleFonts"},fontFamily:{value:b,label:"descFontFamily"},fontWeight:{value:g,label:"descFontWeight"},fontStyle:{value:m,label:"descFontStyle"},fontSizeType:{value:u,label:"descFontSizeType"},fontSize:{value:c,label:"descFontSize"},fontSizeMobile:{value:d,label:"descFontSizeMobile"},fontSizeTablet:{value:p,label:"descFontSizeTablet"},lineHeightType:{value:y,label:"descLineHeightType"},lineHeight:{value:f,label:"descLineHeight"},lineHeightMobile:{value:v,label:"descLineHeightMobile"},lineHeightTablet:{value:h,label:"descLineHeightTablet"},letterSpacing:{value:qt,label:"descLetterSpacing"},letterSpacingTablet:{value:Zt,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:$t,label:"descLetterSpacingMobile"},letterSpacingType:{value:Yt,label:"descLetterSpacingType"},transform:{value:Rt,label:"descTransform"},decoration:{value:Et,label:"descDecoration"}})),ca=React.createElement(je,{title:Object(r.__)("Author","ultimate-addons-for-gutenberg"),initialOpen:!1},""!==Wt&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Author Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"authorColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Author Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:B,label:"authorLoadGoogleFonts"},fontFamily:{value:w,label:"authorFontFamily"},fontWeight:{value:P,label:"authorFontWeight"},fontStyle:{value:x,label:"authorFontStyle"},fontSizeType:{value:C,label:"authorFontSizeType"},fontSize:{value:T,label:"authorFontSize"},fontSizeMobile:{value:k,label:"authorFontSizeMobile"},fontSizeTablet:{value:S,label:"authorFontSizeTablet"},lineHeightType:{value:A,label:"authorLineHeightType"},lineHeight:{value:G,label:"authorLineHeight"},lineHeightMobile:{value:R,label:"authorLineHeightMobile"},lineHeightTablet:{value:M,label:"authorLineHeightTablet"},letterSpacing:{value:Kt,label:"authorLetterSpacing"},letterSpacingTablet:{value:Jt,label:"authorLetterSpacingTablet"},letterSpacingMobile:{value:Xt,label:"authorLetterSpacingMobile"},letterSpacingType:{value:Qt,label:"authorLetterSpacingType"},transform:{value:Bt,label:"authorTransform"},decoration:{value:Ot,label:"authorDecoration"}})),Oe&&"null"!==Oe.url&&""!==Oe.url&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Author Image Size","ultimate-addons-for-gutenberg"),data:{value:qe,label:"authorImageSize"},setAttributes:t,options:ia}),React.createElement(tl,{label:Object(r.__)("Author Image Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:He,label:"authorImageWidth"},tablet:{value:Fe,label:"authorImageWidthTablet"},mobile:{value:ze,label:"authorImageWidthMobile"}},min:0,max:500,unit:{value:De,label:"authorImageWidthUnit"},setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Image Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ze,label:"authorImgBorderRadius"},tablet:{value:$e,label:"authorImgBorderRadiusTablet"},mobile:{value:Ye,label:"authorImgBorderRadiusMobile"}},min:0,max:50,unit:{value:it,label:"authorImgBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}))),ua=React.createElement(je,{title:Object(r.__)("Twitter Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:ne,onChange:()=>t({enableTweet:!ne})}),ne&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Twitter Username","ultimate-addons-for-gutenberg"),data:{value:Re,label:"iconShareVia"},setAttributes:t,value:Re,onChange:e=>t({iconShareVia:e})}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon View","ultimate-addons-for-gutenberg"),data:{value:Ae,label:"iconView"},className:"uagb-multi-button-alignment-control",options:[{value:"icon_text",label:Object(r.__)("Both","ultimate-addons-for-gutenberg")},{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Icon Style","ultimate-addons-for-gutenberg"),data:{value:Ge,label:"iconSkin"},className:"uagb-multi-button-alignment-control",options:[{value:"classic",label:Object(r.__)("Classic","ultimate-addons-for-gutenberg")},{value:"bubble",label:Object(r.__)("Bubble","ultimate-addons-for-gutenberg")},{value:"link",label:Object(r.__)("Link","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Target URL","ultimate-addons-for-gutenberg"),data:{value:Be,label:"iconTargetUrl"},className:"uagb-multi-button-alignment-control",options:[{value:"current",label:Object(r.__)("Current Page","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(r.__)("Custom URL","ultimate-addons-for-gutenberg")}],showIcons:!1}),"custom"===Be&&React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:Ue,data:{value:Ue,label:"customUrl"},setAttributes:t,onChange:e=>t({customUrl:e})})),ne&&"icon"!==Ae&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Label","ultimate-addons-for-gutenberg"),value:Me,data:{value:Me,label:"iconLabel"},setAttributes:t,onChange:e=>t({iconLabel:e})}))),pa=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},Oe&&Oe.url&&React.createElement(tl,{label:Object(r.__)("Author - Image Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ne,label:"authorImageGap"},tablet:{value:Ie,label:"authorImageGapTablet"},mobile:{value:Ve,label:"authorImageGapMobile"}},min:0,max:500,unit:{value:We,label:"authorImageGapUnit"},setAttributes:t}),"quotation"===i&&React.createElement(Pl,qy({},e,{label:Object(r.__)("Quote Icon Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Je,label:"quoteTopMargin"},valueRight:{value:et,label:"quoteRightMargin"},valueBottom:{value:Xe,label:"quoteBottomMargin"},valueLeft:{value:Qe,label:"quoteLeftMargin"},valueTopTablet:{value:Ht,label:"quoteTopMarginTablet"},valueRightTablet:{value:zt,label:"quoteRightMarginTablet"},valueBottomTablet:{value:Ft,label:"quoteBottomMarginTablet"},valueLeftTablet:{value:jt,label:"quoteLeftMarginTablet"},valueTopMobile:{value:Dt,label:"quoteTopMarginMobile"},valueRightMobile:{value:Vt,label:"quoteRightMarginMobile"},valueBottomMobile:{value:Nt,label:"quoteBottomMarginMobile"},valueLeftMobile:{value:It,label:"quoteLeftMarginMobile"},unit:{value:rt,label:"quoteUnit"},mUnit:{value:st,label:"quotemobileUnit"},tUnit:{value:ct,label:"quotetabletUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Mt,label:"spacingLink"}})),"border"===i&&React.createElement(tl,{label:Object(r.__)("Border - Quote Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:N,label:"borderGap"},tablet:{value:I,label:"borderGapTablet"},mobile:{value:V,label:"borderGapMobile"}},min:0,max:200,unit:{value:ut,label:"borderGapUnit"},setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Quote Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:U,label:"descSpace"},tablet:{value:E,label:"descSpaceTablet"},mobile:{value:O,label:"descSpaceMobile"}},min:0,max:200,unit:{value:pt,label:"descSpaceUnit"},setAttributes:t}),"center"===o&&"border"!==i&&React.createElement(tl,{label:Object(r.__)("Author Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:L,label:"authorSpace"},tablet:{value:H,label:"authorSpaceTablet"},mobile:{value:F,label:"authorSpaceMobile"}},min:0,max:200,unit:{value:dt,label:"authorSpaceUnit"},setAttributes:t}),"border"===i&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Vertical Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:W,label:"verticalPadding"},tablet:{value:q,label:"verticalPaddingTablet"},mobile:{value:Z,label:"verticalPaddingMobile"}},min:0,max:500,unit:{value:bt,label:"verticalPaddingUnit"},setAttributes:t})));return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{key:"controls"}),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,ra,ua),React.createElement(il,nl,(()=>{const e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:$||"",data:{value:$,label:"quoteColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Y||"",data:{value:Y,label:"quoteBgColor"},setAttributes:t})),a=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:tt||"",data:{value:tt,label:"quoteHoverColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:at||"",data:{value:at,label:"quoteBgHoverColor"},setAttributes:t}));return React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},"border"===i&&(()=>{const e=React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:j||"",data:{value:j,label:"borderColor"},setAttributes:t}),a=React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:lt||"",data:{value:lt,label:"borderHoverColor"},setAttributes:t});return React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Border Style","ultimate-addons-for-gutenberg"),data:{value:z,label:"borderStyle"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(r.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(r.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(r.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(r.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!==z&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:D,data:{value:D,label:"borderWidth"},min:0,max:50,unit:{value:ot,label:"borderWidthUnit"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:e,hover:a,disableBottomSeparator:!0})))})(),"quotation"===i&&na,"quotation"===i&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:e,hover:a,disableBottomSeparator:!0}))})(),ne&&React.createElement(je,{title:Object(r.__)("Twitter Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},"link"===Ge&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:re||"",data:{value:re,label:"tweetLinkColor"},setAttributes:t}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ce||"",data:{value:ce,label:"tweetBtnHoverColor"},setAttributes:t})}),"link"!==Ge&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:se||"",data:{value:se,label:"tweetBtnColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ue||"",data:{value:ue,label:"tweetBtnBgColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ce||"",data:{value:ce,label:"tweetBtnHoverColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:pe||"",data:{value:pe,label:"tweetBtnBgHoverColor"},setAttributes:t}))}),"icon_text"===Ae&&React.createElement(Qa,{label:Object(r.__)("Icon & Text Spacing","ultimate-addons-for-gutenberg"),setAttributes:t,value:Pe,data:{value:Pe,label:"tweetIconSpacing"},min:0,max:20,unit:{value:xe,label:"tweetIconSpacingUnit"},initialPosition:5}),"link"!==Ge&&React.createElement(Pl,qy({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:gt,label:"paddingBtnTop"},valueRight:{value:ft,label:"paddingBtnRight"},valueBottom:{value:mt,label:"paddingBtnBottom"},valueLeft:{value:yt,label:"paddingBtnLeft"},valueTopTablet:{value:ht,label:"paddingBtnTopTablet"},valueRightTablet:{value:vt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:_t,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:Tt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:Ct,label:"paddingBtnTopMobile"},valueRightMobile:{value:St,label:"paddingBtnRightMobile"},valueBottomMobile:{value:kt,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:wt,label:"paddingBtnLeftMobile"},unit:{value:Pt,label:"paddingBtnUnit"},mUnit:{value:xt,label:"mobilePaddingBtnUnit"},tUnit:{value:At,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Gt,label:"btnspacingLink"}})),"icon"!==Ae&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:we,label:"tweetBtnLoadGoogleFonts"},fontFamily:{value:fe,label:"tweetBtnFontFamily"},fontWeight:{value:he,label:"tweetBtnFontWeight"},fontStyle:{value:ve,label:"tweetBtnFontStyle"},fontSizeType:{value:be,label:"tweetBtnFontSizeType"},fontSize:{value:de,label:"tweetBtnFontSize"},fontSizeMobile:{value:ye,label:"tweetBtnFontSizeMobile"},fontSizeTablet:{value:me,label:"tweetBtnFontSizeTablet"},lineHeightType:{value:_e,label:"tweetBtnLineHeightType"},lineHeight:{value:Te,label:"tweetBtnLineHeight"},lineHeightMobile:{value:ke,label:"tweetBtnLineHeightMobile"},lineHeightTablet:{value:Se,label:"tweetBtnLineHeightTablet"},letterSpacing:{value:ea,label:"tweetBtnLetterSpacing"},letterSpacingTablet:{value:ta,label:"tweetBtnLetterSpacingTablet"},letterSpacingMobile:{value:aa,label:"tweetBtnLetterSpacingMobile"},letterSpacingType:{value:la,label:"tweetBtnLetterSpacingType"},transform:{value:Ut,label:"tweetBtnTransform"},decoration:{value:Lt,label:"tweetBtnDecoration"}})),sa,ca,pa),React.createElement(il,qy({},rl,{parentProps:e})))))}),Yy=e=>{let{attributes:t,setAttributes:a,props:l}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:t.descriptionText,placeholder:Object(r.__)("Write a Quote","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__content",onChange:e=>a({descriptionText:e}),onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;nl.onReplace([])}):React.createElement(ge.RichText.Content,{tagName:"div",value:t.descriptionText,className:"uagb-blockquote__content"})},Ky=e=>{let{attributes:t}=e,a="";void 0!==t.authorImage&&null!==t.authorImage&&""!==t.authorImage&&(a=t.authorImage.url);let l="";if(""!==a){const e=t.authorImage.sizes,{authorImageSize:i,authorImageWidth:o}=t;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("img",{className:"",src:l,alt:t.authorImage.alt,width:o,height:o,loading:"lazy"})}return null},Jy=e=>{let{attributes:t,setAttributes:a,props:l}=e;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:t.author,placeholder:Object(r.__)("Author","ultimate-addons-for-gutenberg"),className:"uagb-blockquote__author",onChange:e=>a({author:e}),onMerge:l.mergeBlocks,onSplit:l.insertBlocksAfter?function(e,t){a({content:e});for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;nl.onReplace([])}):React.createElement(ge.RichText.Content,{tagName:"cite",value:t.author,className:"uagb-blockquote__author"})},Xy=function(e){const{attributes:t}=e;return React.createElement("a",{onClick:e=>e.preventDefault(),href:"/",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon,t.iconLabel),"icon"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon),"text"===t.iconView&&React.createElement(React.Fragment,null,t.iconLabel))},Qy=a(107),ef=0,tf={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},af={};af.locals=Qy.a.locals||{},af.use=function(){return ef++||(Zy=we()(Qy.a,tf)),af},af.unuse=function(){ef>0&&!--ef&&(Zy(),Zy=null)};var lf=af,of=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(lf.use(),()=>{lf.unuse()}),[]);const{className:t,setAttributes:a,attributes:l,deviceType:i}=e,{block_id:o,skinStyle:n,align:r,stack:s,quoteStyle:c,enableTweet:u,iconView:p,iconSkin:d,authorImage:b,authorImgPosition:g}=l;return React.createElement("div",{className:Be()(t,"uagb-block-"+o,"uagb-editor-preview-mode-"+i.toLowerCase(),"uagb-blockquote__skin-"+n,"border"!==n?"uagb-blockquote__align-"+r:"","quotation"===n?"uagb-blockquote__style-"+c:"",u?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${d} uagb-blockquote__tweet-${p}`:"","uagb-blockquote__stack-img-"+s)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===n&&React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon),React.createElement(Yy,{attributes:l,setAttributes:a,props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==b?"uagb-blockquote__author-at-"+g:"")},React.createElement(Ky,{attributes:l}),React.createElement(Jy,{attributes:l,setAttributes:a,props:e})),u&&React.createElement(Xy,{attributes:l}))))}),nf=Object(L.compose)(ls,fe)(e=>{const{attributes:t,attributes:{UAGHideDesktop:a,UAGHideTab:l,UAGHideMob:i,authorImageWidthUnit:o,authorImgBorderRadiusUnit:n},isSelected:r,setAttributes:s,clientId:c,name:u,deviceType:p}=e;Object(B.useEffect)(()=>{void 0===o&&s({authorImageWidthUnit:"px"}),void 0===n&&s({authorImgBorderRadiusUnit:"%"})},[]),Object(B.useEffect)(()=>{ys()},[p]),Object(B.useEffect)(()=>{he(e)},[a,l,i,p]);const d=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,skinStyle:r,align:s,authorColor:c,descColor:u,descFontSize:p,descFontSizeType:d,descFontSizeTablet:b,descFontSizeMobile:g,descFontFamily:m,descFontWeight:y,descLineHeightType:f,descLineHeight:h,descLineHeightTablet:v,descLineHeightMobile:_,authorFontSize:T,authorFontSizeType:C,authorFontSizeTablet:S,authorFontSizeMobile:k,authorFontFamily:w,authorFontWeight:P,authorLineHeightType:x,authorLineHeight:A,authorLineHeightTablet:G,authorLineHeightMobile:M,descSpace:R,descSpaceTablet:B,descSpaceMobile:U,authorSpace:E,authorSpaceTablet:O,authorSpaceMobile:L,borderColor:H,borderStyle:F,borderWidth:j,borderGap:z,borderGapTablet:D,borderGapMobile:N,verticalPadding:I,verticalPaddingTablet:V,verticalPaddingMobile:W,verticalPaddingUnit:q,quoteColor:Z,quoteSize:$,quoteSizeType:Y,quoteSizeTablet:K,quoteSizeMobile:J,quoteBgColor:X,enableTweet:Q,tweetBtnFontSize:ee,tweetBtnFontSizeType:te,tweetBtnFontSizeTablet:le,tweetBtnFontSizeMobile:ie,tweetBtnFontFamily:oe,tweetBtnFontWeight:ne,tweetBtnLineHeightType:re,tweetBtnLineHeight:se,tweetBtnLineHeightTablet:ce,tweetBtnLineHeightMobile:ue,tweetLinkColor:pe,tweetBtnColor:de,tweetBtnBgColor:be,tweetBtnHoverColor:ge,tweetBtnBgHoverColor:me,tweetIconSpacing:ye,tweetIconSpacingUnit:fe,authorImageWidth:he,authorImageWidthTablet:ve,authorImageWidthMobile:_e,authorImageWidthUnit:Te,authorImageGap:Ce,authorImageGapTablet:Se,authorImageGapMobile:ke,authorImageGapUnit:we,authorImgBorderRadius:Pe,authorImgBorderRadiusTablet:xe,authorImgBorderRadiusMobile:Ae,quoteBorderRadius:Ge,quoteTopMargin:Me,quoteBottomMargin:Re,quoteLeftMargin:Be,quoteRightMargin:Ue,quoteHoverColor:Ee,quoteBgHoverColor:Oe,borderHoverColor:Le,quotePadding:He,quotePaddingType:Fe,quotePaddingTablet:je,quotePaddingMobile:ze,authorImgBorderRadiusUnit:De,borderWidthUnit:Ne,quoteBorderRadiusUnit:Ie,quoteUnit:Ve,borderGapUnit:We,descSpaceUnit:qe,authorSpaceUnit:Ze,paddingBtnTop:$e,paddingBtnBottom:Ye,paddingBtnLeft:Ke,paddingBtnRight:Je,paddingBtnTopTablet:Xe,paddingBtnRightTablet:Qe,paddingBtnBottomTablet:et,paddingBtnLeftTablet:tt,paddingBtnTopMobile:at,paddingBtnRightMobile:lt,paddingBtnBottomMobile:it,paddingBtnLeftMobile:ot,paddingBtnUnit:nt,mobilePaddingBtnUnit:rt,tabletPaddingBtnUnit:st,descTransform:ct,authorTransform:ut,tweetBtnTransform:pt,descDecoration:dt,authorDecoration:bt,tweetBtnDecoration:gt,quoteTopMarginTablet:mt,quoteBottomMarginTablet:yt,quoteLeftMarginTablet:ft,quoteRightMarginTablet:ht,quoteTopMarginMobile:vt,quoteBottomMarginMobile:_t,quoteLeftMarginMobile:Tt,quoteRightMarginMobile:Ct,quotemobileUnit:St,quotetabletUnit:kt,descFontStyle:wt,authorFontStyle:Pt,tweetBtnFontStyle:xt,stack:At,descLetterSpacing:Gt,descLetterSpacingTablet:Mt,descLetterSpacingMobile:Rt,descLetterSpacingType:Bt,authorLetterSpacing:Ut,authorLetterSpacingTablet:Et,authorLetterSpacingMobile:Ot,authorLetterSpacingType:Lt,tweetBtnLetterSpacing:Ht,tweetBtnLetterSpacingTablet:Ft,tweetBtnLetterSpacingMobile:jt,tweetBtnLetterSpacingType:zt}=e;let Dt=E,Nt=O,It=L;"center"===s&&"border"!==r||(Dt=0,Nt=0,It=0);const Vt=us(R,"descSpace",i),Wt=us(B,"descSpaceTablet",i),qt=us(U,"descSpaceMobile",i),Zt=us(j,"borderWidth",i),$t=us(z,"borderGap",i),Yt=us(D,"borderGapTablet",i),Kt=us(N,"borderGapMobile",i),Jt=us(Ge,"quoteBorderRadius",i),Xt=us($,"quoteSize",i),Qt=us(K,"quoteSizeTablet",i),ea=us(J,"quoteSizeMobile",i),ta=us(Dt,"authorSpace",i),aa=us(Nt,"authorSpaceTablet",i),la=us(It,"authorSpaceMobile",i),ia=us(he,"authorImageWidth",i),oa=us(ve,"authorImageWidthTablet",i),na=us(_e,"authorImageWidthMobile",i),ra=us(Ce,"authorImageGap",i),sa=us(Se,"authorImageGapTablet",i),ca=us(ke,"authorImageGapMobile",i),ua=us(ye,"tweetIconSpacing",i);let pa=s;"border"===r&&(pa="left");const da={" .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":Vr(p,d),"font-family":m,"font-weight":y,"line-height":Vr(h,f),"font-style":wt,"text-decoration":dt,"text-transform":ct,color:u,"margin-bottom":Vr(Vt,qe),"text-align":pa,"letter-spacing":Vr(Gt,Bt)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":Vr(T,C),"font-family":w,"font-weight":P,"line-height":Vr(A,x),"font-style":Pt,"text-decoration":bt,"text-transform":ut,color:c,"text-align":pa,"letter-spacing":Vr(Ut,Lt)},".uagb-blockquote__skin-border blockquote.uagb-blockquote":{"border-color":H,"border-left-style":F,"border-left-width":Vr(Zt,Ne),"padding-left":Vr($t,We),"padding-top":Vr(I,q),"padding-bottom":Vr(I,q)},".uagb-blockquote__skin-border blockquote.uagb-blockquote:hover":{"border-left-color":Le},".uagb-blockquote__skin-quotation .uagb-blockquote__icon":{background:X,"border-radius":Vr(Jt,Ie),"margin-top":Vr(Me,Ve),"margin-bottom":Vr(Re,Ve),"margin-left":Vr(Be,Ve),"margin-right":Vr(Ue,Ve),padding:Vr(He,Fe)},".uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{width:Vr(Xt,Y),height:Vr(Xt,Y),fill:Z},".uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover":{background:Oe},".uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg":{fill:Ee},".uagb-blockquote__style-style_1 .uagb-blockquote":{"text-align":s}," .uagb-blockquote__author-wrap":{"margin-bottom":Vr(ta,Ze)}," .uagb-blockquote__author-wrap img":{width:Vr(ia,Te),height:Vr(ia,Te),"border-radius":Vr(Pe,De)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right img":{"margin-left":Vr(ra,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top img":{"margin-bottom":Vr(ra,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left img":{"margin-right":Vr(ra,we)}};if(Q){da[" a.uagb-blockquote__tweet-button"]={"font-size":Vr(ee,te),"font-family":oe,"font-weight":ne,"line-height":Vr(se,re),"font-style":xt,"text-decoration":gt,"text-transform":pt,"letter-spacing":Vr(Ht,zt)},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"]={color:pe},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"]={fill:pe},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"]={color:de,"background-color":be,"padding-left":Vr(Ke,nt),"padding-right":Vr(Je,nt),"padding-top":Vr($e,nt),"padding-bottom":Vr(Ye,nt)},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"]={color:de,"background-color":be,"padding-left":Vr(Ke,nt),"padding-right":Vr(Je,nt),"padding-top":Vr($e,nt),"padding-bottom":Vr(Ye,nt)},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"]={fill:de},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"]={fill:de},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"]={"border-right-color":be},da[" a.uagb-blockquote__tweet-button svg"]={width:Vr(ee,te),height:Vr(ee,te)};const e="1"===uagb_blocks_info.is_rtl?"margin-left":"margin-right";da[".uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"]={[e]:Vr(ua,fe)},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"]={color:ge},da[".uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"]={fill:ge},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"]={color:ge,"background-color":me},da[".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"]={fill:ge,"background-color":me},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover "]={color:ge,"background-color":me},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"]={fill:ge,"background-color":me},da[".uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"]={"border-right-color":me}}const ba={".uagb-blockquote__skin-quotation .uagb-blockquote__icon":{"margin-top":Vr(mt,kt),"margin-bottom":Vr(yt,kt),"margin-left":Vr(ft,kt),"margin-right":Vr(ht,kt),padding:Vr(je,Fe)}," .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":Vr(b,d),"line-height":Vr(v,f),"margin-bottom":Vr(Wt,qe),"letter-spacing":Vr(Mt,Bt)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":Vr(S,C),"line-height":Vr(G,x),"letter-spacing":Vr(Et,Lt)}," a.uagb-blockquote__tweet-button":{"font-size":Vr(le,te),"line-height":Vr(ce,re),"letter-spacing":Vr(Ft,zt)}," a.uagb-blockquote__tweet-button svg":{width:Vr(le,te),height:Vr(le,te)},".uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{width:Vr(Qt,Y),height:Vr(Qt,Y)},".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button":{"padding-left":Vr(tt,st),"padding-right":Vr(Qe,st),"padding-top":Vr(Xe,st),"padding-bottom":Vr(et,st)},".uagb-blockquote__skin-border blockquote.uagb-blockquote":{"padding-top":Vr(V,q),"padding-bottom":Vr(V,q),"padding-left":Vr(Yt,We)}," .uagb-blockquote__author-wrap":{"margin-bottom":Vr(aa,Ze)}," .uagb-blockquote__author-wrap img":{width:Vr(oa,Te),height:Vr(oa,Te),"border-radius":Vr(xe,De)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right img":{"margin-left":"tablet"===At?"0px":Vr(sa,we),"margin-bottom":"tablet"===At?Vr(sa,we):"0px"}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top img":{"margin-bottom":Vr(sa,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left img":{"margin-right":"tablet"===At?"0px":Vr(sa,we),"margin-bottom":"tablet"===At?Vr(sa,we):"0px"}},ga={".uagb-blockquote__skin-quotation .uagb-blockquote__icon":{"margin-top":Vr(vt,St),"margin-bottom":Vr(_t,St),"margin-left":Vr(Tt,St),"margin-right":Vr(Ct,St),padding:Vr(ze,Fe)}," .uagb-blockquote__content.block-editor-rich-text__editable":{"font-size":Vr(g,d),"line-height":Vr(_,f),"margin-bottom":Vr(qt,qe),"letter-spacing":Vr(Rt,Bt)}," .uagb-blockquote__author.block-editor-rich-text__editable":{"font-size":Vr(k,C),"line-height":Vr(M,x),"letter-spacing":Vr(Ot,Lt)}," a.uagb-blockquote__tweet-button":{"font-size":Vr(ie,te),"line-height":Vr(ue,re),"letter-spacing":Vr(jt,zt)}," a.uagb-blockquote__tweet-button svg":{width:Vr(ie,te),height:Vr(ie,te)},".uagb-blockquote__skin-quotation .uagb-blockquote__icon svg":{width:Vr(ea,Y),height:Vr(ea,Y)},".uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button":{"padding-left":Vr(ot,rt),"padding-right":Vr(lt,rt),"padding-top":Vr(at,rt),"padding-bottom":Vr(it,rt)},".uagb-blockquote__skin-border blockquote.uagb-blockquote":{"padding-top":Vr(W,q),"padding-bottom":Vr(W,q),"padding-left":Vr(Kt,We)}," .uagb-blockquote__author-wrap":{"margin-bottom":Vr(la,Ze)}," .uagb-blockquote__author-wrap img":{width:Vr(na,Te),height:Vr(na,Te),"border-radius":Vr(Ae,De)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right img":{"margin-left":"none"!==At?"0px":Vr(ca,we),"margin-bottom":"none"!==At?Vr(ca,we):"0px"}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top img":{"margin-bottom":Vr(ca,we)}," .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left img":{"margin-right":"none"!==At?"0px":Vr(ca,we),"margin-bottom":"none"!==At?Vr(ca,we):"0px"}},ma=".editor-styles-wrapper .uagb-block-"+n;let ya=ae(da,ma);return"tablet"!==o&&"mobile"!==o||(ya+=ae(ba,""+ma,!0,"tablet"),"mobile"===o&&(ya+=ae(ga,""+ma,!0,"mobile"))),ya}(t,0,u,p),[t,p]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:d}),React.createElement(Wy,{attributes:t}),r&&React.createElement($y,e),React.createElement(of,e))});a(224);var rf=e=>{let{attributes:t}=e;return React.createElement("a",{href:"/",className:"uagb-blockquote__tweet-button",target:"_blank",rel:"noopener noreferrer"},"icon_text"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon,React.createElement("span",{className:"uagb-blockquote__tweet-label"},t.iconLabel)),"icon"===t.iconView&&React.createElement(React.Fragment,null,se.quote_tweet_icon),"text"===t.iconView&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-blockquote__tweet-label"},t.iconLabel)))},sf=e=>{let{attributes:t}=e,a="";void 0!==t.authorImage&&null!==t.authorImage&&""!==t.authorImage&&(a=t.authorImage.url);let l="";if(""!==a){const e=t.authorImage.sizes,i=t.authorImageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("div",{className:"uagb-blockquote__author-image"},React.createElement("img",{className:"",src:l,alt:t.authorImage.alt}))}return null},cf=e=>{let{attributes:t}=e,a="";void 0!==t.authorImage&&null!==t.authorImage&&""!==t.authorImage&&(a=t.authorImage.url);let l="";if(""!==a){const e=t.authorImage.sizes,i=t.authorImageSize;return l=void 0!==e&&void 0!==e[i]?e[i].url:a,React.createElement("img",{className:"",src:l,alt:t.authorImage.alt})}return null};const uf={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"},quoteBorderRadiusUnit:{type:"string",default:"%"},paddingBtnUnit:{type:"string",default:"px"},mobilePaddingBtnUnit:{type:"string",default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px"},tweetIconSpacingUnit:{type:"string",default:"px"},quoteUnit:{type:"string",default:"px"},quotemobileUnit:{type:"string",default:"px"},quotetabletUnit:{type:"string",default:"px"},descSpaceUnit:{type:"string",default:"px"},borderWidthUnit:{type:"string",default:"px"},borderGapUnit:{type:"string",default:"px"},verticalPaddingUnit:{type:"string",default:"px"}};var pf=[{attributes:uf,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-"+t},React.createElement("div",{className:Be()("uagb-blockquote__wrap","uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("div",{className:"uagb-blockquote__icon-wrap"},React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon)),React.createElement("div",{className:"uagb-blockquote__content-wrap"},""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(sf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(rf,{attributes:e.attributes}))))))}},{attributes:uf,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-blockquote__outer-wrap"),id:"uagb-blockquote-"+t},React.createElement("div",{className:Be()("uagb-blockquote__wrap","uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("div",{className:"uagb-blockquote__icon-wrap"},React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon)),React.createElement("div",{className:"uagb-blockquote__content-wrap"},""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(sf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(rf,{attributes:e.attributes}))))))}},{attributes:uf,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-blockquote__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()("uagb-blockquote__wrap","uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("div",{className:"uagb-blockquote__icon-wrap"},React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon)),React.createElement("div",{className:"uagb-blockquote__content-wrap"},""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(sf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(rf,{attributes:e.attributes}))))))}},{attributes:jt,save(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon),""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(cf,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(Xy,{attributes:e.attributes}))))}}],df={from:[{type:"block",blocks:["core/quote"],transform:e=>Object(de.createBlock)("uagb/blockquote",{descriptionText:e.value,author:e.citation,align:e.align,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)})},{type:"block",blocks:["core/pullquote"],transform:e=>{var t,a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,V;return Object(de.createBlock)("uagb/blockquote",{descriptionText:e.value,author:(null==e?void 0:e.citation)||"",align:(null==e?void 0:e.textAlign)||"center",enableTweet:!1,descColor:(null==e||null===(t=e.style)||void 0===t||null===(a=t.color)||void 0===a?void 0:a.text)||Pc(null==e?void 0:e.textColor)||"",authorColor:(null==e||null===(l=e.style)||void 0===l||null===(i=l.color)||void 0===i?void 0:i.text)||Pc(null==e?void 0:e.textColor)||"",descFontSize:N((null==e||null===(o=e.style)||void 0===o||null===(n=o.typography)||void 0===n?void 0:n.fontSize)||"16"),authorFontSize:N((null==e||null===(r=e.style)||void 0===r||null===(s=r.typography)||void 0===s?void 0:s.fontSize)||"16"),descFontSizeType:I((null==e||null===(c=e.style)||void 0===c||null===(u=c.typography)||void 0===u?void 0:u.fontSize)||""),authorFontSizeType:I((null==e||null===(p=e.style)||void 0===p||null===(d=p.typography)||void 0===d?void 0:d.fontSize)||""),descFontWeight:(null==e||null===(b=e.style)||void 0===b||null===(g=b.typography)||void 0===g?void 0:g.fontWeight)||"",authorFontWeight:(null==e||null===(m=e.style)||void 0===m||null===(y=m.typography)||void 0===y?void 0:y.fontWeight)||"",descLetterSpacing:N((null==e||null===(f=e.style)||void 0===f||null===(h=f.typography)||void 0===h?void 0:h.letterSpacing)||"0"),authorLetterSpacing:N((null==e||null===(v=e.style)||void 0===v||null===(_=v.typography)||void 0===_?void 0:_.letterSpacing)||"0"),descLetterSpacingType:I((null==e||null===(T=e.style)||void 0===T||null===(C=T.typography)||void 0===C?void 0:C.letterSpacing)||""),authorLetterSpacingType:I((null==e||null===(S=e.style)||void 0===S||null===(k=S.typography)||void 0===k?void 0:k.letterSpacing)||""),descDecoration:(null==e||null===(w=e.style)||void 0===w||null===(P=w.typography)||void 0===P?void 0:P.textDecoration)||"",authorDecoration:(null==e||null===(x=e.style)||void 0===x||null===(A=x.typography)||void 0===A?void 0:A.textDecoration)||"",descTransform:(null==e||null===(G=e.style)||void 0===G||null===(M=G.typography)||void 0===M?void 0:M.textTransform)||"",authorTransform:(null==e||null===(R=e.style)||void 0===R||null===(B=R.typography)||void 0===B?void 0:B.textTransform)||"",descLineHeight:N((null==e||null===(U=e.style)||void 0===U||null===(E=U.typography)||void 0===E?void 0:E.lineHeight)||"1.5"),authorLineHeight:N((null==e||null===(O=e.style)||void 0===O||null===(L=O.typography)||void 0===L?void 0:L.lineHeight)||"1.5"),skinStyle:"quotation",quoteStyle:"style_1",descFontStyle:"normal",quoteColor:(null==e||null===(H=e.style)||void 0===H||null===(F=H.color)||void 0===F?void 0:F.text)||Pc(null==e?void 0:e.textColor)||"",quoteSize:N((null==e||null===(j=e.style)||void 0===j||null===(z=j.typography)||void 0===z?void 0:z.fontSize)||"16"),quoteSizeType:I((null==e||null===(D=e.style)||void 0===D||null===(V=D.typography)||void 0===V?void 0:V.fontSize)||"")})}},{type:"block",blocks:["core/heading"],transform:e=>Object(de.createBlock)("uagb/blockquote",{descriptionText:e.content,align:e.textAlign,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)})},{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("uagb/blockquote",{descriptionText:e.content,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)})},{type:"block",blocks:["core/list"],transform:(e,t)=>{const a=[];return t.forEach((e,l)=>{a.push({text:t[l].attributes.content})}),a.map(t=>Object(de.createBlock)("uagb/blockquote",{descriptionText:t.text,descColor:Pc(e.textColor),authorColor:Pc(e.backgroundColor)}))}}],to:[{type:"block",blocks:["core/quote"],transform:e=>Object(de.createBlock)("core/quote",{value:`

    ${e.descriptionText}

    `,citation:e.author,align:e.align})},{type:"block",blocks:["core/heading"],transform:e=>Object(de.createBlock)("core/heading",{content:e.descriptionText,align:e.align})},{type:"block",blocks:["core/paragraph"],transform:e=>Object(de.createBlock)("core/paragraph",{content:e.descriptionText,align:e.align})}]};let bf={};bf=Object(F.applyFilters)("uagb/blockquote",ss(bf)),Object(de.registerBlockType)("uagb/blockquote",{...bf,title:Object(r.__)("Blockquote","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display qoutes/quoted texts using blockquote.","ultimate-addons-for-gutenberg"),icon:se.blockquote,keywords:[Object(r.__)("blockquote","ultimate-addons-for-gutenberg"),Object(r.__)("quote","ultimate-addons-for-gutenberg"),Object(r.__)("uagb","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:jt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"blockquote"}):React.createElement(nf,e),save:function(e){const{block_id:t,skinStyle:a,align:l,quoteStyle:i,iconSkin:o,authorImage:n,enableTweet:r,iconView:s,author:c,descriptionText:u,authorImgPosition:p,stack:d}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-block-"+t,"uagb-blockquote__skin-"+a,"border"!==a?"uagb-blockquote__align-"+l:"","quotation"===a?"uagb-blockquote__style-"+i:"",r?`uagb-blockquote__with-tweet uagb-blockquote__tweet-style-${o} uagb-blockquote__tweet-${s}`:"","uagb-blockquote__stack-img-"+d)},React.createElement("blockquote",{className:"uagb-blockquote"},"quotation"===a&&React.createElement("span",{className:"uagb-blockquote__icon"},se.quote_inline_icon),""!==u&&React.createElement(Yy,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("footer",null,React.createElement("div",{className:Be()("uagb-blockquote__author-wrap",""!==n?"uagb-blockquote__author-at-"+p:"")},React.createElement(Ky,{attributes:e.attributes}),""!==c&&React.createElement(Jy,{attributes:e.attributes,setAttributes:"not_set",props:e})),r&&React.createElement(Xy,{attributes:e.attributes}))))},deprecated:pf,transforms:df}),a(58);var gf=function(e,t){let a="uagb-timeline__arrow-top ";"center"===e.arrowlinAlignment?a="uagb-timeline__arrow-center ":"bottom"===e.arrowlinAlignment&&(a="uagb-timeline__arrow-bottom ");let l=t;"Desktop"===t&&(l="");const i=void 0!==e["timelinAlignment"+l]?e["timelinAlignment"+l]:e.timelinAlignment;let o="uagb-timeline__center-block ";return"left"===i?o="uagb-timeline__left-block ":"right"===i&&(o="uagb-timeline__right-block "),o+=a+"",o+=" uagb-timeline",[o]},mf=function(e,t,a){let l="",i=a;"Desktop"===a&&(i="");const o=void 0!==e["timelinAlignment"+i]?e["timelinAlignment"+i]:e.timelinAlignment;return"left"===o?l="uagb-timeline__left":"right"===o?l="uagb-timeline__right":"center"===o&&(l=t%2==0?"uagb-timeline__right":"uagb-timeline__left"),[l]},yf=function(e,t,a){let l="",i=a;"Desktop"===a&&(i="");const o=void 0!==e["timelinAlignment"+i]?e["timelinAlignment"+i]:e.timelinAlignment;return"left"===o?l="uagb-timeline__day-new uagb-timeline__day-left":"right"===o?l="uagb-timeline__day-new uagb-timeline__day-right":"center"===o&&(l=t%2==0?"uagb-timeline__day-new uagb-timeline__day-right":"uagb-timeline__day-new uagb-timeline__day-left"),[l]};function ff(e){var t="uagb-timeline__arrow-top ";"center"==e.arrowlinAlignment?t="uagb-timeline__arrow-center ":"bottom"==e.arrowlinAlignment&&(t="uagb-timeline__arrow-bottom ");var a="uagb-timeline__center-block ";return"left"==e.timelinAlignment?a="uagb-timeline__left-block ":"right"==e.timelinAlignment&&(a="uagb-timeline__right-block "),a+=t+"",[a+="uagb-timeline__responsive-"+e.stack+" uagb-timeline"]}var hf=[{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,stack:s,className:c}=e.attributes,u=(Array.isArray(n)&&n.length,Object(Ry.getSettings)().formats.date);let p=mf(e.attributes,0),d=yf(e.attributes,0),b=!1;return React.createElement("div",{className:Be()(c,"uagb-timeline__outer-wrap"),id:"uagb-ctm-"+t},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{"center"==l&&(b=!0,p=mf(e.attributes,n),d=yf(e.attributes,n));const s="uagb-timeline__icon-new out-view-uagb-timeline__icon "+o;return React.createElement("article",{className:"uagb-timeline__field uagb-timeline__animate-border",key:n},React.createElement("div",{className:Be()(...p)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:s})),React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},Object(Ry.dateI18n)(u,r[n].title))),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),b&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},Object(Ry.dateI18n)(u,r[n].title)))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,stack:s,className:c}=e.attributes,u=(Array.isArray(n)&&n.length,Object(Ry.getSettings)().formats.date);let p=mf(e.attributes,0),d=yf(e.attributes,0),b=!1;return React.createElement("div",{className:Be()(c,"uagb-timeline__outer-wrap"),id:"uagb-ctm-"+t},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{"center"==l&&(b=!0,p=mf(e.attributes,n),d=yf(e.attributes,n));const s="uagb-timeline__icon-new out-view-uagb-timeline__icon "+o;let c=Object(Ry.dateI18n)(u,r[n].title);return"Invalid date"===c&&(c=r[n].title),React.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},React.createElement("div",{className:Be()(...p)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:s})),React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},c)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),b&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},c))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,date_icon:s,stack:c,timelineItem:u}=e.attributes,p=(Array.isArray(n)&&n.length,Object(Ry.getSettings)().formats.date);let d=mf(e.attributes,0),b=yf(e.attributes,0),g=!1;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap"),id:"uagb-ctm-"+t},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{if(u<=n)return;"center"==l&&(g=!0,d=mf(e.attributes,n),b=yf(e.attributes,n));let s=Object(Ry.dateI18n)(p,r[n].title);return"Invalid date"===s&&(s=r[n].title),React.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:"uagb-timeline__icon-new out-view-uagb-timeline__icon "},kb(o))),React.createElement("div",{className:Be()(...b)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},s)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),g&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},s))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t,headingTag:a,timelinAlignment:l,displayPostDate:i,icon:o,tm_content:n,t_date:r,date_icon:s,stack:c,timelineItem:u,dateFormat:p}=e.attributes;Array.isArray(n)&&n.length;let d=mf(e.attributes,0),b=yf(e.attributes,0),g=!1;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},n.map((t,n)=>{if(u<=n)return;"center"==l&&(g=!0,d=mf(e.attributes,n),b=yf(e.attributes,n));let s=r[n].title;return"custom"!=p&&(s=Object(Ry.dateI18n)(p,r[n].title),"Invalid date"===s&&(s=r[n].title)),React.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},React.createElement("div",{className:Be()(...d)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:"uagb-timeline__icon-new out-view-uagb-timeline__icon "},kb(o))),React.createElement("div",{className:Be()(...b)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__inner-date-new"},s)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:t.time_heading,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),g&&React.createElement("div",{className:"uagb-timeline__date-new"},i&&r[n].title&&React.createElement("div",{className:"uagb-timeline__date-new"},s))))})),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}},{attributes:Mt,save(e){const{block_id:t}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()("uagb-timeline__content-wrap",...ff(e.attributes))},React.createElement("div",{className:"uagb-timeline-wrapper"},React.createElement("div",{className:"uagb-timeline__main"},React.createElement("div",{className:"uagb-timeline__days"},React.createElement(ge.InnerBlocks.Content,null)),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"}))))))}}];function vf(){return(vf=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,clientId:a,attributes:{headSpace:l,headSpaceTablet:i,headSpaceMobile:o,headingColor:s,subHeadingColor:c,backgroundColor:u,separatorColor:p,separatorFillColor:d,separatorBg:b,separatorBorder:g,borderFocus:m,headingTag:y,headFontSizeType:f,headFontSize:h,headFontSizeTablet:v,headFontSizeMobile:_,headFontFamily:T,headFontWeight:C,headFontStyle:S,headLineHeightType:k,headLineHeight:w,headLineHeightTablet:P,headLineHeightMobile:x,headLoadGoogleFonts:A,timelinAlignment:G,timelinAlignmentTablet:M,timelinAlignmentMobile:R,arrowlinAlignment:B,subHeadFontSizeType:U,subHeadFontSize:E,subHeadFontSizeTablet:O,subHeadFontSizeMobile:L,subHeadFontFamily:H,subHeadFontWeight:F,subHeadFontStyle:j,subHeadLineHeightType:z,subHeadLineHeight:D,subHeadLineHeightTablet:N,subHeadLineHeightMobile:I,subHeadLoadGoogleFonts:V,separatorwidth:W,borderwidth:q,connectorBgsize:Z,connectorBgsizeTablet:$,connectorBgsizeMobile:Y,dateBottomspace:K,dateBottomspaceTablet:J,dateBottomspaceMobile:X,align:Q,alignTablet:ee,alignMobile:te,icon:ae,iconColor:le,dateColor:ie,dateFontSizeType:oe,dateFontSize:ne,dateFontSizeTablet:re,dateFontSizeMobile:se,dateFontFamily:ce,dateFontWeight:ue,dateFontStyle:pe,dateLineHeightType:de,dateLineHeight:be,dateLineHeightTablet:me,dateLineHeightMobile:ye,dateLoadGoogleFonts:fe,iconSize:he,iconSizeTablet:ve,iconSizeMobile:_e,borderRadius:Te,borderRadiusTablet:Se,borderRadiusMobile:ke,iconFocus:we,iconBgFocus:Pe,displayPostDate:xe,dateFormat:Ae,topPadding:Ge,rightPadding:Me,bottomPadding:Re,leftPadding:Be,topPaddingTablet:Ue,rightPaddingTablet:Oe,bottomPaddingTablet:He,leftPaddingTablet:Fe,topPaddingMobile:ze,rightPaddingMobile:De,bottomPaddingMobile:Ne,leftPaddingMobile:Ie,paddingUnit:Ve,mobilePaddingUnit:We,tabletPaddingUnit:qe,paddingLink:Ze,headTransform:$e,subHeadTransform:Ye,dateTransform:Ke,headDecoration:Je,subHeadDecoration:Xe,headLetterSpacing:Qe,headLetterSpacingTablet:et,headLetterSpacingMobile:tt,headLetterSpacingType:at,subHeadLetterSpacing:lt,subHeadLetterSpacingTablet:it,subHeadLetterSpacingMobile:ot,subHeadLetterSpacingType:nt,dateLetterSpacing:rt,dateLetterSpacingTablet:st,dateLetterSpacingMobile:ct,dateLetterSpacingType:ut,dateDecoration:pt,verticalSpace:dt,verticalSpaceTablet:bt,verticalSpaceMobile:gt,verticalSpaceUnit:mt,verticalSpaceUnitTablet:yt,verticalSpaceUnitMobile:ft,horizontalSpace:ht,horizontalSpaceTablet:vt,horizontalSpaceMobile:_t,horizontalSpaceUnit:Tt,horizontalSpaceUnitTablet:Ct,horizontalSpaceUnitMobile:St}}=e,kt=new Date;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Orientation","ultimate-addons-for-gutenberg"),data:{desktop:{value:G,label:"timelinAlignment"},tablet:{value:M,label:"timelinAlignmentTablet"},mobile:{value:R,label:"timelinAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Q,label:"align"},tablet:{value:ee,label:"alignTablet"},mobile:{value:te,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Arrow Alignment","ultimate-addons-for-gutenberg"),data:{value:B,label:"arrowlinAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement("h2",null,Object(r.__)("Date","ultimate-addons-for-gutenberg")),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Date","ultimate-addons-for-gutenberg"),checked:xe,onChange:()=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(e=>{e.attributes.displayPostDate=xe}),t({displayPostDate:!xe})}}),xe&&React.createElement(Pi,{label:Object(r.__)("Date Format","ultimate-addons-for-gutenberg"),data:{value:Ae},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.dateFormat=e}),t({dateFormat:e})},options:[{value:"M j, Y",label:Object(Ry.dateI18n)("M j, Y",kt)},{value:"F j, Y",label:Object(Ry.dateI18n)("F j, Y",kt)},{value:"m/d/Y",label:Object(Ry.dateI18n)("m/d/Y",kt)},{value:"m-d-Y",label:Object(Ry.dateI18n)("m-d-Y",kt)},{value:"m.d.Y",label:Object(Ry.dateI18n)("m.d.Y",kt)},{value:"d M Y",label:Object(Ry.dateI18n)("d M Y",kt)},{value:"d F Y",label:Object(Ry.dateI18n)("d F Y",kt)},{value:"d-m-Y",label:Object(Ry.dateI18n)("d-m-Y",kt)},{value:"d.m.Y",label:Object(Ry.dateI18n)("d.m.Y",kt)},{value:"d/m/Y",label:Object(Ry.dateI18n)("d/m/Y",kt)},{value:"Y-m-d",label:Object(Ry.dateI18n)("Y-m-d",kt)},{value:"Y.m.d",label:Object(Ry.dateI18n)("Y.m.d",kt)},{value:"Y/m/d",label:Object(Ry.dateI18n)("Y/m/d",kt)},{value:"M, Y",label:Object(Ry.dateI18n)("M, Y",kt)},{value:"M Y",label:Object(Ry.dateI18n)("M Y",kt)},{value:"F, Y",label:Object(Ry.dateI18n)("F, Y",kt)},{value:"F Y",label:Object(Ry.dateI18n)("F Y",kt)},{value:"custom",label:Object(r.__)("Normal Text","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Timeline Item","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:y,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:ae,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.icon=e}),t({icon:e})}}),ae&&React.createElement(tl,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:he,label:"iconSize"},tablet:{value:ve,label:"iconSizeTablet"},mobile:{value:_e,label:"iconSizeMobile"}},min:0,max:30,displayUnit:!1,setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Icon Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Z,label:"connectorBgsize"},tablet:{value:$,label:"connectorBgsizeTablet"},mobile:{value:Y,label:"connectorBgsizeMobile"}},min:0,max:90,displayUnit:!1,setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Border Width","ultimate-addons-for-gutenberg"),setAttributes:t,value:q,data:{value:q,label:"borderwidth"},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.borderwidth=e}),t({borderwidth:e})},min:1,max:10,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Connector Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:W,data:{value:W,label:"separatorwidth"},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(a).forEach(t=>{t.attributes.separatorwidth=e}),t({separatorwidth:e})},min:1,max:10,displayUnit:!1}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pl,vf({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ge,label:"topPadding"},valueRight:{value:Me,label:"rightPadding"},valueBottom:{value:Re,label:"bottomPadding"},valueLeft:{value:Be,label:"leftPadding"},valueTopTablet:{value:Ue,label:"topPaddingTablet"},valueRightTablet:{value:Oe,label:"rightPaddingTablet"},valueBottomTablet:{value:He,label:"bottomPaddingTablet"},valueLeftTablet:{value:Fe,label:"leftPaddingTablet"},valueTopMobile:{value:ze,label:"topPaddingMobile"},valueRightMobile:{value:De,label:"rightPaddingMobile"},valueBottomMobile:{value:Ne,label:"bottomPaddingMobile"},valueLeftMobile:{value:Ie,label:"leftPaddingMobile"},unit:{value:Ve,label:"paddingUnit"},mUnit:{value:We,label:"mobilePaddingUnit"},tUnit:{value:qe,label:"tabletPaddingUnit"},attributes:e,setAttributes:t,link:{value:Ze,label:"paddingLink"}})),React.createElement(tl,{label:Object(r.__)("Timeline - Marker Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:ht,label:"horizontalSpace",unit:{value:Tt,label:"horizontalSpaceUnit"}},tablet:{value:vt,label:"horizontalSpaceTablet",unit:{value:Ct,label:"horizontalSpaceUnitTablet"}},mobile:{value:_t,label:"horizontalSpaceMobile",unit:{value:St,label:"horizontalSpaceUnitMobile"}}},min:0,limitMax:{px:50,"%":100,em:50},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Timeline Item Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:dt,label:"verticalSpace",unit:{value:mt,label:"verticalSpaceUnit"}},tablet:{value:bt,label:"verticalSpaceTablet",unit:{value:yt,label:"verticalSpaceUnitTablet"}},mobile:{value:gt,label:"verticalSpaceMobile",unit:{value:ft,label:"verticalSpaceUnitMobile"}}},min:0,limitMax:{px:100,"%":100,em:100},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t})),React.createElement(je,{title:Object(r.__)("Timeline Item","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement("h2",null,Object(r.__)("Heading","ultimate-addons-for-gutenberg")),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"headingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:t,loadGoogleFonts:{value:A,label:"headLoadGoogleFonts"},fontFamily:{value:T,label:"headFontFamily"},fontWeight:{value:C,label:"headFontWeight"},fontStyle:{value:S,label:"headFontStyle"},fontSizeType:{value:f,label:"headFontSizeType"},fontSize:{value:h,label:"headFontSize"},fontSizeMobile:{value:_,label:"headFontSizeMobile"},fontSizeTablet:{value:v,label:"headFontSizeTablet"},lineHeightType:{value:k,label:"headLineHeightType"},lineHeight:{value:w,label:"headLineHeight"},lineHeightMobile:{value:x,label:"headLineHeightMobile"},lineHeightTablet:{value:P,label:"headLineHeightTablet"},letterSpacing:{value:Qe,label:"headLetterSpacing"},letterSpacingTablet:{value:et,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:tt,label:"headLetterSpacingMobile"},letterSpacingType:{value:at,label:"headLetterSpacingType"},transform:{value:$e,label:"headTransform"},decoration:{value:Je,label:"headDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"headSpace"},tablet:{value:i,label:"headSpaceTablet"},mobile:{value:o,label:"headSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t}),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement("h2",null,Object(r.__)("Description","ultimate-addons-for-gutenberg")),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"subHeadingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:t,loadGoogleFonts:{value:V,label:"subHeadLoadGoogleFonts"},fontFamily:{value:H,label:"subHeadFontFamily"},fontWeight:{value:F,label:"subHeadFontWeight"},fontStyle:{value:j,label:"subHeadFontStyle"},fontSizeType:{value:U,label:"subHeadFontSizeType"},fontSize:{value:E,label:"subHeadFontSize"},fontSizeMobile:{value:L,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:O,label:"subHeadFontSizeTablet"},lineHeightType:{value:z,label:"subHeadLineHeightType"},lineHeight:{value:D,label:"subHeadLineHeight"},lineHeightMobile:{value:I,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:N,label:"subHeadLineHeightTablet"},letterSpacing:{value:lt,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:it,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:nt,label:"subHeadLetterSpacingType"},transform:{value:Ye,label:"subHeadTransform"},decoration:{value:Xe,label:"subHeadDecoration"}}),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement("h2",null,Object(r.__)("Timeline","ultimate-addons-for-gutenberg")),React.createElement(tl,{label:Object(r.__)("Border radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:Te,label:"borderRadius"},tablet:{value:Se,label:"borderRadiusTablet"},mobile:{value:ke,label:"borderRadiusMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"backgroundColor"},setAttributes:t})),xe&&React.createElement(je,{title:Object(r.__)("Date","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ie||"",data:{value:ie,label:"dateColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:t,loadGoogleFonts:{value:fe,label:"dateLoadGoogleFonts"},fontFamily:{value:ce,label:"dateFontFamily"},fontWeight:{value:ue,label:"dateFontWeight"},fontStyle:{value:pe,label:"dateFontStyle"},fontSizeType:{value:oe,label:"dateFontSizeType"},fontSize:{value:ne,label:"dateFontSize"},fontSizeMobile:{value:se,label:"dateFontSizeMobile"},fontSizeTablet:{value:re,label:"dateFontSizeTablet"},lineHeightType:{value:de,label:"dateLineHeightType"},lineHeight:{value:be,label:"dateLineHeight"},lineHeightMobile:{value:ye,label:"dateLineHeightMobile"},lineHeightTablet:{value:me,label:"dateLineHeightTablet"},letterSpacing:{value:rt,label:"dateLetterSpacing"},letterSpacingTablet:{value:st,label:"dateLetterSpacingTablet"},letterSpacingMobile:{value:ct,label:"dateLetterSpacingMobile"},letterSpacingType:{value:ut,label:"dateLetterSpacingType"},transform:{value:Ke,label:"dateTransform"},decoration:{value:pt,label:"dateDecoration"}}),"center"!==G&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"dateBottomspace"},tablet:{value:J,label:"dateBottomspaceTablet"},mobile:{value:X,label:"dateBottomspaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),(()=>{const e=React.createElement(je,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"separatorColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:le||"",data:{value:le,label:"iconColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"separatorBg"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"separatorBorder"},setAttributes:t})),a=React.createElement(je,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"separatorFillColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:we||"",data:{value:we,label:"iconFocus"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Pe||"",data:{value:Pe,label:"iconBgFocus"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"borderFocus"},setAttributes:t}));return React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"focus",title:Object(r.__)("Focus","ultimate-addons-for-gutenberg")}],normal:e,focus:a,disableBottomSeparator:!0}))})()),React.createElement(il,vf({},rl,{parentProps:e})))))}),Cf=a(108),Sf=0,kf={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},wf={};wf.locals=Cf.a.locals||{},wf.use=function(){return Sf++||(_f=we()(Cf.a,kf)),wf},wf.unuse=function(){Sf>0&&!--Sf&&(_f(),_f=null)};var Pf=wf;const xf=["uagb/content-timeline-child"];var Af=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Pf.use(),()=>{Pf.unuse()}),[]);const{className:t,attributes:{tm_content:a,timelineItem:l,block_id:i},attributes:o,deviceType:n}=e,r=Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,dateLoadGoogleFonts:s,dateFontFamily:c,dateFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),Mf=Object(L.compose)(ls,fe)(e=>{const{setAttributes:t,clientId:a,attributes:l,attributes:{timelinAlignmentTablet:i,timelinAlignmentMobile:o,stack:r,UAGHideDesktop:s,UAGHideTab:c,UAGHideMob:u,dateFontSizeType:p,dateFontSize:d,dateFontSizeTablet:b,dateFontSizeMobile:g,dateFontsizeType:m,dateFontsize:y,dateFontsizeTablet:f,dateFontsizeMobile:h},isSelected:v,name:_,deviceType:T}=e;Object(B.useEffect)(()=>{l.timelinAlignment&&("none"===r?(void 0===i&&t({timelinAlignmentTablet:l.timelinAlignment}),void 0===o&&t({timelinAlignmentMobile:l.timelinAlignment})):(void 0===i&&"tablet"===r&&(t({timelinAlignmentTablet:"left"}),t({timelinAlignmentMobile:"left"})),void 0===o&&"mobile"===r&&(t({timelinAlignmentMobile:"left"}),t({timelinAlignmentTablet:l.timelinAlignment}))))},[]),Object(B.useEffect)(()=>{void 0===p&&t({dateFontSizeType:m}),void 0===d&&t({dateFontSize:y}),void 0===b&&t({dateFontSizeTablet:f}),void 0===g&&t({dateFontSizeMobile:h})},[]),Object(B.useEffect)(()=>{if(null===Object(n.select)("core/block-editor").getBlocksByClientId(a)[0])return;let e=T;"Desktop"===T&&(e="");const t=void 0!==l["timelinAlignment"+e]?l["timelinAlignment"+e]:l.timelinAlignment;Object(n.select)("core/block-editor").getBlocksByClientId(a)[0].innerBlocks.forEach((function(e,a){let l="";"left"===t?l="uagb-timeline__left":"right"===t?l="uagb-timeline__right":"center"===t&&(l=a%2==0?"uagb-timeline__right":"uagb-timeline__left");let i="";"left"===t?i="uagb-timeline__day-new uagb-timeline__day-left":"right"===t?i="uagb-timeline__day-new uagb-timeline__day-right":"center"===t&&(i=a%2==0?"uagb-timeline__day-new uagb-timeline__day-right":"uagb-timeline__day-new uagb-timeline__day-left"),Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{content_class:l}),Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{dayalign_class:i})})),Object(n.select)("core/block-editor").getBlocks(a).forEach(e=>{e.attributes.headingTag=l.headingTag,e.attributes.dateFormat=l.dateFormat})},[e,T]),Object(B.useEffect)(()=>{he(e)},[s,c,u,T]),Object(B.useEffect)(()=>{ys()},[T]);const C=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,dateBottomspace:r,dateBottomspaceTablet:s,dateBottomspaceMobile:c,backgroundColor:u,separatorColor:p,separatorFillColor:d,separatorBg:b,separatorBorder:g,borderFocus:m,separatorwidth:y,borderwidth:f,connectorBgsize:h,connectorBgsizeTablet:v,connectorBgsizeMobile:_,borderRadius:T,borderRadiusTablet:C,borderRadiusMobile:S,iconColor:k,dateFontSizeType:w,dateFontSize:P,dateFontSizeTablet:x,dateFontSizeMobile:A,dateFontFamily:G,dateFontWeight:M,dateLineHeightType:R,dateLineHeight:B,dateLineHeightTablet:U,dateLineHeightMobile:E,dateColor:O,iconSize:L,iconSizeTablet:H,iconSizeMobile:F,iconBgFocus:j,headFontSizeType:z,headFontSize:D,headFontSizeTablet:N,headFontSizeMobile:I,headFontFamily:V,headFontWeight:W,headLineHeightType:q,headLineHeight:Z,headLineHeightTablet:$,headLineHeightMobile:Y,align:K,alignTablet:J,alignMobile:X,headingColor:Q,headSpace:ee,headSpaceTablet:te,headSpaceMobile:le,subHeadFontSizeType:ie,subHeadFontSize:oe,subHeadFontSizeTablet:ne,subHeadFontSizeMobile:re,subHeadFontFamily:se,subHeadFontWeight:ce,subHeadLineHeightType:ue,subHeadLineHeight:pe,subHeadLineHeightTablet:de,subHeadLineHeightMobile:be,subHeadingColor:ge,topPadding:me,rightPadding:ye,bottomPadding:fe,leftPadding:he,topPaddingTablet:ve,rightPaddingTablet:_e,bottomPaddingTablet:Te,leftPaddingTablet:Ce,topPaddingMobile:Se,rightPaddingMobile:ke,bottomPaddingMobile:we,leftPaddingMobile:Pe,paddingUnit:xe,mobilePaddingUnit:Ae,tabletPaddingUnit:Ge,headFontStyle:Me,subHeadFontStyle:Re,dateFontStyle:Be,headTransform:Ue,subHeadTransform:Ee,dateTransform:Oe,headDecoration:Le,subHeadDecoration:He,dateDecoration:Fe,iconFocus:je,headLetterSpacing:ze,headLetterSpacingTablet:De,headLetterSpacingMobile:Ne,headLetterSpacingType:Ie,subHeadLetterSpacing:Ve,subHeadLetterSpacingTablet:We,subHeadLetterSpacingMobile:qe,subHeadLetterSpacingType:Ze,dateLetterSpacing:$e,dateLetterSpacingTablet:Ye,dateLetterSpacingMobile:Ke,dateLetterSpacingType:Je,verticalSpace:Xe,verticalSpaceTablet:Qe,verticalSpaceMobile:et,verticalSpaceUnit:tt,verticalSpaceUnitTablet:at,verticalSpaceUnitMobile:lt,horizontalSpace:it,horizontalSpaceTablet:ot,horizontalSpaceMobile:nt,horizontalSpaceUnit:rt,horizontalSpaceUnitTablet:st,horizontalSpaceUnitMobile:ct}=e,ut=us(f,"borderwidth",i),pt=us(y,"separatorwidth",i),dt=us(ee,"headSpace",i),bt=us(T,"borderRadius",i),gt=us(r,"dateBottomspace",i),mt=us(L,"iconSize",i),yt=us(H,"iconSizeTablet",i),ft=us(F,"iconSizeMobile",i),ht=us(h,"connectorBgsize",i),vt=us(v,"connectorBgsizeTablet",i),_t=us(_,"connectorBgsizeMobile",i),Tt={" .uagb-timeline__heading.rich-text":{"font-size":Vr(D,z),"font-family":V,"font-weight":W,"line-height":Vr(Z,q),"text-align":K,color:Q,"font-style":Me,"text-decoration":Le,"text-transform":Ue,"letter-spacing":Vr(ze,Ie)}," .uagb-timeline__heading a":{"font-size":Vr(D,z),"font-family":V,"font-weight":W,"line-height":Vr(Z,q),"text-align":K,color:Q,"font-style":Me,"text-decoration":Le,"text-transform":Ue,"letter-spacing":Vr(ze,Ie)}," .uagb-timeline__heading":{"margin-bottom":Vr(dt,"px")}," p.uagb-timeline-desc-content":{"font-size":Vr(oe,ie),"font-family":se,"font-weight":ce,"line-height":Vr(pe,ue),"text-align":K,color:ge,"font-style":Re,"text-decoration":He,"text-transform":Ee,"letter-spacing":Vr(Ve,Ze)}," .uagb-timeline__day-new":{"text-align":K}," .uagb-timeline__date-inner":{"text-align":K}," .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u,"border-right-color":u}," .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-left-color":u,"border-right-color":u}," .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u}," .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u}," .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-left-color":u}," .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u}," .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u}," .uagb-timeline__line__inner":{"background-color":d}," .uagb-timeline__line":{"background-color":p,width:Vr(pt,"px")},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+ht+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+ht+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+ht+"px / 2 )"}," .uagb-timeline__marker":{"background-color":b,"min-height":Vr(ht,"px"),"min-width":Vr(ht,"px"),"line-height":Vr(ht,"px"),border:ut+"px solid "+g},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(ht,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__marker":{"margin-left":Vr(it,rt),"margin-right":Vr(it,rt)},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__marker":{"margin-left":Vr(it,rt),"margin-right":Vr(it,rt)}," .uagb-timeline__field":{"margin-bottom":Vr(Xe,tt)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"margin-bottom":Vr(gt,"px"),color:O,"font-size":Vr(P,w),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-align":K,"font-style":Be,"text-decoration":Fe,"text-transform":Oe,"letter-spacing":Vr($e,Je)}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"margin-bottom":Vr(gt,"px"),color:O,"font-size":Vr(P,w),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-align":K,"font-style":Be,"text-decoration":Fe,"text-transform":Oe,"letter-spacing":Vr($e,Je)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-right":Vr(it,rt)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(it,rt)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(it,rt)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(it,rt)}," .uagb-timeline__date-new":{color:O,"font-size":Vr(P,w),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"font-style":Be,"text-decoration":Fe,"text-transform":Oe,"letter-spacing":Vr($e,Je)}," .uagb-timeline__events-inner-new":{"background-color":u,"border-radius":Vr(bt,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(he,xe),"padding-right":Vr(ye,xe),"padding-top":Vr(me,xe),"padding-bottom":Vr(fe,xe)}," svg":{fill:k,"font-size":Vr(mt,"px"),width:Vr(mt,"px")}," .uagb-timeline__marker.uagb-timeline__in-view-icon":{background:j,"border-color":m}," .uagb-timeline__marker.uagb-timeline__in-view-icon svg":{fill:je}},Ct={" .uagb-timeline__heading.rich-text":{"text-align":J}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"font-size":Vr(x,w),"line-height":Vr(U,R),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Ye,Je)}," svg":{"font-size":Vr(yt,"px"),width:Vr(yt,"px")}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"font-size":Vr(x,w),"line-height":Vr(U,R),"margin-bottom":Vr(s,"px"),"text-align":J,"letter-spacing":Vr(Ye,Je)}," .uagb-timeline__date-new":{"font-size":Vr(x,w),"line-height":Vr(U,R),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Ye,Je)}," .uagb-timeline__heading":{"text-align":J,"font-size":Vr(N,z),"line-height":Vr($,q),"margin-bottom":Vr(te,"px"),"letter-spacing":Vr(De,Ie)}," .uagb-timeline__heading a":{"font-size":Vr(N,z),"line-height":Vr($,q),"text-align":J,"letter-spacing":Vr(De,Ie)}," p.uagb-timeline-desc-content":{"font-size":Vr(ne,ie),"line-height":Vr(de,ue),"text-align":J,"letter-spacing":Vr(We,Ze)},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(ot,st),"margin-right":Vr(ot,st)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-right":Vr(ot,st)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(ot,st)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(ot,st)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(ot,st)}," .uagb-timeline__field":{"margin-bottom":Vr(Qe,at)}," .uagb-timeline__events-inner-new":{"border-radius":Vr(C,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(Ce,Ge),"padding-right":Vr(_e,Ge),"padding-top":Vr(ve,Ge),"padding-bottom":Vr(Te,Ge)}," .uagb-timeline__day-new":{"text-align":J}," .uagb-timeline__date-inner":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__heading":{"text-align":J}," .uagb-timeline__center-block p.uagb-timeline-desc-content":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__day-new":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__date-inner":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__author-link":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__link_parent":{"text-align":J}," .uagb-timeline__center-block .uagb-timeline__image a":{"text-align":J}," .uagb-timeline__center-block a.uagb-timeline__image":{"text-align":J},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+vt+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+vt+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+vt+"px / 2 )"}," .uagb-timeline__marker":{"min-height":Vr(vt,"px"),"min-width":Vr(vt,"px"),"line-height":Vr(vt,"px")},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(vt,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(vt,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(vt,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(vt,"px")}},St={" .uagb-timeline__heading.rich-text":{"text-align":X}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"font-size":Vr(A,w),"line-height":Vr(E,R),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ke,Je)}," svg":{"font-size":Vr(ft,"px"),width:Vr(ft,"px")}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"font-size":Vr(A,w),"line-height":Vr(E,R),"margin-bottom":Vr(c,"px"),"text-align":X,"letter-spacing":Vr(Ke,Je)}," .uagb-timeline__date-new":{"font-size":Vr(A,w),"line-height":Vr(E,R),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ke,Je)}," .uagb-timeline__heading":{"font-size":Vr(I,z),"line-height":Vr(Y,q),"margin-bottom":Vr(le,"px"),"text-align":X,"letter-spacing":Vr(Ne,Ie)}," .uagb-timeline__heading a":{"font-size":Vr(I,z),"line-height":Vr(Y,q),"text-align":X,"letter-spacing":Vr(Ne,Ie)}," p.uagb-timeline-desc-content":{"font-size":Vr(re,ie),"line-height":Vr(be,ue),"text-align":X,"letter-spacing":Vr(qe,Ze)},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":0,"margin-right":0},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-right":Vr(nt,ct)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(nt,ct)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(nt,ct)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(nt,ct)}," .uagb-timeline__events-inner-new":{"border-radius":Vr(S,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(Pe,Ae),"padding-right":Vr(ke,Ae),"padding-top":Vr(Se,Ae),"padding-bottom":Vr(we,Ae)}," .uagb-timeline__field":{"margin-bottom":Vr(et,lt)}," .uagb-timeline__day-new":{"text-align":X}," .uagb-timeline__date-inner":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__heading":{"text-align":X}," .uagb-timeline__center-block p.uagb-timeline-desc-content":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__day-new":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__date-inner":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__author-link":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__link_parent":{"text-align":X}," .uagb-timeline__center-block .uagb-timeline__image a":{"text-align":X}," .uagb-timeline__center-block a.uagb-timeline__image":{"text-align":X},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+_t+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+_t+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+_t+"px / 2 )"}," .uagb-timeline__marker":{"min-height":Vr(_t,"px"),"min-width":Vr(_t,"px"),"line-height":Vr(_t,"px")},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(_t,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(_t,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(_t,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(_t,"px")}};let kt="";const wt=`.editor-styles-wrapper .uagb-block-${n}.uagb-timeline__outer-wrap`;return kt=ae(Tt,wt),"tablet"!==o&&"mobile"!==o||(kt+=ae(Ct,""+wt,!0,"tablet"),"mobile"===o&&(kt+=ae(St,""+wt,!0,"mobile"))),kt}(l,0,_,T),[l,T]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:C}),React.createElement(Gf,{attributes:l}),v&&React.createElement(Tf,e),React.createElement(Af,e))});const Rf=Object(L.compose)(Object(n.withSelect)(e=>({selected:e("core/block-editor").getSelectedBlock()}))),Bf=Object(L.createHigherOrderComponent)(e=>Rf(t=>{let{...a}=t;return React.createElement(e,a)}),"withcontentTimeline");let Uf={};function Ef(){return(Ef=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"content-timeline"}):React.createElement(Mf,e),save:function(e){const{block_id:t}=e.attributes;return React.createElement("div",{className:Be()(e.className,"uagb-timeline__outer-wrap","uagb-block-"+t,"uagb-timeline__content-wrap",...gf(e.attributes))},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"})))},deprecated:hf}),Object(F.addFilter)("editor.BlockEdit","uagb/content-timeline",Bf),a(225);var Of,Lf=Object(B.memo)(e=>{const{setAttributes:t,attributes:{t_date:a,displayPostDate:l}}=e;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,l?"":React.createElement(je,{initialOpen:!0},React.createElement(Ss,{label:Object(r.__)("Date (mm/dd/yyyy)","ultimate-addons-for-gutenberg"),value:a,data:{value:a,label:"t_date"},setAttributes:t,onChange:e=>t({t_date:e})}))),React.createElement(il,Ef({},rl,{parentProps:e}))))}),Hf=a(109),Ff=0,jf={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},zf={};zf.locals=Hf.a.locals||{},zf.use=function(){return Ff++||(Of=we()(Hf.a,jf)),zf},zf.unuse=function(){Ff>0&&!--Ff&&(Of(),Of=null)};var Df=zf,Nf=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Df.use(),()=>{Df.unuse()}),[]);const{setAttributes:t,insertBlocksAfter:a,mergeBlocks:l,onReplace:i,attributes:o,attributes:{block_id:s,headingTag:c,t_date:u,displayPostDate:p,dateFormat:d,time_heading:b,time_desc:g,content:m,icon:y},deviceType:f,clientId:h}=e,v=Object(n.select)("core/block-editor").getBlockParents(h).at(-1),_=Object(n.select)("core/block-editor").getBlockAttributes(v);Object(B.useEffect)(()=>{null!=_&&_.icon&&t({icon:_.icon})},[null==_?void 0:_.icon]);let T=!1;const C=u;return"center"===(void 0!==o["timelinAlignment"+f]?o["timelinAlignment"+f]:o.timelinAlignment)&&(T=!0),React.createElement("article",{className:Be()("wp-block-uagb-content-timeline-child uagb-timeline__field","uagb-timeline-child-"+s,e.attributes.content_class)},React.createElement("div",{className:"uagb-timeline__marker uagb-timeline__out-view-icon"},Ce(y,t)),React.createElement("div",{className:Be()(e.attributes.dayalign_class,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},!0!==p&&u&&React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__inner-date-new"},"custom"!==d&&Object(Ry.format)(d,C)||C),React.createElement(ge.RichText,{tagName:c,value:b,onChange:e=>t({time_heading:e}),placeholder:Object(r.__)("Write a Heading","ultimate-addons-for-gutenberg"),className:"uagb-timeline__heading",onMerge:l,onSplit:a?function(e,l){t({content:e});for(var i=arguments.length,o=new Array(i>2?i-2:0),n=2;ni([])}),React.createElement(ge.RichText,{tagName:"p",value:g,onChange:e=>t({time_desc:e}),placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-timeline-desc-content",onMerge:l,onSplit:function(e,l){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;ri([])}),React.createElement("div",{className:"uagb-timeline__arrow"}))),T&&React.createElement("div",{className:"uagb-timeline__date-new"},!0!==p&&u&&React.createElement(React.Fragment,null,"custom"!==d&&Object(Ry.format)(d,C)||C)))}),If=Object(L.compose)(ls)(e=>{const{isSelected:t,deviceType:a}=e;return Object(B.useEffect)(()=>{const e=new CustomEvent("UAGTimelineEditor",{detail:{}});document.dispatchEvent(e)},[e,a]),React.createElement(React.Fragment,null,t&&React.createElement(Lf,e),React.createElement(Nf,e))});Rt.time_desc.default=Object(r.__)("This is Timeline description, you can change me anytime click here ","ultimate-addons-for-gutenberg");var Vf=[{attributes:Rt,save(e){const{block_id:t,headingTag:a,displayPostDate:l,icon:i,t_date:o,dateFormat:n,time_heading:r,time_desc:s}=e.attributes;let c=o;"custom"!=n&&(c=Object(Ry.dateI18n)(n,o),"Invalid date"===c&&(c=o));let u="",p="";return"undefined"!=e.attributes.dayalign_class&&"undefined"!=e.attributes.content_class&&(u=e.attributes.content_class,p=e.attributes.dayalign_class),React.createElement("article",{className:Be()("uagb-timeline__field uagb-timeline__field-wrap","uagb-timeline-child-"+t)},React.createElement("div",{className:Be()(u)},React.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},React.createElement("span",{className:"uagb-timeline__icon-new out-view-uagb-timeline__icon "},kb(i))),React.createElement("div",{className:Be()(p)},React.createElement("div",{className:"uagb-events-new"},React.createElement("div",{className:"uagb-timeline__events-inner-new"},React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},React.createElement("div",{className:"uagb-timeline__inner-date-new"},c)),React.createElement("div",{className:"uagb-timeline-content"},React.createElement("div",{className:"uagb-timeline__heading-text"},React.createElement(ge.RichText.Content,{tagName:a,value:r,className:"uagb-timeline__heading"})),React.createElement(ge.RichText.Content,{tagName:"p",value:s,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))))),React.createElement("div",{className:"uagb-timeline__date-new"},1!=l&&o&&React.createElement("div",{className:"uagb-timeline__date-new"},c))))}},{attributes:Rt,save(e){const{block_id:t,headingTag:a,displayPostDate:l,icon:i,t_date:o,dateFormat:n,time_heading:r,time_desc:s}=e.attributes;let c=o;"custom"!==n&&(c=Object(Ry.format)(n,o),"Invalid date"===Object(Ry.format)(n,c)&&(c=o));let u="",p="";return"undefined"!==e.attributes.dayalign_class&&"undefined"!==e.attributes.content_class&&(u=e.attributes.content_class,p=e.attributes.dayalign_class),React.createElement("article",{className:Be()("uagb-timeline__field","uagb-timeline-child-"+t,u)},React.createElement("div",{className:Be()("uagb-timeline__marker out-view-uagb-timeline__icon")},Ce(i)),React.createElement("div",{className:Be()(p,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},!0!==l&&o&&React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__inner-date-new"},"custom"!==n&&Object(Ry.format)(n,c)||c),React.createElement(ge.RichText.Content,{tagName:a,value:r,className:"uagb-timeline__heading"}),React.createElement(ge.RichText.Content,{tagName:"p",value:s,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))),React.createElement("div",{className:"uagb-timeline__date-new"},!0!==l&&o&&React.createElement(React.Fragment,null,"custom"!==n&&Object(Ry.format)(n,c)||c)))}}];let Wf={};function qf(){return(qf=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"content-timeline-child",isChildren:!0}):React.createElement(If,e),save:function(e){const{block_id:t,headingTag:a,displayPostDate:l,icon:i,t_date:o,dateFormat:n,time_heading:r,time_desc:s}=e.attributes;let c=o;"custom"!==n&&(c=Object(Ry.format)(n,o),"Invalid date"===Object(Ry.format)(n,c)&&(c=o));let u="",p="";return"undefined"!==e.attributes.dayalign_class&&"undefined"!==e.attributes.content_class&&(u=e.attributes.content_class,p=e.attributes.dayalign_class),React.createElement("article",{className:Be()("uagb-timeline__field","uagb-timeline-child-"+t,u)},React.createElement("div",{className:Be()("uagb-timeline__marker out-view-uagb-timeline__icon")},Ce(i)?Ce(i):React.createElement("svg",{xmlns:"",viewBox:"0 0 256 512"})),React.createElement("div",{className:Be()(p,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},!0!==l&&o&&React.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__inner-date-new"},"custom"!==n&&Object(Ry.format)(n,c)||c),React.createElement(ge.RichText.Content,{tagName:a,value:r,className:"uagb-timeline__heading"}),React.createElement(ge.RichText.Content,{tagName:"p",value:s,className:"uagb-timeline-desc-content"}),React.createElement("div",{className:"uagb-timeline__arrow"}))),React.createElement("div",{className:"uagb-timeline__date-new"},!0!==l&&o&&React.createElement(React.Fragment,null,"custom"!==n&&Object(Ry.format)(n,c)||c)))},deprecated:Vf}),Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),Object(r.__)("Preset 6","ultimate-addons-for-gutenberg");let Zf=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}];function $f(e){const{setAttributes:t,attributes:a,deviceType:l}=e,{block_id:i,startNumber:o,endNumber:n,decimalPlaces:s,align:c,alignTablet:u,alignMobile:p,totalNumber:d,numberPrefix:b,numberSuffix:g,animationDuration:m,thousandSeparator:y,layout:f,headingLoadGoogleFonts:h,headingFontFamily:v,headingFontWeight:_,headingFontStyle:T,headingFontSize:C,headingColor:S,headingTransform:k,headingDecoration:w,headingFontSizeType:P,headingFontSizeMobile:x,headingFontSizeTablet:A,headingLineHeight:G,headingLineHeightType:M,headingLineHeightMobile:R,headingLineHeightTablet:U,headingTopMargin:E,headingRightMargin:O,headingLeftMargin:L,headingBottomMargin:H,headingTopMarginTablet:F,headingRightMarginTablet:z,headingLeftMarginTablet:D,headingBottomMarginTablet:N,headingTopMarginMobile:I,headingRightMarginMobile:V,headingLeftMarginMobile:W,headingBottomMarginMobile:q,headingMarginUnit:Z,headingMarginUnitTablet:$,headingMarginUnitMobile:Y,headingMarginLink:K,headingLetterSpacingType:J,headingLetterSpacing:X,headingLetterSpacingTablet:Q,headingLetterSpacingMobile:ee,blockTopMargin:te,blockRightMargin:ae,blockLeftMargin:le,blockBottomMargin:ie,blockTopMarginTablet:oe,blockRightMarginTablet:ne,blockLeftMarginTablet:re,blockBottomMarginTablet:se,blockTopMarginMobile:ce,blockRightMarginMobile:ue,blockLeftMarginMobile:pe,blockBottomMarginMobile:de,blockMarginUnit:be,blockMarginUnitTablet:me,blockMarginUnitMobile:ye,blockMarginLink:fe,blockTopPadding:he,blockRightPadding:ve,blockLeftPadding:_e,blockBottomPadding:Te,blockTopPaddingTablet:Se,blockRightPaddingTablet:ke,blockLeftPaddingTablet:we,blockBottomPaddingTablet:Pe,blockTopPaddingMobile:xe,blockRightPaddingMobile:Ae,blockLeftPaddingMobile:Ge,blockBottomPaddingMobile:Me,blockPaddingUnit:Re,blockPaddingUnitTablet:Be,blockPaddingUnitMobile:Ue,blockPaddingLink:Oe,numberLoadGoogleFonts:He,numberFontFamily:Fe,numberFontWeight:ze,numberFontStyle:De,numberFontSize:Ne,numberColor:Ie,numberTransform:Ve,numberDecoration:We,numberFontSizeType:qe,numberFontSizeMobile:Ze,numberFontSizeTablet:$e,numberLineHeight:Ye,numberLineHeightType:Ke,numberLineHeightMobile:Je,numberLineHeightTablet:Xe,numberTopMargin:Qe,numberRightMargin:et,numberLeftMargin:tt,numberBottomMargin:at,numberTopMarginTablet:lt,numberRightMarginTablet:it,numberLeftMarginTablet:ot,numberBottomMarginTablet:nt,numberTopMarginMobile:rt,numberRightMarginMobile:st,numberLeftMarginMobile:ct,numberBottomMarginMobile:ut,numberMarginUnit:pt,numberMarginUnitTablet:dt,numberMarginUnitMobile:bt,numberMarginLink:gt,numberLetterSpacingType:mt,numberLetterSpacing:yt,numberLetterSpacingTablet:ft,numberLetterSpacingMobile:ht,prefixRightDistance:vt,prefixRightDistanceTablet:_t,prefixRightDistanceMobile:Tt,suffixLeftDistance:Ct,suffixLeftDistanceTablet:St,suffixLeftDistanceMobile:kt,circleSize:wt,circleStokeSize:Pt,circleForeground:xt,circleBackground:At,barSize:Gt,barForeground:Mt,barBackground:Rt,barFlip:Bt,boxShadowColor:Ut,boxShadowHOffset:Et,boxShadowVOffset:Ot,boxShadowBlur:Lt,boxShadowSpread:Ht,boxShadowPosition:Ft,boxShadowColorHover:jt,boxShadowHOffsetHover:zt,boxShadowVOffsetHover:Dt,boxShadowBlurHover:Nt,boxShadowSpreadHover:It,boxShadowPositionHover:Vt,showIcon:Wt,icon:qt,iconColor:Zt,iconBackgroundColor:$t,iconHoverColor:Yt,iconBackgroundHoverColor:Kt,iconSize:Jt,iconSizeTablet:Xt,iconSizeMobile:Qt,iconSizeType:ea,iconSizeTypeTablet:ta,iconSizeTypeMobile:aa,iconImgPosition:la,iconImage:ia,imageSize:oa,sourceType:na,imageWidthType:ra,imageWidth:sa,imageWidthTablet:ca,imageWidthMobile:ua,imageWidthUnit:pa,imageWidthUnitTablet:da,imageWidthUnitMobile:ba,iconTopPadding:ga,iconRightPadding:ma,iconLeftPadding:ya,iconBottomPadding:fa,iconTopPaddingTablet:ha,iconRightPaddingTablet:va,iconLeftPaddingTablet:_a,iconBottomPaddingTablet:Ta,iconTopPaddingMobile:Ca,iconRightPaddingMobile:Sa,iconLeftPaddingMobile:ka,iconBottomPaddingMobile:wa,iconPaddingUnit:xa,iconPaddingUnitTablet:Aa,iconPaddingUnitMobile:Ga,iconPaddingLink:Ma,iconTopMargin:Ra,iconRightMargin:Ba,iconLeftMargin:Ua,iconBottomMargin:Ea,iconTopMarginTablet:Oa,iconRightMarginTablet:La,iconLeftMarginTablet:Ha,iconBottomMarginTablet:Fa,iconTopMarginMobile:ja,iconRightMarginMobile:za,iconLeftMarginMobile:Da,iconBottomMarginMobile:Ia,iconMarginUnit:Va,iconMarginUnitTablet:Wa,iconMarginUnitMobile:qa,iconMarginLink:Za}=a;Object(B.useEffect)(()=>{"circle"!==f||"top"===la&&"bottom"===la||t({iconImgPosition:"top"})},[f]),Object(B.useEffect)(()=>{const e=parseFloat(o),a=parseFloat(n),l=parseFloat(d);t({startNumber:e}),t({endNumber:a}),t({totalNumber:l})},[o,n,d]);const[$a,Ya]=Object(B.useState)(Pa.endNumber.default),Ka=us(o,"startNumber","counter"),Ja=us(n,"endNumber","counter");Object(B.useEffect)(()=>{Ya(KaJa?Ka:Ja)},[o,n]),Object(B.useEffect)(()=>{dt({barFlip:!Bt}),label:Object(r.__)("Flip Title and Bar Positions","ultimate-addons-for-gutenberg")})),React.createElement(Ks,{label:Object(r.__)("Starting Number","ultimate-addons-for-gutenberg"),value:o,data:{value:o,label:"startNumber"},displayUnit:!1,setAttributes:t,min:"number"!==f&&0,required:"number"!==f,help:"number"!==f&&Object(r.__)("Note: Please use positive values for Circle and Bar layouts.","ultimate-addons-for-gutenberg"),showControlHeader:!1,enableDynamicContent:!0,dynamicContentType:"text",name:"startNumber"}),React.createElement(Ks,{label:Object(r.__)("Ending Number","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"endNumber"},displayUnit:!1,setAttributes:t,min:"number"!==f&&0,required:"number"!==f,help:"number"!==f&&Object(r.__)("Note: Please use positive values for Circle and Bar layouts.","ultimate-addons-for-gutenberg"),showControlHeader:!1,enableDynamicContent:!0,dynamicContentType:"text",name:"endNumber"}),"number"!==f&&React.createElement(Ks,{label:Object(r.__)("Total Number","ultimate-addons-for-gutenberg"),value:d,data:{value:d,label:"totalNumber"},displayUnit:!1,setAttributes:t,min:$a,required:!0,help:Object(r.__)("Note: Total Number should be more than or equal to the Ending Number (or the Starting number in case you want to animate the Counter in reverse direction).","ultimate-addons-for-gutenberg"),showControlHeader:!1,enableDynamicContent:!0,dynamicContentType:"text",name:"totalNumber"}),React.createElement(Qa,{label:Object(r.__)("Decimal Places","ultimate-addons-for-gutenberg"),setAttributes:t,value:s,data:{value:s,label:"decimalPlaces"},min:0,step:1,max:10,displayUnit:!1}),React.createElement(Ss,{variant:"inline",label:Object(r.__)("Number Prefix","ultimate-addons-for-gutenberg"),value:b,data:{value:b,label:"numberPrefix"},setAttributes:t,onChange:e=>t({numberPrefix:e})}),React.createElement(Ss,{variant:"inline",label:Object(r.__)("Number Suffix","ultimate-addons-for-gutenberg"),value:g,data:{value:g,label:"numberSuffix"},setAttributes:t,onChange:e=>t({numberSuffix:e})}),React.createElement(Ks,{label:Object(r.__)("Animation Duration","ultimate-addons-for-gutenberg"),value:m,data:{value:m,label:"animationDuration"},displayUnit:!1,setAttributes:t,min:1,step:100,required:!0,showControlHeader:!1}),React.createElement(Pi,{label:Object(r.__)("Thousand(s)","ultimate-addons-for-gutenberg"),data:{value:y,label:"thousandSeparator"},setAttributes:t,options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:",",label:Object(r.__)("Comma","ultimate-addons-for-gutenberg")},{value:".",label:Object(r.__)("Dot","ultimate-addons-for-gutenberg")},{value:" ",label:Object(r.__)("Whitespace","ultimate-addons-for-gutenberg")},{value:"'",label:Object(r.__)("Apostrophe","ultimate-addons-for-gutenberg")}]})),ll=React.createElement(je,{title:Object(r.__)("Image/Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{checked:Wt,onChange:()=>t({showIcon:!Wt}),label:Object(r.__)("Enable Icon/Image","ultimate-addons-for-gutenberg")}),Wt&&("circle"===f||"number"===f)&&React.createElement(Pi,{label:Object(r.__)("Select Position","ultimate-addons-for-gutenberg"),data:{value:la,label:"iconImgPosition"},setAttributes:t,options:"circle"===f?el:Xa}),Wt&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Select Source","ultimate-addons-for-gutenberg"),data:{value:na,label:"sourceType"},options:[{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")}]}),!1!==Wt&&"icon"===na&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:qt,onChange:e=>t({icon:e})})),!1!==Wt&&"image"===na&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);Zf=t}t({iconImage:e})}else t({iconImage:null});else t({iconImage:null})},backgroundImage:ia,onRemoveImage:()=>{t({iconImage:""})},disableDynamicContent:!0}),ia&&"null"!==ia.url&&""!==ia.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:oa,label:"imageSize"},setAttributes:t,options:Zf}))),sl=React.createElement(je,{title:Object(r.__)("Image/Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},"image"===na&&React.createElement(Le.ToggleControl,{checked:ra,onChange:()=>t({imageWidthType:!ra}),label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),help:Object(r.__)("Turn this off to inherit the natural width of Image.","ultimate-addons-for-gutenberg")}),"image"===na&&ra&&React.createElement(tl,{label:Object(r.__)("Image Width","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:sa,label:"imageWidth",unit:{value:pa,label:"imageWidthUnit"}},tablet:{value:ca,label:"imageWidthTablet",unit:{value:da,label:"imageWidthUnitTablet"}},mobile:{value:ua,label:"imageWidthMobile",unit:{value:ba,label:"imageWidthUnitMobile"}}},limitMin:{px:0,"%":0,em:0},limitMax:{px:500,"%":100,em:100},unit:{value:pa,label:"imageWidthUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]}),"icon"===na&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:Jt,label:"iconSize",unit:{value:ea,label:"iconSizeType"}},tablet:{value:Xt,label:"iconSizeTablet",unit:{value:ta,label:"iconSizeTypeTablet"}},mobile:{value:Qt,label:"iconSizeMobile",unit:{value:aa,label:"iconSizeTypeMobile"}}},limitMin:{px:0,"%":0,em:0},limitMax:{px:500,"%":100,em:100},unit:{value:ea,label:"iconSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Zt||"",data:{value:Zt,label:"iconColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:$t||"",data:{value:$t,label:"iconBackgroundColor"},setAttributes:t})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Yt||"",data:{value:Yt,label:"iconHoverColor"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:Kt||"",data:{value:Kt,label:"iconBackgroundHoverColor"},setAttributes:t})),disableBottomSeparator:!1})),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:t,prefix:"iconWrap",attributes:a,deviceType:l,disableBottomSeparator:!1}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ga,label:"iconTopPadding"},valueRight:{value:ma,label:"iconRightPadding"},valueBottom:{value:fa,label:"iconBottomPadding"},valueLeft:{value:ya,label:"iconLeftPadding"},valueTopTablet:{value:ha,label:"iconTopPaddingTablet"},valueRightTablet:{value:va,label:"iconRightPaddingTablet"},valueBottomTablet:{value:Ta,label:"iconBottomPaddingTablet"},valueLeftTablet:{value:_a,label:"iconLeftPaddingTablet"},valueTopMobile:{value:Ca,label:"iconTopPaddingMobile"},valueRightMobile:{value:Sa,label:"iconRightPaddingMobile"},valueBottomMobile:{value:wa,label:"iconBottomPaddingMobile"},valueLeftMobile:{value:ka,label:"iconLeftPaddingMobile"},unit:{value:xa,label:"iconPaddingUnit"},mUnit:{value:Ga,label:"iconPaddingUnitMobile"},tUnit:{value:Aa,label:"iconPaddingUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ma,label:"iconPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Ra,label:"iconTopMargin"},valueRight:{value:Ba,label:"iconRightMargin"},valueBottom:{value:Ea,label:"iconBottomMargin"},valueLeft:{value:Ua,label:"iconLeftMargin"},valueTopTablet:{value:Oa,label:"iconTopMarginTablet"},valueRightTablet:{value:La,label:"iconRightMarginTablet"},valueBottomTablet:{value:Fa,label:"iconBottomMarginTablet"},valueLeftTablet:{value:Ha,label:"iconLeftMarginTablet"},valueTopMobile:{value:ja,label:"iconTopMarginMobile"},valueRightMobile:{value:za,label:"iconRightMarginMobile"},valueBottomMobile:{value:Ia,label:"iconBottomMarginMobile"},valueLeftMobile:{value:Da,label:"iconLeftMarginMobile"},unit:{value:Va,label:"iconMarginUnit"},mUnit:{value:qa,label:"iconMarginUnitMobile"},tUnit:{value:Wa,label:"iconMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:Za,label:"iconMarginLink"}})),cl=React.createElement(je,{title:Object(r.__)("Headline","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:S||"",data:{value:S,label:"headingColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:t,loadGoogleFonts:{value:h,label:"headingLoadGoogleFonts"},fontFamily:{value:v,label:"headingFontFamily"},fontWeight:{value:_,label:"headingFontWeight"},fontStyle:{value:T,label:"headingFontStyle"},transform:{value:k,label:"headingTransform"},decoration:{value:w,label:"headingDecoration"},fontSizeType:{value:P,label:"headingFontSizeType"},fontSize:{value:C,label:"headingFontSize"},fontSizeMobile:{value:x,label:"headingFontSizeMobile"},fontSizeTablet:{value:A,label:"headingFontSizeTablet"},lineHeightType:{value:M,label:"headingLineHeightType"},lineHeight:{value:G,label:"headingLineHeight"},lineHeightMobile:{value:R,label:"headingLineHeightMobile"},lineHeightTablet:{value:U,label:"headingLineHeightTablet"},letterSpacingType:{value:J,label:"headingLetterSpacingType"},letterSpacing:{value:X,label:"headingLetterSpacing"},letterSpacingTablet:{value:Q,label:"headingLetterSpacingTablet"},letterSpacingMobile:{value:ee,label:"headingLetterSpacingMobile"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:E,label:"headingTopMargin"},valueRight:{value:O,label:"headingRightMargin"},valueBottom:{value:H,label:"headingBottomMargin"},valueLeft:{value:L,label:"headingLeftMargin"},valueTopTablet:{value:F,label:"headingTopMarginTablet"},valueRightTablet:{value:z,label:"headingRightMarginTablet"},valueBottomTablet:{value:N,label:"headingBottomMarginTablet"},valueLeftTablet:{value:D,label:"headingLeftMarginTablet"},valueTopMobile:{value:I,label:"headingTopMarginMobile"},valueRightMobile:{value:V,label:"headingRightMarginMobile"},valueBottomMobile:{value:q,label:"headingBottomMarginMobile"},valueLeftMobile:{value:W,label:"headingLeftMarginMobile"},unit:{value:Z,label:"headingMarginUnit"},mUnit:{value:Y,label:"headingMarginUnitMobile"},tUnit:{value:$,label:"headingMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:K,label:"headingMarginLink"}})),ul=React.createElement(je,{title:Object(r.__)("Number","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ie||"",data:{value:Ie,label:"numberColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),setAttributes:t,loadGoogleFonts:{value:He,label:"numberLoadGoogleFonts"},fontFamily:{value:Fe,label:"numberFontFamily"},fontWeight:{value:ze,label:"numberFontWeight"},fontStyle:{value:De,label:"numberFontStyle"},transform:{value:Ve,label:"numberTransform"},decoration:{value:We,label:"numberDecoration"},fontSizeType:{value:qe,label:"numberFontSizeType"},fontSize:{value:Ne,label:"numberFontSize"},fontSizeMobile:{value:Ze,label:"numberFontSizeMobile"},fontSizeTablet:{value:$e,label:"numberFontSizeTablet"},lineHeightType:{value:Ke,label:"numberLineHeightType"},lineHeight:{value:Ye,label:"numberLineHeight"},lineHeightMobile:{value:Je,label:"numberLineHeightMobile"},lineHeightTablet:{value:Xe,label:"numberLineHeightTablet"},letterSpacingType:{value:mt,label:"numberLetterSpacingType"},letterSpacing:{value:yt,label:"numberLetterSpacing"},letterSpacingTablet:{value:ft,label:"numberLetterSpacingTablet"},letterSpacingMobile:{value:ht,label:"numberLetterSpacingMobile"}}),React.createElement(Pl,{label:"bars"!==f?Object(r.__)("Margin","ultimate-addons-for-gutenberg"):Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Qe,label:"numberTopMargin"},valueRight:{value:et,label:"numberRightMargin"},valueBottom:{value:at,label:"numberBottomMargin"},valueLeft:{value:tt,label:"numberLeftMargin"},valueTopTablet:{value:lt,label:"numberTopMarginTablet"},valueRightTablet:{value:it,label:"numberRightMarginTablet"},valueBottomTablet:{value:nt,label:"numberBottomMarginTablet"},valueLeftTablet:{value:ot,label:"numberLeftMarginTablet"},valueTopMobile:{value:rt,label:"numberTopMarginMobile"},valueRightMobile:{value:st,label:"numberRightMarginMobile"},valueBottomMobile:{value:ut,label:"numberBottomMarginMobile"},valueLeftMobile:{value:ct,label:"numberLeftMarginMobile"},unit:{value:pt,label:"numberMarginUnit"},mUnit:{value:bt,label:"numberMarginUnitMobile"},tUnit:{value:dt,label:"numberMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:gt,label:"numberMarginLink"}}),React.createElement(tl,{label:Object(r.__)("Prefix Right Margin","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:vt,label:"prefixRightDistance"},tablet:{value:_t,label:"prefixRightDistanceTablet"},mobile:{value:Tt,label:"prefixRightDistanceMobile"}},min:0,step:1,max:100,displayUnit:!1}),React.createElement(tl,{label:Object(r.__)("Suffix Left Margin","ultimate-addons-for-gutenberg"),setAttributes:t,data:{desktop:{value:Ct,label:"suffixLeftDistance"},tablet:{value:St,label:"suffixLeftDistanceTablet"},mobile:{value:kt,label:"suffixLeftDistanceMobile"}},min:0,step:1,max:100,displayUnit:!1})),pl=React.createElement(je,{title:Object(r.__)("Circle","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Circle Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:wt,data:{value:wt,label:"circleSize"},min:10,step:10,max:500,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Stroke Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:Pt,data:{value:Pt,label:"circleStokeSize"},min:0,step:1,max:100,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Progress Color","ultimate-addons-for-gutenberg"),colorValue:xt||"",data:{value:xt,label:"circleForeground"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:At||"",data:{value:At,label:"circleBackground"},setAttributes:t})),dl=React.createElement(je,{title:Object(r.__)("Bar","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Bar Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:Gt,data:{value:Gt,label:"barSize"},min:0,step:1,max:100,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Progress Color","ultimate-addons-for-gutenberg"),colorValue:Mt||"",data:{value:Mt,label:"barForeground"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Rt||"",data:{value:Rt,label:"barBackground"},setAttributes:t})),bl=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:te,label:"blockTopMargin"},valueRight:{value:ae,label:"blockRightMargin"},valueBottom:{value:ie,label:"blockBottomMargin"},valueLeft:{value:le,label:"blockLeftMargin"},valueTopTablet:{value:oe,label:"blockTopMarginTablet"},valueRightTablet:{value:ne,label:"blockRightMarginTablet"},valueBottomTablet:{value:se,label:"blockBottomMarginTablet"},valueLeftTablet:{value:re,label:"blockLeftMarginTablet"},valueTopMobile:{value:ce,label:"blockTopMarginMobile"},valueRightMobile:{value:ue,label:"blockRightMarginMobile"},valueBottomMobile:{value:de,label:"blockBottomMarginMobile"},valueLeftMobile:{value:pe,label:"blockLeftMarginMobile"},unit:{value:be,label:"blockMarginUnit"},mUnit:{value:ye,label:"blockMarginUnitMobile"},tUnit:{value:me,label:"blockMarginUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:fe,label:"blockMarginLink"}}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:he,label:"blockTopPadding"},valueRight:{value:ve,label:"blockRightPadding"},valueBottom:{value:Te,label:"blockBottomPadding"},valueLeft:{value:_e,label:"blockLeftPadding"},valueTopTablet:{value:Se,label:"blockTopPaddingTablet"},valueRightTablet:{value:ke,label:"blockRightPaddingTablet"},valueBottomTablet:{value:Pe,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:we,label:"blockLeftPaddingTablet"},valueTopMobile:{value:xe,label:"blockTopPaddingMobile"},valueRightMobile:{value:Ae,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Me,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:Ge,label:"blockLeftPaddingMobile"},unit:{value:Re,label:"blockPaddingUnit"},mUnit:{value:Ue,label:"blockPaddingUnitMobile"},tUnit:{value:Be,label:"blockPaddingUnitTablet"},deviceType:l,attributes:a,setAttributes:t,link:{value:Oe,label:"blockPaddingLink"}}));return Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),Object(r.__)("Normal","ultimate-addons-for-gutenberg"),Object(r.__)("Hover","ultimate-addons-for-gutenberg"),React.Fragment,Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),Object(r.__)("Color","ultimate-addons-for-gutenberg"),Object(r.__)("Horizontal","ultimate-addons-for-gutenberg"),Object(r.__)("Vertical","ultimate-addons-for-gutenberg"),Object(r.__)("Blur","ultimate-addons-for-gutenberg"),Object(r.__)("Spread","ultimate-addons-for-gutenberg"),Object(r.__)("Position","ultimate-addons-for-gutenberg"),React.Fragment,Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),Object(r.__)("Color","ultimate-addons-for-gutenberg"),Object(r.__)("Horizontal","ultimate-addons-for-gutenberg"),Object(r.__)("Vertical","ultimate-addons-for-gutenberg"),Object(r.__)("Blur","ultimate-addons-for-gutenberg"),Object(r.__)("Spread","ultimate-addons-for-gutenberg"),Object(r.__)("Position","ultimate-addons-for-gutenberg"),React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,{key:"controls"},React.createElement(ge.AlignmentToolbar,{value:c,onChange:e=>t({align:e})})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,al,"bars"!==f&&ll),React.createElement(il,nl,ul,cl,"circle"===f&&pl,"bars"===f&&dl,"bars"!==f&&Wt&&sl,bl),React.createElement(il,qf({},rl,{parentProps:e})))))}var Yf=e=>{const{attributes:t,setAttributes:a}=e;if("icon"===t.sourceType)return React.createElement("span",{className:"wp-block-uagb-counter__icon"},Ce(t.icon,a));if("image"===t.sourceType){let e="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(e=t.iconImage.url);let a="";if(""!==e){const l=t.iconImage.sizes,i=t.imageSize;return a=void 0!==l&&void 0!==l[i]?l[i].url:e,React.createElement("span",{className:"wp-block-uagb-counter__image-wrap"},React.createElement("img",{className:"wp-block-uagb-counter__image",src:a,alt:t.iconImage.alt,width:t.imageWidthType&&t.imageWidth?t.imageWidth:t.imgTagWidth,height:t.imgTagHeight,loading:"lazy"}))}}return null};const Kf=e=>{const{attributes:t,setAttributes:a,className:l,deviceType:i,name:o}=e,{block_id:n,layout:s,heading:c,numberPrefix:u,numberSuffix:p,startNumber:d,endNumber:b,totalNumber:g,decimalPlaces:m,animationDuration:y,thousandSeparator:f,circleSize:h,circleStokeSize:v,icon:_,showIcon:T,iconImgPosition:C,sourceType:S,iconImage:k,imageSize:w,imageWidthType:P,imageWidth:x}=t;let A="";void 0!==t.iconImage&&null!==t.iconImage&&""!==t.iconImage&&(A=t.iconImage.url);let G="";if(""!==A){const e=t.iconImage.sizes;G=void 0!==e&&void 0!==e[w]?e[w].url:A}Object(B.useEffect)(()=>{P&&x?Zg(G,a,{type:"width",value:x}):Zg(G,a)},[G,x,P,w]),Object(B.useEffect)(()=>{UAGBCounter.init(".uagb-block-"+n,t)},[s,y,d,b,g,f,m,n,h,v]);const M=us(d,"startNumber","counter"),R=us(b,"endNumber","counter"),U=o.replace("uagb/",""),E=us(h,"circleSize",U),O=T&&("icon"===S&&""!==_||"image"===S&&""!==k.url);let L="";O&&(L=React.createElement(Yf,{attributes:t,setAttributes:a}));const H=React.createElement(ge.RichText,{tagName:"div",className:"wp-block-uagb-counter__title",value:c,onChange:e=>a({heading:e}),placeholder:Object(r.__)("Title…","ultimate-addons-for-gutenberg")}),F=React.createElement(React.Fragment,null,O&&"number"===s&&"top"===C&&L,React.createElement("div",{className:"wp-block-uagb-counter__number"},O&&"number"===s&&"left-number"===C&&L,u&&React.createElement("span",{className:"uagb-counter-block-prefix"},u),React.createElement("span",{className:"uagb-counter-block-number","data-duration":y/1e3,"data-to-value":R,"data-from-value":M,"data-delimiter":f}),p&&React.createElement("span",{className:"uagb-counter-block-suffix"},p),O&&"number"===s&&"right-number"===C&&L),"number"===s&&H,O&&"number"===s&&"bottom"===C&&L),j=React.createElement("div",{className:"wp-block-uagb-counter-bars-container"},F),z=React.createElement("div",{className:"wp-block-uagb-counter-circle-container"},React.createElement("div",{className:"wp-block-uagb-counter-circle-container__content"},O&&"top"===C&&L,F,H,O&&"bottom"===C&&L),React.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:`0 0 ${E} ${E}`,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{className:"uagb-counter-circle__background"}),React.createElement("circle",{className:"uagb-counter-circle__progress"})));return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(l,"uagb-block-"+n,"uagb-editor-preview-mode-"+i.toLowerCase(),"wp-block-uagb-counter","wp-block-uagb-counter--"+s)},"number"===s&&F,"bars"===s&&j,"circle"===s&&z,"circle"!==s&&"number"!==s&&H))};Kf.propTypes={},Kf.defaultProps={};var Jf=Kf,Xf=Object(B.memo)(e=>{let{attributes:t}=e;const{numberLoadGoogleFonts:a,numberFontFamily:l,numberFontWeight:i,headingLoadGoogleFonts:o,headingFontFamily:n,headingFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,c,s)});a(164);var Qf=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,clientId:a,attributes:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n},name:r,deviceType:s}=e,c=Object(B.useMemo)(()=>function(e,t,a,l){const i=l.toLowerCase(),{block_id:o,align:n,alignTablet:r,alignMobile:s,layout:c,endNumber:u,headingFontFamily:p,headingFontWeight:d,headingFontStyle:b,headingFontSize:g,headingColor:m,headingTransform:y,headingDecoration:f,headingFontSizeType:h,headingFontSizeMobile:v,headingFontSizeTablet:_,headingLineHeight:T,headingLineHeightType:C,headingLineHeightMobile:S,headingLineHeightTablet:k,headingTopMargin:w,headingRightMargin:P,headingLeftMargin:x,headingBottomMargin:A,headingTopMarginTablet:G,headingRightMarginTablet:M,headingLeftMarginTablet:R,headingBottomMarginTablet:B,headingTopMarginMobile:U,headingRightMarginMobile:E,headingLeftMarginMobile:O,headingBottomMarginMobile:L,headingMarginUnit:H,headingMarginUnitTablet:F,headingMarginUnitMobile:j,headingLetterSpacingType:z,headingLetterSpacing:D,headingLetterSpacingTablet:N,headingLetterSpacingMobile:I,numberFontFamily:V,numberFontWeight:W,numberFontStyle:q,numberFontSize:Z,numberColor:$,numberTransform:Y,numberDecoration:K,numberFontSizeType:J,numberFontSizeMobile:X,numberFontSizeTablet:Q,numberLineHeight:ee,numberLineHeightType:te,numberLineHeightMobile:le,numberLineHeightTablet:ie,numberTopMargin:oe,numberRightMargin:ne,numberLeftMargin:re,numberBottomMargin:se,numberTopMarginTablet:ce,numberRightMarginTablet:ue,numberLeftMarginTablet:pe,numberBottomMarginTablet:de,numberTopMarginMobile:be,numberRightMarginMobile:ge,numberLeftMarginMobile:me,numberBottomMarginMobile:ye,numberMarginUnit:fe,numberMarginUnitTablet:he,numberMarginUnitMobile:ve,numberLetterSpacingType:_e,numberLetterSpacing:Te,numberLetterSpacingTablet:Ce,numberLetterSpacingMobile:Se,prefixRightDistance:ke,prefixRightDistanceTablet:we,prefixRightDistanceMobile:Pe,suffixLeftDistance:xe,suffixLeftDistanceTablet:Ae,suffixLeftDistanceMobile:Ge,circleSize:Me,circleStokeSize:Re,circleForeground:Be,circleBackground:Ue,barSize:Ee,barForeground:Oe,barBackground:Le,barFlip:He,blockTopMargin:Fe,blockRightMargin:je,blockLeftMargin:ze,blockBottomMargin:De,blockTopMarginTablet:Ne,blockRightMarginTablet:Ie,blockLeftMarginTablet:Ve,blockBottomMarginTablet:We,blockTopMarginMobile:qe,blockRightMarginMobile:Ze,blockLeftMarginMobile:$e,blockBottomMarginMobile:Ye,blockMarginUnit:Ke,blockMarginUnitTablet:Je,blockMarginUnitMobile:Xe,blockTopPadding:Qe,blockRightPadding:et,blockLeftPadding:tt,blockBottomPadding:at,blockTopPaddingTablet:lt,blockRightPaddingTablet:it,blockLeftPaddingTablet:ot,blockBottomPaddingTablet:nt,blockTopPaddingMobile:rt,blockRightPaddingMobile:st,blockLeftPaddingMobile:ct,blockBottomPaddingMobile:ut,blockPaddingUnit:pt,blockPaddingUnitTablet:dt,blockPaddingUnitMobile:bt,boxShadowColor:gt,boxShadowHOffset:mt,boxShadowVOffset:yt,boxShadowBlur:ft,boxShadowSpread:ht,boxShadowPosition:vt,boxShadowColorHover:_t,boxShadowHOffsetHover:Tt,boxShadowVOffsetHover:Ct,boxShadowBlurHover:St,boxShadowSpreadHover:kt,boxShadowPositionHover:wt,iconImgPosition:Pt,iconColor:xt,iconBackgroundColor:At,iconHoverColor:Gt,iconBackgroundHoverColor:Mt,iconSize:Rt,iconSizeTablet:Bt,iconSizeMobile:Ut,iconSizeType:Et,iconSizeTypeTablet:Ot,iconSizeTypeMobile:Lt,iconWrapBorderHColor:Ht,imageWidthType:Ft,imageWidth:jt,imageWidthTablet:zt,imageWidthMobile:Dt,imageWidthUnit:Nt,imageWidthUnitTablet:It,imageWidthUnitMobile:Vt,iconTopPadding:Wt,iconRightPadding:qt,iconLeftPadding:Zt,iconBottomPadding:$t,iconTopPaddingTablet:Yt,iconRightPaddingTablet:Kt,iconLeftPaddingTablet:Jt,iconBottomPaddingTablet:Xt,iconTopPaddingMobile:Qt,iconRightPaddingMobile:ea,iconLeftPaddingMobile:ta,iconBottomPaddingMobile:aa,iconPaddingUnit:la,iconPaddingUnitTablet:ia,iconPaddingUnitMobile:oa,iconTopMargin:na,iconRightMargin:ra,iconLeftMargin:sa,iconBottomMargin:ca,iconTopMarginTablet:ua,iconRightMarginTablet:pa,iconLeftMarginTablet:da,iconBottomMarginTablet:ba,iconTopMarginMobile:ga,iconRightMarginMobile:ma,iconLeftMarginMobile:ya,iconBottomMarginMobile:fa,iconMarginUnit:ha,iconMarginUnitTablet:va,iconMarginUnitMobile:_a}=e,Ta=a.replace("uagb/",""),Ca=us(u,"endNumber","counter"),Sa=us(Me,"circleSize",Ta),ka=us(Re,"circleStokeSize",Ta),wa=us(Ee,"barSize",Ta),Pa=us(ke,"prefixRightDistance",Ta),xa=isNaN(we)?ke:we,Aa=isNaN(Pe)?we:Pe,Ga=us(xe,"suffixLeftDistance",Ta),Ma=isNaN(Ae)?xe:Ae,Ra=isNaN(Ge)?Ae:Ge,Ba=us(Rt,"iconSize",Ta),Ua=isNaN(Bt)?Rt:Bt,Ea=isNaN(Ut)?Bt:Ut,Oa=us(jt,"imageWidth",Ta),La=isNaN(zt)?Oa:zt,Ha=isNaN(Dt)?La:Dt,Fa=Wr(e,"iconWrap"),ja=Wr(e,"iconWrap","tablet"),za=Wr(e,"iconWrap","mobile"),Da=Sa/2,Na=Da-ka/2,Ia=parseFloat(2*Math.PI*Na).toFixed(2),Va={"padding-top":Vr(Wt,la),"padding-right":Vr(qt,la),"padding-bottom":Vr($t,la),"padding-left":Vr(Zt,la),"margin-top":Vr(na,ha),"margin-right":Vr(ra,ha),"margin-bottom":Vr(ca,ha),"margin-left":Vr(sa,ha)},Wa={"padding-top":Vr(Yt,ia),"padding-right":Vr(Kt,ia),"padding-bottom":Vr(Xt,ia),"padding-left":Vr(Jt,ia),"margin-top":Vr(ua,va),"margin-right":Vr(pa,va),"margin-bottom":Vr(ba,va),"margin-left":Vr(da,va)},qa={"padding-top":Vr(Qt,oa),"padding-right":Vr(ea,oa),"padding-bottom":Vr(aa,oa),"padding-left":Vr(ta,oa),"margin-top":Vr(ga,_a),"margin-right":Vr(ma,_a),"margin-bottom":Vr(fa,_a),"margin-left":Vr(ya,_a)};let Za=vt;"outset"===vt&&(Za="");let $a=wt;"outset"===wt&&($a="");const Ya={".wp-block-uagb-counter":{"text-align":n,"margin-top":Vr(Fe,Ke),"margin-right":Vr(je,Ke),"margin-bottom":Vr(De,Ke),"margin-left":Vr(ze,Ke),"padding-top":Vr(Qe,pt),"padding-right":Vr(et,pt),"padding-bottom":Vr(at,pt),"padding-left":Vr(tt,pt)},".wp-block-uagb-counter .wp-block-uagb-counter__icon":{"background-color":At,...Va,...Fa},".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap":{...Va},".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap img":{...Fa},".wp-block-uagb-counter:hover .wp-block-uagb-counter__image-wrap img":{"border-color":Ht},".wp-block-uagb-counter:hover .wp-block-uagb-counter__icon":{"background-color":Mt,"border-color":Ht},".wp-block-uagb-counter .wp-block-uagb-counter__icon svg":{width:Vr(Ba,Et),height:Vr(Ba,Et),fill:xt},".wp-block-uagb-counter:hover .wp-block-uagb-counter__icon svg":{fill:Gt},".wp-block-uagb-counter .wp-block-uagb-counter__title":{"font-family":p,"font-style":b,"text-decoration":f,"text-transform":y,"font-weight":d,"font-size":Vr(g,h),"line-height":Vr(T,C),"letter-Spacing":Vr(D,z),color:m,"margin-top":Vr(w,H),"margin-right":Vr(P,H),"margin-bottom":Vr(A,H),"margin-left":Vr(x,H)},".wp-block-uagb-counter .wp-block-uagb-counter__number":{"font-family":V,"font-style":q,"text-decoration":K,"text-transform":Y,"font-weight":W,"font-size":Vr(Z,J),"line-height":Vr(ee,te),"letter-Spacing":Vr(Te,_e),color:$,"margin-top":Vr(oe,fe),"margin-right":Vr(ne,fe),"margin-bottom":Vr(se,fe),"margin-left":Vr(re,fe)},".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-prefix":{"margin-right":Vr(Pa,"px")},".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-suffix":{"margin-left":Vr(Ga,"px")},".wp-block-uagb-counter--circle .wp-block-uagb-counter-circle-container":{"max-width":Vr(Sa,"px")},".wp-block-uagb-counter--circle .wp-block-uagb-counter-circle-container svg circle":{"stroke-width":Vr(ka,"px"),stroke:Ue,r:Vr(Na,"px"),cx:Vr(Da,"px"),cy:Vr(Da,"px")},".wp-block-uagb-counter--circle .wp-block-uagb-counter-circle-container svg .uagb-counter-circle__progress":{stroke:Be,"stroke-dasharray":Vr(Ia,"px"),"stroke-dashoffset":Vr(Ia,"px")},".wp-block-uagb-counter--bars":{"flex-direction":He?"column-reverse":"column"},".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container":{background:Le},".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container .wp-block-uagb-counter__number":{height:Vr(wa,"px"),background:Oe,"padding-top":Vr(oe,fe),"padding-right":Vr(ne,fe),"padding-bottom":Vr(se,fe),"padding-left":Vr(re,fe)}},Ka=".editor-styles-wrapper .uagb-block-"+o,Ja={},Xa={};if(Ja[".wp-block-uagb-counter"]={"text-align":r,"margin-top":Vr(Ne,Je),"margin-right":Vr(Ie,Je),"margin-bottom":Vr(We,Je),"margin-left":Vr(Ve,Je),"padding-top":Vr(lt,dt),"padding-right":Vr(it,dt),"padding-bottom":Vr(nt,dt),"padding-left":Vr(ot,dt)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__icon"]={...Wa,...ja},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap"]={...Wa},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap img"]={...ja},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__icon svg"]={width:Vr(Ua,Ot),height:Vr(Ua,Ot)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(_,h),"line-height":Vr(k,C),"letter-Spacing":Vr(N,z),"margin-top":Vr(G,F),"margin-right":Vr(M,F),"margin-bottom":Vr(B,F),"margin-left":Vr(R,F)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number"]={"font-size":Vr(Q,J),"line-height":Vr(ie,te),"letter-Spacing":Vr(Ce,_e),"margin-top":Vr(ce,he),"margin-right":Vr(ue,he),"margin-bottom":Vr(de,he),"margin-left":Vr(pe,he)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(_,h),"line-height":Vr(k,C),"letter-Spacing":Vr(N,z),"margin-top":Vr(G,F),"margin-right":Vr(M,F),"margin-bottom":Vr(B,F),"margin-left":Vr(R,F)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number"]={"font-size":Vr(Q,J),"line-height":Vr(ie,te),"letter-Spacing":Vr(Ce,_e),"margin-top":Vr(ce,he),"margin-right":Vr(ue,he),"margin-bottom":Vr(de,he),"margin-left":Vr(pe,he)},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-prefix"]={"margin-right":Vr(xa,"px")},Ja[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-suffix"]={"margin-left":Vr(Ma,"px")},Ja[".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container"]={"padding-top":Vr(ce,he),"padding-right":Vr(ue,he),"padding-bottom":Vr(de,he),"padding-left":Vr(pe,he)},Xa[".wp-block-uagb-counter"]={"text-align":s,"margin-top":Vr(qe,Xe),"margin-right":Vr(Ze,Xe),"margin-bottom":Vr(Ye,Xe),"margin-left":Vr($e,Xe),"padding-top":Vr(rt,bt),"padding-right":Vr(st,bt),"padding-bottom":Vr(ut,dt),"padding-left":Vr(ct,bt)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__icon"]={...qa,...za},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap"]={...qa},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__image-wrap img"]={...za},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__icon svg"]={width:Vr(Ea,Lt),height:Vr(Ea,Lt)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(v,h),"line-height":Vr(S,C),"letter-Spacing":Vr(I,z),"margin-top":Vr(U,j),"margin-right":Vr(E,j),"margin-bottom":Vr(L,j),"margin-left":Vr(O,j)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__title"]={"font-size":Vr(v,h),"line-height":Vr(S,C),"letter-Spacing":Vr(I,z),"margin-top":Vr(U,j),"margin-right":Vr(E,j),"margin-bottom":Vr(L,j),"margin-left":Vr(O,j)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__number"]={"font-size":Vr(X,J),"line-height":Vr(le,te),"letter-spacing":Vr(Se,_e),"margin-top":Vr(be,ve),"margin-right":Vr(ge,ve),"margin-bottom":Vr(ye,ve),"margin-left":Vr(me,ve)},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-prefix"]={"margin-right":Vr(Aa,"px")},Xa[".wp-block-uagb-counter .wp-block-uagb-counter__number .uagb-counter-block-suffix"]={"margin-left":Vr(Ra,"px")},Xa[".wp-block-uagb-counter--bars .wp-block-uagb-counter-bars-container"]={"padding-top":Vr(be,ve),"padding-right":Vr(ge,ve),"padding-bottom":Vr(ye,ve),"padding-left":Vr(me,ve)},Ft&&(Ya[" .wp-block-uagb-counter__image-wrap .wp-block-uagb-counter__image"]={width:Vr(Oa,Nt)},Ja[" .wp-block-uagb-counter__image-wrap .wp-block-uagb-counter__image"]={width:Vr(La,It)},Xa[" .wp-block-uagb-counter__image-wrap .wp-block-uagb-counter__image"]={width:Vr(Ha,Vt)}),"number"!==c||"left-number"!==Pt&&"right-number"!==Pt||(Ya[" .wp-block-uagb-counter__number"]={display:"flex","align-items":"center","justify-content":n},Ja[" .wp-block-uagb-counter__number"]={"justify-content":r},Xa[" .wp-block-uagb-counter__number"]={"justify-content":s}),"bars"===c){const e=".wp-block-uagb-counter .wp-block-uagb-counter__number";Ya[e]["margin-top"]="unset",Ya[e]["margin-bottom"]="unset",Ya[e]["margin-left"]="unset",Ya[e]["margin-right"]="unset",Ja[e]["margin-top"]="unset",Ja[e]["margin-bottom"]="unset",Ja[e]["margin-left"]="unset",Ja[e]["margin-right"]="unset",Xa[e]["margin-top"]="unset",Xa[e]["margin-bottom"]="unset",Xa[e]["margin-left"]="unset",Xa[e]["margin-right"]="unset",0===Ca&&(Ya[e]["padding-left"]="unset",Ya[e]["padding-right"]="unset",Ja[e]["padding-left"]="unset",Ja[e]["padding-right"]="unset",Xa[e]["padding-left"]="unset",Xa[e]["padding-right"]="unset");const t=".wp-block-uagb-counter:hover .wp-block-uagb-counter-bars-container";Ya[".wp-block-uagb-counter .wp-block-uagb-counter-bars-container"]={"box-shadow":Vr(mt,"px")+" "+Vr(yt,"px")+" "+Vr(ft,"px")+" "+Vr(ht,"px")+" "+gt+" "+Za},Ya[t]={"box-shadow":""};const a=isNaN(St)?"":St,l=_t||"";if(""!==l||""!==a){const e=""===a?"":Vr(a,"px");Ya[t]["box-shadow"]=Vr(Tt,"px")+" "+Vr(Ct,"px")+" "+e+" "+Vr(kt,"px")+" "+l+" "+$a}}let Qa=ae(Ya,Ka);return"tablet"!==i&&"mobile"!==i||(Qa+=ae(Ja,""+Ka,!0,"tablet"),"mobile"===i&&(Qa+=ae(Xa,""+Ka,!0,"mobile"))),Qa}(l,0,r,s),[l,s]);return Object(B.useEffect)(()=>{he(e)},[i,o,n,s]),React.createElement(React.Fragment,null,React.createElement(Xf,{attributes:l}),React.createElement(me,{blockStyling:c}),t&&React.createElement($f,e),React.createElement(Jf,e))});let eh={};eh=Object(F.applyFilters)("uagb/counter",ss(eh)),Object(de.registerBlockType)("uagb/counter",{...eh,title:Object(r.__)("Counter","ultimate-addons-for-gutenberg"),description:Object(r.__)("This block allows you to add number counter.","ultimate-addons-for-gutenberg"),icon:se.counter,keywords:[Object(r.__)("counter","ultimate-addons-for-gutenberg"),Object(r.__)("number","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Pa,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"counter"}):React.createElement(Qf,e),save:function(e){const{attributes:t}=e,{block_id:a,layout:l,heading:i,numberPrefix:o,numberSuffix:n,startNumber:r,endNumber:s,animationDuration:c,thousandSeparator:u,circleSize:p,icon:d,showIcon:b,iconImgPosition:g,sourceType:m,iconImage:y}=t,f=us(r,"startNumber","counter"),h=us(s,"endNumber","counter"),v=us(p,"circleSize","counter"),_=b&&("icon"===m&&""!==d||"image"===m&&""!==y.url);let T="";_&&(T=React.createElement(Yf,{attributes:t}));const C=React.createElement(ge.RichText.Content,{tagName:"div",className:"wp-block-uagb-counter__title",value:i}),S=React.createElement(React.Fragment,null,_&&"number"===l&&"top"===g&&T,React.createElement("div",{className:"wp-block-uagb-counter__number"},_&&"number"===l&&"left-number"===g&&T,o&&React.createElement("span",{className:"uagb-counter-block-prefix"},o),React.createElement("span",{className:"uagb-counter-block-number","data-duration":c/1e3,"data-to-value":h,"data-from-value":f,"data-delimiter":u}),n&&React.createElement("span",{className:"uagb-counter-block-suffix"},n),_&&"number"===l&&"right-number"===g&&T),"number"===l&&C,_&&"number"===l&&"bottom"===g&&T),k=React.createElement("div",{className:"wp-block-uagb-counter-bars-container"},S),w=React.createElement("div",{className:"wp-block-uagb-counter-circle-container"},React.createElement("div",{className:"wp-block-uagb-counter-circle-container__content"},_&&"top"===g&&T,S,C,_&&"bottom"===g&&T),React.createElement("svg",{preserveAspectRatio:"xMinYMin meet",viewBox:`0 0 ${v} ${v}`,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{className:"uagb-counter-circle__background"}),React.createElement("circle",{className:"uagb-counter-circle__progress"})));return React.createElement("div",{className:Be()(e.className,"uagb-block-"+a,"wp-block-uagb-counter","wp-block-uagb-counter--"+l)},"number"===l&&S,"bars"===l&&k,"circle"===l&&w,"circle"!==l&&"number"!==l&&C)}});const th=[{defaultAttributes:$t},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:15},{label:"hquestionPaddingDesktop",value:15},{label:"vquestionPaddingDesktop",value:15},{label:"questionBottomPaddingDesktop",value:15},{label:"answerTopPadding",value:0},{label:"answerRightPadding",value:15},{label:"answerBottomPadding",value:15},{label:"answerLeftPadding",value:15},{label:"overallBorderStyle",value:"solid"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:4},{label:"overallBorderRightRadius",value:4},{label:"overallBorderBottomRadius",value:4},{label:"overallBorderLeftRadius",value:4},{label:"boxBgType",value:"transparent"},{label:"layout",value:"accordion"},{label:"enableSeparator",value:!1}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:15},{label:"hquestionPaddingDesktop",value:15},{label:"vquestionPaddingDesktop",value:15},{label:"questionBottomPaddingDesktop",value:15},{label:"answerTopPadding",value:0},{label:"answerRightPadding",value:15},{label:"answerBottomPadding",value:15},{label:"answerLeftPadding",value:15},{label:"overallBorderStyle",value:"none"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:4},{label:"overallBorderRightRadius",value:4},{label:"overallBorderBottomRadius",value:4},{label:"overallBorderLeftRadius",value:4},{label:"boxBgType",value:"color"},{label:"boxBgHoverType",value:"color"},{label:"boxBgColor",value:"#F5F5F5"},{label:"layout",value:"accordion"},{label:"enableSeparator",value:!1}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:20},{label:"hquestionPaddingDesktop",value:20},{label:"vquestionPaddingDesktop",value:20},{label:"questionBottomPaddingDesktop",value:20},{label:"answerTopPadding",value:20},{label:"answerRightPadding",value:20},{label:"answerBottomPadding",value:20},{label:"answerLeftPadding",value:20},{label:"overallBorderStyle",value:"solid"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:5},{label:"overallBorderRightRadius",value:5},{label:"overallBorderBottomRadius",value:5},{label:"overallBorderLeftRadius",value:5},{label:"boxBgType",value:"transparent"},{label:"layout",value:"grid"},{label:"enableSeparator",value:!0}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"iconAlign",value:"row-reverse"},{label:"questionLeftPaddingDesktop",value:25},{label:"hquestionPaddingDesktop",value:25},{label:"vquestionPaddingDesktop",value:25},{label:"questionBottomPaddingDesktop",value:25},{label:"answerTopPadding",value:25},{label:"answerRightPadding",value:25},{label:"answerBottomPadding",value:25},{label:"answerLeftPadding",value:25},{label:"overallBorderStyle",value:"none"},{label:"overallBorderTopWidth",value:1},{label:"overallBorderRightWidth",value:1},{label:"overallBorderBottomWidth",value:1},{label:"overallBorderLeftWidth",value:1},{label:"overallBorderTopRadius",value:5},{label:"overallBorderRightRadius",value:5},{label:"overallBorderBottomRadius",value:5},{label:"overallBorderLeftRadius",value:5},{label:"boxBgType",value:"color"},{label:"boxBgHoverType",value:"color"},{label:"boxBgColor",value:"#F5F5F5"},{label:"layout",value:"grid"},{label:"enableSeparator",value:!0}],icon:' '}];var ah=Object(F.applyFilters)("uag_faq_presets",th);function lh(){return(lh=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l,clientId:i}=e,{layout:o,inactiveOtherItems:s,expandFirstItem:c,enableSchemaSupport:u,rowsGap:p,rowsGapTablet:d,rowsGapMobile:b,rowsGapUnit:g,columnsGap:m,columnsGapTablet:y,columnsGapMobile:f,columnsGapUnit:h,align:v,enableSeparator:_,boxBgType:T,boxBgHoverType:C,boxBgColor:S,questionTextColor:k,questionTextBgColor:w,questionTextActiveColor:P,questionTextActiveBgColor:x,questionPaddingTypeDesktop:A,questionPaddingTypeMobile:G,questionPaddingTypeTablet:M,answerTextColor:R,answerPaddingTypeDesktop:B,answerPaddingTypeMobile:U,answerPaddingTypeTablet:E,iconColor:O,iconActiveColor:L,gapBtwIconQUestion:H,gapBtwIconQUestionTablet:F,gapBtwIconQUestionMobile:j,questionloadGoogleFonts:z,questionFontFamily:D,questionFontWeight:N,questionFontSizeType:I,questionFontSize:V,questionFontSizeMobile:W,questionFontSizeTablet:q,questionLineHeightType:Z,questionLineHeight:$,questionLineHeightMobile:Y,questionLineHeightTablet:K,answerloadGoogleFonts:J,answerFontFamily:X,answerFontWeight:Q,answerFontSizeType:ee,answerFontSize:te,answerFontSizeMobile:ae,answerFontSizeTablet:le,answerLineHeightType:ie,answerLineHeight:oe,answerLineHeightMobile:ne,answerLineHeightTablet:re,icon:se,iconActive:ce,iconAlign:ue,iconSizeType:pe,iconSizeMobile:de,iconSizeTablet:be,iconSize:me,columns:ye,tcolumns:fe,mcolumns:he,enableToggle:ve,equalHeight:_e,questionLeftPaddingTablet:Te,hquestionPaddingTablet:Se,vquestionPaddingTablet:ke,questionBottomPaddingTablet:we,questionLeftPaddingDesktop:Pe,hquestionPaddingDesktop:xe,vquestionPaddingDesktop:Ae,questionBottomPaddingDesktop:Ge,questionLeftPaddingMobile:Me,hquestionPaddingMobile:Re,vquestionPaddingMobile:Be,questionBottomPaddingMobile:Ue,headingTag:Oe,answerSpacingLink:He,questionSpacingLink:Fe,answerTopPadding:ze,answerRightPadding:De,answerBottomPadding:Ne,answerLeftPadding:Ie,answerTopPaddingTablet:Ve,answerRightPaddingTablet:We,answerBottomPaddingTablet:qe,answerLeftPaddingTablet:Ze,answerTopPaddingMobile:$e,answerRightPaddingMobile:Ye,answerBottomPaddingMobile:Ke,answerLeftPaddingMobile:Je,answerFontStyle:Xe,answerTransform:Qe,answerDecoration:et,questionFontStyle:tt,questionTransform:at,questionDecoration:lt,questionLetterSpacing:it,questionLetterSpacingTablet:ot,questionLetterSpacingMobile:nt,questionLetterSpacingType:rt,answerLetterSpacing:st,answerLetterSpacingTablet:ct,answerLetterSpacingMobile:ut,answerLetterSpacingType:pt,boxBgHoverColor:dt,iconBgColor:bt,iconBgSize:gt,iconBgSizeTablet:mt,iconBgSizeMobile:yt,iconBgSizeType:ft,blockTopPadding:ht,blockRightPadding:vt,blockLeftPadding:_t,blockBottomPadding:Tt,blockTopPaddingTablet:Ct,blockRightPaddingTablet:St,blockLeftPaddingTablet:kt,blockBottomPaddingTablet:wt,blockTopPaddingMobile:Pt,blockRightPaddingMobile:xt,blockLeftPaddingMobile:At,blockBottomPaddingMobile:Gt,blockPaddingUnit:Mt,blockPaddingUnitTablet:Rt,blockPaddingUnitMobile:Bt,blockPaddingLink:Ut,blockTopMargin:Et,blockRightMargin:Ot,blockLeftMargin:Lt,blockBottomMargin:Ht,blockTopMarginTablet:Ft,blockRightMarginTablet:jt,blockLeftMarginTablet:zt,blockBottomMarginTablet:Dt,blockTopMarginMobile:Nt,blockRightMarginMobile:It,blockLeftMarginMobile:Vt,blockBottomMarginMobile:Wt,blockMarginUnit:qt,blockMarginUnitTablet:Zt,blockMarginUnitMobile:$t,blockMarginLink:Yt}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:o,label:"layout"},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.layout=e}),a({layout:e})},options:[{value:"accordion",label:Object(r.__)("Accordion","ultimate-addons-for-gutenberg")},{value:"grid",label:Object(r.__)("Grid","ultimate-addons-for-gutenberg")}]}),"accordion"===o&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Collapse other items","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({inactiveOtherItems:!s})}),!0===s&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Expand First Item","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({expandFirstItem:!c})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Toggle","ultimate-addons-for-gutenberg"),checked:ve,onChange:()=>a({enableToggle:!ve})})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Schema Support","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>a({enableSchemaSupport:!u})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Separator","ultimate-addons-for-gutenberg"),checked:_,onChange:()=>a({enableSeparator:!_})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Question Tag","ultimate-addons-for-gutenberg"),data:{value:Oe,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}],onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.headingTag=e}),a({headingTag:e})})(e)}),"grid"===o&&React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:ye,label:"columns",min:1,max:6},tablet:{value:fe,label:"tcolumns",min:1,max:4},mobile:{value:he,label:"mcolumns",min:1,max:2}},min:1,max:6,displayUnit:!1,setAttributes:a}),"grid"===o&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:v,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),"accordion"===o&&React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(Mr,{label:Object(r.__)("Inactive Icon","ultimate-addons-for-gutenberg"),value:se,onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.icon=e}),a({icon:e})})(e)}),React.createElement(Mr,{label:Object(r.__)("Active Icon","ultimate-addons-for-gutenberg"),value:ce,onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.iconActive=e}),a({iconActive:e})})(e)}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Icon Alignment","ultimate-addons-for-gutenberg"),data:{value:ue,label:"iconAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"row",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"row-reverse",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:ah,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Container","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:T,label:"boxBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===T&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:S,data:{value:S,label:"boxBgColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:C,label:"boxBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===C&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:dt,data:{value:dt,label:"boxBgHoverColor"},setAttributes:a}))}),React.createElement(tl,{label:Object(r.__)("Rows Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"rowsGap"},tablet:{value:d,label:"rowsGapTablet"},mobile:{value:b,label:"rowsGapMobile"}},min:0,max:50,unit:{value:g,label:"rowsGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}),"grid"===o&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Columns Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"columnsGap"},tablet:{value:y,label:"columnsGapTablet"},mobile:{value:f,label:"columnsGapMobile"}},min:0,max:50,unit:{value:h,label:"columnsGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:_e,onChange:()=>a({equalHeight:!_e})})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{setAttributes:a,prefix:"overall",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),"accordion"!==o?"":React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:me,label:"iconSize"},tablet:{value:be,label:"iconSizeTablet"},mobile:{value:de,label:"iconSizeMobile"}},min:0,max:100,unit:{value:pe,label:"iconSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:gt,label:"iconBgSize"},tablet:{value:mt,label:"iconBgSizeTablet"},mobile:{value:yt,label:"iconBgSizeMobile"}},min:0,max:100,unit:{value:ft,label:"iconBgSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap between Icon and Question","ultimate-addons-for-gutenberg"),data:{desktop:{value:H,label:"gapBtwIconQUestion"},tablet:{value:F,label:"gapBtwIconQUestionTablet"},mobile:{value:j,label:"gapBtwIconQUestionMobile"}},min:-100,max:100,displayUnit:!1,setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:O,data:{value:O,label:"iconColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Active Color","ultimate-addons-for-gutenberg"),colorValue:L,data:{value:L,label:"iconActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:bt,data:{value:bt,label:"iconBgColor"},setAttributes:a}),React.createElement(Hi,{setAttributes:a,prefix:"icon",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Question","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:z,label:"questionloadGoogleFonts"},fontFamily:{value:D,label:"questionFontFamily"},fontWeight:{value:N,label:"questionFontWeight"},fontStyle:{value:tt,label:"questionFontStyle"},transform:{value:at,label:"questionTransform"},decoration:{value:lt,label:"questionDecoration"},fontSizeType:{value:I,label:"questionFontSizeType"},fontSize:{value:V,label:"questionFontSize"},fontSizeMobile:{value:W,label:"questionFontSizeMobile"},fontSizeTablet:{value:q,label:"questionFontSizeTablet"},lineHeightType:{value:Z,label:"questionLineHeightType"},lineHeight:{value:$,label:"questionLineHeight"},lineHeightMobile:{value:Y,label:"questionLineHeightMobile"},lineHeightTablet:{value:K,label:"questionLineHeightTablet"},letterSpacing:{value:it,label:"questionLetterSpacing"},letterSpacingTablet:{value:ot,label:"questionLetterSpacingTablet"},letterSpacingMobile:{value:nt,label:"questionLetterSpacingMobile"},letterSpacingType:{value:rt,label:"questionLetterSpacingType"}}),"accordion"===o&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active/Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:k,data:{value:k,label:"questionTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:w,data:{value:w,label:"questionTextBgColor"},setAttributes:a})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:P,data:{value:P,label:"questionTextActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:x,data:{value:x,label:"questionTextActiveBgColor"},setAttributes:a}))}),"grid"===o&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:k,data:{value:k,label:"questionTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:w,data:{value:w,label:"questionTextBgColor"},setAttributes:a})),React.createElement(Pl,lh({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ae,label:"vquestionPaddingDesktop"},valueRight:{value:xe,label:"hquestionPaddingDesktop"},valueBottom:{value:Ge,label:"questionBottomPaddingDesktop"},valueLeft:{value:Pe,label:"questionLeftPaddingDesktop"},valueTopTablet:{value:ke,label:"vquestionPaddingTablet"},valueRightTablet:{value:Se,label:"hquestionPaddingTablet"},valueBottomTablet:{value:we,label:"questionBottomPaddingTablet"},valueLeftTablet:{value:Te,label:"questionLeftPaddingTablet"},valueTopMobile:{value:Be,label:"vquestionPaddingMobile"},valueRightMobile:{value:Re,label:"hquestionPaddingMobile"},valueBottomMobile:{value:Ue,label:"questionBottomPaddingMobile"},valueLeftMobile:{value:Me,label:"questionLeftPaddingMobile"},unit:{value:A,label:"questionPaddingTypeDesktop"},mUnit:{value:G,label:"questionPaddingTypeMobile"},tUnit:{value:M,label:"questionPaddingTypeTablet"},attributes:t,setAttributes:a,link:{value:Fe,label:"questionSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}))),React.createElement(je,{title:Object(r.__)("Answer","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:R,data:{value:R,label:"answerTextColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:J,label:"answerloadGoogleFonts"},fontFamily:{value:X,label:"answerFontFamily"},fontWeight:{value:Q,label:"answerFontWeight"},fontStyle:{value:Xe,label:"answerFontStyle"},transform:{value:Qe,label:"answerTransform"},decoration:{value:et,label:"answerDecoration"},fontSizeType:{value:ee,label:"answerFontSizeType"},fontSize:{value:te,label:"answerFontSize"},fontSizeMobile:{value:ae,label:"answerFontSizeMobile"},fontSizeTablet:{value:le,label:"answerFontSizeTablet"},lineHeightType:{value:ie,label:"answerLineHeightType"},lineHeight:{value:oe,label:"answerLineHeight"},lineHeightMobile:{value:ne,label:"answerLineHeightMobile"},lineHeightTablet:{value:re,label:"answerLineHeightTablet"},letterSpacing:{value:st,label:"answerLetterSpacing"},letterSpacingTablet:{value:ct,label:"answerLetterSpacingTablet"},letterSpacingMobile:{value:ut,label:"answerLetterSpacingMobile"},letterSpacingType:{value:pt,label:"answerLetterSpacingType"}}),React.createElement(Pl,lh({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ze,label:"answerTopPadding"},valueRight:{value:De,label:"answerRightPadding"},valueBottom:{value:Ne,label:"answerBottomPadding"},valueLeft:{value:Ie,label:"answerLeftPadding"},valueTopTablet:{value:Ve,label:"answerTopPaddingTablet"},valueRightTablet:{value:We,label:"answerRightPaddingTablet"},valueBottomTablet:{value:qe,label:"answerBottomPaddingTablet"},valueLeftTablet:{value:Ze,label:"answerLeftPaddingTablet"},valueTopMobile:{value:$e,label:"answerTopPaddingMobile"},valueRightMobile:{value:Ye,label:"answerRightPaddingMobile"},valueBottomMobile:{value:Ke,label:"answerBottomPaddingMobile"},valueLeftMobile:{value:Je,label:"answerLeftPaddingMobile"},unit:{value:B,label:"answerPaddingTypeDesktop"},mUnit:{value:U,label:"answerPaddingTypeMobile"},tUnit:{value:E,label:"answerPaddingTypeTablet"},attributes:t,setAttributes:a,link:{value:He,label:"answerSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ht,label:"blockTopPadding"},valueRight:{value:vt,label:"blockRightPadding"},valueBottom:{value:Tt,label:"blockBottomPadding"},valueLeft:{value:_t,label:"blockLeftPadding"},valueTopTablet:{value:Ct,label:"blockTopPaddingTablet"},valueRightTablet:{value:St,label:"blockRightPaddingTablet"},valueBottomTablet:{value:wt,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:kt,label:"blockLeftPaddingTablet"},valueTopMobile:{value:Pt,label:"blockTopPaddingMobile"},valueRightMobile:{value:xt,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Gt,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:At,label:"blockLeftPaddingMobile"},unit:{value:Mt,label:"blockPaddingUnit"},mUnit:{value:Bt,label:"blockPaddingUnitMobile"},tUnit:{value:Rt,label:"blockPaddingUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ut,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Et,label:"blockTopMargin"},valueRight:{value:Ot,label:"blockRightMargin"},valueBottom:{value:Ht,label:"blockBottomMargin"},valueLeft:{value:Lt,label:"blockLeftMargin"},valueTopTablet:{value:Ft,label:"blockTopMarginTablet"},valueRightTablet:{value:jt,label:"blockRightMarginTablet"},valueBottomTablet:{value:Dt,label:"blockBottomMarginTablet"},valueLeftTablet:{value:zt,label:"blockLeftMarginTablet"},valueTopMobile:{value:Nt,label:"blockTopMarginMobile"},valueRightMobile:{value:It,label:"blockRightMarginMobile"},valueBottomMobile:{value:Wt,label:"blockBottomMarginMobile"},valueLeftMobile:{value:Vt,label:"blockLeftMarginMobile"},unit:{value:qt,label:"blockMarginUnit"},mUnit:{value:$t,label:"blockMarginUnitMobile"},tUnit:{value:Zt,label:"blockMarginUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Yt,label:"blockMarginLink"}}))),React.createElement(il,lh({},rl,{parentProps:e})))))}),nh=a(110),rh=0,sh={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},ch={};ch.locals=nh.a.locals||{},ch.use=function(){return rh++||(ih=we()(nh.a,sh)),ch},ch.unuse=function(){rh>0&&!--rh&&(ih(),ih=null)};var uh=ch;const ph=["uagb/faq-child"],dh=[];var bh=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(uh.use(),()=>{uh.unuse()}),[]);const{attributes:t,deviceType:a}=e,{equalHeight:l,block_id:i}=t,o=Object(B.useMemo)(()=>{const e=[];for(let t=0;t<2;t++)e.push(["uagb/faq-child",dh[t]]);return e},[2,dh]),n=l?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()("uagb-faq__outer-wrap","uagb-editor-preview-mode-"+a.toLowerCase(),"uagb-block-"+i,"uagb-faq-icon-"+t.iconAlign,"uagb-faq-layout-"+t.layout,"uagb-faq-expand-first-"+t.expandFirstItem,"uagb-faq-inactive-other-"+t.inactiveOtherItems,n),"data-faqtoggle":t.enableToggle,role:"tablist"},React.createElement(ge.InnerBlocks,{template:o,templateLock:!1,allowedBlocks:ph,__experimentalMoverDirection:"vertical"}))}),gh=Object(B.memo)(e=>{let{attributes:t}=e;const{questionloadGoogleFonts:a,questionFontFamily:l,questionFontWeight:i,answerloadGoogleFonts:o,answerFontFamily:n,answerFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),mh=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,setAttributes:a,attributes:l,attributes:{questionBottomPaddingDesktop:i,vquestionPaddingDesktop:o,questionLeftPaddingDesktop:r,hquestionPaddingDesktop:s,questionBottomPaddingTablet:c,vquestionPaddingTablet:u,questionLeftPaddingTablet:p,hquestionPaddingTablet:d,questionBottomPaddingMobile:b,vquestionPaddingMobile:g,questionLeftPaddingMobile:m,hquestionPaddingMobile:y,borderStyle:f,borderWidth:h,borderRadius:v,borderColor:_,borderHoverColor:T,UAGHideDesktop:C,UAGHideTab:S,UAGHideMob:k},clientId:w,name:P,deviceType:x}=e;Object(B.useEffect)(()=>{10===i&&10!==o&&a({questionBottomPaddingDesktop:o}),10===r&&10!==s&&a({questionLeftPaddingDesktop:s}),10===c&&10!==u&&a({questionBottomPaddingTablet:u}),10===p&&10!==d&&a({questionLeftPaddingTablet:d}),10===b&&10!==g&&a({questionBottomPaddingMobile:g}),10===m&&10!==y&&a({questionLeftPaddingMobile:y}),(h||v||_||T||f)&&ue("overall",{label:"borderWidth",value:h},{label:"borderRadius",value:v},{label:"borderColor",value:_},{label:"borderHoverColor",value:T},{label:"borderStyle",value:f},a,l)},[]);const A=["h1","h2","h3","h4","h5","h6","span","p"];Object(B.useEffect)(()=>{Object(n.select)("core/block-editor").getBlocks(w).forEach(e=>{e.attributes.headingTag=A.includes(l.headingTag)?l.headingTag:"span"}),l.vanswerPaddingDesktop&&(""===l.answerTopPadding&&a({answerTopPadding:l.vanswerPaddingDesktop}),""===l.answerBottomPadding&&a({answerBottomPadding:l.vanswerPaddingDesktop})),l.hanswerPaddingDesktop&&(""===l.answerRightPadding&&a({answerRightPadding:l.hanswerPaddingDesktop}),""===l.answerLeftPadding&&a({answerLeftPadding:l.hanswerPaddingDesktop})),l.vanswerPaddingTablet&&(""===l.answerTopPaddingTablet&&a({answerTopPaddingTablet:l.vanswerPaddingTablet}),""===l.answerBottomPaddingTablet&&a({answerBottomPaddingTablet:l.vanswerPaddingTablet})),l.hanswerPaddingTablet&&(""===l.answerRightPaddingTablet&&a({answerRightPaddingTablet:l.hanswerPaddingTablet}),""===l.answerLeftPaddingTablet&&a({answerLeftPaddingTablet:l.hanswerPaddingTablet})),l.vanswerPaddingMobile&&(""===l.answerTopPaddingMobile&&a({answerTopPaddingMobile:l.vanswerPaddingMobile}),""===l.answerBottomPaddingMobile&&a({answerBottomPaddingMobile:l.vanswerPaddingMobile})),l.hanswerPaddingMobile&&(""===l.answerRightPaddingMobile&&a({answerRightPaddingMobile:l.hanswerPaddingMobile}),""===l.answerLeftPaddingMobile&&a({answerLeftPaddingMobile:l.hanswerPaddingMobile}))},[l]);const G=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,layout:r,inactiveOtherItems:s,expandFirstItem:c,rowsGap:u,rowsGapTablet:p,rowsGapMobile:d,rowsGapUnit:b,columnsGapUnit:g,columnsGap:m,columnsGapTablet:y,columnsGapMobile:f,align:h,enableSeparator:v,boxBgType:_,boxBgHoverType:T,boxBgColor:C,boxBgHoverColor:S,overallBorderHColor:k,overallBorderColor:w,overallBorderTopWidth:P,questionTextColor:x,questionTextBgColor:A,questionTextActiveColor:G,questionTextActiveBgColor:M,questionPaddingTypeDesktop:R,questionPaddingTypeMobile:B,questionPaddingTypeTablet:U,vquestionPaddingMobile:E,vquestionPaddingTablet:O,vquestionPaddingDesktop:L,hquestionPaddingMobile:H,hquestionPaddingTablet:F,hquestionPaddingDesktop:j,answerTextColor:z,answerPaddingTypeDesktop:D,answerPaddingTypeMobile:N,answerPaddingTypeTablet:I,answerTopPadding:V,answerBottomPadding:W,answerRightPadding:q,answerLeftPadding:Z,answerTopPaddingTablet:$,answerBottomPaddingTablet:Y,answerRightPaddingTablet:K,answerLeftPaddingTablet:J,answerTopPaddingMobile:X,answerBottomPaddingMobile:Q,answerRightPaddingMobile:ee,answerLeftPaddingMobile:te,iconColor:le,iconActiveColor:ie,gapBtwIconQUestion:oe,gapBtwIconQUestionTablet:ne,gapBtwIconQUestionMobile:re,questionFontFamily:se,questionFontWeight:ce,questionFontSizeType:ue,questionFontSize:pe,questionFontSizeMobile:de,questionFontSizeTablet:be,questionLineHeightType:ge,questionLineHeight:me,questionLineHeightMobile:ye,questionLineHeightTablet:fe,answerFontFamily:he,answerFontWeight:ve,answerFontSizeType:_e,answerFontSize:Te,answerFontSizeMobile:Ce,answerFontSizeTablet:Se,answerLineHeightType:ke,answerLineHeight:we,answerLineHeightMobile:Pe,answerLineHeightTablet:xe,iconAlign:Ae,iconSize:Ge,iconSizeType:Me,iconSizeMobile:Re,iconSizeTablet:Be,columns:Ue,tcolumns:Ee,mcolumns:Oe,questionLeftPaddingTablet:Le,questionBottomPaddingTablet:He,questionLeftPaddingDesktop:Fe,questionBottomPaddingDesktop:je,questionLeftPaddingMobile:ze,questionBottomPaddingMobile:De,answerFontStyle:Ne,answerTransform:Ie,answerDecoration:Ve,questionFontStyle:We,questionTransform:qe,questionDecoration:Ze,questionLetterSpacing:$e,questionLetterSpacingTablet:Ye,questionLetterSpacingMobile:Ke,questionLetterSpacingType:Je,answerLetterSpacing:Xe,answerLetterSpacingTablet:Qe,answerLetterSpacingMobile:et,answerLetterSpacingType:tt,iconBgColor:at,iconBgSize:lt,iconBgSizeTablet:it,iconBgSizeMobile:ot,iconBgSizeType:nt,iconBorderHColor:rt,blockTopPadding:st,blockRightPadding:ct,blockLeftPadding:ut,blockBottomPadding:pt,blockTopPaddingTablet:dt,blockRightPaddingTablet:bt,blockLeftPaddingTablet:gt,blockBottomPaddingTablet:mt,blockTopPaddingMobile:yt,blockRightPaddingMobile:ft,blockLeftPaddingMobile:ht,blockBottomPaddingMobile:vt,blockPaddingUnit:_t,blockPaddingUnitTablet:Tt,blockPaddingUnitMobile:Ct,blockTopMargin:St,blockRightMargin:kt,blockLeftMargin:wt,blockBottomMargin:Pt,blockTopMarginTablet:xt,blockRightMarginTablet:At,blockLeftMarginTablet:Gt,blockBottomMarginTablet:Mt,blockTopMarginMobile:Rt,blockRightMarginMobile:Bt,blockLeftMarginMobile:Ut,blockBottomMarginMobile:Et,blockMarginUnit:Ot,blockMarginUnitTablet:Lt,blockMarginUnitMobile:Ht}=e,Ft=Wr(e,"overall",""),jt=Wr(e,"overall","tablet"),zt=Wr(e,"overall","mobile"),Dt=Wr(e,"icon",""),Nt=Wr(e,"icon","tablet"),It=Wr(e,"icon","mobile");let Vt={},Wt={},qt={},Zt=le,$t=ie;void 0===le&&(Zt=x),void 0===ie&&($t=G),Vt={" .uagb-icon svg":{width:Vr(us(Ge,"iconSize",i),Me),height:Vr(us(Ge,"iconSize",i),Me),"font-size":Vr(us(Ge,"iconSize",i),Me),fill:Zt}," .uagb-icon-active svg":{width:Vr(us(Ge,"iconSize",i),Me),height:Vr(us(Ge,"iconSize",i),Me),"font-size":Vr(us(Ge,"iconSize",i),Me),fill:$t}," .uagb-faq-child__outer-wrap":{"margin-bottom":Vr(us(u,"rowsGap",i),b)},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":Vr(us(m,"columnsGap",i),g),"grid-row-gap":Vr(us(u,"rowsGap",i),b)}," .uagb-faq-item":{"background-color":"color"===_?C:"transparent",...Ft}," .uagb-faq-item:hover":{"background-color":"color"===T?S:"transparent","border-color":k}," .uagb-faq-item .uagb-question":{color:x}," .uagb-faq-item.uagb-faq-item-active .uagb-question":{color:G}," .uagb-faq-item:hover .uagb-question":{color:G}," .uagb-faq-item.uagb-faq-item-active .uagb-faq-questions-button":{"background-color":M}," .uagb-faq-item:hover .uagb-faq-questions-button":{"background-color":M}," .uagb-faq-questions-button":{"padding-top":Vr(L,R),"padding-bottom":Vr(je,R),"padding-right":Vr(j,R),"padding-left":Vr(Fe,R),"background-color":A}," .uagb-faq-content":{"padding-top":Vr(V,D),"padding-bottom":Vr(W,D),"padding-right":Vr(q,D),"padding-left":Vr(Z,D)},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":Vr(us(oe,"gapBtwIconQUestion",i),"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":Vr(us(oe,"gapBtwIconQUestion",i),"px")}," .uagb-faq-item .uagb-faq-icon-wrap":{"background-color":at,padding:Vr(lt,nt),...Dt}," .uagb-faq-item .uagb-faq-icon-wrap:hover":{"border-color":rt}," .uagb-faq-item:hover .uagb-icon svg":{fill:$t}," .uagb-faq-item .uagb-faq-questions-button.uagb-faq-questions":{"flex-direction":Ae}," .uagb-faq-questions-button .uagb-question":{"font-size":Vr(pe,ue),"line-height":Vr(me,ge),"font-family":se,"font-style":We,"text-decoration":Ze,"text-transform":qe,"font-weight":ce,"letter-spacing":Vr($e,Je)}," .uagb-faq-item .uagb-faq-content":{"font-size":Vr(Te,_e),"line-height":Vr(we,ke),"font-family":he,"font-style":Ne,"text-decoration":Ve,"text-transform":Ie,"font-weight":ve,color:z,"letter-spacing":Vr(Xe,tt)},".uagb-faq__outer-wrap":{"margin-top":Vr(St,Ot),"margin-right":Vr(kt,Ot),"margin-bottom":Vr(Pt,Ot),"margin-left":Vr(wt,Ot),"padding-top":Vr(st,_t),"padding-right":Vr(ct,_t),"padding-bottom":Vr(pt,_t),"padding-left":Vr(ut,_t)}},Wt={" .uagb-faq-questions-button":{"padding-top":Vr(O,U),"padding-bottom":Vr(He,U),"padding-right":Vr(F,U),"padding-left":Vr(Le,U)}," .uagb-faq-item .uagb-faq-icon-wrap":{padding:Vr(it,nt),...Nt}," .uagb-faq-item":{...jt}," .uagb-faq-content":{"padding-top":Vr($,I),"padding-bottom":Vr(Y,I),"padding-right":Vr(K,I),"padding-left":Vr(J,I)}," .uagb-faq-questions-button .uagb-question":{"font-size":Vr(be,ue),"line-height":Vr(fe,ge),"letter-spacing":Vr(Ye,Je)}," .uagb-faq-item .uagb-faq-content":{"font-size":Vr(Se,_e),"line-height":Vr(xe,ke),"letter-spacing":Vr(Qe,tt)}," .uagb-icon svg":{width:Vr(Be,Me),height:Vr(Be,Me),"font-size":Vr(Be,Me)},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":Vr(ne,"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":Vr(ne,"px")}," .uagb-icon-active svg":{width:Vr(Be,Me),height:Vr(Be,Me),"font-size":Vr(Be,Me)}," .uagb-faq-child__outer-wrap":{"margin-bottom":Vr(p,b)},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":Vr(y,g),"grid-row-gap":Vr(p,b)},".uagb-faq__outer-wrap":{"margin-top":Vr(xt,Lt),"margin-right":Vr(At,Lt),"margin-bottom":Vr(Mt,Lt),"margin-left":Vr(Gt,Lt),"padding-top":Vr(dt,Tt),"padding-right":Vr(bt,Tt),"padding-bottom":Vr(mt,Tt),"padding-left":Vr(gt,Tt)}},qt={" .uagb-faq-item":{...zt}," .uagb-faq-item .uagb-faq-icon-wrap":{padding:Vr(ot,nt),...It},".uagb-faq-icon-row .uagb-faq-item .uagb-faq-icon-wrap":{"margin-right":Vr(re,"px")},".uagb-faq-icon-row-reverse .uagb-faq-item .uagb-faq-icon-wrap":{"margin-left":Vr(re,"px")}," .uagb-faq-questions-button":{"padding-top":Vr(E,B),"padding-bottom":Vr(De,B),"padding-right":Vr(H,B),"padding-left":Vr(ze,B)}," .uagb-faq-content":{"padding-top":Vr(X,N),"padding-bottom":Vr(Q,N),"padding-right":Vr(ee,N),"padding-left":Vr(te,N)}," .uagb-faq-questions-button .uagb-question":{"font-size":Vr(de,ue),"line-height":Vr(ye,ge),"letter-spacing":Vr(Ke,Je)}," .uagb-faq-item .uagb-faq-content":{"font-size":Vr(Ce,_e),"line-height":Vr(Pe,ke),"letter-spacing":Vr(et,tt)}," .uagb-icon svg":{width:Vr(Re,Me),height:Vr(Re,Me),"font-size":Vr(Re,Me)}," .uagb-icon-active svg":{width:Vr(Re,Me),height:Vr(Re,Me),"font-size":Vr(Re,Me)}," .uagb-faq-child__outer-wrap":{"margin-bottom":Vr(d,b)},".uagb-faq-layout-grid .block-editor-inner-blocks .block-editor-block-list__layout":{"grid-column-gap":Vr(f,g),"grid-row-gap":Vr(d,b)},".uagb-faq__outer-wrap":{"margin-top":Vr(Rt,Ht),"margin-right":Vr(Bt,Ht),"margin-bottom":Vr(Et,Ht),"margin-left":Vr(Ut,Ht),"padding-top":Vr(yt,Ct),"padding-right":Vr(ft,Ct),"padding-bottom":Vr(vt,Ct),"padding-left":Vr(ht,Ct)}},"accordion"===r&&!0===s&&(Vt[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"none"}),"accordion"===r&&!1===s&&(Vt[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap.uagb-faq-item .uagb-faq-questions-button .uagb-icon-active"]={display:"flex"},Vt[" .block-editor-inner-blocks .uagb-faq-child__outer-wrap.uagb-faq-item .uagb-faq-questions-button .uagb-icon"]={display:"none"}),"accordion"===r&&!0===c&&(Vt[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap .uagb-faq-content "]={display:"block"},Vt[" .block-editor-block-list__layout > div:first-child > .uagb-faq-child__outer-wrap.uagb-faq-item .uagb-faq-questions-button .uagb-icon-active "]={display:"flex"},Vt[" .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===v&&(Vt[".uagb-faq__outer-wrap .uagb-faq-child__outer-wrap .uagb-faq-content "]={"border-style":"solid","border-top-color":w,"border-top-width":Vr(P,"px")},Vt[".uagb-faq__outer-wrap .uagb-faq-child__outer-wrap .uagb-faq-content:hover "]={"border-top-color":k}),"grid"===r&&(Vt[" .block-editor-block-list__layout .uagb-faq-child__outer-wrap "]={"text-align":h},Vt[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+us(Ue,"columns",i)+", 1fr)"},Wt[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+us(Ee,"tcolumns",i)+", 1fr)"},qt[".uagb-faq-layout-grid .block-editor-inner-blocks > .block-editor-block-list__layout "]={"grid-template-columns":"repeat("+us(Oe,"mcolumns",i)+", 1fr)"});let Yt="";const Kt=".uagb-block-"+n;return Yt=ae(Vt,Kt),"tablet"!==o&&"mobile"!==o||(Yt+=ae(Wt,""+Kt,!0,"tablet"),"mobile"===o&&(Yt+=ae(qt,""+Kt,!0,"mobile"))),Yt}(l,0,P,x),[l,x]);return Object(B.useEffect)(()=>{ys()},[x]),Object(B.useEffect)(()=>{he(e)},[C,S,k,x]),React.createElement(React.Fragment,null,React.createElement(gh,{attributes:l}),React.createElement(me,{blockStyling:G}),t&&React.createElement(oh,e),React.createElement(bh,e))});a(226);var yh={block_id:{type:"string"},layout:{type:"string",default:"accordion"},inactiveOtherItems:{type:"boolean",default:!0},expandFirstItem:{type:"boolean",default:!0},enableSchemaSupport:{type:"boolean",default:!1},align:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!0},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!0},enableSeparator:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"enable-separator"}},rowsGap:{type:"number",default:10,UAGCopyPaste:{styleType:"row-gap"}},rowsGapTablet:{type:"number",UAGCopyPaste:{styleType:"row-gap-tablet"}},rowsGapMobile:{type:"number",UAGCopyPaste:{styleType:"row-gap-mobile"}},rowsGapUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"row-gap-type"}},columnsGap:{type:"number",default:10,UAGCopyPaste:{styleType:"column-gap"}},columnsGapTablet:{type:"number",UAGCopyPaste:{styleType:"column-gap-tablet"}},columnsGapMobile:{type:"number",UAGCopyPaste:{styleType:"column-gap-mobile"}},columnsGapUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"column-gap-type"}},boxBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"faq-bg-type"}},boxBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"faq-bg-hover-type"}},boxBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"faq-bg-color"}},boxBgHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"faq-bg-hover-color"}},boxPaddingTypeMobile:{type:"string",UAGCopyPaste:{styleType:"faq-padding-type-mobile"},default:"px"},boxPaddingTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"faq-padding-type-tablet"}},boxPaddingTypeDesktop:{type:"string",default:"px",UAGCopyPaste:{styleType:"faq-padding-type-desktop"}},vBoxPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-vertical-padding-mobile"}},hBoxPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-horizontal-padding-mobile"}},vBoxPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-vertical-padding-tablet"}},hBoxPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-horizontal-padding-tablet"}},vBoxPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-vertical-padding-desktop"}},hBoxPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"faq-horizontal-padding-desktop"}},borderHoverColor:{type:"string"},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:2},borderColor:{type:"string",default:"#D2D2D2"},questionTextColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},questionTextActiveColor:{type:"string",UAGCopyPaste:{styleType:"main-title-hover-color"}},questionTextBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},questionTextActiveBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},questionPaddingTypeDesktop:{type:"string",UAGCopyPaste:{styleType:"main-title-padding-type-desktop"},default:"px"},questionPaddingTypeTablet:{type:"string",UAGCopyPaste:{styleType:"main-title-padding-type-tablet"},default:"px"},questionPaddingTypeMobile:{type:"string",UAGCopyPaste:{styleType:"main-title-padding-type-mobile"},default:"px"},vquestionPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding-mobile"},default:10},vquestionPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding-tablet"},default:10},vquestionPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding-desktop"},default:10},hquestionPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding-mobile"},default:10},hquestionPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding-tablet"},default:10},hquestionPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding-desktop"},default:10},answerTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},answerPaddingTypeDesktop:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-type-desktop"}},answerPaddingTypeTablet:{type:"string",UAGCopyPaste:{styleType:"desc-padding-type-tablet"},default:"px"},answerPaddingTypeMobile:{type:"string",UAGCopyPaste:{styleType:"desc-padding-type-mobile"},default:"px"},vanswerPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding-mobile"},default:10},vanswerPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding-tablet"},default:10},vanswerPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding-desktop"},default:10},hanswerPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding-mobile"},default:10},hanswerPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding-tablet"},default:10},hanswerPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding-desktop"},default:10},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconActiveColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},gapBtwIconQUestion:{type:"number",default:10,UAGCopyPaste:{styleType:"icon-spacing"}},gapBtwIconQUestionTablet:{type:"number",UAGCopyPaste:{styleType:"icon-spacing-tablet"}},gapBtwIconQUestionMobile:{type:"number",UAGCopyPaste:{styleType:"icon-spacing-mobile"}},questionloadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},answerloadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"desc-load-google-fonts"},default:!1},questionFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},questionFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},questionFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},questionTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},questionDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},questionFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},questionFontSizeType:{type:"string",UAGCopyPaste:{styleType:"main-title-font-size-type"},default:"px"},questionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},questionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},questionLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},questionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},questionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},questionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},answerFontFamily:{type:"string",UAGCopyPaste:{styleType:"desc-font-family"},default:"Default"},answerFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},answerFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"},default:"normal"},answerTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},answerDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},answerFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},answerFontSizeType:{type:"string",UAGCopyPaste:{styleType:"desc-font-size-type"},default:"px"},answerFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},answerFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},answerLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},answerLineHeightType:{type:"string",UAGCopyPaste:{styleType:"desc-line-height-type"},default:"em"},answerLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},answerLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},icon:{type:"string",default:"plus"},iconActive:{type:"string",default:"minus"},iconAlign:{type:"string",default:"row",UAGCopyPaste:{styleType:"icon-align"}},iconSize:{type:"number",default:12,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size-tablet"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size-mobile"}},iconSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-size-type"}},iconBgSize:{type:"number",UAGCopyPaste:{styleType:"icon-bg-size"}},iconBgSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-bg-size-tablet"}},iconBgSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-bg-size-mobile"}},iconBgSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-bg-size-type"}},columns:{type:"number",default:2,UAGCopyPaste:{styleType:"column-count"}},tcolumns:{type:"number",default:2,UAGCopyPaste:{styleType:"column-count-tablet"}},mcolumns:{type:"number",default:1,UAGCopyPaste:{styleType:"column-count-mobile"}},schema:{type:"string",default:""},enableToggle:{type:"boolean",default:!0},equalHeight:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"equal-height"}},questionLeftPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},questionBottomPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},questionLeftPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-left-padding-desktop"}},questionBottomPaddingDesktop:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-padding-desktop"}},questionLeftPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},questionBottomPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"},questionSpacingLink:{type:"boolean",default:!1},answerSpacingLink:{type:"boolean",default:!1},answerTopPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-top-padding"}},answerRightPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-right-padding"}},answerBottomPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-padding"}},answerLeftPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-left-padding"}},answerTopPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},answerRightPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},answerBottomPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},answerLeftPaddingTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},answerTopPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},answerRightPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},answerBottomPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},answerLeftPaddingMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},isPreview:{type:"boolean",default:!1},...ce("overall"),questionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},questionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},questionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},questionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},answerLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},answerLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},answerLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},answerLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},iconBgColor:{type:"string",UAGCopyPaste:{styleType:"icon-bg-color"}},...ce("icon")};const fh={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"},rowsGapUnit:{type:"string",default:"px"},...ce("overall")};var hh=[{attributes:fh,save(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,n),"data-faqtoggle":e.attributes.enableToggle},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:fh,save(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,n),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:fh,save(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,n),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement("div",{className:"uagb-faq__wrap uagb-buttons-layout-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:yh,save:function(e){const{className:t}=e,{block_id:a,schema:l,enableSchemaSupport:i,equalHeight:o}=e.attributes,n=o?"uagb-faq-equal-height":"";return React.createElement("div",{className:Be()(t,"uagb-faq__outer-wrap","uagb-block-"+a,"uagb-faq-icon-"+e.attributes.iconAlign,"uagb-faq-layout-"+e.attributes.layout,"uagb-faq-expand-first-"+e.attributes.expandFirstItem,"uagb-faq-inactive-other-"+e.attributes.inactiveOtherItems,"uagb-faq__wrap","uagb-buttons-layout-wrap",n),"data-faqtoggle":e.attributes.enableToggle,role:"tablist"},!0===i?React.createElement("script",{type:"application/ld+json"},l):"",React.createElement(ge.InnerBlocks.Content,null))}}];const vh=Object(L.compose)(Object(n.withSelect)(e=>({selected:e("core/block-editor").getSelectedBlock()}))),_h=Object(L.createHigherOrderComponent)(e=>vh(t=>{let{...a}=t;return React.createElement(e,a)}),"withFaq");let Th={};function Ch(){return(Ch=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"faq"}):React.createElement(mh,e),supports:{anchor:!0,html:!1},save:function(){return React.createElement(ge.InnerBlocks.Content,null)}}),Object(F.addFilter)("editor.BlockEdit","uagb/faq",_h);var Sh,kh=Object(B.memo)(e=>React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("For the styling options please select the Parent Block.","ultimate-addons-for-gutenberg")))),React.createElement(il,Ch({},rl,{parentProps:e})))))),wh=a(111),Ph=0,xh={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Ah={};Ah.locals=wh.a.locals||{},Ah.use=function(){return Ph++||(Sh=we()(wh.a,xh)),Ah},Ah.unuse=function(){Ph>0&&!--Ph&&(Sh(),Sh=null)};var Gh=Ah,Mh=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Gh.use(),()=>{Gh.unuse()}),[]);const{attributes:t,setAttributes:a,state:l,isSelected:i}=e,{question:o,answer:n,icon:s,iconActive:c,layout:u,headingTag:p,block_id:d}=t,b=["h1","h2","h3","h4","h5","h6","span","p"].includes(p)?p:"span";return React.createElement("div",{className:Be()("uagb-faq-child__outer-wrap","uagb-faq-item","uagb-block-"+d,i&&!1!==l.isFocused?"uagb-faq__active":""),role:"tab",tabIndex:"0"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===u&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},Ce(s,a)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Ce(c,a))),React.createElement(ge.RichText,{tagName:"span"!==b?b:"div",placeholder:Object(r.__)("Question","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({question:e}),className:"uagb-question",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),React.createElement(ge.RichText,{className:"uagb-faq-content",tagName:"p",placeholder:Object(r.__)("Answer","ultimate-addons-for-gutenberg"),value:n,onChange:e=>a({answer:e}),multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough","core/link"]})))});function Rh(){return(Rh=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a}=e,[l,i]=Object(B.useState)({isFocused:"false"});return Object(B.useEffect)(()=>{Bh=t},[]),Object(B.useEffect)(()=>{!t&&Bh&&l.isFocused&&i({isFocused:"false"}),t&&!Bh&&i({isFocused:!0}),Bh=t},[a]),React.createElement(React.Fragment,null,t&&React.createElement(kh,e),React.createElement(Mh,Rh({},e,{state:l})))});a(227);var Eh=[{attributes:Yt,save(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-block-"+a)},React.createElement("div",{className:"uagb-faq-child__wrapper"},React.createElement("div",{className:"uagb-faq-item"},React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},kb(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},kb(n))),React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-question"})),React.createElement("div",{className:"uagb-faq-content"},React.createElement("span",null,React.createElement(ge.RichText.Content,{tagName:"p",value:i}))))))}},{attributes:Yt,save(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r,headingTag:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-block-"+a)},React.createElement("div",{className:"uagb-faq-child__wrapper"},React.createElement("div",{className:"uagb-faq-item",role:"tab",tabIndex:"0"},React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},kb(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},kb(n))),React.createElement(ge.RichText.Content,{tagName:s,value:l,className:"uagb-question"})),React.createElement("div",{className:"uagb-faq-content"},React.createElement("span",null,React.createElement(ge.RichText.Content,{tagName:"p",value:i}))))))}},{attributes:Yt,save:function(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r,headingTag:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-faq-item","uagb-block-"+a),role:"tab",tabIndex:"0"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},Ce(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Ce(n))),React.createElement(ge.RichText.Content,{tagName:s,value:l,className:"uagb-question"})),React.createElement(ge.RichText.Content,{className:"uagb-faq-content",tagName:"p",value:i})))}},{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},question:{type:"html",default:Object(r.__)("What is FAQ?","ultimate-addons-for-gutenberg")},answer:{type:"html",default:Object(r.__)("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:"plus"},iconActive:{type:"html",default:"minus"},layout:{type:"string",default:"accordion"},headingTag:{type:"html",selector:"span,p,h1,h2,h3,h4,h5,h6",default:"span"}},save:function(e){const{className:t}=e,{block_id:a,question:l,answer:i,icon:o,iconActive:n,layout:r,headingTag:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-faq-child__outer-wrap","uagb-faq-item","uagb-block-"+a),role:"tab",tabIndex:"0"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-faq-questions-button uagb-faq-questions"},"accordion"===r&&React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-icon uagb-faq-icon-wrap"},Ce(o)),React.createElement("span",{className:"uagb-icon-active uagb-faq-icon-wrap"},Ce(n))),React.createElement(ge.RichText.Content,{tagName:s,value:l,className:"uagb-question"})),React.createElement("div",{className:"uagb-faq-content"},React.createElement(ge.RichText.Content,{tagName:"p",value:i}))))}}];let Oh={};Oh=Object(F.applyFilters)("uagb/faq-child",ss(Oh)),Object(de.registerBlockType)("uagb/faq-child",{...Oh,title:Object(r.__)("FAQ Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a frequently asked question/accordion to display information.","ultimate-addons-for-gutenberg"),icon:se.faq_child,parent:["uagb/faq"],attributes:Yt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"faq-child",isChildren:!0}):React.createElement(Uh,e),supports:{anchor:!0,html:!1},save:()=>null,deprecated:Eh});const Lh=[{defaultAttributes:oa},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"bgColor",value:"#ffffff"},{label:"fieldBorderTopLeftRadius",value:2},{label:"fieldBorderTopRightRadius",value:2},{label:"fieldBorderBottomLeftRadius",value:2},{label:"fieldBorderBottomRightRadius",value:2},{label:"paddingFieldTop",value:12},{label:"paddingFieldRight",value:12},{label:"paddingFieldBottom",value:12},{label:"paddingFieldLeft",value:12},{label:"formStyle",value:"boxed"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"bgColor",value:"#ffffff"},{label:"fieldBorderTopLeftRadius",value:3},{label:"fieldBorderTopRightRadius",value:3},{label:"fieldBorderBottomLeftRadius",value:3},{label:"fieldBorderBottomRightRadius",value:3},{label:"paddingFieldTop",value:0},{label:"paddingFieldRight",value:10},{label:"paddingFieldBottom",value:10},{label:"paddingFieldLeft",value:0},{label:"formStyle",value:"underlined"}],icon:' '}];var Hh=Object(F.applyFilters)("uag_forms_presets",Lh);const Fh=[{defaultAttributes:oa},{defaultPresetAttributes:[{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderTopWidth"},{label:"btnBorderLeftWidth"},{label:"btnBorderRightWidth"},{label:"btnBorderBottomWidth"},{label:"submitBgType"},{label:"submitBgColorHover"},{label:"submitColor"},{label:"submitColorHover"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderBottomWidth",value:1},{label:"submitBgType",value:"transparent"},{label:"submitBgColorHover",value:"#3a3a3a"},{label:"submitColor",value:"#0170b9"},{label:"submitColorHover",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderBottomWidth",value:1},{label:"submitBgType",value:"transparent"},{label:"submitBgColorHover",value:"#3a3a3a"},{label:"submitColor",value:"#0170b9"},{label:"submitColorHover",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1},{label:"btnBorderBottomWidth",value:1},{label:"submitBgType",value:"transparent"},{label:"submitBgColorHover",value:"#3a3a3a"},{label:"submitColor",value:"#0170b9"},{label:"submitColorHover",value:"#ffffff"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '}];function jh(){return(jh=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{formPaddingTop:i,formPaddingRight:o,formPaddingBottom:n,formPaddingLeft:s,formPaddingTopTab:c,formPaddingRightTab:u,formPaddingBottomTab:p,formPaddingLeftTab:d,formPaddingTopMob:b,formPaddingRightMob:g,formPaddingBottomMob:m,formPaddingLeftMob:y,formPaddingUnit:f,formPaddingUnitTab:h,formPaddingUnitMob:v,formPaddingLink:_,formLabel:T,buttonAlign:C,buttonAlignTablet:S,buttonAlignMobile:k,buttonSize:w,confirmationType:P,confirmationMessage:x,failedMessage:A,confirmationUrl:G,afterSubmitToEmail:M,afterSubmitCcEmail:R,afterSubmitBccEmail:B,afterSubmitEmailSubject:U,submitColor:E,submitColorHover:O,submitBgType:L,submitBgHoverType:H,submitBgColor:F,submitBgColorHover:j,submitTextloadGoogleFonts:z,submitTextFontFamily:D,submitTextFontWeight:N,submitTextFontSize:I,submitTextFontSizeType:V,submitTextFontSizeTablet:W,submitTextFontSizeMobile:q,submitTextLineHeightType:Z,submitTextLineHeight:$,submitTextLineHeightTablet:Y,submitTextLineHeightMobile:K,inheritFromTheme:J,submitButtonType:X,labelloadGoogleFonts:Q,labelFontFamily:ee,labelFontWeight:te,labelFontSize:ae,labelFontSizeType:le,labelFontSizeTablet:ie,labelFontSizeMobile:oe,labelLineHeightType:ne,labelLineHeight:re,labelLineHeightTablet:se,labelLineHeightMobile:ce,inputloadGoogleFonts:ue,inputFontFamily:pe,inputFontWeight:de,inputFontSize:be,inputFontSizeType:me,inputFontSizeTablet:ye,inputFontSizeMobile:fe,inputLineHeightType:he,inputLineHeight:ve,inputLineHeightTablet:_e,inputLineHeightMobile:Te,toggleSize:Se,toggleSizeTablet:ke,toggleSizeMobile:we,toggleWidthSize:Pe,toggleWidthSizeTablet:xe,toggleWidthSizeMobile:Ae,toggleColor:Ge,toggleActiveColor:Me,toggleDotColor:Re,toggleDotActiveColor:Be,labelColor:Ue,labelHoverColor:Oe,inputColor:He,bgColor:Fe,bgHoverColor:ze,bgActiveColor:De,inputplaceholderColor:Ne,inputplaceholderHoverColor:Ie,inputplaceholderActiveColor:Ve,fieldGap:We,fieldGapTablet:qe,fieldGapMobile:Ze,formStyle:$e,overallAlignment:Ye,overallAlignmentTablet:Ke,overallAlignmentMobile:Je,labelAlignment:Xe,labelAlignmentTablet:Qe,labelAlignmentMobile:et,reCaptchaEnable:tt,reCaptchaType:at,successMessageTextColor:lt,successMessageBGColor:it,failedMessageTextColor:ot,failedMessageBGColor:nt,paddingBtnTop:rt,paddingBtnRight:st,paddingBtnBottom:ct,paddingBtnLeft:ut,paddingBtnTopTablet:pt,paddingBtnRightTablet:dt,paddingBtnBottomTablet:bt,paddingBtnLeftTablet:gt,paddingBtnTopMobile:mt,paddingBtnRightMobile:yt,paddingBtnBottomMobile:ft,paddingBtnLeftMobile:ht,paddingBtnUnit:vt,mobilePaddingBtnUnit:_t,tabletPaddingBtnUnit:Tt,paddingspacingLink:Ct,submitTextTransform:St,submitTextDecoration:kt,labelTransform:wt,labelDecoration:Pt,inputTransform:xt,inputDecoration:At,fieldGapType:Gt,paddingFieldTop:Mt,paddingFieldRight:Rt,paddingFieldBottom:Bt,paddingFieldLeft:Ut,paddingFieldTopTablet:Et,paddingFieldRightTablet:Ot,paddingFieldBottomTablet:Lt,paddingFieldLeftTablet:Ht,paddingFieldTopMobile:Ft,paddingFieldRightMobile:jt,paddingFieldBottomMobile:zt,paddingFieldLeftMobile:Dt,paddingFieldUnit:Nt,paddingFieldUnitmobile:It,paddingFieldUnitTablet:Vt,paddingFieldLink:Wt,toggleSizeType:qt,submitTextFontStyle:Zt,labelFontStyle:$t,inputFontStyle:Yt,hidereCaptchaBatch:Kt,labelGap:Jt,labelGapTablet:Xt,labelGapMobile:Qt,labelGapUnit:ea,displayLabels:ta,labelLetterSpacing:aa,labelLetterSpacingTablet:la,labelLetterSpacingMobile:ia,labelLetterSpacingType:oa,inputLetterSpacing:na,inputLetterSpacingTablet:ra,inputLetterSpacingMobile:sa,inputLetterSpacingType:ca,submitTextLetterSpacing:ua,submitTextLetterSpacingTablet:pa,submitTextLetterSpacingMobile:da,submitTextLetterSpacingType:ba,gradientValue:ga,gradientHValue:ma,gradientHColor1:ya,selectHGradient:fa,gradientHColor2:ha,gradientHLocation1:va,gradientHLocation2:_a,gradientHType:Ta,gradientHAngle:Ca,gradientColor1:Sa,gradientColor2:ka,gradientLocation1:wa,gradientLocation2:Pa,gradientType:xa,gradientAngle:Aa,selectGradient:Ga}=t,Ma=uagb_blocks_info.current_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0,className:"uagb__url-panel-body"},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Labels","ultimate-addons-for-gutenberg"),checked:ta,onChange:()=>a({displayLabels:!ta})}),React.createElement(Ss,{label:Object(r.__)("Hidden Field Label","ultimate-addons-for-gutenberg"),value:T,data:{value:T,label:"formLabel"},setAttributes:a,onChange:e=>a({formLabel:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:$e,label:"formStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"boxed",label:"Boxed"},{value:"underlined",label:"Underlined"}],showIcons:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Label Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Xe,label:"labelAlignment"},tablet:{value:Qe,label:"labelAlignmentTablet"},mobile:{value:et,label:"labelAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Placeholder Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ye,label:"overallAlignment"},tablet:{value:Ke,label:"overallAlignmentTablet"},mobile:{value:Je,label:"overallAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Confirmation Type","ultimate-addons-for-gutenberg"),data:{value:P,label:"confirmationType"},className:"uagb-multi-button-alignment-control",options:[{value:"message",label:"Message"},{value:"url",label:"URL Text"}],showIcons:!1}),"message"===P&&React.createElement(React.Fragment,null,React.createElement(Ss,{variant:"textarea",setAttributes:a,label:Object(r.__)("Success Message Text","ultimate-addons-for-gutenberg"),help:Object(r.__)("Enter a message you want to display after successfull form submission","ultimate-addons-for-gutenberg"),value:x,data:{value:x,label:"confirmationMessage"},onChange:e=>a({confirmationMessage:e})}),React.createElement(Ss,{variant:"textarea",setAttributes:a,label:Object(r.__)("Error Message Text","ultimate-addons-for-gutenberg"),help:Object(r.__)("Enter a message you want to display after unsuccessfull form submission","ultimate-addons-for-gutenberg"),value:A,data:{value:A,label:"failedMessage"},onChange:e=>a({failedMessage:e})})),"url"===P&&React.createElement(Ss,{label:Object(r.__)("Success Redirect URL","ultimate-addons-for-gutenberg"),help:Object(r.__)("Enter a URL you want to redirect your page to after form Submission","ultimate-addons-for-gutenberg"),value:G,data:{value:G,label:"confirmationUrl"},setAttributes:a,onChange:e=>a({confirmationUrl:e})})),React.createElement(je,{title:Object(r.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg"),checked:J,onChange:()=>a({inheritFromTheme:!J})}),J&&"Astra"===Ma&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:X,label:"submitButtonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:C,label:"buttonAlign"},tablet:{value:S,label:"buttonAlignTablet"},mobile:{value:k,label:"buttonAlignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full Width","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),!J&&React.createElement(Hr,{setAttributes:a,presets:Fh,presetInputType:"radioImage"})),React.createElement(je,{title:Object(r.__)("Actions","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"uagb__url-panel-body"},React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("Note: Enter an e-mail address to receive submissions. Defaults to the site e-mail address.","ultimate-addons-for-gutenberg")),React.createElement(Ui,{tabs:[{name:"to",title:Object(r.__)("To","ultimate-addons-for-gutenberg")},{name:"cc",title:Object(r.__)("CC","ultimate-addons-for-gutenberg")},{name:"bcc",title:Object(r.__)("BCC","ultimate-addons-for-gutenberg")}],to:React.createElement(Ss,{label:Object(r.__)("Email Address","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:M,data:{value:M,label:"afterSubmitToEmail"},setAttributes:a,onChange:e=>a({afterSubmitToEmail:e})}),cc:React.createElement(Ss,{label:Object(r.__)("Email Address","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:R,data:{value:R,label:"afterSubmitCcEmail"},setAttributes:a,onChange:e=>a({afterSubmitCcEmail:e})}),bcc:React.createElement(Ss,{label:Object(r.__)("Email Address","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:B,data:{value:B,label:"afterSubmitBccEmail"},setAttributes:a,onChange:e=>a({afterSubmitBccEmail:e})}),disableBottomSeparator:!1}),React.createElement(Ss,{label:Object(r.__)("Subject","ultimate-addons-for-gutenberg"),placeholder:Object(r.__)("Subject","ultimate-addons-for-gutenberg"),value:U,data:{value:U,label:"afterSubmitEmailSubject"},setAttributes:a,onChange:e=>a({afterSubmitEmailSubject:e})})),React.createElement(je,{title:Object(r.__)("Google reCAPTCHA","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("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")),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable reCAPTCHA ","ultimate-addons-for-gutenberg"),checked:tt,onChange:()=>a({reCaptchaEnable:!tt})}),tt&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("Please configure the Google reCAPTCHA Site & Secret key from","ultimate-addons-for-gutenberg"),React.createElement("a",{target:"_blank",href:uagb_blocks_info.uagb_home_url+"/wp-admin/admin.php?page=spectra&path=settings&settings=block-settings",rel:"noreferrer"},Object(r.__)("here.","ultimate-addons-for-gutenberg"))),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Select Version","ultimate-addons-for-gutenberg"),data:{value:at,label:"reCaptchaType"},className:"uagb-multi-button-alignment-control",options:[{value:"v2",label:"V2",tooltip:Object(r.__)("V2","ultimate-addons-for-gutenberg")},{value:"v3",label:"V3",tooltip:Object(r.__)("V3","ultimate-addons-for-gutenberg")}],showIcons:!1})),tt&&"v3"===at&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide reCAPTCHA Badge","ultimate-addons-for-gutenberg"),checked:Kt,onChange:()=>a({hidereCaptchaBatch:!Kt})})),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:Hh,presetInputType:"radioImage"}))),React.createElement(il,nl,ta&&React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ue||"",data:{value:Ue,label:"labelColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Oe||"",data:{value:Oe,label:"labelHoverColor"},setAttributes:a}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Q,label:"labelloadGoogleFonts"},fontFamily:{value:ee,label:"labelFontFamily"},fontWeight:{value:te,label:"labelFontWeight"},fontStyle:{value:$t,label:"labelFontStyle"},fontSizeType:{value:le,label:"labelFontSizeType"},fontSize:{value:ae,label:"labelFontSize"},fontSizeMobile:{value:oe,label:"labelFontSizeMobile"},fontSizeTablet:{value:ie,label:"labelFontSizeTablet"},lineHeightType:{value:ne,label:"labelLineHeightType"},lineHeight:{value:re,label:"labelLineHeight"},lineHeightMobile:{value:ce,label:"labelLineHeightMobile"},lineHeightTablet:{value:se,label:"labelLineHeightTablet"},letterSpacing:{value:aa,label:"labelLetterSpacing"},letterSpacingTablet:{value:la,label:"labelLetterSpacingTablet"},letterSpacingMobile:{value:ia,label:"labelLetterSpacingMobile"},letterSpacingType:{value:oa,label:"labelLetterSpacingType"},transform:{value:wt,label:"labelTransform"},decoration:{value:Pt,label:"labelDecoration"}}),React.createElement(tl,{label:Object(r.__)("Row Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:We,label:"fieldGap"},tablet:{value:qe,label:"fieldGapTablet"},mobile:{value:Ze,label:"fieldGapMobile"}},min:0,max:100,unit:{value:Gt,label:"fieldGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Label Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:Jt,label:"labelGap"},tablet:{value:Xt,label:"labelGapTablet"},mobile:{value:Qt,label:"labelGapMobile"}},min:0,max:100,unit:{value:ea,label:"labelGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a})),React.createElement(je,{title:Object(r.__)("Input","ultimate-addons-for-gutenberg"),initialOpen:!ta},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:He||"",data:{value:He,label:"inputColor"},setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Placeholder Color","ultimate-addons-for-gutenberg"),colorValue:Ne||"",data:{value:Ne,label:"inputplaceholderColor"},setAttributes:a}),"underlined"!==$e&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Fe||"",data:{value:Fe,label:"bgColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Placeholder Color","ultimate-addons-for-gutenberg"),colorValue:Ie||"",data:{value:Ie,label:"inputplaceholderHoverColor"},setAttributes:a}),"underlined"!==$e&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ze||"",data:{value:ze,label:"bgHoverColor"},setAttributes:a})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Placeholder Color","ultimate-addons-for-gutenberg"),colorValue:Ve||"",data:{value:Ve,label:"inputplaceholderActiveColor"},setAttributes:a}),"underlined"!==$e&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:De||"",data:{value:De,label:"bgActiveColor"},setAttributes:a})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:a,prefix:"field",disabledBorderTitle:!1,attributes:t,deviceType:l}),React.createElement(Pl,jh({},e,{label:Object(r.__)("Input Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Mt,label:"paddingFieldTop"},valueRight:{value:Rt,label:"paddingFieldRight"},valueBottom:{value:Bt,label:"paddingFieldBottom"},valueLeft:{value:Ut,label:"paddingFieldLeft"},valueTopTablet:{value:Et,label:"paddingFieldTopTablet"},valueRightTablet:{value:Ot,label:"paddingFieldRightTablet"},valueBottomTablet:{value:Lt,label:"paddingFieldBottomTablet"},valueLeftTablet:{value:Ht,label:"paddingFieldLeftTablet"},valueTopMobile:{value:Ft,label:"paddingFieldTopMobile"},valueRightMobile:{value:jt,label:"paddingFieldRightMobile"},valueBottomMobile:{value:zt,label:"paddingFieldBottomMobile"},valueLeftMobile:{value:Dt,label:"paddingFieldLeftMobile"},unit:{value:Nt,label:"paddingFieldUnit"},mUnit:{value:It,label:"paddingFieldUnitmobile"},tUnit:{value:Vt,label:"paddingFieldUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Wt,label:"paddingFieldLink"}})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:ue,label:"inputloadGoogleFonts"},fontFamily:{value:pe,label:"inputFontFamily"},fontWeight:{value:de,label:"inputFontWeight"},fontStyle:{value:Yt,label:"inputFontStyle"},fontSizeType:{value:me,label:"inputFontSizeType"},fontSize:{value:be,label:"inputFontSize"},fontSizeMobile:{value:fe,label:"inputFontSizeMobile"},fontSizeTablet:{value:ye,label:"inputFontSizeTablet"},lineHeightType:{value:he,label:"inputLineHeightType"},lineHeight:{value:ve,label:"inputLineHeight"},lineHeightMobile:{value:Te,label:"inputLineHeightMobile"},lineHeightTablet:{value:_e,label:"inputLineHeightTablet"},letterSpacing:{value:na,label:"inputLetterSpacing"},letterSpacingTablet:{value:ra,label:"inputLetterSpacingTablet"},letterSpacingMobile:{value:sa,label:"inputLetterSpacingMobile"},letterSpacingType:{value:ca,label:"inputLetterSpacingType"},transform:{value:xt,label:"inputTransform"},decoration:{value:At,label:"inputDecoration"}})),React.createElement(je,{title:Object(r.__)("Checkbox/Toggle/Radio","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Checkbox/Radio Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"toggleSize"},tablet:{value:ke,label:"toggleSizeTablet"},mobile:{value:we,label:"toggleSizeMobile"}},min:0,max:50,unit:{value:qt,label:"toggleSizeType"},setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Toggle Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:Pe,label:"toggleWidthSize"},tablet:{value:xe,label:"toggleWidthSizeTablet"},mobile:{value:Ae,label:"toggleWidthSizeMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a}),React.createElement("p",{className:"uagb-form-notice"},Object(r.__)("Note: It is required to set border style and border width for toggle. Else you will not able to resize the toggle.","ultimate-addons-for-gutenberg")),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Ge||"",data:{value:Ge,label:"toggleColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Element Color","ultimate-addons-for-gutenberg"),colorValue:Re||"",data:{value:Re,label:"toggleDotColor"},setAttributes:a})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Me||"",data:{value:Me,label:"toggleActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Element Color","ultimate-addons-for-gutenberg"),colorValue:Be||"",data:{value:Be,label:"toggleDotActiveColor"},setAttributes:a})),disableBottomSeparator:!1}),React.createElement(Hi,{setAttributes:a,prefix:"checkBoxToggle",disabledBorderTitle:!1,attributes:t,deviceType:l,borderHoverColorLabel:Object(r.__)("Color","ultimate-addons-for-gutenberg"),hoverTabLabel:Object(r.__)("Active","ultimate-addons-for-gutenberg"),disableBottomSeparator:!0,borderRadiusHelp:Object(r.__)("Border radius will be applied to Radio & Toggle only when the layout for those blocks is set to Square.","ultimate-addons-for-gutenberg")})),!J&&React.createElement(je,{title:Object(r.__)("Submit Button","ultimate-addons-for-gutenberg"),initialOpen:!1},!J&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Button Size","ultimate-addons-for-gutenberg"),data:{value:w,label:"buttonSize"},setAttributes:a,options:[{value:"default",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"small",label:Object(r.__)("Small","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"large",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")},{value:"extralarge",label:Object(r.__)("Extra Large","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Full","ultimate-addons-for-gutenberg")}]}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:E||"",data:{value:E,label:"submitColor"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:L,label:"submitBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===L&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:F||"",data:{value:F,label:"submitBgColor"},setAttributes:a}),"gradient"===L&&React.createElement(jl,{backgroundGradient:{value:ga,label:"gradientValue"},backgroundGradientColor1:{value:Sa,label:"gradientColor1"},gradientType:{value:Ga,label:"selectGradient"},backgroundGradientColor2:{value:ka,label:"gradientColor2"},backgroundGradientLocation1:{value:wa,label:"gradientLocation1"},backgroundGradientLocation2:{value:Pa,label:"gradientLocation2"},backgroundGradientType:{value:xa,label:"gradientType"},backgroundGradientAngle:{value:Aa,label:"gradientAngle"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:O||"",data:{value:O,label:"submitColorHover"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:H,label:"submitBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===H&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:j||"",data:{value:j,label:"submitBgColorHover"},setAttributes:a}),"gradient"===H&&React.createElement(jl,{backgroundGradient:{value:ma,label:"gradientHValue"},backgroundGradientColor1:{value:ya,label:"gradientHColor1"},gradientType:{value:fa,label:"selectHGradient"},backgroundGradientColor2:{value:ha,label:"gradientHColor2"},backgroundGradientLocation1:{value:va,label:"gradientHLocation1"},backgroundGradientLocation2:{value:_a,label:"gradientHLocation2"},backgroundGradientType:{value:Ta,label:"gradientHType"},backgroundGradientAngle:{value:Ca,label:"gradientHAngle"},setAttributes:a}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:z,label:"submitTextloadGoogleFonts"},fontFamily:{value:D,label:"submitTextFontFamily"},fontWeight:{value:N,label:"submitTextFontWeight"},fontStyle:{value:Zt,label:"submitTextFontStyle"},fontSizeType:{value:V,label:"submitTextFontSizeType"},fontSize:{value:I,label:"submitTextFontSize"},fontSizeMobile:{value:q,label:"submitTextFontSizeMobile"},fontSizeTablet:{value:W,label:"submitTextFontSizeTablet"},lineHeightType:{value:Z,label:"submitTextLineHeightType"},lineHeight:{value:$,label:"submitTextLineHeight"},lineHeightMobile:{value:K,label:"submitTextLineHeightMobile"},lineHeightTablet:{value:Y,label:"submitTextLineHeightTablet"},letterSpacing:{value:ua,label:"submitTextLetterSpacing"},letterSpacingTablet:{value:pa,label:"submitTextLetterSpacingTablet"},letterSpacingMobile:{value:da,label:"submitTextLetterSpacingMobile"},letterSpacingType:{value:ba,label:"submitTextLetterSpacingType"},transform:{value:St,label:"submitTextTransform"},decoration:{value:kt,label:"submitTextDecoration"}}),React.createElement(Pl,jh({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:rt,label:"paddingBtnTop"},valueRight:{value:st,label:"paddingBtnRight"},valueBottom:{value:ct,label:"paddingBtnBottom"},valueLeft:{value:ut,label:"paddingBtnLeft"},valueTopTablet:{value:pt,label:"paddingBtnTopTablet"},valueRightTablet:{value:dt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:bt,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:gt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:mt,label:"paddingBtnTopMobile"},valueRightMobile:{value:yt,label:"paddingBtnRightMobile"},valueBottomMobile:{value:ft,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:ht,label:"paddingBtnLeftMobile"},unit:{value:vt,label:"paddingBtnUnit"},mUnit:{value:_t,label:"mobilePaddingBtnUnit"},tUnit:{value:Tt,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ct,label:"paddingspacingLink"}})),React.createElement(Hi,{setAttributes:a,prefix:"btn",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0}))),React.createElement(je,{title:Object(r.__)("Messages","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"success",title:Object(r.__)("Success","ultimate-addons-for-gutenberg")},{name:"error",title:Object(r.__)("Error","ultimate-addons-for-gutenberg")}],success:"message"===P&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:lt||"",data:{value:lt,label:"successMessageTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:it||"",data:{value:it,label:"successMessageBGColor"},setAttributes:a}),React.createElement(Hi,{setAttributes:a,prefix:"successMsg",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),error:"message"===P&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:ot||"",data:{value:ot,label:"failedMessageTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:nt||"",data:{value:nt,label:"failedMessageBGColor"},setAttributes:a}),React.createElement(Hi,{setAttributes:a,prefix:"errorMsg",disabledBorderTitle:!1,attributes:t,deviceType:l,disableBottomSeparator:!0})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,jh({},e,{label:Object(r.__)("Form Padding","ultimate-addons-for-gutenberg"),valueTop:{value:i,label:"formPaddingTop"},valueRight:{value:o,label:"formPaddingRight"},valueBottom:{value:n,label:"formPaddingBottom"},valueLeft:{value:s,label:"formPaddingLeft"},valueTopTablet:{value:c,label:"formPaddingTopTab"},valueRightTablet:{value:u,label:"formPaddingRightTab"},valueBottomTablet:{value:p,label:"formPaddingBottomTab"},valueLeftTablet:{value:d,label:"formPaddingLeftTab"},valueTopMobile:{value:b,label:"formPaddingTopMob"},valueRightMobile:{value:g,label:"formPaddingRightMob"},valueBottomMobile:{value:m,label:"formPaddingBottomMob"},valueLeftMobile:{value:y,label:"formPaddingLeftMob"},unit:{value:f,label:"formPaddingUnit"},tUnit:{value:h,label:"formPaddingUnitTab"},mUnit:{value:v,label:"formPaddingUnitMob"},deviceType:l,attributes:t,setAttributes:a,link:{value:_,label:"formPaddingLink"}})))),React.createElement(il,jh({},rl,{parentProps:e})))))});const Dh=["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"];var Nh,Ih=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,deviceType:l}=e,{block_id:i,submitButtonText:o,formLabel:n,buttonSize:s,reCaptchaEnable:c,reCaptchaType:u,submitButtonType:p,inheritFromTheme:d}=t,b=d&&"secondary"===p,g=b?{borderWidth:"revert-layer"}:{},m="uagb-forms-main-submit-button "+(b?"ast-outline-button":"wp-block-button__link"),y=b?"div":"button",f=Object(B.useCallback)(e=>{e.preventDefault()});return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+i,`uagb-forms__${s}-btn`,"uagb-editor-preview-mode-"+l.toLowerCase())},React.createElement("form",{className:"uagb-forms-main-form",name:"uagb-form-"+i},React.createElement(ge.InnerBlocks,{allowedBlocks:Dh}),React.createElement("div",{className:"uagb-forms-form-hidden-data"},c&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",name:"uagb_forms_form_label",value:n}),React.createElement("input",{type:"hidden",name:"uagb_forms_form_id",value:"uagb-form-"+i})),c&&"v2"===u&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+i}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement(y,{onClick:f,className:m,style:g},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Submit","ultimate-addons-for-gutenberg"),value:o.replace(/<(?!br\s*V?)[^>]+>/g,""),onChange:e=>a({submitButtonText:e}),className:"uagb-forms-main-submit-button-text",multiline:!1,allowedFormats:[]}))))))}),Vh=a(112),Wh=0,qh={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Zh={};Zh.locals=Vh.a.locals||{},Zh.use=function(){return Wh++||(Nh=we()(Vh.a,qh)),Zh},Zh.unuse=function(){Wh>0&&!--Wh&&(Nh(),Nh=null)};var $h=Zh,Yh=Object(B.memo)(e=>{let{attributes:t}=e;const{submitTextloadGoogleFonts:a,submitTextFontFamily:l,submitTextFontWeight:i,labelloadGoogleFonts:o,labelFontFamily:n,labelFontWeight:r,inputloadGoogleFonts:s,inputFontFamily:c,inputFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function Kh(){return(Kh=Object.assign||function(e){for(var t=1;t{const{clientId:t,setAttributes:a,defaultVariation:l}=e,{replaceInnerBlocks:i}=Object(n.useDispatch)("core/block-editor");return React.createElement("div",Kh({},Object(ge.useBlockProps)(),{className:"uagb-forms-variations uagb-variation-picker uagb-variation-picker--fill"}),React.createElement(ge.__experimentalBlockVariationPicker,{icon:se.forms,label:Object(r.__)("Forms","ultimate-addons-for-gutenberg"),instructions:Object(r.__)("Select a form layout to start with.","ultimate-addons-for-gutenberg"),variations:Jh,onSelect:e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;e.attributes&&a(e.attributes),e.innerBlocks&&i(t,Object(de.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))}(e)}))};function Qh(){return(Qh=Object.assign||function(e){for(var t=1;tt=>{var a;const l=Z([(null==t?void 0:t.className)||"",(null==t||null===(a=t.attributes)||void 0===a?void 0:a.className)||""]);return React.createElement(e,Qh({},t,{className:l||null}))},"addAdvancedClasses");Object(F.addFilter)("editor.BlockListBlock","uagb/forms",ev);var tv=Object(L.compose)(Le.withNotices,ev,ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{reCaptchaSiteKeyV2:l,reCaptchaSecretKeyV2:i,reCaptchaSiteKeyV3:o,reCaptchaSecretKeyV3:r,reCaptchaEnable:s,toggleColor:c,bgColor:u,inputborderStyle:p,inputborderWidth:d,inputborderColor:b,inputborderHoverColor:g,inputborderRadius:m,submitborderWidth:y,submitborderRadius:f,submitborderColor:h,submitborderHoverColor:v,submitborderStyle:_,UAGHideDesktop:T,UAGHideTab:C,UAGHideMob:S,variationSelected:k,overallAlignment:w,labelAlignment:P},setAttributes:x,clientId:A,name:G,deviceType:M}=e,{variations:R,hasInnerBlocks:U,defaultVariation:E}=Object(n.useSelect)(e=>{const{getBlockVariations:t,getDefaultBlockVariation:a}=e("core/blocks");return{hasInnerBlocks:e("core/block-editor").getBlocks(A).length>0,defaultVariation:void 0===a?null:a(G),variations:void 0===t?null:t(G)}});Object(B.useLayoutEffect)(()=>($h.use(),()=>{$h.unuse()}),[]),Object(B.useEffect)(()=>{null===P&&x({labelAlignment:w})},[]),Object(B.useEffect)(()=>{!k&&U&&x({variationSelected:!0})},[U]),Object(B.useEffect)(()=>{u&&void 0===c&&x({toggleColor:u});const e=A;if(window.addEventListener("load",L(e)),s){const e={};""===uagb_blocks_info.recaptcha_site_key_v2&&""===uagb_blocks_info.recaptcha_secret_key_v2&&l&&i&&(e.reCaptchaSiteKeyV2=l,e.reCaptchaSecretKeyV2=i),""===uagb_blocks_info.recaptcha_site_key_v3&&""===uagb_blocks_info.recaptcha_secret_key_v3&&o&&r&&(e.reCaptchaSiteKeyV3=o,e.reCaptchaSecretKeyV3=r);const t={nonce:uagb_blocks_info.uagb_ajax_nonce,value:JSON.stringify(e)};0!==Object.keys(e).length&&$l({url:uagb_blocks_info.ajax_url,action:"uagb_forms_recaptcha",data:t}).then(()=>{})}(d||m||b||g||p)&&(ue("field",{label:"inputborderWidth",value:d},{label:"inputborderRadius",value:m},{label:"inputborderColor",value:b},{label:"inputborderHoverColor",value:g},{label:"inputborderStyle",value:p},x,a),ue("checkBoxToggle",{label:"inputborderWidth",value:d},{label:"inputborderRadius",value:m},{label:"inputborderColor",value:b},{label:"inputborderHoverColor",value:g},{label:"inputborderStyle",value:p},x,a)),(y||f||h||v||_)&&ue("btn",{label:"submitborderWidth",value:y},{label:"submitborderRadius",value:f},{label:"submitborderColor",value:h},{label:"submitborderHoverColor",value:v},{label:"submitborderStyle",value:_},x,a)},[]);const O=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,formPaddingTop:r,formPaddingRight:s,formPaddingBottom:c,formPaddingLeft:u,formPaddingTopTab:p,formPaddingRightTab:d,formPaddingBottomTab:b,formPaddingLeftTab:g,formPaddingTopMob:m,formPaddingRightMob:y,formPaddingBottomMob:f,formPaddingLeftMob:h,formPaddingUnit:v,formPaddingUnitTab:_,formPaddingUnitMob:T,buttonAlign:C,buttonAlignTablet:S,buttonAlignMobile:k,submitColor:w,submitColorHover:P,submitBgType:x,submitBgHoverType:A,submitBgColor:G,submitBgColorHover:M,toggleWidthSize:R,toggleWidthSizeTablet:B,toggleWidthSizeMobile:U,btnBorderHColor:E,submitTextFontFamily:O,submitTextFontWeight:L,submitTextFontSize:H,submitTextFontSizeType:F,submitTextFontSizeTablet:j,submitTextFontSizeMobile:z,submitTextLineHeightType:D,submitTextLineHeight:N,submitTextLineHeightTablet:I,submitTextLineHeightMobile:V,labelFontFamily:W,labelFontWeight:q,labelFontSize:Z,labelFontSizeType:$,labelFontSizeTablet:Y,labelFontSizeMobile:K,labelLineHeightType:J,labelLineHeight:X,labelLineHeightTablet:Q,labelLineHeightMobile:ee,inputFontFamily:te,inputFontWeight:le,inputFontSize:ie,inputFontSizeType:oe,inputFontSizeTablet:ne,inputFontSizeMobile:re,inputLineHeightType:se,inputLineHeight:ce,inputLineHeightTablet:ue,inputLineHeightMobile:pe,toggleColor:de,toggleActiveColor:be,toggleDotColor:ge,toggleDotActiveColor:me,checkBoxToggleBorderStyle:ye,checkBoxToggleBorderBottomWidth:fe,toggleBorderRadius:he,checkBoxToggleBorderColor:ve,checkBoxToggleBorderHColor:_e,labelColor:Te,labelHoverColor:Ce,inputColor:Se,bgColor:ke,bgHoverColor:we,bgActiveColor:Pe,inputplaceholderColor:xe,inputplaceholderHoverColor:Ae,inputplaceholderActiveColor:Ge,fieldBorderHColor:Me,fieldGap:Re,fieldGapTablet:Be,fieldGapMobile:Ue,formStyle:Ee,overallAlignment:Oe,overallAlignmentTablet:Le,overallAlignmentMobile:He,labelAlignment:Fe,labelAlignmentTablet:je,labelAlignmentMobile:ze,toggleSize:De,toggleSizeTablet:Ne,toggleSizeMobile:Ie,paddingBtnTop:Ve,paddingBtnRight:We,paddingBtnBottom:qe,paddingBtnLeft:Ze,paddingBtnTopTablet:$e,paddingBtnRightTablet:Ye,paddingBtnBottomTablet:Ke,paddingBtnLeftTablet:Je,paddingBtnTopMobile:Xe,paddingBtnRightMobile:Qe,paddingBtnBottomMobile:et,paddingBtnLeftMobile:tt,paddingBtnUnit:at,mobilePaddingBtnUnit:lt,tabletPaddingBtnUnit:it,submitTextTransform:ot,submitTextDecoration:nt,labelTransform:rt,labelDecoration:st,inputTransform:ct,inputDecoration:ut,fieldGapType:pt,paddingFieldTop:dt,paddingFieldRight:bt,paddingFieldBottom:gt,paddingFieldLeft:mt,paddingFieldTopTablet:yt,paddingFieldRightTablet:ft,paddingFieldBottomTablet:ht,paddingFieldLeftTablet:vt,paddingFieldTopMobile:_t,paddingFieldRightMobile:Tt,paddingFieldBottomMobile:Ct,paddingFieldLeftMobile:St,paddingFieldUnit:kt,paddingFieldUnitmobile:wt,paddingFieldUnitTablet:Pt,toggleSizeType:xt,submitTextFontStyle:At,labelFontStyle:Gt,inputFontStyle:Mt,labelGap:Rt,labelGapTablet:Bt,labelGapMobile:Ut,labelGapUnit:Et,displayLabels:Ot,labelLetterSpacing:Lt,labelLetterSpacingTablet:Ht,labelLetterSpacingMobile:Ft,labelLetterSpacingType:jt,inputLetterSpacing:zt,inputLetterSpacingTablet:Dt,inputLetterSpacingMobile:Nt,inputLetterSpacingType:It,submitTextLetterSpacing:Vt,submitTextLetterSpacingTablet:Wt,submitTextLetterSpacingMobile:qt,submitTextLetterSpacingType:Zt,gradientHValue:$t,gradientValue:Yt,gradientHColor1:Kt,gradientHColor2:Jt,gradientHLocation1:Xt,gradientHLocation2:Qt,gradientHType:ea,gradientHAngle:ta,selectHGradient:aa,gradientColor1:la,gradientColor2:ia,gradientLocation1:oa,gradientLocation2:na,gradientType:ra,gradientAngle:sa,selectGradient:ca,inheritFromTheme:ua}=e;let pa={},da={},ba={};const ga=us(Re,"fieldGap",i),ma=us(Rt,"labelGap",i),ya=us(De,"toggleSize",i),fa=isNaN(Ne)?ya:Ne,ha=isNaN(Ie)?fa:Ie,va=us(Ne,"toggleSizeTablet",i),_a=us(Ie,"toggleSizeMobile",i),Ta=us(R,"toggleWidthSize",i),Ca=isNaN(B)?Ta:B,Sa=isNaN(U)?Ca:U,ka=Wr(e,"field"),wa=Wr(e,"field","tablet"),Pa=Wr(e,"field","mobile"),xa=Wr(e,"checkBoxToggle"),Aa=Wr(e,"checkBoxToggle","tablet"),Ga=Wr(e,"checkBoxToggle","mobile");let Ma=ps(xa["border-top-left-radius"],"checkBoxToggleBorderTopLeftRadius",i),Ra=ps(xa["border-top-right-radius"],"checkBoxToggleBorderTopRightRadius",i),Ba=ps(xa["border-bottom-right-radius"],"checkBoxToggleBorderBottomRightRadius",i),Ua=ps(xa["border-bottom-left-radius"],"checkBoxToggleBorderBottomLeftRadius",i);Ma=isNaN(Ma)?Ma:Ma+"px",Ra=isNaN(Ra)?Ra:Ra+"px",Ba=isNaN(Ba)?Ba:Ba+"px",Ua=isNaN(Ua)?Ua:Ua+"px";const Ea=""!==Aa["border-top-left-radius"]&&"px"!==Aa["border-top-left-radius"]?Aa["border-top-left-radius"]:Ma,Oa=""!==Aa["border-top-right-radius"]&&"px"!==Aa["border-top-right-radius"]?Aa["border-top-right-radius"]:Ra,La=""!==Aa["border-bottom-right-radius"]&&"px"!==Aa["border-bottom-right-radius"]?Aa["border-bottom-right-radius"]:Ba,Ha=""!==Aa["border-bottom-left-radius"]&&"px"!==Aa["border-bottom-left-radius"]?Aa["border-bottom-left-radius"]:Ua,Fa=""!==Ga["border-top-left-radius"]&&"px"!==Ga["border-top-left-radius"]?Ga["border-top-left-radius"]:Ea,ja=""!==Ga["border-top-right-radius"]&&"px"!==Ga["border-top-right-radius"]?Ga["border-top-right-radius"]:Oa,za=""!==Ga["border-bottom-right-radius"]&&"px"!==Ga["border-bottom-right-radius"]?Ga["border-bottom-right-radius"]:La,Da=""!==Ga["border-bottom-left-radius"]&&"px"!==Ga["border-bottom-left-radius"]?Ga["border-bottom-left-radius"]:Ha;let Na=void 0!==xa["border-top-width"]?ps(xa["border-top-width"],"checkBoxToggleBorderTopWidth",i):"",Ia=void 0!==xa["border-left-width"]?ps(xa["border-left-width"],"checkBoxToggleBorderLeftWidth",i):"",Va=void 0!==xa["border-bottom-width"]?ps(xa["border-bottom-width"],"checkBoxToggleBorderBottomWidth",i):"",Wa=void 0!==xa["border-right-width"]?ps(xa["border-right-width"],"checkBoxToggleBorderBottomRight",i):"";Na=isNaN(Na)?Na:Na+"px",Wa=isNaN(Wa)?Wa:Wa+"px",Va=isNaN(Va)?Va:Va+"px",Ia=isNaN(Ia)?Ia:Ia+"px";const qa="px"!==Aa["border-top-width"]&&""!==Aa["border-top-width"]?Aa["border-top-width"]:Na,Za="px"!==Aa["border-right-width"]&&""!==Aa["border-right-width"]?Aa["border-right-width"]:Wa,$a="px"!==Aa["border-bottom-width"]&&""!==Aa["border-bottom-width"]?Aa["border-bottom-width"]:Va,Ya="px"!==Aa["border-left-width"]&&""!==Aa["border-left-width"]?Aa["border-left-width"]:Ia,Ka="px"!==Ga["border-top-width"]&&""!==Ga["border-top-width"]?Ga["border-top-width"]:qa,Ja="px"!==Ga["border-right-width"]&&""!==Ga["border-right-width"]?Ga["border-right-width"]:Za,Xa="px"!==Ga["border-bottom-width"]&&""!==Ga["border-bottom-width"]?Ga["border-bottom-width"]:$a,Qa="px"!==Ga["border-left-width"]&&""!==Ga["border-left-width"]?Ga["border-left-width"]:Ya,el=Wr(e,"btn"),tl=Wr(e,"btn","tablet"),al=Wr(e,"btn","mobile");if(pa={".uagb-forms__outer-wrap":{"padding-top":Vr(r,v),"padding-right":Vr(s,v),"padding-bottom":Vr(c,v),"padding-left":Vr(u,v)}," .uagb-forms-input":{"text-align":Oe}," .uagb-forms-input-label":{display:Ot?"block":"none","text-align":Fe}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":Vr(ga,pt)}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":Vr(Z,$),"line-height":Vr(X,J),"font-family":W,"font-style":Gt,"text-transform":rt,"text-decoration":st,"font-weight":q,color:Te,"margin-bottom":Vr(ma,Et),"letter-spacing":Vr(Lt,jt)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It)}," .uagb-forms-main-form input":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It)}," .components-input-control__container":{"background-color":ke}," .uagb-forms-main-form textarea":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It),"text-align":Oe}," .uagb-forms-main-form select":{"font-size":Vr(ie,oe),"line-height":Vr(ce,se),"font-family":te,"font-style":Mt,"text-transform":ct,"text-decoration":ut,"font-weight":le,color:xe,"letter-spacing":Vr(zt,It)}," .uagb-forms-main-form .uagb-forms-input:focus":{outline:" none !important",border:Me,"background-color":Pe+" !important"}," .uagb-forms-main-form .components-select-control__input:focus":{"background-color":Pe+" !important"}," .uagb-forms-main-form .uagb-forms-input:focus::placeholder":{color:Ge+" !important"}," .uagb-forms-main-form .uagb-forms-phone-flex":{height:`calc(${ce?Vr(ce,se):"2em"} + ${Vr(dt,kt)} + ${Vr(gt,kt)})`}," .uagb-switch":{height:`calc(${xa["border-bottom-width"]} + ${xa["border-top-width"]} + ${Vr(parseInt(20+Ta+(20+Ta)/3),"px")})`,width:`calc(${xa["border-left-width"]} + ${xa["border-right-width"]} + ${Vr(parseInt(2.5*(20+Ta)+(20+Ta)/3),"px")})`}," .uagb-switch input:checked + .uagb-slider":{"background-color":be,"border-color":_e}," .uagb-switch input:checked + .uagb-slider:before":{"background-color":me}," .uagb-switch input:focus + .uagb-slider":{"box-shadow":"0 0 1px"+be}," .uagb-slider:before":{height:Vr(20+Ta,"px"),width:Vr(20+Ta,"px"),top:Vr(parseInt((20+Ta)/6),"px"),bottom:Vr(parseInt((20+Ta)/6),"px"),left:Vr(parseInt((20+Ta)/6),"px"),"background-color":ge,"border-radius":`${Ma} ${Ra} ${Ba} ${Ua}`}," .uagb-slider.round":{"border-radius":Vr(20+Ta,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:`translateX(${Vr(parseInt(2.5*(20+Ta)-(20+Ta)),"px")})`,"background-color":me}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"background-color":me,"border-color":_e+" !important","box-shadow":"inset 0 0 0 4px "+be,"font-size":"calc("+ya+xt+" / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{"background-color":de,width:Vr(ya,xt),height:Vr(ya,xt)}," .uagb-forms-radio-wrap > label":{color:Se}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{color:me,"background-color":be,"border-color":_e+" !important","font-size":"calc("+ya+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{"background-color":de,"border-radius":Vr(he,"px"),width:Vr(ya,"px"),height:Vr(ya,"px")}," .uagb-forms-checkbox-wrap > label":{color:Se}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{color:me,"background-color":be,"border-color":_e+" !important","font-size":"calc("+ya+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{"border-radius":Vr(he,"px"),"background-color":de,width:Vr(ya,"px"),height:Vr(ya,"px")}," .uagb-forms-accept-wrap > label":{color:Se}," .uagb-forms-field-set:hover .uagb-forms-input-label":{color:Ce}," .uagb-forms-field-set:hover .uagb-forms-input":{"background-color":we,"border-color":Me}," .uagb-forms-field-set:hover .uagb-forms-input::placeholder":{color:Ae}," .uagb-forms-field-set .uagb-forms-input select":{color:Se}," .uagb-forms-phone-flex:hover .components-base-control__field .components-select-control__input":{"background-color":we}," .uagb-forms-phone-flex .components-base-control__field .components-select-control__input":{height:"auto"}},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap"]="full"!==C?{"text-align":C}:{display:"grid"},da={".uagb-forms__outer-wrap":{"padding-top":Vr(p,_),"padding-right":Vr(d,_),"padding-bottom":Vr(b,_),"padding-left":Vr(g,_)}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":Vr(Be,pt)}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"font-size":"calc("+fa+xt+" / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{width:Vr(va,xt),height:Vr(va,xt)}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+fa+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{width:Vr(va,"px"),height:Vr(va,"px")}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+fa+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{width:Vr(va,"px"),height:Vr(va,"px")}," .uagb-switch":{height:`calc(${qa} + ${$a} + ${Vr(parseInt(20+Ca+(20+Ca)/3),"px")})`,width:`calc(${Ya} + ${Za} + ${Vr(parseInt(2.5*(20+Ca)+(20+Ca)/3),"px")})`}," .uagb-switch .uagb-slider:before":{height:Vr(20+Ca,"px"),width:Vr(20+Ca,"px"),top:Vr(parseInt((20+Ca)/6),"px"),bottom:Vr(parseInt((20+Ca)/6),"px"),left:Vr(parseInt((20+Ca)/6),"px"),"background-color":ge,"border-radius":`${Ea} ${Oa} ${La} ${Ha}`}," .uagb-slider.round":{"border-radius":Vr(20+Ca,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:`translateX(${Vr(parseInt(2.5*(20+Ca)-(20+Ca)),"px")})`}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":Vr(Y,$),"line-height":Vr(Q,J),"margin-bottom":Vr(Bt,Et),"letter-spacing":Vr(Ht,jt)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":Vr(ne,oe),"line-height":Vr(ue,se),"letter-spacing":Vr(Dt,It)}," .uagb-forms-input":{"text-align":Le}," .uagb-forms-input-label":{display:Ot?"block":"none","text-align":je}," .uagb-forms-main-form textarea":{"text-align":Le}},da[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap"]="full"!==S?{"text-align":S}:{display:"grid"},ba={".uagb-forms__outer-wrap":{"padding-top":Vr(m,T),"padding-right":Vr(y,T),"padding-bottom":Vr(f,T),"padding-left":Vr(h,T)}," .uagb-forms-radio-wrap input[type=radio]:checked + label:before":{"font-size":"calc("+ha+xt+" / 1.2 )"}," .uagb-forms-radio-wrap input[type=radio] + label:before":{width:Vr(_a,xt),height:Vr(_a,xt)}," .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+ha+"px / 1.2 )"}," .uagb-forms-checkbox-wrap input[type=checkbox] + label:before":{width:Vr(_a,"px"),height:Vr(_a,"px")}," .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before":{"font-size":"calc("+ha+"px / 1.2 )"}," .uagb-forms-accept-wrap input[type=checkbox] + label:before":{width:Vr(_a,"px"),height:Vr(_a,"px")}," .uagb-forms-main-form .uagb-forms-field-set":{"margin-bottom":Vr(Ue,pt)}," .uagb-switch":{height:`calc(${Ka} + ${Xa} + ${Vr(parseInt(20+Sa+(20+Sa)/3),"px")})`,width:`calc(${Qa} + ${Ja} + ${Vr(parseInt(2.5*(20+Sa)+(20+Sa)/3),"px")})`}," .uagb-switch .uagb-slider:before":{height:Vr(20+Sa,"px"),width:Vr(20+Sa,"px"),top:Vr(parseInt((20+Sa)/6),"px"),bottom:Vr(parseInt((20+Sa)/6),"px"),left:Vr(parseInt((20+Sa)/6),"px"),"background-color":ge,"border-radius":`${Fa} ${ja} ${za} ${Da}`}," .uagb-slider.round":{"border-radius":Vr(20+Sa,"px")}," .uagb-switch input:checked + .uagb-slider:before ":{transform:`translateX(${Vr(parseInt(2.5*(20+Sa)-(20+Sa)),"px")})`}," .uagb-forms-main-form .uagb-forms-input-label":{"font-size":Vr(K,$),"line-height":Vr(ee,J),"margin-bottom":Vr(Ut,Et),"letter-spacing":Vr(Ft,jt)}," .uagb-forms-main-form .uagb-forms-input::placeholder":{"font-size":Vr(re,oe),"line-height":Vr(pe,se),"letter-spacing":Vr(Nt,It)}," .uagb-forms-input":{"text-align":He}," .uagb-forms-input-label":{display:Ot?"block":"none","text-align":ze}," .uagb-forms-main-form textarea":{"text-align":He}},ba[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap"]="full"!==k?{"text-align":k}:{display:"grid"},"boxed"===Ee?(pa[" .uagb-forms-main-form .uagb-forms-input"]={...ka,"background-color":ke,color:Se,"padding-top":Vr(dt,kt),"padding-bottom":Vr(gt,kt),"padding-left":Vr(mt,kt),"padding-right":Vr(bt,kt)},da[" .uagb-forms-main-form .uagb-forms-input"]={...wa,"padding-top":Vr(yt,Pt),"padding-bottom":Vr(ht,Pt),"padding-left":Vr(vt,Pt),"padding-right":Vr(ft,Pt)},ba[" .uagb-forms-main-form .uagb-forms-input"]={...Pa,"padding-top":Vr(_t,wt),"padding-bottom":Vr(Ct,wt),"padding-left":Vr(St,wt),"padding-right":Vr(Tt,wt)},pa[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]=xa,pa[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]=xa,pa[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]=xa,pa[" .uagb-slider "]={...xa,"background-color":de},ba[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]=Ga,ba[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]=Ga,ba[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]=Ga,ba[" .uagb-slider "]=Ga,da[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]=Aa,da[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]=Aa,da[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]=Aa,da[" .uagb-slider "]=Aa):"underlined"===Ee&&(pa[".uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-input"]={"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,background:"transparent",...ka,color:Se,"padding-top":Vr(dt,kt),"padding-bottom":Vr(gt,kt),"padding-left":Vr(mt,kt),"padding-right":Vr(bt,kt)},pa[" .uagb-forms-main-form .uagb-forms-input:focus"]={"border-top-width":0,"border-right-width":0,"border-left-width":0,"box-shadow":"unset"},da[".uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-input"]={"padding-top":Vr(yt,Pt),"padding-bottom":Vr(ht,Pt),"padding-left":Vr(vt,Pt),"padding-right":Vr(ft,Pt),...wa},ba[".uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-input"]={"padding-top":Vr(_t,wt),"padding-bottom":Vr(Ct,wt),"padding-left":Vr(St,wt),"padding-right":Vr(Tt,wt),...Pa},pa[" .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before"]={"border-bottom":Vr(fe,"px")+" "+ye+" "+ve},pa[" .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before"]={"border-bottom":Vr(fe,"px")+" "+ye+" "+ve},pa[" .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before"]={"border-bottom":Vr(fe,"px")+" "+ye+" "+ve},pa[" .uagb-slider "]={"background-color":de,"border-bottom":Vr(fe,"px")+" "+ye+" "+ve}),!ua){if("color"===x)pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button.wp-block-button__link"]={"background-color":G};else if("gradient"===x){const e=qr({backgroundType:"gradient",gradientValue:Yt,gradientColor1:la,gradientColor2:ia,gradientLocation1:oa,gradientLocation2:na,gradientType:ra,gradientAngle:sa,selectGradient:ca});pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button.wp-block-button__link"]=e}else"transparent"===x&&(pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button.wp-block-button__link"]={background:"transparent"});if("color"===A)pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap:hover .uagb-forms-main-submit-button.wp-block-button__link"]={"background-color":M};else if("gradient"===A){const e=qr({backgroundType:"gradient",gradientValue:$t,gradientColor1:Kt,gradientColor2:Jt,gradientLocation1:Xt,gradientLocation2:Qt,gradientType:ea,gradientAngle:ta,selectGradient:aa});pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap:hover .uagb-forms-main-submit-button.wp-block-button__link"]=e}else"transparent"===A&&(pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap:hover .uagb-forms-main-submit-button.wp-block-button__link"]={background:"transparent"});pa[".uagb-forms__small-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"5px 10px"},pa[".uagb-forms__medium-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"12px 24px"},pa[".uagb-forms__large-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"20px 30px"},pa[".uagb-forms__extralarge-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={padding:"30px 65px"},pa[".uagb-forms__full-btn .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={width:"100%",padding:"10px 15px"},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background)"]={color:w,"font-size":Vr(H,F),"line-height":Vr(N,D),"font-family":O,"font-style":At,"text-transform":ot,"text-decoration":nt,"font-weight":L,...el,"padding-top":Vr(Ve,at),"padding-bottom":Vr(qe,at),"padding-left":Vr(Ze,at),"padding-right":Vr(We,at)},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={color:w,"font-size":Vr(H,F),"line-height":Vr(N,D),"font-family":O,"font-style":At,"text-transform":ot,"text-decoration":nt,"font-weight":L,...el,"padding-top":Vr(Ve,at),"padding-bottom":Vr(qe,at),"padding-left":Vr(Ze,at),"padding-right":Vr(We,at),"letter-spacing":Vr(Vt,Zt)},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background):hover"]={color:P,"border-color":E},pa[" .uagb-forms-main-form .uagb-forms-main-submit-button:hover"]={color:P,"border-color":E},da[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background)"]=tl,da[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={"padding-top":Vr($e,it),"padding-bottom":Vr(Ke,it),"padding-left":Vr(Je,it),"padding-right":Vr(Ye,it),"font-size":Vr(j,F),"line-height":Vr(I,D),"letter-spacing":Vr(Wt,Zt),...tl},ba[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap.wp-block-button:not(.is-style-outline) .uagb-forms-main-submit-button.wp-block-button__link:not(.has-background)"]=al,ba[" .uagb-forms-main-form .uagb-forms-main-submit-button-wrap .uagb-forms-main-submit-button"]={"padding-top":Vr(Xe,lt),"padding-bottom":Vr(et,lt),"padding-left":Vr(tt,lt),"padding-right":Vr(Qe,lt),"font-size":Vr(z,F),"line-height":Vr(V,D),...al,"letter-spacing":Vr(qt,Zt)}}let ll="";const il=".editor-styles-wrapper .uagb-block-"+n;return ll=ae(pa,il),"tablet"!==o&&"mobile"!==o||(ll+=ae(da,""+il,!0,"tablet"),"mobile"===o&&(ll+=ae(ba,""+il,!0,"mobile"))),ll}(a,0,G,M),[a,M]);Object(B.useEffect)(()=>{ys();const e=A;window.addEventListener("load",L(e))},[M]),Object(B.useEffect)(()=>{he(e)},[T,C,S,M]);const L=Object(B.useCallback)(e=>{const t=document.querySelector("iframe[name='editor-canvas']");let a,l;var i;if(t?(a=t.contentDocument.getElementById("block-"+e),l=a.getElementsByClassName("uagb-forms__outer-wrap")):(a=document.getElementById("block-"+e),l=null===(i=a)||void 0===i?void 0:i.getElementsByClassName("uagb-forms__outer-wrap")),l&&l[0]){const e=l[0].children[0].children[0].getElementsByClassName("block-editor-block-list__layout")[0].children;for(let t=0;t]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),"message"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}},{attributes:rv,save:function(e){const{attributes:t}=e,{block_id:a,formLabel:l,submitButtonText:i,confirmationType:o,confirmationMessage:n,failedMessage:r,reCaptchaEnable:s,reCaptchaType:c,buttonSize:u}=t;if(0!==e.innerBlocks.length)return React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+a,`uagb-forms__${u}-btn`)},React.createElement("form",{className:"uagb-forms-main-form",method:"post",autoComplete:"on",name:"uagb-form-"+a},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-forms-form-hidden-data"},s&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-"+a})),s&&"v2"===c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+a}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement("button",{className:"uagb-forms-main-submit-button wp-block-button__link"},React.createElement(ge.RichText.Content,{tagName:"div",value:i.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),"message"===o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}},{attributes:rv,save:function(e){const{attributes:t}=e,{block_id:a,formLabel:l,submitButtonText:i,confirmationType:o,confirmationMessage:n,failedMessage:r,reCaptchaEnable:s,reCaptchaType:c,buttonSize:u}=t;return React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+a,`uagb-forms__${u}-btn`)},React.createElement("form",{className:"uagb-forms-main-form",method:"post",autoComplete:"on",name:"uagb-form-"+a},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-forms-form-hidden-data"},s&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-"+a})),s&&"v2"===c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+a}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement("button",{className:"uagb-forms-main-submit-button wp-block-button__link"},React.createElement(ge.RichText.Content,{tagName:"div",value:i.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}}];let dv={};dv=Object(F.applyFilters)("uagb/forms",ss(dv)),Object(de.registerBlockType)("uagb/forms",{...dv,title:Object(r.__)("Form","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add easily customizable forms to gather information.","ultimate-addons-for-gutenberg"),icon:se.forms,keywords:[Object(r.__)("forms","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],attributes:oa,category:uagb_blocks_info.category,variations:Jh,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form"}):React.createElement(tv,e),supports:{anchor:!0,html:!1},deprecated:pv,save:function(e){const{attributes:t}=e,{block_id:a,formLabel:l,submitButtonText:i,confirmationType:o,confirmationMessage:n,failedMessage:r,reCaptchaEnable:s,reCaptchaType:c,buttonSize:u,variationSelected:p,inheritFromTheme:d,submitButtonType:b}=t,g=d&&"secondary"===b,m=g?{borderWidth:"revert-layer"}:{},y="uagb-forms-main-submit-button "+(g?"ast-outline-button":"wp-block-button__link");if(p)return React.createElement("div",{className:Be()("uagb-forms__outer-wrap","uagb-block-"+a,`uagb-forms__${u}-btn`)},React.createElement("form",{className:"uagb-forms-main-form",method:"post",autoComplete:"on",name:"uagb-form-"+a},React.createElement(ge.InnerBlocks.Content,null),React.createElement("div",{className:"uagb-forms-form-hidden-data"},s&&React.createElement("input",{type:"hidden",id:"g-recaptcha-response",className:"uagb-forms-recaptcha"}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_label",value:l}),React.createElement("input",{type:"hidden",className:"uagb_forms_form_id",value:"uagb-form-"+a})),s&&"v2"===c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"g-recaptcha uagb-forms-field-set","data-sitekey":""})),React.createElement("div",{className:"uagb-form-reacaptcha-error-"+a}),React.createElement("div",{className:"uagb-forms-main-submit-button-wrap wp-block-button"},React.createElement("button",{className:y,style:m},React.createElement(ge.RichText.Content,{tagName:"div",value:i.replace(/<(?!br\s*V?)[^>]+>/g,""),className:"uagb-forms-main-submit-button-text"})))),o&&React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-success-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,n)),React.createElement("div",{className:Be()("uagb-forms-failed-message-"+a,"uagb-forms-submit-message-hide")},React.createElement("span",null,r))))}});var bv,gv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{nameRequired:l,placeholder:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,help:Object(r.__)("Duplicated name fields must be assigned distinct label names to send the data.","ultimate-addons-for-gutenberg")},React.createElement("option",{value:"off"},Object(r.__)("Off","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"name"},Object(r.__)("Full Name","ultimate-addons-for-gutenberg")),React.createElement("optgroup",{label:"Name Breakdown"},React.createElement("option",{value:"honorific-prefix"},Object(r.__)("Prefix","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"given-name"},Object(r.__)("First Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"additional-name"},Object(r.__)("Middle Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"family-name"},Object(r.__)("Last Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"honorific-suffix"},Object(r.__)("Suffix","ultimate-addons-for-gutenberg"))),React.createElement("option",{value:"username"},Object(r.__)("Username","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"nickname"},Object(r.__)("Nickname","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"organization"},Object(r.__)("Company Name","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"organization-title"},Object(r.__)("Job Title","ultimate-addons-for-gutenberg")),React.createElement("optgroup",{label:"Address Lines"},React.createElement("option",{value:"address-line1"},Object(r.__)("Address Line 1","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"address-line2"},Object(r.__)("Address Line 2","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"address-line3"},Object(r.__)("Address Line 3","ultimate-addons-for-gutenberg"))),React.createElement("option",{value:"country-name"},Object(r.__)("Country","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"postal-code"},Object(r.__)("Postal / ZIP Code","ultimate-addons-for-gutenberg"))),React.createElement(Ss,{label:"Placeholder",value:i,data:{value:i,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e}),placeholder:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({nameRequired:!l})}))),React.createElement(il,rl)))}),mv=a(113),yv=0,fv={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},hv={};hv.locals=mv.a.locals||{},hv.use=function(){return yv++||(bv=we()(mv.a,fv)),hv},hv.unuse=function(){yv>0&&!--yv&&(bv(),bv=null)};var vv=hv,_v=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(vv.use(),()=>{vv.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,nameRequired:i,name:o,placeholder:n}=t,s=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-name-label ${s} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("input",{type:"text",placeholder:n,required:i,className:"uagb-forms-name-input uagb-forms-input",name:l})))}),Tv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(gv,e),React.createElement(_v,e))),Cv=[{attributes:{block_id:{type:"string"},nameRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("Name","ultimate-addons-for-gutenberg")},placeholder:{type:"string",default:Object(r.__)("John Doe","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,nameRequired:a,name:l,placeholder:i}=e.attributes,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-name-label ${o} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"text",placeholder:i,required:a,className:"uagb-forms-name-input uagb-forms-input",name:t}))}}],Sv={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},nameRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("Name","ultimate-addons-for-gutenberg")},placeholder:{type:"string",default:Object(r.__)("John Doe","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"name"}},save:e=>{const{attributes:{block_id:t,nameRequired:a,name:l,placeholder:i,autocomplete:o}}=e,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-name-label ${n} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"text",placeholder:i,required:a,className:"uagb-forms-name-input uagb-forms-input",name:t,autoComplete:o}))}};let kv={};kv=Object(F.applyFilters)("uagb/forms-name",ss(kv)),Object(de.registerBlockType)("uagb/forms-name",{...kv,title:Object(r.__)("Name","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a name field in your form.","ultimate-addons-for-gutenberg"),icon:se.name,parent:["uagb/forms"],attributes:ca,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(Tv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,nameRequired:l,name:i,placeholder:o,autocomplete:n}=t,r=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-name-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-name-label ${r} uagb-forms-input-label`,id:a}),React.createElement("input",{type:"text",placeholder:o,required:l,className:"uagb-forms-name-input uagb-forms-input",name:a,autoComplete:n}))},deprecated:[Sv,Cv]});var wv,Pv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{required:l,placeholder:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("email","ultimate-addons-for-gutenberg"),value:"email"}]}),React.createElement(Ss,{label:"Placeholder",value:i,data:{value:i,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e}),placeholder:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({required:!l})}))),React.createElement(il,rl)))}),xv=a(114),Av=0,Gv={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Mv={};Mv.locals=xv.a.locals||{},Mv.use=function(){return Av++||(wv=we()(xv.a,Gv)),Mv},Mv.unuse=function(){Av>0&&!--Av&&(wv(),wv=null)};var Rv=Mv,Bv=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Rv.use(),()=>{Rv.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,name:i,required:o,placeholder:n}=t,s=o?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Email","ultimate-addons-for-gutenberg"),value:i,onChange:e=>a({name:e}),className:`uagb-forms-email-label ${s} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("input",{type:"text",className:"uagb-forms-email-input uagb-forms-input",placeholder:n,required:o,name:l})))}),Uv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(Pv,e),React.createElement(Bv,e))),Ev={attributes:{block_id:{type:"string"},name:{type:"string",default:Object(r.__)("Email","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("example@mail.com","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,name:a,required:l,placeholder:i}=e.attributes,o=l?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:a,className:`uagb-forms-email-label ${o} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:i,required:l,name:t}))}},Ov={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},name:{type:"string",default:Object(r.__)("Email","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("example@mail.com","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"email"}},save:e=>{const{attributes:{block_id:t,name:a,required:l,placeholder:i,autocomplete:o}}=e,n=l?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:a,className:`uagb-forms-email-label ${n} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:i,required:l,name:t,autoComplete:o}))}};let Lv={};Lv=Object(F.applyFilters)("uagb/forms-email",ss(Lv)),Object(de.registerBlockType)("uagb/forms-email",{...Lv,title:Object(r.__)("Email","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add an email address field in your form.","ultimate-addons-for-gutenberg"),icon:se.email,parent:["uagb/forms"],attributes:ra,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(Uv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,name:l,required:i,placeholder:o,autocomplete:n}=t,r=i?"required":"";return React.createElement("div",{className:Be()("uagb-forms-email-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-email-label ${r} uagb-forms-input-label`,id:a}),React.createElement("input",{type:"email",className:"uagb-forms-email-input uagb-forms-input",placeholder:o,required:i,name:a,autoComplete:n}))},deprecated:[Ov,Ev]});var Hv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{hidden_field_value:l}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Ss,{label:Object(r.__)("Value","ultimate-addons-for-gutenberg"),value:l,data:{value:l,label:"hidden_field_value"},setAttributes:a,onChange:e=>a({hidden_field_value:e})}))),React.createElement(il,rl))))}),Fv=Object(B.memo)(e=>{const{attributes:t,isSelected:a}=e,{block_id:l,hidden_field_name:i,hidden_field_value:o}=t,n=i.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-hidden-wrap","uagb-block-"+l)},a&&React.createElement("input",{type:"text",className:"uagb-forms-hidden-input",onChange:t=>{const{setAttributes:a}=e;a({hidden_field_name:t.target.value})},value:i}),!a&&React.createElement(React.Fragment,null,React.createElement("label",{className:"uagb-forms-hidden-label uagb-form-hidden-"+n,htmlFor:n},i),React.createElement("input",{id:n,type:"hidden",className:"uagb-forms-hidden-input",value:o}))))}),jv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(Hv,e),React.createElement(Fv,e))),zv=[{attributes:sa,save(e){const{block_id:t,hidden_field_value:a}=e.attributes;return React.createElement("div",{className:Be()("uagb-forms-hidden-wrap","uagb-block-"+t)},React.createElement("input",{type:"hidden",className:"uagb-forms-hidden-input",value:a}))}}];let Dv={};Dv=Object(F.applyFilters)("uagb/forms-hidden",ss(Dv)),Object(de.registerBlockType)("uagb/forms-hidden",{...Dv,title:Object(r.__)("Hidden","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a hidden field in your form to pass data.","ultimate-addons-for-gutenberg"),icon:se.hidden,parent:["uagb/forms"],attributes:sa,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-hidden",isChildren:!0}):React.createElement(jv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,hidden_field_value:l,hidden_field_name:i}=t;return React.createElement("div",{className:Be()("uagb-forms-hidden-wrap","uagb-block-"+a)},React.createElement("input",{type:"hidden",id:"hidden",className:"uagb-forms-hidden-input",value:l,name:i}))},deprecated:zv});var Nv,Iv={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},phoneName:{type:"string",default:Object(r.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(r.__)("[0-9]{3}s?[0-9]{3}s?[0-9]{4}","ultimate-addons-for-gutenberg")},selectPhoneCode:{type:"string",default:"+44"},autocomplete:{type:"string",default:"tel-national"}},Vv=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{phoneRequired:l,pattern:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("Phone","ultimate-addons-for-gutenberg"),value:"tel-national"}]}),React.createElement(Pi,{label:Object(r.__)("Pattern","ultimate-addons-for-gutenberg"),data:{value:i,label:"pattern"},setAttributes:a,options:[{label:"None",value:""},{label:"123-45-678",value:Object(r.__)("[0-9]{3}-?[0-9]{2}-?[0-9]{3}","ultimate-addons-for-gutenberg")},{label:"123-456-7890",value:Object(r.__)("[0-9]{3}-?[0-9]{3}-?[0-9]{4}","ultimate-addons-for-gutenberg")},{label:"123 456 7890",value:Object(r.__)("[0-9]{3}s?[0-9]{3}s?[0-9]{4}","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({phoneRequired:!l})}))),React.createElement(il,rl)))}),Wv=[React.createElement("option",{key:"","data-countryCode":"GB",value:"+44"},"UK (+44)"),React.createElement("option",{key:"","data-countryCode":"US",value:"+1"},"USA / Canada (+1)"),React.createElement("option",{key:"","data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),React.createElement("option",{key:"","data-countryCode":"AD",value:"+376"},"Andorra (+376)"),React.createElement("option",{key:"","data-countryCode":"AO",value:"+244"},"Angola (+244)"),React.createElement("option",{key:"","data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),React.createElement("option",{key:"","data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),React.createElement("option",{key:"","data-countryCode":"AR",value:"+54"},"Argentina (+54)"),React.createElement("option",{key:"","data-countryCode":"AM",value:"+374"},"Armenia (+374)"),React.createElement("option",{key:"","data-countryCode":"AW",value:"+297"},"Aruba (+297)"),React.createElement("option",{key:"","data-countryCode":"AU",value:"+61"},"Australia (+61)"),React.createElement("option",{key:"","data-countryCode":"AT",value:"+43"},"Austria (+43)"),React.createElement("option",{key:"","data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),React.createElement("option",{key:"","data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),React.createElement("option",{key:"","data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),React.createElement("option",{key:"","data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),React.createElement("option",{key:"","data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),React.createElement("option",{key:"","data-countryCode":"BY",value:"+375"},"Belarus (+375)"),React.createElement("option",{key:"","data-countryCode":"BE",value:"+32"},"Belgium (+32)"),React.createElement("option",{key:"","data-countryCode":"BZ",value:"+501"},"Belize (+501)"),React.createElement("option",{key:"","data-countryCode":"BJ",value:"+229"},"Benin (+229)"),React.createElement("option",{key:"","data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),React.createElement("option",{key:"","data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),React.createElement("option",{key:"","data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),React.createElement("option",{key:"","data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),React.createElement("option",{key:"","data-countryCode":"BW",value:"+267"},"Botswana (+267)"),React.createElement("option",{key:"","data-countryCode":"BR",value:"+55"},"Brazil (+55)"),React.createElement("option",{key:"","data-countryCode":"BN",value:"+673"},"Brunei (+673)"),React.createElement("option",{key:"","data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),React.createElement("option",{key:"","data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),React.createElement("option",{key:"","data-countryCode":"BI",value:"+257"},"Burundi (+257)"),React.createElement("option",{key:"","data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),React.createElement("option",{key:"","data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),React.createElement("option",{key:"","data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),React.createElement("option",{key:"","data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),React.createElement("option",{key:"","data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),React.createElement("option",{key:"","data-countryCode":"CL",value:"+56"},"Chile (+56)"),React.createElement("option",{key:"","data-countryCode":"CN",value:"+86"},"China (+86)"),React.createElement("option",{key:"","data-countryCode":"CO",value:"+57"},"Colombia (+57)"),React.createElement("option",{key:"","data-countryCode":"KM",value:"+269"},"Comoros (+269)"),React.createElement("option",{key:"","data-countryCode":"CG",value:"+242"},"Congo (+242)"),React.createElement("option",{key:"","data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),React.createElement("option",{key:"","data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),React.createElement("option",{key:"","data-countryCode":"HR",value:"+385"},"Croatia (+385)"),React.createElement("option",{key:"","data-countryCode":"CU",value:"+53"},"Cuba (+53)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),React.createElement("option",{key:"","data-countryCode":"CZ",value:"+420"},"Czech Republic (+420)"),React.createElement("option",{key:"","data-countryCode":"DK",value:"+45"},"Denmark (+45)"),React.createElement("option",{key:"","data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),React.createElement("option",{key:"","data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),React.createElement("option",{key:"","data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),React.createElement("option",{key:"","data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),React.createElement("option",{key:"","data-countryCode":"EG",value:"+20"},"Egypt (+20)"),React.createElement("option",{key:"","data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),React.createElement("option",{key:"","data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),React.createElement("option",{key:"","data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),React.createElement("option",{key:"","data-countryCode":"EE",value:"+372"},"Estonia (+372)"),React.createElement("option",{key:"","data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),React.createElement("option",{key:"","data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),React.createElement("option",{key:"","data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),React.createElement("option",{key:"","data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),React.createElement("option",{key:"","data-countryCode":"FI",value:"+358"},"Finland (+358)"),React.createElement("option",{key:"","data-countryCode":"FR",value:"+33"},"France (+33)"),React.createElement("option",{key:"","data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),React.createElement("option",{key:"","data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),React.createElement("option",{key:"","data-countryCode":"GA",value:"+241"},"Gabon (+241)"),React.createElement("option",{key:"","data-countryCode":"GM",value:"+220"},"Gambia (+220)"),React.createElement("option",{key:"","data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),React.createElement("option",{key:"","data-countryCode":"DE",value:"+49"},"Germany (+49)"),React.createElement("option",{key:"","data-countryCode":"GH",value:"+233"},"Ghana (+233)"),React.createElement("option",{key:"","data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),React.createElement("option",{key:"","data-countryCode":"GR",value:"+30"},"Greece (+30)"),React.createElement("option",{key:"","data-countryCode":"GL",value:"+299"},"Greenland (+299)"),React.createElement("option",{key:"","data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),React.createElement("option",{key:"","data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),React.createElement("option",{key:"","data-countryCode":"GU",value:"+671"},"Guam (+671)"),React.createElement("option",{key:"","data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),React.createElement("option",{key:"","data-countryCode":"GN",value:"+224"},"Guinea (+224)"),React.createElement("option",{key:"","data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),React.createElement("option",{key:"","data-countryCode":"GY",value:"+592"},"Guyana (+592)"),React.createElement("option",{key:"","data-countryCode":"HT",value:"+509"},"Haiti (+509)"),React.createElement("option",{key:"","data-countryCode":"HN",value:"+504"},"Honduras (+504)"),React.createElement("option",{key:"","data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),React.createElement("option",{key:"","data-countryCode":"HU",value:"+36"},"Hungary (+36)"),React.createElement("option",{key:"","data-countryCode":"IS",value:"+354"},"Iceland (+354)"),React.createElement("option",{key:"","data-countryCode":"IN",value:"+91"},"India (+91)"),React.createElement("option",{key:"","data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),React.createElement("option",{key:"","data-countryCode":"IR",value:"+98"},"Iran (+98)"),React.createElement("option",{key:"","data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),React.createElement("option",{key:"","data-countryCode":"IE",value:"+353"},"Ireland (+353)"),React.createElement("option",{key:"","data-countryCode":"IL",value:"+972"},"Israel (+972)"),React.createElement("option",{key:"","data-countryCode":"IT",value:"+39"},"Italy (+39)"),React.createElement("option",{key:"","data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),React.createElement("option",{key:"","data-countryCode":"JP",value:"+81"},"Japan (+81)"),React.createElement("option",{key:"","data-countryCode":"JO",value:"+962"},"Jordan (+962)"),React.createElement("option",{key:"","data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),React.createElement("option",{key:"","data-countryCode":"KE",value:"+254"},"Kenya (+254)"),React.createElement("option",{key:"","data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),React.createElement("option",{key:"","data-countryCode":"KP",value:"+850"},"Korea North (+850)"),React.createElement("option",{key:"","data-countryCode":"KR",value:"+82"},"Korea South (+82)"),React.createElement("option",{key:"","data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),React.createElement("option",{key:"","data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),React.createElement("option",{key:"","data-countryCode":"LA",value:"+856"},"Laos (+856)"),React.createElement("option",{key:"","data-countryCode":"LV",value:"+371"},"Latvia (+371)"),React.createElement("option",{key:"","data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),React.createElement("option",{key:"","data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),React.createElement("option",{key:"","data-countryCode":"LR",value:"+231"},"Liberia (+231)"),React.createElement("option",{key:"","data-countryCode":"LY",value:"+218"},"Libya (+218)"),React.createElement("option",{key:"","data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),React.createElement("option",{key:"","data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),React.createElement("option",{key:"","data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),React.createElement("option",{key:"","data-countryCode":"MO",value:"+853"},"Macao (+853)"),React.createElement("option",{key:"","data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),React.createElement("option",{key:"","data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),React.createElement("option",{key:"","data-countryCode":"MW",value:"+265"},"Malawi (+265)"),React.createElement("option",{key:"","data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),React.createElement("option",{key:"","data-countryCode":"MV",value:"+960"},"Maldives (+960)"),React.createElement("option",{key:"","data-countryCode":"ML",value:"+223"},"Mali (+223)"),React.createElement("option",{key:"","data-countryCode":"MT",value:"+356"},"Malta (+356)"),React.createElement("option",{key:"","data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),React.createElement("option",{key:"","data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),React.createElement("option",{key:"","data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),React.createElement("option",{key:"","data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),React.createElement("option",{key:"","data-countryCode":"MX",value:"+52"},"Mexico (+52)"),React.createElement("option",{key:"","data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),React.createElement("option",{key:"","data-countryCode":"MD",value:"+373"},"Moldova (+373)"),React.createElement("option",{key:"","data-countryCode":"MC",value:"+377"},"Monaco (+377)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),React.createElement("option",{key:"","data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),React.createElement("option",{key:"","data-countryCode":"MA",value:"+212"},"Morocco (+212)"),React.createElement("option",{key:"","data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),React.createElement("option",{key:"","data-countryCode":"NA",value:"+264"},"Namibia (+264)"),React.createElement("option",{key:"","data-countryCode":"NR",value:"+674"},"Nauru (+674)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+977"},"Nepal (+977)"),React.createElement("option",{key:"","data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),React.createElement("option",{key:"","data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),React.createElement("option",{key:"","data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),React.createElement("option",{key:"","data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),React.createElement("option",{key:"","data-countryCode":"NE",value:"+227"},"Niger (+227)"),React.createElement("option",{key:"","data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),React.createElement("option",{key:"","data-countryCode":"NU",value:"+683"},"Niue (+683)"),React.createElement("option",{key:"","data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),React.createElement("option",{key:"","data-countryCode":"NO",value:"+47"},"Norway (+47)"),React.createElement("option",{key:"","data-countryCode":"OM",value:"+968"},"Oman (+968)"),React.createElement("option",{key:"","data-countryCode":"PW",value:"+680"},"Palau (+680)"),React.createElement("option",{key:"","data-countryCode":"PA",value:"+507"},"Panama (+507)"),React.createElement("option",{key:"","data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),React.createElement("option",{key:"","data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),React.createElement("option",{key:"","data-countryCode":"PE",value:"+51"},"Peru (+51)"),React.createElement("option",{key:"","data-countryCode":"PH",value:"+63"},"Philippines (+63)"),React.createElement("option",{key:"","data-countryCode":"PL",value:"+48"},"Poland (+48)"),React.createElement("option",{key:"","data-countryCode":"PT",value:"+351"},"Portugal (+351)"),React.createElement("option",{key:"","data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),React.createElement("option",{key:"","data-countryCode":"QA",value:"+974"},"Qatar (+974)"),React.createElement("option",{key:"","data-countryCode":"RE",value:"+262"},"Reunion (+262)"),React.createElement("option",{key:"","data-countryCode":"RO",value:"+40"},"Romania (+40)"),React.createElement("option",{key:"","data-countryCode":"RU",value:"+7"},"Russia (+7)"),React.createElement("option",{key:"","data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),React.createElement("option",{key:"","data-countryCode":"SM",value:"+378"},"San Marino (+378)"),React.createElement("option",{key:"","data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),React.createElement("option",{key:"","data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),React.createElement("option",{key:"","data-countryCode":"SN",value:"+221"},"Senegal (+221)"),React.createElement("option",{key:"","data-countryCode":"CS",value:"+381"},"Serbia (+381)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),React.createElement("option",{key:"","data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),React.createElement("option",{key:"","data-countryCode":"SG",value:"+65"},"Singapore (+65)"),React.createElement("option",{key:"","data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),React.createElement("option",{key:"","data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),React.createElement("option",{key:"","data-countryCode":"SO",value:"+252"},"Somalia (+252)"),React.createElement("option",{key:"","data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),React.createElement("option",{key:"","data-countryCode":"ES",value:"+34"},"Spain (+34)"),React.createElement("option",{key:"","data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),React.createElement("option",{key:"","data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),React.createElement("option",{key:"","data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),React.createElement("option",{key:"","data-countryCode":"SD",value:"+249"},"Sudan (+249)"),React.createElement("option",{key:"","data-countryCode":"SR",value:"+597"},"Suriname (+597)"),React.createElement("option",{key:"","data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),React.createElement("option",{key:"","data-countryCode":"SE",value:"+46"},"Sweden (+46)"),React.createElement("option",{key:"","data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+963"},"Syria (+963)"),React.createElement("option",{key:"","data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),React.createElement("option",{key:"","data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),React.createElement("option",{key:"","data-countryCode":"TH",value:"+66"},"Thailand (+66)"),React.createElement("option",{key:"","data-countryCode":"TG",value:"+228"},"Togo (+228)"),React.createElement("option",{key:"","data-countryCode":"TO",value:"+676"},"Tonga (+676)"),React.createElement("option",{key:"","data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),React.createElement("option",{key:"","data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),React.createElement("option",{key:"","data-countryCode":"TR",value:"+90"},"Turkey (+90)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),React.createElement("option",{key:"","data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),React.createElement("option",{key:"","data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),React.createElement("option",{key:"","data-countryCode":"UG",value:"+256"},"Uganda (+256)"),React.createElement("option",{key:"","data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),React.createElement("option",{key:"","data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),React.createElement("option",{key:"","data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),React.createElement("option",{key:"","data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),React.createElement("option",{key:"","data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),React.createElement("option",{key:"","data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),React.createElement("option",{key:"","data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),React.createElement("option",{key:"","data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),React.createElement("option",{key:"","data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),React.createElement("option",{key:"","data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),React.createElement("option",{key:"","data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),React.createElement("option",{key:"","data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),React.createElement("option",{key:"","data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")],qv=a(115),Zv=0,$v={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Yv={};Yv.locals=qv.a.locals||{},Yv.use=function(){return Zv++||(Nv=we()(qv.a,$v)),Yv},Yv.unuse=function(){Zv>0&&!--Zv&&(Nv(),Nv=null)};var Kv=Yv,Jv=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Kv.use(),()=>{Kv.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,phoneRequired:i,phoneName:o,pattern:n,selectPhoneCode:s,autocomplete:c}=t;Object(B.useLayoutEffect)(()=>{"+42"===s&&a({selectPhoneCode:"+420"})},[]);let u="",p="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===n?p=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===n?p=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===n&&(p=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg")),u=""!==n?React.createElement("input",{type:"tel",placeholder:p,pattern:n,required:i,className:"uagb-forms-phone-input uagb-forms-input",name:l,autoComplete:c}):React.createElement("input",{type:"tel",required:i,className:"uagb-forms-phone-input uagb-forms-input",name:l,autoComplete:c});const d=[];Wv.map((e,t)=>d.push({value:e.props.value,label:e.props.children}));const b=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Phone Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({phoneName:e}),className:`uagb-forms-phone-label ${b} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement(Le.SelectControl,{className:"uagb-forms-input uagb-form-phone-country uagb-form-phone-country-editor",options:d,value:s,onChange:e=>a({selectPhoneCode:e})}),u)))}),Xv=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(Vv,e),React.createElement(Jv,e))),Qv=[React.createElement("option",{"data-countryCode":"GB",value:"+44"},"UK (+44)"),React.createElement("option",{"data-countryCode":"US",value:"+1"},"USA (+1)"),React.createElement("option",{"data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),React.createElement("option",{"data-countryCode":"AD",value:"+376"},"Andorra (+376)"),React.createElement("option",{"data-countryCode":"AO",value:"+244"},"Angola (+244)"),React.createElement("option",{"data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),React.createElement("option",{"data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),React.createElement("option",{"data-countryCode":"AR",value:"+54"},"Argentina (+54)"),React.createElement("option",{"data-countryCode":"AM",value:"+374"},"Armenia (+374)"),React.createElement("option",{"data-countryCode":"AW",value:"+297"},"Aruba (+297)"),React.createElement("option",{"data-countryCode":"AU",value:"+61"},"Australia (+61)"),React.createElement("option",{"data-countryCode":"AT",value:"+43"},"Austria (+43)"),React.createElement("option",{"data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),React.createElement("option",{"data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),React.createElement("option",{"data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),React.createElement("option",{"data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),React.createElement("option",{"data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),React.createElement("option",{"data-countryCode":"BY",value:"+375"},"Belarus (+375)"),React.createElement("option",{"data-countryCode":"BE",value:"+32"},"Belgium (+32)"),React.createElement("option",{"data-countryCode":"BZ",value:"+501"},"Belize (+501)"),React.createElement("option",{"data-countryCode":"BJ",value:"+229"},"Benin (+229)"),React.createElement("option",{"data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),React.createElement("option",{"data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),React.createElement("option",{"data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),React.createElement("option",{"data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),React.createElement("option",{"data-countryCode":"BW",value:"+267"},"Botswana (+267)"),React.createElement("option",{"data-countryCode":"BR",value:"+55"},"Brazil (+55)"),React.createElement("option",{"data-countryCode":"BN",value:"+673"},"Brunei (+673)"),React.createElement("option",{"data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),React.createElement("option",{"data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),React.createElement("option",{"data-countryCode":"BI",value:"+257"},"Burundi (+257)"),React.createElement("option",{"data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),React.createElement("option",{"data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),React.createElement("option",{"data-countryCode":"CA",value:"+1"},"Canada (+1)"),React.createElement("option",{"data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),React.createElement("option",{"data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),React.createElement("option",{"data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),React.createElement("option",{"data-countryCode":"CL",value:"+56"},"Chile (+56)"),React.createElement("option",{"data-countryCode":"CN",value:"+86"},"China (+86)"),React.createElement("option",{"data-countryCode":"CO",value:"+57"},"Colombia (+57)"),React.createElement("option",{"data-countryCode":"KM",value:"+269"},"Comoros (+269)"),React.createElement("option",{"data-countryCode":"CG",value:"+242"},"Congo (+242)"),React.createElement("option",{"data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),React.createElement("option",{"data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),React.createElement("option",{"data-countryCode":"HR",value:"+385"},"Croatia (+385)"),React.createElement("option",{"data-countryCode":"CU",value:"+53"},"Cuba (+53)"),React.createElement("option",{"data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),React.createElement("option",{"data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),React.createElement("option",{"data-countryCode":"CZ",value:"+42"},"Czech Republic (+42)"),React.createElement("option",{"data-countryCode":"DK",value:"+45"},"Denmark (+45)"),React.createElement("option",{"data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),React.createElement("option",{"data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),React.createElement("option",{"data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),React.createElement("option",{"data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),React.createElement("option",{"data-countryCode":"EG",value:"+20"},"Egypt (+20)"),React.createElement("option",{"data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),React.createElement("option",{"data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),React.createElement("option",{"data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),React.createElement("option",{"data-countryCode":"EE",value:"+372"},"Estonia (+372)"),React.createElement("option",{"data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),React.createElement("option",{"data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),React.createElement("option",{"data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),React.createElement("option",{"data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),React.createElement("option",{"data-countryCode":"FI",value:"+358"},"Finland (+358)"),React.createElement("option",{"data-countryCode":"FR",value:"+33"},"France (+33)"),React.createElement("option",{"data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),React.createElement("option",{"data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),React.createElement("option",{"data-countryCode":"GA",value:"+241"},"Gabon (+241)"),React.createElement("option",{"data-countryCode":"GM",value:"+220"},"Gambia (+220)"),React.createElement("option",{"data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),React.createElement("option",{"data-countryCode":"DE",value:"+49"},"Germany (+49)"),React.createElement("option",{"data-countryCode":"GH",value:"+233"},"Ghana (+233)"),React.createElement("option",{"data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),React.createElement("option",{"data-countryCode":"GR",value:"+30"},"Greece (+30)"),React.createElement("option",{"data-countryCode":"GL",value:"+299"},"Greenland (+299)"),React.createElement("option",{"data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),React.createElement("option",{"data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),React.createElement("option",{"data-countryCode":"GU",value:"+671"},"Guam (+671)"),React.createElement("option",{"data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),React.createElement("option",{"data-countryCode":"GN",value:"+224"},"Guinea (+224)"),React.createElement("option",{"data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),React.createElement("option",{"data-countryCode":"GY",value:"+592"},"Guyana (+592)"),React.createElement("option",{"data-countryCode":"HT",value:"+509"},"Haiti (+509)"),React.createElement("option",{"data-countryCode":"HN",value:"+504"},"Honduras (+504)"),React.createElement("option",{"data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),React.createElement("option",{"data-countryCode":"HU",value:"+36"},"Hungary (+36)"),React.createElement("option",{"data-countryCode":"IS",value:"+354"},"Iceland (+354)"),React.createElement("option",{"data-countryCode":"IN",value:"+91"},"India (+91)"),React.createElement("option",{"data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),React.createElement("option",{"data-countryCode":"IR",value:"+98"},"Iran (+98)"),React.createElement("option",{"data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),React.createElement("option",{"data-countryCode":"IE",value:"+353"},"Ireland (+353)"),React.createElement("option",{"data-countryCode":"IL",value:"+972"},"Israel (+972)"),React.createElement("option",{"data-countryCode":"IT",value:"+39"},"Italy (+39)"),React.createElement("option",{"data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),React.createElement("option",{"data-countryCode":"JP",value:"+81"},"Japan (+81)"),React.createElement("option",{"data-countryCode":"JO",value:"+962"},"Jordan (+962)"),React.createElement("option",{"data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),React.createElement("option",{"data-countryCode":"KE",value:"+254"},"Kenya (+254)"),React.createElement("option",{"data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),React.createElement("option",{"data-countryCode":"KP",value:"+850"},"Korea North (+850)"),React.createElement("option",{"data-countryCode":"KR",value:"+82"},"Korea South (+82)"),React.createElement("option",{"data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),React.createElement("option",{"data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),React.createElement("option",{"data-countryCode":"LA",value:"+856"},"Laos (+856)"),React.createElement("option",{"data-countryCode":"LV",value:"+371"},"Latvia (+371)"),React.createElement("option",{"data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),React.createElement("option",{"data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),React.createElement("option",{"data-countryCode":"LR",value:"+231"},"Liberia (+231)"),React.createElement("option",{"data-countryCode":"LY",value:"+218"},"Libya (+218)"),React.createElement("option",{"data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),React.createElement("option",{"data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),React.createElement("option",{"data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),React.createElement("option",{"data-countryCode":"MO",value:"+853"},"Macao (+853)"),React.createElement("option",{"data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),React.createElement("option",{"data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),React.createElement("option",{"data-countryCode":"MW",value:"+265"},"Malawi (+265)"),React.createElement("option",{"data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),React.createElement("option",{"data-countryCode":"MV",value:"+960"},"Maldives (+960)"),React.createElement("option",{"data-countryCode":"ML",value:"+223"},"Mali (+223)"),React.createElement("option",{"data-countryCode":"MT",value:"+356"},"Malta (+356)"),React.createElement("option",{"data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),React.createElement("option",{"data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),React.createElement("option",{"data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),React.createElement("option",{"data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),React.createElement("option",{"data-countryCode":"MX",value:"+52"},"Mexico (+52)"),React.createElement("option",{"data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),React.createElement("option",{"data-countryCode":"MD",value:"+373"},"Moldova (+373)"),React.createElement("option",{"data-countryCode":"MC",value:"+377"},"Monaco (+377)"),React.createElement("option",{"data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),React.createElement("option",{"data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),React.createElement("option",{"data-countryCode":"MA",value:"+212"},"Morocco (+212)"),React.createElement("option",{"data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),React.createElement("option",{"data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),React.createElement("option",{"data-countryCode":"NA",value:"+264"},"Namibia (+264)"),React.createElement("option",{"data-countryCode":"NR",value:"+674"},"Nauru (+674)"),React.createElement("option",{"data-countryCode":"NP",value:"+977"},"Nepal (+977)"),React.createElement("option",{"data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),React.createElement("option",{"data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),React.createElement("option",{"data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),React.createElement("option",{"data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),React.createElement("option",{"data-countryCode":"NE",value:"+227"},"Niger (+227)"),React.createElement("option",{"data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),React.createElement("option",{"data-countryCode":"NU",value:"+683"},"Niue (+683)"),React.createElement("option",{"data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),React.createElement("option",{"data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),React.createElement("option",{"data-countryCode":"NO",value:"+47"},"Norway (+47)"),React.createElement("option",{"data-countryCode":"OM",value:"+968"},"Oman (+968)"),React.createElement("option",{"data-countryCode":"PW",value:"+680"},"Palau (+680)"),React.createElement("option",{"data-countryCode":"PA",value:"+507"},"Panama (+507)"),React.createElement("option",{"data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),React.createElement("option",{"data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),React.createElement("option",{"data-countryCode":"PE",value:"+51"},"Peru (+51)"),React.createElement("option",{"data-countryCode":"PH",value:"+63"},"Philippines (+63)"),React.createElement("option",{"data-countryCode":"PL",value:"+48"},"Poland (+48)"),React.createElement("option",{"data-countryCode":"PT",value:"+351"},"Portugal (+351)"),React.createElement("option",{"data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),React.createElement("option",{"data-countryCode":"QA",value:"+974"},"Qatar (+974)"),React.createElement("option",{"data-countryCode":"RE",value:"+262"},"Reunion (+262)"),React.createElement("option",{"data-countryCode":"RO",value:"+40"},"Romania (+40)"),React.createElement("option",{"data-countryCode":"RU",value:"+7"},"Russia (+7)"),React.createElement("option",{"data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),React.createElement("option",{"data-countryCode":"SM",value:"+378"},"San Marino (+378)"),React.createElement("option",{"data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),React.createElement("option",{"data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),React.createElement("option",{"data-countryCode":"SN",value:"+221"},"Senegal (+221)"),React.createElement("option",{"data-countryCode":"CS",value:"+381"},"Serbia (+381)"),React.createElement("option",{"data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),React.createElement("option",{"data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),React.createElement("option",{"data-countryCode":"SG",value:"+65"},"Singapore (+65)"),React.createElement("option",{"data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),React.createElement("option",{"data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),React.createElement("option",{"data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),React.createElement("option",{"data-countryCode":"SO",value:"+252"},"Somalia (+252)"),React.createElement("option",{"data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),React.createElement("option",{"data-countryCode":"ES",value:"+34"},"Spain (+34)"),React.createElement("option",{"data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),React.createElement("option",{"data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),React.createElement("option",{"data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),React.createElement("option",{"data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),React.createElement("option",{"data-countryCode":"SD",value:"+249"},"Sudan (+249)"),React.createElement("option",{"data-countryCode":"SR",value:"+597"},"Suriname (+597)"),React.createElement("option",{"data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),React.createElement("option",{"data-countryCode":"SE",value:"+46"},"Sweden (+46)"),React.createElement("option",{"data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),React.createElement("option",{"data-countryCode":"SI",value:"+963"},"Syria (+963)"),React.createElement("option",{"data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),React.createElement("option",{"data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),React.createElement("option",{"data-countryCode":"TH",value:"+66"},"Thailand (+66)"),React.createElement("option",{"data-countryCode":"TG",value:"+228"},"Togo (+228)"),React.createElement("option",{"data-countryCode":"TO",value:"+676"},"Tonga (+676)"),React.createElement("option",{"data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),React.createElement("option",{"data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),React.createElement("option",{"data-countryCode":"TR",value:"+90"},"Turkey (+90)"),React.createElement("option",{"data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),React.createElement("option",{"data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),React.createElement("option",{"data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),React.createElement("option",{"data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),React.createElement("option",{"data-countryCode":"UG",value:"+256"},"Uganda (+256)"),React.createElement("option",{"data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),React.createElement("option",{"data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),React.createElement("option",{"data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),React.createElement("option",{"data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),React.createElement("option",{"data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),React.createElement("option",{"data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),React.createElement("option",{"data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),React.createElement("option",{"data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),React.createElement("option",{"data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),React.createElement("option",{"data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),React.createElement("option",{"data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),React.createElement("option",{"data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),React.createElement("option",{"data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),React.createElement("option",{"data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),React.createElement("option",{"data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")],e_=[{attributes:{block_id:{type:"string"},phoneName:{type:"string",default:Object(r.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(r.__)("[0-9]{3}-[0-9]{3}-[0-9]{4}","ultimate-addons-for-gutenberg")},selectPhoneCode:{type:"string",default:"+44"},autocomplete:{type:"string",default:"tel-national"}},save(e){const{block_id:t,phoneRequired:a,phoneName:l,pattern:i}=e.attributes;let o="";"[0-9]{3}-[0-9]{2}-[0-9]{3}"===i?o=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-[0-9]{3}-[0-9]{4}"===i&&(o=Object(r.__)("123-456-6789","ultimate-addons-for-gutenberg"));let n="";n=""!==i?React.createElement("input",{type:"tel",placeholder:o,pattern:i,required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]"}):React.createElement("input",{type:"tel",required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]"});const s=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-phone-label ${s} uagb-forms-input-label`,id:t}),React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+t,name:l+"[]"},Qv.map((e,t)=>React.createElement("option",{value:e.props.value,key:t},e.props.children))),n)}}],t_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},phoneName:{type:"string",default:Object(r.__)("Phone","ultimate-addons-for-gutenberg")},phoneRequired:{type:"boolean",default:!1},pattern:{type:"string",default:Object(r.__)("[0-9]{3}s?[0-9]{3}s?[0-9]{4}","ultimate-addons-for-gutenberg")},selectPhoneCode:{type:"string",default:"+44"},autocomplete:{type:"string",default:"tel-national"}},save(e){const{attributes:{block_id:t,phoneRequired:a,phoneName:l,pattern:i,selectPhoneCode:o,autocomplete:n}}=e;let s="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===i?s=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===i?s=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===i&&(s=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg"));let c="";c=""!==i?React.createElement("input",{type:"tel",placeholder:s,pattern:i,required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n}):React.createElement("input",{type:"tel",required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n});const u=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-phone-label ${u} uagb-forms-input-label`,id:t}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+t,name:l+"[]"},Wv.map((e,t)=>React.createElement("option",{value:e.props.value,key:t,selected:e.props.value===o},e.props.children))),c))}}],a_=[React.createElement("option",{key:"","data-countryCode":"GB",value:"+44"},"UK (+44)"),React.createElement("option",{key:"","data-countryCode":"US",value:"+1"},"USA / Canada (+1)"),React.createElement("option",{key:"","data-countryCode":"DZ",value:"+213"},"Algeria (+213)"),React.createElement("option",{key:"","data-countryCode":"AD",value:"+376"},"Andorra (+376)"),React.createElement("option",{key:"","data-countryCode":"AO",value:"+244"},"Angola (+244)"),React.createElement("option",{key:"","data-countryCode":"AI",value:"+1264"},"Anguilla (+1264)"),React.createElement("option",{key:"","data-countryCode":"AG",value:"+1268"},"Antigua & Barbuda (+1268)"),React.createElement("option",{key:"","data-countryCode":"AR",value:"+54"},"Argentina (+54)"),React.createElement("option",{key:"","data-countryCode":"AM",value:"+374"},"Armenia (+374)"),React.createElement("option",{key:"","data-countryCode":"AW",value:"+297"},"Aruba (+297)"),React.createElement("option",{key:"","data-countryCode":"AU",value:"+61"},"Australia (+61)"),React.createElement("option",{key:"","data-countryCode":"AT",value:"+43"},"Austria (+43)"),React.createElement("option",{key:"","data-countryCode":"AZ",value:"+994"},"Azerbaijan (+994)"),React.createElement("option",{key:"","data-countryCode":"BS",value:"+1242"},"Bahamas (+1242)"),React.createElement("option",{key:"","data-countryCode":"BH",value:"+973"},"Bahrain (+973)"),React.createElement("option",{key:"","data-countryCode":"BD",value:"+880"},"Bangladesh (+880)"),React.createElement("option",{key:"","data-countryCode":"BB",value:"+1246"},"Barbados (+1246)"),React.createElement("option",{key:"","data-countryCode":"BY",value:"+375"},"Belarus (+375)"),React.createElement("option",{key:"","data-countryCode":"BE",value:"+32"},"Belgium (+32)"),React.createElement("option",{key:"","data-countryCode":"BZ",value:"+501"},"Belize (+501)"),React.createElement("option",{key:"","data-countryCode":"BJ",value:"+229"},"Benin (+229)"),React.createElement("option",{key:"","data-countryCode":"BM",value:"+1441"},"Bermuda (+1441)"),React.createElement("option",{key:"","data-countryCode":"BT",value:"+975"},"Bhutan (+975)"),React.createElement("option",{key:"","data-countryCode":"BO",value:"+591"},"Bolivia (+591)"),React.createElement("option",{key:"","data-countryCode":"BA",value:"+387"},"Bosnia Herzegovina (+387)"),React.createElement("option",{key:"","data-countryCode":"BW",value:"+267"},"Botswana (+267)"),React.createElement("option",{key:"","data-countryCode":"BR",value:"+55"},"Brazil (+55)"),React.createElement("option",{key:"","data-countryCode":"BN",value:"+673"},"Brunei (+673)"),React.createElement("option",{key:"","data-countryCode":"BG",value:"+359"},"Bulgaria (+359)"),React.createElement("option",{key:"","data-countryCode":"BF",value:"+226"},"Burkina Faso (+226)"),React.createElement("option",{key:"","data-countryCode":"BI",value:"+257"},"Burundi (+257)"),React.createElement("option",{key:"","data-countryCode":"KH",value:"+855"},"Cambodia (+855)"),React.createElement("option",{key:"","data-countryCode":"CM",value:"+237"},"Cameroon (+237)"),React.createElement("option",{key:"","data-countryCode":"CV",value:"+238"},"Cape Verde Islands (+238)"),React.createElement("option",{key:"","data-countryCode":"KY",value:"+1345"},"Cayman Islands (+1345)"),React.createElement("option",{key:"","data-countryCode":"CF",value:"+236"},"Central African Republic (+236)"),React.createElement("option",{key:"","data-countryCode":"CL",value:"+56"},"Chile (+56)"),React.createElement("option",{key:"","data-countryCode":"CN",value:"+86"},"China (+86)"),React.createElement("option",{key:"","data-countryCode":"CO",value:"+57"},"Colombia (+57)"),React.createElement("option",{key:"","data-countryCode":"KM",value:"+269"},"Comoros (+269)"),React.createElement("option",{key:"","data-countryCode":"CG",value:"+242"},"Congo (+242)"),React.createElement("option",{key:"","data-countryCode":"CK",value:"+682"},"Cook Islands (+682)"),React.createElement("option",{key:"","data-countryCode":"CR",value:"+506"},"Costa Rica (+506)"),React.createElement("option",{key:"","data-countryCode":"HR",value:"+385"},"Croatia (+385)"),React.createElement("option",{key:"","data-countryCode":"CU",value:"+53"},"Cuba (+53)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+90392"},"Cyprus North (+90392)"),React.createElement("option",{key:"","data-countryCode":"CY",value:"+357"},"Cyprus South (+357)"),React.createElement("option",{key:"","data-countryCode":"CZ",value:"+42"},"Czech Republic (+42)"),React.createElement("option",{key:"","data-countryCode":"DK",value:"+45"},"Denmark (+45)"),React.createElement("option",{key:"","data-countryCode":"DJ",value:"+253"},"Djibouti (+253)"),React.createElement("option",{key:"","data-countryCode":"DM",value:"+1809"},"Dominica (+1809)"),React.createElement("option",{key:"","data-countryCode":"DO",value:"+1809"},"Dominican Republic (+1809)"),React.createElement("option",{key:"","data-countryCode":"EC",value:"+593"},"Ecuador (+593)"),React.createElement("option",{key:"","data-countryCode":"EG",value:"+20"},"Egypt (+20)"),React.createElement("option",{key:"","data-countryCode":"SV",value:"+503"},"El Salvador (+503)"),React.createElement("option",{key:"","data-countryCode":"GQ",value:"+240"},"Equatorial Guinea (+240)"),React.createElement("option",{key:"","data-countryCode":"ER",value:"+291"},"Eritrea (+291)"),React.createElement("option",{key:"","data-countryCode":"EE",value:"+372"},"Estonia (+372)"),React.createElement("option",{key:"","data-countryCode":"ET",value:"+251"},"Ethiopia (+251)"),React.createElement("option",{key:"","data-countryCode":"FK",value:"+500"},"Falkland Islands (+500)"),React.createElement("option",{key:"","data-countryCode":"FO",value:"+298"},"Faroe Islands (+298)"),React.createElement("option",{key:"","data-countryCode":"FJ",value:"+679"},"Fiji (+679)"),React.createElement("option",{key:"","data-countryCode":"FI",value:"+358"},"Finland (+358)"),React.createElement("option",{key:"","data-countryCode":"FR",value:"+33"},"France (+33)"),React.createElement("option",{key:"","data-countryCode":"GF",value:"+594"},"French Guiana (+594)"),React.createElement("option",{key:"","data-countryCode":"PF",value:"+689"},"French Polynesia (+689)"),React.createElement("option",{key:"","data-countryCode":"GA",value:"+241"},"Gabon (+241)"),React.createElement("option",{key:"","data-countryCode":"GM",value:"+220"},"Gambia (+220)"),React.createElement("option",{key:"","data-countryCode":"GE",value:"+7880"},"Georgia (+7880)"),React.createElement("option",{key:"","data-countryCode":"DE",value:"+49"},"Germany (+49)"),React.createElement("option",{key:"","data-countryCode":"GH",value:"+233"},"Ghana (+233)"),React.createElement("option",{key:"","data-countryCode":"GI",value:"+350"},"Gibraltar (+350)"),React.createElement("option",{key:"","data-countryCode":"GR",value:"+30"},"Greece (+30)"),React.createElement("option",{key:"","data-countryCode":"GL",value:"+299"},"Greenland (+299)"),React.createElement("option",{key:"","data-countryCode":"GD",value:"+1473"},"Grenada (+1473)"),React.createElement("option",{key:"","data-countryCode":"GP",value:"+590"},"Guadeloupe (+590)"),React.createElement("option",{key:"","data-countryCode":"GU",value:"+671"},"Guam (+671)"),React.createElement("option",{key:"","data-countryCode":"GT",value:"+502"},"Guatemala (+502)"),React.createElement("option",{key:"","data-countryCode":"GN",value:"+224"},"Guinea (+224)"),React.createElement("option",{key:"","data-countryCode":"GW",value:"+245"},"Guinea - Bissau (+245)"),React.createElement("option",{key:"","data-countryCode":"GY",value:"+592"},"Guyana (+592)"),React.createElement("option",{key:"","data-countryCode":"HT",value:"+509"},"Haiti (+509)"),React.createElement("option",{key:"","data-countryCode":"HN",value:"+504"},"Honduras (+504)"),React.createElement("option",{key:"","data-countryCode":"HK",value:"+852"},"Hong Kong (+852)"),React.createElement("option",{key:"","data-countryCode":"HU",value:"+36"},"Hungary (+36)"),React.createElement("option",{key:"","data-countryCode":"IS",value:"+354"},"Iceland (+354)"),React.createElement("option",{key:"","data-countryCode":"IN",value:"+91"},"India (+91)"),React.createElement("option",{key:"","data-countryCode":"ID",value:"+62"},"Indonesia (+62)"),React.createElement("option",{key:"","data-countryCode":"IR",value:"+98"},"Iran (+98)"),React.createElement("option",{key:"","data-countryCode":"IQ",value:"+964"},"Iraq (+964)"),React.createElement("option",{key:"","data-countryCode":"IE",value:"+353"},"Ireland (+353)"),React.createElement("option",{key:"","data-countryCode":"IL",value:"+972"},"Israel (+972)"),React.createElement("option",{key:"","data-countryCode":"IT",value:"+39"},"Italy (+39)"),React.createElement("option",{key:"","data-countryCode":"JM",value:"+1876"},"Jamaica (+1876)"),React.createElement("option",{key:"","data-countryCode":"JP",value:"+81"},"Japan (+81)"),React.createElement("option",{key:"","data-countryCode":"JO",value:"+962"},"Jordan (+962)"),React.createElement("option",{key:"","data-countryCode":"KZ",value:"+7"},"Kazakhstan (+7)"),React.createElement("option",{key:"","data-countryCode":"KE",value:"+254"},"Kenya (+254)"),React.createElement("option",{key:"","data-countryCode":"KI",value:"+686"},"Kiribati (+686)"),React.createElement("option",{key:"","data-countryCode":"KP",value:"+850"},"Korea North (+850)"),React.createElement("option",{key:"","data-countryCode":"KR",value:"+82"},"Korea South (+82)"),React.createElement("option",{key:"","data-countryCode":"KW",value:"+965"},"Kuwait (+965)"),React.createElement("option",{key:"","data-countryCode":"KG",value:"+996"},"Kyrgyzstan (+996)"),React.createElement("option",{key:"","data-countryCode":"LA",value:"+856"},"Laos (+856)"),React.createElement("option",{key:"","data-countryCode":"LV",value:"+371"},"Latvia (+371)"),React.createElement("option",{key:"","data-countryCode":"LB",value:"+961"},"Lebanon (+961)"),React.createElement("option",{key:"","data-countryCode":"LS",value:"+266"},"Lesotho (+266)"),React.createElement("option",{key:"","data-countryCode":"LR",value:"+231"},"Liberia (+231)"),React.createElement("option",{key:"","data-countryCode":"LY",value:"+218"},"Libya (+218)"),React.createElement("option",{key:"","data-countryCode":"LI",value:"+417"},"Liechtenstein (+417)"),React.createElement("option",{key:"","data-countryCode":"LT",value:"+370"},"Lithuania (+370)"),React.createElement("option",{key:"","data-countryCode":"LU",value:"+352"},"Luxembourg (+352)"),React.createElement("option",{key:"","data-countryCode":"MO",value:"+853"},"Macao (+853)"),React.createElement("option",{key:"","data-countryCode":"MK",value:"+389"},"Macedonia (+389)"),React.createElement("option",{key:"","data-countryCode":"MG",value:"+261"},"Madagascar (+261)"),React.createElement("option",{key:"","data-countryCode":"MW",value:"+265"},"Malawi (+265)"),React.createElement("option",{key:"","data-countryCode":"MY",value:"+60"},"Malaysia (+60)"),React.createElement("option",{key:"","data-countryCode":"MV",value:"+960"},"Maldives (+960)"),React.createElement("option",{key:"","data-countryCode":"ML",value:"+223"},"Mali (+223)"),React.createElement("option",{key:"","data-countryCode":"MT",value:"+356"},"Malta (+356)"),React.createElement("option",{key:"","data-countryCode":"MH",value:"+692"},"Marshall Islands (+692)"),React.createElement("option",{key:"","data-countryCode":"MQ",value:"+596"},"Martinique (+596)"),React.createElement("option",{key:"","data-countryCode":"MR",value:"+222"},"Mauritania (+222)"),React.createElement("option",{key:"","data-countryCode":"YT",value:"+269"},"Mayotte (+269)"),React.createElement("option",{key:"","data-countryCode":"MX",value:"+52"},"Mexico (+52)"),React.createElement("option",{key:"","data-countryCode":"FM",value:"+691"},"Micronesia (+691)"),React.createElement("option",{key:"","data-countryCode":"MD",value:"+373"},"Moldova (+373)"),React.createElement("option",{key:"","data-countryCode":"MC",value:"+377"},"Monaco (+377)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+976"},"Mongolia (+976)"),React.createElement("option",{key:"","data-countryCode":"MS",value:"+1664"},"Montserrat (+1664)"),React.createElement("option",{key:"","data-countryCode":"MA",value:"+212"},"Morocco (+212)"),React.createElement("option",{key:"","data-countryCode":"MZ",value:"+258"},"Mozambique (+258)"),React.createElement("option",{key:"","data-countryCode":"MN",value:"+95"},"Myanmar (+95)"),React.createElement("option",{key:"","data-countryCode":"NA",value:"+264"},"Namibia (+264)"),React.createElement("option",{key:"","data-countryCode":"NR",value:"+674"},"Nauru (+674)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+977"},"Nepal (+977)"),React.createElement("option",{key:"","data-countryCode":"NL",value:"+31"},"Netherlands (+31)"),React.createElement("option",{key:"","data-countryCode":"NC",value:"+687"},"New Caledonia (+687)"),React.createElement("option",{key:"","data-countryCode":"NZ",value:"+64"},"New Zealand (+64)"),React.createElement("option",{key:"","data-countryCode":"NI",value:"+505"},"Nicaragua (+505)"),React.createElement("option",{key:"","data-countryCode":"NE",value:"+227"},"Niger (+227)"),React.createElement("option",{key:"","data-countryCode":"NG",value:"+234"},"Nigeria (+234)"),React.createElement("option",{key:"","data-countryCode":"NU",value:"+683"},"Niue (+683)"),React.createElement("option",{key:"","data-countryCode":"NF",value:"+672"},"Norfolk Islands (+672)"),React.createElement("option",{key:"","data-countryCode":"NP",value:"+670"},"Northern Marianas (+670)"),React.createElement("option",{key:"","data-countryCode":"NO",value:"+47"},"Norway (+47)"),React.createElement("option",{key:"","data-countryCode":"OM",value:"+968"},"Oman (+968)"),React.createElement("option",{key:"","data-countryCode":"PW",value:"+680"},"Palau (+680)"),React.createElement("option",{key:"","data-countryCode":"PA",value:"+507"},"Panama (+507)"),React.createElement("option",{key:"","data-countryCode":"PG",value:"+675"},"Papua New Guinea (+675)"),React.createElement("option",{key:"","data-countryCode":"PY",value:"+595"},"Paraguay (+595)"),React.createElement("option",{key:"","data-countryCode":"PE",value:"+51"},"Peru (+51)"),React.createElement("option",{key:"","data-countryCode":"PH",value:"+63"},"Philippines (+63)"),React.createElement("option",{key:"","data-countryCode":"PL",value:"+48"},"Poland (+48)"),React.createElement("option",{key:"","data-countryCode":"PT",value:"+351"},"Portugal (+351)"),React.createElement("option",{key:"","data-countryCode":"PR",value:"+1787"},"Puerto Rico (+1787)"),React.createElement("option",{key:"","data-countryCode":"QA",value:"+974"},"Qatar (+974)"),React.createElement("option",{key:"","data-countryCode":"RE",value:"+262"},"Reunion (+262)"),React.createElement("option",{key:"","data-countryCode":"RO",value:"+40"},"Romania (+40)"),React.createElement("option",{key:"","data-countryCode":"RU",value:"+7"},"Russia (+7)"),React.createElement("option",{key:"","data-countryCode":"RW",value:"+250"},"Rwanda (+250)"),React.createElement("option",{key:"","data-countryCode":"SM",value:"+378"},"San Marino (+378)"),React.createElement("option",{key:"","data-countryCode":"ST",value:"+239"},"Sao Tome & Principe (+239)"),React.createElement("option",{key:"","data-countryCode":"SA",value:"+966"},"Saudi Arabia (+966)"),React.createElement("option",{key:"","data-countryCode":"SN",value:"+221"},"Senegal (+221)"),React.createElement("option",{key:"","data-countryCode":"CS",value:"+381"},"Serbia (+381)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+248"},"Seychelles (+248)"),React.createElement("option",{key:"","data-countryCode":"SL",value:"+232"},"Sierra Leone (+232)"),React.createElement("option",{key:"","data-countryCode":"SG",value:"+65"},"Singapore (+65)"),React.createElement("option",{key:"","data-countryCode":"SK",value:"+421"},"Slovak Republic (+421)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+386"},"Slovenia (+386)"),React.createElement("option",{key:"","data-countryCode":"SB",value:"+677"},"Solomon Islands (+677)"),React.createElement("option",{key:"","data-countryCode":"SO",value:"+252"},"Somalia (+252)"),React.createElement("option",{key:"","data-countryCode":"ZA",value:"+27"},"South Africa (+27)"),React.createElement("option",{key:"","data-countryCode":"ES",value:"+34"},"Spain (+34)"),React.createElement("option",{key:"","data-countryCode":"LK",value:"+94"},"Sri Lanka (+94)"),React.createElement("option",{key:"","data-countryCode":"SH",value:"+290"},"St. Helena (+290)"),React.createElement("option",{key:"","data-countryCode":"KN",value:"+1869"},"St. Kitts (+1869)"),React.createElement("option",{key:"","data-countryCode":"SC",value:"+1758"},"St. Lucia (+1758)"),React.createElement("option",{key:"","data-countryCode":"SD",value:"+249"},"Sudan (+249)"),React.createElement("option",{key:"","data-countryCode":"SR",value:"+597"},"Suriname (+597)"),React.createElement("option",{key:"","data-countryCode":"SZ",value:"+268"},"Swaziland (+268)"),React.createElement("option",{key:"","data-countryCode":"SE",value:"+46"},"Sweden (+46)"),React.createElement("option",{key:"","data-countryCode":"CH",value:"+41"},"Switzerland (+41)"),React.createElement("option",{key:"","data-countryCode":"SI",value:"+963"},"Syria (+963)"),React.createElement("option",{key:"","data-countryCode":"TW",value:"+886"},"Taiwan (+886)"),React.createElement("option",{key:"","data-countryCode":"TJ",value:"+7"},"Tajikstan (+7)"),React.createElement("option",{key:"","data-countryCode":"TH",value:"+66"},"Thailand (+66)"),React.createElement("option",{key:"","data-countryCode":"TG",value:"+228"},"Togo (+228)"),React.createElement("option",{key:"","data-countryCode":"TO",value:"+676"},"Tonga (+676)"),React.createElement("option",{key:"","data-countryCode":"TT",value:"+1868"},"Trinidad & Tobago (+1868)"),React.createElement("option",{key:"","data-countryCode":"TN",value:"+216"},"Tunisia (+216)"),React.createElement("option",{key:"","data-countryCode":"TR",value:"+90"},"Turkey (+90)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+7"},"Turkmenistan (+7)"),React.createElement("option",{key:"","data-countryCode":"TM",value:"+993"},"Turkmenistan (+993)"),React.createElement("option",{key:"","data-countryCode":"TC",value:"+1649"},"Turks & Caicos Islands (+1649)"),React.createElement("option",{key:"","data-countryCode":"TV",value:"+688"},"Tuvalu (+688)"),React.createElement("option",{key:"","data-countryCode":"UG",value:"+256"},"Uganda (+256)"),React.createElement("option",{key:"","data-countryCode":"UA",value:"+380"},"Ukraine (+380)"),React.createElement("option",{key:"","data-countryCode":"AE",value:"+971"},"United Arab Emirates (+971)"),React.createElement("option",{key:"","data-countryCode":"UY",value:"+598"},"Uruguay (+598)"),React.createElement("option",{key:"","data-countryCode":"UZ",value:"+7"},"Uzbekistan (+7)"),React.createElement("option",{key:"","data-countryCode":"VU",value:"+678"},"Vanuatu (+678)"),React.createElement("option",{key:"","data-countryCode":"VA",value:"+379"},"Vatican City (+379)"),React.createElement("option",{key:"","data-countryCode":"VE",value:"+58"},"Venezuela (+58)"),React.createElement("option",{key:"","data-countryCode":"VN",value:"+84"},"Vietnam (+84)"),React.createElement("option",{key:"","data-countryCode":"VG",value:"+84"},"Virgin Islands - British (+1284)"),React.createElement("option",{key:"","data-countryCode":"VI",value:"+84"},"Virgin Islands - US (+1340)"),React.createElement("option",{key:"","data-countryCode":"WF",value:"+681"},"Wallis & Futuna (+681)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+969"},"Yemen (North)(+969)"),React.createElement("option",{key:"","data-countryCode":"YE",value:"+967"},"Yemen (South)(+967)"),React.createElement("option",{key:"","data-countryCode":"ZM",value:"+260"},"Zambia (+260)"),React.createElement("option",{key:"","data-countryCode":"ZW",value:"+263"},"Zimbabwe (+263)")],l_={attributes:Iv,save(e){const{block_id:t,phoneRequired:a,phoneName:l,pattern:i,selectPhoneCode:o,autocomplete:n}=e.attributes;let s="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===i?s=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===i?s=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===i&&(s=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg"));let c="";c=""!==i?React.createElement("input",{type:"tel",placeholder:s,pattern:i,required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n}):React.createElement("input",{type:"tel",required:a,className:"uagb-forms-phone-input uagb-forms-input",name:l+"[]",autoComplete:n});const u=a?"required":"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-phone-label ${u} uagb-forms-input-label`,id:t}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+t,name:l+"[]"},a_.map((e,t)=>React.createElement("option",{value:e.props.value,key:t,selected:e.props.value===o},e.props.children))),c))}};let i_={};i_=Object(F.applyFilters)("uagb/forms-phone",ss(i_)),Object(de.registerBlockType)("uagb/forms-phone",{...i_,title:Object(r.__)("Phone","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a phone number field in your form.","ultimate-addons-for-gutenberg"),icon:se.phone,parent:["uagb/forms"],attributes:Iv,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-phone",isChildren:!0}):React.createElement(Xv,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,phoneRequired:l,phoneName:i,pattern:o,selectPhoneCode:n,autocomplete:s}=t;let c="";"[0-9]{3}-?[0-9]{2}-?[0-9]{3}"===o?c=Object(r.__)("123-45-678","ultimate-addons-for-gutenberg"):"[0-9]{3}-?[0-9]{3}-?[0-9]{4}"===o?c=Object(r.__)("123-456-7890","ultimate-addons-for-gutenberg"):"[0-9]{3}s?[0-9]{3}s?[0-9]{4}"===o&&(c=Object(r.__)("123 456 7890","ultimate-addons-for-gutenberg"));let u="";u=""!==o?React.createElement("input",{type:"tel",placeholder:c,pattern:o,required:l,className:"uagb-forms-phone-input uagb-forms-input",name:i+"[]",autoComplete:s}):React.createElement("input",{type:"tel",required:l,className:"uagb-forms-phone-input uagb-forms-input",name:i+"[]",autoComplete:s});const p=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-phone-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-phone-label ${p} uagb-forms-input-label`,id:a}),React.createElement("div",{className:"uagb-forms-phone-flex"},React.createElement("select",{className:"uagb-forms-input uagb-form-phone-country",id:"uagb-form-country-"+a,name:i+"[]"},Wv.map((e,t)=>React.createElement("option",{value:e.props.value,key:t,selected:e.props.value===n},e.props.children))),u))},deprecated:[t_,e_,l_]});var o_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{textareaRequired:l,rows:i,placeholder:o,autocomplete:n}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:n,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("Address","ultimate-addons-for-gutenberg"),value:"street-address"}]}),React.createElement(Ss,{label:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg"),value:o,data:{value:o,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e})}),React.createElement(Qa,{label:Object(r.__)("Number of lines","ultimate-addons-for-gutenberg"),setAttributes:a,value:i,data:{value:i,label:"rows"},min:2,max:10,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({textareaRequired:!l})}))),React.createElement(il,rl))))}),n_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,name:l}=e,i=l.replace("uagb/",""),{block_id:o,textareaRequired:n,textareaName:s,rows:c,placeholder:u}=t,p=n?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+o)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Textarea Name","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({textareaName:e}),className:`uagb-forms-textarea-label ${p} uagb-forms-input-label`,multiline:!1,id:o}),React.createElement("textarea",{required:n,className:"uagb-forms-textarea-input uagb-forms-input",rows:us(c,"rows",i),placeholder:u,name:o})))}),r_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(o_,e),React.createElement(n_,e))),s_=[{attributes:{block_id:{type:"string"},textareaName:{type:"string",default:Object(r.__)("Message","ultimate-addons-for-gutenberg")},textareaRequired:{type:"boolean",default:!1},rows:{type:"number",default:4},placeholder:{type:"string",default:Object(r.__)("Enter your message","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,textareaRequired:a,textareaName:l,rows:i,placeholder:o}=e.attributes,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-textarea-label ${n} uagb-forms-input-label`,id:t}),React.createElement("textarea",{required:a,className:"uagb-forms-textarea-input uagb-forms-input",rows:i,placeholder:o,name:t}))}}],c_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},textareaName:{type:"string",default:Object(r.__)("Message","ultimate-addons-for-gutenberg")},textareaRequired:{type:"boolean",default:!1},rows:{type:"number",default:4},placeholder:{type:"string",default:Object(r.__)("Enter your message","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"off"}},save(e){const{attributes:{block_id:t,textareaRequired:a,textareaName:l,rows:i,placeholder:o,autocomplete:n}}=e,s=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-textarea-label ${s} uagb-forms-input-label`,id:t}),React.createElement("textarea",{required:a,className:"uagb-forms-textarea-input uagb-forms-input",rows:us(i,"rows","forms-textarea"),placeholder:o,name:t,autoComplete:n}))}}];let u_={};u_=Object(F.applyFilters)("uagb/forms-textarea",ss(u_)),Object(de.registerBlockType)("uagb/forms-textarea",{...u_,title:Object(r.__)("Textarea","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a text field in your form.","ultimate-addons-for-gutenberg"),icon:se.textarea,parent:["uagb/forms"],attributes:da,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-textarea",isChildren:!0}):React.createElement(r_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,textareaRequired:l,textareaName:i,rows:o,placeholder:n,autocomplete:r}=t,s=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-textarea-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-textarea-label ${s} uagb-forms-input-label`,id:a}),React.createElement("textarea",{required:l,className:"uagb-forms-textarea-input uagb-forms-input",rows:us(o,"rows","forms-textarea"),placeholder:n,name:a,autoComplete:r}))},deprecated:[c_,s_]});var p_,d_={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},checkboxName:{type:"string",default:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},b_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{checkboxRequired:l}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({checkboxRequired:!l})}))),React.createElement(il,rl)))}),g_=a(116),m_=0,y_={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},f_={};f_.locals=g_.a.locals||{},f_.use=function(){return m_++||(p_=we()(g_.a,y_)),f_},f_.unuse=function(){m_>0&&!--m_&&(p_(),p_=null)};var h_=f_,v_=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(h_.use(),()=>{h_.unuse()}),[]);const{attributes:t,setAttributes:a,isSelected:l}=e,{block_id:i,checkboxRequired:o,options:n,checkboxName:s}=t,c=o?"required":"",u=n.map((e,t)=>React.createElement("div",{key:t,className:"uagb-form-checkbox-option"},React.createElement("input",{type:"checkbox",name:"checkbox-"+i,value:e.optiontitle,id:e.optiontitle,required:o}),React.createElement("label",{htmlFor:e.optiontitle}," "),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optiontitle,onChange:e=>d({optiontitle:e.target.value,optionvalue:e.target.value},t),type:"text",value:e.optiontitle,required:o}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optionvalue,onChange:e=>d({optionvalue:e.target.value},t),type:"text",value:e.optionvalue,required:o}),React.createElement(Le.Button,{className:"uagb-form-checkbox-option-delete",icon:"trash",label:"Remove",onClick:()=>b(t)}))),p=()=>n.map(e=>{const t=e.optionvalue.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${t}-${i}`,name:s+"[]",value:t,required:o}),React.createElement("label",{htmlFor:`checkbox-${t}-${i}`},e.optiontitle),React.createElement("br",null))}),d=(e,t)=>{const l=n.map((a,l)=>(t===l&&(a={...a,...e}),a));a({options:l})},b=e=>{const t=n.map((t,a)=>(e===a&&(n.splice(e,1),t={options:n}),t));a({deleteOptions:t})};return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+i)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({checkboxName:e}),className:`uagb-forms-checkbox-label ${c} uagb-forms-input-label`,multiline:!1,id:i}),l&&React.createElement(React.Fragment,null,u,React.createElement("div",{className:"uagb-forms-checkbox-controls"},React.createElement("div",null,React.createElement(Le.Button,{isSecondary:!0,onClick:()=>{const e={optiontitle:Object(r.__)("Option Name ","ultimate-addons-for-gutenberg")+""+(n.length+1),optionvalue:Object(r.__)("Option Value ","ultimate-addons-for-gutenberg")+""+(n.length+1)},t=[...n,e];a({options:t})}},Object(r.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!l&&React.createElement(p,null)))}),T_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(b_,e),React.createElement(v_,e))),C_={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},checkboxName:{type:"string",default:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save:e=>{const{attributes:{block_id:t,checkboxRequired:a,options:l,checkboxName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-checkbox-label ${o} uagb-forms-input-label`,id:t}),l.map((e,l)=>{const o=e.optionvalue,n=o.replace(/\s+/g,"-").toLowerCase();return React.createElement(B.Fragment,{key:l},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${n}-${t}`,name:i+"[]",value:o,required:a,onInvalid:"this.setCustomValidity('Please check this box if you want to proceed.')"}),React.createElement("label",{htmlFor:`checkbox-${n}-${t}`},e.optiontitle),React.createElement("br",null))}))}},S_={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},checkboxName:{type:"string",default:Object(r.__)("Checkbox Title","ultimate-addons-for-gutenberg")},checkboxRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save:e=>{const{attributes:{block_id:t,checkboxRequired:a,options:l,checkboxName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-checkbox-label ${o} uagb-forms-input-label`,id:t}),l.map((e,l)=>{const o=e.optionvalue,n=o.replace(/\s+/g,"-").toLowerCase();return React.createElement(B.Fragment,{key:l},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${n}-${t}`,name:i+"[]",value:o,required:a}),React.createElement("label",{htmlFor:`checkbox-${n}-${t}`},e.optiontitle),React.createElement("br",null))}))}};let k_={};k_=Object(F.applyFilters)("uagb/forms-checkbox",ss(k_)),Object(de.registerBlockType)("uagb/forms-checkbox",{...k_,title:Object(r.__)("Checkbox","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add checkboxes to allow multiple choices from options.","ultimate-addons-for-gutenberg"),icon:se.checkbox,parent:["uagb/forms"],attributes:d_,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-checkbox",isChildren:!0}):React.createElement(T_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,checkboxRequired:l,options:i,checkboxName:o}=t,n=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-checkbox-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:o,className:`uagb-forms-checkbox-label ${n} uagb-forms-input-label`,id:a}),i.map((e,t)=>{const i=e.optionvalue,n=i.replace(/\s+/g,"-").toLowerCase();return React.createElement(B.Fragment,{key:t},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",id:`checkbox-${n}-${a}`,name:o+"[]",value:i,required:l}),React.createElement("label",{htmlFor:`checkbox-${n}-${a}`},e.optiontitle),React.createElement("br",null))}))},deprecated:[S_,C_]});var w_,P_={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},radioName:{type:"string",default:Object(r.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]},layout:{type:"string",default:"round"}},x_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{radioRequired:l,layout:i}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({radioRequired:!l})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:i,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"",label:"Square"},{value:"round",label:"Round"}],showIcons:!1}))),React.createElement(il,rl)))}),A_=a(117),G_=0,M_={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},R_={};R_.locals=A_.a.locals||{},R_.use=function(){return G_++||(w_=we()(A_.a,M_)),R_},R_.unuse=function(){G_>0&&!--G_&&(w_(),w_=null)};var B_=R_,U_=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(B_.use(),()=>{B_.unuse()}),[]);const{attributes:t,setAttributes:a,isSelected:l}=e,{block_id:i,radioRequired:o,options:n,radioName:s,layout:c}=t,u=n.map((e,t)=>React.createElement("div",{key:t,className:"uagb-form-radio-option"},React.createElement("input",{type:"radio",name:"radio-"+i,value:e.optiontitle,id:e.optiontitle,className:c}),React.createElement("label",{htmlFor:e.optiontitle}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optiontitle,onChange:e=>d({optiontitle:e.target.value,optionvalue:e.target.value},t),type:"text",value:e.optiontitle}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optionvalue,onChange:e=>d({optionvalue:e.target.value},t),type:"text",value:e.optionvalue}),React.createElement(Le.Button,{className:"uagb-form-radio-option-delete",icon:"trash",label:"Remove",onClick:()=>b(t)}))),p=()=>n.map(e=>{const t=e.optionvalue,a=t.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:a,name:i,value:t,required:o,className:c}),React.createElement("label",{htmlFor:a},e.optiontitle),React.createElement("br",null))}),d=(e,t)=>{const l=n.map((a,l)=>(t===l&&(a={...a,...e}),a));a({options:l})},b=e=>{const t=n.map((t,a)=>(e===a&&(n.splice(e,1),t={options:n}),t));a({deleteOptions:t})},g=o?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+i)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Radio Title","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({radioName:e}),className:`uagb-forms-radio-label ${g} uagb-forms-input-label`,multiline:!1,id:i}),l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-forms-radio-controls"},u,React.createElement("div",null,React.createElement(Le.Button,{isSecondary:!0,onClick:()=>{const e={optiontitle:Object(r.__)("Option Name ","ultimate-addons-for-gutenberg")+""+(n.length+1),optionvalue:Object(r.__)("Option Value ","ultimate-addons-for-gutenberg")+""+(n.length+1)};n[n.length]=e;const t=n.map(e=>e);a({options:t})}},Object(r.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!l&&React.createElement(p,null)))}),E_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(x_,e),React.createElement(U_,e))),O_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},radioName:{type:"string",default:Object(r.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]},layout:{type:"string",default:"round"}},save(e){const{block_id:t,radioRequired:a,options:l,radioName:i}=e.attributes,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-radio-label ${o} uagb-forms-input-label`,id:t}),l.map(e=>{const l=e.optionvalue,i=l.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:`radio-${i}-${t}`,name:t,value:l,required:a}),React.createElement("label",{htmlFor:`radio-${i}-${t}`},e.optiontitle),React.createElement("br",null))}))}}],L_={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},radioName:{type:"string",default:Object(r.__)("RadioBox Title","ultimate-addons-for-gutenberg")},radioRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]},layout:{type:"string",default:"round"}},save:e=>{const{attributes:{block_id:t,radioRequired:a,options:l,radioName:i,layout:o}}=e,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-radio-label ${n} uagb-forms-input-label`,id:t}),l.map(e=>{const l=e.optionvalue,i=l.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:`radio-${i}-${t}`,name:t,value:l,required:a,className:o}),React.createElement("label",{htmlFor:`radio-${i}-${t}`},e.optiontitle),React.createElement("br",null))}))}};let H_={};H_=Object(F.applyFilters)("uagb/forms-radio",ss(H_)),Object(de.registerBlockType)("uagb/forms-radio",{...H_,title:Object(r.__)("Radio","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add radio select boxes to allow a single choice from options.","ultimate-addons-for-gutenberg"),icon:se.radio,parent:["uagb/forms"],attributes:P_,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-radio",isChildren:!0}):React.createElement(E_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,radioRequired:l,options:i,radioName:o,layout:n}=t,r=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-radio-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:o,className:`uagb-forms-radio-label ${r} uagb-forms-input-label`,id:a}),i.map(e=>{const t=e.optionvalue,i=t.replace(/\s+/g,"-").toLowerCase();return React.createElement(React.Fragment,null,React.createElement("input",{type:"radio",id:`radio-${i}-${a}`,name:a,value:t,required:l,className:n}),React.createElement("label",{htmlFor:`radio-${i}-${a}`},e.optiontitle),React.createElement("br",null))}))},deprecated:[L_,O_]});var F_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{required:l,placeholder:i,autocomplete:o}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Autocomplete","ultimate-addons-for-gutenberg"),data:{value:o,label:"autocomplete"},setAttributes:a,options:[{label:Object(r.__)("Off","ultimate-addons-for-gutenberg"),value:"off"},{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:"url"}]}),React.createElement(Ss,{label:Object(r.__)("Placeholder","ultimate-addons-for-gutenberg"),value:i,data:{value:i,label:"placeholder"},setAttributes:a,onChange:e=>a({placeholder:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({required:!l})}))),React.createElement(il,rl)))}),j_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{block_id:l,required:i,name:o,placeholder:n}=t,s=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("URL Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-url-label ${s} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("input",{type:"url",name:l,placeholder:n,required:i,className:"uagb-forms-url-input uagb-forms-input"})))}),z_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(F_,e),React.createElement(j_,e))),D_=[{attributes:{block_id:{type:"string"},name:{type:"string",default:Object(r.__)("URL","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("https://example.com","ultimate-addons-for-gutenberg")}},save(e){const{block_id:t,required:a,name:l,placeholder:i}=e.attributes,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-url-label ${o} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"url",name:t,required:a,placeholder:i,className:"uagb-forms-url-input uagb-forms-input"}))}}],N_=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},name:{type:"string",default:Object(r.__)("URL","ultimate-addons-for-gutenberg")},required:{type:"boolean",default:!1},placeholder:{type:"string",default:Object(r.__)("https://example.com","ultimate-addons-for-gutenberg")},autocomplete:{type:"string",default:"url"}},save(e){const{attributes:{block_id:t,required:a,name:l,placeholder:i,autocomplete:o}}=e,n=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-url-label ${n} uagb-forms-input-label`,id:t}),React.createElement("input",{type:"url",name:t,required:a,placeholder:i,className:"uagb-forms-url-input uagb-forms-input",autoComplete:o}))}}];let I_={};I_=Object(F.applyFilters)("uagb/forms-url",ss(I_)),Object(de.registerBlockType)("uagb/forms-url",{...I_,title:Object(r.__)("URL","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a URL input field in your form.","ultimate-addons-for-gutenberg"),icon:se.url,parent:["uagb/forms"],attributes:pa,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(z_,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,required:l,name:i,placeholder:o,autocomplete:n}=t,r=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-url-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-url-label ${r} uagb-forms-input-label`,id:a}),React.createElement("input",{type:"url",name:a,required:l,placeholder:o,className:"uagb-forms-url-input uagb-forms-input",autoComplete:n}))},deprecated:[N_,D_]});var V_,W_={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},selectName:{type:"string",default:Object(r.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},q_=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{selectRequired:l}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({selectRequired:!l})}))),React.createElement(il,rl)))}),Z_=a(118),$_=0,Y_={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},K_={};K_.locals=Z_.a.locals||{},K_.use=function(){return $_++||(V_=we()(Z_.a,Y_)),K_},K_.unuse=function(){$_>0&&!--$_&&(V_(),V_=null)};var J_=K_,X_=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(J_.use(),()=>{J_.unuse()}),[]);const{attributes:t,setAttributes:a,isSelected:l}=e,{block_id:i,selectRequired:o,options:n,selectName:s}=t,c=n.map((e,t)=>React.createElement("div",{key:t,className:"uagb-form-select-option"},React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optiontitle,onChange:e=>p({optiontitle:e.target.value,optionvalue:e.target.value},t),type:"text",value:e.optiontitle}),React.createElement("input",{className:"uagb-inner-input-view","aria-label":e.optionvalue,onChange:e=>p({optionvalue:e.target.value},t),type:"text",value:e.optionvalue}),React.createElement(Le.Button,{className:"uagb-form-select-option-delete",icon:"trash",label:"Remove",onClick:()=>d(t)}))),u=()=>{const e=n.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle));return React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:o,name:i,defaultValue:""},React.createElement("option",{value:"",disabled:!0},Object(r.__)("Select your option","ultimate-addons-for-gutenberg")),e)},p=(e,t)=>{const l=n.map((a,l)=>(t===l&&(a={...a,...e}),a));a({options:l})},d=e=>{const t=n.map((t,a)=>(e===a&&(n.splice(e,1),t={options:n}),t));a({deleteCurrentOptions:t})},b=o?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+i)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Select Title","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({selectName:e}),className:`uagb-forms-select-label ${b} uagb-forms-input-label`,multiline:!1,id:i}),l&&React.createElement(React.Fragment,null,c,React.createElement("div",{className:"uagb-forms-select-controls"},React.createElement("div",null,React.createElement(Le.Button,{isSecondary:!0,onClick:()=>{const e={optiontitle:Object(r.__)("Option Name ","ultimate-addons-for-gutenberg")+""+(n.length+1),optionvalue:Object(r.__)("Option Value ","ultimate-addons-for-gutenberg")+""+(n.length+1)};n[n.length]=e;const t=n.map(e=>e);a({options:t})}},Object(r.__)(" + Add Option ","ultimate-addons-for-gutenberg"))))),!l&&React.createElement(u,null)))}),Q_=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(q_,e),React.createElement(X_,e))),eT=[{attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},selectName:{type:"string",default:Object(r.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save(e){const{attributes:{block_id:t,selectRequired:a,options:l,selectName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-select-label ${o} uagb-forms-input-label`,id:t}),React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:a,name:t},React.createElement("option",{value:"",disabled:!0,selected:!0},"Select your option"),l.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle))))}}],tT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},selectName:{type:"string",default:Object(r.__)("Select Title","ultimate-addons-for-gutenberg")},selectRequired:{type:"boolean",default:!1},options:{type:"array",default:[{optiontitle:Object(r.__)("Option Name 1","ultimate-addons-for-gutenberg"),optionvalue:Object(r.__)("Option Value 1","ultimate-addons-for-gutenberg")}]}},save:e=>{const{attributes:{block_id:t,selectRequired:a,options:l,selectName:i}}=e,o=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-select-label ${o} uagb-forms-input-label`,id:t}),React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:a,name:t},React.createElement("option",{value:"",disabled:!0,selected:!0},Object(r.__)("Select your option","ultimate-addons-for-gutenberg")),l.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle))))}};let aT={};aT=Object(F.applyFilters)("uagb/forms-select",ss(aT)),Object(de.registerBlockType)("uagb/forms-select",{...aT,title:Object(r.__)("Select","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a select dropdown to list choices.","ultimate-addons-for-gutenberg"),icon:se.select,parent:["uagb/forms"],attributes:W_,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(Q_,e),save:function(e){const{attributes:t}=e,{block_id:a,selectRequired:l,options:i,selectName:o}=t,n=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-select-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:o,className:`uagb-forms-select-label ${n} uagb-forms-input-label`,id:a}),React.createElement("select",{className:"uagb-forms-select-box uagb-forms-input",required:l,name:a},React.createElement("option",{value:"",disabled:!0,selected:!0},Object(r.__)("Select your option","ultimate-addons-for-gutenberg")),i.map((e,t)=>React.createElement("option",{key:t,value:e.optionvalue},e.optiontitle))))},deprecated:[tT,eT]});var lT,iT=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{toggleRequired:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Ss,{label:Object(r.__)("True State","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"trueValue"},setAttributes:a,onChange:e=>a({trueValue:e})}),React.createElement(Ss,{label:Object(r.__)("False State","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"falseValue"},setAttributes:a,onChange:e=>a({falseValue:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:o,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"",label:"Square"},{value:"round",label:"Round"}],showIcons:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({toggleRequired:!l})}),React.createElement(Le.ToggleControl,{label:i?Object(r.__)("ON State","ultimate-addons-for-gutenberg"):Object(r.__)("OFF State","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({toggleStatus:!i})}),React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("Leaving the toggle in On/Off state will set it as a default value on page load for the user.","ultimate-addons-for-gutenberg")))),React.createElement(il,rl)))}),oT=a(119),nT=0,rT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},sT={};sT.locals=oT.a.locals||{},sT.use=function(){return nT++||(lT=we()(oT.a,rT)),sT},sT.unuse=function(){nT>0&&!--nT&&(lT(),lT=null)};var cT=sT,uT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(cT.use(),()=>{cT.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,toggleRequired:i,name:o,toggleStatus:n,layout:s,trueValue:c,falseValue:u}=t,p=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Name","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-toggle-label ${p} uagb-forms-input-label`,multiline:!1,id:l}),React.createElement("label",{htmlFor:l,className:"uagb-switch"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:n,"data-truestate":c,"data-falsestate":u,value:n?c:u,required:i,name:l}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",readOnly:!0,checked:n,"data-truestate":c,"data-falsestate":u,value:n?c:u,required:i,name:l}),React.createElement("span",{className:"uagb-slider "+s}))))}),pT=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(iT,e),React.createElement(uT,e))),dT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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"}},save:e=>{const{attributes:{block_id:t,toggleRequired:a,name:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:t}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("span",{className:"uagb-slider "+o})))}},bT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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"}},save:e=>{const{attributes:{block_id:t,toggleRequired:a,name:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:t}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t}),React.createElement("span",{className:"uagb-slider "+o})))}},gT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},toggleRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("Toggle","ultimate-addons-for-gutenberg")},toggleStatus:{type:"boolean",default:!1},layout:{type:"string",default:"round"},trueValue:{type:"string",default:"on"},falseValue:{type:"string",default:"off"}},save:e=>{const{attributes:{block_id:t,toggleRequired:a,name:l,toggleStatus:i,layout:o,trueValue:n,falseValue:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:t}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t,"aria-label":l}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:i,"data-truestate":n,"data-falsestate":s,value:i?n:s,required:a,name:t,"aria-label":l}),React.createElement("span",{className:"uagb-slider "+o})))}};let mT={};mT=Object(F.applyFilters)("uagb/forms-toggle",ss(mT)),Object(de.registerBlockType)("uagb/forms-toggle",{...mT,title:Object(r.__)("Toggle","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a toggle button in your form.","ultimate-addons-for-gutenberg"),icon:se.toggle,parent:["uagb/forms"],attributes:ua,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-toggle",isChildren:!0}):React.createElement(pT,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,toggleRequired:l,name:i,toggleStatus:o,layout:n,trueValue:r,falseValue:s}=t,c=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-toggle-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-toggle-label ${c} uagb-forms-input-label`,id:a}),React.createElement("label",{className:"uagb-switch",id:"uag-form"},React.createElement("input",{type:"hidden",className:"uagb-forms-toggle-input",checked:o,"data-truestate":r,"data-falsestate":s,value:o?r:s,required:l,name:a,"aria-label":i}),React.createElement("input",{type:"checkbox",className:"uagb-forms-toggle-input",checked:o,"data-truestate":r,"data-falsestate":s,value:o?r:s,required:l,name:a,"aria-label":i}),React.createElement("span",{className:"uagb-slider "+n})))},deprecated:[gT,bT,dT]});var yT={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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:""},autocomplete:{type:"string",default:"bday"}};const fT=[{label:"YYYY",value:""}],hT=[{label:"MM",value:""}],vT=[{label:"DD",value:""}];let _T;for(_T=1930;_T<=2030;_T++)fT.push({label:""+_T,value:""+_T});for(_T=1;_T<=12;_T++){const e=_T<10?"0"+_T:""+_T;hT.push({label:e,value:e})}for(_T=1;_T<=31;_T++){const e=_T<10?"0"+_T:""+_T;vT.push({label:e,value:e})}var TT,CT=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{dateRequired:l,additonalVal:i,minYear:o,minMonth:n,minDay:s,maxYear:c,maxMonth:u,maxDay:p}=t;let d="",b="";o&&n&&s&&(d=o+"-"+n+"-"+s),c&&u&&p&&(b=c+"-"+u+"-"+p);let g="";return Date.parse(d)>Date.parse(b)&&(g=React.createElement("p",{className:"uagb-forms-date-invalidate"},Object(r.__)("Invalid date range selected","ultimate-addons-for-gutenberg"))),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({dateRequired:!l})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Additional Validation","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({additonalVal:!i}),help:Object(r.__)("Helps to set range of calender","ultimate-addons-for-gutenberg")}),i&&React.createElement(React.Fragment,null,React.createElement(fi,null),React.createElement("p",null,Object(r.__)("From","ultimate-addons-for-gutenberg")," :"),React.createElement(Pi,{label:Object(r.__)("Year","ultimate-addons-for-gutenberg"),data:{value:o,label:"minYear"},setAttributes:a,options:fT}),React.createElement(Pi,{label:Object(r.__)("Month","ultimate-addons-for-gutenberg"),data:{value:n,label:"minMonth"},setAttributes:a,options:hT}),React.createElement(Pi,{label:Object(r.__)("Date","ultimate-addons-for-gutenberg"),data:{value:s,label:"minDay"},setAttributes:a,options:vT}),React.createElement(fi,null),React.createElement("p",null,Object(r.__)("To","ultimate-addons-for-gutenberg")," :"),React.createElement(Pi,{label:Object(r.__)("Year","ultimate-addons-for-gutenberg"),data:{value:c,label:"maxYear"},setAttributes:a,options:fT}),React.createElement(Pi,{label:Object(r.__)("Month","ultimate-addons-for-gutenberg"),data:{value:u,label:"maxMonth"},setAttributes:a,options:hT}),React.createElement(Pi,{label:Object(r.__)("Date","ultimate-addons-for-gutenberg"),data:{value:p,label:"maxDay"},setAttributes:a,options:vT}),g))),React.createElement(il,rl))))}),ST=a(120),kT=0,wT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},PT={};PT.locals=ST.a.locals||{},PT.use=function(){return kT++||(TT=we()(ST.a,wT)),PT},PT.unuse=function(){kT>0&&!--kT&&(TT(),TT=null)};var xT=PT,AT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(xT.use(),()=>{xT.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{block_id:l,dateRequired:i,name:o,additonalVal:n,minYear:s,minMonth:c,minDay:u}=t;let p="";s&&c&&u&&(p=s+"-"+c+"-"+u);let d="";d=n?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:i,min:p,max:"",name:l}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:i,name:l});const b=i?"required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+l)},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Date","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({name:e}),className:`uagb-forms-date-label ${b} uagb-forms-input-label`,multiline:!1,id:l}),d))}),GT=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(CT,e),React.createElement(AT,e))),MT={attributes:{block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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:""}},save:e=>{const{attributes:{block_id:t,dateRequired:a,name:l,additonalVal:i,minYear:o,minMonth:n,minDay:s,maxYear:c,maxMonth:u,maxDay:p,autocomplete:d}}=e;let b="",g="";o&&n&&s&&(b=o+"-"+n+"-"+s),c&&u&&p&&(g=c+"-"+u+"-"+p);let m="";m=i?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,min:b,max:g,name:t,autoComplete:d}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,name:t,autoComplete:d});const y=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-date-label ${y} uagb-forms-input-label`,id:t}),m)}},RT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},dateRequired:{type:"boolean",default:!1},name:{type:"string",default:Object(r.__)("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:""},autocomplete:{type:"string",default:"bday"}},save:e=>{const{attributes:{block_id:t,dateRequired:a,name:l,additonalVal:i,minYear:o,minMonth:n,minDay:s,maxYear:c,maxMonth:u,maxDay:p,autocomplete:d}}=e;let b="",g="";o&&n&&s&&(b=o+"-"+n+"-"+s),c&&u&&p&&(g=c+"-"+u+"-"+p);let m="";m=i?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,min:b,max:g,name:t,autoComplete:d,"aria-label":l}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:a,name:t,autoComplete:d,"aria-label":l});const y=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"";return React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+t)},React.createElement(ge.RichText.Content,{tagName:"div",value:l,className:`uagb-forms-date-label ${y} uagb-forms-input-label`,id:t}),m)}};let BT={};BT=Object(F.applyFilters)("uagb/forms-date",ss(BT)),Object(de.registerBlockType)("uagb/forms-date",{...BT,title:Object(r.__)("Datepicker","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a calendar based date picker in your form.","ultimate-addons-for-gutenberg"),icon:se.datepicker,parent:["uagb/forms"],attributes:yT,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-field",isChildren:!0}):React.createElement(GT,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,dateRequired:l,name:i,additonalVal:o,minYear:n,minMonth:r,minDay:s,maxYear:c,maxMonth:u,maxDay:p,autocomplete:d}=t;let b="",g="";n&&r&&s&&(b=n+"-"+r+"-"+s),c&&u&&p&&(g=c+"-"+u+"-"+p);let m="";m=o?React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:l,min:b,max:g,name:a,autoComplete:d,"aria-label":i}):React.createElement("input",{type:"date",className:"uagb-forms-date-input uagb-forms-input",required:l,name:a,autoComplete:d,"aria-label":i});const y=l?"required":"";return React.createElement("div",{className:Be()("uagb-forms-date-wrap","uagb-forms-field-set","uagb-block-"+a)},React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:`uagb-forms-date-label ${y} uagb-forms-input-label`,id:a}),m)},deprecated:[RT,MT]});var UT,ET=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{acceptRequired:l,acceptText:i,showLink:o,linkLabel:n,link:s,linkInNewTab:c}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Ss,{variant:"textarea",label:Object(r.__)("Acceptance Text","ultimate-addons-for-gutenberg"),help:Object(r.__)("Label to display as acceptance message.","ultimate-addons-for-gutenberg"),value:i,data:{value:i,label:"acceptText"},setAttributes:a,onChange:e=>a({acceptText:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Required","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({acceptRequired:!l})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Privacy Link","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({showLink:!o})}),o&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link Label","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"linkLabel"},setAttributes:a,onChange:e=>a({linkLabel:e})}),React.createElement(Ss,{className:"uagb-forms-editor-privacy-link",label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"link"},setAttributes:a,onChange:e=>a({link:e}),help:""===s?Object(r.__)("Enter a valid link.","ultimate-addons-for-gutenberg"):""}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new tab","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({linkInNewTab:!c})})))),React.createElement(il,rl))))}),OT=a(121),LT=0,HT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},FT={};FT.locals=OT.a.locals||{},FT.use=function(){return LT++||(UT=we()(OT.a,HT)),FT},FT.unuse=function(){LT>0&&!--LT&&(UT(),UT=null)};var jT=FT,zT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(jT.use(),()=>{jT.unuse()}),[]);const{attributes:t}=e,{block_id:a,acceptRequired:l,acceptText:i,showLink:o,linkLabel:n,link:r,linkInNewTab:s}=t,c=l?"required":"",u=s?"_blank":"_self";return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-"+a)},o&&React.createElement("div",{className:"uagb-forms-accept-privacy-link"},React.createElement("a",{href:r,target:u,rel:"noopener noreferrer"},n)),React.createElement("input",{type:"checkbox",id:"uagb-forms-accept-"+a,className:"uagb-forms-checkbox",name:a,required:l,value:"Agree"}),React.createElement("label",{name:a,htmlFor:"uagb-forms-accept-"+a,className:"uagb-forms-accept-label "+c},i),React.createElement("br",null)))}),DT=Object(L.compose)(ls)(e=>React.createElement(React.Fragment,null,e.isSelected&&React.createElement(ET,e),React.createElement(zT,e))),NT={attributes:{isPreview:{type:"boolean",default:!1},block_id:{type:"string"},acceptRequired:{type:"boolean",default:!1},acceptText:{type:"string",default:Object(r.__)("I have read and agree to the Privacy Policy.","ultimate-addons-for-gutenberg")},showLink:{type:"boolean",default:!1},linkLabel:{type:"string",default:Object(r.__)("Privacy Policy","ultimate-addons-for-gutenberg")},link:{type:"string",default:"#"},linkInNewTab:{type:"boolean",default:!0}},save:e=>{const{attributes:{block_id:t,acceptRequired:a,acceptText:l,showLink:i,linkLabel:o,link:n,linkInNewTab:s}}=e,c=a?Object(r.__)("required","ultimate-addons-for-gutenberg"):"",u=s?Object(r.__)("_blank","ultimate-addons-for-gutenberg"):Object(r.__)("_self","ultimate-addons-for-gutenberg");return React.createElement("div",{className:Be()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-"+t)},i&&React.createElement("div",{className:"uagb-forms-accept-privacy-link"},React.createElement("a",{href:n,target:u,rel:"noopener noreferrer"},o)),React.createElement("input",{type:"checkbox",name:t,required:a,value:"Agree",className:"uagb-forms-checkbox",id:"uagb-forms-accept-"+t}),React.createElement("label",{name:t,htmlFor:"uagb-forms-accept-"+t,className:"uagb-forms-accept-label "+c,id:t},l),React.createElement("br",null))}};let IT={};IT=Object(F.applyFilters)("uagb/forms-accept",ss(IT)),Object(de.registerBlockType)("uagb/forms-accept",{...IT,title:Object(r.__)("Accept","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a consent statement with a checkbox in your form.","ultimate-addons-for-gutenberg"),icon:se.accept,parent:["uagb/forms"],attributes:na,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"form-accept",isChildren:!0}):React.createElement(DT,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,acceptRequired:l,acceptText:i,showLink:o,linkLabel:n,link:r,linkInNewTab:s}=t,c=l?"required":"",u=s?"_blank":"_self";return React.createElement("div",{className:Be()("uagb-forms-accept-wrap","uagb-forms-field-set","uagb-block-"+a)},o&&React.createElement("div",{className:"uagb-forms-accept-privacy-link"},React.createElement("a",{href:r,target:u,rel:"noopener noreferrer"},n)),React.createElement("input",{type:"checkbox",name:a,required:l,value:"Agree",className:"uagb-forms-checkbox",id:"uagb-forms-accept-"+a}),React.createElement("label",{name:a,htmlFor:"uagb-forms-accept-"+a,className:"uagb-forms-accept-label "+c,id:a},i),React.createElement("br",null))},deprecated:[NT]}),a(229);function VT(){return(VT=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:{height:a,heightTablet:l,heightMobile:i,zoom:o,address:n,language:s,enableSatelliteView:c}}=e,u=c?21:22;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("This block uses Spectra's API key to display the map. You don't need to create your own API key or worry about renewing it.","ultimate-addons-for-gutenberg")),React.createElement(Ss,{label:Object(r.__)("Address","ultimate-addons-for-gutenberg"),enableDynamicContent:!0,dynamicContentType:"text",value:n,name:"address",data:{value:n,label:"address"},setAttributes:t,placeholder:Object(r.__)("Type the address","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Satellite View","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>t({enableSatelliteView:!c})}),React.createElement(Qa,{label:Object(r.__)("Zoom","ultimate-addons-for-gutenberg"),value:o,setAttributes:t,data:{value:o,label:"zoom"},min:1,max:u,displayUnit:!1}),React.createElement(tl,{label:Object(r.__)("Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:a,label:"height"},tablet:{value:l,label:"heightTablet"},mobile:{value:i,label:"heightMobile"}},min:0,max:1e3,displayUnit:!1,setAttributes:t,responsive:!0}),React.createElement(Pi,{label:Object(r.__)("Language","ultimate-addons-for-gutenberg"),data:{value:s,label:"language"},setAttributes:t,options:[{value:"af",label:Object(r.__)("Afrikaans","ultimate-addons-for-gutenberg")},{value:"sq",label:Object(r.__)("Albanian","ultimate-addons-for-gutenberg")},{value:"am",label:Object(r.__)("Amharic","ultimate-addons-for-gutenberg")},{value:"ar",label:Object(r.__)("Arabic","ultimate-addons-for-gutenberg")},{value:"hy",label:Object(r.__)("Armenian","ultimate-addons-for-gutenberg")},{value:"az",label:Object(r.__)("Azerbaijani","ultimate-addons-for-gutenberg")},{value:"eu",label:Object(r.__)("Basque","ultimate-addons-for-gutenberg")},{value:"be",label:Object(r.__)("Belarusian","ultimate-addons-for-gutenberg")},{value:"bn",label:Object(r.__)("Bengali","ultimate-addons-for-gutenberg")},{value:"bs",label:Object(r.__)("Bosnian","ultimate-addons-for-gutenberg")},{value:"bg",label:Object(r.__)("Bulgarian","ultimate-addons-for-gutenberg")},{value:"my",label:Object(r.__)("Burmese","ultimate-addons-for-gutenberg")},{value:"ca",label:Object(r.__)("Catalan","ultimate-addons-for-gutenberg")},{value:"zh",label:Object(r.__)("Chinese","ultimate-addons-for-gutenberg")},{value:"hr",label:Object(r.__)("Croatian","ultimate-addons-for-gutenberg")},{value:"cs",label:Object(r.__)("Czech","ultimate-addons-for-gutenberg")},{value:"da",label:Object(r.__)("Danish","ultimate-addons-for-gutenberg")},{value:"nl",label:Object(r.__)("Dutch","ultimate-addons-for-gutenberg")},{value:"en",label:Object(r.__)("English","ultimate-addons-for-gutenberg")},{value:"et",label:Object(r.__)("Estonian","ultimate-addons-for-gutenberg")},{value:"fa",label:Object(r.__)("Farsi","ultimate-addons-for-gutenberg")},{value:"fi",label:Object(r.__)("Finnish","ultimate-addons-for-gutenberg")},{value:"fr",label:Object(r.__)("French","ultimate-addons-for-gutenberg")},{value:"gl",label:Object(r.__)("Galician","ultimate-addons-for-gutenberg")},{value:"ka",label:Object(r.__)("Georgian","ultimate-addons-for-gutenberg")},{value:"de",label:Object(r.__)("German","ultimate-addons-for-gutenberg")},{value:"el",label:Object(r.__)("Greek","ultimate-addons-for-gutenberg")},{value:"gu",label:Object(r.__)("Gujarati","ultimate-addons-for-gutenberg")},{value:"iw",label:Object(r.__)("Hebrew","ultimate-addons-for-gutenberg")},{value:"hi",label:Object(r.__)("Hindi","ultimate-addons-for-gutenberg")},{value:"hu",label:Object(r.__)("Hungarian","ultimate-addons-for-gutenberg")},{value:"is",label:Object(r.__)("Icelandic","ultimate-addons-for-gutenberg")},{value:"id",label:Object(r.__)("Indonesian","ultimate-addons-for-gutenberg")},{value:"it",label:Object(r.__)("Italian","ultimate-addons-for-gutenberg")},{value:"ja",label:Object(r.__)("Japanese","ultimate-addons-for-gutenberg")},{value:"kn",label:Object(r.__)("Kannada","ultimate-addons-for-gutenberg")},{value:"kk",label:Object(r.__)("Kazakh","ultimate-addons-for-gutenberg")},{value:"km",label:Object(r.__)("Khmer","ultimate-addons-for-gutenberg")},{value:"ko",label:Object(r.__)("Korean","ultimate-addons-for-gutenberg")},{value:"ky",label:Object(r.__)("Kyrgyz","ultimate-addons-for-gutenberg")},{value:"lo",label:Object(r.__)("Lao","ultimate-addons-for-gutenberg")},{value:"lv",label:Object(r.__)("Latvian","ultimate-addons-for-gutenberg")},{value:"lt",label:Object(r.__)("Lithuanian","ultimate-addons-for-gutenberg")},{value:"mk",label:Object(r.__)("Macedonian","ultimate-addons-for-gutenberg")},{value:"ms",label:Object(r.__)("Malay","ultimate-addons-for-gutenberg")},{value:"ml",label:Object(r.__)("Malayalam","ultimate-addons-for-gutenberg")},{value:"mr",label:Object(r.__)("Marathi","ultimate-addons-for-gutenberg")},{value:"mn",label:Object(r.__)("Mongolian","ultimate-addons-for-gutenberg")},{value:"ne",label:Object(r.__)("Nepali","ultimate-addons-for-gutenberg")},{value:"no",label:Object(r.__)("Norwegian","ultimate-addons-for-gutenberg")},{value:"pl",label:Object(r.__)("Polish","ultimate-addons-for-gutenberg")},{value:"pt",label:Object(r.__)("Portuguese","ultimate-addons-for-gutenberg")},{value:"pa",label:Object(r.__)("Punjabi","ultimate-addons-for-gutenberg")},{value:"ro",label:Object(r.__)("Romanian","ultimate-addons-for-gutenberg")},{value:"ru",label:Object(r.__)("Russian","ultimate-addons-for-gutenberg")},{value:"sr",label:Object(r.__)("Serbian","ultimate-addons-for-gutenberg")},{value:"si",label:Object(r.__)("Sinhalese","ultimate-addons-for-gutenberg")},{value:"sk",label:Object(r.__)("Slovak","ultimate-addons-for-gutenberg")},{value:"sl",label:Object(r.__)("Slovenian","ultimate-addons-for-gutenberg")},{value:"es",label:Object(r.__)("Spanish","ultimate-addons-for-gutenberg")},{value:"sw",label:Object(r.__)("Swahili","ultimate-addons-for-gutenberg")},{value:"sv",label:Object(r.__)("Swedish","ultimate-addons-for-gutenberg")},{value:"ta",label:Object(r.__)("Tamil","ultimate-addons-for-gutenberg")},{value:"te",label:Object(r.__)("Telugu","ultimate-addons-for-gutenberg")},{value:"th",label:Object(r.__)("Thai","ultimate-addons-for-gutenberg")},{value:"tr",label:Object(r.__)("Turkish","ultimate-addons-for-gutenberg")},{value:"uk",label:Object(r.__)("Ukrainian","ultimate-addons-for-gutenberg")},{value:"ur",label:Object(r.__)("Urdu","ultimate-addons-for-gutenberg")},{value:"uz",label:Object(r.__)("Uzbek","ultimate-addons-for-gutenberg")},{value:"vi",label:Object(r.__)("Vietnamese","ultimate-addons-for-gutenberg")},{value:"zu",label:Object(r.__)("Zulu","ultimate-addons-for-gutenberg")}]}))),React.createElement(il,VT({},rl,{parentProps:e}))))}),ZT=a(122),$T=0,YT={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},KT={};KT.locals=ZT.a.locals||{},KT.use=function(){return $T++||(WT=we()(ZT.a,YT)),KT},KT.unuse=function(){$T>0&&!--$T&&(WT(),WT=null)};var JT=KT,XT=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(JT.use(),()=>{JT.unuse()}),[]);const{className:t,attributes:{zoom:a,address:l,language:i,height:o,block_id:n,enableSatelliteView:s},deviceType:c,name:u}=e,p=u.replace("uagb/",""),d=i||"en",b=s?"k":"m",g=`https://maps.google.com/maps?q=${encodeURI(l)}&z=${us(a,"zoom",p)}&hl=${d}&t=${b}&output=embed&iwloc=near`;return React.createElement("div",{className:Be()(t,"uagb-google-map__wrap","uagb-block-"+n,"uagb-editor-preview-mode-"+c.toLowerCase())},React.createElement("embed",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for ","ultimate-addons-for-gutenberg")+l,src:g,width:"640",height:o,loading:"lazy"}))}),QT=Object(L.compose)(ls,fe,(function(e){return t=>{var a,l,i,o,r,s,c,u,p,d,b,g;const{attributes:m,context:y}=t;if(null==m||null===(a=m.dynamicContent)||void 0===a||null===(l=a.address)||void 0===l||!l.enable)return React.createElement(e,t);const[f="",h]=((null==m||null===(i=m.dynamicContent)||void 0===i||null===(o=i.address)||void 0===o?void 0:o.source)||"").split("|"),[v="",_=""]=((null==m||null===(r=m.dynamicContent)||void 0===r||null===(s=r.address)||void 0===s?void 0:s.field)||"").split("|"),T=Object(n.select)("core/editor"),C=null!=T&&T.getCurrentPostType?T.getCurrentPostType():null,S="current_post"===v?C:f,k=`${null==m?void 0:m.address}`,w=Object(F.applyFilters)("uag_render_text_loop_data",k,y);return t={...t,attributes:{...m,address:w}},React.createElement(e,t)}}))(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,enableSatelliteView:n,zoom:r},name:s,deviceType:c,setAttributes:u}=e,p=Object(B.useMemo)(()=>function(e,t,a){const l=t.replace("uagb/",""),i=a.toLowerCase(),{block_id:o,height:n,heightTablet:r,heightMobile:s}=e,c=us(n,"height",l),u=us(r,"heightTablet",l),p=us(s,"heightMobile",l);let d={},b={};const g={" .uagb-google-map__iframe":{height:Vr(c,"px")}};d={" .uagb-google-map__iframe":{height:Vr(u,"px")}},b={" .uagb-google-map__iframe":{height:Vr(p,"px")}};const m=".editor-styles-wrapper .uagb-block-"+o;let y=ae(g,m);return"tablet"!==i&&"mobile"!==i||(y+=ae(d,""+m,!0,"tablet"),"mobile"===i&&(y+=ae(b,""+m,!0,"mobile"))),y}(a,s,c),[a,c]);return Object(B.useEffect)(()=>{ys()},[c]),Object(B.useEffect)(()=>{he(e)},[l,i,o,c]),Object(B.useEffect)(()=>{n&&22===r&&u({zoom:21})},[n]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:p}),t&&React.createElement(qT,e),React.createElement(XT,e))});const eC={block_id:{type:"string"},address:{type:"string",default:"Brainstorm Force"},height:{type:"number",default:300},zoom:{type:"number",default:12},language:{type:"string",default:"en"}};var tC=[{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i}=e.attributes,o=encodeURI(i),n=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${l}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for "+i),src:n,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i}=e.attributes,o=encodeURI(i),n=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${l}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap"),id:"uagb-google-map-"+t},React.createElement("iframe",{className:"uagb-google-map__iframe",src:n,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i}=e.attributes,o=encodeURI(i),n=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${l}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",src:n,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,height:a,zoom:l,address:i,language:o}=e.attributes;let n=encodeURI(i);var s=o||"en";let c=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${n}&zoom=${l}&language=${s}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for "+i),src:c,style:{height:a}}))}},{attributes:eC,save(e){const{block_id:t,zoom:a,address:l,language:i}=e.attributes,o=encodeURI(l),n=i||"en",s=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${o}&zoom=${us(a,"zoom","google-map")}&language=${n}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for ","ultimate-addons-for-gutenberg")+l,src:s}))}},{attributes:{block_id:{type:"string"},address:{type:"string",default:"Brainstorm Force"},height:{type:"number",default:300,UAGCopyPaste:{styleType:"map-height"}},heightTablet:{type:"number",default:300,UAGCopyPaste:{styleType:"map-height"}},heightMobile:{type:"number",default:300,UAGCopyPaste:{styleType:"map-height"}},zoom:{type:"number",default:12},language:{type:"string",default:"en"},isPreview:{type:"boolean",default:!1}},save:function(e){const{block_id:t,zoom:a,address:l,language:i,height:o}=e.attributes,n=encodeURI(l),s=i||"en",c=`https://www.google.com/maps/embed/v1/place?key=${wp.uagb_google_api_key}&q=${n}&zoom=${us(a,"zoom","google-map")}&language=${s}`;return React.createElement("div",{className:Be()(e.className,"uagb-google-map__wrap","uagb-block-"+t)},React.createElement("iframe",{className:"uagb-google-map__iframe",title:Object(r.__)("Google Map for ","ultimate-addons-for-gutenberg")+l,src:c,width:"640",height:o,loading:"lazy"}))}}];wp.uagb_google_api_key="AIzaSyAsd_d46higiozY-zNqtr7zdA81Soswje4";let aC={};aC=Object(F.applyFilters)("uagb/google-map",ss(aC)),Object(de.registerBlockType)("uagb/google-map",{...aC,title:Object(r.__)("Google Maps","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show a Google Map location on your website.","ultimate-addons-for-gutenberg"),icon:se.google_map,keywords:[Object(r.__)("google","ultimate-addons-for-gutenberg"),Object(r.__)("maps","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:_t,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"google-maps"}):React.createElement(QT,e),save:()=>null,deprecated:tC});var lC=function(e){const{headingTitle:t,headingDesc:a,mainimage:l,showTotaltime:i,showTools:o,showMaterials:s,timeNeeded:c,showEstcost:u,estCost:p,cost:d,currencyType:b,tools:g,materials:m,clientId:y,minsValue:f,timeInHours:h,timeInDays:v,timeInMonths:_,timeInYears:T}=e,C=[],S=Object(n.select)("core/block-editor").getBlocks(y);let k=!1;S.forEach(e=>{var t,a,l;"uagb/how-to-step"===e.name||""!==e.attributes.ctaLink&&"#"!==e.attributes.ctaLink&&""!==e.attributes.infoBoxTitle&&""!==e.attributes.headingDesc&&""!==(null===(t=e.attributes.iconImage)||void 0===t?void 0:t.url)||(k=!0),"uagb/how-to-step"!==e.name||""!==e.attributes.url&&"#"!==e.attributes.url&&""!==e.attributes.name&&""!==e.attributes.description&&""!==(null===(a=e.attributes)||void 0===a||null===(l=a.image)||void 0===l?void 0:l.url)||(k=!0)}),void 0!==t&&""!==t||C.push("How-To Title"),void 0!==a&&""!==a||C.push("Description"),l&&"null"!==l&&"null"!==l.url&&""!==l.url||C.push("Main Image"),!0!==i||void 0!==c&&""!==c||C.push("Time Needed Label"),!0!==i||void 0!==f&&""!==f||void 0!==h&&""!==h||void 0!==v&&""!==v||void 0!==_&&""!==_||void 0!==T&&""!==T||C.push("Time"),!0!==u||void 0!==p&&""!==p||C.push("Total Cost Label"),!0!==u||void 0!==d&&""!==d||C.push("Cost"),!0!==u||void 0!==b&&""!==b||C.push("Currency Unit"),!0!==o||void 0!==g&&0!==g.length&&""!==g[0].add_required_tools||C.push("Tools"),!0!==s||void 0!==m&&0!==m.length&&""!==m[0].add_required_materials||C.push("Materials"),(void 0===S||2>S.length)&&C.push("Atleast 2 Steps are required"),!0===k&&C.push("The Heading, Description, Image & Link may required for each Step. ");const w=C.map(e=>React.createElement("li",{key:e}," ",e," "));return React.createElement(React.Fragment,null,0!==C.length?React.createElement("div",{className:"how-to-schema-notices"},React.createElement("h6",null," ",Object(r.__)("It seems 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")," "),React.createElement("ul",{className:"how-to-schema-notices-list"},w),React.createElement("p",null,Object(r.__)("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")," ",React.createElement("a",{href:"https://developers.google.com/search/docs/data-types/how-to",target:"_blank",rel:"noreferrer"},Object(r.__)("Read more.","ultimate-addons-for-gutenberg")))):"")};function iC(){return(iC=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,attributes:{overallAlignment:l,showEstcost:i,showTotaltime:o,showMaterials:n,showTools:s,showTotaltimecolor:c,tools_count:u,material_count:p,tools:d,materials:b,mainimage:g,imgSize:m,headingColor:y,subHeadingColor:f,headingTag:h,headFontFamily:v,headFontWeight:_,headFontSizeType:T,headFontSize:C,headFontSizeMobile:S,headFontSizeTablet:k,headLineHeightType:w,headLineHeight:P,headLineHeightMobile:x,headLineHeightTablet:A,subHeadFontFamily:G,subHeadFontWeight:M,subHeadFontSize:R,subHeadFontSizeType:B,subHeadFontSizeMobile:U,subHeadFontSizeTablet:E,subHeadLineHeight:O,subHeadLineHeightType:L,subHeadLineHeightMobile:H,subHeadLineHeightTablet:F,headLoadGoogleFonts:z,subHeadLoadGoogleFonts:D,priceFontSizeType:N,priceFontSize:I,priceFontSizeTablet:V,priceFontSizeMobile:W,priceFontFamily:q,priceFontWeight:Z,priceLineHeightType:$,priceLineHeight:Y,priceLineHeightTablet:K,priceLineHeightMobile:J,priceLoadGoogleFonts:X,timeSpace:Q,costSpace:ee,row_gap:te,rowGapTablet:ae,rowGapMobile:le,step_gap:ie,timeInHours:oe,timeInDays:ne,timeInMonths:re,timeInYears:se,timeInMins:ce,time:ue,priceFontStyle:pe,priceTransform:de,priceDecoration:be,headFontStyle:me,headTransform:ye,headDecoration:fe,subHeadFontStyle:he,subHeadTransform:ve,subHeadDecoration:_e,headLetterSpacing:Te,headLetterSpacingTablet:Se,headLetterSpacingMobile:ke,headLetterSpacingType:we,priceLetterSpacing:Pe,priceLetterSpacingTablet:xe,priceLetterSpacingMobile:Ae,priceLetterSpacingType:Ge,subHeadLetterSpacing:Me,subHeadLetterSpacingTablet:Re,subHeadLetterSpacingMobile:Be,subHeadLetterSpacingType:Ue}}=e;g&&g.sizes&&(oC=j(g.sizes));const Oe=ce||ue;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Tag","ultimate-addons-for-gutenberg"),data:{value:h,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:l,label:"overallAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({mainimage:e}):a({mainimage:null})},backgroundImage:g,onRemoveImage:()=>{a({mainimage:""})},disableLabel:!0}),g&&"null"!==g.url&&""!==g.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:m,label:"imgSize"},setAttributes:a,options:oC})),React.createElement(je,{title:Object(r.__)("Time","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Total Time","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({showTotaltime:!o}),help:Object(r.__)("Note: Time is recommended field for schema. It should be ON","ultimate-addons-for-gutenberg")}),o&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Years","ultimate-addons-for-gutenberg"),setAttributes:a,value:se,data:{value:se,label:"timeInYears"},min:1,max:10,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Months","ultimate-addons-for-gutenberg"),setAttributes:a,value:re,data:{value:re,label:"timeInMonths"},min:1,max:12,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Days","ultimate-addons-for-gutenberg"),setAttributes:a,value:ne,data:{value:ne,label:"timeInDays"},min:1,max:31,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Hours","ultimate-addons-for-gutenberg"),setAttributes:a,value:oe,data:{value:oe,label:"timeInHours"},min:1,max:24,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Minutes","ultimate-addons-for-gutenberg"),setAttributes:a,value:Oe,data:{value:ce,label:"timeInMins"},min:1,max:60,displayUnit:!1}))),React.createElement(je,{title:Object(r.__)("Cost","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Estimated Cost","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({showEstcost:!i}),help:Object(r.__)("Note: Cost is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),React.createElement(Le.ExternalLink,{href:"https://en.wikipedia.org/wiki/List_of_circulating_currencies"},Object(r.__)("Click here to find your countrys ISO code.","ultimate-addons-for-gutenberg"))),React.createElement(je,{title:Object(r.__)("Tools","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Tools","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({showTools:!s}),help:Object(r.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),s&&React.createElement(Qa,{label:Object(r.__)("Number of Tools","ultimate-addons-for-gutenberg"),setAttributes:a,value:u,data:{value:u,label:"tools_count"},onChange:e=>{const t=[...d],l=us(e,"tools_count","how-to");if(t.lengtha({showMaterials:!n}),help:Object(r.__)("Note: This is recommended field for schema.It should be ON","ultimate-addons-for-gutenberg")}),n&&React.createElement(Qa,{label:Object(r.__)("Number of Materials","ultimate-addons-for-gutenberg"),setAttributes:a,value:p,data:{value:p,label:"material_count"},onChange:e=>{const t=[...b],l=us(e,"material_count","how-to");if(t.length0&&!--cC&&(nC(),nC=null)};var dC=pC,bC=["uagb/how-to-step"];"yes"===uagb_blocks_info.uagb_old_user_less_than_2&&(bC=["uagb/info-box","uagb/how-to-step"]);var gC=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(dC.use(),()=>{dC.unuse()}),[]);const{className:t,attributes:a,setAttributes:l,insertBlocksAfter:i,mergeBlocks:o,onReplace:n,attributes:{currencyType:s,showEstcost:c,showTotaltime:u,showMaterials:p,showTools:d,toolsTitle:b,materialTitle:g,stepsTitle:m,tools:y,materials:f,timeNeeded:h,estCost:v,mainimage:_,headingTitle:T,headingDesc:C,headingTag:S,time:k,cost:w,timeInMins:P,timeInHours:x,timeInDays:A,timeInMonths:G,timeInYears:M,imgTagHeight:R,imgTagWidth:U,block_id:E},deviceType:O,name:L}=e,H=L.replace("uagb/",""),F=function(e,t){for(var o=arguments.length,r=new Array(o>2?o-2:0),s=2;s{Zg(D,l)},[D]),_&&_.url&&(I=React.createElement("img",{className:"uagb-howto__source-image",src:D,title:z,width:U,height:R,loading:"lazy",alt:N}));const V=us(P,"timeInMins",H)?us(P,"timeInMins",H):k,W=[["uagb/how-to-step",{name:"Step 1",description:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")}],["uagb/how-to-step",{name:"Step 2",description:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")}],["uagb/how-to-step",{name:"Step 3",description:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.","ultimate-addons-for-gutenberg")}]],q=us(M,"timeInYears",H)>1?Object(r.__)("Years","ultimate-addons-for-gutenberg"):Object(r.__)("Year","ultimate-addons-for-gutenberg"),Z=us(G,"timeInMonths",H)>1?Object(r.__)(" Months ","ultimate-addons-for-gutenberg"):Object(r.__)(" Month ","ultimate-addons-for-gutenberg"),$=us(A,"timeInDays",H)>1?Object(r.__)(" Days ","ultimate-addons-for-gutenberg"):Object(r.__)(" Day ","ultimate-addons-for-gutenberg"),Y=us(x,"timeInHours",H)>1?Object(r.__)("Hours ","ultimate-addons-for-gutenberg"):Object(r.__)(" Hour ","ultimate-addons-for-gutenberg"),K=V>1?Object(r.__)(" Minutes ","ultimate-addons-for-gutenberg"):Object(r.__)(" Minute ","ultimate-addons-for-gutenberg");return React.createElement("div",{className:Be()(t,"uagb-editor-preview-mode-"+O.toLowerCase(),"uagb-block-"+E,"uagb-how-to-main-wrap")},React.createElement(ge.RichText,{tagName:S,placeholder:Object(r.__)("How to configure HowTo Schema in UAG?","ultimate-addons-for-gutenberg"),value:T,className:"uagb-howto-heading-text",multiline:!1,onChange:e=>{l({headingTitle:e})},onMerge:o,onSplit:i?function(e,t){l({content:e});for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;nn([])}),React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("So to get started, you will just need to drag-n-drop the How-to block in the Gutenberg editor. The How-to 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:C,className:"uagb-howto-desc-text",onChange:e=>l({headingDesc:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),I,React.createElement("span",{className:"uagb-howto__time-wrap"},u&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("Total Time Needed ( Minutes ):","ultimate-addons-for-gutenberg"),value:h,className:"uagb-howto-timeNeeded-text",onChange:e=>l({timeNeeded:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),u&&React.createElement(React.Fragment,null,us(M,"timeInYears",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",us(M,"timeInYears",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",q)),us(G,"timeInMonths",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(G,"timeInMonths",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"},Z)),us(A,"timeInDays",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(A,"timeInDays",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"},$)),us(x,"timeInHours",H)&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(x,"timeInHours",H)),React.createElement("p",{className:"uagb-howto-timeINmin-text"},Y)),V&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},V),React.createElement("p",{className:"uagb-howto-timeINmin-text"},K)))),React.createElement("span",{className:"uagb-howto__cost-wrap"},c&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("Total Cost:","ultimate-addons-for-gutenberg"),value:v,className:"uagb-howto-estcost-text",onChange:e=>l({estCost:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),c&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("30","ultimate-addons-for-gutenberg"),value:w,className:"uagb-howto-estcost-value",onChange:e=>l({cost:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),c&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("USD","ultimate-addons-for-gutenberg"),value:s,className:"uagb-howto-estcost-type",onChange:e=>l({currencyType:e}),onMerge:o,onSplit:F,onRemove:()=>n([])})),d&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("requirements tools:","ultimate-addons-for-gutenberg"),value:b,className:"uagb-howto-req-tools-text",onChange:e=>l({toolsTitle:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),d&&React.createElement(React.Fragment,null,y.map((e,t)=>React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Requirements Tools:","ultimate-addons-for-gutenberg"),value:e.add_required_tools,onChange:e=>{((e,t)=>{const a=y.map((a,l)=>(t===l&&(a={...a,...e}),a));l({tools:a})})({add_required_tools:e},t)},className:"uagb-tools__label "+t,multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"],key:t}))),p&&React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("requirements materials:","ultimate-addons-for-gutenberg"),value:g,className:"uagb-howto-req-materials-text",onChange:e=>l({materialTitle:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),p&&React.createElement(React.Fragment,null,f.map((e,t)=>React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Requirements Materials:","ultimate-addons-for-gutenberg"),value:e.add_required_materials,onChange:e=>{((e,t)=>{const a=f.map((a,l)=>(t===l&&(a={...a,...e}),a));l({materials:a})})({add_required_materials:e},t)},className:"uagb-materials__label "+t,multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"],key:t}))),React.createElement(ge.RichText,{tagName:"h4",placeholder:Object(r.__)("requirements Steps:","ultimate-addons-for-gutenberg"),value:m,className:"uagb-howto-req-steps-text",onChange:e=>l({stepsTitle:e}),onMerge:o,onSplit:F,onRemove:()=>n([])}),React.createElement(ge.InnerBlocks,{template:W,allowedBlocks:bC}))}),mC=Object(B.memo)(e=>{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,priceLoadGoogleFonts:s,priceFontFamily:c,priceFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),yC=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,setAttributes:l,attributes:{currencyType:i,showEstcost:o,showTotaltime:r,tools:s,materials:c,timeNeeded:u,estCost:p,mainimage:d,headingTitle:b,headingDesc:g,cost:m,timeInMins:y,timeInHours:f,timeInDays:h,timeInMonths:v,timeInYears:_,UAGHideDesktop:T,UAGHideTab:C,UAGHideMob:S,schema:k},clientId:w,name:P,deviceType:x}=e,[A,G]=Object(B.useState)(""),{schemaJsonData:M}=Object(n.useSelect)(e=>{let t="";"undefined"!==a.mainimage&&null!==a.mainimage&&""!==a.mainimage&&(t=a.mainimage.url);let l={},i={},o={};const n={"@context":"https://schema.org","@type":"HowTo",name:a.headingTitle,description:a.headingDesc,image:{"@type":"ImageObject",url:t,height:"406",width:"305"},totalTime:"",estimatedCost:[],tool:[],supply:[],step:[]},r=a.timeInYears?a.timeInYears:0,s=a.timeInMonths?a.timeInMonths:0,c=a.timeInDays?a.timeInDays:0,u=a.timeInHours?a.timeInHours:0;a.time=r||s||c||0!==u?"":"30";const p=a.timeInMins?a.timeInMins:a.time;return a.showTotaltime&&(n.totalTime="P"+r+"Y"+s+"M"+c+"DT"+u+"H"+p+"M"),a.showEstcost&&(n.estimatedCost={"@type":"MonetaryAmount",currency:a.currencyType,value:a.cost}),a.showTools&&a.tools.forEach((e,t)=>{l={"@type":"HowToTool",name:e.add_required_tools},n.tool[t]=l}),a.showMaterials&&a.materials.forEach((e,t)=>{i={"@type":"HowToSupply",name:e.add_required_materials},n.supply[t]=i}),e("core/block-editor").getBlocks(w).forEach((e,t)=>{var a,l,i,r,s,c,u,p,d,b;o={"@type":"HowToStep",url:(null===(a=e.attributes)||void 0===a?void 0:a.ctaLink)||(null===(l=e.attributes)||void 0===l?void 0:l.url),name:(null===(i=e.attributes)||void 0===i?void 0:i.infoBoxTitle)||(null===(r=e.attributes)||void 0===r?void 0:r.name),text:(null===(s=e.attributes)||void 0===s?void 0:s.headingDesc)||(null===(c=e.attributes)||void 0===c?void 0:c.description),image:(null===(u=e.attributes)||void 0===u||null===(p=u.iconImage)||void 0===p?void 0:p.url)||(null===(d=e.attributes)||void 0===d||null===(b=d.image)||void 0===b?void 0:b.url)},n.step[t]=o}),{schemaJsonData:n}});Object(B.useEffect)(()=>{k||(l({schema:JSON.stringify(M)}),G(M))},[]),Object(B.useEffect)(()=>{JSON.stringify(M)!==JSON.stringify(A)&&(l(e=>({...e,schema:JSON.stringify(M)})),G(M))},[a,x]);const R=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{overallAlignment:n,headingTag:r,showTotaltimecolor:s,headingColor:c,headSpace:u,subHeadingColor:p,headFontFamily:d,headFontWeight:b,headFontSize:g,headFontSizeType:m,headFontSizeMobile:y,headFontSizeTablet:f,headLineHeight:h,headLineHeightType:v,headLineHeightMobile:_,headLineHeightTablet:T,subHeadFontFamily:C,subHeadFontWeight:S,subHeadFontSize:k,subHeadFontSizeType:w,subHeadFontSizeMobile:P,subHeadFontSizeTablet:x,subHeadLineHeight:A,subHeadLineHeightType:G,subHeadLineHeightMobile:M,subHeadLineHeightTablet:R,priceFontSizeType:B,priceFontSize:U,priceFontSizeTablet:E,priceFontSizeMobile:O,priceFontFamily:L,priceFontWeight:H,priceLineHeightType:F,priceLineHeight:j,priceLineHeightTablet:z,priceLineHeightMobile:D,timeSpace:N,costSpace:I,row_gap:V,rowGapTablet:W,rowGapMobile:q,step_gap:Z,priceFontStyle:$,priceTransform:Y,priceDecoration:K,headFontStyle:J,headTransform:X,headDecoration:Q,subHeadFontStyle:ee,subHeadTransform:te,subHeadDecoration:le,headLetterSpacing:ie,headLetterSpacingTablet:oe,headLetterSpacingMobile:ne,headLetterSpacingType:re,priceLetterSpacing:se,priceLetterSpacingTablet:ce,priceLetterSpacingMobile:ue,priceLetterSpacingType:pe,subHeadLetterSpacing:de,subHeadLetterSpacingTablet:be,subHeadLetterSpacingMobile:ge,subHeadLetterSpacingType:me,block_id:ye}=e;let fe={},he={},ve=""!==us(Z,"step_gap",i)?us(Z,"step_gap",i):0;ve+=30;const _e={" .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p,"letter-spacing":Vr(de,me)},".uagb-how-to-main-wrap p":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-tools__wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-image":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px"),"justify-content":n},".uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":Vr(us(V,"row_gap",i),"px"),"justify-content":n}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":Vr(us(V,"row_gap",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":Vr(us(V,"row_gap",i),"px")}," h4.uagb-howto-req-steps-text":{"margin-top":Vr(us(V,"row_gap",i),"px"),"margin-bottom":Vr(us(V,"row_gap",i),"px")}," h4.uagb-howto-req-materials-text":{"margin-top":Vr(us(V,"row_gap",i),"px")}," .uagb-infobox__content-wrap":{"margin-bottom":Vr(ve,"px")}," .uagb-how-to-step-wrap":{"margin-bottom":Vr(ve,"px")}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s,"letter-spacing":Vr(se,pe)}," .uagb-howto-timeNeeded-value":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p,"margin-left":Vr(us(N,"timeSpace",i),"px")}," .uagb-howto-timeINmin-text ":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p,"margin-left":Vr(us(I,"costSpace",i),"px")}," h4.block-editor-rich-text__editable":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F)}," p.block-editor-rich-text__editable":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-tools__label":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-howto-req-steps-text":{"font-family":L,"font-style":$,"text-decoration":K,"text-transform":Y,"font-weight":H,"font-size":Vr(U,B),"line-height":Vr(j,F),color:s}," .block-editor-rich-text__editable.uagb-materials__label":{"font-family":C,"font-style":ee,"text-decoration":le,"text-transform":te,"font-weight":S,"font-size":Vr(k,w),"line-height":Vr(A,G),color:p}};_e[".uagb-how-to-main-wrap"]={"text-align":n,display:"block"},_e[` ${r}.block-editor-rich-text__editable.uagb-howto-heading-text`]={"font-family":d,"font-style":J,"text-decoration":Q,"text-transform":X,"font-weight":b,"font-size":Vr(g,m),"line-height":Vr(h,v),color:c,"margin-bottom":Vr(u,"px"),"letter-spacing":Vr(ie,re)},he={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":Vr(y,m),"line-height":Vr(_,v),"letter-spacing":Vr(ne,re)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":Vr(P,w),"line-height":Vr(M,G),"letter-spacing":Vr(ge,me)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":Vr(O,B),"line-height":Vr(D,F),"letter-spacing":Vr(ue,pe)}," .uagb-howto-timeNeeded-value":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .uagb-howto-timeINmin-text ":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":Vr(P,w),"line-height":Vr(M,G)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":Vr(O,B),"line-height":Vr(D,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":Vr(O,B),"line-height":Vr(D,F)},".uagb-how-to-main-wrap p":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-tools__wrap":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-image":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")}," h4.uagb-howto-req-steps-text":{"margin-top":Vr(us(q,"rowGapMobile",i),"px"),"margin-bottom":Vr(us(q,"rowGapMobile",i),"px")}," h4.uagb-howto-req-materials-text":{"margin-top":Vr(us(q,"rowGapMobile",i),"px")}},he[` ${r}.block-editor-rich-text__editable.uagb-howto-heading-text`]={"font-size":Vr(y,m),"line-height":Vr(_,v),"letter-spacing":Vr(ne,re)},fe={" .block-editor-rich-text__editable.uagb-howto-heading-text":{"font-size":Vr(f,m),"line-height":Vr(T,v),"letter-spacing":Vr(oe,re)}," .block-editor-rich-text__editable.uagb-howto-desc-text":{"font-size":Vr(x,w),"line-height":Vr(R,G),"letter-spacing":Vr(be,me)}," .block-editor-rich-text__editable.uagb-howto-timeNeeded-text":{"font-size":Vr(E,B),"line-height":Vr(z,F),"letter-spacing":Vr(ce,pe)}," .uagb-howto-timeNeeded-value":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .uagb-howto-timeINmin-text ":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-text":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-howto-estcost-value":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .block-editor-rich-text__editable.uagb-howto-estcost-type":{"font-size":Vr(x,w),"line-height":Vr(R,G)}," .block-editor-rich-text__editable.uagb-tools__label":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-howto-req-tools-text":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-materials__label":{"font-size":Vr(E,B),"line-height":Vr(z,F)}," .block-editor-rich-text__editable.uagb-howto-req-materials-text":{"font-size":Vr(E,B),"line-height":Vr(z,F)},".uagb-how-to-main-wrap p":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-tools__wrap":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap .uagb-howto__source-image":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__time-wrap":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap span.uagb-howto__cost-wrap":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")}," .uagb-how-to-tools .uagb-how-to-tools-child__wrapper:last-child":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")},".uagb-how-to-main-wrap .uagb-how-to-materials-child__wrapper:last-child":{"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")}," h4.uagb-howto-req-steps-text":{"margin-top":Vr(us(W,"rowGapTablet",i),"px"),"margin-bottom":Vr(us(W,"rowGapTablet",i),"px")}," h4.uagb-howto-req-materials-text":{"margin-top":Vr(us(W,"rowGapTablet",i),"px")}},fe[` ${r}.block-editor-rich-text__editable.uagb-howto-heading-text`]={"font-size":Vr(f,m),"line-height":Vr(T,v),"letter-spacing":Vr(oe,re)};const Te=".editor-styles-wrapper .uagb-block-"+ye;let Ce=ae(_e,Te);return"tablet"!==o&&"mobile"!==o||(Ce+=ae(fe,""+Te,!0,"tablet"),"mobile"===o&&(Ce+=ae(he,""+Te,!0,"mobile"))),Ce}(a,0,P,x),[a,x]);return Object(B.useEffect)(()=>{ys()},[x]),Object(B.useEffect)(()=>{he(e)},[T,C,S,x]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:R}),React.createElement(mC,{attributes:a}),React.createElement(lC,{headingTitle:b,headingDesc:g,mainimage:d,showTotaltime:r,timeNeeded:u,minsValue:y,timeInHours:f,timeInDays:h,timeInMonths:v,timeInYears:_,showEstcost:o,estCost:p,cost:m,currencyType:i,tools:s,materials:c,clientId:w}),t&&React.createElement(rC,e),React.createElement(gC,e))}),fC=[{attributes:qt,save(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,timeIn:c,estCost:u,cost:p,currencyType:d,mainimage:b,toolsTitle:g,stepsTitle:m,materialTitle:y,tools:f,materials:h,schema:v,showTotaltime:_,showEstcost:T,showTools:C,showMaterials:S}=t;let k="",w="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(k=t.mainimage.url,w=t.mainimage.title);let P="";if(""!==k){const e=t.mainimage.sizes,a=t.imgSize;P=void 0!==e&&void 0!==e[a]?e[a].url:k}let x="";return b&&b.url&&(x=React.createElement("img",{className:"uagb-howto__source-image",src:P,title:w})),React.createElement("div",{className:Be()(a,"uagb-block-"+l)},React.createElement("script",{type:"application/ld+json"},v),React.createElement("div",{className:"uagb-how-to-main-wrap"},React.createElement("div",{className:"uagb-howto__wrap"},React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),b.url&&React.createElement("div",{className:"uagb-howto__source-wrap"},x),_&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(ge.RichText.Content,{value:s,tagName:"p",className:"uagb-howto-timeNeeded-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:c,className:"uagb-howto-timeINmin-text"})),T&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:u,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:p,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:d,className:"uagb-howto-estcost-type"}))),C&&React.createElement("div",{className:"uagb-how-to-tools__wrap"},React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-tools-text"})),C&&React.createElement("div",{className:"uagb-tools__wrap"},f.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-tools-"+t,"uagb-how-to-tools-child__wrapper"),key:t},React.createElement("div",{className:"uagb-tools"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"}))))),S&&React.createElement("div",{className:"uagb-how-to-materials__wrap"},React.createElement(ge.RichText.Content,{value:y,tagName:"h4",className:"uagb-howto-req-materials-text"})),S&&React.createElement("div",{className:"uagb-how-to-materials"},h.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-materials-"+t,"uagb-how-to-materials-child__wrapper")},React.createElement("div",{className:"uagb-materials"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"}))))),React.createElement("div",{className:"uagb-how-to-steps__wrap"},React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement("div",{className:"uagb-howto-steps__wrap"},React.createElement(ge.InnerBlocks.Content,null)))))}},{attributes:qt,save(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,timeIn:c,estCost:u,cost:p,currencyType:d,mainimage:b,toolsTitle:g,stepsTitle:m,materialTitle:y,tools:f,materials:h,schema:v,showTotaltime:_,showEstcost:T,showTools:C,showMaterials:S,timeInMins:k,timeInHours:w,timeInDays:P,timeInMonths:x,timeInYears:A}=t;let G="",M="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(G=t.mainimage.url,M=t.mainimage.title);let R="";if(""!==G){const e=t.mainimage.sizes,a=t.imgSize;R=void 0!==e&&void 0!==e[a]?e[a].url:G}let B="";b&&b.url&&(B=React.createElement("img",{className:"uagb-howto__source-image",src:R,title:M}));const U=A>1?" Years ":" Year ",E=x>1?" Months ":" Month ",O=P>1?" Days ":" Day ",L=w>1?"Hours ":" Hour ",H=k||s,F=H>1?" Minutes ":" Minute ";return React.createElement("div",{className:Be()(a,"uagb-block-"+l)},React.createElement("script",{type:"application/ld+json"},v),React.createElement("div",{className:"uagb-how-to-main-wrap"},React.createElement("div",{className:"uagb-howto__wrap"},React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),b.url&&React.createElement("div",{className:"uagb-howto__source-wrap"},B),_&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(React.Fragment,null,A&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",A),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",U)),x&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},x),React.createElement("p",{className:"uagb-howto-timeINmin-text"},E)),P&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},P),React.createElement("p",{className:"uagb-howto-timeINmin-text"},O)),w&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},w),React.createElement("p",{className:"uagb-howto-timeINmin-text"},L)),H&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},H),React.createElement("p",{className:"uagb-howto-timeINmin-text"},F)))),T&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:u,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:p,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:d,className:"uagb-howto-estcost-type"}))),C&&React.createElement("div",{className:"uagb-how-to-tools__wrap"},React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-tools-text"})),C&&React.createElement("div",{className:"uagb-tools__wrap"},f.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-tools-"+t,"uagb-how-to-tools-child__wrapper"),key:t},React.createElement("div",{className:"uagb-tools"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label"}))))),S&&React.createElement("div",{className:"uagb-how-to-materials__wrap"},React.createElement(ge.RichText.Content,{value:y,tagName:"h4",className:"uagb-howto-req-materials-text"})),S&&React.createElement("div",{className:"uagb-how-to-materials"},h.map((e,t)=>React.createElement("div",{className:Be()("uagb-how-to-materials-"+t,"uagb-how-to-materials-child__wrapper")},React.createElement("div",{className:"uagb-materials"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label"}))))),React.createElement("div",{className:"uagb-how-to-steps__wrap"},React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement("div",{className:"uagb-howto-steps__wrap"},React.createElement(ge.InnerBlocks.Content,null)))))}},{attributes:qt,save(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,estCost:c,cost:u,currencyType:p,mainimage:d,toolsTitle:b,stepsTitle:g,materialTitle:m,tools:y,materials:f,schema:h,showTotaltime:v,showEstcost:_,showTools:T,showMaterials:C,timeInMins:S,timeInHours:k,timeInDays:w,timeInMonths:P,timeInYears:x}=t;let A="",G="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(A=t.mainimage.url,G=t.mainimage.title);let M="";if(""!==A){const e=t.mainimage.sizes,a=t.imgSize;M=void 0!==e&&void 0!==e[a]?e[a].url:A}let R="";d&&d.url&&(R=React.createElement("img",{className:"uagb-howto__source-image",src:M,title:G,alt:""}));const B=us(x,"timeInYears","how-to")>1?" Years ":" Year ",U=us(P,"timeInMonths","how-to")>1?" Months ":" Month ",E=us(w,"timeInDays","how-to")>1?" Days ":" Day ",O=us(k,"timeInHours","how-to")>1?"Hours ":" Hour ",L=us(S,"timeInMins","how-to")?us(S,"timeInMins","how-to"):s,H=L>1?" Minutes ":" Minute ";return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-how-to-main-wrap")},React.createElement("script",{type:"application/ld+json"},h),React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),R,v&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(React.Fragment,null,us(x,"timeInYears","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",us(x,"timeInYears","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",B)),us(P,"timeInMonths","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(P,"timeInMonths","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},U)),us(w,"timeInDays","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(w,"timeInDays","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},E)),us(k,"timeInHours","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(k,"timeInHours","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},O)),L&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},L),React.createElement("p",{className:"uagb-howto-timeINmin-text"},H)))),_&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:u,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:p,className:"uagb-howto-estcost-type"})),T&&React.createElement(ge.RichText.Content,{value:b,tagName:"h4",className:"uagb-howto-req-tools-text"}),T&&React.createElement(React.Fragment,null,y.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label "+t,key:t}))),C&&React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-materials-text"}),C&&React.createElement(React.Fragment,null,f.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label "+t,key:t}))),React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement(ge.InnerBlocks.Content,null))}}];let hC={};hC=Object(F.applyFilters)("uagb/how-to",ss(hC)),Object(de.registerBlockType)("uagb/how-to",{...hC,title:Object(r.__)("How To","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add instructions/steps on processes using how to block.","ultimate-addons-for-gutenberg"),icon:se.how_to,keywords:[Object(r.__)("how to","ultimate-addons-for-gutenberg"),Object(r.__)("schema","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:qt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"how-to"}):React.createElement(yC,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,headingTitle:i,headingDesc:o,headingTag:n,timeNeeded:r,time:s,estCost:c,cost:u,currencyType:p,mainimage:d,toolsTitle:b,stepsTitle:g,materialTitle:m,tools:y,materials:f,schema:h,showTotaltime:v,showEstcost:_,showTools:T,showMaterials:C,timeInMins:S,timeInHours:k,timeInDays:w,timeInMonths:P,timeInYears:x,imgTagHeight:A,imgTagWidth:G}=t;let M="",R="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(M=t.mainimage.url,R=t.mainimage.title);let B="";if(""!==M){const e=t.mainimage.sizes,a=t.imgSize;B=void 0!==e&&void 0!==e[a]?e[a].url:M}const U=d&&null!=d&&d.alt?null==d?void 0:d.alt:"";let E="";d&&d.url&&(E=React.createElement("img",{className:"uagb-howto__source-image",src:B,title:R,width:G,height:A,loading:"lazy",alt:U}));const O=us(x,"timeInYears","how-to")>1?" Years ":" Year ",L=us(P,"timeInMonths","how-to")>1?" Months ":" Month ",H=us(w,"timeInDays","how-to")>1?" Days ":" Day ",F=us(k,"timeInHours","how-to")>1?"Hours ":" Hour ",j=us(S,"timeInMins","how-to")?us(S,"timeInMins","how-to"):s,z=j>1?" Minutes ":" Minute ";return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-how-to-main-wrap")},React.createElement("script",{type:"application/ld+json"},h),React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-howto-heading-text"}),React.createElement(ge.RichText.Content,{value:o,tagName:"p",className:"uagb-howto-desc-text"}),E,v&&React.createElement("span",{className:"uagb-howto__time-wrap"},React.createElement(ge.RichText.Content,{value:r,tagName:"h4",className:"uagb-howto-timeNeeded-text"}),React.createElement(React.Fragment,null,us(x,"timeInYears","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"}," ",us(x,"timeInYears","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"}," ",O)),us(P,"timeInMonths","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(P,"timeInMonths","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},L)),us(w,"timeInDays","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(w,"timeInDays","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},H)),us(k,"timeInHours","how-to")&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},us(k,"timeInHours","how-to")),React.createElement("p",{className:"uagb-howto-timeINmin-text"},F)),j&&React.createElement(React.Fragment,null,React.createElement("p",{className:"uagb-howto-timeNeeded-value"},j),React.createElement("p",{className:"uagb-howto-timeINmin-text"},z)))),_&&React.createElement("span",{className:"uagb-howto__cost-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"h4",className:"uagb-howto-estcost-text"}),React.createElement(ge.RichText.Content,{value:u,tagName:"p",className:"uagb-howto-estcost-value"}),React.createElement(ge.RichText.Content,{tagName:"p",value:p,className:"uagb-howto-estcost-type"})),T&&React.createElement(ge.RichText.Content,{value:b,tagName:"h4",className:"uagb-howto-req-tools-text"}),T&&React.createElement(React.Fragment,null,y.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_tools,className:"uagb-tools__label "+t,key:t}))),C&&React.createElement(ge.RichText.Content,{value:m,tagName:"h4",className:"uagb-howto-req-materials-text"}),C&&React.createElement(React.Fragment,null,f.map((e,t)=>React.createElement(ge.RichText.Content,{tagName:"div",value:e.add_required_materials,className:"uagb-materials__label "+t,key:t}))),React.createElement(ge.RichText.Content,{value:g,tagName:"h4",className:"uagb-howto-req-steps-text"}),React.createElement(ge.InnerBlocks.Content,null))},deprecated:fC});let vC=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}];var _C,TC=Object(B.memo)(e=>{const{attributes:t,setAttributes:a}=e,{url:l,urlType:i,image:o,imageSize:n,urlText:s,urlFontSize:c,urlFontSizeType:u,urlFontSizeMobile:p,urlFontSizeTablet:d,urlFontFamily:b,urlFontWeight:g,urlLoadGoogleFonts:m,titleFontSize:y,titleFontSizeType:f,titleFontSizeMobile:h,titleFontSizeTablet:v,titleFontFamily:_,titleFontWeight:T,titleLoadGoogleFonts:C,descriptionFontSize:S,descriptionFontSizeType:k,descriptionFontSizeMobile:w,descriptionFontSizeTablet:P,descriptionFontFamily:x,descriptionFontWeight:A,descriptionLoadGoogleFonts:G,urlTarget:M,imgPosition:R,titleColor:B,descriptionColor:U,urlColor:E,urlFontStyle:O,urlTransform:L,urlDecoration:H,titleFontStyle:F,titleTransform:z,titleDecoration:D,descriptionFontStyle:N,descriptionTransform:I,descriptionDecoration:V,titleLetterSpacing:W,titleLetterSpacingTablet:q,titleLetterSpacingMobile:Z,titleLetterSpacingType:$,descriptionLetterSpacing:Y,descriptionLetterSpacingTablet:K,descriptionLetterSpacingMobile:J,descriptionLetterSpacingType:X,titleLineHeight:Q,titleLineHeightTablet:ee,titleLineHeightMobile:te,titleLineHeightType:ae,descriptionLineHeight:le,descriptionLineHeightType:ie,descriptionLineHeightTablet:oe,descriptionLineHeightMobile:ne,urlLineHeight:re,urlLineHeightTablet:se,urlLineHeightMobile:ce,urlLineHeightType:ue,urlLetterSpacing:pe,urlLetterSpacingTablet:de,urlLetterSpacingMobile:be,urlLetterSpacingType:me}=t;return vC.map(e=>(e.label=e.label.replace(/\w/,e=>e.toUpperCase()),e)),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{initialOpen:!0,title:Object(r.__)("Image","ultimate-addons-for-gutenberg")},React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?(e.sizes&&(vC=j(e.sizes)),a({image:e})):a({image:null})},backgroundImage:o,onRemoveImage:()=>{a({image:""})},disableLabel:!0}),o&&"null"!==o.url&&""!==o.url&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:n,label:"imageSize"},setAttributes:a,options:vC}),React.createElement(Pi,{label:Object(r.__)("Select Position","ultimate-addons-for-gutenberg"),data:{value:R,label:"imgPosition"},setAttributes:a,options:[{value:"above-title",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")},{value:"left-title",label:Object(r.__)("Left of Title","ultimate-addons-for-gutenberg")},{value:"right-title",label:Object(r.__)("Right of Title","ultimate-addons-for-gutenberg")}]}))),React.createElement(je,{title:Object(r.__)("Add Link","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:i,label:"urlType"},setAttributes:a,options:[{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"all",label:Object(r.__)("Complete Box","ultimate-addons-for-gutenberg")},{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")}]}),"text"===i&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"urlText"},setAttributes:a,onChange:e=>a({urlText:e})})),"none"!==i&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:l,data:{value:l,label:"url"},setAttributes:a,onChange:e=>a({url:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:M,onChange:()=>a({urlTarget:!M})})))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:C,label:"titleLoadGoogleFonts"},fontFamily:{value:_,label:"titleFontFamily"},fontWeight:{value:T,label:"titleFontWeight"},fontStyle:{value:F,label:"titleFontStyle"},transform:{value:z,label:"titleTransform"},decoration:{value:D,label:"titleDecoration"},fontSizeType:{value:f,label:"titleFontSizeType"},fontSize:{value:y,label:"titleFontSize"},fontSizeMobile:{value:h,label:"titleFontSizeMobile"},fontSizeTablet:{value:v,label:"titleFontSizeTablet"},lineHeightType:{value:ae,label:"titleLineHeightType"},lineHeight:{value:Q,label:"titleLineHeight"},lineHeightMobile:{value:te,label:"titleLineHeightMobile"},lineHeightTablet:{value:ee,label:"titleLineHeightTablet"},letterSpacing:{value:W,label:"titleLetterSpacing"},letterSpacingTablet:{value:q,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Z,label:"titleLetterSpacingMobile"},letterSpacingType:{value:$,label:"titleLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"titleColor"},setAttributes:a})),React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:G,label:"descriptionLoadGoogleFonts"},fontFamily:{value:x,label:"descriptionFontFamily"},fontWeight:{value:A,label:"descriptionFontWeight"},fontStyle:{value:N,label:"descriptionFontStyle"},transform:{value:I,label:"descriptionTransform"},decoration:{value:V,label:"descriptionDecoration"},fontSizeType:{value:k,label:"descriptionFontSizeType"},fontSize:{value:S,label:"descriptionFontSize"},fontSizeMobile:{value:w,label:"descriptionFontSizeMobile"},fontSizeTablet:{value:P,label:"descriptionFontSizeTablet"},lineHeightType:{value:ie,label:"descriptionLineHeightType"},lineHeight:{value:le,label:"descriptionLineHeight"},lineHeightMobile:{value:ne,label:"descriptionLineHeightMobile"},lineHeightTablet:{value:oe,label:"descriptionLineHeightTablet"},letterSpacing:{value:Y,label:"descriptionLetterSpacing"},letterSpacingTablet:{value:K,label:"descriptionLetterSpacingTablet"},letterSpacingMobile:{value:J,label:"descriptionLetterSpacingMobile"},letterSpacingType:{value:X,label:"descriptionLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:U||"",data:{value:U,label:"descriptionColor"},setAttributes:a})),"text"===i&&React.createElement(je,{title:Object(r.__)("Link","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:m,label:"urlLoadGoogleFonts"},fontFamily:{value:b,label:"urlFontFamily"},fontWeight:{value:g,label:"urlFontWeight"},fontStyle:{value:O,label:"urlFontStyle"},transform:{value:L,label:"urlTransform"},decoration:{value:H,label:"urlDecoration"},fontSizeType:{value:u,label:"urlFontSizeType"},fontSize:{value:c,label:"urlFontSize"},fontSizeMobile:{value:p,label:"urlFontSizeMobile"},fontSizeTablet:{value:d,label:"urlFontSizeTablet"},lineHeightType:{value:ue,label:"urlLineHeightType"},lineHeight:{value:re,label:"urlLineHeight"},lineHeightMobile:{value:ce,label:"urlLineHeightMobile"},lineHeightTablet:{value:se,label:"urlLineHeightTablet"},letterSpacing:{value:pe,label:"urlLetterSpacing"},letterSpacingTablet:{value:de,label:"urlLetterSpacingTablet"},letterSpacingMobile:{value:be,label:"urlLetterSpacingMobile"},letterSpacingType:{value:me,label:"urlLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:E||"",data:{value:E,label:"urlColor"},setAttributes:a}))),React.createElement(il,rl))))}),CC=a(124),SC=0,kC={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},wC={};wC.locals=CC.a.locals||{},wC.use=function(){return SC++||(_C=we()(CC.a,kC)),wC},wC.unuse=function(){SC>0&&!--SC&&(_C(),_C=null)};var PC=wC,xC=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(PC.use(),()=>{PC.unuse()}),[]);const{attributes:t,setAttributes:a,mergeBlocks:l,insertBlocksAfter:i,onReplace:o,deviceType:n}=e,{block_id:s,name:c,description:u,url:p,urlType:d,image:b,imageSize:g,urlText:m,urlTarget:y,imgPosition:f,imgTagHeight:h,imgTagWidth:v}=t;let _="";null!=b&&""!==b&&(_=b.url);let T="";if(""!==_){const e=b.sizes;T=void 0!==e&&void 0!==e[g]?e[g].url:_}let C="_self";y&&(C="_blank"),Object(B.useEffect)(()=>{Zg(T,a)},[T]);const S=(null==b?void 0:b.alt)||"",k=React.createElement("img",{className:"uagb-how-to-step-image",src:T,alt:S,width:v,height:h,loading:"lazy"}),w=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText,{tagName:"div",className:"uagb-how-to-step-name",placeholder:Object(r.__)("Name","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({name:e}),multiline:!1}),React.createElement(ge.RichText,{tagName:"p",value:u,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-how-to-step-description",onChange:e=>a({description:e}),onMerge:l,onSplit:i?function(e,t){a({description:e});for(var l=arguments.length,o=new Array(l>2?l-2:0),n=2;no([])}),"text"===d&&React.createElement(React.Fragment,null,""!==p?React.createElement("a",{href:p,target:C,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},m)):React.createElement("span",{className:"uagb-step-link-text"},m)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-editor-preview-mode-"+n.toLowerCase(),"uagb-block-"+s)},("all"===d||"none"===d)&&React.createElement(React.Fragment,null,""!==p&&"all"===d&&React.createElement("a",{className:"uagb-step-link","aria-label":"Step Link",rel:"noopener noreferrer",target:C}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+f},T&&k,w)),"text"===d&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+f},T&&k,w))}),AC=Object(B.memo)(e=>{let{attributes:t}=e;const{urlLoadGoogleFonts:a,urlFontFamily:l,urlFontWeight:i,titleLoadGoogleFonts:o,titleFontFamily:n,titleFontWeight:r,descriptionLoadGoogleFonts:s,descriptionFontFamily:c,descriptionFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),GC=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,clientId:l,deviceType:i}=e,o=Object(B.useMemo)(()=>function(e,t,a){const l=a.toLowerCase(),{urlFontSize:i,urlFontSizeType:o,urlFontSizeMobile:n,urlFontSizeTablet:r,urlFontFamily:s,urlFontWeight:c,titleFontSize:u,titleFontSizeType:p,titleFontSizeMobile:d,titleFontSizeTablet:b,titleFontFamily:g,titleFontWeight:m,descriptionFontSize:y,descriptionFontSizeType:f,descriptionFontSizeMobile:h,descriptionFontSizeTablet:v,descriptionFontFamily:_,descriptionFontWeight:T,titleColor:C,descriptionColor:S,urlColor:k,urlFontStyle:w,urlTransform:P,urlDecoration:x,titleFontStyle:A,titleTransform:G,titleDecoration:M,descriptionFontStyle:R,descriptionTransform:B,descriptionDecoration:U,titleLetterSpacing:E,titleLetterSpacingTablet:O,titleLetterSpacingMobile:L,titleLetterSpacingType:H,descriptionLetterSpacing:F,descriptionLetterSpacingTablet:j,descriptionLetterSpacingMobile:z,descriptionLetterSpacingType:D,titleLineHeight:N,titleLineHeightTablet:I,titleLineHeightMobile:V,titleLineHeightType:W,descriptionLineHeight:q,descriptionLineHeightType:Z,descriptionLineHeightTablet:$,descriptionLineHeightMobile:Y,urlLineHeight:K,urlLineHeightTablet:J,urlLineHeightMobile:X,urlLineHeightType:Q,urlLetterSpacing:ee,urlLetterSpacingTablet:te,urlLetterSpacingMobile:le,urlLetterSpacingType:ie,block_id:oe}=e;let ne={},re={};const se={" .uagb-step-link-text":{color:k,"font-family":s,"font-style":w,"text-transform":P,"text-decoration":x,"font-weight":c,"font-size":Vr(i,o),"line-height":Vr(K,Q),"letter-spacing":Vr(ee,ie)}," .block-editor-rich-text__editable.uagb-how-to-step-name":{color:C,"font-family":g,"font-style":A,"text-transform":G,"text-decoration":M,"font-weight":m,"font-size":Vr(u,p),"line-height":Vr(N,W),"letter-spacing":Vr(E,H)}," .block-editor-rich-text__editable.uagb-how-to-step-description":{color:S,"font-family":_,"font-style":R,"text-transform":B,"text-decoration":U,"font-weight":T,"font-size":Vr(y,f),"line-height":Vr(q,Z),"letter-spacing":Vr(F,D)}};re={" .uagb-step-link-text":{"font-size":Vr(n,o),"line-height":Vr(X,Q),"letter-spacing":Vr(le,ie)}," .block-editor-rich-text__editable.uagb-how-to-step-name":{"font-size":Vr(d,p),"line-height":Vr(V,W),"letter-spacing":Vr(L,H)}," .block-editor-rich-text__editable.uagb-how-to-step-description":{"font-size":Vr(h,f),"line-height":Vr(Y,Z),"letter-spacing":Vr(z,D)}},ne={" .uagb-step-link-text":{"font-size":Vr(r,o),"line-height":Vr(J,Q),"letter-spacing":Vr(te,ie)}," .block-editor-rich-text__editable.uagb-how-to-step-name":{"font-size":Vr(b,p),"line-height":Vr(I,W),"letter-spacing":Vr(O,H)}," .block-editor-rich-text__editable.uagb-how-to-step-description":{"font-size":Vr(v,f),"line-height":Vr($,Z),"letter-spacing":Vr(j,D)}};const ce=".editor-styles-wrapper .uagb-block-"+oe;let ue=ae(se,ce);return"tablet"!==l&&"mobile"!==l||(ue+=ae(ne,""+ce,!0,"tablet"),"mobile"===l&&(ue+=ae(re,""+ce,!0,"mobile"))),ue}(a,0,i),[a,i]);return Object(B.useEffect)(()=>{ys()},[i]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),React.createElement(AC,{attributes:a}),t&&React.createElement(TC,e),React.createElement(xC,e))}),MC=[{attributes:{block_id:{type:"string"},name:{type:"string",default:Object(r.__)("Step","ultimate-addons-for-gutenberg")},description:{type:"string",default:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.")},url:{type:"string",default:"#"},urlType:{type:"string",default:"all"},urlText:{type:"string",default:Object(r.__)("Read More","ultimate-addons-for-gutenberg")},urlTarget:{type:"boolean",default:!1},image:{type:"object",default:{url:"",alt:"Image Placeholder"}},imageSize:{type:"string",default:"thumbnail",UAGCopyPaste:{styleType:"image-size"}},urlFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},urlFontSizeType:{type:"string",UAGCopyPaste:{styleType:"prefix-font-size-type"},default:"px"},urlFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},urlFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},urlFontFamily:{type:"string",UAGCopyPaste:{styleType:"prefix-font-family"},default:"Default"},urlFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},urlFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"prefix-font-style"}},urlTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},urlDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},urlLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-fonts"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",UAGCopyPaste:{styleType:"main-title-font-size-type"},default:"px"},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleLoadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},descriptionFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descriptionFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descriptionFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descriptionFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descriptionFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descriptionFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descriptionFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descriptionTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descriptionDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descriptionLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},imgPosition:{type:"string",default:"above-title"},titleColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},descriptionColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},urlColor:{type:"string",UAGCopyPaste:{styleType:"prefix-color"}},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLineHeightType:{type:"string",UAGCopyPaste:{styleType:"main-title-line-height-type"},default:"em"},descriptionLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descriptionLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descriptionLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descriptionLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},descriptionLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descriptionLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descriptionLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descriptionLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},urlLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},urlLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},urlLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},urlLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},urlLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},urlLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},urlLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},urlLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}}},save(e){const{attributes:t}=e,{block_id:a,name:l,description:i,url:o,urlType:n,image:r,imageSize:s,urlText:c,urlTarget:u,imgPosition:p}=t;let d="";null!=r&&""!==r&&(d=r.url);let b="";if(""!==d){const e=r.sizes;b=void 0!==e&&void 0!==e[s]?e[s].url:d}let g="_self";u&&(g="_blank");const m=React.createElement("img",{className:"uagb-how-to-step-image",src:b,alt:r.alt}),y=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText.Content,{tagName:"div",className:"uagb-how-to-step-name",value:l}),React.createElement(ge.RichText.Content,{tagName:"p",className:"uagb-how-to-step-description",value:i}),"text"===n&&React.createElement("a",{href:o,target:g,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},c)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-block-"+a)},"all"===n&&React.createElement(React.Fragment,null,React.createElement("a",{href:o,target:g,className:"uagb-step-link-all",rel:"noopener noreferrer"}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y)),"text"===n&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y))}},{attributes:Zt,save(e){const{attributes:t}=e,{block_id:a,name:l,description:i,url:o,urlType:n,image:r,imageSize:s,urlText:c,urlTarget:u,imgPosition:p}=t;let d="";null!=r&&""!==r&&(d=r.url);let b="";if(""!==d){const e=r.sizes;b=void 0!==e&&void 0!==e[s]?e[s].url:d}let g="_self";u&&(g="_blank");const m=React.createElement("img",{className:"uagb-how-to-step-image",src:b,alt:r.alt}),y=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText.Content,{tagName:"div",className:"uagb-how-to-step-name",value:l}),React.createElement(ge.RichText.Content,{tagName:"p",className:"uagb-how-to-step-description",value:i}),"text"===n&&React.createElement(React.Fragment,null,""!==o?React.createElement("a",{href:o,target:g,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},c)):React.createElement("span",{className:"uagb-step-link-text"},c)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-block-"+a)},("all"===n||"none"===n)&&React.createElement(React.Fragment,null,""!==o&&"all"===n&&React.createElement("a",{href:o,target:g,className:"uagb-step-link-all",rel:"noopener noreferrer"}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y)),"text"===n&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},b&&m,y))}}];let RC={};RC=Object(F.applyFilters)("uagb/how-to-step",ss(RC)),Object(de.registerBlockType)("uagb/how-to-step",{...RC,title:Object(r.__)("Step","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add relevant content for this step.","ultimate-addons-for-gutenberg"),icon:se.how_to_step,parent:["uagb/how-to"],attributes:Zt,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"how-to-step",isChildren:!0}):React.createElement(GC,e),supports:{anchor:!0,html:!1},save:function(e){const{attributes:t}=e,{block_id:a,name:l,description:i,url:o,urlType:n,image:r,imageSize:s,urlText:c,urlTarget:u,imgPosition:p,imgTagHeight:d,imgTagWidth:b}=t;let g="";null!=r&&""!==r&&(g=r.url);let m="";if(""!==g){const e=r.sizes;m=void 0!==e&&void 0!==e[s]?e[s].url:g}let y="_self";u&&(y="_blank");const f=(null==r?void 0:r.alt)||"",h=React.createElement("img",{className:"uagb-how-to-step-image",src:m,alt:f,width:b,height:d,loading:"lazy"}),v=React.createElement("div",{className:"uagb-step-content-wrap"},React.createElement(ge.RichText.Content,{tagName:"div",className:"uagb-how-to-step-name",value:l}),React.createElement(ge.RichText.Content,{tagName:"p",className:"uagb-how-to-step-description",value:i}),"text"===n&&React.createElement(React.Fragment,null,""!==o?React.createElement("a",{href:o,target:y,className:"uagb-step-link",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-step-link-text"},c)):React.createElement("span",{className:"uagb-step-link-text"},c)));return React.createElement("div",{className:Be()("uagb-how-to-step-wrap","uagb-block-"+a)},("all"===n||"none"===n)&&React.createElement(React.Fragment,null,""!==o&&"all"===n&&React.createElement("a",{href:o,target:y,className:"uagb-step-link-all",rel:"noopener noreferrer"}),React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},m&&h,v)),"text"===n&&React.createElement("div",{className:"uagb-step-image-content-wrap uag-image-position-"+p},m&&h,v))},deprecated:MC});const BC=[{defaultAttributes:St},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"size",value:20},{label:"bgSize",value:""},{label:"borderRadius",value:100},{label:"border",value:0},{label:"iconColor",value:"#0170B9"},{label:"iconBgColor",value:""},{label:"gap",value:10},{label:"gapTablet",value:""},{label:"gapMobile",value:""},{label:"gapType",value:"px"},{label:"inner_gap",value:15},{label:"innerGapTablet",value:""},{label:"innerGapMobile",value:""},{label:"innerGapType",value:"px"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"bgSize",value:10},{label:"size",value:20},{label:"borderRadius",value:100},{label:"border",value:0},{label:"iconColor",value:"#fff"},{label:"iconBgColor",value:"#0170B9"},{label:"gap",value:10},{label:"gapTablet",value:""},{label:"gapMobile",value:""},{label:"gapType",value:"px"},{label:"inner_gap",value:15},{label:"innerGapTablet",value:""},{label:"innerGapMobile",value:""},{label:"innerGapType",value:"px"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"bgSize",value:10},{label:"size",value:20},{label:"borderRadius",value:100},{label:"border",value:2},{label:"iconColor",value:"#0170B9"},{label:"iconBorderColor",value:"#0170B9"},{label:"iconBgColor",value:""},{label:"gap",value:10},{label:"gapTablet",value:""},{label:"gapMobile",value:""},{label:"gapType",value:"px"},{label:"inner_gap",value:15},{label:"innerGapTablet",value:""},{label:"innerGapMobile",value:""},{label:"innerGapType",value:"px"}],icon:' '}];var UC=Object(F.applyFilters)("uag_icon_list_presets",BC);function EC(){return(EC=Object.assign||function(e){for(var t=1;t{const{attributes:t,deviceType:a,setAttributes:l,clientId:i}=e,{align:o,alignTablet:s,alignMobile:c,gap:u,gapTablet:p,gapMobile:d,gapType:b,inner_gap:g,innerGapTablet:m,innerGapMobile:y,innerGapType:f,icon_layout:h,iconLayoutTablet:v,iconLayoutMobile:_,iconPosition:T,iconPositionTablet:C,iconPositionMobile:S,iconPlacement:k,size:w,sizeType:P,sizeMobile:x,sizeTablet:A,hideLabel:G,borderRadius:M,borderRadiusTablet:R,borderRadiusMobile:B,borderRadiusType:U,bgSize:E,bgSizeType:O,bgSizeTablet:L,bgSizeMobile:H,border:F,borderTablet:j,borderMobile:z,borderType:D,fontSize:N,fontSizeType:I,fontSizeMobile:V,fontSizeTablet:W,fontFamily:q,fontWeight:Z,lineHeight:$,lineHeightType:Y,lineHeightMobile:K,lineHeightTablet:J,loadGoogleFonts:X,fontStyle:Q,fontTransform:ee,fontDecoration:te,labelLetterSpacing:ae,labelLetterSpacingTablet:le,labelLetterSpacingMobile:ie,labelLetterSpacingType:oe,iconColor:ne,labelColor:re,iconHoverColor:se,labelHoverColor:ce,iconBgColor:ue,iconBgHoverColor:pe,iconBorderColor:de,iconBorderHoverColor:be,blockTopMargin:me,blockRightMargin:ye,blockLeftMargin:fe,blockBottomMargin:he,blockTopMarginTablet:ve,blockRightMarginTablet:_e,blockLeftMarginTablet:Te,blockBottomMarginTablet:Se,blockTopMarginMobile:ke,blockRightMarginMobile:we,blockLeftMarginMobile:Pe,blockBottomMarginMobile:xe,blockMarginUnit:Ae,blockMarginUnitTablet:Ge,blockMarginUnitMobile:Me,blockMarginLink:Re,parentIcon:Be,blockTopPadding:Ue,blockRightPadding:Oe,blockLeftPadding:He,blockBottomPadding:Fe,blockTopPaddingTablet:ze,blockRightPaddingTablet:De,blockLeftPaddingTablet:Ne,blockBottomPaddingTablet:Ie,blockTopPaddingMobile:Ve,blockRightPaddingMobile:We,blockLeftPaddingMobile:qe,blockBottomPaddingMobile:Ze,blockPaddingUnit:$e,blockPaddingUnitTablet:Ye,blockPaddingUnitMobile:Ke,blockPaddingLink:Je}=t;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Be,onChange:e=>l({parentIcon:e})})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:l,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"icon_layout"},tablet:{value:v,label:"iconLayoutTablet"},mobile:{value:_,label:"iconLayoutMobile"}},options:[{value:"horizontal",label:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},{value:"vertical",label:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")}],showIcons:!1,responsive:!0}),React.createElement(Na,{setAttributes:l,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:o,label:"align"},tablet:{value:s,label:"alignTablet"},mobile:{value:c,label:"alignMobile"}},options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),!G&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:l,label:Object(r.__)("Icon Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:T,label:"iconPosition"},tablet:{value:C,label:"iconPositionTablet"},mobile:{value:S,label:"iconPositionMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:"Top"},{value:"middle",label:"Middle"}],showIcons:!1,help:Object(r.__)("Note: This manages the Icon Position with respect to the Label.","ultimate-addons-for-gutenberg"),responsive:!0})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide Labels","ultimate-addons-for-gutenberg"),checked:G,onChange:e=>(e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.hideLabel=e}),l({hideLabel:e})})(e)}),!G&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:l,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:k,label:"iconPlacement"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:"Before"},{value:"after",label:"After"}],showIcons:!1}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:l,presets:UC,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Icon/Image","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:w,label:"size"},tablet:{value:A,label:"sizeTablet"},mobile:{value:x,label:"sizeMobile"}},min:0,max:200,unit:{value:P,label:"sizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:l}),React.createElement(tl,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:E,label:"bgSize"},tablet:{value:L,label:"bgSizeTablet"},mobile:{value:H,label:"bgSizeMobile"}},setAttributes:l,min:0,max:50,unit:{value:O,label:"bgSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],help:Object(r.__)("Note: Background Size option is useful when one adds background color to the icons.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Border","ultimate-addons-for-gutenberg"),data:{desktop:{value:F,label:"border"},tablet:{value:j,label:"borderTablet"},mobile:{value:z,label:"borderMobile"}},min:0,max:10,unit:{value:D,label:"borderType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l}),(ue||pe||F||j||z)&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:M,label:"borderRadius"},tablet:{value:R,label:"borderRadiusTablet"},mobile:{value:B,label:"borderRadiusMobile"}},min:0,max:100,unit:{value:U,label:"borderRadiusType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l,help:Object(r.__)("Note: Border Radius option is useful when one adds background color or border to the icons.","ultimate-addons-for-gutenberg")})),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:ne||"",data:{value:ne,label:"iconColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ue||"",data:{value:ue,label:"iconBgColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:de||"",data:{value:de,label:"iconBorderColor"},setAttributes:l})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:se||"",data:{value:se,label:"iconHoverColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:pe||"",data:{value:pe,label:"iconBgHoverColor"},setAttributes:l}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:be||"",data:{value:be,label:"iconBorderHoverColor"},setAttributes:l})),disableBottomSeparator:!0})),!G&&React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Gap between Icon and Label","ultimate-addons-for-gutenberg"),data:{desktop:{value:g,label:"inner_gap"},tablet:{value:m,label:"innerGapTablet"},mobile:{value:y,label:"innerGapMobile"}},min:-100,max:100,unit:{value:f,label:"innerGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:re,data:{value:re,label:"labelColor"},setAttributes:l}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ce,data:{value:ce,label:"labelHoverColor"},setAttributes:l})}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:l,loadGoogleFonts:{value:X,label:"loadGoogleFonts"},fontFamily:{value:q,label:"fontFamily"},fontWeight:{value:Z,label:"fontWeight"},fontStyle:{value:Q,label:"fontStyle"},transform:{value:ee,label:"fontTransform"},decoration:{value:te,label:"fontDecoration"},fontSizeType:{value:I,label:"fontSizeType"},fontSize:{value:N,label:"fontSize"},fontSizeMobile:{value:V,label:"fontSizeMobile"},fontSizeTablet:{value:W,label:"fontSizeTablet"},lineHeightType:{value:Y,label:"lineHeightType"},lineHeight:{value:$,label:"lineHeight"},lineHeightMobile:{value:K,label:"lineHeightMobile"},lineHeightTablet:{value:J,label:"lineHeightTablet"},letterSpacing:{value:ae,label:"labelLetterSpacing"},letterSpacingTablet:{value:le,label:"labelLetterSpacingTablet"},letterSpacingMobile:{value:ie,label:"labelLetterSpacingMobile"},letterSpacingType:{value:oe,label:"labelLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Gap between Items","ultimate-addons-for-gutenberg"),data:{desktop:{value:u,label:"gap"},tablet:{value:p,label:"gapTablet"},mobile:{value:d,label:"gapMobile"}},min:0,max:100,unit:{value:b,label:"gapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:l,help:Object(r.__)("Note: For better editing experience, the gap between items might look larger than applied. Viewing in frontend will show the actual results.","ultimate-addons-for-gutenberg")}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:me,label:"blockTopMargin"},valueRight:{value:ye,label:"blockRightMargin"},valueBottom:{value:he,label:"blockBottomMargin"},valueLeft:{value:fe,label:"blockLeftMargin"},valueTopTablet:{value:ve,label:"blockTopMarginTablet"},valueRightTablet:{value:_e,label:"blockRightMarginTablet"},valueBottomTablet:{value:Se,label:"blockBottomMarginTablet"},valueLeftTablet:{value:Te,label:"blockLeftMarginTablet"},valueTopMobile:{value:ke,label:"blockTopMarginMobile"},valueRightMobile:{value:we,label:"blockRightMarginMobile"},valueBottomMobile:{value:xe,label:"blockBottomMarginMobile"},valueLeftMobile:{value:Pe,label:"blockLeftMarginMobile"},unit:{value:Ae,label:"blockMarginUnit"},mUnit:{value:Me,label:"blockMarginUnitMobile"},tUnit:{value:Ge,label:"blockMarginUnitTablet"},deviceType:a,attributes:t,setAttributes:l,link:{value:Re,label:"blockMarginLink"}}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ue,label:"blockTopPadding"},valueRight:{value:Oe,label:"blockRightPadding"},valueBottom:{value:Fe,label:"blockBottomPadding"},valueLeft:{value:He,label:"blockLeftPadding"},valueTopTablet:{value:ze,label:"blockTopPaddingTablet"},valueRightTablet:{value:De,label:"blockRightPaddingTablet"},valueBottomTablet:{value:Ie,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:Ne,label:"blockLeftPaddingTablet"},valueTopMobile:{value:Ve,label:"blockTopPaddingMobile"},valueRightMobile:{value:We,label:"blockRightPaddingMobile"},valueBottomMobile:{value:Ze,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:qe,label:"blockLeftPaddingMobile"},unit:{value:$e,label:"blockPaddingUnit"},mUnit:{value:Ke,label:"blockPaddingUnitMobile"},tUnit:{value:Ye,label:"blockPaddingUnitTablet"},deviceType:a,attributes:t,setAttributes:l,link:{value:Je,label:"blockPaddingLink"}}))),React.createElement(il,EC({},rl,{parentProps:e})))))}),HC=a(125),FC=0,jC={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},zC={};zC.locals=HC.a.locals||{},zC.use=function(){return FC++||(OC=we()(HC.a,jC)),zC},zC.unuse=function(){FC>0&&!--FC&&(OC(),OC=null)};var DC=zC;const NC=["uagb/icon-list-child"];var IC=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(DC.use(),()=>{DC.unuse()}),[]);const{attributes:t,deviceType:a}=e,{className:l,icon_count:i,block_id:o}=t,n=Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)}),WC=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:r,name:s,deviceType:c}=e;Object(B.useEffect)(()=>{ys()},[c]);const u=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{align:n,alignTablet:r,alignMobile:s,gap:c,gapTablet:u,gapMobile:p,gapType:d,inner_gap:b,innerGapTablet:g,innerGapMobile:m,innerGapType:y,icon_layout:f,iconLayoutTablet:h,iconLayoutMobile:v,size:_,sizeType:T,sizeTablet:C,sizeMobile:S,fontSize:k,fontSizeType:w,fontSizeMobile:P,fontSizeTablet:x,fontFamily:A,fontWeight:G,lineHeightType:M,lineHeight:R,lineHeightTablet:B,lineHeightMobile:U,border:E,borderTablet:O,borderMobile:L,borderType:H,bgSize:F,bgSizeType:j,bgSizeTablet:z,bgSizeMobile:D,borderRadius:N,borderRadiusTablet:I,borderRadiusMobile:V,borderRadiusType:W,fontStyle:q,fontTransform:Z,fontDecoration:$,iconPosition:Y,iconPositionTablet:K,iconPositionMobile:J,hideLabel:X,labelLetterSpacing:Q,labelLetterSpacingTablet:ee,labelLetterSpacingMobile:te,labelLetterSpacingType:le,iconColor:ie,labelColor:oe,iconHoverColor:ne,labelHoverColor:re,iconBgColor:se,iconBgHoverColor:ce,iconBorderColor:ue,iconBorderHoverColor:pe,iconPlacement:de,blockTopMargin:be,blockRightMargin:ge,blockLeftMargin:me,blockBottomMargin:ye,blockTopMarginTablet:fe,blockRightMarginTablet:he,blockLeftMarginTablet:ve,blockBottomMarginTablet:_e,blockTopMarginMobile:Te,blockRightMarginMobile:Ce,blockLeftMarginMobile:Se,blockBottomMarginMobile:ke,blockMarginUnit:we,blockMarginUnitTablet:Pe,blockMarginUnitMobile:xe,blockTopPadding:Ae,blockRightPadding:Ge,blockLeftPadding:Me,blockBottomPadding:Re,blockTopPaddingTablet:Be,blockRightPaddingTablet:Ue,blockLeftPaddingTablet:Ee,blockBottomPaddingTablet:Oe,blockTopPaddingMobile:Le,blockRightPaddingMobile:He,blockLeftPaddingMobile:Fe,blockBottomPaddingMobile:je,blockPaddingUnit:ze,blockPaddingUnitTablet:De,blockPaddingUnitMobile:Ne,block_id:Ie}=e,Ve=us(c,"gap",i),We=us(F,"bgSize",i),qe=us(N,"borderRadius",i),Ze=us(I,"borderRadiusTablet",i),$e=us(V,"borderRadiusMobile",i),Ye=us(E,"border",i),Ke=us(_,"size",i),Je=us(b,"inner_gap",i),Xe=us(g,"innerGapTablet",i),Qe=us(m,"innerGapMobile",i),et=isNaN(C)?Ke:C,tt=isNaN(S)?et:S,at=isNaN(z)?We:z,lt=isNaN(D)?at:D,it=isNaN(O)?Ye:O,ot=isNaN(L)?it:L,nt=isNaN(u)?Ve:u,rt=isNaN(p)?nt:p;let st={},ct={},ut={},pt="";pt="left"===n?"flex-start":"right"===n?"flex-end":"center";let dt=pt;"left"===r?dt="flex-start":"right"===r?dt="flex-end":"center"===r&&(dt="center");let bt=dt;"left"===s?bt="flex-start":"right"===s?bt="flex-end":"center"===s&&(bt="center");const gt=f,mt=h||gt,yt=v||mt,ft="top"===Y?"flex-start":"center";let ht="",vt="";ht="top"===K?"flex-start":"middle"===K?"center":ft,vt="top"===J?"flex-start":"middle"===J?"center":ht,st={" .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap":{background:se,"border-color":ue,padding:Vr(We,j),"border-radius":Vr(qe,W),"border-style":0===Ye||void 0===Ye?"none":"solid","border-width":Vr(Ye,H),"align-self":ft}," .uagb-icon-list__source-image":{width:Vr(Ke,T)}," .uagb-icon-list__wrap .block-editor-inner-blocks":{"text-align":n,"margin-top":Vr(be,we),"margin-right":Vr(ge,we),"margin-bottom":Vr(ye,we),"margin-left":Vr(me,we),"padding-top":Vr(Ae,ze),"padding-right":Vr(Ge,ze),"padding-bottom":Vr(Re,ze),"padding-left":Vr(Me,ze)}," .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap svg":{color:ie,fill:ie}," .wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap svg":{color:ne,fill:ne}," .wp-block-uagb-icon-list-child .uagb-icon-list__label":{color:oe}," .wp-block-uagb-icon-list-child:hover .uagb-icon-list__label":{color:re}," .wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap":{background:ce,"border-color":pe}},ct={" .uagb-icon-list__source-image":{width:Vr(et,T)}," .uagb-icon-list__wrap .block-editor-inner-blocks":{"text-align":r,"margin-top":Vr(fe,Pe),"margin-right":Vr(he,Pe),"margin-bottom":Vr(_e,Pe),"margin-left":Vr(ve,Pe),"padding-top":Vr(Be,De),"padding-right":Vr(Ue,De),"padding-bottom":Vr(Oe,De),"padding-left":Vr(Ee,De)}},ut={" .uagb-icon-list__source-image":{width:Vr(tt,T)}," .uagb-icon-list__wrap .block-editor-inner-blocks":{"text-align":s,"margin-top":Vr(Te,xe),"margin-right":Vr(Ce,xe),"margin-bottom":Vr(ke,xe),"margin-left":Vr(Se,xe),"padding-top":Vr(Le,Ne),"padding-right":Vr(He,Ne),"padding-bottom":Vr(je,Ne),"padding-left":Vr(Fe,Ne)}},st[" .uagb-icon-list__source-wrap svg"]={width:Vr(Ke,T),height:Vr(Ke,T),"font-size":Vr(Ke,T)},ct[" .uagb-icon-list__source-wrap svg"]={width:Vr(et,T),height:Vr(et,T),"font-size":Vr(et,T)},ut[" .uagb-icon-list__source-wrap svg"]={width:Vr(tt,T),height:Vr(tt,T),"font-size":Vr(tt,T)},"horizontal"===gt?(st[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"justify-content":pt,"-webkit-box-pack":pt,"-ms-flex-pack":pt,"align-items":"center",display:"inline-flex","flex-direction":"row"},st[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]']={"margin-right":Vr(Ve/2,d)},st[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]:not(:first-child)']={"margin-left":Vr(Ve/2,d)}):"vertical"===gt&&(st[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"flex-direction":"column"},st[' .wp-block[data-type="uagb/icon-list-child"]']={display:"block","margin-left":0,"margin-right":0,"margin-bottom":Vr(Ve,d)}),"horizontal"===mt?(ct[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"justify-content":dt,"-webkit-box-pack":dt,"-ms-flex-pack":dt,"align-items":"center",display:"inline-flex","flex-direction":"row"},ct[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]']={"margin-right":Vr(nt/2,d)},ct[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]:not(:first-child)']={"margin-left":Vr(nt/2,d)}):"vertical"===mt&&(ct[' .wp-block[data-type="uagb/icon-list-child"]']={"margin-left":"0 !important","margin-right":"0 !important","margin-bottom":Vr(nt,d)},ct[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"flex-direction":"column","align-items":"flex-start"}),"horizontal"===yt?(ut[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"justify-content":bt,"-webkit-box-pack":bt,"-ms-flex-pack":bt,"align-items":"center",display:"inline-flex","flex-direction":"row"},ut[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]']={"margin-right":Vr(rt/2,d)},ut[' .block-editor-block-list__layout .wp-block[data-type="uagb/icon-list-child"]:not(:first-child)']={"margin-left":Vr(rt/2,d)}):"vertical"===yt&&(ut[' .wp-block[data-type="uagb/icon-list-child"]']={display:"block","margin-left":"0 !important","margin-right":"0 !important","margin-bottom":Vr(rt,d)},ut[" .uagb-icon-list__wrap .block-editor-block-list__layout"]={"flex-direction":"column","align-items":"flex-start"}),"right"===n&&X?(st[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Je,y)},ut[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Qe,y)},ct[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Xe,y)},st[" .wp-block-uagb-icon-list-child "]={"flex-direction":"row-reverse"}):"before"!==de||X?"after"!==de||X||(st[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Je,y)},ut[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Qe,y)},ct[" .uagb-icon-list__source-wrap"]={"margin-left":Vr(Xe,y)},st[" .wp-block-uagb-icon-list-child "]={"flex-direction":"row-reverse"}):(st[" .uagb-icon-list__source-wrap"]={"margin-right":Vr(Je,y)},ut[" .uagb-icon-list__source-wrap"]={"margin-right":Vr(Qe,y)},ct[" .uagb-icon-list__source-wrap"]={"margin-right":Vr(Xe,y)}),st[" .wp-block-uagb-icon-list-child .uagb-icon-list__label"]={"font-size":Vr(k,w),"font-family":A,"font-style":q,"text-decoration":$,"text-transform":Z,"font-weight":G,"line-height":Vr(R,M),"letter-spacing":Vr(Q,le),color:oe},ut[" .wp-block-uagb-icon-list-child .uagb-icon-list__label"]={"font-size":Vr(P,w),"line-height":Vr(U,M),"letter-spacing":Vr(te,le)},ct[" .wp-block-uagb-icon-list-child .uagb-icon-list__label"]={"font-size":Vr(x,w),"line-height":Vr(B,M),"letter-spacing":Vr(ee,le)},ut[" .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap"]={"border-radius":Vr($e,W),padding:Vr(lt,"px"),"border-style":0===ot||void 0===ot?"none":"solid","border-width":Vr(ot,H),"align-self":vt},ct[" .wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap"]={"border-radius":Vr(Ze,W),padding:Vr(at,"px"),"border-style":0===it||void 0===it?"none":"solid","border-width":Vr(it,H),"align-self":ht};let _t="";const Tt=".uagb-block-"+Ie;return _t=ae(st,Tt),"tablet"!==o&&"mobile"!==o||(_t+=ae(ct,""+Tt,!0,"tablet"),"mobile"===o&&(_t+=ae(ut,""+Tt,!0,"mobile"))),_t}(a,0,s,c),[a,c]);return Object(B.useEffect)(()=>{he(e)},[l,i,o,c]),Object(B.useEffect)(()=>{var e;null===(e=Object(n.select)("core/block-editor").getBlocksByClientId(r)[0])||void 0===e||e.innerBlocks.forEach((function(e){Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{fromParentIcon:a.parentIcon,hideLabel:a.hideLabel,imageSizeChild:a.size})}))},[a.parentIcon,a.hideLabel,a.size]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:u}),React.createElement(VC,{attributes:a}),t&&React.createElement(LC,e),React.createElement(IC,e))}),qC=[{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,disableLink:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:Be()(e.icon,"uagb-icon-list__source-icon")})):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=s?"javascript:void(0);":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,disableLink:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=s?"javascript:void(0);":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,iconPosition:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,"top"==s?"uagb-icon-list__icon-at-top":"",c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=e.disableLink?"javascript:void(0);":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,iconPosition:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,"top"==s?"uagb-icon-list__icon-at-top":"",c),id:"uagb-icon-list-"+l},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon?e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))):e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=e.disableLink?"/":e.link;return React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icons:i,icon_count:o,icon_layout:n,hideLabel:r,iconPosition:s}=e.attributes,c=r?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+n,"top"==s?"uagb-icon-list__icon-at-top":"",c,"uagb-block-"+l)},React.createElement("div",{className:"uagb-icon-list__wrap"},i.map((e,t)=>{if(o<=t)return;let a="";"icon"==e.image_icon&&e.icon&&(a=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(e.icon))),e.image&&(a=React.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));const l=e.target?"_blank":"_self",n=e.disableLink?"/":e.link;return e.disableLink?React.createElement("div",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"})))):React.createElement("a",{className:Be()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:l,rel:"noopener noreferrer",href:n},React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},a),!r&&""!=i[t].label&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:i[t].label,className:"uagb-icon-list__label"}))))})))}},{attributes:St,save:e=>{const{attributes:t,className:a}=e,{block_id:l,icon_layout:i,hideLabel:o,iconPosition:n}=t,r=o?"uagb-icon-list__no-label":"";return React.createElement("div",{className:Be()(a,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+i,"top"===n?"uagb-icon-list__icon-at-top":"",r,"uagb-block-"+l)},React.createElement("div",{className:"uagb-icon-list__wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];a(230);var ZC={from:[{type:"block",blocks:["core/list"],transform:(e,t)=>{var a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,B,U,E,O,L,H,F,j,z,D,V,W,q,Z,$,Y,K,J,X,Q,ee,te,ae,le;const ie=t.map(t=>{var a,l;return Object(de.createBlock)("uagb/icon-list-child",{label:t.attributes.content,label_color:(null==e||null===(a=e.style)||void 0===a||null===(l=a.color)||void 0===l?void 0:l.text)||Pc(null==e?void 0:e.textColor)||""})});return Object(de.createBlock)("uagb/icon-list",{iconColor:(null==e||null===(a=e.style)||void 0===a||null===(l=a.color)||void 0===l?void 0:l.text)||Pc(null==e?void 0:e.textColor)||"",fontWeight:(null==e||null===(i=e.style)||void 0===i||null===(o=i.typography)||void 0===o?void 0:o.fontWeight)||"",fontSize:N((null==e||null===(n=e.style)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.fontSize)||"16"),fontSizeType:I((null==e||null===(s=e.style)||void 0===s||null===(c=s.typography)||void 0===c?void 0:c.fontSize)||""),labelColor:(null==e||null===(u=e.style)||void 0===u||null===(p=u.color)||void 0===p?void 0:p.text)||Pc(null==e?void 0:e.textColor)||"",labelLetterSpacing:N((null==e||null===(d=e.style)||void 0===d||null===(b=d.typography)||void 0===b?void 0:b.letterSpacing)||"0"),labelLetterSpacingType:I((null==e||null===(g=e.style)||void 0===g||null===(m=g.typography)||void 0===m?void 0:m.letterSpacing)||""),lineHeight:N((null==e||null===(y=e.style)||void 0===y||null===(f=y.typography)||void 0===f?void 0:f.lineHeight)||"0.6"),fontDecoration:(null==e||null===(h=e.style)||void 0===h||null===(v=h.typography)||void 0===v?void 0:v.textDecoration)||"",fontTransform:(null==e||null===(_=e.style)||void 0===_||null===(T=_.typography)||void 0===T?void 0:T.textTransform)||"",blockTopMargin:N((null==e||null===(C=e.style)||void 0===C||null===(S=C.spacing)||void 0===S||null===(k=S.margin)||void 0===k?void 0:k.top)||"16"),blockRightMargin:N((null==e||null===(w=e.style)||void 0===w||null===(P=w.spacing)||void 0===P||null===(x=P.margin)||void 0===x?void 0:x.right)||"0"),blockLeftMargin:N((null==e||null===(A=e.style)||void 0===A||null===(G=A.spacing)||void 0===G||null===(M=G.margin)||void 0===M?void 0:M.left)||"0"),blockBottomMargin:N((null==e||null===(R=e.style)||void 0===R||null===(B=R.spacing)||void 0===B||null===(U=B.margin)||void 0===U?void 0:U.bottom)||"16"),blockMarginUnit:I((null==e||null===(E=e.style)||void 0===E||null===(O=E.spacing)||void 0===O||null===(L=O.margin)||void 0===L?void 0:L.top)||"px"),blockTopPadding:N((null==e||null===(H=e.style)||void 0===H||null===(F=H.spacing)||void 0===F||null===(j=F.padding)||void 0===j?void 0:j.top)||"20"),blockRightPadding:N((null==e||null===(z=e.style)||void 0===z||null===(D=z.spacing)||void 0===D||null===(V=D.padding)||void 0===V?void 0:V.right)||"38"),blockLeftPadding:N((null==e||null===(W=e.style)||void 0===W||null===(q=W.spacing)||void 0===q||null===(Z=q.padding)||void 0===Z?void 0:Z.left)||"38"),blockBottomPadding:N((null==e||null===($=e.style)||void 0===$||null===(Y=$.spacing)||void 0===Y||null===(K=Y.padding)||void 0===K?void 0:K.bottom)||"20"),blockPaddingUnit:I((null==e||null===(J=e.style)||void 0===J||null===(X=J.spacing)||void 0===X||null===(Q=X.padding)||void 0===Q?void 0:Q.top)||"px"),size:N((null==e||null===(ee=e.style)||void 0===ee||null===(te=ee.typography)||void 0===te?void 0:te.fontSize)||"16"),sizeType:I((null==e||null===(ae=e.style)||void 0===ae||null===(le=ae.typography)||void 0===le?void 0:le.fontSize)||"")},ie)}}]};let $C={};$C=Object(F.applyFilters)("uagb/icon-list",ss($C)),Object(de.registerBlockType)("uagb/icon-list",{...$C,title:Object(r.__)("Icon List","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create a list highlighted with icons/images.","ultimate-addons-for-gutenberg"),icon:se.icon_list,keywords:[Object(r.__)("icon list","ultimate-addons-for-gutenberg"),Object(r.__)("image list","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:St,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"icon-list"}):React.createElement(WC,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l)},React.createElement("div",{className:"uagb-icon-list__wrap"},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:qC,transforms:ZC});function YC(){return(YC=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{image_icon:i,icon:o,image:n,icon_color:s,label_color:c,icon_hover_color:u,label_hover_color:p,icon_bg_color:d,icon_bg_hover_color:b,icon_border_color:g,icon_border_hover_color:m,link:y,target:f,disableLink:h,childTopMargin:v,childRightMargin:_,childLeftMargin:T,childBottomMargin:C,childTopMarginTablet:S,childRightMarginTablet:k,childLeftMarginTablet:w,childBottomMarginTablet:P,childTopMarginMobile:x,childRightMarginMobile:A,childLeftMarginMobile:G,childBottomMarginMobile:M,childMarginUnit:R,childMarginUnitTablet:B,childMarginUnitMobile:U,childMarginLink:E,childTopPadding:O,childRightPadding:L,childLeftPadding:H,childBottomPadding:F,childTopPaddingTablet:j,childRightPaddingTablet:z,childLeftPaddingTablet:D,childBottomPaddingTablet:N,childTopPaddingMobile:I,childRightPaddingMobile:V,childLeftPaddingMobile:W,childBottomPaddingMobile:q,childPaddingUnit:Z,childPaddingUnitTablet:$,childPaddingUnitMobile:Y,childPaddingLink:K,hideLabel:J}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:i,label:"image_icon"},className:"uagb-multi-button-alignment-control",options:[{value:"icon",label:"Icon"},{value:"image",label:"Image"},{value:"none",label:"None"}],showIcons:!1}),"icon"===i&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({icon:e})})),"image"===i&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({image:e}):a({image:null})},backgroundImage:n,onRemoveImage:()=>{a({image:""})}})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),checked:h,onChange:()=>a({disableLink:!h})}),h&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:y,data:{value:y,label:"link"},setAttributes:a,onChange:e=>a({link:e}),placeholder:Object(r.__)("Enter URL","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in New Tab","ultimate-addons-for-gutenberg"),checked:f,onChange:()=>a({target:!f})})))),React.createElement(il,nl,!J&&React.createElement(je,{title:Object(r.__)("Label","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"label_color"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"label_hover_color"},setAttributes:a}),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,"icon"===i&&""!==o&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"icon_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"icon_bg_color"},setAttributes:a})),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"icon_border_color"},setAttributes:a})),hover:React.createElement(React.Fragment,null,"icon"===i&&""!==o&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"icon_hover_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"icon_bg_hover_color"},setAttributes:a})),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"icon_border_hover_color"},setAttributes:a})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:v,label:"childTopMargin"},valueRight:{value:_,label:"childRightMargin"},valueBottom:{value:C,label:"childBottomMargin"},valueLeft:{value:T,label:"childLeftMargin"},valueTopTablet:{value:S,label:"childTopMarginTablet"},valueRightTablet:{value:k,label:"childRightMarginTablet"},valueBottomTablet:{value:P,label:"childBottomMarginTablet"},valueLeftTablet:{value:w,label:"childLeftMarginTablet"},valueTopMobile:{value:x,label:"childTopMarginMobile"},valueRightMobile:{value:A,label:"childRightMarginMobile"},valueBottomMobile:{value:M,label:"childBottomMarginMobile"},valueLeftMobile:{value:G,label:"childLeftMarginMobile"},unit:{value:R,label:"childMarginUnit"},mUnit:{value:U,label:"childMarginUnitMobile"},tUnit:{value:B,label:"childMarginUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:E,label:"childMarginLink"}}),React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:O,label:"childTopPadding"},valueRight:{value:L,label:"childRightPadding"},valueBottom:{value:F,label:"childBottomPadding"},valueLeft:{value:H,label:"childLeftPadding"},valueTopTablet:{value:j,label:"childTopPaddingTablet"},valueRightTablet:{value:z,label:"childRightPaddingTablet"},valueBottomTablet:{value:N,label:"childBottomPaddingTablet"},valueLeftTablet:{value:D,label:"childLeftPaddingTablet"},valueTopMobile:{value:I,label:"childTopPaddingMobile"},valueRightMobile:{value:V,label:"childRightPaddingMobile"},valueBottomMobile:{value:q,label:"childBottomPaddingMobile"},valueLeftMobile:{value:W,label:"childLeftPaddingMobile"},unit:{value:Z,label:"childPaddingUnit"},mUnit:{value:Y,label:"childPaddingUnitMobile"},tUnit:{value:$,label:"childPaddingUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:K,label:"childPaddingLink"}}))),React.createElement(il,YC({},rl,{parentProps:e}))))}),XC=a(126),QC=0,eS={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},tS={};tS.locals=XC.a.locals||{},tS.use=function(){return QC++||(KC=we()(XC.a,eS)),tS},tS.unuse=function(){QC>0&&!--QC&&(KC(),KC=null)};var aS=tS,lS=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(aS.use(),()=>{aS.unuse()}),[]);const{attributes:t,setAttributes:a,className:l,deviceType:i,onReplace:o,mergeBlocks:n}=e,{label:s,image_icon:c,icon:u,image:p,block_id:d,link:b,target:g,disableLink:m,hideLabel:y,fromParentIcon:f,imageSizeChild:h,imgTagHeight:v}=t,_=p&&null!=p&&p.alt?null==p?void 0:p.alt:"";let T="";Object(B.useEffect)(()=>{p&&p.url&&"none"!==c&&Zg(null==p?void 0:p.url,a,{type:"width",value:h})},[p,h]),"icon"===c?(u||f)&&(T=Ce(u||f,a)):p&&p.url&&"none"!==c&&(T=React.createElement("img",{className:"uagb-icon-list__source-image",alt:_,src:p.url,width:h,height:v,loading:"lazy"}));const C=g?"_blank":"_self",S=m?b:"/";return React.createElement("div",{className:Be()(l,"uagb-block-"+d,"uagb-editor-preview-mode-"+i.toLowerCase())},m&&React.createElement("a",{target:C,rel:"noopener noreferrer","aria-label":s.replace(/(<([^>]+)>)/gi,""),href:S}," "),T&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},T),!y&&React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Label Name","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({label:e}),className:"uagb-icon-list__label",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"],onMerge:n,onSplit:e=>e?Object(de.createBlock)("uagb/icon-list-child",{...t,label:e}):Object(de.createBlock)("uagb/icon-list-child"),onReplace:o,onRemove:()=>o([])}))});function iS(){return(iS=Object.assign||function(e){for(var t=1;t{const{isSelected:t,clientId:a,attributes:l,deviceType:i}=e,o=Object(B.useMemo)(()=>function(e,t,a){const l=a.toLowerCase(),{icon_color:i,label_color:o,icon_hover_color:n,label_hover_color:r,icon_bg_color:s,icon_bg_hover_color:c,icon_border_color:u,icon_border_hover_color:p,childTopMargin:d,childRightMargin:b,childLeftMargin:g,childBottomMargin:m,childTopMarginTablet:y,childRightMarginTablet:f,childLeftMarginTablet:h,childBottomMarginTablet:v,childTopMarginMobile:_,childRightMarginMobile:T,childLeftMarginMobile:C,childBottomMarginMobile:S,childMarginUnit:k,childMarginUnitTablet:w,childMarginUnitMobile:P,childTopPadding:x,childRightPadding:A,childLeftPadding:G,childBottomPadding:M,childTopPaddingTablet:R,childRightPaddingTablet:B,childLeftPaddingTablet:U,childBottomPaddingTablet:E,childTopPaddingMobile:O,childRightPaddingMobile:L,childLeftPaddingMobile:H,childBottomPaddingMobile:F,childPaddingUnit:j,childPaddingUnitTablet:z,childPaddingUnitMobile:D,block_id:N}=e,I={".wp-block-uagb-icon-list-child":{"margin-top":Vr(d,k),"margin-right":Vr(b,k),"margin-bottom":Vr(m,k),"margin-left":Vr(g,k),"padding-top":Vr(x,j),"padding-right":Vr(A,j),"padding-bottom":Vr(M,j),"padding-left":Vr(G,j)},".wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap svg":{color:i,fill:i},".wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap svg":{color:n,fill:n},".wp-block-uagb-icon-list-child .uagb-icon-list__label":{color:o},".wp-block-uagb-icon-list-child:hover .uagb-icon-list__label":{color:r},".wp-block-uagb-icon-list-child .uagb-icon-list__source-wrap":{background:s,"border-color":u},".wp-block-uagb-icon-list-child:hover .uagb-icon-list__source-wrap":{background:c,"border-color":p}};let V={},W={};V={".wp-block-uagb-icon-list-child":{"margin-top":Vr(y,w),"margin-right":Vr(f,w),"margin-bottom":Vr(v,w),"margin-left":Vr(h,w),"padding-top":Vr(R,z),"padding-right":Vr(B,z),"padding-bottom":Vr(E,z),"padding-left":Vr(U,z)}},W={".wp-block-uagb-icon-list-child":{"margin-top":Vr(_,P),"margin-right":Vr(T,P),"margin-bottom":Vr(S,P),"margin-left":Vr(C,P),"padding-top":Vr(O,D),"padding-right":Vr(L,D),"padding-bottom":Vr(F,D),"padding-left":Vr(H,D)}};let q="";const Z=".uagb-block-"+N;return q=ae(I,Z),"tablet"!==l&&"mobile"!==l||(q+=ae(V,""+Z,!0,"tablet"),"mobile"===l&&(q+=ae(W,""+Z,!0,"mobile"))),q}(l,0,i),[l,i]);return Object(B.useEffect)(()=>{ys()},[i]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),t&&React.createElement(JC,iS({},e,{hideLabel:void 0})),React.createElement(lS,e))});a(231);const nS={block_id:{type:"string"},label:{type:"html",selector:".uagb-icon-list__label",default:"#Label"},image_icon:{type:"string",default:"icon"},hideLabel:{type:"boolean",default:!1},icon:{type:"string",default:"fab fa-arrow-circle-right"},image:{type:"object"},icon_color:{type:"string",default:"#3a3a3a"},label_color:{type:"string"},icon_hover_color:{type:"string"},label_hover_color:{type:"string"},icon_bg_color:{type:"string"},icon_bg_hover_color:{type:"string"},icon_border_color:{type:"string"},icon_border_hover_color:{type:"string"},link:{type:"string",default:"#"},target:{type:"boolean",default:!1},disableLink:{type:"boolean",default:!0},deviceType:{type:"string",default:"Desktop"}};var rS=[{attributes:nS,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t;let b="";"icon"==i?(o||d)&&(b=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(o||d))):n&&n.url&&"none"!==i&&(b=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url}));const g=c?"_blank":"_self",m=u?"/":s;return React.createElement("div",{className:Be()("uagb-icon-list-repeater","uagb-icon-list__wrapper",a,"uagb-block-"+r)},!u&&React.createElement("a",{target:g,rel:"noopener noreferrer",href:m}),React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},b),!p&&""!=l&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))))}},{attributes:nS,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p}=t;let d="";"icon"===i?o&&(d=React.createElement("span",{className:"uagb-icon-list__source-icon"},kb(o))):n&&n.url&&(d=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:n.alt}));const b=c?"_blank":"_self",g=u?"/":s;return React.createElement("div",{className:Be()("uagb-icon-list-repeater","uagb-icon-list__wrapper",a,"uagb-block-"+r)},!u&&React.createElement("a",{target:b,"aria-label":l,rel:"noopener noreferrer",href:g}," "),React.createElement("div",{className:"uagb-icon-list__content-wrap"},React.createElement("span",{className:"uagb-icon-list__source-wrap"},d),!p&&""!==l&&React.createElement("div",{className:"uagb-icon-list__label-wrap"},React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))))}},{attributes:nS,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t,b=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let g="";"icon"===i?(o||d)&&(g=Ce(o||d)):n&&n.url&&"none"!==i&&(g=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:b}));const m=c?"_blank":"_self",y=u?s:"/";return React.createElement("div",{className:Be()(a,"uagb-block-"+r)},u&&React.createElement("a",{target:m,"aria-label":l,rel:"noopener noreferrer",href:y}," "),g&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},g),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))}},{attributes:kt,save(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t,b=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let g="";"icon"===i?(o||d)&&(g=Ce(o||d)):n&&n.url&&"none"!==i&&(g=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:b}));const m=c?"_blank":"_self",y=u?s:"/";return React.createElement("div",{className:Be()(a,"uagb-block-"+r)},u&&React.createElement("a",{target:m,"aria-label":l.replace(/(<([^>]+)>)/gi,""),rel:"noopener noreferrer",href:y}," "),g&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},g),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))}},{attributes:{block_id:{type:"string"},label:{type:"html",selector:".uagb-icon-list__label",default:Object(r.__)("List item","ultimate-addons-for-gutenberg")},image_icon:{type:"string",default:"icon"},hideLabel:{type:"boolean",default:!1},disableIcon:{type:"boolean",default:!1},icon:{type:"string",default:""},image:{type:"object"},icon_color:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-color"}},label_color:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},icon_hover_color:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},label_hover_color:{type:"string",UAGCopyPaste:{styleType:"main-title-hover-color"}},icon_bg_color:{type:"string",UAGCopyPaste:{styleType:"icon-bg-color"},default:""},icon_bg_hover_color:{type:"string",UAGCopyPaste:{styleType:"icon-bg-hover-color"}},icon_border_color:{type:"string",UAGCopyPaste:{styleType:"icon-border-color"},default:""},icon_border_hover_color:{type:"string",UAGCopyPaste:{styleType:"icon-border-hover-color"}},link:{type:"string",default:"#"},target:{type:"boolean",default:!1},disableLink:{type:"boolean",default:!1},fromParentIcon:{type:"string",default:"circle-arrow-right"},childTopMargin:{type:"number",UAGCopyPaste:{styleType:"child-top-margin"}},childRightMargin:{type:"number",UAGCopyPaste:{styleType:"child-right-margin"}},childLeftMargin:{type:"number",UAGCopyPaste:{styleType:"child-left-margin"}},childBottomMargin:{type:"number",UAGCopyPaste:{styleType:"child-bottom-margin"}},childTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-top-margin-tablet"}},childRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-right-margin-tablet"}},childLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-left-margin-tablet"}},childBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"child-bottom-margin-tablet"}},childTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-top-margin-mobile"}},childRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-right-margin-mobile"}},childLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-left-margin-mobile"}},childBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"child-bottom-margin-mobile"}},childMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-margin-unit"}},childMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-margin-unit-tablet"}},childMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-margin-unit-mobile"}},childMarginLink:{type:"boolean",default:!1},childTopPadding:{type:"number",UAGCopyPaste:{styleType:"child-top-padding"}},childRightPadding:{type:"number",UAGCopyPaste:{styleType:"child-right-padding"}},childLeftPadding:{type:"number",UAGCopyPaste:{styleType:"child-left-padding"}},childBottomPadding:{type:"number",UAGCopyPaste:{styleType:"child-bottom-padding"}},childTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-top-padding-tablet"}},childRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-right-padding-tablet"}},childLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-left-padding-tablet"}},childBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"child-bottom-padding-tablet"}},childTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-top-padding-mobile"}},childRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-right-padding-mobile"}},childLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-left-padding-mobile"}},childBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"child-bottom-padding-mobile"}},childPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-padding-unit"}},childPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-padding-unit-tablet"}},childPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"child-padding-unit-mobile"}},childPaddingLink:{type:"boolean",default:!0}},save:function(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d}=t,b=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let g="";"icon"===i?(o||d)&&(g=Ce(o||d)):n&&n.url&&"none"!==i&&(g=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,alt:b}));const m=c?"_blank":"_self",y=u?s:"/";let f=u;return"yes"===uagb_blocks_info.uagb_old_user_less_than_2&&(f=!u),React.createElement("div",{className:Be()(a,"uagb-block-"+r)},f&&React.createElement("a",{target:m,"aria-label":l.replace(/(<([^>]+)>)/gi,""),rel:"noopener noreferrer",href:y}," "),g&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},g),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))}}];let sS={};function cS(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=e.split(" ")[t-1];switch(a){case"flex":switch(l){case"top":case"left":l="flex-start";break;case"bottom":case"right":l="flex-end"}}return l}sS=Object(F.applyFilters)("uagb/icon-list-child",ss(sS)),Object(de.registerBlockType)("uagb/icon-list-child",{...sS,title:Object(r.__)("List Item","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add and customize content for this list component.","ultimate-addons-for-gutenberg"),icon:se.icon_list_child,parent:["uagb/icon-list"],attributes:kt,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"icon-list-child",isChildren:!0}):React.createElement(oS,e),save:function(e){const{attributes:t,className:a}=e,{label:l,image_icon:i,icon:o,image:n,block_id:r,link:s,target:c,disableLink:u,hideLabel:p,fromParentIcon:d,imageSizeChild:b,imgTagHeight:g}=t,m=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let y="";"icon"===i?(o||d)&&(y=Ce(o||d)):n&&n.url&&"none"!==i&&(y=React.createElement("img",{className:"uagb-icon-list__source-image",src:n.url,width:b,height:g,loading:"lazy",alt:m}));const f=c?"_blank":"_self",h=u?s:"/";return React.createElement("div",{className:Be()(a,"uagb-block-"+r)},u&&React.createElement("a",{target:f,"aria-label":l.replace(/(<([^>]+)>)/gi,""),rel:"noopener noreferrer",href:h}," "),y&&React.createElement("span",{className:"uagb-icon-list__source-wrap"},y),!p&&""!==l&&React.createElement(ge.RichText.Content,{tagName:"span",value:l,className:"uagb-icon-list__label"}))},deprecated:rS});var uS=e=>{var t,a;const{slug:l="media",label:i=Object(r.__)("Media","ultimate-addons-for-gutenberg"),disableLabel:o=!1,mediaType:n,onSelectMedia:s,mediaGallery:c,mediaIDs:u,onRemoveMedia:p,allowedTypes:d,createGallery:b,help:g=!1}=e,m=se.gallery_placeholder;let y,f;switch(n){case"images":y=Object(r.__)("Select Images","ultimate-addons-for-gutenberg"),f=Object(r.__)("Replace Images","ultimate-addons-for-gutenberg");break;default:y=Object(r.__)("Select Media","ultimate-addons-for-gutenberg"),f=Object(r.__)("Replace Media","ultimate-addons-for-gutenberg")}b&&(f=Object(r.__)("Edit Gallery","ultimate-addons-for-gutenberg"));const h=e=>React.createElement("div",{className:"spectra-media-control__button spectra-media-control__button--"+e},se[e]);return React.createElement(Le.BaseControl,{className:"spectra-media-control",id:"uagb-option-selector-"+l,label:i,hideLabelFromVision:o},React.createElement("div",{className:"spectra-media-control__wrapper"},(null===(t=c[0])||void 0===t?void 0:t.url)&&React.createElement("div",{className:"spectra-media-control__icon spectra-media-control__icon--stroke"},m),React.createElement(ge.MediaUpload,{title:y,onSelect:s,allowedTypes:d||["image","video","audio"],multiple:!0,value:u,gallery:b,render:e=>{let{open:t}=e;return(e=>{var t;const a=null!==(t=c[0])&&void 0!==t&&t.url?"replace":"add";return React.createElement("button",{className:"spectra-media-control__clickable spectra-media-control__clickable--"+a,onClick:e},"add"===a?h(a):React.createElement("div",{className:"uag-control-label"},f))})(t)}}),p&&(null===(a=c[0])||void 0===a?void 0:a.url)&&React.createElement("button",{className:"spectra-media-control__clickable spectra-media-control__clickable--close",onClick:p},h("close"))),React.createElement(De,{text:g}))};const pS=[{defaultAttributes:Ra},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:3},{label:"imageBoxShadowVOffset",value:8},{label:"imageBoxShadowBlur",value:12},{label:"imageBoxShadowSpread",value:0},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:18},{label:"imageBoxShadowBlur",value:40},{label:"imageBoxShadowSpread",value:-10},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:4},{label:"imageBoxShadowBlur",value:12},{label:"imageBoxShadowSpread",value:0},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:2},{label:"imageBoxShadowBlur",value:5},{label:"imageBoxShadowSpread",value:-1},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:50},{label:"imageBoxShadowBlur",value:50},{label:"imageBoxShadowSpread",value:-30},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffset",value:0},{label:"imageBoxShadowVOffset",value:20},{label:"imageBoxShadowBlur",value:30},{label:"imageBoxShadowSpread",value:0},{label:"imageBoxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '}],dS=[{defaultAttributes:Ra},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:3},{label:"imageBoxShadowVOffsetHover",value:8},{label:"imageBoxShadowBlurHover",value:12},{label:"imageBoxShadowSpreadHover",value:15},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:18},{label:"imageBoxShadowBlurHover",value:40},{label:"imageBoxShadowSpreadHover",value:-10},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:4},{label:"imageBoxShadowBlurHover",value:12},{label:"imageBoxShadowSpreadHover",value:0},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:2},{label:"imageBoxShadowBlurHover",value:5},{label:"imageBoxShadowSpreadHover",value:-1},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:50},{label:"imageBoxShadowBlurHover",value:50},{label:"imageBoxShadowSpreadHover",value:-30},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"imageBoxShadowHOffsetHover",value:0},{label:"imageBoxShadowVOffsetHover",value:20},{label:"imageBoxShadowBlurHover",value:30},{label:"imageBoxShadowSpreadHover",value:0},{label:"imageBoxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '}];function bS(){return(bS=Object.assign||function(e){for(var t=1;t{const{lightboxPreview:t,setLightboxPreview:a,attributes:l,setAttributes:i,clientId:o,deviceType:s}=e,{block_id:c,readyToRender:u,mediaGallery:p,mediaIDs:d,feedLayout:b,imageDisplayCaption:g,galleryImageSize:m,galleryImageSizeTablet:y,galleryImageSizeMobile:f,imageClickEvent:h,lightboxDisplayCaptions:v,lightboxThumbnails:_,lightboxDisplayCount:T,lightboxCloseIcon:C,lightboxCaptionHeight:S,lightboxCaptionHeightTablet:k,lightboxCaptionHeightMobile:w,lightboxIconSize:P,lightboxIconSizeTablet:x,lightboxIconSizeMobile:A,columnsDesk:G,columnsTab:M,columnsMob:R,gridImageGap:U,gridImageGapTab:E,gridImageGapMob:O,gridImageGapUnit:L,gridImageGapUnitTab:H,gridImageGapUnitMob:j,captionVisibility:z,captionDisplayType:D,imageCaptionAlignment:N,imageCaptionAlignment01:I,imageCaptionAlignment02:V,imageDefaultCaption:W,captionPaddingTop:q,captionPaddingRight:Z,captionPaddingBottom:$,captionPaddingLeft:Y,captionPaddingTopTab:K,captionPaddingRightTab:J,captionPaddingBottomTab:X,captionPaddingLeftTab:Q,captionPaddingTopMob:ee,captionPaddingRightMob:te,captionPaddingBottomMob:ae,captionPaddingLeftMob:le,captionPaddingUnit:ie,captionPaddingUnitTab:oe,captionPaddingUnitMob:ne,captionPaddingUnitLink:re,captionGap:se,captionGapUnit:ce,feedMarginTop:ue,feedMarginRight:pe,feedMarginBottom:de,feedMarginLeft:be,feedMarginTopTab:me,feedMarginRightTab:ye,feedMarginBottomTab:fe,feedMarginLeftTab:he,feedMarginTopMob:ve,feedMarginRightMob:_e,feedMarginBottomMob:Te,feedMarginLeftMob:Se,feedMarginUnit:ke,feedMarginUnitTab:we,feedMarginUnitMob:Pe,feedMarginUnitLink:xe,carouselStartAt:Ae,carouselSquares:Ge,carouselLoop:Me,carouselAutoplay:Re,carouselAutoplaySpeed:Be,carouselPauseOnHover:Ue,carouselTransitionSpeed:Oe,feedPagination:He,paginateUseArrows:Fe,paginateUseDots:ze,paginateUseLoader:De,paginateLimit:Ne,paginateButtonAlign:Ie,paginateButtonPaddingTop:Ve,paginateButtonPaddingRight:We,paginateButtonPaddingBottom:qe,paginateButtonPaddingLeft:Ze,paginateButtonPaddingTopTab:$e,paginateButtonPaddingRightTab:Ye,paginateButtonPaddingBottomTab:Ke,paginateButtonPaddingLeftTab:Je,paginateButtonPaddingTopMob:Xe,paginateButtonPaddingRightMob:Qe,paginateButtonPaddingBottomMob:et,paginateButtonPaddingLeftMob:tt,paginateButtonPaddingUnit:at,paginateButtonPaddingUnitTab:lt,paginateButtonPaddingUnitMob:it,paginateButtonPaddingUnitLink:ot,imageEnableZoom:nt,imageZoomType:rt,captionBackgroundEnableBlur:st,captionBackgroundBlurAmount:ct,captionBackgroundBlurAmountHover:ut,lightboxEdgeDistance:pt,lightboxEdgeDistanceTablet:dt,lightboxEdgeDistanceMobile:bt,lightboxBackgroundEnableBlur:gt,lightboxBackgroundBlurAmount:mt,lightboxBackgroundColor:yt,lightboxCaptionColor:ft,lightboxCaptionBackgroundColor:ht,lightboxIconColor:vt,captionLoadGoogleFonts:_t,captionFontFamily:Tt,captionFontWeight:Ct,captionFontStyle:St,captionTransform:kt,captionDecoration:wt,captionFontSizeType:Pt,captionFontSize:xt,captionFontSizeMob:At,captionFontSizeTab:Gt,captionLineHeightType:Mt,captionLineHeight:Rt,captionLineHeightMob:Bt,captionLineHeightTab:Ut,loadMoreLoadGoogleFonts:Et,loadMoreFontFamily:Ot,loadMoreFontWeight:Lt,loadMoreFontStyle:Ht,loadMoreTransform:Ft,loadMoreDecoration:jt,loadMoreFontSizeType:zt,loadMoreFontSize:Dt,loadMoreFontSizeMob:Nt,loadMoreFontSizeTab:It,loadMoreLineHeightType:Vt,loadMoreLineHeight:Wt,loadMoreLineHeightMob:qt,loadMoreLineHeightTab:Zt,lightboxLoadGoogleFonts:$t,lightboxFontFamily:Yt,lightboxFontWeight:Kt,lightboxFontStyle:Jt,lightboxTransform:Xt,lightboxDecoration:Qt,lightboxFontSizeType:ea,lightboxFontSize:ta,lightboxFontSizeMob:aa,lightboxFontSizeTab:la,lightboxLineHeightType:ia,lightboxLineHeight:oa,lightboxLineHeightMob:na,lightboxLineHeightTab:ra,captionBackgroundEffect:sa,captionBackgroundEffectHover:ca,captionBackgroundEffectAmount:ua,captionBackgroundEffectAmountHover:pa,captionColor:da,captionColorHover:ba,captionBackgroundColor:ga,captionBackgroundColorHover:ma,overlayColor:ya,overlayColorHover:fa,captionSeparateColors:ha,paginateArrowDistance:va,paginateArrowDistanceUnit:_a,paginateArrowSize:Ta,paginateDotDistance:Ca,paginateDotDistanceUnit:Sa,paginateLoaderSize:ka,paginateButtonTextColor:wa,paginateButtonTextColorHover:Pa,paginateColor:xa,paginateColorHover:Aa,imageBoxShadowColor:Ga,imageBoxShadowHOffset:Ma,imageBoxShadowVOffset:Ra,imageBoxShadowBlur:Ba,imageBoxShadowSpread:Ua,imageBoxShadowPosition:Ea,imageBoxShadowColorHover:Oa,imageBoxShadowHOffsetHover:La,imageBoxShadowVOffsetHover:Ha,imageBoxShadowBlurHover:Fa,imageBoxShadowSpreadHover:ja,imageBoxShadowPositionHover:za,disableLazyLoad:Da}=l,{imageSizes:Ia}=Object(n.useSelect)(e=>{const{getSettings:t}=e(ge.store),{imageSizes:a}=t();return{imageSizes:a}},[o]),Va=Ia.reduce((e,t)=>(e.push({label:t.name,value:t.slug}),e),[]);let Wa,qa,Za,$a;const Ya="masonry"!==b||De?Object(r.__)("Color","ultimate-addons-for-gutenberg"):Object(r.__)("Background Color","ultimate-addons-for-gutenberg");switch(D){case"overlay":Wa=Object(r.__)("Overlay Color","ultimate-addons-for-gutenberg");break;case"bar-inside":case"bar-outside":Wa=Object(r.__)("Bar Color","ultimate-addons-for-gutenberg");break;default:Wa=Object(r.__)("Background Color","ultimate-addons-for-gutenberg")}switch(sa){case"grayscale":qa=Object(r.__)("Grayscale Amount","ultimate-addons-for-gutenberg");break;case"sepia":qa=Object(r.__)("Sepia Amount","ultimate-addons-for-gutenberg");break;default:qa=Object(r.__)("Effect Amount","ultimate-addons-for-gutenberg")}switch(ca){case"grayscale":Za=Object(r.__)("Grayscale Amount","ultimate-addons-for-gutenberg");break;case"sepia":Za=Object(r.__)("Sepia Amount","ultimate-addons-for-gutenberg");break;default:Za=Object(r.__)("Effect Amount","ultimate-addons-for-gutenberg")}switch(b){case"carousel":$a=Object(r.__)("Carousel","ultimate-addons-for-gutenberg");break;case"tiled":$a=Object(r.__)("Tiled","ultimate-addons-for-gutenberg");break;default:$a=Object(r.__)("Pagination","ultimate-addons-for-gutenberg")}Object(B.useEffect)(()=>{i({imageCaptionAlignment:`${I} ${V}`})},[I,V]);Object(B.useEffect)(()=>{"bar-outside"!==D||"tiled"!==b&&"grid"!==b||i({captionDisplayType:"bar-inside"}),"tiled"===b&&(G<4&&i({columnsDesk:4}),M<4&&i({columnsTab:4}),R<4&&i({columnsMob:4}))},[b]),Object(B.useEffect)(()=>{"bar-outside"===D&&(i({captionVisibility:"always"}),"center"===I&&i({imageCaptionAlignment01:"bottom"}))},[D]),Object(B.useEffect)(()=>{"lightbox"!==h&&a(!1)},[h]),Object(F.doAction)("spectra.image-gallery.settings.actions",l,i);const Ka=e=>React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:e?ba||"":da||"",data:{value:e?ba:da,label:e?"captionColorHover":"captionColor"},setAttributes:i}),React.createElement(hl,{label:Wa,colorValue:e?ma||"":ga||"",data:{value:e?ma:ga,label:e?"captionBackgroundColorHover":"captionBackgroundColor"},setAttributes:i})),Ja=e=>React.createElement(React.Fragment,null,st&&React.createElement(Qa,{label:Object(r.__)("Blur Amount","ultimate-addons-for-gutenberg"),setAttributes:i,value:e?ut:ct,data:{value:e?ut:ct,label:e?"captionBackgroundBlurAmountHover":"captionBackgroundBlurAmount"},min:0,max:10,displayUnit:!1}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Effect","ultimate-addons-for-gutenberg"),data:{value:e?ca:sa,label:e?"captionBackgroundEffectHover":"captionBackgroundEffect"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"grayscale",label:Object(r.__)("Grayscale","ultimate-addons-for-gutenberg")},{value:"sepia",label:Object(r.__)("Sepia","ultimate-addons-for-gutenberg")}]}),Xa(e?ca:sa,e),!g&&React.createElement(hl,{label:Object(r.__)("Overlay Color","ultimate-addons-for-gutenberg"),colorValue:e?fa||"":ya||"",data:{value:e?fa:ya,label:e?"overlayColorHover":"overlayColor"},setAttributes:i})),Xa=(e,t)=>{switch(e){case"grayscale":case"sepia":return React.createElement(Qa,{label:t?Za:qa,setAttributes:i,value:t?pa:ua,data:{value:t?pa:ua,label:t?"captionBackgroundEffectAmountHover":"captionBackgroundEffectAmount"},min:0,max:100,displayUnit:!1})}},el=e=>React.createElement(React.Fragment,null,React.createElement(hl,{label:Ya,colorValue:e?Aa||"":xa||"",data:{value:e?Aa:xa,label:e?"paginateColorHover":"paginateColor"},setAttributes:i}),"masonry"===b&&!De&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:e?Pa||"":wa||"",data:{value:e?Pa:wa,label:e?"paginateButtonTextColorHover":"paginateButtonTextColor"},setAttributes:i}))),al=()=>React.createElement("p",{style:{padding:"16px"}},Object(r.__)("Upload images to enable settings","ultimate-addons-for-gutenberg")),ll=Boolean(uagb_blocks_info.spectra_pro_status),sl=[{label:Object(r.__)("None","ultimate-addons-for-gutenberg"),value:"none",disabled:!1},{label:Object(r.__)("Lightbox","ultimate-addons-for-gutenberg"),value:"lightbox",disabled:!1},{label:Object(r.__)("Open Image","ultimate-addons-for-gutenberg"),value:"image",disabled:!1},{label:Object(r.__)("Custom URL (Spectra Pro)","ultimate-addons-for-gutenberg"),value:"url",disabled:!ll}];return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,!u&&al(),u&&React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(uS,{slug:"gallery",label:Object(r.__)("Update Gallery","ultimate-addons-for-gutenberg"),disableLabel:!0,mediaType:"images",onSelectMedia:e=>{let t=!0;const a=[];e.forEach(e=>{e&&e.url&&e.type&&"image"===e.type?a.push(e.id):t=!1}),i(t?{mediaGallery:e,mediaIDs:a,readyToRender:!0}:{mediaGallery:p,mediaIDs:d,readyToRender:!!d})},mediaGallery:p,mediaIDs:d,allowedTypes:["image"],createGallery:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Disable Lazy Loading","ultimate-addons-for-gutenberg"),checked:Da,onChange:()=>{i({disableLazyLoad:!Da})}}),React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:b,label:"feedLayout"},setAttributes:i,options:[{label:Object(r.__)("Grid","ultimate-addons-for-gutenberg"),value:"grid"},{label:Object(r.__)("Masonry","ultimate-addons-for-gutenberg"),value:"masonry"},{label:Object(r.__)("Carousel","ultimate-addons-for-gutenberg"),value:"carousel"},{label:Object(r.__)("Tiled","ultimate-addons-for-gutenberg"),value:"tiled"}]}),React.createElement(Td,{data:{sizeSlug:{label:"galleryImageSize",value:m},sizeSlugTablet:{label:"galleryImageSizeTablet",value:y},sizeSlugMobile:{label:"galleryImageSizeMobile",value:f}},setAttributes:i,imageSizeOptions:Va,isResizable:!1}),React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:G,label:"columnsDesk"},tablet:{value:M,label:"columnsTab"},mobile:{value:R,label:"columnsMob"}},min:"tiled"===b?4:1,max:"tiled"===b&&Math.min(8,p.length)<4?4:Math.min(8,p.length),displayUnit:!1,setAttributes:i}),React.createElement(Pi,{label:Object(r.__)("Click Event","ultimate-addons-for-gutenberg"),data:{value:h,label:"imageClickEvent"},setAttributes:i,options:sl})),u&&"tiled"!==b&&React.createElement(je,{title:$a,initialOpen:!1},"carousel"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Starting Image","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ae+1,data:{value:Ae,label:"carouselStartAt"},onChange:e=>i({carouselStartAt:e-1}),min:1,max:p.length,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:i,value:Oe,data:{value:Oe,label:"carouselTransitionSpeed"},min:0,max:9999,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Crop Images to Squares","ultimate-addons-for-gutenberg"),checked:Ge,onChange:()=>i({carouselSquares:!Ge})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Carousel","ultimate-addons-for-gutenberg"),checked:Me,onChange:()=>i({carouselLoop:!Me})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Dots","ultimate-addons-for-gutenberg"),checked:ze,onChange:()=>i({paginateUseDots:!ze})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Arrows","ultimate-addons-for-gutenberg"),checked:Fe,onChange:()=>i({paginateUseArrows:!Fe})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:Re,onChange:()=>i({carouselAutoplay:!Re})}),Re&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:i,value:Be,data:{value:Be,label:"carouselAutoplaySpeed"},min:0,max:5e3,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Pause on Hover","ultimate-addons-for-gutenberg"),checked:Ue,onChange:()=>i({carouselPauseOnHover:!Ue})}))),("grid"===b||"masonry"===b)&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),checked:He,onChange:()=>{switch(b){case"grid":return i({paginateUseArrows:!He,paginateUseDots:!He,feedPagination:!He});case"masonry":return i({paginateUseLoader:!He,feedPagination:!He})}}}),He&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Images Per Page","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ne,data:{value:Ne,label:"paginateLimit"},min:1,max:100,displayUnit:!1}),"masonry"===b&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:i,label:Object(r.__)("Pagination Type","ultimate-addons-for-gutenberg"),data:{value:De,label:"paginateUseLoader"},options:[{value:!0,label:Object(r.__)("Loader","ultimate-addons-for-gutenberg")},{value:!1,label:Object(r.__)("Button","ultimate-addons-for-gutenberg")}]}),!De&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:i,label:Object(r.__)("Button Alignment","ultimate-addons-for-gutenberg"),data:{value:Ie,label:"paginateButtonAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"flex-start",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"flex-end",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})))))),u&&"lightbox"===h&&React.createElement(je,{title:Object(r.__)("Lightbox","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Preview Lightbox (Desktop)","ultimate-addons-for-gutenberg"),checked:"Desktop"===s&&t,disabled:"Desktop"!==s||void 0,onChange:()=>a(!t),help:"Desktop"===s?Object(r.__)("Note: The lightbox preview will automatically close when the page reloads, and it will be displayed in fullscreen mode on the front end. ","ultimate-addons-for-gutenberg"):Object(r.__)("To preview this in the editor, use Desktop mode.","ultimate-addons-for-gutenberg")}),React.createElement(Mr,{label:Object(r.__)("Close Icon","ultimate-addons-for-gutenberg"),value:C,onChange:e=>i({lightboxCloseIcon:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Image Number","ultimate-addons-for-gutenberg"),checked:T,onChange:()=>i({lightboxDisplayCount:!T})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Captions","ultimate-addons-for-gutenberg"),checked:v,onChange:()=>i({lightboxDisplayCaptions:!v})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Thumbnails","ultimate-addons-for-gutenberg"),checked:_,onChange:()=>i({lightboxThumbnails:!_})}),(C||T)&&React.createElement(tl,{label:Object(r.__)("Icon/Number Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:P,label:"lightboxIconSize"},tablet:{value:x,label:"lightboxIconSizeTablet"},mobile:{value:A,label:"lightboxIconSizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:i}),v&&React.createElement(tl,{label:Object(r.__)("Caption Min Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:S,label:"lightboxCaptionHeight"},tablet:{value:k,label:"lightboxCaptionHeightTablet"},mobile:{value:w,label:"lightboxCaptionHeightMobile"}},min:0,max:300,displayUnit:!1,setAttributes:i})),u&&React.createElement(je,{title:Object(r.__)("Caption","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Captions","ultimate-addons-for-gutenberg"),checked:g,onChange:()=>i({imageDisplayCaption:!g})}),g&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:D,label:"captionDisplayType"},setAttributes:i,options:"grid"===b||"tiled"===b?[{label:Object(r.__)("Overlay","ultimate-addons-for-gutenberg"),value:"overlay"},{label:Object(r.__)("Bar Over Image","ultimate-addons-for-gutenberg"),value:"bar-inside"}]:[{label:Object(r.__)("Overlay","ultimate-addons-for-gutenberg"),value:"overlay"},{label:Object(r.__)("Bar Over Image","ultimate-addons-for-gutenberg"),value:"bar-inside"},{label:Object(r.__)("Bar Outside Image","ultimate-addons-for-gutenberg"),value:"bar-outside"}]}),"bar-outside"!==D?React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Visibility","ultimate-addons-for-gutenberg"),data:{value:z,label:"captionVisibility"},setAttributes:i},React.createElement("option",{value:"hover"},"Show on hover"),React.createElement("option",{value:"antiHover"},"Hide on hover"),React.createElement("option",{value:"always"},"Always Visible")),React.createElement($i,{data:{label:"imageCaptionAlignment",value:N},onChange:e=>{var t;i({imageCaptionAlignment01:cS(t=e,1),imageCaptionAlignment02:cS(t,2)})}})):React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:i,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:V,label:"imageCaptionAlignment02"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Bar Position","ultimate-addons-for-gutenberg"),data:{value:I,label:"imageCaptionAlignment01"},options:[{value:"top",label:Object(r.__)("Above","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Below","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Qa,{label:Object(r.__)("Gap","ultimate-addons-for-gutenberg"),setAttributes:i,value:se,data:{value:se,label:"captionGap"},min:0,max:100,unit:{value:ce,label:"captionGapUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),React.createElement(Ss,{label:Object(r.__)("Default","ultimate-addons-for-gutenberg"),data:{value:W,label:"imageDefaultCaption"},setAttributes:i,value:W,variant:"inline"})))),React.createElement(il,nl,!u&&al(),u&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Hover Zoom","ultimate-addons-for-gutenberg"),checked:nt,onChange:()=>i({imageEnableZoom:!nt})}),nt&&React.createElement(Na,{setAttributes:i,label:Object(r.__)("Zoom Type","ultimate-addons-for-gutenberg"),data:{value:rt,label:"imageZoomType"},options:[{value:"zoom-in",label:Object(r.__)("Zoom In","ultimate-addons-for-gutenberg")},{value:"zoom-out",label:Object(r.__)("Zoom Out","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Blur Overlay","ultimate-addons-for-gutenberg"),checked:st,onChange:()=>i({captionBackgroundEnableBlur:!st})}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:Ja(!1),hover:Ja(!0)}),React.createElement(Hi,{setAttributes:i,prefix:"image",attributes:l,deviceType:s}),React.createElement(tl,{label:Object(r.__)("Gap Between Images","ultimate-addons-for-gutenberg"),data:{desktop:{value:U,label:"gridImageGap",unit:{value:L,label:"gridImageGapUnit"}},tablet:{value:E,label:"gridImageGapTab",unit:{value:H,label:"gridImageGapUnitTab"}},mobile:{value:O,label:"gridImageGapMob",unit:{value:j,label:"gridImageGapUnitMob"}}},min:0,max:100,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:i})),u&&"lightbox"===h&&React.createElement(je,{title:Object(r.__)("Lightbox","ultimate-addons-for-gutenberg"),initialOpen:!1},(v||T)&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:$t,label:"lightboxLoadGoogleFonts"},fontFamily:{value:Yt,label:"lightboxFontFamily"},fontWeight:{value:Kt,label:"lightboxFontWeight"},fontStyle:{value:Jt,label:"lightboxFontStyle"},transform:{value:Xt,label:"lightboxTransform"},decoration:{value:Qt,label:"lightboxDecoration"},fontSizeType:{value:ea,label:"lightboxFontSizeType"},fontSize:{value:ta,label:"lightboxFontSize"},fontSizeMobile:{value:aa,label:"lightboxFontSizeMob"},fontSizeTablet:{value:la,label:"lightboxFontSizeTab"},lineHeightType:{value:ia,label:"lightboxLineHeightType"},lineHeight:{value:oa,label:"lightboxLineHeight"},lineHeightMobile:{value:na,label:"lightboxLineHeightMob"},lineHeightTablet:{value:ra,label:"lightboxLineHeightTab"}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Blur Background","ultimate-addons-for-gutenberg"),checked:gt,onChange:()=>i({lightboxBackgroundEnableBlur:!gt})}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:yt||"",data:{value:yt,label:"lightboxBackgroundColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Accent Color","ultimate-addons-for-gutenberg"),colorValue:vt||"",data:{value:vt,label:"lightboxIconColor"},setAttributes:i,hint:Object(r.__)("This color affects the Image Count, Close Button, and Arrows","ultimate-addons-for-gutenberg")}),v&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Caption Color","ultimate-addons-for-gutenberg"),colorValue:ft||"",data:{value:ft,label:"lightboxCaptionColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Caption Background","ultimate-addons-for-gutenberg"),colorValue:ht||"",data:{value:ht,label:"lightboxCaptionBackgroundColor"},setAttributes:i})),gt&&React.createElement(Qa,{label:Object(r.__)("Blur Amount","ultimate-addons-for-gutenberg"),setAttributes:i,value:mt,data:{value:mt,label:"lightboxBackgroundBlurAmount"},min:0,max:10,displayUnit:!1}),React.createElement(tl,{label:Object(r.__)("Edge Distance","ultimate-addons-for-gutenberg"),data:{desktop:{value:pt,label:"lightboxEdgeDistance"},tablet:{value:dt,label:"lightboxEdgeDistanceTablet"},mobile:{value:bt,label:"lightboxEdgeDistanceMobile"}},min:0,max:100,displayUnit:!1,setAttributes:i})),u&&g&&React.createElement(je,{title:Object(r.__)("Caption","ultimate-addons-for-gutenberg"),initialOpen:!1},"always"===z&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Hover Colors","ultimate-addons-for-gutenberg"),checked:ha,onChange:()=>i({captionSeparateColors:!ha})}),"always"===z&&ha?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:Ka(!1),hover:Ka(!0),disableBottomSeparator:"overlay"===D}):React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:da||"",data:{value:da,label:"captionColor"},setAttributes:i}),React.createElement(hl,{label:Wa,colorValue:ga||"",data:{value:ga,label:"captionBackgroundColor"},setAttributes:i})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:_t,label:"captionLoadGoogleFonts"},fontFamily:{value:Tt,label:"captionFontFamily"},fontWeight:{value:Ct,label:"captionFontWeight"},fontStyle:{value:St,label:"captionFontStyle"},transform:{value:kt,label:"captionTransform"},decoration:{value:wt,label:"captionDecoration"},fontSizeType:{value:Pt,label:"captionFontSizeType"},fontSize:{value:xt,label:"captionFontSize"},fontSizeMobile:{value:At,label:"captionFontSizeMob"},fontSizeTablet:{value:Gt,label:"captionFontSizeTab"},lineHeightType:{value:Mt,label:"captionLineHeightType"},lineHeight:{value:Rt,label:"captionLineHeight"},lineHeightMobile:{value:Bt,label:"captionLineHeightMob"},lineHeightTablet:{value:Ut,label:"captionLineHeightTab"}}),React.createElement(Pl,bS({},e,{label:Object(r.__)("Caption Padding","ultimate-addons-for-gutenberg"),valueTop:{value:q,label:"captionPaddingTop"},valueRight:{value:Z,label:"captionPaddingRight"},valueBottom:{value:$,label:"captionPaddingBottom"},valueLeft:{value:Y,label:"captionPaddingLeft"},valueTopTablet:{value:K,label:"captionPaddingTopTab"},valueRightTablet:{value:J,label:"captionPaddingRightTab"},valueBottomTablet:{value:X,label:"captionPaddingBottomTab"},valueLeftTablet:{value:Q,label:"captionPaddingLeftTab"},valueTopMobile:{value:ee,label:"captionPaddingTopMob"},valueRightMobile:{value:te,label:"captionPaddingRightMob"},valueBottomMobile:{value:ae,label:"captionPaddingBottomMob"},valueLeftMobile:{value:le,label:"captionPaddingLeftMob"},unit:{value:ie,label:"captionPaddingUnit"},tUnit:{value:oe,label:"captionPaddingUnitTab"},mUnit:{value:ne,label:"captionPaddingUnitMob"},attributes:l,setAttributes:i,link:{value:re,label:"captionPaddingUnitLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),"overlay"!==D&&React.createElement(Hi,{setAttributes:i,prefix:"mainTitle",attributes:l,deviceType:s,disableBottomSeparator:!0})),u&&"tiled"!==b&&(He&&"carousel"!==b||"carousel"===b&&(Fe||ze))&&React.createElement(je,{title:"carousel"===b?Object(r.__)("Arrows & Dots","ultimate-addons-for-gutenberg"):Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Top Margin","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ca,data:{value:Ca,label:"paginateDotDistance"},min:0,max:100,unit:{value:Sa,label:"paginateDotDistanceUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:el(!1),hover:el(!0),disableBottomSeparator:!0})),Fe&&"carousel"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Arrow Position","ultimate-addons-for-gutenberg"),setAttributes:i,value:va,data:{value:va,label:"paginateArrowDistance"},min:-100,max:100,unit:{value:_a,label:"paginateArrowDistanceUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}),React.createElement(Qa,{label:Object(r.__)("Arrow Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ta,data:{value:Ta,label:"paginateArrowSize"},min:0,max:50,displayUnit:!1})),ze&&"carousel"===b&&React.createElement(Qa,{label:Object(r.__)("Dot Position","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ca,data:{value:Ca,label:"paginateDotDistance"},min:0,max:100,displayUnit:!1}),(Fe||ze)&&"carousel"===b&&React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:el(!1),hover:el(!0),disableBottomSeparator:!Fe}),Fe&&"carousel"===b&&React.createElement(Hi,{setAttributes:i,prefix:"arrow",attributes:l,deviceType:s,disableBottomSeparator:!0}),"masonry"===b&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Top Margin","ultimate-addons-for-gutenberg"),setAttributes:i,value:Ca,data:{value:Ca,label:"paginateDotDistance"},min:0,max:100,unit:{value:Sa,label:"paginateDotDistanceUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}),De?React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Loader Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:ka,data:{value:ka,label:"paginateLoaderSize"},min:0,max:50,displayUnit:!1}),el(!1)):React.createElement(React.Fragment,null,React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:Et,label:"loadMoreLoadGoogleFonts"},fontFamily:{value:Ot,label:"loadMoreFontFamily"},fontWeight:{value:Lt,label:"loadMoreFontWeight"},fontStyle:{value:Ht,label:"loadMoreFontStyle"},transform:{value:Ft,label:"loadMoreTransform"},decoration:{value:jt,label:"loadMoreDecoration"},fontSizeType:{value:zt,label:"loadMoreFontSizeType"},fontSize:{value:Dt,label:"loadMoreFontSize"},fontSizeMobile:{value:Nt,label:"loadMoreFontSizeMob"},fontSizeTablet:{value:It,label:"loadMoreFontSizeTab"},lineHeightType:{value:Vt,label:"loadMoreLineHeightType"},lineHeight:{value:Wt,label:"loadMoreLineHeight"},lineHeightMobile:{value:qt,label:"loadMoreLineHeightMob"},lineHeightTablet:{value:Zt,label:"loadMoreLineHeightTab"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:el(!1),hover:el(!0)}),React.createElement(Hi,{setAttributes:i,prefix:"btn",attributes:l,deviceType:s,disableBottomSeparator:!!De}))),!De&&React.createElement(React.Fragment,null,React.createElement(Pl,bS({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ve,label:"paginateButtonPaddingTop"},valueRight:{value:We,label:"paginateButtonPaddingRight"},valueBottom:{value:qe,label:"paginateButtonPaddingBottom"},valueLeft:{value:Ze,label:"paginateButtonPaddingLeft"},valueTopTablet:{value:$e,label:"paginateButtonPaddingTopTab"},valueRightTablet:{value:Ye,label:"paginateButtonPaddingRightTab"},valueBottomTablet:{value:Ke,label:"paginateButtonPaddingBottomTab"},valueLeftTablet:{value:Je,label:"paginateButtonPaddingLeftTab"},valueTopMobile:{value:Xe,label:"paginateButtonPaddingTopMob"},valueRightMobile:{value:Qe,label:"paginateButtonPaddingRightMob"},valueBottomMobile:{value:et,label:"paginateButtonPaddingBottomMob"},valueLeftMobile:{value:tt,label:"paginateButtonPaddingLeftMob"},unit:{value:at,label:"paginateButtonPaddingUnit"},tUnit:{value:lt,label:"paginateButtonPaddingUnitTab"},mUnit:{value:it,label:"paginateButtonPaddingUnitMob"},attributes:l,setAttributes:i,link:{value:ot,label:"paginateButtonPaddingUnitLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})))),u&&React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:i,presets:pS,presetInputType:"radioImage"}),React.createElement(vl,{blockId:c,setAttributes:i,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ga,label:"imageBoxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ma,label:"imageBoxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Ra,label:"imageBoxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Ba,label:"imageBoxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:Ua,label:"imageBoxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:Ea,label:"imageBoxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:i,presets:dS,presetInputType:"radioImage"}),React.createElement(vl,{blockId:c,setAttributes:i,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Oa,label:"imageBoxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:La,label:"imageBoxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Ha,label:"imageBoxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Fa,label:"imageBoxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ja,label:"imageBoxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:za,label:"imageBoxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0})),u&&React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,bS({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ue,label:"feedMarginTop"},valueRight:{value:pe,label:"feedMarginRight"},valueBottom:{value:de,label:"feedMarginBottom"},valueLeft:{value:be,label:"feedMarginLeft"},valueTopTablet:{value:me,label:"feedMarginTopTab"},valueRightTablet:{value:ye,label:"feedMarginRightTab"},valueBottomTablet:{value:fe,label:"feedMarginBottomTab"},valueLeftTablet:{value:he,label:"feedMarginLeftTab"},valueTopMobile:{value:ve,label:"feedMarginTopMob"},valueRightMobile:{value:_e,label:"feedMarginRightMob"},valueBottomMobile:{value:Te,label:"feedMarginBottomMob"},valueLeftMobile:{value:Se,label:"feedMarginLeftMob"},unit:{value:ke,label:"feedMarginUnit"},tUnit:{value:we,label:"feedMarginUnitTab"},mUnit:{value:Pe,label:"feedMarginUnitMob"},attributes:l,setAttributes:i,link:{value:xe,label:"feedMarginUnitLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})))),React.createElement(il,bS({},rl,{parentProps:e})))))}),mS=e=>{let{attributes:t,setAttributes:a}=e;const{mediaGallery:l,mediaIDs:i}=t;return"inapplicable"!==a&&React.createElement("div",{className:"spectra-image-gallery-init-wrapper"},React.createElement("div",{className:"spectra-image-gallery-init-wrapper__title"},se.image_gallery,Object(r.__)("Image Gallery","ultimate-addons-for-gutenberg")),React.createElement("p",{className:"spectra-image-gallery-init-wrapper__help-text"},Object(r.__)("Select your images to get started","ultimate-addons-for-gutenberg")),React.createElement(ge.MediaUpload,{title:Object(r.__)("Select Images","ultimate-addons-for-gutenberg"),onSelect:e=>{let t=!0;const l=[];e.forEach(e=>{e&&e.url&&e.type&&"image"===e.type?l.push(e.id):t=!1}),t&&a({mediaGallery:e,mediaIDs:l,readyToRender:!0})},allowedTypes:["image"],multiple:!0,value:i,gallery:!0,render:e=>{var t;let{open:a}=e;return React.createElement(Le.Button,{isSecondary:!0,onClick:a},null!==(t=l[0])&&void 0!==t&&t.url?Object(r.__)("Replace Images","ultimate-addons-for-gutenberg"):Object(r.__)("Select Images","ultimate-addons-for-gutenberg"))}}))},yS=a(55),fS=a.n(yS),hS=a(38),vS=a.n(hS);function _S(){return(_S=Object.assign||function(e){for(var t=1;t{let{attributes:t,setAttributes:a,name:l}=e;const i=l.replace("uagb/",""),{tileSize:o,focusList:n,focusListObject:s,mediaGallery:c,feedLayout:u,imageDisplayCaption:p,galleryImageSize:d,galleryImageSizeTablet:b,galleryImageSizeMobile:g,feedMarginTop:m,feedMarginRight:y,feedMarginBottom:f,feedMarginLeft:h,feedMarginTopTab:v,feedMarginRightTab:_,feedMarginBottomTab:T,feedMarginLeftTab:C,feedMarginTopMob:S,feedMarginRightMob:k,feedMarginBottomMob:w,feedMarginLeftMob:P,feedMarginUnit:x,feedMarginUnitTab:A,feedMarginUnitMob:G,gridImageGap:M,gridImageGapTab:R,gridImageGapMob:U,gridImageGapUnit:E,gridImageGapUnitTab:O,gridImageGapUnitMob:L,captionDisplayType:H,imageCaptionAlignment:j,imageDefaultCaption:z,carouselStartAt:D,carouselLoop:N,carouselAutoplay:I,carouselAutoplaySpeed:V,carouselPauseOnHover:W,carouselTransitionSpeed:q,gridPages:$,gridPageNumber:Y,feedPagination:K,paginateUseArrows:J,paginateUseDots:X,paginateUseLoader:Q,paginateLimit:ee,paginateButtonText:te,columnsDesk:ae,columnsTab:ie,columnsMob:oe,disableLazyLoad:ne}=t,re=us(D,"carouselStartAt",i),ce=us(q,"carouselTransitionSpeed",i),ue=us(V,"carouselAutoplaySpeed",i),pe=us(ee,"paginateLimit",i),de=us(ae,"columnsDesk",i),be=isNaN(ie)?de:ie,me=isNaN(oe)?be:oe,ye=K&&("grid"===u||"masonry"===u),[fe,he]=Object(B.useState)(0),[ve,_e]=Object(B.useState)(!1),[Te,Ce]=Object(B.useState)(!1),Se=Object(B.useRef)(null),ke=Object(B.useRef)([]),we=Object(B.useRef)(null),Pe=le();Object(B.useEffect)(()=>{c.lengthde?Se.current.children[0].querySelector(".slick-dots").clientHeight:0:"Tablet"===Pe?c.length>be?Se.current.children[0].querySelector(".slick-dots").clientHeight:0:c.length>me?Se.current.children[0].querySelector(".slick-dots").clientHeight:0):"tiled"===u&&c.forEach(e=>{void 0!==ke.current[e.id]&&null!==ke.current[e.id]&&s[e.id]&&!ke.current[e.id].classList.contains("spectra-image-gallery__media-wrapper--focus")&&ke.current[e.id].classList.add("spectra-image-gallery__media-wrapper--focus")})},[u,JSON.stringify(c),Pe]),Object(B.useEffect)(()=>{"tiled"===u&&(we.current.style.display="initial",a({tileSize:Math.round(null==we?void 0:we.current.getBoundingClientRect().width)}),Ce(!1))},[Te,Pe,u,ae,ie,oe,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M,R,U,E,O,L]),Object(B.useEffect)(()=>{"tiled"===u&&setTimeout(()=>{const e=ke.current;for(const t in e)null===e[t]&&delete e[t];imagesLoaded(e).on("progress",Be),imagesLoaded(e).off("progress",Be),imagesLoaded(e).on("always",()=>Ce(!0))},250)},[u,JSON.stringify(c)]),Object(B.useEffect)(()=>{we&&we.current&&setTimeout(()=>{we.current.style.display="none"},1e3)},[o]),Object(B.useEffect)(()=>{if(!ve)return;const e=s;Object.keys(e).forEach(t=>{void 0!==ke.current[t]&&null!==ke.current[t]&&(e[t]&&!ke.current[t].classList.contains("spectra-image-gallery__media-wrapper--focus")?ke.current[t].classList.add("spectra-image-gallery__media-wrapper--focus"):e[t]||(ke.current[t].classList.remove("spectra-image-gallery__media-wrapper--focus"),delete e[t]))}),a({focusListObject:{...e}}),_e(!1)},[ve]),Object(B.useEffect)(()=>{Array.isArray(n)&&!n.length&&_e(!0)},[n]);const xe=()=>React.createElement("button",{type:"button","data-role":"none",className:Z(["spectra-image-gallery__control-arrows","spectra-image-gallery__control-arrows--"+u,"carousel"===u&&"slick-next","carousel"===u&&"slick-arrow"]),"aria-label":"Next",tabIndex:"0","data-direction":"Next",disabled:"grid"===u&&Y===$},se.carousel_right),Ae=()=>React.createElement("button",{type:"button","data-role":"none",className:Z(["spectra-image-gallery__control-arrows","spectra-image-gallery__control-arrows--"+u,"carousel"===u&&"slick-prev","carousel"===u&&"slick-arrow"]),"aria-label":"Prev",tabIndex:"0","data-direction":"Prev",disabled:"grid"===u&&1===Y},se.carousel_left);let Ge=de;switch(Pe){case"Tablet":Ge=be;break;case"Mobile":Ge=me;break;default:Ge=de}const Me={arrows:J,dots:X,initialSlide:re,infinite:N,autoplay:I,autoplaySpeed:ue,pauseOnHover:W,speed:ce,slidesToShow:Ge,nextArrow:React.createElement(xe,null),prevArrow:React.createElement(Ae,null),responsive:[{breakpoint:1024,settings:{slidesToShow:be}},{breakpoint:767,settings:{slidesToShow:me}}]},Re=(e,t)=>{const l=s;l[e]=t,a({focusListObject:{...l}}),_e(!0)},Be=(e,t)=>{if(t&&t.isLoaded){const e=t.img,a=e.parentElement,l=e.parentElement.parentElement;l.classList.contains("spectra-image-gallery__media-wrapper--focus")||(e.naturalWidth>=2*e.naturalHeight-e.naturalHeight/2?(l.classList.add("spectra-image-gallery__media-wrapper--wide"),a.classList.add("spectra-image-gallery__media--tiled-wide")):e.naturalHeight>=2*e.naturalWidth-e.naturalWidth/2&&(l.classList.add("spectra-image-gallery__media-wrapper--tall"),a.classList.add("spectra-image-gallery__media--tiled-tall")))}},Ue=e=>{switch(Pe){case"Desktop":return e.sizes[d]?e.sizes[d].url:e.url;case"Tablet":return e.sizes[b]?e.sizes[b].url:e.url;case"Mobile":return e.sizes[g]?e.sizes[g].url:e.url;default:return e.url}},Ee=()=>(ye&&a({gridPages:Math.ceil(c.length/pe)}),(ye?c.slice((Y-1)*pe,Y*pe):c).map(e=>"masonry"===u?Oe(e):Le(e))),Oe=e=>React.createElement("div",{className:"spectra-image-gallery__media-wrapper--isotope",key:e.id},Le(e)),Le=e=>React.createElement("div",{className:"spectra-image-gallery__media-wrapper",key:e.id,ref:t=>ke.current[e.id]=t},He(e),"tiled"===u&&(e=>{return s[e.id]?(t=e.id,React.createElement("button",{className:"spectra-image-gallery__control-focus",onClick:()=>{Re(t,!1)}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"37 0.083 24 24"},React.createElement("path",{d:"M45.791,10.375c1.1,0,2-0.9,2-2V4h-1.5v4.375c0,0.3-0.2,0.5-0.5,0.5h-4.376v1.5H45.791z"}),React.createElement("path",{d:"M51.041,8.376c0,1.1,0.9,2,2,2h4.375v-1.5h-4.375c-0.299,0-0.5-0.2-0.5-0.5V4h-1.5V8.376z"}),React.createElement("path",{d:"M45.791,13.625c1.1,0,2,0.9,2,2V20h-1.5v-4.375c0-0.3-0.2-0.5-0.5-0.5h-4.376v-1.5H45.791z"}),React.createElement("path",{d:"M51.041,15.625c0-1.1,0.9-2,2-2h4.375v1.5h-4.375c-0.299,0-0.5,0.199-0.5,0.5V20h-1.5V15.625z"})))):(e=>React.createElement("button",{className:"spectra-image-gallery__control-focus",onClick:()=>{Re(e,!0)}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24"},React.createElement("path",{d:"M6,4C4.9,4,4,4.9,4,6v4.375h1.5V6c0-0.3,0.2-0.5,0.5-0.5h4.376V4H6z"}),React.createElement("path",{d:"M20,6c0-1.1-0.9-2-2-2h-4.375v1.5H18c0.299,0,0.5,0.2,0.5,0.5v4.376H20V6z"}),React.createElement("path",{d:"M6,20c-1.1,0-2-0.9-2-2v-4.375h1.5V18c0,0.3,0.2,0.5,0.5,0.5h4.376V20H6z"}),React.createElement("path",{d:"M20,18c0,1.1-0.9,2-2,2h-4.375v-1.5H18c0.299,0,0.5-0.199,0.5-0.5v-4.375H20V18z"}))))(e.id);var t})(e)),He=e=>React.createElement(React.Fragment,null,p&&"bar-outside"===H&&"top"===cS(j,1)&&React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--"+H])},Fe(e)),React.createElement("div",{className:Z(["spectra-image-gallery__media","spectra-image-gallery__media--"+u])},React.createElement("img",{className:Z(["spectra-image-gallery__media-thumbnail","spectra-image-gallery__media-thumbnail--"+u]),src:Ue(e),alt:e.alt,loading:ne?void 0:"lazy",tabIndex:"0"}),React.createElement("div",{className:"spectra-image-gallery__media-thumbnail-blurrer"}),p?"bar-outside"!==H&&React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--"+H])},Fe(e)):React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--overlay"])})),p&&"bar-outside"===H&&"top"!==cS(j,1)&&React.createElement("div",{className:Z(["spectra-image-gallery__media-thumbnail-caption-wrapper","spectra-image-gallery__media-thumbnail-caption-wrapper--"+H])},Fe(e))),Fe=e=>e.caption?React.createElement(ge.RichText,{tagName:"div",placeholder:z,value:e.caption,onChange:t=>e.caption=t,className:Z(["spectra-image-gallery__media-thumbnail-caption","spectra-image-gallery__media-thumbnail-caption--"+H]),multiline:!1}):e.url?React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("No Caption","ultimate-addons-for-gutenberg"),value:z,onChange:e=>a({imageDefaultCaption:e}),className:Z(["spectra-image-gallery__media-thumbnail-caption","spectra-image-gallery__media-thumbnail-caption--"+H]),multiline:!1}):Object(r.__)("Unable to load image","ultimate-addons-for-gutenberg");return c?React.createElement(React.Fragment,null,(()=>{switch(u){case"grid":const e="grid";return React.createElement(React.Fragment,null,React.createElement("div",{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+e,`spectra-image-gallery__layout--${e}-col-${de}`,`spectra-image-gallery__layout--${e}-col-tab-${be}`,`spectra-image-gallery__layout--${e}-col-mob-${me}`])},Ee()),K&&React.createElement("div",{className:"spectra-image-gallery__control-wrapper"},React.createElement(Ae,null),React.createElement("ul",{className:"spectra-image-gallery__control-dots"},[...Array($)].map((e,t)=>React.createElement("li",{key:t,className:Z(["spectra-image-gallery__control-dot",t===Y-1&&"spectra-image-gallery__control-dot--active"]),"data-go-to":t+1},React.createElement("button",null)))),React.createElement(xe,null)));case"masonry":return React.createElement(React.Fragment,null,React.createElement(fS.a,{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+u,`spectra-image-gallery__layout--${u}-col-${de}`,`spectra-image-gallery__layout--${u}-col-tab-${be}`,`spectra-image-gallery__layout--${u}-col-mob-${me}`]),updateOnEachImageLoad:!0},Ee()),K&&(c.length<=pe?null:React.createElement(React.Fragment,null,Q?React.createElement("div",{className:"spectra-image-gallery__control-loader wp-block-button"},React.createElement("div",{className:"wp-block-button__link spectra-image-gallery__control-loader--1"}),React.createElement("div",{className:"wp-block-button__link spectra-image-gallery__control-loader--2"}),React.createElement("div",{className:"wp-block-button__link spectra-image-gallery__control-loader--3"})):React.createElement("div",{className:"spectra-image-gallery__control-wrapper wp-block-button"},React.createElement(ge.RichText,{tagName:"div",placeholder:Object(r.__)("Load More Images","ultimate-addons-for-gutenberg"),value:te,onChange:e=>a({paginateButtonText:e}),className:"spectra-image-gallery__control-button wp-block-button__link",multiline:!1,allowedFormats:["core/bold","core/italic","core/strikethrough"]})))));case"tiled":return React.createElement("div",{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+u,`spectra-image-gallery__layout--${u}-col-${de}`,`spectra-image-gallery__layout--${u}-col-tab-${be}`,`spectra-image-gallery__layout--${u}-col-mob-${me}`])},Ee(),React.createElement("div",{className:"spectra-image-gallery__media-sizer",ref:we}));case"carousel":return React.createElement("div",{className:Z(["spectra-image-gallery","spectra-image-gallery__layout--"+u]),ref:Se,style:{marginBottom:fe+"px"}},React.createElement(vS.a,_S({className:"uagb-slick-carousel"},Me),Ee()))}})(),Object(F.applyFilters)("spectra.image-gallery.render.customLinks",null,ke,t,a)):React.createElement("div",{className:"spectra-image-gallery-init-wrapper"},se.image_gallery,React.createElement("h3",null,Object(r.__)("Image Gallery","ultimate-addons-for-gutenberg")),React.createElement("p",null,Object(r.__)("No images to display…","ultimate-addons-for-gutenberg")))};function CS(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function SS(e={},t={}){Object.keys(t).forEach(a=>{void 0===e[a]?e[a]=t[a]:CS(t[a])&&CS(e[a])&&Object.keys(t[a]).length>0&&SS(e[a],t[a])})}const kS={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wS(){const e="undefined"!=typeof document?document:{};return SS(e,kS),e}const PS={document:kS,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function xS(){const e="undefined"!=typeof window?window:{};return SS(e,PS),e}class AS extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function GS(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...GS(e)):t.push(e)}),t}function MS(e,t){return Array.prototype.filter.call(e,t)}function RS(e,t){const a=xS(),l=wS();let i=[];if(!t&&e instanceof AS)return e;if(!e)return new AS(i);if("string"==typeof e){const a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){let e="div";0===a.indexOf("e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this},removeClass:function(...e){const t=GS(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this},hasClass:function(...e){const t=GS(e.map(e=>e.split(" ")));return MS(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0},toggleClass:function(...e){const t=GS(e.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(t=>{e.classList.toggle(t)})})},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let a=0;a=0;e-=1){const a=n[e];l&&a.listener===l||l&&a.listener&&a.listener.dom7proxy&&a.listener.dom7proxy===l?(o.removeEventListener(t,a.proxyListener,i),n.splice(e,1)):l||(o.removeEventListener(t,a.proxyListener,i),n.splice(e,1))}}}return this},trigger:function(...e){const t=xS(),a=e[0].split(" "),l=e[1];for(let i=0;it>0),i.dispatchEvent(a),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function a(l){l.target===this&&(e.call(this,l),t.off("transitionend",a))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=xS();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=xS(),t=wS(),a=this[0],l=a.getBoundingClientRect(),i=t.body,o=a.clientTop||i.clientTop||0,n=a.clientLeft||i.clientLeft||0,r=a===e?e.scrollY:a.scrollTop,s=a===e?e.scrollX:a.scrollLeft;return{top:l.top+r-o,left:l.left+s-n}}return null},css:function(e,t){const a=xS();let l;if(1===arguments.length){if("string"!=typeof e){for(l=0;l{e.apply(t,[t,a])}),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return RS([]);if(e<0){const a=t+e;return RS(a<0?[]:[this[a]])}return RS([this[e]])},append:function(...e){let t;const a=wS();for(let l=0;l=0;l-=1)this[a].insertBefore(i.childNodes[l],this[a].childNodes[0])}else if(e instanceof AS)for(l=0;l0?e?this[0].nextElementSibling&&RS(this[0].nextElementSibling).is(e)?RS([this[0].nextElementSibling]):RS([]):this[0].nextElementSibling?RS([this[0].nextElementSibling]):RS([]):RS([])},nextAll:function(e){const t=[];let a=this[0];if(!a)return RS([]);for(;a.nextElementSibling;){const l=a.nextElementSibling;e?RS(l).is(e)&&t.push(l):t.push(l),a=l}return RS(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&RS(t.previousElementSibling).is(e)?RS([t.previousElementSibling]):RS([]):t.previousElementSibling?RS([t.previousElementSibling]):RS([])}return RS([])},prevAll:function(e){const t=[];let a=this[0];if(!a)return RS([]);for(;a.previousElementSibling;){const l=a.previousElementSibling;e?RS(l).is(e)&&t.push(l):t.push(l),a=l}return RS(t)},parent:function(e){const t=[];for(let a=0;a{Object.defineProperty(RS.fn,e,{value:ES[e],writable:!0})});var OS=RS;function LS(e,t=0){return setTimeout(e,t)}function HS(){return Date.now()}function FS(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function jS(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let i=1;ia.indexOf(e)<0);for(let a=0,l=e.length;ai?"next":"prev",c=(e,t)=>"next"===s&&e>=t||"prev"===s&&e<=t,u=()=>{o=(new Date).getTime(),null===n&&(n=o);const s=Math.max(Math.min((o-n)/r,1),0),p=.5-Math.cos(s*Math.PI)/2;let d=i+p*(t-i);if(c(d,t)&&(d=t),e.wrapperEl.scrollTo({[a]:d}),c(d,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:d})}),void l.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=l.requestAnimationFrame(u)};u()}let NS,IS,VS;function WS(){return NS||(NS=function(){const e=xS(),t=wS();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const a=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,a)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),NS}function qS({swiper:e,runCallbacks:t,direction:a,step:l}){const{activeIndex:i,previousIndex:o}=e;let n=a;if(n||(n=i>o?"next":i0)return;if(i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,p=e.composedPath?e.composedPath():e.path;u&&s.target&&s.target.shadowRoot&&p&&(c=OS(p[0]));const d=o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass,b=!(!s.target||!s.target.shadowRoot);if(o.noSwiping&&(b?function(e,t=this){return function t(a){if(!a||a===wS()||a===xS())return null;a.assignedSlot&&(a=a.assignedSlot);const l=a.closest(e);return l||a.getRootNode?l||t(a.getRootNode().host):null}(t)}(d,c[0]):c.closest(d)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;n.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,n.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;const g=n.currentX,m=n.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,f=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(g<=f||g>=l.innerWidth-f)){if("prevent"!==y)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=g,n.startY=m,i.touchStartTime=HS(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==s.type){let e=!0;c.is(i.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(i.isTouched=!1)),a.activeElement&&OS(a.activeElement).is(i.focusableElements)&&a.activeElement!==c[0]&&a.activeElement.blur();const l=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!l||c[0].isContentEditable||s.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function $S(e){const t=wS(),a=this,l=a.touchEventsData,{params:i,touches:o,rtlTranslate:n,enabled:r}=a;if(!r)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),!l.isTouched)return void(l.startMoving&&l.isScrolling&&a.emit("touchMoveOpposite",s));if(l.isTouchEvent&&"touchmove"!==s.type)return;const c="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),u="touchmove"===s.type?c.pageX:s.pageX,p="touchmove"===s.type?c.pageY:s.pageY;if(s.preventedByNestedSwiper)return o.startX=u,void(o.startY=p);if(!a.allowTouchMove)return OS(s.target).is(l.focusableElements)||(a.allowClick=!1),void(l.isTouched&&(Object.assign(o,{startX:u,startY:p,currentX:u,currentY:p}),l.touchStartTime=HS()));if(l.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(a.isVertical()){if(po.startY&&a.translate>=a.minTranslate())return l.isTouched=!1,void(l.isMoved=!1)}else if(uo.startX&&a.translate>=a.minTranslate())return;if(l.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&OS(s.target).is(l.focusableElements))return l.isMoved=!0,void(a.allowClick=!1);if(l.allowTouchCallbacks&&a.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;o.currentX=u,o.currentY=p;const d=o.currentX-o.startX,b=o.currentY-o.startY;if(a.params.threshold&&Math.sqrt(d**2+b**2)=25&&(e=180*Math.atan2(Math.abs(b),Math.abs(d))/Math.PI,l.isScrolling=a.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(l.isScrolling&&a.emit("touchMoveOpposite",s),void 0===l.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(l.startMoving=!0)),l.isScrolling)return void(l.isTouched=!1);if(!l.startMoving)return;a.allowClick=!1,!i.cssMode&&s.cancelable&&s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation(),l.isMoved||(i.loop&&!i.cssMode&&a.loopFix(),l.startTranslate=a.getTranslate(),a.setTransition(0),a.animating&&a.$wrapperEl.trigger("webkitTransitionEnd transitionend"),l.allowMomentumBounce=!1,!i.grabCursor||!0!==a.allowSlideNext&&!0!==a.allowSlidePrev||a.setGrabCursor(!0),a.emit("sliderFirstMove",s)),a.emit("sliderMove",s),l.isMoved=!0;let g=a.isHorizontal()?d:b;o.diff=g,g*=i.touchRatio,n&&(g=-g),a.swipeDirection=g>0?"prev":"next",l.currentTranslate=g+l.startTranslate;let m=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),g>0&&l.currentTranslate>a.minTranslate()?(m=!1,i.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+g)**y)):g<0&&l.currentTranslatel.startTranslate&&(l.currentTranslate=l.startTranslate),a.allowSlidePrev||a.allowSlideNext||(l.currentTranslate=l.startTranslate),i.threshold>0){if(!(Math.abs(g)>i.threshold||l.allowThresholdMove))return void(l.currentTranslate=l.startTranslate);if(!l.allowThresholdMove)return l.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,l.currentTranslate=l.startTranslate,void(o.diff=a.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&a.freeMode||i.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),a.params.freeMode&&i.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(l.currentTranslate),a.setTranslate(l.currentTranslate))}function YS(e){const t=this,a=t.touchEventsData,{params:l,touches:i,rtlTranslate:o,slidesGrid:n,enabled:r}=t;if(!r)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",s),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&l.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);l.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=HS(),u=c-a.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target),t.emit("tap click",s),u<300&&c-a.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(a.lastClickTime=HS(),LS(()=>{t.destroyed||(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||0===i.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);let p;if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,p=l.followFinger?o?t.translate:-t.translate:-a.currentTranslate,l.cssMode)return;if(t.params.freeMode&&l.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let d=0,b=t.slidesSizesGrid[0];for(let e=0;e=n[e]&&p=n[e]&&(d=e,b=n[n.length-1]-n[n.length-2])}let g=null,m=null;l.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const y=(p-n[d])/b,f=dl.longSwipesMs){if(!l.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?g:d+f):t.slideTo(d)),"prev"===t.swipeDirection&&(y>1-l.longSwipesRatio?t.slideTo(d+f):null!==m&&y<0&&Math.abs(y)>l.longSwipesRatio?t.slideTo(m):t.slideTo(d))}else{if(!l.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:d+f),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:d)):s.target===t.navigation.nextEl?t.slideTo(d+f):t.slideTo(d)}}function KS(){const{params:e,el:t}=this;if(t&&0===t.offsetWidth)return;e.breakpoints&&this.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:l,snapGrid:i}=this;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=l,this.allowSlideNext=a,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}function JS(e){this.enabled&&(this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function XS(){const{wrapperEl:e,rtlTranslate:t,enabled:a}=this;if(!a)return;let l;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();const i=this.maxTranslate()-this.minTranslate();l=0===i?0:(this.translate-this.minTranslate())/i,l!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}let QS=!1;function ek(){}const tk=(e,t)=>{const a=wS(),{params:l,touchEvents:i,el:o,wrapperEl:n,device:r,support:s}=e,c=!!l.nested,u="on"===t?"addEventListener":"removeEventListener",p=t;if(s.touch){const t=!("touchstart"!==i.start||!s.passiveListener||!l.passiveListeners)&&{passive:!0,capture:!1};o[u](i.start,e.onTouchStart,t),o[u](i.move,e.onTouchMove,s.passiveListener?{passive:!1,capture:c}:c),o[u](i.end,e.onTouchEnd,t),i.cancel&&o[u](i.cancel,e.onTouchEnd,t)}else o[u](i.start,e.onTouchStart,!1),a[u](i.move,e.onTouchMove,c),a[u](i.end,e.onTouchEnd,!1);(l.preventClicks||l.preventClicksPropagation)&&o[u]("click",e.onClick,!0),l.cssMode&&n[u]("scroll",e.onScroll),l.updateOnWindowResize?e[p](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",KS,!0):e[p]("observerUpdate",KS,!0)},ak=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var lk={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function ik(e,t){return function(a={}){const l=Object.keys(a)[0],i=a[l];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(l)>=0&&!0===e[l]&&(e[l]={auto:!0}),l in e&&"enabled"in i?(!0===e[l]&&(e[l]={enabled:!0}),"object"!=typeof e[l]||"enabled"in e[l]||(e[l].enabled=!0),e[l]||(e[l]={enabled:!1}),jS(t,a)):jS(t,a)):jS(t,a)}}const ok={eventsEmitter:{on(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed)return l;if("function"!=typeof t)return l;const i=a?"unshift":"push";return e.split(" ").forEach(e=>{l.eventsListeners[e]||(l.eventsListeners[e]=[]),l.eventsListeners[e][i](t)}),l},once(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed)return l;if("function"!=typeof t)return l;function i(...a){l.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(l,a)}return i.__emitterProxy=t,l.on(e,i,a)},onAny(e,t){if(!this.eventsListeners||this.destroyed)return this;if("function"!=typeof e)return this;const a=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[a](e),this},offAny(e){if(!this.eventsListeners||this.destroyed)return this;if(!this.eventsAnyListeners)return this;const t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){const a=this;return!a.eventsListeners||a.destroyed?a:a.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e]&&a.eventsListeners[e].forEach((l,i)=>{(l===t||l.__emitterProxy&&l.__emitterProxy===t)&&a.eventsListeners[e].splice(i,1)})}),a):a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let a,l,i;return"string"==typeof e[0]||Array.isArray(e[0])?(a=e[0],l=e.slice(1,e.length),i=t):(a=e[0].events,l=e[0].data,i=e[0].context||t),l.unshift(i),(Array.isArray(a)?a:a.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...l])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,l)})}),t}},update:{updateSize:function(){let e,t;const a=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:a[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:a[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(a.css("padding-left")||0,10)-parseInt(a.css("padding-right")||0,10),t=t-parseInt(a.css("padding-top")||0,10)-parseInt(a.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function a(e,a){return parseFloat(e.getPropertyValue(t(a))||0)}const l=e.params,{$wrapperEl:i,size:o,rtlTranslate:n,wrongRTL:r}=e,s=e.virtual&&l.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=i.children("."+e.params.slideClass),p=s?e.virtual.slides.length:u.length;let d=[];const b=[],g=[];let m=l.slidesOffsetBefore;"function"==typeof m&&(m=l.slidesOffsetBefore.call(e));let y=l.slidesOffsetAfter;"function"==typeof y&&(y=l.slidesOffsetAfter.call(e));const f=e.snapGrid.length,h=e.slidesGrid.length;let v=l.spaceBetween,_=-m,T=0,C=0;if(void 0===o)return;"string"==typeof v&&v.indexOf("%")>=0&&(v=parseFloat(v.replace("%",""))/100*o),e.virtualSize=-v,n?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),l.centeredSlides&&l.cssMode&&(zS(e.wrapperEl,"--swiper-centered-offset-before",""),zS(e.wrapperEl,"--swiper-centered-offset-after",""));const S=l.grid&&l.grid.rows>1&&e.grid;let k;S&&e.grid.initSlides(p);const w="auto"===l.slidesPerView&&l.breakpoints&&Object.keys(l.breakpoints).filter(e=>void 0!==l.breakpoints[e].slidesPerView).length>0;for(let i=0;i1&&d.push(e.virtualSize-o)}if(0===d.length&&(d=[0]),0!==l.spaceBetween){const a=e.isHorizontal()&&n?"marginLeft":t("marginRight");u.filter((e,t)=>!l.cssMode||t!==u.length-1).css({[a]:v+"px"})}if(l.centeredSlides&&l.centeredSlidesBounds){let e=0;g.forEach(t=>{e+=t+(l.spaceBetween?l.spaceBetween:0)}),e-=l.spaceBetween;const t=e-o;d=d.map(e=>e<0?-m:e>t?t+y:e)}if(l.centerInsufficientSlides){let e=0;if(g.forEach(t=>{e+=t+(l.spaceBetween?l.spaceBetween:0)}),e-=l.spaceBetween,e{d[a]=e-t}),b.forEach((e,a)=>{b[a]=e+t})}}if(Object.assign(e,{slides:u,snapGrid:d,slidesGrid:b,slidesSizesGrid:g}),l.centeredSlides&&l.cssMode&&!l.centeredSlidesBounds){zS(e.wrapperEl,"--swiper-centered-offset-before",-d[0]+"px"),zS(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],a=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+a)}if(p!==c&&e.emit("slidesLengthChange"),d.length!==f&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),b.length!==h&&e.emit("slidesGridLengthChange"),l.watchSlidesProgress&&e.updateSlidesOffset(),!(s||l.cssMode||"slide"!==l.effect&&"fade"!==l.effect)){const t=l.containerModifierClass+"backface-hidden",a=e.$el.hasClass(t);p<=l.maxBackfaceHiddenSlides?a||e.$el.addClass(t):a&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,a=[],l=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>l?t.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||OS([])).each(e=>{a.push(e)});else for(i=0;it.slides.length&&!l)break;a.push(n(e))}else a.push(n(t.activeIndex));for(i=0;io?e:o}(o||0===o)&&t.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let a=0;a=0&&p1&&d<=t.size||p<=0&&d>=t.size)&&(t.visibleSlides.push(r),t.visibleSlidesIndexes.push(e),l.eq(e).addClass(a.slideVisibleClass)),r.progress=i?-c:c,r.originalProgress=i?-u:u}t.visibleSlides=OS(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const a=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*a||0}const a=t.params,l=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:n}=t;const r=o,s=n;0===l?(i=0,o=!0,n=!0):(i=(e-t.minTranslate())/l,o=i<=0,n=i>=1),Object.assign(t,{progress:i,isBeginning:o,isEnd:n}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),o&&!r&&t.emit("reachBeginning toEdge"),n&&!s&&t.emit("reachEnd toEdge"),(r&&!o||s&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const{slides:e,params:t,$wrapperEl:a,activeIndex:l,realIndex:i}=this,o=this.virtual&&t.virtual.enabled;let n;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`),n=o?this.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${l}"]`):e.eq(l),n.addClass(t.slideActiveClass),t.loop&&(n.hasClass(t.slideDuplicateClass)?a.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${i}"]`).addClass(t.slideDuplicateActiveClass):a.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${i}"]`).addClass(t.slideDuplicateActiveClass));let r=n.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass);t.loop&&0===r.length&&(r=e.eq(0),r.addClass(t.slideNextClass));let s=n.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass);t.loop&&0===s.length&&(s=e.eq(-1),s.addClass(t.slidePrevClass)),t.loop&&(r.hasClass(t.slideDuplicateClass)?a.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):a.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),s.hasClass(t.slideDuplicateClass)?a.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):a.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${s.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){const t=this.rtlTranslate?this.translate:-this.translate,{slidesGrid:a,snapGrid:l,params:i,activeIndex:o,realIndex:n,snapIndex:r}=this;let s,c=e;if(void 0===c){for(let e=0;e=a[e]&&t=a[e]&&t=a[e]&&(c=e);i.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(l.indexOf(t)>=0)s=l.indexOf(t);else{const e=Math.min(i.slidesPerGroupSkip,c);s=e+Math.floor((c-e)/i.slidesPerGroup)}if(s>=l.length&&(s=l.length-1),c===o)return void(s!==r&&(this.snapIndex=s,this.emit("snapIndexChange")));const u=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(this,{snapIndex:s,realIndex:u,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),n!==u&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(e){const t=this,a=t.params,l=OS(e).closest("."+a.slideClass)[0];let i,o=!1;if(l)for(let e=0;e6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new a.WebKitCSSMatrix("none"===i?"":i)):(o=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=o.toString().split(",")),"x"===t&&(i=a.WebKitCSSMatrix?o.m41:16===l.length?parseFloat(l[12]):parseFloat(l[4])),"y"===t&&(i=a.WebKitCSSMatrix?o.m42:16===l.length?parseFloat(l[13]):parseFloat(l[5])),i||0}(i[0],e);return a&&(o=-o),o||0},setTranslate:function(e,t){const{rtlTranslate:a,params:l,$wrapperEl:i,wrapperEl:o,progress:n}=this;let r,s=0,c=0;this.isHorizontal()?s=a?-e:e:c=e,l.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),l.cssMode?o[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-c:l.virtualTranslate||i.transform(`translate3d(${s}px, ${c}px, 0px)`),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:c;const u=this.maxTranslate()-this.minTranslate();r=0===u?0:(e-this.minTranslate())/u,r!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,a=!0,l=!0,i){const o=this,{params:n,wrapperEl:r}=o;if(o.animating&&n.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let u;if(u=l&&e>s?s:l&&e=s.length&&(y=s.length-1);const f=-s[y];if(r.normalizeSlideIndex)for(let e=0;e=a&&t=a&&t=a&&(n=e)}if(o.initialized&&n!==p){if(!o.allowSlideNext&&fo.translate&&f>o.maxTranslate()&&(p||0)!==n)return!1}let h;if(n!==(u||0)&&a&&o.emit("beforeSlideChangeStart"),o.updateProgress(f),h=n>p?"next":n{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1})}else{if(!o.support.smoothScroll)return DS({swiper:o,targetPosition:a,side:e?"left":"top"}),!0;b.scrollTo({[e?"left":"top"]:a,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(f),o.updateActiveIndex(n),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,l),o.transitionStart(a,h),0===t?o.transitionEnd(a,h):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(a,h))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,a=!0,l){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let i=e;return this.params.loop&&(i+=this.loopedSlides),this.slideTo(i,t,a,l)},slideNext:function(e=this.params.speed,t=!0,a){const l=this,{animating:i,enabled:o,params:n}=l;if(!o)return l;let r=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(r=Math.max(l.slidesPerViewDynamic("current",!0),1));const s=l.activeIndexu(e));let b=n[d.indexOf(p)-1];if(void 0===b&&i.cssMode){let e;n.forEach((t,a)=>{p>=t&&(e=a)}),void 0!==e&&(b=n[e>0?e-1:e])}let g=0;if(void 0!==b&&(g=r.indexOf(b),g<0&&(g=l.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-l.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&l.isBeginning){const i=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(i,e,t,a)}return l.slideTo(g,e,t,a)},slideReset:function(e=this.params.speed,t=!0,a){return this.slideTo(this.activeIndex,e,t,a)},slideToClosest:function(e=this.params.speed,t=!0,a,l=.5){const i=this;let o=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,o),r=n+Math.floor((o-n)/i.params.slidesPerGroup),s=i.rtlTranslate?i.translate:-i.translate;if(s>=i.snapGrid[r]){const e=i.snapGrid[r];s-e>(i.snapGrid[r+1]-e)*l&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[r-1];s-e<=(i.snapGrid[r]-e)*l&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,a)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:a}=e,l="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;if(t.loop){if(e.animating)return;i=parseInt(OS(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+l/2?(e.loopFix(),o=a.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),LS(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-l?(e.loopFix(),o=a.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),LS(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},loop:{loopCreate:function(){const e=this,t=wS(),{params:a,$wrapperEl:l}=e,i=l.children().length>0?OS(l.children()[0].parentNode):l;i.children(`.${a.slideClass}.${a.slideDuplicateClass}`).remove();let o=i.children("."+a.slideClass);if(a.loopFillGroupWithBlank){const e=a.slidesPerGroup-o.length%a.slidesPerGroup;if(e!==a.slidesPerGroup){for(let l=0;lo.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=o.length);const n=[],r=[];o.each((e,t)=>{OS(e).attr("data-swiper-slide-index",t)});for(let t=0;t=0;e-=1)i.prepend(OS(n[e].cloneNode(!0)).addClass(a.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:a,loopedSlides:l,allowSlidePrev:i,allowSlideNext:o,snapGrid:n,rtlTranslate:r}=e;let s;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-n[t]-e.getTranslate();t=a.length-l&&(s=-a.length+t+l,s+=l,e.slideTo(s,0,!1,!0)&&0!==c&&e.setTranslate((r?-e.translate:e.translate)-c)),e.allowSlidePrev=i,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:a}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),a.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;const t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=wS(),{params:t,support:a}=this;this.onTouchStart=ZS.bind(this),this.onTouchMove=$S.bind(this),this.onTouchEnd=YS.bind(this),t.cssMode&&(this.onScroll=XS.bind(this)),this.onClick=JS.bind(this),a.touch&&!QS&&(e.addEventListener("touchstart",ek),QS=!0),tk(this,"on")},detachEvents:function(){tk(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:a,loopedSlides:l=0,params:i,$el:o}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const r=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const s=(r in n?n[r]:void 0)||e.originalParams,c=ak(e,i),u=ak(e,s),p=i.enabled;c&&!u?(o.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(o.addClass(i.containerModifierClass+"grid"),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===i.grid.fill)&&o.addClass(i.containerModifierClass+"grid-column"),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{const a=i[t]&&i[t].enabled,l=s[t]&&s[t].enabled;a&&!l&&e[t].disable(),!a&&l&&e[t].enable()});const d=s.direction&&s.direction!==i.direction,b=i.loop&&(s.slidesPerView!==i.slidesPerView||d);d&&a&&e.changeDirection(),jS(e.params,s);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!g?e.disable():!p&&g&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",s),b&&a&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-l+e.loopedSlides,0,!1)),e.emit("breakpoint",s)},getBreakpoint:function(e,t="window",a){if(!e||"container"===t&&!a)return;let l=!1;const i=xS(),o="window"===t?i.innerHeight:a.clientHeight,n=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});n.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;ea}else e.isLocked=1===e.snapGrid.length;!0===a.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===a.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:a,$el:l,device:i,support:o}=this,n=function(e,t){const a=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(l=>{e[l]&&a.push(t+l)}):"string"==typeof e&&a.push(t+e)}),a}(["initialized",t.direction,{"pointer-events":!o.touch},{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:a},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...n),l.addClass([...e].join(" ")),this.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,a,l,i,o){const n=xS();let r;function s(){o&&o()}OS(e).parent("picture")[0]||e.complete&&i?s():t?(r=new n.Image,r.onload=s,r.onerror=s,l&&(r.sizes=l),a&&(r.srcset=a),t&&(r.src=t)):s()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let a=0;a1){const e=[];return OS(a.el).each(t=>{const l=jS({},a,{el:t});e.push(new rk(l))}),e}const l=this;l.__swiper__=!0,l.support=WS(),l.device=function(e={}){return IS||(IS=function({userAgent:e}={}){const t=WS(),a=xS(),l=a.navigator.platform,i=e||a.navigator.userAgent,o={ios:!1,android:!1},n=a.screen.width,r=a.screen.height,s=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===l;let b="MacIntel"===l;return!c&&b&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${n}x${r}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),b=!1),s&&!d&&(o.os="android",o.android=!0),(c||p||u)&&(o.os="ios",o.ios=!0),o}(e)),IS}({userAgent:a.userAgent}),l.browser=(VS||(VS=function(){const e=xS();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),VS),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],a.modules&&Array.isArray(a.modules)&&l.modules.push(...a.modules);const i={};l.modules.forEach(e=>{e({swiper:l,extendParams:ik(a,i),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const o=jS({},lk,i);return l.params=jS({},o,nk,a),l.originalParams=jS({},l.params),l.passedParams=jS({},a),l.params&&l.params.on&&Object.keys(l.params.on).forEach(e=>{l.on(e,l.params.on[e])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=OS,Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:OS(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return l.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:HS(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);const a=this.minTranslate(),l=(this.maxTranslate()-a)*e+a;this.translateTo(l,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(a=>{const l=e.getSlideClasses(a);t.push({slideEl:a,classNames:l}),e.emit("_slideClass",a,l)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:a,slides:l,slidesGrid:i,slidesSizesGrid:o,size:n,activeIndex:r}=this;let s=1;if(a.centeredSlides){let e,t=l[r].swiperSlideSize;for(let a=r+1;an&&(e=!0));for(let a=r-1;a>=0;a-=1)l[a]&&!e&&(t+=l[a].swiperSlideSize,s+=1,t>n&&(e=!0))}else if("current"===e)for(let e=r+1;e=0;e-=1)i[r]-i[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),i||l()),a.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const a=this.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(`${this.params.containerModifierClass}${a}`).addClass(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){this.rtl&&"rtl"===e||!this.rtl&&"ltr"===e||(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.$el.addClass(this.params.containerModifierClass+"rtl"),this.el.dir="rtl"):(this.$el.removeClass(this.params.containerModifierClass+"rtl"),this.el.dir="ltr"),this.update())}mount(e){const t=this;if(t.mounted)return!0;const a=OS(e||t.params.el);if(!(e=a[0]))return!1;e.swiper=t;const l=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let i=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=OS(e.shadowRoot.querySelector(l()));return t.children=e=>a.children(e),t}return a.children?a.children(l()):OS(a).children(l())})();if(0===i.length&&t.params.createElements){const e=wS().createElement("div");i=OS(e),e.className=t.params.wrapperClass,a.append(e),a.children("."+t.params.slideClass).each(e=>{i.append(e)})}return Object.assign(t,{$el:a,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===a.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===a.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(e){return this.initialized||!1===this.mount(e)||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.enabled&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit,!1,!0):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit,!1,!0),this.attachEvents(),this.initialized=!0,this.emit("init"),this.emit("afterInit")),this}destroy(e=!0,t=!0){const a=this,{params:l,$el:i,$wrapperEl:o,slides:n}=a;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),l.loop&&a.loopDestroy(),t&&(a.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),n&&n.length&&n.removeClass([l.slideVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(e=>{a.off(e)}),!1!==e&&(a.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(a)),a.destroyed=!0),null}static extendDefaults(e){jS(nk,e)}static get extendedDefaults(){return nk}static get defaults(){return lk}static installModule(e){rk.prototype.__modules__||(rk.prototype.__modules__=[]);const t=rk.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>rk.installModule(e)),rk):(rk.installModule(e),rk)}}Object.keys(ok).forEach(e=>{Object.keys(ok[e]).forEach(t=>{rk.prototype[t]=ok[e][t]})}),rk.use([function({swiper:e,on:t,emit:a}){const l=xS();let i=null,o=null;const n=()=>{e&&!e.destroyed&&e.initialized&&(a("beforeResize"),a("resize"))},r=()=>{e&&!e.destroyed&&e.initialized&&a("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==l.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=l.requestAnimationFrame(()=>{const{width:a,height:l}=e;let i=a,o=l;t.forEach(({contentBoxSize:t,contentRect:a,target:l})=>{l&&l!==e.el||(i=a?a.width:(t[0]||t).inlineSize,o=a?a.height:(t[0]||t).blockSize)}),i===a&&o===l||n()})}),i.observe(e.el)):(l.addEventListener("resize",n),l.addEventListener("orientationchange",r))}),t("destroy",()=>{o&&l.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),l.removeEventListener("resize",n),l.removeEventListener("orientationchange",r)})},function({swiper:e,extendParams:t,on:a,emit:l}){const i=[],o=xS(),n=(e,t={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(e=>{if(1===e.length)return void l("observerUpdate",e[0]);const t=function(){l("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)});a.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);var sk=rk;function ck(e,t,a,l){const i=wS();return e.params.createElements&&Object.keys(l).forEach(o=>{if(!a[o]&&!0===a.auto){let n=e.$el.children("."+l[o])[0];n||(n=i.createElement("div"),n.className=l[o],e.$el.append(n)),a[o]=n,t[o]=n}}),a}function uk({swiper:e,extendParams:t,on:a,emit:l}){function i(t){let a;return t&&(a=OS(t),e.params.uniqueNavElements&&"string"==typeof t&&a.length>1&&1===e.$el.find(t).length&&(a=e.$el.find(t))),a}function o(t,a){const l=e.params.navigation;t&&t.length>0&&(t[a?"addClass":"removeClass"](l.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=a),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](l.lockClass))}function n(){if(e.params.loop)return;const{$nextEl:t,$prevEl:a}=e.navigation;o(a,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function r(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=ck(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const a=i(t.nextEl),l=i(t.prevEl);a&&a.length>0&&a.on("click",s),l&&l.length>0&&l.on("click",r),Object.assign(e.navigation,{$nextEl:a,nextEl:a&&a[0],$prevEl:l,prevEl:l&&l[0]}),e.enabled||(a&&a.addClass(t.lockClass),l&&l.addClass(t.lockClass))}function u(){const{$nextEl:t,$prevEl:a}=e.navigation;t&&t.length&&(t.off("click",s),t.removeClass(e.params.navigation.disabledClass)),a&&a.length&&(a.off("click",r),a.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},a("init",()=>{!1===e.params.navigation.enabled?p():(c(),n())}),a("toEdge fromEdge lock unlock",()=>{n()}),a("destroy",()=>{u()}),a("enable disable",()=>{const{$nextEl:t,$prevEl:a}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),a&&a[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),a("click",(t,a)=>{const{$nextEl:i,$prevEl:o}=e.navigation,n=a.target;if(e.params.navigation.hideOnClick&&!OS(n).is(o)&&!OS(n).is(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===n||e.pagination.el.contains(n)))return;let t;i?t=i.hasClass(e.params.navigation.hiddenClass):o&&(t=o.hasClass(e.params.navigation.hiddenClass)),l(!0===t?"navigationShow":"navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass)}});const p=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),n()},disable:p,update:n,init:c,destroy:u})}function pk(e=""){return"."+e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function dk({swiper:e,extendParams:t,on:a,emit:l}){const i="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:i+"-bullet",bulletActiveClass:i+"-bullet-active",modifierClass:i+"-",currentClass:i+"-current",totalClass:i+"-total",hiddenClass:i+"-hidden",progressbarFillClass:i+"-progressbar-fill",progressbarOppositeClass:i+"-progressbar-opposite",clickableClass:i+"-clickable",lockClass:i+"-lock",horizontalClass:i+"-horizontal",verticalClass:i+"-vertical",paginationDisabledClass:i+"-disabled"}}),e.pagination={el:null,$el:null,bullets:[]};let n=0;function r(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function s(t,a){const{bulletActiveClass:l}=e.params.pagination;t[a]().addClass(`${l}-${a}`)[a]().addClass(`${l}-${a}-${a}`)}function c(){const t=e.rtl,a=e.params.pagination;if(r())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let u;const p=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),u>i-1-2*e.loopedSlides&&(u-=i-2*e.loopedSlides),u>p-1&&(u-=p),u<0&&"bullets"!==e.params.paginationType&&(u=p+u)):u=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const l=e.pagination.bullets;let i,r,p;if(a.dynamicBullets&&(o=l.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",o*(a.dynamicMainBullets+4)+"px"),a.dynamicMainBullets>1&&void 0!==e.previousIndex&&(n+=u-(e.previousIndex-e.loopedSlides||0),n>a.dynamicMainBullets-1?n=a.dynamicMainBullets-1:n<0&&(n=0)),i=Math.max(u-n,0),r=i+(Math.min(l.length,a.dynamicMainBullets)-1),p=(r+i)/2),l.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${a.bulletActiveClass}${e}`).join(" ")),c.length>1)l.each(e=>{const t=OS(e),l=t.index();l===u&&t.addClass(a.bulletActiveClass),a.dynamicBullets&&(l>=i&&l<=r&&t.addClass(a.bulletActiveClass+"-main"),l===i&&s(t,"prev"),l===r&&s(t,"next"))});else{const t=l.eq(u),o=t.index();if(t.addClass(a.bulletActiveClass),a.dynamicBullets){const t=l.eq(i),n=l.eq(r);for(let e=i;e<=r;e+=1)l.eq(e).addClass(a.bulletActiveClass+"-main");if(e.params.loop)if(o>=l.length){for(let e=a.dynamicMainBullets;e>=0;e-=1)l.eq(l.length-e).addClass(a.bulletActiveClass+"-main");l.eq(l.length-a.dynamicMainBullets-1).addClass(a.bulletActiveClass+"-prev")}else s(t,"prev"),s(n,"next");else s(t,"prev"),s(n,"next")}}if(a.dynamicBullets){const i=Math.min(l.length,a.dynamicMainBullets+4),n=(o*i-o)/2-p*o,r=t?"right":"left";l.css(e.isHorizontal()?r:"top",n+"px")}}if("fraction"===a.type&&(c.find(pk(a.currentClass)).text(a.formatFractionCurrent(u+1)),c.find(pk(a.totalClass)).text(a.formatFractionTotal(p))),"progressbar"===a.type){let t;t=a.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const l=(u+1)/p;let i=1,o=1;"horizontal"===t?i=l:o=l,c.find(pk(a.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`).transition(e.params.speed)}"custom"===a.type&&a.renderCustom?(c.html(a.renderCustom(e,u+1,p)),l("paginationRender",c[0])):l("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](a.lockClass)}function u(){const t=e.params.pagination;if(r())return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let o="";if("bullets"===t.type){let l=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&l>a&&(l=a);for(let a=0;a`;i.html(o),e.pagination.bullets=i.find(pk(t.bulletClass))}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `,i.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``,i.html(o)),"custom"!==t.type&&l("paginationRender",e.pagination.$el[0])}function p(){e.params.pagination=ck(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let a=OS(t.el);0!==a.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&a.length>1&&(a=e.$el.find(t.el),a.length>1&&(a=a.filter(t=>OS(t).parents(".swiper")[0]===e.el))),"bullets"===t.type&&t.clickable&&a.addClass(t.clickableClass),a.addClass(t.modifierClass+t.type),a.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(a.addClass(`${t.modifierClass}${t.type}-dynamic`),n=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&a.addClass(t.progressbarOppositeClass),t.clickable&&a.on("click",pk(t.bulletClass),(function(t){t.preventDefault();let a=OS(this).index()*e.params.slidesPerGroup;e.params.loop&&(a+=e.loopedSlides),e.slideTo(a)})),Object.assign(e.pagination,{$el:a,el:a[0]}),e.enabled||a.addClass(t.lockClass))}function d(){const t=e.params.pagination;if(r())return;const a=e.pagination.$el;a.removeClass(t.hiddenClass),a.removeClass(t.modifierClass+t.type),a.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&a.off("click",pk(t.bulletClass))}a("init",()=>{!1===e.params.pagination.enabled?b():(p(),u(),c())}),a("activeIndexChange",()=>{(e.params.loop||void 0===e.snapIndex)&&c()}),a("snapIndexChange",()=>{e.params.loop||c()}),a("slidesLengthChange",()=>{e.params.loop&&(u(),c())}),a("snapGridLengthChange",()=>{e.params.loop||(u(),c())}),a("destroy",()=>{d()}),a("enable disable",()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),a("lock unlock",()=>{c()}),a("click",(t,a)=>{const i=a.target,{$el:o}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!OS(i).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=o.hasClass(e.params.pagination.hiddenClass);l(!0===t?"paginationShow":"paginationHide"),o.toggleClass(e.params.pagination.hiddenClass)}});const b=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),d()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),p(),u(),c()},disable:b,render:u,update:c,init:p,destroy:d})}function bk({swiper:e,extendParams:t,on:a,emit:l}){t({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),e.lazy={};let i=!1,o=!1;function n(t,a=!0){const i=e.params.lazy;if(void 0===t)return;if(0===e.slides.length)return;const o=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t),r=o.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`);!o.hasClass(i.elementClass)||o.hasClass(i.loadedClass)||o.hasClass(i.loadingClass)||r.push(o[0]),0!==r.length&&r.each(t=>{const r=OS(t);r.addClass(i.loadingClass);const s=r.attr("data-background"),c=r.attr("data-src"),u=r.attr("data-srcset"),p=r.attr("data-sizes"),d=r.parent("picture");e.loadImage(r[0],c||s,u,p,!1,()=>{if(null!=e&&e&&(!e||e.params)&&!e.destroyed){if(s?(r.css("background-image",`url("${s}")`),r.removeAttr("data-background")):(u&&(r.attr("srcset",u),r.removeAttr("data-srcset")),p&&(r.attr("sizes",p),r.removeAttr("data-sizes")),d.length&&d.children("source").each(e=>{const t=OS(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))}),c&&(r.attr("src",c),r.removeAttr("data-src"))),r.addClass(i.loadedClass).removeClass(i.loadingClass),o.find("."+i.preloaderClass).remove(),e.params.loop&&a){const t=o.attr("data-swiper-slide-index");o.hasClass(e.params.slideDuplicateClass)?n(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(),!1):n(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(),!1)}l("lazyImageReady",o[0],r[0]),e.params.autoHeight&&e.updateAutoHeight()}}),l("lazyImageLoad",o[0],r[0])})}function r(){const{$wrapperEl:t,params:a,slides:l,activeIndex:i}=e,r=e.virtual&&a.virtual.enabled,s=a.lazy;let c=a.slidesPerView;function u(e){if(r){if(t.children(`.${a.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(l[e])return!0;return!1}function p(e){return r?OS(e).attr("data-swiper-slide-index"):OS(e).index()}if("auto"===c&&(c=0),o||(o=!0),e.params.watchSlidesProgress)t.children("."+a.slideVisibleClass).each(e=>{n(r?OS(e).attr("data-swiper-slide-index"):OS(e).index())});else if(c>1)for(let e=i;e1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const e=s.loadPrevNextAmount,t=Math.ceil(c),a=Math.min(i+t+Math.max(e,t),l.length),o=Math.max(i-Math.max(t,e),0);for(let e=i+t;e0&&n(p(e));const l=t.children("."+a.slidePrevClass);l.length>0&&n(p(l))}}function s(){const t=xS();if(!e||e.destroyed)return;const a=e.params.lazy.scrollingElement?OS(e.params.lazy.scrollingElement):OS(t),l=a[0]===t,o=l?t.innerWidth:a[0].offsetWidth,n=l?t.innerHeight:a[0].offsetHeight,c=e.$el.offset(),{rtlTranslate:u}=e;let p=!1;u&&(c.left-=e.$el[0].scrollLeft);const d=[[c.left,c.top],[c.left+e.width,c.top],[c.left,c.top+e.height],[c.left+e.width,c.top+e.height]];for(let e=0;e=0&&t[0]<=o&&t[1]>=0&&t[1]<=n){if(0===t[0]&&0===t[1])continue;p=!0}}const b=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};p?(r(),a.off("scroll",s,b)):i||(i=!0,a.on("scroll",s,b))}a("beforeInit",()=>{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)}),a("init",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?s():r())}),a("scroll",()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&r()}),a("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?s():r())}),a("transitionStart",()=>{e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!o)&&(e.params.lazy.checkInView?s():r())}),a("transitionEnd",()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?s():r())}),a("slideChange",()=>{const{lazy:t,cssMode:a,watchSlidesProgress:l,touchReleaseOnEdges:i,resistanceRatio:o}=e.params;t.enabled&&(a||l&&(i||0===o))&&r()}),a("destroy",()=>{e.$el&&e.$el.find("."+e.params.lazy.loadingClass).removeClass(e.params.lazy.loadingClass)}),Object.assign(e.lazy,{load:r,loadInSlide:n})}function gk({swiper:e,extendParams:t,on:a,emit:l}){let i;function o(){if(!e.size)return e.autoplay.running=!1,void(e.autoplay.paused=!1);const t=e.slides.eq(e.activeIndex);let a=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(a=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(i),i=LS(()=>{let t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),l("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?r():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),l("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),l("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),l("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?r():(t=e.slideTo(0,e.params.speed,!0,!0),l("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),l("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&o()},a)}function n(){return void 0===i&&!e.autoplay.running&&(e.autoplay.running=!0,l("autoplayStart"),o(),!0)}function r(){return!!e.autoplay.running&&void 0!==i&&(i&&(clearTimeout(i),i=void 0),e.autoplay.running=!1,l("autoplayStop"),!0)}function s(t){e.autoplay.running&&(e.autoplay.paused||(i&&clearTimeout(i),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].addEventListener(t,u)}):(e.autoplay.paused=!1,o())))}function c(){const t=wS();"hidden"===t.visibilityState&&e.autoplay.running&&s(),"visible"===t.visibilityState&&e.autoplay.paused&&(o(),e.autoplay.paused=!1)}function u(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].removeEventListener(t,u)}),e.autoplay.paused=!1,e.autoplay.running?o():r())}function p(){e.params.autoplay.disableOnInteraction?r():(l("autoplayPause"),s()),["transitionend","webkitTransitionEnd"].forEach(t=>{e.$wrapperEl[0].removeEventListener(t,u)})}function d(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,l("autoplayResume"),o())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),a("init",()=>{e.params.autoplay.enabled&&(n(),wS().addEventListener("visibilitychange",c),e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",p),e.$el.on("mouseleave",d)))}),a("beforeTransitionStart",(t,a,l)=>{e.autoplay.running&&(l||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(a):r())}),a("sliderFirstMove",()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?r():s())}),a("touchEnd",()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&o()}),a("destroy",()=>{e.$el.off("mouseenter",p),e.$el.off("mouseleave",d),e.autoplay.running&&r(),wS().removeEventListener("visibilitychange",c)}),Object.assign(e.autoplay,{pause:s,run:o,start:n,stop:r})}function mk({swiper:e,extendParams:t,on:a}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let l=!1,i=!1;function o(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const a=t.clickedIndex,l=t.clickedSlide;if(l&&OS(l).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==a)return;let i;if(i=t.params.loop?parseInt(OS(t.clickedSlide).attr("data-swiper-slide-index"),10):a,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const a=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),l=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===a?l:void 0===l?a:l-t1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),a.slides.removeClass(o),a.params.loop||a.params.virtual&&a.params.virtual.enabled)for(let t=0;t1?l:s:l-se.previousIndex?"next":"prev"}else i=e.realIndex,o=i>e.previousIndex?"next":"prev";r&&(i+="next"===o?n:-1*n),a.visibleSlidesIndexes&&a.visibleSlidesIndexes.indexOf(i)<0&&(a.params.centeredSlides?i=i>s?i-Math.floor(l/2)+1:i+Math.floor(l/2)-1:i>s&&a.params.slidesPerGroup,a.slideTo(i,t?0:void 0))}}e.thumbs={swiper:null},a("beforeInit",()=>{const{thumbs:t}=e.params;t&&t.swiper&&(n(),r(!0))}),a("slideChange update resize observerUpdate",()=>{r()}),a("setTransition",(t,a)=>{const l=e.thumbs.swiper;l&&!l.destroyed&&l.setTransition(a)}),a("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&i&&t.destroy()}),Object.assign(e.thumbs,{init:n,update:r})}function yk(e){const{$wrapperEl:t,params:a}=this;if(a.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(let a=0;a=r)return void a.appendSlide(t);let s=n>e?n+1:n;const c=[];for(let t=r-1;t>=e;t-=1){const e=a.slides.eq(t);e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?n+t.length:n}else l.append(t);for(let e=0;e{let{attributes:t,setAttributes:a,setLightboxPreview:l}=e;const{mediaGallery:i,lightboxDisplayCaptions:o,lightboxThumbnails:n,lightboxDisplayCount:r,lightboxCloseIcon:s,imageDefaultCaption:c}=t,u=Object(B.useRef)(),p=Object(B.useRef)(),[d,b]=Object(B.useState)(null),[g,m]=Object(B.useState)(null),[y,f]=Object(B.useState)(0),[h,v]=Object(B.useState)(0);Object(B.useEffect)(()=>{const e=setTimeout(()=>{u.current&&_()},500);return()=>{clearTimeout(e)}},[u]),Object(B.useEffect)(()=>{const e=setTimeout(()=>{p.current&&(T(),d&&(d.destroy(),_()))},500);return()=>{clearTimeout(e)}},[p]),Object(B.useEffect)(()=>{f(i.length),n&&g&&g.update(),d&&d.update()},[i]),Object(B.useEffect)(()=>{d&&(d.destroy(),_())},[g]);const _=()=>{const e={lazy:!0,slidesPerView:1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{beforeInit(e){b(e)},activeIndexChange(e){v(e.activeIndex),g&&g.slideTo(e.activeIndex)}},thumbs:{swiper:g}};new sk(u.current,{...e,modules:[bk,uk,mk]})},T=()=>{const e={centeredSlides:!0,slidesPerView:7,slideToClickedSlide:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,on:{beforeInit(e){m(e)}}};new sk(p.current,{...e})};return React.createElement("div",{className:"spectra-image-gallery__control-lightbox"},React.createElement("div",{className:"swiper spectra-image-gallery__control-lightbox--main",ref:u},React.createElement("div",{className:"swiper-wrapper"},i.map(e=>React.createElement("div",{className:"swiper-slide",key:e.id},React.createElement("img",{className:"swiper-lazy","data-src":e.url,alt:e.alt}),React.createElement("div",{className:"swiper-lazy-preloader swiper-lazy-preloader-white"}),o&&React.createElement("div",{className:Object(F.applyFilters)("spectra.image-gallery.render.lightboxCaptionClasses","spectra-image-gallery__control-lightbox--caption",e.id,t)},e.caption?e.caption:c)))),React.createElement("div",{className:"swiper-button-next"}),React.createElement("div",{className:"swiper-button-prev"})),React.createElement("div",{className:"spectra-image-gallery__control-lightbox--thumbnails-wrapper",style:{display:n?void 0:"none"}},React.createElement("div",{className:"swiper spectra-image-gallery__control-lightbox--thumbnails",ref:p},React.createElement("div",{className:"swiper-wrapper"},i.map(e=>{var t,a;return(null==e||null===(t=e.sizes)||void 0===t||null===(a=t.thumbnail)||void 0===a?void 0:a.url)&&React.createElement("div",{className:"swiper-slide",key:e.id},React.createElement("img",{src:e.sizes.thumbnail.url,alt:e.alt}))})))),r&&React.createElement("div",{className:"spectra-image-gallery__control-lightbox--count"},`${h+1} / ${y}`),s&&React.createElement("button",{className:"spectra-image-gallery__control-lightbox--close",onClick:()=>l(!1)},Ce(s,a)))},kk=a(127),wk=0,Pk={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},xk={};xk.locals=kk.a.locals||{},xk.use=function(){return wk++||(Ck=we()(kk.a,Pk)),xk},xk.unuse=function(){wk>0&&!--wk&&(Ck(),Ck=null)};var Ak=xk,Gk=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Ak.use(),()=>{Ak.unuse()}),[]);const{lightboxPreview:t,setLightboxPreview:a,attributes:l,setAttributes:i,className:o,name:n,deviceType:r}=e,{block_id:s,readyToRender:c}=l;return React.createElement("div",{className:Be()(o,"uagb-editor-preview-mode-"+r.toLowerCase(),"uagb-block-"+s)},c?React.createElement(React.Fragment,null,React.createElement(TS,{attributes:l,setAttributes:i,name:n}),t&&React.createElement(Sk,{attributes:l,setAttributes:i,setLightboxPreview:a})):React.createElement(mS,{attributes:l,setAttributes:i}))}),Mk=Object(B.memo)(e=>{let{attributes:t}=e;const{captionLoadGoogleFonts:a,captionFontFamily:l,captionFontWeight:i,loadMoreLoadGoogleFonts:o,loadMoreFontFamily:n,loadMoreFontWeight:r,lightboxLoadGoogleFonts:s,lightboxFontFamily:c,lightboxFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});function Rk(){return(Rk=Object.assign||function(e){for(var t=1;t{const{clientId:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,focusList:n},isSelected:r,setAttributes:s,name:c,deviceType:u}=e,{imageClickEvent:p}=a;Object(B.useEffect)(()=>{if(Array.isArray(n)&&n.length){const e={};n.forEach((t,a)=>{!0===t&&(e[a]=!0)}),s({focusList:[],focusListObject:{...e}})}uagb_blocks_info.spectra_pro_status||"url"!==p||s({imageClickEvent:"none"})},[]);const d=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{tileSize:n,feedLayout:r,imageDisplayCaption:s,feedMarginTop:c,feedMarginRight:u,feedMarginBottom:p,feedMarginLeft:d,feedMarginTopTab:b,feedMarginRightTab:g,feedMarginBottomTab:m,feedMarginLeftTab:y,feedMarginTopMob:f,feedMarginRightMob:h,feedMarginBottomMob:v,feedMarginLeftMob:_,feedMarginUnit:T,feedMarginUnitTab:C,feedMarginUnitMob:S,gridImageGap:k,gridImageGapTab:w,gridImageGapMob:P,gridImageGapUnit:x,gridImageGapUnitTab:A,gridImageGapUnitMob:G,lightboxDisplayCaptions:M,lightboxCaptionHeight:R,lightboxCaptionHeightTablet:B,lightboxCaptionHeightMobile:U,lightboxIconSize:E,lightboxIconSizeTablet:O,lightboxIconSizeMobile:L,captionVisibility:H,captionDisplayType:j,imageCaptionAlignment:z,imageCaptionAlignment01:D,captionPaddingTop:N,captionPaddingRight:I,captionPaddingBottom:V,captionPaddingLeft:W,captionPaddingTopTab:q,captionPaddingRightTab:Z,captionPaddingBottomTab:$,captionPaddingLeftTab:Y,captionPaddingTopMob:K,captionPaddingRightMob:J,captionPaddingBottomMob:X,captionPaddingLeftMob:Q,captionPaddingUnit:ee,captionPaddingUnitTab:te,captionPaddingUnitMob:le,captionGap:ie,captionGapUnit:oe,carouselSquares:ne,feedPagination:re,paginateUseLoader:se,paginateButtonAlign:ce,paginateButtonPaddingTop:ue,paginateButtonPaddingRight:pe,paginateButtonPaddingBottom:de,paginateButtonPaddingLeft:be,paginateButtonPaddingTopTab:ge,paginateButtonPaddingRightTab:me,paginateButtonPaddingBottomTab:ye,paginateButtonPaddingLeftTab:fe,paginateButtonPaddingTopMob:he,paginateButtonPaddingRightMob:ve,paginateButtonPaddingBottomMob:_e,paginateButtonPaddingLeftMob:Te,paginateButtonPaddingUnit:Ce,paginateButtonPaddingUnitTab:Se,paginateButtonPaddingUnitMob:ke,imageEnableZoom:we,imageZoomType:Pe,captionBackgroundEnableBlur:xe,captionBackgroundBlurAmount:Ae,captionBackgroundBlurAmountHover:Ge,lightboxEdgeDistance:Me,lightboxEdgeDistanceTablet:Re,lightboxEdgeDistanceMobile:Be,lightboxBackgroundEnableBlur:Ue,lightboxBackgroundBlurAmount:Ee,lightboxBackgroundColor:Oe,lightboxCaptionColor:Le,lightboxCaptionBackgroundColor:He,lightboxIconColor:Fe,captionFontFamily:je,captionFontWeight:ze,captionFontStyle:De,captionTransform:Ne,captionDecoration:Ie,captionFontSizeType:Ve,captionFontSize:We,captionFontSizeTab:qe,captionFontSizeMob:Ze,captionLineHeightType:$e,captionLineHeight:Ye,captionLineHeightTab:Ke,captionLineHeightMob:Je,loadMoreFontFamily:Xe,loadMoreFontWeight:Qe,loadMoreFontStyle:et,loadMoreTransform:tt,loadMoreDecoration:at,loadMoreFontSizeType:lt,loadMoreFontSize:it,loadMoreFontSizeTab:ot,loadMoreFontSizeMob:nt,loadMoreLineHeightType:rt,loadMoreLineHeight:st,loadMoreLineHeightTab:ct,loadMoreLineHeightMob:ut,lightboxFontFamily:pt,lightboxFontWeight:dt,lightboxFontStyle:bt,lightboxTransform:gt,lightboxDecoration:mt,lightboxFontSizeType:yt,lightboxFontSize:ft,lightboxFontSizeTab:ht,lightboxFontSizeMob:vt,lightboxLineHeightType:_t,lightboxLineHeight:Tt,lightboxLineHeightTab:Ct,lightboxLineHeightMob:St,captionBackgroundEffect:kt,captionBackgroundEffectHover:wt,captionBackgroundEffectAmount:Pt,captionBackgroundEffectAmountHover:xt,captionColor:At,captionColorHover:Gt,captionBackgroundColor:Mt,captionBackgroundColorHover:Rt,overlayColor:Bt,overlayColorHover:Ut,captionSeparateColors:Et,paginateArrowDistance:Ot,paginateArrowDistanceUnit:Lt,paginateArrowSize:Ht,paginateDotDistance:Ft,paginateDotDistanceUnit:jt,paginateLoaderSize:zt,paginateButtonTextColor:Dt,paginateButtonTextColorHover:Nt,paginateColor:It,paginateColorHover:Vt,imageBoxShadowColor:Wt,imageBoxShadowHOffset:qt,imageBoxShadowVOffset:Zt,imageBoxShadowBlur:$t,imageBoxShadowSpread:Yt,imageBoxShadowPosition:Kt,imageBoxShadowColorHover:Jt,imageBoxShadowHOffsetHover:Xt,imageBoxShadowVOffsetHover:Qt,imageBoxShadowBlurHover:ea,imageBoxShadowSpreadHover:ta,imageBoxShadowPositionHover:aa,btnBorderHColor:la,arrowBorderHColor:ia,mainTitleBorderColor:oa,mainTitleBorderHColor:na,imageBorderHColor:ra,block_id:sa}=e,ca=It||"#007cba",ua=us(Ae,"captionBackgroundBlurAmount",i),pa=us(Ge,"captionBackgroundBlurAmountHover",i),da=us(Pt,"captionBackgroundEffectAmount",i),ba=us(xt,"captionBackgroundEffectAmountHover",i),ga=us(ie,"captionGap",i),ma=us(Ot,"paginateArrowDistance",i),ya=isNaN(Ft)?0:Ft,fa=us(Ht,"paginateArrowSize",i),ha=us(zt,"paginateLoaderSize",i),va=us(k,"gridImageGap",i),_a=us(R,"lightboxCaptionHeight",i),Ta=isNaN(c)?0:c,Ca=isNaN(u)?0:u,Sa=isNaN(p)?0:p,ka=isNaN(d)?0:d,wa=isNaN(b)?0:b,Pa=isNaN(g)?0:g,xa=isNaN(m)?0:m,Aa=isNaN(y)?0:y,Ga=isNaN(f)?0:f,Ma=isNaN(h)?0:h,Ra=isNaN(v)?0:v,Ba=isNaN(_)?0:_,Ua=isNaN(w)?va:w,Ea=isNaN(P)?Ua:P,Oa="number"==typeof B?B:_a,La="number"==typeof U?U:Oa,Ha=Wr(e,"arrow"),Fa=Wr(e,"arrow","tablet"),ja=Wr(e,"arrow","mobile"),za=Wr(e,"btn"),Da=Wr(e,"btn","tablet"),Na=Wr(e,"btn","mobile"),Ia=Wr(e,"image"),Va=Wr(e,"image","tablet"),Wa=Wr(e,"image","mobile"),qa=Wr(e,"mainTitle"),Za=Wr(e,"mainTitle","tablet"),$a=Wr(e,"mainTitle","mobile"),Ya=`${Vr(qt,"px")} ${Vr(Zt,"px")} ${Vr($t,"px")} ${Vr(Yt,"px")}${Wt?" "+Wt:""}${"inset"===Kt?" "+Kt:""}`,Ka=`${Vr(Xt,"px")} ${Vr(Qt,"px")} ${Vr(ea,"px")} ${Vr(ta,"px")}${Jt?" "+Jt:""}${"inset"===aa?" "+aa:""}`,Ja=""===Ie&&uagb_blocks_info.is_astra_based_theme?uagb_blocks_info.astra_body_text_decoration:Ie;let Xa={".wp-block-uagb-image-gallery":{padding:$r(T,Ta,Ca,"carousel"===r?Sa+5:Sa,ka)}," .spectra-image-gallery__control-arrows svg":{fill:ca}," .spectra-image-gallery__control-arrows:hover svg":{fill:Vt}," .spectra-image-gallery__control-arrows--carousel":{...Ha}," .spectra-image-gallery__control-arrows--carousel svg":{width:fa+"px",height:fa+"px"}," .spectra-image-gallery__control-arrows--carousel:hover":{"border-color":ia}," .spectra-image-gallery__control-arrows--carousel.slick-prev":{left:Vr(ma,Lt)}," .spectra-image-gallery__control-arrows--carousel.slick-next":{right:Vr(ma,Lt)}," .spectra-image-gallery__layout--carousel ul.slick-dots":{top:Vr(ya,"px")}," .spectra-image-gallery__layout--carousel ul.slick-dots li button:before":{color:ca}," .spectra-image-gallery__layout--carousel ul.slick-dots li button:hover:before":{color:Vt}," .spectra-image-gallery__control-dots li button::before":{color:ca}," .spectra-image-gallery__control-dots li button:hover::before":{color:Vt}," .spectra-image-gallery__control-loader":{"margin-top":Vr(ya,jt)}," .spectra-image-gallery__control-loader div":{"background-color":It,width:Vr(ha,"px"),height:Vr(ha,"px"),"border-radius":"100%",padding:0}," .spectra-image-gallery__control-button":{"margin-top":Vr(ya,jt),padding:$r(Ce,ue,pe,de,be),color:Dt,"background-color":It,"font-family":"Default"===Xe?"":Xe,"font-weight":Qe,"font-style":et,"text-decoration":at,"text-transform":tt,"font-size":Vr(it,lt),"line-height":Vr(st,rt),...za}," .spectra-image-gallery__control-button:hover":{color:Nt,"background-color":Vt,"border-color":la}," .spectra-image-gallery__layout--grid":{"grid-gap":Vr(va,x)}," .spectra-image-gallery__layout--masonry":{margin:Vr(-Math.abs(va/2),x)}," .spectra-image-gallery__layout--masonry .spectra-image-gallery__media-wrapper--isotope":{padding:$r(x,va/2)}," .spectra-image-gallery__layout--carousel":{"margin-bottom":Vr(ya,"px")+" !important"}," .spectra-image-gallery__layout--carousel .spectra-image-gallery__media-wrapper":{padding:$r(x,0,va/2)}," .spectra-image-gallery__layout--carousel .slick-list":{margin:$r(x,0,-va/2)}," .spectra-image-gallery__layout--tiled":{"grid-gap":Vr(va,x),"grid-auto-rows":Vr(n,"px")}," .spectra-image-gallery__media":{...Ia}," .spectra-image-gallery__media:hover":{"border-color":ra}," .spectra-image-gallery__media-thumbnail-blurrer":{"-webkit-backdrop-filter":`blur( ${Vr(ua,"px")} )`,"backdrop-filter":`blur( ${Vr(ua,"px")} )`}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer":{"-webkit-backdrop-filter":`blur( ${Vr(pa,"px")} )`,"backdrop-filter":`blur( ${Vr(pa,"px")} )`}," .spectra-image-gallery__media-thumbnail-caption-wrapper--overlay":{"background-color":s?"hover"===H?"rgba(0,0,0,0)":Mt:Bt}," .spectra-image-gallery__media-thumbnail-caption-wrapper--overlay a":{color:s?"hover"===H?"rgba(0,0,0,0)":Mt:Bt}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption-wrapper--overlay":{"background-color":s?"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Rt:Mt:Ut}," .spectra-image-gallery__media-thumbnail-caption-wrapper--bar-inside":{"-webkit-align-items":cS(z,1,"flex"),"align-items":cS(z,1,"flex"),"-webkit-justify-content":cS(z,2,"flex"),"justify-content":cS(z,2,"flex")}," .spectra-image-gallery__media-thumbnail-caption":{color:"hover"===H?"rgba(0,0,0,0)":At,"text-align":cS(z,2),"font-family":"Default"===je?"":je,"font-weight":ze,"font-style":De,"text-decoration":Ja,"text-transform":Ne,"font-size":Vr(We,Ve),"line-height":Vr(Ye,$e),"padding-top":Vr(N,ee),"padding-right":Vr(I,ee),"padding-bottom":Vr(V,ee),"padding-left":Vr(W,ee)}," .spectra-image-gallery__media-thumbnail-caption a":{color:"hover"===H?"rgba(0,0,0,0)":At}," .spectra-image-gallery__media-thumbnail-caption--overlay":{"-webkit-align-items":cS(z,1,"flex"),"align-items":cS(z,1,"flex"),"-webkit-justify-content":cS(z,2,"flex"),"justify-content":cS(z,2,"flex")}," .spectra-image-gallery__media-thumbnail-caption--bar-inside":{"background-color":"hover"===H?"rgba(0,0,0,0)":Mt,...qa,"border-color":"hover"===H?"rgba(0,0,0,0)":oa}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption--bar-inside":{"background-color":"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Rt:Mt,"border-color":"antiHover"===H?"rgba(0,0,0,0)":"antiHover"!==H?na:oa}," .spectra-image-gallery__media-thumbnail-caption--bar-outside":{"background-color":Mt,...qa}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption--bar-outside":{"background-color":Et?Rt:Mt,"border-color":Et?na:oa}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption":{color:"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Gt:At}," .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-caption a":{color:"antiHover"===H?"rgba(0,0,0,0)":"always"===H&&Et?Gt:At}," .spectra-image-gallery__control-lightbox":{"background-color":Oe,"backdrop-filter":Ue?`blur(${Ee}px)`:void 0}," .spectra-image-gallery__control-lightbox--caption":{color:Le,background:`linear-gradient(rgba(0,0,0,0), ${He})`,"min-height":Vr(_a,"px"),"font-family":"Default"===pt?"":pt,"font-weight":dt,"font-style":bt,"text-decoration":mt,"text-transform":gt,"font-size":Vr(ft,yt),"line-height":Vr(Tt,_t)}," .spectra-image-gallery__control-lightbox--thumbnails-wrapper":{"background-color":M?He:"transparent"}," .spectra-image-gallery__control-lightbox--count":{top:Vr(Me,"px"),left:Vr(Me,"px"),color:Fe,"font-family":"Default"===pt?"":pt,"font-size":Vr(E,"px")?`calc(${Vr(E,"px")} * 3 / 4 )`:void 0,"line-height":Vr(E,"px")?`calc(${Vr(E,"px")} * 3 / 4 )`:void 0}," .spectra-image-gallery__control-lightbox--close":{top:Vr(Me,"px"),right:Vr(Me,"px")}," .spectra-image-gallery__control-lightbox--close svg":{width:Vr(E,"px"),height:Vr(E,"px"),fill:Fe}," .spectra-image-gallery__control-lightbox--main .swiper-button-prev":{left:Vr(Me,"px"),color:Fe}," .spectra-image-gallery__control-lightbox--main .swiper-button-next":{right:Vr(Me,"px"),color:Fe}},Qa={".wp-block-uagb-image-gallery":{padding:$r(C,wa,Pa,"carousel"===r?xa+5:xa,Aa)}," .spectra-image-gallery__control-arrows--carousel":{...Fa}," .spectra-image-gallery__control-button":{padding:$r(Se,ge,me,ye,fe),"font-size":Vr(ot,lt),"line-height":Vr(ct,rt),...Da}," .spectra-image-gallery__layout--grid":{"grid-gap":Vr(Ua,A)}," .spectra-image-gallery__layout--masonry":{margin:Vr(-Math.abs(Ua/2),A)}," .spectra-image-gallery__layout--masonry .spectra-image-gallery__media-wrapper--isotope":{padding:$r(A,Ua/2)}," .spectra-image-gallery__layout--carousel .spectra-image-gallery__media-wrapper":{padding:$r(A,0,Ua/2)}," .spectra-image-gallery__layout--carousel .slick-list":{margin:$r(A,0,-Ua/2)}," .spectra-image-gallery__layout--tiled":{"grid-gap":Vr(Ua,A)}," .spectra-image-gallery__media":{...Va}," .spectra-image-gallery__media-thumbnail-caption":{"font-size":Vr(qe,Ve),"line-height":Vr(Ke,$e),"padding-top":Vr(q,te),"padding-right":Vr(Z,te),"padding-bottom":Vr($,te),"padding-left":Vr(Y,te)}," .spectra-image-gallery__media-thumbnail-caption--bar-inside":{...Za}," .spectra-image-gallery__media-thumbnail-caption--bar-outside":{...Za}," .spectra-image-gallery__control-lightbox--caption":{"min-height":Vr(Oa,"px"),"font-size":Vr(ht,yt),"line-height":Vr(Ct,_t)}," .spectra-image-gallery__control-lightbox--count":{top:Vr(Re,"px"),left:Vr(Re,"px"),"font-size":Vr(O,"px")?`calc(${Vr(O,"px")} * 3 / 4 )`:void 0,"line-height":Vr(O,"px")?`calc(${Vr(O,"px")} * 3 / 4 )`:void 0}," .spectra-image-gallery__control-lightbox--close":{top:Vr(Re,"px"),right:Vr(Re,"px")}," .spectra-image-gallery__control-lightbox--close svg":{width:Vr(O,"px"),height:Vr(O,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-prev":{left:Vr(Re,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-next":{right:Vr(Re,"px")}},el={".wp-block-uagb-image-gallery":{padding:$r(S,Ga,Ma,"carousel"===r?Ra+5:Ra,Ba)}," .spectra-image-gallery__control-arrows--carousel":{...ja}," .spectra-image-gallery__control-button":{padding:$r(ke,he,ve,_e,Te),"font-size":Vr(nt,lt),"line-height":Vr(ut,rt),...Na}," .spectra-image-gallery__layout--grid":{"grid-gap":Vr(Ea,G)}," .spectra-image-gallery__layout--masonry":{margin:Vr(-Math.abs(Ea/2),G)}," .spectra-image-gallery__layout--masonry .spectra-image-gallery__media-wrapper--isotope":{padding:$r(G,Ea/2)}," .spectra-image-gallery__layout--carousel .spectra-image-gallery__media-wrapper":{padding:$r(G,0,Ea/2)}," .spectra-image-gallery__layout--carousel .slick-list":{margin:$r(G,0,-Ea/2)}," .spectra-image-gallery__layout--tiled":{"grid-gap":Vr(Ea,G)}," .spectra-image-gallery__media":{...Wa}," .spectra-image-gallery__media-thumbnail-caption":{"font-size":Vr(Ze,Ve),"line-height":Vr(Je,$e),"padding-top":Vr(K,le),"padding-right":Vr(J,le),"padding-bottom":Vr(X,le),"padding-left":Vr(Q,le)}," .spectra-image-gallery__media-thumbnail-caption--bar-inside":{...$a}," .spectra-image-gallery__media-thumbnail-caption--bar-outside":{...$a}," .spectra-image-gallery__control-lightbox--caption":{"min-height":Vr(La,"px"),"font-size":Vr(vt,yt),"line-height":Vr(St,_t)}," .spectra-image-gallery__control-lightbox--count":{top:Vr(Be,"px"),left:Vr(Be,"px"),"font-size":Vr(L,"px")?`calc(${Vr(L,"px")} * 3 / 4 )`:void 0,"line-height":Vr(L,"px")?`calc(${Vr(L,"px")} * 3 / 4 )`:void 0}," .spectra-image-gallery__control-lightbox--close":{top:Vr(Be,"px"),right:Vr(Be,"px")}," .spectra-image-gallery__control-lightbox--close svg":{width:Vr(L,"px"),height:Vr(L,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-prev":{left:Vr(Be,"px")}," .spectra-image-gallery__control-lightbox--main .swiper-button-next":{right:Vr(Be,"px")}};switch(kt){case"none":Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],"-webkit-filter":"none",filter:"none"};break;case"grayscale":case"sepia":Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],"-webkit-filter":`${kt}( ${Vr(da,"%")} )`,filter:`${kt}( ${Vr(da,"%")} )`}}switch(wt){case"none":Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={"-webkit-filter":"none",filter:"none"};break;case"grayscale":case"sepia":Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={"-webkit-filter":`${wt}( ${Vr(ba,"%")} )`,filter:`${wt}( ${Vr(ba,"%")} )`}}switch(xe||(Xa[" .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-thumbnail-blurrer"],"-webkit-backdrop-filter":"none","backdrop-filter":"none"},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"]={"-webkit-backdrop-filter":"none","backdrop-filter":"none"}),s&&"bar-outside"===j&&(Xa[" .spectra-image-gallery__media-thumbnail-caption-wrapper"]="top"===D?{...Xa[" .spectra-image-gallery__media-thumbnail-caption-wrapper"],"margin-bottom":Vr(ga,oe)}:{...Xa[" .spectra-image-gallery__media-thumbnail-caption-wrapper"],"margin-top":Vr(ga,oe)}),"grid"===r&&re&&(Xa[" .spectra-image-gallery__control-wrapper"]={"margin-top":Vr(ya,jt)}),"carousel"===r&&ne&&(Xa[" .spectra-image-gallery__media--carousel"]={"aspect-ratio":1},Xa[" .spectra-image-gallery__media-thumbnail--carousel"]={height:"100%",width:"100%","-o-object-fit":"cover","object-fit":"cover"}),"masonry"===r&&re&&!se&&(Xa[" .spectra-image-gallery__control-wrapper"]={"-webkit-justify-content":ce,"justify-content":ce,"-webkit-align-items":"center","align-items":"center"}),Pe){case"zoom-in":we&&(Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.005, 1.005, 1.005)"},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.1, 1.1, 1.1)"});break;case"zoom-out":we&&(Xa[" .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.1, 1.1, 1.1)"},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail"],transform:"scale3d(1.005, 1.005, 1.005)"})}"outset"===Kt?(Xa[" .spectra-image-gallery__media"]={...Xa[" .spectra-image-gallery__media"],"box-shadow":Ya},Xa[" .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":"0 0 transparent"+("inset"===aa?" "+aa:"")}):(Xa[" .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":Ya},Xa[" .spectra-image-gallery__media"]={...Xa[" .spectra-image-gallery__media"],"box-shadow":"0 0 transparent"+("inset"===aa?" "+aa:"")}),"outset"===aa?(Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media"]={"box-shadow":Ka},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":"0 0 transparent"+("inset"===Kt?" "+Kt:"")}):(Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"]={...Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media-thumbnail-blurrer"],"box-shadow":Ka},Xa[" .spectra-image-gallery__media-wrapper:hover .spectra-image-gallery__media"]={"box-shadow":"0 0 transparent"+("inset"===Kt?" "+Kt:"")});const tl=".editor-styles-wrapper .uagb-block-"+sa;Xa=Object(F.applyFilters)("spectra.image-gallery.styling",Xa,e),Qa=Object(F.applyFilters)("spectra.image-gallery.tabletStyling",Qa,e),el=Object(F.applyFilters)("spectra.image-gallery.mobileStyling",el,e),Xa=Object(F.applyFilters)("spectra.image-gallery.styling",Xa,e),Qa=Object(F.applyFilters)("spectra.image-gallery.tabletStyling",Qa,e),el=Object(F.applyFilters)("spectra.image-gallery.mobileStyling",el,e);let al=ae(Xa,tl);return"tablet"!==o&&"mobile"!==o||(al+=ae(Qa,""+tl,!0,"tablet"),"mobile"===o&&(al+=ae(el,""+tl,!0,"mobile"))),al}(a,0,c,u),[a,u]);Object(B.useEffect)(()=>{he(e)},[l,i,o,u]);const[b,g]=Object(B.useState)(!1);return Object(B.useEffect)(()=>{r||g(!1)},[r]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:d}),React.createElement(Mk,{attributes:a}),r&&React.createElement(gS,Rk({},e,{lightboxPreview:b,setLightboxPreview:g})),React.createElement(Gk,Rk({},e,{lightboxPreview:b,setLightboxPreview:g})))});a(364);const Uk=(e,t,a)=>{const l=Array.isArray(t)?t:t.split(".");let i=e;for(const e of l){if(!i||"object"!=typeof i||!(e in i))return a;i=i[e]}return i},Ek=(e,t)=>{if(e&&t)return e>t?"landscape":"portrait"};var Ok={from:[{type:"block",blocks:["core/gallery"],transform:e=>{var t,a,l,i,o,n,r,s,c,u,p,d,b,g,m,y,f,h,v,_,T;const C=Math.max(N((null==e||null===(t=e.style)||void 0===t||null===(a=t.spacing)||void 0===a||null===(l=a.blockGap)||void 0===l?void 0:l.left)||"8"),N((null==e||null===(i=e.style)||void 0===i||null===(o=i.spacing)||void 0===o||null===(n=o.blockGap)||void 0===n?void 0:n.top)||"8"));return Object(de.createBlock)("uagb/image-gallery",{columnsDesk:(null==e?void 0:e.columns)||3,readyToRender:!0,mediaGallery:e.images?e.images.map(e=>((e,t,a,l,i,o)=>{var n,r,s;let c="",u="",p="";const d=(b=e,["id","link"].reduce((e,t)=>(b&&Object.prototype.hasOwnProperty.call(b,t)&&(e[t]=b[t]),e),{}));var b;const g={};if(e.id&&"object"==typeof o&&null!==o)for(const t in o)parseInt(o[t].id)===e.id&&(o[t].customLink&&(d.customLink=o[t].customLink),o[t].linkTarget&&(d.linkTarget=o[t].linkTarget),c=o[t].thumbnailUrl,u=o[t].mediumUrl,p=o[t].largeUrl);if(e.id&&!e.sizes&&!e.media_details||"medium_large"===t&&!c){const t=wp.data.select("core").getMedia(e.id);t&&(e=t)}return d.alt=Uk(e,["alt_text"])||Uk(e,["alt"])||"",d.caption=(null===(n=e)||void 0===n||null===(r=n.caption)||void 0===r?void 0:r.raw)||"",d.url=e.url||e.source_url,d.mime=e.mime_type,d.type=e.media_type,d.link=(null===(s=e)||void 0===s?void 0:s.link)||"",d.subtype=e.mime_type.split("/")[1],g.thumbnail={height:Uk(e,["sizes",t,"height"])||Uk(e,["media_details","sizes",t,"height"])||void 0,width:Uk(e,["sizes",t,"width"])||Uk(e,["media_details","sizes",t,"width"])||void 0,url:Uk(e,["sizes",t,"url"])||Uk(e,["media_details","sizes",t,"source_url"])||c||e.url||e.source_url,orientation:Ek(Uk(e,["media_details","sizes",t,"width"]),Uk(e,["media_details","sizes",t,"height"]))},g.medium={height:Uk(e,["sizes",a,"height"])||Uk(e,["media_details","sizes",a,"height"])||void 0,width:Uk(e,["sizes",a,"width"])||Uk(e,["media_details","sizes",a,"width"])||void 0,url:Uk(e,["sizes",a,"url"])||Uk(e,["media_details","sizes",a,"source_url"])||u||e.url||e.source_url,orientation:Ek(Uk(e,["media_details","sizes",a,"width"]),Uk(e,["media_details","sizes",a,"height"]))},g.large={height:Uk(e,["sizes",l,"height"])||Uk(e,["media_details","sizes",l,"height"])||void 0,width:Uk(e,["sizes",l,"width"])||Uk(e,["media_details","sizes",l,"width"])||void 0,url:Uk(e,["sizes",l,"url"])||Uk(e,["media_details","sizes",l,"source_url"])||p||e.url||e.source_url,orientation:Ek(Uk(e,["media_details","sizes",l,"width"]),Uk(e,["media_details","sizes",l,"height"]))},g.full={url:Uk(e,["sizes",i,"url"])||Uk(e,["media_details","sizes",i,"source_url"])||e.url||e.source_url,height:Uk(e,["sizes",i,"height"])||Uk(e,["media_details","sizes",i,"height"])||void 0,width:Uk(e,["sizes",i,"width"])||Uk(e,["media_details","sizes",i,"width"])||void 0,orientation:Ek(Uk(e,["media_details","sizes",i,"width"]),Uk(e,["media_details","sizes",i,"height"]))},d.sizes=g,d})(e,"thumbnail","medium","large","full",null)):[],mediaIDs:(null==e?void 0:e.ids)||[],galleryImageSize:(null==e?void 0:e.sizeSlug)||"large",feedLayout:null!=e&&e.masonry?"masonry":"grid",imageClickEvent:"attachment"===(null==e?void 0:e.linkTo)||"media"===(null==e?void 0:e.linkTo)?"image":"none",gridImageGap:null!=e&&e.masonry?(null==e?void 0:e.masonryGutter)||8:C,feedMarginTop:N((null==e||null===(r=e.style)||void 0===r||null===(s=r.spacing)||void 0===s||null===(c=s.padding)||void 0===c?void 0:c.top)||"0"),feedMarginRight:N((null==e||null===(u=e.style)||void 0===u||null===(p=u.spacing)||void 0===p||null===(d=p.padding)||void 0===d?void 0:d.right)||"0"),feedMarginBottom:N((null==e||null===(b=e.style)||void 0===b||null===(g=b.spacing)||void 0===g||null===(m=g.padding)||void 0===m?void 0:m.bottom)||"0"),feedMarginLeft:N((null==e||null===(y=e.style)||void 0===y||null===(f=y.spacing)||void 0===f||null===(h=f.padding)||void 0===h?void 0:h.left)||"0"),feedMarginUnit:I((null==e||null===(v=e.style)||void 0===v||null===(_=v.spacing)||void 0===_||null===(T=_.padding)||void 0===T?void 0:T.top)||"px")})}}]};let Lk={};Lk=Object(F.applyFilters)("uagb/image-gallery",ss(Lk)),Object(de.registerBlockType)("uagb/image-gallery",{...Lk,title:Object(r.__)("Image Gallery","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create a highly customizable image gallery","ultimate-addons-for-gutenberg"),icon:se.image_gallery,keywords:[Object(r.__)("image","ultimate-addons-for-gutenberg"),Object(r.__)("gallery","ultimate-addons-for-gutenberg"),Object(r.__)("grid","ultimate-addons-for-gutenberg"),Object(r.__)("masonry","ultimate-addons-for-gutenberg"),Object(r.__)("carousel","ultimate-addons-for-gutenberg"),Object(r.__)("tiled","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg"),Object(r.__)("ultimate","ultimate-addons-for-gutenberg"),Object(r.__)("addon","ultimate-addons-for-gutenberg"),Object(r.__)("spectra","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Ra,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"image-gallery"}):React.createElement(Bk,e),save:()=>null,transforms:Ok});function Hk(){return(Hk=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{icon:l,iconSize:i,iconSizeTab:o,iconSizeMob:s,iconSizeUnit:c,noticeDismiss:u,cookies:p,close_cookie_days:d,textColor:b,titleColor:g,noticeColor:m,contentBgColor:y,noticeDismissColor:f,noticeAlignment:h,titleFontFamily:v,titleFontWeight:_,titleFontSizeType:T,titleLineHeightType:C,titleFontSize:S,titleFontSizeTablet:k,titleFontSizeMobile:w,titleLineHeight:P,titleLineHeightTablet:x,titleLineHeightMobile:A,descFontFamily:G,descFontWeight:M,descFontSize:R,descFontSizeType:B,descFontSizeTablet:U,descFontSizeMobile:E,descLineHeight:O,descLineHeightType:L,descLineHeightTablet:H,descLineHeightMobile:F,titleLoadGoogleFonts:j,descLoadGoogleFonts:z,titleTopPadding:D,titleRightPadding:N,titleBottomPadding:I,titleLeftPadding:V,titleTopPaddingTablet:W,titleRightPaddingTablet:q,titleBottomPaddingTablet:Z,titleLeftPaddingTablet:$,titleTopPaddingMobile:Y,titleRightPaddingMobile:K,titleBottomPaddingMobile:J,titleLeftPaddingMobile:X,titlePaddingUnit:Q,mobileTitlePaddingUnit:ee,tabletTitlePaddingUnit:te,titlePaddingLink:ae,headingTag:le,layout:ie,highlightWidth:oe,highlightWidthTablet:ne,highlightWidthMobile:re,contentTopPadding:se,contentRightPadding:ce,contentBottomPadding:ue,contentLeftPadding:pe,contentTopPaddingTablet:de,contentRightPaddingTablet:be,contentBottomPaddingTablet:me,contentLeftPaddingTablet:ye,contentTopPaddingMobile:fe,contentRightPaddingMobile:he,contentBottomPaddingMobile:ve,contentLeftPaddingMobile:_e,contentPaddingUnit:Te,mobileContentPaddingUnit:Se,tabletContentPaddingUnit:ke,contentPaddingLink:we,titleTransform:Pe,titleDecoration:xe,descTransform:Ae,descDecoration:Ge,titleFontStyle:Me,descFontStyle:Re,titleLetterSpacing:Be,titleLetterSpacingTablet:Ue,titleLetterSpacingMobile:Oe,titleLetterSpacingType:He,descLetterSpacing:Fe,descLetterSpacingTablet:ze,descLetterSpacingMobile:De,descLetterSpacingType:Ne}=t,Ie=[{value:"",label:Object(r.__)("Always Show","ultimate-addons-for-gutenberg")},{value:"uagb-dismissable",label:Object(r.__)("Dismissible","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","style","advance"]},React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:ie,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"modern",label:"Modern"},{value:"simple",label:"Border"}],showIcons:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:h,label:"noticeAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),"simple"===ie&&React.createElement(tl,{label:Object(r.__)("Border Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:oe,label:"highlightWidth"},tablet:{value:ne,label:"highlightWidthTablet"},mobile:{value:re,label:"highlightWidthMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Title Tag","ultimate-addons-for-gutenberg"),data:{value:le,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Notice Display","ultimate-addons-for-gutenberg"),data:{value:u,label:"noticeDismiss"},options:Ie}),u&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Button Icon","ultimate-addons-for-gutenberg"),value:l,onChange:e=>a({icon:e})}),React.createElement(tl,{label:Object(r.__)("Button Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"iconSize"},tablet:{value:o,label:"iconSizeTab"},mobile:{value:s,label:"iconSizeMob"}},min:0,max:100,unit:{value:c,label:"iconSizeUnit"},setAttributes:a})),u&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Cookies","ultimate-addons-for-gutenberg"),checked:p,onChange:e=>{const t=Object(n.select)("core/editor"),l=null!=t&&t.getCurrentPostId?t.getCurrentPostId().toString():"null",i=(new Date).getTime();a({c_id:l+"-"+i}),a({cookies:e})}}),p&&u&&React.createElement(Qa,{label:Object(r.__)("Show Closed Notice After (Days)","ultimate-addons-for-gutenberg"),value:d,data:{value:d,label:"close_cookie_days"},min:0,max:50,displayUnit:!1,setAttributes:a}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"titleColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"noticeColor"},setAttributes:a}),u&&React.createElement(hl,{label:Object(r.__)("Dismiss Icon Color","ultimate-addons-for-gutenberg"),colorValue:f||"",data:{value:f,label:"noticeDismissColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:j,label:"titleLoadGoogleFonts"},fontFamily:{value:v,label:"titleFontFamily"},fontWeight:{value:_,label:"titleFontWeight"},fontStyle:{value:Me,label:"titleFontStyle"},transform:{value:Pe,label:"titleTransform"},decoration:{value:xe,label:"titleDecoration"},fontSizeType:{value:T,label:"titleFontSizeType"},fontSize:{value:S,label:"titleFontSize"},fontSizeMobile:{value:w,label:"titleFontSizeMobile"},fontSizeTablet:{value:k,label:"titleFontSizeTablet"},lineHeightType:{value:C,label:"titleLineHeightType"},lineHeight:{value:P,label:"titleLineHeight"},lineHeightMobile:{value:A,label:"titleLineHeightMobile"},lineHeightTablet:{value:x,label:"titleLineHeightTablet"},letterSpacing:{value:Be,label:"titleLetterSpacing"},letterSpacingTablet:{value:Ue,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Oe,label:"titleLetterSpacingMobile"},letterSpacingType:{value:He,label:"titleLetterSpacingType"}}),React.createElement(Pl,Hk({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:D,label:"titleTopPadding"},valueRight:{value:N,label:"titleRightPadding"},valueBottom:{value:I,label:"titleBottomPadding"},valueLeft:{value:V,label:"titleLeftPadding"},valueTopTablet:{value:W,label:"titleTopPaddingTablet"},valueRightTablet:{value:q,label:"titleRightPaddingTablet"},valueBottomTablet:{value:Z,label:"titleBottomPaddingTablet"},valueLeftTablet:{value:$,label:"titleLeftPaddingTablet"},valueTopMobile:{value:Y,label:"titleTopPaddingMobile"},valueRightMobile:{value:K,label:"titleRightPaddingMobile"},valueBottomMobile:{value:J,label:"titleBottomPaddingMobile"},valueLeftMobile:{value:X,label:"titleLeftPaddingMobile"},unit:{value:Q,label:"titlePaddingUnit"},mUnit:{value:ee,label:"mobileTitlePaddingUnit"},tUnit:{value:te,label:"tabletTitlePaddingUnit"},attributes:t,setAttributes:a,link:{value:ae,label:"titlePaddingLink"}}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"textColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:y||"",data:{value:y,label:"contentBgColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:z,label:"descLoadGoogleFonts"},fontFamily:{value:G,label:"descFontFamily"},fontWeight:{value:M,label:"descFontWeight"},fontStyle:{value:Re,label:"descFontStyle"},transform:{value:Ae,label:"descTransform"},decoration:{value:Ge,label:"descDecoration"},fontSizeType:{value:B,label:"descFontSizeType"},fontSize:{value:R,label:"descFontSize"},fontSizeMobile:{value:E,label:"descFontSizeMobile"},fontSizeTablet:{value:U,label:"descFontSizeTablet"},lineHeightType:{value:L,label:"descLineHeightType"},lineHeight:{value:O,label:"descLineHeight"},lineHeightMobile:{value:F,label:"descLineHeightMobile"},lineHeightTablet:{value:H,label:"descLineHeightTablet"},letterSpacing:{value:Fe,label:"descLetterSpacing"},letterSpacingTablet:{value:ze,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:De,label:"descLetterSpacingMobile"},letterSpacingType:{value:Ne,label:"descLetterSpacingType"}}),React.createElement(Pl,Hk({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:se,label:"contentTopPadding"},valueRight:{value:ce,label:"contentRightPadding"},valueBottom:{value:ue,label:"contentBottomPadding"},valueLeft:{value:pe,label:"contentLeftPadding"},valueTopTablet:{value:de,label:"contentTopPaddingTablet"},valueRightTablet:{value:be,label:"contentRightPaddingTablet"},valueBottomTablet:{value:me,label:"contentBottomPaddingTablet"},valueLeftTablet:{value:ye,label:"contentLeftPaddingTablet"},valueTopMobile:{value:fe,label:"contentTopPaddingMobile"},valueRightMobile:{value:he,label:"contentRightPaddingMobile"},valueBottomMobile:{value:ve,label:"contentBottomPaddingMobile"},valueLeftMobile:{value:_e,label:"contentLeftPaddingMobile"},unit:{value:Te,label:"contentPaddingUnit"},mUnit:{value:Se,label:"mobileContentPaddingUnit"},tUnit:{value:ke,label:"tabletContentPaddingUnit"},attributes:t,setAttributes:a,link:{value:we,label:"contentPaddingLink"}})))),React.createElement(il,Hk({},rl,{parentProps:e})))))}),zk=a(128),Dk=0,Nk={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Ik={};Ik.locals=zk.a.locals||{},Ik.use=function(){return Dk++||(Fk=we()(zk.a,Nk)),Ik},Ik.unuse=function(){Dk>0&&!--Dk&&(Fk(),Fk=null)};var Vk=Ik,Wk=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Vk.use(),()=>{Vk.unuse()}),[]);const{attributes:{block_id:t,icon:a,noticeTitle:l,noticeContent:i,noticeDismiss:o,noticeAlignment:n,headingTag:s},setAttributes:c,className:u,deviceType:p}=e;let d="";o&&(d=Ce(a,c));const b={allowedBlocks:["core/paragraph"],template:[["core/paragraph",{content:i}]],templateLock:!1,renderAppender:!1},g=Object(ge.useInnerBlocksProps)({className:"uagb-notice-text"},b);return React.createElement("div",{className:Be()(u,""+o,"uagb-inline_notice__align-"+n,"uagb-block-"+t,"uagb-editor-preview-mode-"+p.toLowerCase())},React.createElement("button",{className:"uagb-notice-close-button",type:"button","aria-label":"Close"},d),React.createElement(ge.RichText,{tagName:s,placeholder:Object(r.__)("Notice Title","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:l,className:"uagb-notice-title",onChange:e=>c({noticeTitle:e})}),React.createElement("div",g))}),qk=Object(B.memo)(e=>{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,descLoadGoogleFonts:o,descFontFamily:n,descFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),Zk=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,clientId:a,attributes:l,attributes:{UAGHideDesktop:i,UAGHideTab:o,UAGHideMob:n},name:r,deviceType:s}=e;Object(B.useEffect)(()=>{ys()},[s]);const c=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,textColor:r,titleColor:s,noticeColor:c,contentBgColor:u,noticeDismissColor:p,iconSize:d,iconSizeTab:b,iconSizeMob:g,iconSizeUnit:m,titleFontFamily:y,titleFontWeight:f,titleFontSizeType:h,titleLineHeightType:v,titleFontSize:_,titleFontSizeTablet:T,titleFontSizeMobile:C,titleLineHeight:S,titleLineHeightTablet:k,titleLineHeightMobile:w,descFontFamily:P,descFontWeight:x,descFontSize:A,descFontSizeType:G,descFontSizeTablet:M,descFontSizeMobile:R,descLineHeight:B,descLineHeightType:U,descLineHeightTablet:E,descLineHeightMobile:O,contentTopPadding:L,contentRightPadding:H,contentBottomPadding:F,contentVrPadding:j,contentHrPadding:z,contentLeftPadding:D,contentTopPaddingTablet:N,contentRightPaddingTablet:I,contentBottomPaddingTablet:V,contentLeftPaddingTablet:W,contentTopPaddingMobile:q,contentRightPaddingMobile:Z,contentBottomPaddingMobile:$,contentLeftPaddingMobile:Y,contentPaddingUnit:K,mobileContentPaddingUnit:J,tabletContentPaddingUnit:X,titleVrPadding:Q,titleHrPadding:ee,titleTopPadding:te,titleRightPadding:le,titleBottomPadding:ie,titleLeftPadding:oe,titleTopPaddingTablet:ne,titleRightPaddingTablet:re,titleBottomPaddingTablet:se,titleLeftPaddingTablet:ce,titleTopPaddingMobile:ue,titleRightPaddingMobile:pe,titleBottomPaddingMobile:de,titleLeftPaddingMobile:be,titlePaddingUnit:ge,mobileTitlePaddingUnit:me,tabletTitlePaddingUnit:ye,noticeDismiss:fe,noticeAlignment:he,layout:ve,highlightWidth:_e,highlightWidthMobile:Te,highlightWidthTablet:Ce,titleTransform:Se,titleDecoration:ke,descTransform:we,descDecoration:Pe,titleFontStyle:xe,descFontStyle:Ae,titleLetterSpacing:Ge,titleLetterSpacingTablet:Me,titleLetterSpacingMobile:Re,titleLetterSpacingType:Be,descLetterSpacing:Ue,descLetterSpacingTablet:Ee,descLetterSpacingMobile:Oe,descLetterSpacingType:Le}=e,He=us(d,"iconSize",i),Fe=us(b,"iconSizeTab",i),je=us(g,"iconSizeMob",i),ze=us(_e,"highlightWidth",i),De=us(Ce,"highlightWidthTablet",i),Ne=us(Te,"highlightWidthMobile",i),Ie="number"==typeof te?te:Q,Ve="number"==typeof oe?oe:ee,We="number"==typeof le?le:ee,qe="number"==typeof ie?ie:Q,Ze="number"==typeof ue?ue:Q,$e="number"==typeof be?be:ee,Ye="number"==typeof pe?pe:ee,Ke="number"==typeof de?de:Q,Je="number"==typeof ne?ne:Q,Xe="number"==typeof ce?ce:ee,Qe="number"==typeof re?re:ee,et="number"==typeof se?se:Q;let tt,at,lt,it,ot,nt;!fe||"left"!==he&&"center"!==he?(tt=Ve,at=We,lt=$e,it=Ye,ot=Xe,nt=Qe):(at=We,tt=Ve,lt=$e,it=Ye,ot=Xe,nt=Qe);const rt="number"==typeof Je?Je:Ie,st="number"==typeof Xe?Xe:Ve,ct="number"==typeof Qe?Qe:We,ut="number"==typeof Ce?Ce:ze,pt="number"==typeof Je?ye:ge,dt="number"==typeof Xe?ye:ge,bt="number"==typeof Qe?ye:ge,gt="number"==typeof Ze?Ze:rt,mt="number"==typeof $e?$e:st,yt="number"==typeof Ye?Ye:ct,ft="number"==typeof Te?Te:ut,ht="number"==typeof Ze?me:pt,vt="number"==typeof $e?me:dt,_t="number"==typeof Ye?me:bt,Tt="number"==typeof L?L:j,Ct="number"==typeof D?D:z,St="number"==typeof H?H:z,kt="number"==typeof F?F:j,wt="number"==typeof q?q:j,Pt="number"==typeof Y?Y:z,xt="number"==typeof Z?Z:z,At="number"==typeof $?$:j,Gt="number"==typeof N?N:j,Mt="number"==typeof W?W:z,Rt="number"==typeof I?I:z,Bt="number"==typeof V?V:j;let Ut={},Et={};const Ot={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":Vr(_,h),"font-weight":f,"font-family":y,"font-style":xe,"text-decoration":ke,"text-transform":Se,"line-height":Vr(S,v),color:s,"padding-left":Vr(tt,ge),"padding-right":Vr(at,ge),"padding-top":Vr(Ie,ge),"padding-bottom":Vr(qe,ge),"letter-spacing":Vr(Ge,Be)}," .uagb-notice-text.block-editor-block-list__layout p":{color:r}," .uagb-notice-text.block-editor-block-list__layout":{color:r,"padding-left":Vr(Ct,K),"padding-right":Vr(St,K),"padding-top":Vr(Tt,K),"padding-bottom":Vr(kt,K),"font-size":Vr(A,G),"font-weight":x,"font-family":P,"font-style":Ae,"text-decoration":Pe,"text-transform":we,"line-height":Vr(B,U),"letter-spacing":Vr(Ue,Le)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{color:r,"padding-left":Vr(Ct,K),"padding-right":Vr(St,K),"padding-top":Vr(Tt,K),"padding-bottom":Vr(kt,K),"font-size":Vr(A,G),"font-weight":x,"font-family":P,"font-style":Ae,"text-decoration":Pe,"text-transform":we,"line-height":Vr(B,U),"letter-spacing":Vr(Ue,Le)}," span.uagb-notice-dismiss":{fill:p}," svg":{fill:p},'.uagb-dismissable button[type="button"] svg':{width:Vr(He,m),height:Vr(He,m),top:Vr(Ie,ge)},'.uagb-inline_notice__align-left button[type="button"] svg':{right:Vr(We,ge)},'.uagb-inline_notice__align-center button[type="button"] svg':{right:Vr(We,ge)}};Et={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":Vr(C,h),"line-height":Vr(w,v),"padding-left":Vr(lt,me),"padding-right":Vr(it,me),"padding-top":Vr(Ze,me),"padding-bottom":Vr(Ke,me),"letter-spacing":Vr(Re,Be)}," .uagb-notice-text.block-editor-block-list__layout":{"font-size":Vr(R,G),"line-height":Vr(O,U),"letter-spacing":Vr(Oe,Le),"padding-left":Vr(Pt,J),"padding-right":Vr(xt,J),"padding-top":Vr(wt,J),"padding-bottom":Vr(At,J)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{"font-size":Vr(R,G),"line-height":Vr(O,U),"letter-spacing":Vr(Oe,Le),"padding-left":Vr(Pt,J),"padding-right":Vr(xt,J),"padding-top":Vr(wt,J),"padding-bottom":Vr(At,J)},'.uagb-dismissable button[type="button"] svg':{width:Vr(je,m),height:Vr(je,m),top:Vr(gt,ht)},'.uagb-inline_notice__align-left button[type="button"] svg':{right:Vr(yt,_t)},'.uagb-inline_notice__align-center button[type="button"] svg':{right:Vr(yt,_t)}},Ut={" .rich-text.block-editor-rich-text__editable.uagb-notice-title":{"font-size":Vr(T,h),"line-height":Vr(k,v),"padding-left":Vr(ot,ye),"padding-right":Vr(nt,ye),"padding-top":Vr(Je,ye),"padding-bottom":Vr(et,ye),"letter-spacing":Vr(Me,Be)}," .uagb-notice-text.block-editor-block-list__layout":{"font-size":Vr(M,G),"line-height":Vr(E,U),"letter-spacing":Vr(Ee,Le),"padding-left":Vr(Mt,X),"padding-right":Vr(Rt,X),"padding-top":Vr(Gt,X),"padding-bottom":Vr(Bt,X)}," .rich-text.block-editor-rich-text__editable.uagb-notice-text":{"font-size":Vr(M,G),"line-height":Vr(E,U),"letter-spacing":Vr(Ee,Le),"padding-left":Vr(Mt,X),"padding-right":Vr(Rt,X),"padding-top":Vr(Gt,X),"padding-bottom":Vr(Bt,X)},'.uagb-dismissable button[type="button"] svg':{width:Vr(Fe,m),height:Vr(Fe,m),top:Vr(rt,pt)},'.uagb-inline_notice__align-left button[type="button"] svg':{right:Vr(ct,bt)},'.uagb-inline_notice__align-center button[type="button"] svg':{right:Vr(ct,bt)}},"modern"===ve?(Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=c,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-right-radius"]="3px",Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-top-left-radius"]="3px",Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=u,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"].border="2px solid "+c,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-left-radius"]="3px",Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-bottom-right-radius"]="3px",Ot[" .uagb-notice-text.block-editor-block-list__layout"]["background-color"]=u,Ot[" .uagb-notice-text.block-editor-block-list__layout"].border="2px solid "+c,Ot[" .uagb-notice-text.block-editor-block-list__layout"]["border-bottom-left-radius"]="3px",Ot[" .uagb-notice-text.block-editor-block-list__layout"]["border-bottom-right-radius"]="3px",Ot['.uagb-inline_notice__align-right button[type="button"] svg']={left:Vr(Ve,ge)},Ut['.uagb-inline_notice__align-right button[type="button"] svg']={left:Vr(st,dt)},Et['.uagb-inline_notice__align-right button[type="button"] svg']={left:Vr(mt,vt)}):"simple"===ve&&(Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["background-color"]=u,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=Vr(ze,"px")+" solid "+c,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["background-color"]=u,Ot[" .uagb-notice-text.block-editor-block-list__layout"]["background-color"]=u,Ot[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=Vr(ze,"px")+" solid "+c,Ot[" .uagb-notice-text.block-editor-block-list__layout"]["border-left"]=Vr(ze,"px")+" solid "+c,Et[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=Vr(Ne,"px")+" solid "+c,Et[" .uagb-notice-text.block-editor-block-list__layout"]["border-left"]=Vr(Ne,"px")+" solid "+c,Et[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=Vr(Ne,"px")+" solid "+c,Ut[" .rich-text.block-editor-rich-text__editable.uagb-notice-text"]["border-left"]=Vr(De,"px")+" solid "+c,Ut[" .uagb-notice-text.block-editor-block-list__layout"]["border-left"]=Vr(De,"px")+" solid "+c,Ut[" .rich-text.block-editor-rich-text__editable.uagb-notice-title"]["border-left"]=Vr(De,"px")+" solid "+c,Ot[".uagb-inline_notice__align-right svg"]={left:`calc(${Vr(Ve,ge)} + ${Vr(ze,"px")})`},Ut['.uagb-inline_notice__align-right button[type="button"] svg']={left:`calc(${Vr(st,dt)} + ${Vr(ut,"px")})`},Et['.uagb-inline_notice__align-right button[type="button"] svg']={left:`calc(${Vr(mt,vt)} + ${Vr(ft,"px")})`});const Lt=`.editor-styles-wrapper #block-${t} .uagb-block-${n}`;let Ht=ae(Ot,Lt);return"tablet"!==o&&"mobile"!==o||(Ht+=ae(Ut,""+Lt,!0,"tablet"),"mobile"===o&&(Ht+=ae(Et,""+Lt,!0,"mobile"))),Ht}(l,a,r,s),[l,s]);return Object(B.useEffect)(()=>{he(e)},[i,o,n,s]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),React.createElement(qk,{attributes:l}),t&&React.createElement(jk,e),React.createElement(Wk,e))});a(365);var $k=[{attributes:Kt,save(e){const{attributes:t,className:a}=e,{block_id:l,c_id:i,noticeTitle:o,noticeContent:n,noticeAlignment:r,headingTag:s,icon:c,noticeDismiss:u,cookies:p,close_cookie_days:d}=t;let b="";u&&(b=React.createElement("span",{className:"uagb-notice-dismiss"},kb(c)));var g="";return!0===p&&(g="uagb-notice__active"),React.createElement("div",{className:Be()(a,"uagb-inline_notice__outer-wrap",""+u,"uagb-inline_notice__align-"+r,"uagb-block-"+l,""+g)},b,React.createElement(ge.RichText.Content,{value:o,tagName:s,className:"uagb-notice-title"}),React.createElement(ge.RichText.Content,{value:n,tagName:"div",className:"uagb-notice-text"}))}},{attributes:{block_id:{type:"string"},c_id:{type:"string",default:null},noticeTitle:{type:"string",source:"html",selector:".uagb-notice-title",default:Object(r.__)("Notice Title","ultimate-addons-for-gutenberg")},headingTag:{type:"string",default:"h4"},noticeContent:{type:"string",default:"",multiline:"p"},noticeDismiss:{type:"string",default:""},cookies:{type:"boolean",default:!1},close_cookie_days:{type:"number",default:1},textColor:{type:"string",default:"",UAGCopyPaste:{styleType:"desc-color"}},titleColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},noticeColor:{type:"string",default:"#FFD54F",UAGCopyPaste:{styleType:"main-title-border-color"}},contentBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},noticeDismissColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},icon:{type:"string",default:"rectangle-xmark"},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"btn-size"}},iconSizeTab:{type:"number",UAGCopyPaste:{styleType:"btn-size-tablet"}},iconSizeMob:{type:"number",UAGCopyPaste:{styleType:"btn-size-mobile"}},iconSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},noticeAlignment:{type:"string",default:"left",UAGCopyPaste:{styleType:"btn-align"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},descFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightType:{type:"string",UAGCopyPaste:{styleType:"desc-line-height-type"},default:"em"},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},titleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},titleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},titleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},titleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},titleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},titleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},titleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},titleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},titleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},titleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},titleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},titlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobileTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tabletTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},titlePaddingLink:{type:"boolean",default:!1},layout:{type:"string",default:"modern",UAGCopyPaste:{styleType:"notice-layout"}},highlightWidth:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},contentLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},contentRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},contentTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding"}},contentBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},contentLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},contentRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},contentTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-tablet"}},contentBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},contentLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},contentRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},contentTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-mobile"}},contentBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},contentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit"},default:"px"},mobileContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"},default:"px"},tabletContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"},default:"px"},contentPaddingLink:{type:"boolean",default:!1},contentVrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-vertical-padding"}},contentHrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-horizontal-padding"}},titleVrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"},default:15},titleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"},default:15},isPreview:{type:"boolean",default:!1},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}}},save:function(e){const{attributes:t,className:a}=e,{block_id:l,noticeTitle:i,noticeContent:o,noticeAlignment:n,headingTag:r,icon:s,noticeDismiss:c,cookies:u}=t;let p="";c&&(p=Ce(s));let d="";return!0===u&&(d="uagb-notice__active"),React.createElement("div",{className:Be()(a,""+c,"uagb-inline_notice__align-"+n,"uagb-block-"+l,""+d)},p,React.createElement(ge.RichText.Content,{value:i,tagName:r,className:"uagb-notice-title"}),React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-notice-text"}))}},{attributes:{block_id:{type:"string"},c_id:{type:"string",default:null},noticeTitle:{type:"string",source:"html",selector:".uagb-notice-title",default:Object(r.__)("Notice Title","ultimate-addons-for-gutenberg")},headingTag:{type:"string",default:"h4"},noticeContent:{type:"string",default:"",multiline:"p"},noticeDismiss:{type:"string",default:""},cookies:{type:"boolean",default:!1},close_cookie_days:{type:"number",default:1},textColor:{type:"string",default:"",UAGCopyPaste:{styleType:"desc-color"}},titleColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},noticeColor:{type:"string",default:"#FFD54F",UAGCopyPaste:{styleType:"main-title-border-color"}},contentBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},noticeDismissColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-color"}},icon:{type:"string",default:"rectangle-xmark"},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"btn-size"}},iconSizeTab:{type:"number",UAGCopyPaste:{styleType:"btn-size-tablet"}},iconSizeMob:{type:"number",UAGCopyPaste:{styleType:"btn-size-mobile"}},iconSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-size-unit"}},noticeAlignment:{type:"string",default:"left",UAGCopyPaste:{styleType:"btn-align"}},titleFontFamily:{type:"string",UAGCopyPaste:{styleType:"main-title-font-family"},default:"Default"},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},titleTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},descFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"desc-font-family"}},descFontWeight:{type:"string",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"desc-font-style"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},descFontSize:{type:"number",UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-font-size-type"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descLineHeight:{type:"number",UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightType:{type:"string",UAGCopyPaste:{styleType:"desc-line-height-type"},default:"em"},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",UAGCopyPaste:{styleType:"main-title-load-google-fonts"},default:!1},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},titleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},titleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},titleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},titleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},titleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},titleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},titleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},titleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},titleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},titleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},titleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},titleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},titlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobileTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tabletTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},titlePaddingLink:{type:"boolean",default:!1},layout:{type:"string",default:"modern",UAGCopyPaste:{styleType:"notice-layout"}},highlightWidth:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},highlightWidthMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"main-title-border-width"}},contentLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},contentRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},contentTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding"}},contentBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},contentLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},contentRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},contentTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-tablet"}},contentBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},contentLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},contentRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},contentTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-Top-padding-mobile"}},contentBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},contentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit"},default:"px"},mobileContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"},default:"px"},tabletContentPaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"},default:"px"},contentPaddingLink:{type:"boolean",default:!1},contentVrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-vertical-padding"}},contentHrPadding:{type:"number",default:15,UAGCopyPaste:{styleType:"desc-horizontal-padding"}},titleVrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"},default:15},titleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"},default:15},isPreview:{type:"boolean",default:!1},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}}},save:function(e){const{attributes:t,className:a}=e,{block_id:l,noticeTitle:i,noticeContent:o,noticeAlignment:n,headingTag:r,icon:s,noticeDismiss:c,cookies:u}=t;let p="";c&&(p=Ce(s));let d="";return!0===u&&(d="uagb-notice__active"),React.createElement("div",{className:Be()(a,""+c,"uagb-inline_notice__align-"+n,"uagb-block-"+l,""+d)},React.createElement("button",{className:"uagb-notice-close-button",type:"button","aria-label":"Close"},p),React.createElement(ge.RichText.Content,{value:i,tagName:r,className:"uagb-notice-title"}),React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-notice-text"}))}}];let Yk={};Yk=Object(F.applyFilters)("uagb/inline-notice",ss(Yk)),Object(de.registerBlockType)("uagb/inline-notice",{...Yk,title:Object(r.__)("Inline Notice","ultimate-addons-for-gutenberg"),description:Object(r.__)("Highlight important information using inline notice block.","ultimate-addons-for-gutenberg"),icon:se.inline_notice,keywords:[Object(r.__)("inline notice","ultimate-addons-for-gutenberg"),Object(r.__)("notice","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Kt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"inline-notice"}):React.createElement(Zk,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,noticeTitle:i,noticeAlignment:o,headingTag:n,icon:r,noticeDismiss:s,cookies:c}=t;let u="";s&&(u=Ce(r));let p="";return!0===c&&(p="uagb-notice__active"),React.createElement("div",{className:Be()(a,""+s,"uagb-inline_notice__align-"+o,"uagb-block-"+l,""+p)},React.createElement("button",{className:"uagb-notice-close-button",type:"button","aria-label":"Close"},u),React.createElement(ge.RichText.Content,{value:i,tagName:n,className:"uagb-notice-title"}),React.createElement("div",{className:"uagb-notice-text"},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:$k});function Kk(){return(Kk=Object.assign||function(e){for(var t=1;t{const{loopLottie:t,reverseDirection:a}=e,{setAttributes:l,attributes:{lottieSource:i,align:o,height:n,heightTablet:s,heightMob:c,width:u,widthTablet:p,widthMob:d,backgroundColor:b,loop:g,speed:m,reverse:y,jsonLottie:f,lottieURl:h,playOn:v,backgroundHColor:_},onSelectLottieJSON:T,onSelectLottieURL:C}=e,S=React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement("p",{className:"uagb-form-notice"},React.createElement(React.Fragment,null,Object(r.__)("Note: You can see sample Lottie animations ","ultimate-addons-for-gutenberg"),React.createElement(Le.ExternalLink,{href:"https://lottiefiles.com/"},Object(r.__)("here on this","ultimate-addons-for-gutenberg")),Object(r.__)(" website.","ultimate-addons-for-gutenberg"))),React.createElement(Na,{setAttributes:l,label:Object(r.__)("File Source","ultimate-addons-for-gutenberg"),data:{value:i,label:"lottieSource"},options:[{value:"library",label:Object(r.__)("Library","ultimate-addons-for-gutenberg")},{value:"url",label:Object(r.__)("URL","ultimate-addons-for-gutenberg")}]}),"upload"===i&&React.createElement(Yl,{backgroundImage:f,onSelectImage:T,slug:"lottie",label:Object(r.__)("Lottie Animation","ultimate-addons-for-gutenberg"),allow:["application/json"],disableRemove:!0}),"library"===i&&React.createElement(Yl,{backgroundImage:f,onSelectImage:T,slug:"lottie",label:Object(r.__)("Lottie Animation","ultimate-addons-for-gutenberg"),allow:["application/json"],disableRemove:!0}),"url"===i&&React.createElement(Ss,{label:Object(r.__)("Lottie Animation URL","ultimate-addons-for-gutenberg"),value:h,data:{value:h,label:"lottieURl"},setAttributes:l,onChange:e=>l({lottieURl:e})})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:l,label:Object(r.__)("Play On","ultimate-addons-for-gutenberg"),data:{value:v,label:"playOn"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("Default","ultimate-addons-for-gutenberg")},{value:"hover",label:Object(r.__)("Hover","ultimate-addons-for-gutenberg")},{value:"click",label:Object(r.__)("Click","ultimate-addons-for-gutenberg")},{value:"scroll",label:Object(r.__)("Viewport","ultimate-addons-for-gutenberg")}],help:"scroll"===v||"none"===v?Object(r.__)("This setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"):""}),React.createElement(Na,{setAttributes:l,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Loop","ultimate-addons-for-gutenberg"),checked:g,onChange:t,help:Object(r.__)("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.","ultimate-addons-for-gutenberg")}),React.createElement(Qa,{label:Object(r.__)("Speed","ultimate-addons-for-gutenberg"),setAttributes:l,value:m,data:{value:m,label:"speed"},min:1,max:50,displayUnit:!1,help:Object(r.__)("This setting will only take effect once you refresh the editor page.","ultimate-addons-for-gutenberg")}),g&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Reverse","ultimate-addons-for-gutenberg"),checked:y,onChange:a,help:Object(r.__)("Direction of animation.","ultimate-addons-for-gutenberg")}))),k=React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:u,label:"width"},tablet:{value:p,label:"widthTablet"},mobile:{value:d,label:"widthMob"}},min:0,max:1e3,displayUnit:!1,setAttributes:l}),React.createElement(tl,{label:Object(r.__)("Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:n,label:"height"},tablet:{value:s,label:"heightTablet"},mobile:{value:c,label:"heightMob"}},min:0,max:1e3,displayUnit:!1,setAttributes:l}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"backgroundColor"},setAttributes:l}),hover:React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"backgroundHColor"},setAttributes:l}),disableBottomSeparator:!0}));return uagb_blocks_info.uagb_mime_type?React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(Le.ToolbarGroup,null,React.createElement(ge.MediaReplaceFlow,{mediaURL:h,allowedTypes:["application/json"],accept:["application/json"],onSelectURL:e=>C(e),onSelect:T}))),React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","style","advance"]},React.createElement(il,ol,S),React.createElement(il,nl,k),React.createElement(il,Kk({},rl,{parentProps:e}))))):React.createElement("div",{className:"uagb-show-notice"},React.createElement("span",null,Object(r.__)("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"),React.createElement("a",{href:uagb_blocks_info.uagb_site_url+"/docs/lottie/?utm_source=uagb-dashboard&utm_medium=uagb-editor-page&utm_campaign=uagb-plugin",target:"__blank"}," ",Object(r.__)("this document","ultimate-addons-for-gutenberg")," "),Object(r.__)("to know more about it.","ultimate-addons-for-gutenberg")))}),Qk=a(195),ew=a(129),tw=0,aw={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},lw={};lw.locals=ew.a.locals||{},lw.use=function(){return tw++||(Jk=we()(ew.a,aw)),lw},lw.unuse=function(){tw>0&&!--tw&&(Jk(),Jk=null)};var iw=lw,ow=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(iw.use(),()=>{iw.unuse()}),[]);const{className:t,attributes:a,setAttributes:l,deviceType:i,lottieplayer:o,name:n}=e,s=n.replace("uagb/",""),{loop:c,speed:u,reverse:p,lottieURl:d,playOn:b,align:g,jsonLottie:m}=a,y=p&&c?-1:1,f=()=>{o.current.setPlayerDirection(y),o.current.play()},h=()=>{o.current.stop()};return"invalid"===(d&&d.endsWith(".json")?"valid":"invalid")?React.createElement("div",{className:"uagb-lottie_upload_wrap"},React.createElement(ge.MediaPlaceholder,{icon:React.createElement(ge.BlockIcon,{icon:se.lottie}),labels:{title:Object(r.__)("Lottie","ultimate-addons-for-gutenberg"),instructions:Object(r.__)("Allows you to add fancy animation i.e Lottie to your website.","ultimate-addons-for-gutenberg")},accept:["application/json"],allowedTypes:["application/json"],value:m,onSelect:e=>{e&&e.url?l({jsonLottie:e,lottieURl:e.url,lottieSource:"library"}):l({jsonLottie:null})},onSelectURL:e=>{l({lottieURl:e,lottieSource:"url"})}})):React.createElement("div",{className:Be()(t,"uagb-block-"+a.block_id,"uagb-lottie__outer-wrap","uagb-lottie__"+g,"uagb-editor-preview-mode-"+i.toLowerCase()),onMouseEnter:"hover"===b?f:h,onMouseLeave:"hover"===b?()=>{o.current.setPlayerDirection(y),o.current.stop()}:h,onClick:"click"===b?f:h},React.createElement(Qk.a,{autoplay:!0,ref:o,src:d,loop:c,speed:us(u,"speed",s)}))});function nw(){return(nw=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,isSelected:l,clientId:i,deviceType:o}=e,{UAGHideDesktop:n,UAGHideTab:r,UAGHideMob:s,loop:c,reverse:u}=a,p=Object(B.useRef)(),[d,b]=Object(B.useState)({direction:1,loopState:!0}),g=Object(B.useMemo)(()=>function(e,t,a){const{width:l,widthTablet:i,widthMob:o,height:n,heightTablet:r,heightMob:s,backgroundColor:c,backgroundHColor:u,block_id:p}=e,d=a.toLowerCase(),b=isNaN(l)?"auto":l+"px",g=isNaN(n)?"auto":n+"px",m=isNaN(i)?b:i+"px",y=isNaN(o)?m:o+"px",f=isNaN(r)?g:r+"px",h=isNaN(s)?f:s+"px",v={".uagb-lottie__outer-wrap":{width:m,height:f}," .lf-player-container #lottie":{height:f}},_={".uagb-lottie__outer-wrap":{width:y,height:h}," .lf-player-container #lottie":{height:h}},T=".editor-styles-wrapper .uagb-block-"+p;let C=ae({".uagb-lottie__outer-wrap":{width:b,height:g,background:c},".uagb-lottie__outer-wrap:hover":{background:u}," .lf-player-container #lottie":{height:g}},T);return"tablet"!==d&&"mobile"!==d||(C+=ae(v,""+T,!0,"tablet"),"mobile"===d&&(C+=ae(_,""+T,!0,"mobile"))),C}(a,0,o),[a,o]);return Object(B.useEffect)(()=>{he(e)},[n,r,s,o]),Object(B.useEffect)(()=>{ys()},[o]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:g}),React.createElement(ow,nw({lottieplayer:p},e)),l&&React.createElement(Xk,nw({},e,{loopLottie:()=>{const{loopState:e}=d;t({loop:!c}),b({loopState:!e})},reverseDirection:()=>{const{direction:e}=d;t({reverse:!u}),b({direction:-1*e})}})))});let sw={};sw=Object(F.applyFilters)("uagb/lottie",ss(sw)),Object(de.registerBlockType)("uagb/lottie",{...sw,title:Object(r.__)("Lottie Animation","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add customizable lottie animation on your page.","ultimate-addons-for-gutenberg"),icon:se.lottie,keywords:[Object(r.__)("lottie","ultimate-addons-for-gutenberg"),Object(r.__)("animation","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],category:uagb_blocks_info.category,attributes:ma,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"lottie"}):React.createElement(rw,e),save:()=>null});const cw=[{defaultAttributes:Dt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"paddingBtnLeft",value:35},{label:"paddingBtnRight",value:35},{label:"paddingBtnTop",value:10},{label:"paddingBtnBottom",value:10},{label:"backgroundType",value:"color"},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:100},{label:"btnBorderTopRightRadius",value:100},{label:"btnBorderBottomLeftRadius",value:100},{label:"btnBorderBottomRightRadius",value:100},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"paddingBtnLeft",value:33},{label:"paddingBtnRight",value:33},{label:"paddingBtnTop",value:8},{label:"paddingBtnBottom",value:8},{label:"backgroundType",value:"color"},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"backgroundType",value:"transparent"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopWidth",value:2},{label:"btnBorderLeftWidth",value:2},{label:"btnBorderRightWidth",value:2},{label:"btnBorderBottomWidth",value:2},{label:"btnBorderTopLeftRadius",value:100},{label:"btnBorderTopRightRadius",value:100},{label:"btnBorderBottomLeftRadius",value:100},{label:"btnBorderBottomRightRadius",value:100},{label:"paddingBtnLeft",value:33},{label:"paddingBtnRight",value:33},{label:"paddingBtnTop",value:8},{label:"paddingBtnBottom",value:8},{label:"titleColor",value:"#000000"},{label:"prefixColor",value:"#000000"},{label:"iconColor",value:"#000000"},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"paddingBtnLeft",value:35},{label:"paddingBtnRight",value:35},{label:"paddingBtnTop",value:10},{label:"paddingBtnBottom",value:10},{label:"backgroundType",value:"gradient"},{label:"gradientType",value:"linear"},{label:"gradientAngle",value:0},{label:"gradientLocation1",value:0},{label:"gradientLocation2",value:100},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"iconPosition",value:"after"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:100},{label:"btnBorderTopRightRadius",value:100},{label:"btnBorderBottomLeftRadius",value:100},{label:"btnBorderBottomRightRadius",value:100},{label:"paddingBtnLeft",value:35},{label:"paddingBtnRight",value:35},{label:"paddingBtnTop",value:10},{label:"paddingBtnBottom",value:10},{label:"backgroundType",value:"gradient"},{label:"gradientType",value:"linear"},{label:"gradientAngle",value:0},{label:"gradientLocation1",value:0},{label:"gradientLocation2",value:100},{label:"titleColor",value:"#fff"},{label:"prefixColor",value:"#fff"},{label:"iconColor",value:"#fff"},{label:"iconPosition",value:"after"}],icon:' '}];var uw=Object(F.applyFilters)("uag_marketing_button_presets",cw);function pw(){return(pw=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{align:i,textAlign:o,link:n,linkTarget:s,titleSpace:c,titleSpaceTablet:u,titleSpaceMobile:p,titleSpaceUnit:d,showDescription:b,icon:g,iconPosition:m,iconSpace:y,iconSpaceTablet:f,iconSpaceMobile:h,iconFontSize:v,iconFontSizeMobile:_,iconFontSizeTablet:T,titleColor:C,titleHoverColor:S,prefixColor:k,prefixHoverColor:w,iconColor:P,iconHoverColor:x,backgroundType:A,backgroundColor:G,backgroundHoverColor:M,gradientColor1:R,gradientColor2:B,gradientLocation1:U,gradientLocation2:E,gradientType:O,gradientAngle:L,titleFontFamily:H,titleFontWeight:F,titleFontStyle:j,titleFontSize:z,titleFontSizeType:D,titleFontSizeTablet:N,titleFontSizeMobile:I,titleLineHeightType:V,titleLineHeight:W,titleLineHeightTablet:q,titleLineHeightMobile:Z,titleTag:$,prefixFontFamily:Y,prefixFontWeight:K,prefixFontStyle:J,prefixFontSize:X,prefixFontSizeType:Q,prefixFontSizeTablet:ee,prefixFontSizeMobile:te,prefixLineHeightType:ae,prefixLineHeight:le,prefixLineHeightTablet:ie,prefixLineHeightMobile:oe,paddingBtnUnit:ne,spacingLink:re,mobilePaddingBtnUnit:se,tabletPaddingBtnUnit:ce,paddingBtnTop:ue,paddingBtnBottom:pe,paddingBtnLeft:de,paddingBtnRight:be,paddingBtnTopTablet:me,paddingBtnRightTablet:ye,paddingBtnBottomTablet:fe,paddingBtnLeftTablet:he,paddingBtnTopMobile:ve,paddingBtnRightMobile:_e,paddingBtnBottomMobile:Te,paddingBtnLeftMobile:Se,titleLoadGoogleFonts:ke,prefixLoadGoogleFonts:we,titleTransform:Pe,titleDecoration:xe,prefixTransform:Ae,prefixDecoration:Ge,titleLetterSpacing:Me,titleLetterSpacingTablet:Re,titleLetterSpacingMobile:Be,titleLetterSpacingType:Ue,prefixLetterSpacing:Oe,prefixLetterSpacingTablet:He,prefixLetterSpacingMobile:Fe,prefixLetterSpacingType:ze,inheritFromTheme:De,buttonType:Ne}=t,Ie=uagb_blocks_info.current_theme,Ve=uagb_blocks_info.is_astra_based_theme;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,!De&&React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Hr,{setAttributes:a,presets:uw,presetInputType:"radioImage"})),React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Content & Heading","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{checked:De,onChange:()=>a({inheritFromTheme:!De}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),De&&("Astra"===Ie||Ve)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ne,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:$,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Alignment","ultimate-addons-for-gutenberg"),data:{value:i,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full Width","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"textAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Description","ultimate-addons-for-gutenberg"),checked:b,onChange:()=>a({showDescription:!b})}),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"link"},setAttributes:a,onChange:e=>a({link:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({linkTarget:!s})}))),React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:g,onChange:e=>a({icon:e})}),""!==g&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:m,label:"iconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}]}),React.createElement(tl,{label:Object(r.__)("Gap Between Icon And Text","ultimate-addons-for-gutenberg"),data:{desktop:{value:y,label:"iconSpace"},tablet:{value:f,label:"iconSpaceTablet"},mobile:{value:h,label:"iconSpaceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:v,label:"iconFontSize"},tablet:{value:T,label:"iconFontSizeTablet"},mobile:{value:_,label:"iconFontSizeMobile"}},min:0,max:500,displayUnit:!1,setAttributes:a})))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Heading","ultimate-addons-for-gutenberg"),initialOpen:!0},b&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"titleSpace"},tablet:{value:u,label:"titleSpaceTablet"},mobile:{value:p,label:"titleSpaceMobile"}},min:0,max:20,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a,unit:{value:d,label:"titleSpaceUnit"}}),!De&&React.createElement(React.Fragment,null,React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:ke,label:"titleLoadGoogleFonts"},fontFamily:{value:H,label:"titleFontFamily"},fontWeight:{value:F,label:"titleFontWeight"},fontStyle:{value:j,label:"titleFontStyle"},fontSizeType:{value:D,label:"titleFontSizeType"},fontSize:{value:z,label:"titleFontSize"},fontSizeMobile:{value:I,label:"titleFontSizeMobile"},fontSizeTablet:{value:N,label:"titleFontSizeTablet"},lineHeightType:{value:V,label:"titleLineHeightType"},lineHeight:{value:W,label:"titleLineHeight"},lineHeightMobile:{value:Z,label:"titleLineHeightMobile"},lineHeightTablet:{value:q,label:"titleLineHeightTablet"},transform:{value:Pe,label:"titleTransform"},decoration:{value:xe,label:"titleDecoration"},letterSpacing:{value:Me,label:"titleLetterSpacing"},letterSpacingTablet:{value:Re,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Be,label:"titleLetterSpacingMobile"},letterSpacingType:{value:Ue,label:"titleLetterSpacingType"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:C||"",data:{value:C,label:"titleColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:S||"",data:{value:S,label:"titleHoverColor"},setAttributes:a}),disableBottomSeparator:!0}))),!De&&b&&React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:we,label:"prefixLoadGoogleFonts"},fontFamily:{value:Y,label:"prefixFontFamily"},fontWeight:{value:K,label:"prefixFontWeight"},fontStyle:{value:J,label:"prefixFontStyle"},fontSizeType:{value:Q,label:"prefixFontSizeType"},fontSize:{value:X,label:"prefixFontSize"},fontSizeMobile:{value:te,label:"prefixFontSizeMobile"},fontSizeTablet:{value:ee,label:"prefixFontSizeTablet"},lineHeightType:{value:ae,label:"prefixLineHeightType"},lineHeight:{value:le,label:"prefixLineHeight"},lineHeightMobile:{value:oe,label:"prefixLineHeightMobile"},lineHeightTablet:{value:ie,label:"prefixLineHeightTablet"},transform:{value:Ae,label:"prefixTransform"},decoration:{value:Ge,label:"prefixDecoration"},letterSpacing:{value:Oe,label:"prefixLetterSpacing"},letterSpacingTablet:{value:He,label:"prefixLetterSpacingTablet"},letterSpacingMobile:{value:Fe,label:"prefixLetterSpacingMobile"},letterSpacingType:{value:ze,label:"prefixLetterSpacingType"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:k||"",data:{value:k,label:"prefixColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:w||"",data:{value:w,label:"prefixHoverColor"},setAttributes:a}),disableBottomSeparator:!0})),""!==g&&React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:P||"",data:{value:P,label:"iconColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x||"",data:{value:x,label:"iconHoverColor"},setAttributes:a}),disableBottomSeparator:!0})),!De&&React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:A,label:"backgroundType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")},{value:"gradient",label:Object(r.__)("Gradient","ultimate-addons-for-gutenberg")}]}),"color"===A&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:G||"",data:{value:G,label:"backgroundColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:M||"",data:{value:M,label:"backgroundHoverColor"},setAttributes:a})),disableBottomSeparator:!0})),"gradient"===A&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color 1","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"gradientColor2"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Color 2","ultimate-addons-for-gutenberg"),colorValue:R||"",data:{value:R,label:"gradientColor1"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:O,label:"gradientType"},className:"uagb-multi-button-alignment-control",options:[{value:"linear",label:Object(r.__)("Linear","ultimate-addons-for-gutenberg")},{value:"radial",label:Object(r.__)("Radial","ultimate-addons-for-gutenberg")}]}),React.createElement(Qa,{label:Object(r.__)("Location 1","ultimate-addons-for-gutenberg"),setAttributes:a,value:U,data:{value:U,label:"gradientLocation1"},min:-100,max:100,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Location 2","ultimate-addons-for-gutenberg"),setAttributes:a,value:E,data:{value:E,label:"gradientLocation2"},min:-100,max:100,displayUnit:!1}),"linear"===O&&React.createElement(Qa,{label:Object(r.__)("Angle","ultimate-addons-for-gutenberg"),setAttributes:a,value:L,data:{value:L,label:"gradientAngle"},min:0,max:360,displayUnit:!1}))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"btn",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,pw({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ue,label:"paddingBtnTop"},valueRight:{value:be,label:"paddingBtnRight"},valueBottom:{value:pe,label:"paddingBtnBottom"},valueLeft:{value:de,label:"paddingBtnLeft"},valueTopTablet:{value:me,label:"paddingBtnTopTablet"},valueRightTablet:{value:ye,label:"paddingBtnRightTablet"},valueBottomTablet:{value:fe,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:he,label:"paddingBtnLeftTablet"},valueTopMobile:{value:ve,label:"paddingBtnTopMobile"},valueRightMobile:{value:_e,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Te,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:Se,label:"paddingBtnLeftMobile"},unit:{value:ne,label:"paddingBtnUnit"},mUnit:{value:se,label:"mobilePaddingBtnUnit"},tUnit:{value:ce,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:re,label:"spacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]}))))),React.createElement(il,pw({},rl,{parentProps:e})))))}),gw=a(130),mw=0,yw={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},fw={};fw.locals=gw.a.locals||{},fw.use=function(){return mw++||(dw=we()(gw.a,yw)),fw},fw.unuse=function(){mw>0&&!--mw&&(dw(),dw=null)};var hw=fw,vw=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(hw.use(),()=>{hw.unuse()}),[]);const{attributes:t,setAttributes:a,className:l,mergeBlocks:i,insertBlocksAfter:o,createBlock:n,onReplace:s,deviceType:c}=e,{block_id:u,align:p,textAlign:d,heading:b,prefix:g,icon:m,iconPosition:y,titleTag:f,showDescription:h,inheritFromTheme:v,buttonType:_}=t,T=v&&"secondary"===_,C=T?{borderWidth:"revert-layer"}:{},S="uagb-marketing-btn__link "+(T?"ast-outline-button":"wp-block-button__link"),k=T?"div":"a",w=React.createElement(React.Fragment,null,""!==m&&Ce(m,a)),P=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{placeholder:Object(r.__)("Add Button Title…","ultimate-addons-for-gutenberg"),value:b.replace(/<(?!br\s*V?)[^>]+>/g,""),allowedFormats:[],tagName:f,onChange:e=>a({heading:e}),className:"uagb-marketing-btn__title",onRemove:()=>s([]),multiline:!1,onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),r=2;ra({prefix:e}),className:"uagb-marketing-btn__prefix",onRemove:()=>s([]),multiline:!1,onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),r=2;r{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,prefixLoadGoogleFonts:o,prefixFontFamily:n,prefixFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),Tw=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,setAttributes:a,attributes:l,attributes:{borderStyle:i,borderWidth:o,borderRadius:n,borderColor:r,borderHoverColor:s,UAGHideDesktop:c,UAGHideTab:u,UAGHideMob:p},clientId:d,name:b,deviceType:g}=e;Object(B.useEffect)(()=>{(o||n||r||s||i)&&ue("btn",{label:"borderWidth",value:o},{label:"borderRadius",value:n},{label:"borderColor",value:r},{label:"borderHoverColor",value:s},{label:"borderStyle",value:i},a,l)},[]),Object(B.useEffect)(()=>{ys()},[g]);const m=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{titleSpace:n,titleSpaceTablet:r,titleSpaceMobile:s,titleSpaceUnit:c,iconPosition:u,iconSpace:p,iconSpaceTablet:d,iconSpaceMobile:b,iconFontSize:g,iconFontSizeType:m,iconFontSizeMobile:y,iconFontSizeTablet:f,titleColor:h,titleHoverColor:v,prefixColor:_,prefixHoverColor:T,iconColor:C,iconHoverColor:S,btnBorderHColor:k,backgroundType:w,backgroundColor:P,backgroundHoverColor:x,gradientColor1:A,gradientColor2:G,gradientLocation1:M,gradientLocation2:R,gradientType:B,gradientAngle:U,titleFontFamily:E,titleFontWeight:O,titleFontSize:L,titleFontSizeType:H,titleFontSizeTablet:F,titleFontSizeMobile:j,titleLineHeightType:z,titleLineHeight:D,titleLineHeightTablet:N,titleLineHeightMobile:I,prefixFontFamily:V,prefixFontWeight:W,prefixFontSize:q,prefixFontSizeType:Z,prefixFontSizeTablet:$,prefixFontSizeMobile:Y,prefixLineHeightType:K,prefixLineHeight:J,prefixLineHeightTablet:X,prefixLineHeightMobile:Q,paddingBtnUnit:ee,mobilePaddingBtnUnit:te,tabletPaddingBtnUnit:le,paddingBtnTop:ie,paddingBtnBottom:oe,paddingBtnLeft:ne,paddingBtnRight:re,paddingBtnTopTablet:se,paddingBtnRightTablet:ce,paddingBtnBottomTablet:ue,paddingBtnLeftTablet:pe,paddingBtnTopMobile:de,paddingBtnRightMobile:be,paddingBtnBottomMobile:ge,paddingBtnLeftMobile:me,titleTransform:ye,titleDecoration:fe,prefixTransform:he,prefixDecoration:ve,titleFontStyle:_e,prefixFontStyle:Te,titleLetterSpacing:Ce,titleLetterSpacingTablet:Se,titleLetterSpacingMobile:ke,titleLetterSpacingType:we,prefixLetterSpacing:Pe,prefixLetterSpacingTablet:xe,prefixLetterSpacingMobile:Ae,prefixLetterSpacingType:Ge,block_id:Me,inheritFromTheme:Re}=e,Be=us(M,"gradientLocation1",i),Ue=us(R,"gradientLocation2",i),Ee=us(U,"gradientAngle",i),Oe=us(p,"iconSpace",i),Le=us(g,"iconFontSize",i),He=us(n,"titleSpace",i);let Fe={},je={},ze={};const De=""===C?h:C,Ne=""===S?v:S,Ie=Wr(e,"btn"),Ve=Wr(e,"btn","tablet"),We=Wr(e,"btn","mobile");let qe;Fe={" .uagb-marketing-btn__prefix":{"margin-top":Vr(He,c)}," svg":{fill:De,width:Vr(Le,m),height:Vr(Le,m)}," .uagb-marketing-btn__link:hover svg":{fill:Ne}," .uagb-marketing-btn__link:focus svg":{fill:Ne}},qe="1"!==uagb_blocks_info.is_rtl?"after"===u?"margin-left":"margin-right":"after"===u?"margin-right":"margin-left",Fe[" svg"][qe]=Vr(Oe,"px"),je={" .uagb-marketing-btn__prefix":{"margin-top":Vr(r,"px")}," svg":{width:Vr(f,m),height:Vr(f,m)}},ze={" .uagb-marketing-btn__prefix":{"margin-top":Vr(s,"px")}," svg":{width:Vr(y,m),height:Vr(y,m)}},je[" svg"][qe]=Vr(d,"px"),ze[" svg"][qe]=Vr(b,"px"),Re||("transparent"===w?Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]={"background-color":"transparent"}:"color"===w?(Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]={"background-color":P},Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background):hover"]={"background-color":x}):"gradient"===w&&(Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]={"background-color":"transparent"},Fe[":not(.is-style-outline) .uagb-marketing-btn__link:not(.has-background)"]["background-image"]="linear"===B?`linear-gradient(${Ee}deg, ${A} ${Be}%, ${G} ${Ue}%)`:`radial-gradient( at center center, ${A} ${Be}%, ${G} ${Ue}%)`),Fe={...Fe," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":Vr(L,H),"line-height":Vr(D,z),"font-family":E,"font-weight":O,"font-style":_e,"text-transform":ye,"text-decoration":fe,color:h,"letter-spacing":Vr(Ce,we)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":Vr(q,Z),"line-height":Vr(J,K),"font-family":V,"font-weight":W,color:_,"font-style":Te,"text-transform":he,"text-decoration":ve,"letter-spacing":Vr(Pe,Ge)}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__title":{color:v}," .uagb-marketing-btn__link:focus .block-editor-rich-text__editable.uagb-marketing-btn__title":{color:v}," .uagb-marketing-btn__link:hover .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{color:T}," .uagb-marketing-btn__link:focus .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{color:T}," .uagb-marketing-btn__link:not(.has-background)":{"padding-left":Vr(ne,ee),"padding-right":Vr(re,ee),"padding-top":Vr(ie,ee),"padding-bottom":Vr(oe,ee),...Ie}," .uagb-marketing-btn__link:hover":{"border-color":k}," .uagb-marketing-btn__link:focus":{"border-color":k}},je={...je," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":Vr(F,H),"line-height":Vr(N,z),"letter-spacing":Vr(Se,we)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":Vr($,Z),"line-height":Vr(X,K),"letter-spacing":Vr(xe,Ge)}," .uagb-marketing-btn__link:not(.has-background)":{"padding-left":Vr(pe,le),"padding-right":Vr(ce,le),"padding-top":Vr(se,le),"padding-bottom":Vr(ue,le),...Ve}},ze={...ze," .block-editor-rich-text__editable.uagb-marketing-btn__title":{"font-size":Vr(j,H),"line-height":Vr(I,z),"letter-spacing":Vr(ke,we)}," .block-editor-rich-text__editable.uagb-marketing-btn__prefix":{"font-size":Vr(Y,Z),"line-height":Vr(Q,K),"letter-spacing":Vr(Ae,Ge)}," .uagb-marketing-btn__link:not(.has-background)":{"padding-left":Vr(me,te),"padding-right":Vr(be,te),"padding-top":Vr(de,te),"padding-bottom":Vr(ge,te),...We}});const Ze=".editor-styles-wrapper .uagb-block-"+Me;let $e=ae(Fe,Ze);return"tablet"!==o&&"mobile"!==o||($e+=ae(je,""+Ze,!0,"tablet"),"mobile"===o&&($e+=ae(ze,""+Ze,!0,"mobile"))),$e}(l,0,b,g),[l,g]);return Object(B.useEffect)(()=>{he(e)},[c,u,p,g]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:m}),React.createElement(_w,{attributes:l}),t&&React.createElement(bw,e),React.createElement(vw,e))});const Cw={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},titleSpaceUnit:{type:"string",default:"px"},showDescription:{type:"boolean",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},paddingBtnUnit:{type:"string",default:"px"},mobilePaddingBtnUnit:{type:"string",default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px"},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:".uagb-marketing-btn__prefix",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},...ce("btn")};var Sw=[{attributes:Cw,save(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p}=e.attributes,d=p?"_blank":"";return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n),id:"uagb-marketing-btn-"+l},React.createElement("div",{className:"uagb-marketing-btn__wrap"},React.createElement("a",{href:u,className:"uagb-marketing-btn__link",target:d,rel:"noopener noreferrer"},React.createElement("div",{className:"uagb-marketing-btn__title-wrap"},""!=r&&React.createElement("div",{className:"uagb-marketing-btn__icon-wrap"},kb(r)),React.createElement(ge.RichText.Content,{value:s,tagName:"h6",className:"uagb-marketing-btn__title"})),React.createElement("div",{className:"uagb-marketing-btn__prefix-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}},{attributes:Cw,save(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p,titleTag:d}=e.attributes;let b=p?"_blank":"";return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n,"uagb-block-"+l)},React.createElement("div",{className:"uagb-marketing-btn__wrap"},React.createElement("a",{href:u,className:"uagb-marketing-btn__link",target:b,rel:"noopener noreferrer"},React.createElement("div",{className:"uagb-marketing-btn__title-wrap"},""!=r&&React.createElement("div",{className:"uagb-marketing-btn__icon-wrap"},kb(r)),React.createElement(ge.RichText.Content,{value:s,tagName:d,className:"uagb-marketing-btn__title"})),React.createElement("div",{className:"uagb-marketing-btn__prefix-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}},{attributes:Cw,save(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p,titleTag:d}=e.attributes;let b=p?"_blank":"";return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__outer-wrap","uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n,"uagb-block-"+l)},React.createElement("div",{className:"uagb-marketing-btn__wrap"},React.createElement("a",{href:u,className:"uagb-marketing-btn__link",target:b,rel:"noopener noreferrer"},React.createElement("div",{className:"uagb-marketing-btn__title-wrap"},""!=r&&React.createElement("div",{className:"uagb-marketing-btn__icon-wrap"},kb(r)),React.createElement(ge.RichText.Content,{value:s,tagName:d,className:"uagb-marketing-btn__title"})),React.createElement("div",{className:"uagb-marketing-btn__prefix-wrap"},React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))))}}];a(366);let kw={};kw=Object(F.applyFilters)("uagb/marketing-button",ss(kw)),Object(de.registerBlockType)("uagb/marketing-button",{...kw,title:Object(r.__)("Marketing Button","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a marketing call to action button with a short description.","ultimate-addons-for-gutenberg"),icon:se.marketing_button,keywords:[Object(r.__)("marketing button","ultimate-addons-for-gutenberg"),Object(r.__)("cta","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Dt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"marketing-button"}):React.createElement(Tw,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,align:i,textAlign:o,iconPosition:n,icon:r,heading:s,prefix:c,link:u,linkTarget:p,titleTag:d,showDescription:b,inheritFromTheme:g,buttonType:m}=t,y=p?"_blank":"",f=g&&"secondary"===m,h=f?{borderWidth:"revert-layer"}:{},v="uagb-marketing-btn__link "+(f?"ast-outline-button":"wp-block-button__link"),_=React.createElement(React.Fragment,null,""!==r&&Ce(r)),T=React.createElement(React.Fragment,null,React.createElement(ge.RichText.Content,{value:s.replace(/<(?!br\s*V?)[^>]+>/g,""),tagName:d,className:"uagb-marketing-btn__title"}));return React.createElement("div",{className:Be()(a,"uagb-marketing-btn__align-"+i,"uagb-marketing-btn__align-text-"+o,"uagb-marketing-btn__icon-"+n,"uagb-block-"+l,"wp-block-button")},React.createElement("a",{href:u,className:v,target:y,rel:"noopener noreferrer",style:h},"before"===n&&React.createElement(React.Fragment,null,_,T),"after"===n&&React.createElement(React.Fragment,null,T,_),b&&React.createElement(ge.RichText.Content,{value:c,tagName:"p",className:"uagb-marketing-btn__prefix"})))},deprecated:Sw});const ww=[{defaultAttributes:ka},{defaultPresetAttributes:[{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidth"},{label:"btnBorderTopWidth"},{label:"btnBorderLeftWidth"},{label:"btnBorderRightWidth"},{label:"showBtnIcon"},{label:"buttonIconSpace"},{label:"modalTriggerBgType"},{label:"btnBgHoverColor"},{label:"btnLinkColor"},{label:"btnLinkHoverColor"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"modalTriggerBgType",value:"color"},{label:"showBtnIcon",value:!0},{label:"buttonIconSpace",value:12},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-7",label:Object(r.__)("Preset 7","ultimate-addons-for-gutenberg"),attributes:[{label:"showBtnIcon",value:!1},{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-8",label:Object(r.__)("Preset 8","ultimate-addons-for-gutenberg"),attributes:[{label:"modalTriggerBgType",value:"transparent"},{label:"modalTriggerBgHoverType",value:"color"},{label:"btnLinkColor",value:"#0170b9"},{label:"btnLinkHoverColor",value:"#000000"},{label:"showBtnIcon",value:!0},{label:"buttonIconSpace",value:12},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];function Pw(){return(Pw=Object.assign||function(e){for(var t=1;ta({icon:e})})),"image"===i&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);xw=t}a({iconImage:e})}else a({iconImage:null});else a({iconImage:null})},backgroundImage:o,onRemoveImage:()=>{a({iconImage:""})}}),o&&"null"!==o.url&&""!==o.url&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:s,label:"imageSize"},setAttributes:a,options:xw})),"button"===i&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Ke,onChange:()=>a({inheritFromTheme:!Ke}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Ke&&("Astra"===_a||Ta)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Je,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]})),"button"===i&&React.createElement(React.Fragment,null,!Ke&&React.createElement(Hr,{setAttributes:a,presets:ww,presetInputType:"radioImage"}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:Tt,onChange:()=>a({showBtnIcon:!Tt})}),Tt&&React.createElement(Mr,{label:Object(r.__)("Button Icon","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({buttonIcon:e})}),Tt&&""!==c&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:u,label:"buttonIconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"before",label:Object(r.__)("Before Text","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After Text","ultimate-addons-for-gutenberg")}]}))),["button","icon","text","image"].includes(i)&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"modalAlign"},tablet:{value:y,label:"modalAlignTablet"},mobile:{value:f,label:"modalAlignMobile"}},options:Ca,showIcons:!0,responsive:!0})),Pa="left-off-canvas"!==va&&"right-off-canvas"!==va,xa=React.createElement(je,{title:Object(r.__)("Container","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.Notice,{className:"spectra-sidebar-settings-notice",status:"warning",isDismissible:!1},Object(r.__)("Please click on the modal button to preview the modal container.","ultimate-addons-for-gutenberg")),React.createElement(tl,{label:Object(r.__)("Modal Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"modalWidth",unit:{value:T,label:"modalWidthType"},min:"%"===T?10:"0",max:"%"===T?100:1500},tablet:{value:v,label:"modalWidthTablet",unit:{value:C,label:"modalWidthTypeTablet"},min:"%"===C?10:"0",max:"%"===C?100:1500},mobile:{value:_,label:"modalWidthMobile",unit:{value:S,label:"modalWidthTypeMobile"},min:"%"===S?10:"0",max:"%"===S?100:1500}},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),Pa&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Modal Height","ultimate-addons-for-gutenberg"),data:{value:Ct,label:"modalBoxHeight"},options:[{value:"auto",label:Object(r.__)("Auto","ultimate-addons-for-gutenberg")},{value:"custom",label:Object(r.__)("Custom","ultimate-addons-for-gutenberg")}],showIcons:!1,responsive:!1}),Pa&&"custom"!==Ct&&React.createElement(tl,{label:Object(r.__)("Max Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:St,label:"maxHeight"},tablet:{value:kt,label:"maxHeightTablet"},mobile:{value:wt,label:"maxHeightMobile"}},min:0,max:200,unit:{value:Pt,label:"maxHeightType"},units:[{name:Object(r.__)("VH","ultimate-addons-for-gutenberg"),unitValue:"vh"}],setAttributes:a}),Pa&&"auto"!==Ct&&React.createElement(tl,{label:Object(r.__)("Modal Popup Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:k,label:"modalHeight",unit:{value:x,label:"modalHeightType"},min:"%"===x?10:130,max:"%"===x?100:1500},tablet:{value:w,label:"modalHeightTablet",unit:{value:A,label:"modalHeightTypeTablet"},min:"%"===A?10:130,max:"%"===A?100:1500},mobile:{value:P,label:"modalHeightMobile",unit:{value:G,label:"modalHeightTypeMobile"},min:"%"===G?10:130,max:"%"===G?100:1500}},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a})),Aa=React.createElement(je,{title:Object(r.__)("Close Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:_t,onChange:e=>a({closeIcon:e})}),""!==_t&&React.createElement(Pi,{label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:R,label:"closeIconPosition"},setAttributes:a},React.createElement("option",{value:"popup-top-left"},Object(r.__)("Top Left","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"popup-top-right"},Object(r.__)("Top Right","ultimate-addons-for-gutenberg"))),React.createElement(Le.ToggleControl,{label:Object(r.__)("Close on ESC Keypress","ultimate-addons-for-gutenberg"),checked:E,onChange:()=>a({escPress:!E})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Close on Overlay Click","ultimate-addons-for-gutenberg"),checked:O,onChange:()=>a({overlayClick:!O})})),Ga=React.createElement(je,{title:Object(r.__)("Trigger","ultimate-addons-for-gutenberg"),initialOpen:!0},"icon"===i&&""!==n&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:ee,data:{value:ee,label:"iconSize"},min:0,max:150,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:Q||"",data:{value:Q,label:"iconColor"},setAttributes:a})),"icon"===i&&""===n&&React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("For the styling options please select the Icon.","ultimate-addons-for-gutenberg")),"text"===i&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:te||"",data:{value:te,label:"textColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:_e,label:"textLoadGoogleFonts"},fontFamily:{value:ae,label:"textFontFamily"},fontWeight:{value:le,label:"textFontWeight"},fontStyle:{value:ie,label:"textFontStyle"},transform:{value:he,label:"textTransform"},decoration:{value:ve,label:"textDecoration"},fontSizeType:{value:oe,label:"textFontSizeType"},fontSize:{value:ne,label:"textFontSize"},fontSizeMobile:{value:re,label:"textFontSizeMobile"},fontSizeTablet:{value:se,label:"textFontSizeTablet"},lineHeightType:{value:ce,label:"textLineHeightType"},lineHeight:{value:ue,label:"textLineHeight"},lineHeightMobile:{value:pe,label:"textLineHeightMobile"},lineHeightTablet:{value:de,label:"textLineHeightTablet"},letterSpacing:{value:be,label:"textLetterSpacing"},letterSpacingTablet:{value:me,label:"textLetterSpacingTablet"},letterSpacingMobile:{value:ye,label:"textLetterSpacingMobile"},letterSpacingType:{value:fe,label:"textLetterSpacingType"}})),"image"===i&&o&&"null"!==o.url&&""!==o.url&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:we,onChange:()=>a({imageWidthType:!we}),label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),help:Object(r.__)("Turn this off to inherit the natural width of Image.","ultimate-addons-for-gutenberg")}),we&&React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:Te,label:"imageWidth",unit:{value:Pe,label:"imageWidthUnit"}},tablet:{value:ke,label:"imageWidthTablet",unit:{value:xe,label:"imageWidthUnitTablet"}},mobile:{value:Se,label:"imageWidthMobile",unit:{value:Ae,label:"imageWidthUnitMobile"}}},min:0,limitMax:{px:500,"%":100,em:100},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(Qa,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),setAttributes:a,value:Ge,data:{value:Ge,label:"iconimgBorderRadius"},min:0,max:100,unit:{value:Me,label:"iconimgBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}]})),"image"===i&&void 0===o&&React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("For the styling options please select the Image.","ultimate-addons-for-gutenberg")),"button"===i&&React.createElement(React.Fragment,null,Tt&&""!==c&&React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"buttonIconSpace"},tablet:{value:d,label:"buttonIconSpaceTablet"},mobile:{value:b,label:"buttonIconSpaceMobile"}},min:0,max:50,unit:{value:g,label:"buttonIconSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:yt||"",data:{value:yt,label:"btnLinkColor"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:fa,label:"modalTriggerBgType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===fa&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:vt||"",data:{value:vt,label:"btnBgColor"},setAttributes:a}))),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:ft||"",data:{value:ft,label:"btnLinkHoverColor"},setAttributes:a}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:ha,label:"modalTriggerBgHoverType"},className:"uagb-multi-button-alignment-control",options:[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}]}),"color"===ha&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ht||"",data:{value:ht,label:"btnBgHoverColor"},setAttributes:a})))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:mt,label:"btnLoadGoogleFonts"},fontFamily:{value:Xe,label:"btnFontFamily"},fontWeight:{value:Qe,label:"btnFontWeight"},fontStyle:{value:et,label:"btnFontStyle"},transform:{value:bt,label:"btnTransform"},decoration:{value:gt,label:"btnDecoration"},fontSizeType:{value:tt,label:"btnFontSizeType"},fontSize:{value:at,label:"btnFontSize"},fontSizeMobile:{value:lt,label:"btnFontSizeMobile"},fontSizeTablet:{value:it,label:"btnFontSizeTablet"},lineHeightType:{value:ot,label:"btnLineHeightType"},lineHeight:{value:nt,label:"btnLineHeight"},lineHeightMobile:{value:rt,label:"btnLineHeightMobile"},lineHeightTablet:{value:st,label:"btnLineHeightTablet"},letterSpacing:{value:ct,label:"btnLetterSpacing"},letterSpacingTablet:{value:ut,label:"btnLetterSpacingTablet"},letterSpacingMobile:{value:pt,label:"btnLetterSpacingMobile"},letterSpacingType:{value:dt,label:"btnLetterSpacingType"}}),React.createElement(Pl,Pw({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Re,label:"paddingBtnTop"},valueRight:{value:Oe,label:"paddingBtnRight"},valueBottom:{value:Be,label:"paddingBtnBottom"},valueLeft:{value:Ue,label:"paddingBtnLeft"},valueTopTablet:{value:He,label:"paddingBtnTopTablet"},valueRightTablet:{value:Fe,label:"paddingBtnRightTablet"},valueBottomTablet:{value:ze,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:De,label:"paddingBtnLeftTablet"},valueTopMobile:{value:Ne,label:"paddingBtnTopMobile"},valueRightMobile:{value:Ie,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Ve,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:We,label:"paddingBtnLeftMobile"},unit:{value:qe,label:"paddingBtnUnit"},mUnit:{value:$e,label:"mobilePaddingBtnUnit"},tUnit:{value:Ye,label:"tabletPaddingBtnUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ze,label:"btnSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:a,prefix:"btn",attributes:t,deviceType:l,disableBottomSeparator:!0}))),Ma=React.createElement(je,{title:Object(r.__)("Container","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Overlay Color","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"overlayColor"},setAttributes:a}),React.createElement(Pl,Pw({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:L,label:"paddingModalTop"},valueRight:{value:z,label:"paddingModalRight"},valueBottom:{value:H,label:"paddingModalBottom"},valueLeft:{value:F,label:"paddingModalLeft"},valueTopTablet:{value:D,label:"paddingModalTopTablet"},valueRightTablet:{value:N,label:"paddingModalRightTablet"},valueBottomTablet:{value:I,label:"paddingModalBottomTablet"},valueLeftTablet:{value:V,label:"paddingModalLeftTablet"},valueTopMobile:{value:W,label:"paddingModalTopMobile"},valueRightMobile:{value:q,label:"paddingModalRightMobile"},valueBottomMobile:{value:Z,label:"paddingModalBottomMobile"},valueLeftMobile:{value:$,label:"paddingModalLeftMobile"},unit:{value:Y,label:"paddingModalUnit"},mUnit:{value:J,label:"mobilePaddingModalUnit"},tUnit:{value:X,label:"tabletPaddingModalUnit"},deviceType:l,attributes:t,setAttributes:a,link:{value:K,label:"modalSpacingLink"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}]})),React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement(Hi,{disabledBorderTitle:!1,setAttributes:a,prefix:"content",attributes:t,deviceType:l,disableBottomSeparator:!0})),Ra=React.createElement(je,{title:Object(r.__)("Close Button","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:M,data:{value:M,label:"closeIconSize"},min:0,max:50,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:U||"",data:{value:U,label:"closeIconColor"},setAttributes:a})),Ba=React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(vi,Pw({setAttributes:a,backgroundGradient:{value:Wt,label:"gradientValue"},backgroundGradientColor1:{value:qt,label:"gradientColor1"},gradientType:{value:Xt,label:"selectGradient"},backgroundGradientColor2:{value:Zt,label:"gradientColor2"},backgroundGradientLocation1:{value:$t,label:"gradientLocation1"},backgroundGradientLocation2:{value:Yt,label:"gradientLocation2"},backgroundGradientType:{value:Kt,label:"gradientType"},backgroundGradientAngle:{value:Jt,label:"gradientAngle"},backgroundImageColor:{value:Vt,label:"backgroundImageColor"},backgroundSize:{desktop:{value:Dt,label:"backgroundSizeDesktop"},tablet:{value:Nt,label:"backgroundSizeTablet"},mobile:{value:It,label:"backgroundSizeMobile"}},backgroundCustomSize:{desktop:{value:Qt,label:"backgroundCustomSizeDesktop"},tablet:{value:ea,label:"backgroundCustomSizeTablet"},mobile:{value:ta,label:"backgroundCustomSizeMobile"}},backgroundCustomSizeType:{value:aa,label:"backgroundCustomSizeType"},backgroundRepeat:{desktop:{value:Ft,label:"backgroundRepeatDesktop"},tablet:{value:jt,label:"backgroundRepeatTablet"},mobile:{value:zt,label:"backgroundRepeatMobile"}},backgroundAttachment:{desktop:{value:Ot,label:"backgroundAttachmentDesktop"},tablet:{value:Lt,label:"backgroundAttachmentTablet"},mobile:{value:Ht,label:"backgroundAttachmentMobile"}},backgroundPosition:{desktop:{value:Bt,label:"backgroundPositionDesktop"},tablet:{value:Ut,label:"backgroundPositionTablet"},mobile:{value:Et,label:"backgroundPositionMobile"}},backgroundImage:{desktop:{value:At,label:"backgroundImageDesktop"},tablet:{value:Gt,label:"backgroundImageTablet"},mobile:{value:Mt,label:"backgroundImageMobile"}},imageResponsive:!0,backgroundColor:{value:Rt,label:"backgroundColor"},backgroundType:{value:xt,label:"backgroundType"},overlayType:{value:la,label:"overlayType"},gradientOverlay:{value:!0},customPosition:{value:ia,label:"customPosition"},xPositionDesktop:{value:oa,label:"xPositionDesktop"},xPositionTablet:{value:na,label:"xPositionTablet"},xPositionMobile:{value:ra,label:"xPositionMobile"},xPositionType:{value:sa,label:"xPositionType"},xPositionTypeTablet:{value:ca,label:"xPositionTypeTablet"},xPositionTypeMobile:{value:ua,label:"xPositionTypeMobile"},yPositionDesktop:{value:pa,label:"yPositionDesktop"},yPositionTablet:{value:da,label:"yPositionTablet"},yPositionMobile:{value:ba,label:"yPositionMobile"},yPositionType:{value:ga,label:"yPositionType"},yPositionTypeTablet:{value:ma,label:"yPositionTypeTablet"},yPositionTypeMobile:{value:ya,label:"yPositionTypeMobile"},backgroundVideoType:{value:!1}},e)));return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,wa,xa,Aa),React.createElement(il,nl,!(Ke&&"button"===i)&&Ga,Ma,""!==_t&&Ra,Ba),React.createElement(il,Pw({},rl,{parentProps:e})))))}var Mw,Rw=a(131),Bw=0,Uw={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},Ew={};Ew.locals=Rw.a.locals||{},Ew.use=function(){return Bw++||(Mw=we()(Rw.a,Uw)),Ew},Ew.unuse=function(){Bw>0&&!--Bw&&(Mw(),Mw=null)};var Ow=Ew;const Lw=[["uagb/info-box",{icon:"circle-check",iconBottomMargin:15,infoBoxTitle:Object(r.__)("Engage Your Visitors!","ultimate-addons-for-gutenberg"),headFontWeight:500,headSpace:10,headingDesc:Object(r.__)("Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis pulvinar dapibus.","ultimate-addons-for-gutenberg"),subHeadSpace:30,ctaType:"button",btnBorderStyle:"none",showCtaIcon:!1,ctaText:Object(r.__)("Call To Action","ultimate-addons-for-gutenberg"),paddingBtnTop:14,paddingBtnRight:28,paddingBtnBottom:14,paddingBtnLeft:28,btnBorderTopLeftRadius:3,btnBorderTopRightRadius:3,btnBorderBottomLeftRadius:3,btnBorderBottomRightRadius:3}]],Hw=["uagb/modal","uagb/how-to-step","uagb/buttons-child","uagb/faq-child","uagb/content-timeline-child","uagb/icon-list-child","uagb/social-share-child","uagb/restaurant-menu-child","uagb/tabs-child","uagb/post-image","uagb/post-taxonomy","uagb/post-title","uagb/post-meta","uagb/post-excerpt","uagb/post-button","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","uagb/slider-child","uagb/register-email","uagb/register-first-name","uagb/register-last-name","uagb/register-password","uagb/register-reenter-password","uagb/register-terms","uagb/register-username"];var Fw=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Ow.use(),()=>{Ow.unuse()}),[]);const{attributes:t,setAttributes:a,clientId:l,deviceType:i}=e,{block_id:o,triggerText:s,icon:c,iconImage:u,modalTrigger:p,imageSize:d,buttonText:b,buttonIcon:g,buttonIconPosition:m,appearEffect:y,closeIconPosition:f,escPress:h,overlayClick:v,closeIcon:_,imgTagWidth:T,imgTagHeight:C,showBtnIcon:S,openModalAs:k,modalPosition:w,defaultTemplate:P,inheritFromTheme:x,buttonType:A}=t,{replaceInnerBlocks:G}=Object(n.useDispatch)("core/block-editor"),M=uagb_blocks_info.spectra_pro_status,R=x&&"secondary"===A,U=R?"ast-outline-button":"wp-block-button__link",E=R?{borderWidth:"revert-layer"}:{},O=wp.blocks.getBlockTypes().map(e=>e.name).filter(e=>!Hw.includes(e));Object(B.useEffect)(()=>{Zg(z,a)},[d]),Object(B.useEffect)(()=>{P||(G(l,Object(de.createBlocksFromInnerBlocksTemplate)(Lw)),a({defaultTemplate:!0}))},[]);const L=React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Add Your Text Here","ultimate-addons-for-gutenberg"),value:s,className:"uagb-modal-text uagb-modal-trigger",onChange:e=>a({triggerText:e})}),H=React.createElement("div",{className:"uagb-modal-trigger"},""!==c&&Ce(c,a)),F=null!=u&&u.alt?u.alt:"";let j="",z="";if(null!=u&&u.url){z=u.url;const e=u.sizes,t=d;void 0!==e&&void 0!==e[t]&&(z=e[t].url),j=React.createElement("img",{src:z,alt:F,className:"uagb-modal-trigger",width:T,height:C,loading:"lazy"})}let D="";""!==g&&(D=Ce(g,a));const N=`uagb-modal-button-link ${U} uagb-modal-trigger`,I=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("div",{className:N,target:"_self",rel:"noopener noreferrer",style:E},React.createElement("span",{className:"uagb-modal-content-wrapper"},S&&"before"===m&&D,React.createElement(ge.RichText,{tagName:"span",placeholder:Object(r.__)("Click Here","ultimate-addons-for-gutenberg"),value:b,className:"uagb-inline-editing",onChange:e=>a({buttonText:e}),allowedFormats:[]}),S&&"after"===m&&D)));return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-editor-preview-mode-"+i.toLowerCase(),"uagb-block-"+o,"uagb-modal-wrapper"),"data-escpress":h?"enable":"disable","data-overlayclick":v?"enable":"disable"},React.createElement("div",{className:"uagb-spectra-editor-wrap"},"text"===p&&L,"icon"===p&&H,"image"===p&&j,"button"===p&&I),React.createElement("div",{className:Be()(""+y,"uagb-modal-popup","uagb-block-"+o,{["uagb-modal-type-"+k]:M,["uagb-modal-position-"+w]:M&&"popup"===k})},React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks,{template:[["core/paragraph",{placeholder:"Type / to choose a block"}]],allowedBlocks:O,renderAppender:ge.InnerBlocks.DefaultBlockAppender})),("popup-top-left"===f||"popup-top-right"===f)&&React.createElement("button",{className:"uagb-modal-popup-close","aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==_&&Ce(_,a))),M&&("window-top-left"===f||"window-top-right"===f)&&React.createElement("button",{className:Be()("uagb-modal-popup-close",f),"aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==_&&Ce(_)))))}),jw=Object(B.memo)(e=>{let{attributes:t}=e;const{textLoadGoogleFonts:a,textFontFamily:l,textFontWeight:i,btnLoadGoogleFonts:o,btnFontFamily:n,btnFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)}),zw=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,block_id:n},clientId:r,setAttributes:s,name:c,deviceType:u}=e,{modalTrigger:p}=a;Object(B.useEffect)(()=>{uagb_blocks_info.spectra_pro_status||"custom-class"!==p&&"custom-id"!==p&&"automatic"!==p||s({modalTrigger:"button"})},[]),Object(B.useEffect)(()=>{const e=Object(F.applyFilters)("spectra.modal.edit.jsdetails",{block_id:n,device_type:u},a),t=new CustomEvent("UAGModalEditor",{detail:e});document.dispatchEvent(t)},[a,u]);const d=Object(B.useMemo)(()=>function(e,t,a,l){const i=l.toLowerCase(),{modalTrigger:o,buttonIconPosition:n,buttonIconSpace:r,buttonIconSpaceTablet:s,buttonIconSpaceMobile:c,buttonIconSpaceType:u,modalAlign:p,modalAlignTablet:d,modalAlignMobile:b,modalWidth:g,modalWidthTablet:m,modalWidthMobile:y,modalWidthType:f,modalWidthTypeTablet:h,modalWidthTypeMobile:v,modalHeight:_,modalHeightTablet:T,modalHeightMobile:C,modalHeightType:S,modalHeightTypeTablet:k,modalHeightTypeMobile:w,contentBorderHColor:P,closeIconSize:x,closeIconPosition:A,overlayColor:G,closeIconColor:M,paddingModalUnit:R,mobilePaddingModalUnit:B,tabletPaddingModalUnit:U,paddingModalTop:E,paddingModalBottom:O,paddingModalLeft:L,paddingModalRight:H,paddingModalTopTablet:j,paddingModalRightTablet:z,paddingModalBottomTablet:D,paddingModalLeftTablet:N,paddingModalTopMobile:I,paddingModalRightMobile:V,paddingModalBottomMobile:W,paddingModalLeftMobile:q,iconColor:Z,iconSize:$,textColor:Y,textFontFamily:K,textFontWeight:J,textFontStyle:X,textFontSizeType:Q,textFontSize:ee,textFontSizeMobile:te,textFontSizeTablet:le,textLineHeightType:ie,textLineHeight:oe,textLineHeightMobile:ne,textLineHeightTablet:re,textLetterSpacing:se,textLetterSpacingTablet:ce,textLetterSpacingMobile:ue,textLetterSpacingType:pe,textTransform:de,textDecoration:be,imageWidth:ge,imageWidthMobile:me,imageWidthTablet:ye,imageWidthType:fe,imageWidthUnit:he,imageWidthUnitTablet:ve,imageWidthUnitMobile:_e,iconimgBorderRadius:Te,iconimgBorderRadiusUnit:Ce,paddingBtnUnit:Se,mobilePaddingBtnUnit:ke,tabletPaddingBtnUnit:we,paddingBtnTop:Pe,paddingBtnBottom:xe,paddingBtnLeft:Ae,paddingBtnRight:Ge,paddingBtnTopTablet:Me,paddingBtnRightTablet:Re,paddingBtnBottomTablet:Be,paddingBtnLeftTablet:Ue,paddingBtnTopMobile:Ee,paddingBtnRightMobile:Oe,paddingBtnBottomMobile:Le,paddingBtnLeftMobile:He,btnFontFamily:Fe,btnFontWeight:je,btnFontStyle:ze,btnFontSizeType:De,btnFontSize:Ne,btnFontSizeMobile:Ie,btnFontSizeTablet:Ve,btnLineHeightType:We,btnLineHeight:qe,btnLineHeightMobile:Ze,btnLineHeightTablet:$e,btnLetterSpacing:Ye,btnLetterSpacingTablet:Ke,btnLetterSpacingMobile:Je,btnLetterSpacingType:Xe,btnTransform:Qe,btnDecoration:et,btnLinkColor:tt,btnLinkHoverColor:at,btnBgHoverColor:lt,btnBgColor:it,btnBorderHColor:ot,modalBoxHeight:nt,maxHeight:rt,maxHeightTablet:st,maxHeightMobile:ct,maxHeightType:ut,backgroundType:pt,backgroundImageDesktop:dt,backgroundImageTablet:bt,backgroundImageMobile:gt,backgroundColor:mt,backgroundPositionDesktop:yt,backgroundPositionTablet:ft,backgroundPositionMobile:ht,backgroundAttachmentDesktop:vt,backgroundAttachmentTablet:_t,backgroundAttachmentMobile:Tt,backgroundRepeatDesktop:Ct,backgroundRepeatTablet:St,backgroundRepeatMobile:kt,backgroundSizeDesktop:wt,backgroundSizeTablet:Pt,backgroundSizeMobile:xt,gradientValue:At,backgroundCustomSizeDesktop:Gt,backgroundCustomSizeTablet:Mt,backgroundCustomSizeMobile:Rt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPositionDesktop:Lt,xPositionTablet:Ht,xPositionMobile:Ft,xPositionType:jt,xPositionTypeTablet:zt,xPositionTypeMobile:Dt,yPositionDesktop:Nt,yPositionTablet:It,yPositionMobile:Vt,yPositionType:Wt,yPositionTypeTablet:qt,yPositionTypeMobile:Zt,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,modalTriggerBgType:ta,modalTriggerBgHoverType:aa,contentBorderTopLeftRadius:la,contentBorderTopRightRadius:ia,contentBorderBottomLeftRadius:oa,contentBorderBottomRightRadius:na,contentBorderRadiusUnit:ra,block_id:sa,inheritFromTheme:ca}=e,ua=a.replace("uagb/",""),pa=us(r,"buttonIconSpace",ua),da=isNaN(s)?pa:s,ba=isNaN(c)?da:c,ga=Wr(e,"btn"),ma=Wr(e,"btn","tablet"),ya=Wr(e,"btn","mobile"),fa=Wr(e,"content"),ha=Wr(e,"content","tablet"),va=Wr(e,"content","mobile"),_a=qr({backgroundType:pt,backgroundImage:dt,backgroundColor:mt,gradientValue:At,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,backgroundRepeat:Ct,backgroundPosition:yt,backgroundSize:wt,backgroundAttachment:vt,backgroundCustomSize:Gt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPosition:Lt,xPositionType:jt,yPosition:Nt,yPositionType:Wt});let Ta={" .uagb-modal-popup-wrap":{height:Vr(_,S),width:Vr(g,f),"border-style":"none","border-color":"none","border-top-left-radius":Vr(la,ra),"border-top-right-radius":Vr(ia,ra),"border-bottom-left-radius":Vr(oa,ra),"border-bottom-right-radius":Vr(na,ra)}," .uagb-modal-popup-content:hover":{"border-color":P}," .uagb-modal-popup-close svg":{width:Vr(x,"px"),height:Vr(x,"px"),"line-height":Vr(x,"px"),"font-size":Vr(x,"px"),fill:M}," .uagb-modal-popup.active":{background:G}," .uagb-modal-popup-content":{"padding-left":Vr(L,R),"padding-right":Vr(H,R),"padding-top":Vr(E,R),"padding-bottom":Vr(O,R),..._a,...fa}," .uagb-modal-trigger svg":{width:Vr($,"px"),height:Vr($,"px"),"line-height":Vr($,"px"),"font-size":Vr($,"px"),fill:Z},".uagb-modal-wrapper img.uagb-modal-trigger":{"border-radius":Vr(Te,Ce)}};const Ca=qr({backgroundType:pt,backgroundImage:bt,backgroundColor:mt,gradientValue:At,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,backgroundRepeat:St,backgroundPosition:ft,backgroundSize:Pt,backgroundAttachment:_t,backgroundCustomSize:Mt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPosition:Ht,xPositionType:zt,yPosition:It,yPositionType:qt});let Sa={" .uagb-modal-popup-wrap":{height:Vr(T,k),width:Vr(m,h)}," .uagb-modal-popup-content":{"padding-left":Vr(N,U),"padding-right":Vr(z,U),"padding-top":Vr(j,U),"padding-bottom":Vr(D,U),...Ca,...ha}," .uagb-modal-text.uagb-modal-trigger":{"font-size":Vr(le,Q),"line-height":Vr(re,ie),"letter-spacing":Vr(ce,pe)}};const ka=qr({backgroundType:pt,backgroundImage:gt,backgroundColor:mt,gradientValue:At,gradientColor1:$t,gradientColor2:Yt,gradientLocation1:Kt,gradientLocation2:Jt,gradientType:Xt,gradientAngle:Qt,selectGradient:ea,backgroundRepeat:kt,backgroundPosition:ht,backgroundSize:xt,backgroundAttachment:Tt,backgroundCustomSize:Rt,backgroundCustomSizeType:Bt,backgroundImageColor:Ut,overlayType:Et,customPosition:Ot,xPosition:Ft,xPositionType:Dt,yPosition:Vt,yPositionType:Zt});let wa={" .uagb-modal-popup-wrap":{height:Vr(C,w),width:Vr(y,v)}," .uagb-modal-popup-content":{"padding-left":Vr(q,B),"padding-right":Vr(V,B),"padding-top":Vr(I,B),"padding-bottom":Vr(W,B),...ka,...va}," .uagb-modal-text.uagb-modal-trigger":{"font-size":Vr(te,Q),"line-height":Vr(ne,ie),"letter-spacing":Vr(ue,pe)}};function Pa(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"}ca||(Ta={...Ta," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger":{"padding-left":Vr(Ae,Se),"padding-right":Vr(Ge,Se),"padding-top":Vr(Pe,Se),"padding-bottom":Vr(xe,Se),"font-family":Fe,"font-style":ze,"text-decoration":et,"text-transform":Qe,"font-weight":je,"font-size":Vr(Ne,De),"line-height":Vr(qe,We),"letter-spacing":Vr(Ye,Xe),color:tt,"background-color":"color"===ta?it:"transparent",...ga}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg":{"font-size":Vr(Ne,De),width:Vr(Ne,De),height:Vr(Ne,De),"line-height":Vr(Ne,De),fill:tt}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:hover":{color:at,"background-color":"color"===aa?lt:"transparent","border-color":ot}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:hover svg":{fill:at}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:focus":{color:at,"background-color":"color"===aa?lt:"transparent","border-color":ot}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger:focus svg":{fill:at}," .uagb-modal-text.uagb-modal-trigger":{color:Y,"font-family":K,"font-style":X,"text-decoration":be,"text-transform":de,"font-weight":J,"font-size":Vr(ee,Q),"line-height":Vr(oe,ie),"letter-spacing":Vr(se,pe)}},Sa={...Sa," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger":{"padding-left":Vr(Ue,we),"padding-right":Vr(Re,we),"padding-top":Vr(Me,we),"padding-bottom":Vr(Be,we),"font-size":Vr(Ve,De),"line-height":Vr($e,We),"letter-spacing":Vr(Ke,Xe),...ma}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg":{"font-size":Vr(Ve,De),width:Vr(Ve,De),height:Vr(Ve,De),"line-height":Vr(Ve,De)}},wa={...wa," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger":{"padding-left":Vr(He,ke),"padding-right":Vr(Oe,ke),"padding-top":Vr(Ee,ke),"padding-bottom":Vr(Le,ke),"font-size":Vr(Ie,De),"line-height":Vr(Ze,We),"letter-spacing":Vr(Je,Xe),...ya}," .uagb-spectra-button-wrapper .uagb-modal-button-link.uagb-modal-trigger svg":{"font-size":Vr(Ie,De),width:Vr(Ie,De),height:Vr(Ie,De),"line-height":Vr(Ie,De)}}),"custom"!==nt&&(Ta[" .uagb-modal-popup-wrap"]={height:"auto",width:Vr(g,f),"max-height":Vr(rt,ut),"border-style":"none","border-color":"none","border-top-left-radius":Vr(la,ra),"border-top-right-radius":Vr(ia,ra),"border-bottom-left-radius":Vr(oa,ra),"border-bottom-right-radius":Vr(na,ra)},Sa[" .uagb-modal-popup-wrap"]={height:"auto",width:Vr(m,h),"max-height":Vr(st,ut)},wa[" .uagb-modal-popup-wrap"]={height:"auto",width:Vr(y,v),"max-height":Vr(ct,ut)}),"popup-top-right"===A&&(Ta[" .uagb-modal-popup.active .uagb-modal-popup-close"]={top:"-"+Vr(x,"px"),right:"-"+Vr(x,"px")}),"popup-top-left"===A&&(Ta[" .uagb-modal-popup.active .uagb-modal-popup-close"]={top:"-"+Vr(x,"px"),left:"-"+Vr(x,"px")}),"button"===o&&("after"===n?(Ta[" .uagb-modal-button-link svg"]={"margin-left":Vr(pa,u)},Sa[" .uagb-modal-button-link svg"]={"margin-left":Vr(da,u)},wa[" .uagb-modal-button-link svg"]={"margin-left":Vr(ba,u)}):(Ta[" .uagb-modal-button-link svg"]={"margin-right":Vr(pa,u)},Sa[" .uagb-modal-button-link svg"]={"margin-right":Vr(da,u)},wa[" .uagb-modal-button-link svg"]={"margin-right":Vr(ba,u)})),"image"===o&&fe&&(Ta[" img.uagb-modal-trigger"]={width:Vr(ge,he)},Sa[" img.uagb-modal-trigger"]={width:Vr(ye,ve)},wa[" img.uagb-modal-trigger"]={width:Vr(me,_e)});const xa=Pa(p),Aa=Pa(d),Ga=Pa(b);"full"!==p?(Ta[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={"text-align":p},Ta[" .wp-block-button__link"]={width:"unset"},Ta[" .uagb-modal-trigger"]={"justify-content":xa},"image"===o&&(Ta[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={display:"flex","justify-content":xa})):Ta[" .uagb-modal-trigger"]={width:"100%","justify-content":"center"},"full"!==d?(Sa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={"text-align":d},Sa[" .wp-block-button__link"]={width:"unset"},Sa[" .uagb-modal-trigger"]={"justify-content":Aa},"image"===o&&(Sa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={display:"flex","justify-content":Aa})):Sa[" .wp-block-button__link.uagb-modal-trigger"]={width:"100%","justify-content":"center"},"full"!==b?(wa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={"text-align":b},wa[" .wp-block-button__link"]={width:"unset"},wa[" .uagb-modal-trigger"]={"justify-content":Ga},"image"===o&&(wa[".uagb-modal-wrapper .uagb-spectra-editor-wrap"]={display:"flex","justify-content":Ga})):wa[" .wp-block-button__link.uagb-modal-trigger"]={width:"100%","justify-content":"center"};const Ma=".editor-styles-wrapper .uagb-block-"+sa;Ta=Object(F.applyFilters)(`spectra.${ua}.styling`,Ta,e),Sa=Object(F.applyFilters)(`spectra.${ua}.tabletStyling`,Sa,e),wa=Object(F.applyFilters)(`spectra.${ua}.mobileStyling`,wa,e);let Ra=ae(Ta,Ma);return"tablet"!==i&&"mobile"!==i||(Ra+=ae(Sa,""+Ma,!0,"tablet"),"mobile"===i&&(Ra+=ae(wa,""+Ma,!0,"mobile"))),Ra}(a,0,c,u),[a,u]);return Object(B.useEffect)(()=>{he(e)},[l,i,o,u]),React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:d}),React.createElement(jw,{attributes:a}),t&&React.createElement(Gw,e),React.createElement(Fw,e))});a(367);const Dw=ce("btn"),Nw=ce("content"),Iw={block_id:{type:"string"},isPreview:{type:"boolean",default:!1},defaultTemplate:{type:"boolean",default:!1},modalTrigger:{type:"string",default:"button"},triggerText:{type:"string",default:"Click Here"},icon:{type:"string",default:"up-right-from-square"},closeIcon:{type:"string",default:"xmark"},iconImage:{type:"object",default:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:""},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},imageWidthType:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"image-width-type"}},imageWidthUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit"}},imageWidthUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-tablet"}},imageWidthUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-width-unit-mobile"}},iconimgBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"image-border-radius"}},iconimgBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"icon-border-radius-unit"}},buttonText:{type:"html",default:"Click Here"},buttonIcon:{type:"string",default:"arrow-right"},buttonIconPosition:{type:"string",default:"after"},buttonIconSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"btn-icon-space"}},buttonIconSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},buttonIconSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"btn-icon-space"}},buttonIconSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-icon-space-type"}},modalAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},modalAlignTablet:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},modalAlignMobile:{type:"string",default:"",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},modalWidth:{type:"number",UAGCopyPaste:{styleType:"modal-width"},default:600},modalWidthTablet:{type:"number",UAGCopyPaste:{styleType:"modal-width"},default:600},modalWidthMobile:{type:"number",UAGCopyPaste:{styleType:"modal-width"},default:340},modalWidthType:{type:"string",default:"px",UAGCopyPaste:{styleType:"modal-width-type"}},modalHeight:{type:"number",UAGCopyPaste:{styleType:"modal-height"},default:350},modalHeightTablet:{type:"number",UAGCopyPaste:{styleType:"modal-height"},default:350},modalHeightMobile:{type:"number",UAGCopyPaste:{styleType:"modal-height"},default:300},modalHeightType:{type:"string",default:"px",UAGCopyPaste:{styleType:"modal-height-type"}},appearEffect:{type:"string",default:"uagb-effect-default"},closeIconSize:{type:"number",default:25},closeIconPosition:{type:"string",default:"popup-top-right"},escPress:{type:"boolean",default:!1},overlayClick:{type:"boolean",default:!1},overlayColor:{type:"string",default:"rgba(0,0,0,0.75)",UAGCopyPaste:{styleType:"overlay-bg-color"}},closeIconColor:{type:"string",default:"",UAGCopyPaste:{styleType:"close-icon-color"}},modalSpacingLink:{type:"boolean",default:!0},paddingModalUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit"},default:"px"},mobilePaddingModalUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"},default:"px"},tabletPaddingModalUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingModalTop:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding"}},paddingModalBottom:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingModalLeft:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding"}},paddingModalRight:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding"}},paddingModalTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingModalRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingModalBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingModalLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingModalTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingModalRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingModalBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingModalLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},iconSize:{type:"number",default:30,UAGCopyPaste:{styleType:"icon-size"}},iconColor:{type:"string",default:"",UAGCopyPaste:{styleType:"icon-color"}},textColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},textLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},textFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},textFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},textFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},textTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},textDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},textFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},textLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},textFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},textFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},textFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},textLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},textLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},textLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},textLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},textLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},textLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},textLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},btnSpacingLink:{type:"boolean",default:!0},paddingBtnUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit"},default:"px"},mobilePaddingBtnUnit:{type:"string",UAGCopyPaste:{styleType:"btn-padding-unit-mobile"},default:"px"},tabletPaddingBtnUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-padding-unit-tablet"}},paddingBtnTop:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-top-padding"}},paddingBtnBottom:{type:"number",default:14,UAGCopyPaste:{styleType:"btn-bottom-padding"}},paddingBtnLeft:{type:"number",default:32,UAGCopyPaste:{styleType:"btn-left-padding"}},paddingBtnRight:{type:"number",default:32,UAGCopyPaste:{styleType:"btn-right-padding"}},paddingBtnTopTablet:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-tablet"}},paddingBtnRightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-tablet"}},paddingBtnBottomTablet:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-tablet"}},paddingBtnLeftTablet:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-tablet"}},paddingBtnTopMobile:{type:"number",UAGCopyPaste:{styleType:"btn-top-padding-mobile"}},paddingBtnRightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-right-padding-mobile"}},paddingBtnBottomMobile:{type:"number",UAGCopyPaste:{styleType:"btn-bottom-padding-mobile"}},paddingBtnLeftMobile:{type:"number",UAGCopyPaste:{styleType:"btn-left-padding-mobile"}},btnLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"btn-load-google-fonts"}},btnFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"btn-font-family"}},btnFontWeight:{type:"string",UAGCopyPaste:{styleType:"btn-font-weight"}},btnFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"btn-font-style"}},btnTransform:{type:"string",UAGCopyPaste:{styleType:"btn-transform"}},btnDecoration:{type:"string",UAGCopyPaste:{styleType:"btn-decoration"}},btnFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-font-size-type"}},btnLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"btn-line-height-type"}},btnFontSize:{type:"number",UAGCopyPaste:{styleType:"btn-font-size"}},btnFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-tablet"}},btnFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"btn-font-size-mobile"}},btnLineHeight:{type:"number",UAGCopyPaste:{styleType:"btn-line-height"}},btnLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-tablet"}},btnLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"btn-line-height-mobile"}},btnLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"btn-letter-spacing"}},btnLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"btn-letter-spacing-tablet"}},btnLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"btn-letter-spacing-mobile"}},btnLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"btn-letter-spacing-type"}},btnLinkColor:{type:"string",UAGCopyPaste:{styleType:"btn-color"}},btnLinkHoverColor:{type:"string",default:"",UAGCopyPaste:{styleType:"btn-hover-color"}},btnBgColor:{type:"string",UAGCopyPaste:{styleType:"btn-bg-color"}},btnBgHoverColor:{type:"string",UAGCopyPaste:{styleType:"btn-h-background"}},imgTagHeight:{type:"number",default:0},imgTagWidth:{type:"number",default:0},showBtnIcon:{type:"boolean",default:!1},modalBoxHeight:{type:"string",default:"auto"},maxHeight:{type:"number",default:"90",UAGCopyPaste:{styleType:"container-max-height-desktop"}},maxHeightTablet:{type:"number",UAGCopyPaste:{styleType:"container-max-height-tablet"}},maxHeightMobile:{type:"number",UAGCopyPaste:{styleType:"container-max-height-mobile"}},maxHeightType:{type:"string",default:"vh",UAGCopyPaste:{styleType:"container-max-height-type"}},backgroundType:{type:"string",default:"none",UAGCopyPaste:{styleType:"container-bg-type"}},backgroundImageDesktop:{type:"object",UAGCopyPaste:{styleType:"container-bg-image-desktop"}},backgroundImageTablet:{type:"object",UAGCopyPaste:{styleType:"container-bg-image-tablet"}},backgroundImageMobile:{type:"object",UAGCopyPaste:{styleType:"container-bg-image-mobile"}},backgroundPositionDesktop:{type:"object",default:{x:.5,y:.5},UAGCopyPaste:{styleType:"container-bg-position-desktop"}},backgroundPositionTablet:{type:"object",UAGCopyPaste:{styleType:"container-bg-position-tablet"}},backgroundPositionMobile:{type:"object",UAGCopyPaste:{styleType:"container-bg-position-mobile"}},backgroundSizeDesktop:{type:"string",default:"cover",UAGCopyPaste:{styleType:"container-bg-size-desktop"}},backgroundSizeTablet:{type:"string",UAGCopyPaste:{styleType:"container-bg-size-tablet"}},backgroundSizeMobile:{type:"string",UAGCopyPaste:{styleType:"container-bg-size-mobile"}},backgroundRepeatDesktop:{type:"string",default:"no-repeat",UAGCopyPaste:{styleType:"container-bg-repeat-desktop"}},backgroundRepeatTablet:{type:"string",UAGCopyPaste:{styleType:"container-bg-repeat-tablet"}},backgroundRepeatMobile:{type:"string",UAGCopyPaste:{styleType:"container-bg-repeat-mobile"}},backgroundAttachmentDesktop:{type:"string",default:"scroll",UAGCopyPaste:{styleType:"container-bg-attachment-desktop"}},backgroundAttachmentTablet:{type:"string",UAGCopyPaste:{styleType:"container-bg-attachment-tablet"}},backgroundAttachmentMobile:{type:"string",UAGCopyPaste:{styleType:"container-bg-attachment-mobile"}},backgroundColor:{type:"string",UAGCopyPaste:{styleType:"container-bg-color"}},backgroundOpacity:{type:"number",UAGCopyPaste:{styleType:"container-bg-opacity"}},backgroundImageColor:{type:"string",UAGCopyPaste:{styleType:"container-bg-image-color"},default:"#FFFFFF75"},gradientValue:{type:"string",default:"linear-gradient(90deg, rgba(6, 147, 227, 0.5) 0%, rgba(155, 81, 224, 0.5) 100%)",UAGCopyPaste:{styleType:"container-bg-gradient-value"}},backgroundCustomSizeDesktop:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-desktop"},default:100},backgroundCustomSizeTablet:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-tablet"}},backgroundCustomSizeMobile:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-mobile"}},backgroundCustomSizeType:{type:"string",default:"%",UAGCopyPaste:{styleType:"background-custom-size-type"}},overlayType:{type:"string",default:"none",UAGCopyPaste:{styleType:"background-overlay-type"}},customPosition:{type:"string",default:"default",UAGCopyPaste:{styleType:"background-image-position-type"}},xPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-desktop"},default:""},xPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-tablet"}},xPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-mobile"}},xPositionType:{type:"string",default:"px"},xPositionTypeTablet:{type:"string",default:"px"},xPositionTypeMobile:{type:"string",default:"px"},yPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-desktop"},default:""},yPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-tablet"}},yPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-mobile"}},yPositionType:{type:"string",default:"px"},yPositionTypeTablet:{type:"string",default:"px"},yPositionTypeMobile:{type:"string",default:"px"},...Dw,btnBorderTopLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-top-left-radius"}},btnBorderTopRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-top-right-radius"}},btnBorderBottomLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-bottom-left-radius"}},btnBorderBottomRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"btn-border-bottom-right-radius"}},...Nw,contentBorderTopLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-top-left-radius"}},contentBorderTopRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-top-right-radius"}},contentBorderBottomLeftRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-bottom-left-radius"}},contentBorderBottomRightRadius:{type:"number",default:3,UAGCopyPaste:{styleType:"content-border-bottom-right-radius"}},gradientColor1:{type:"string",default:"#06558a",UAGCopyPaste:{styleType:"gradient-color-1"}},gradientColor2:{type:"string",default:"#0063A1",UAGCopyPaste:{styleType:"gradient-color-2"}},gradientType:{type:"string",default:"linear",UAGCopyPaste:{styleType:"gradient-color-type"}},selectGradient:{type:"string",default:"basic",UAGCopyPaste:{styleType:"gradient-type"}},gradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"gradient-location-1"}},gradientLocation2:{type:"number",default:100,UAGCopyPaste:{styleType:"gradient-location-2"}},gradientAngle:{type:"number",default:0,UAGCopyPaste:{styleType:"gradient-angle"}},modalTriggerBgType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-background-type"}},modalTriggerBgHoverType:{type:"string",default:"color",UAGCopyPaste:{styleType:"btn-hbackground-type"}}};var Vw=[{attributes:Iw,save:e=>{const{block_id:t,modalTrigger:a,triggerText:l,icon:i,iconImage:o,imageSize:n,buttonText:r,buttonIcon:s,buttonIconPosition:c,appearEffect:u,closeIconPosition:p,escPress:d,overlayClick:b,closeIcon:g,imgTagWidth:m,imgTagHeight:y,showBtnIcon:f}=e.attributes,h=React.createElement(ge.RichText.Content,{value:l,tagName:"span",className:"uagb-modal-text uagb-modal-trigger"}),v=React.createElement("div",{className:"uagb-modal-trigger"},""!==i&&Ce(i)),_=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let T="";if(o&&o.url){let e=o.url;const t=o.sizes,a=n;void 0!==t&&void 0!==t[a]&&(e=t[a].url),T=React.createElement("img",{src:e,alt:_,className:"uagb-modal-trigger",width:m,height:y,loading:"lazy"})}let C="";""!==s&&(C=Ce(s));const S=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("a",{className:"uagb-modal-button-link wp-block-button__link uagb-modal-trigger",href:"#",onClick:"return false;",target:"_self",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-modal-content-wrapper"},f&&"before"===c&&C,React.createElement(ge.RichText.Content,{tagName:"span",value:r,className:"uagb-inline-editing"}),f&&"after"===c&&C)));return React.createElement("div",{className:Be()("uagb-block-"+t,"uagb-modal-wrapper"),"data-escpress":d?"enable":"disable","data-overlayclick":b?"enable":"disable"},"text"===a&&h,"icon"===a&&v,"image"===a&&T,"button"===a&&S,React.createElement("div",{className:Be()(""+u,"uagb-modal-popup","uagb-block-"+t)},React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks.Content,null)),("popup-top-left"===p||"popup-top-right"===p)&&React.createElement("div",{className:"uagb-modal-popup-close"},""!==g&&Ce(g)))))}},{attributes:Iw,save:function(e){const{block_id:t,modalTrigger:a,triggerText:l,icon:i,iconImage:o,imageSize:n,buttonText:r,buttonIcon:s,buttonIconPosition:c,appearEffect:u,closeIconPosition:p,escPress:d,overlayClick:b,closeIcon:g,imgTagWidth:m,imgTagHeight:y,showBtnIcon:f,openModalAs:h,modalPosition:v}=e.attributes,_=React.createElement(ge.RichText.Content,{value:l,tagName:"span",className:"uagb-modal-text uagb-modal-trigger"}),T=uagb_blocks_info.spectra_pro_status,C=React.createElement("div",{className:"uagb-modal-trigger"},""!==i&&Ce(i)),S=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let k="";if(o&&o.url){let e=o.url;const t=o.sizes,a=n;void 0!==t&&void 0!==t[a]&&(e=t[a].url),k=React.createElement("img",{src:e,alt:S,className:"uagb-modal-trigger",width:m,height:y,loading:"lazy"})}let w="";""!==s&&(w=Ce(s));const P=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("a",{className:"uagb-modal-button-link wp-block-button__link uagb-modal-trigger",href:"#",onClick:"return false;",target:"_self",rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-modal-content-wrapper"},f&&"before"===c&&w,React.createElement(ge.RichText.Content,{tagName:"span",value:r,className:"uagb-inline-editing"}),f&&"after"===c&&w)));return React.createElement("div",{className:Be()("uagb-block-"+t,"uagb-modal-wrapper"),"data-escpress":d?"enable":"disable","data-overlayclick":b?"enable":"disable"},"text"===a&&_,"icon"===a&&C,"image"===a&&k,"button"===a&&P,React.createElement("div",{className:Be()(""+u,"uagb-modal-popup","uagb-block-"+t,{["uagb-modal-type-"+h]:T,["uagb-modal-position-"+v]:T&&"popup"===h})},T&&("window-top-left"===p||"window-top-right"===p)&&React.createElement("div",{className:Be()("uagb-modal-popup-close",p)},""!==g&&Ce(g)),React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks.Content,null)),("popup-top-left"===p||"popup-top-right"===p)&&React.createElement("div",{className:"uagb-modal-popup-close"},""!==g&&Ce(g)))))}}];let Ww={};Ww=Object(F.applyFilters)("uagb/modal",ss(Ww)),Object(de.registerBlockType)("uagb/modal",{...Ww,title:Object(r.__)("Modal","ultimate-addons-for-gutenberg"),description:Object(r.__)("This block allows you to add modal popup.","ultimate-addons-for-gutenberg"),icon:se.modal,keywords:[Object(r.__)("modal","ultimate-addons-for-gutenberg"),Object(r.__)("popup","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:ka,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"modal"}):React.createElement(zw,e),save:function(e){const{block_id:t,modalTrigger:a,triggerText:l,icon:i,iconImage:o,imageSize:n,buttonText:s,buttonIcon:c,buttonIconPosition:u,appearEffect:p,closeIconPosition:d,escPress:b,overlayClick:g,closeIcon:m,imgTagWidth:y,imgTagHeight:f,showBtnIcon:h,openModalAs:v,modalPosition:_,inheritFromTheme:T,buttonType:C}=e.attributes,S=React.createElement(ge.RichText.Content,{value:l,tagName:"span",className:"uagb-modal-text uagb-modal-trigger"}),k=uagb_blocks_info.spectra_pro_status,w=React.createElement("div",{className:"uagb-modal-trigger"},""!==i&&Ce(i)),P=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let x="";if(o&&o.url){let e=o.url;const t=o.sizes,a=n;void 0!==t&&void 0!==t[a]&&(e=t[a].url),x=React.createElement("img",{src:e,alt:P,className:"uagb-modal-trigger",width:y,height:f,loading:"lazy"})}let A="";""!==c&&(A=Ce(c));const G=T&&"secondary"===C,M=G?{borderWidth:"revert-layer"}:{},R=`uagb-modal-button-link ${G?"ast-outline-button":"wp-block-button__link"} uagb-modal-trigger`,B=React.createElement("div",{className:Be()("uagb-spectra-button-wrapper","wp-block-button")},React.createElement("a",{className:R,href:"#",onClick:"return false;",target:"_self",rel:"noopener noreferrer",style:M},React.createElement("span",{className:"uagb-modal-content-wrapper"},h&&"before"===u&&A,React.createElement(ge.RichText.Content,{tagName:"span",value:s,className:"uagb-inline-editing"}),h&&"after"===u&&A)));return React.createElement("div",{className:Be()("uagb-block-"+t,"uagb-modal-wrapper"),"data-escpress":b?"enable":"disable","data-overlayclick":g?"enable":"disable"},"text"===a&&S,"icon"===a&&w,"image"===a&&x,"button"===a&&B,React.createElement("div",{className:Be()(""+p,"uagb-modal-popup","uagb-block-"+t,{["uagb-modal-type-"+v]:k,["uagb-modal-position-"+_]:k&&"popup"===v})},React.createElement("div",{className:"uagb-modal-popup-wrap"},React.createElement("div",{className:"uagb-modal-popup-content"},React.createElement(ge.InnerBlocks.Content,null)),("popup-top-left"===d||"popup-top-right"===d)&&React.createElement("button",{className:"uagb-modal-popup-close","aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==m&&Ce(m))),k&&("window-top-left"===d||"window-top-right"===d)&&React.createElement("button",{className:Be()("uagb-modal-popup-close",d),"aria-label":Object(r.__)("Close Modal","ultimate-addons-for-gutenberg")},""!==m&&Ce(m))))},deprecated:Vw});var qw=function(e,t,a){const{block_id:l,blockName:i,btnBorderHColor:o,align:n,titleColor:r,titleFontSize:s,titleFontSizeType:c,titleFontSizeMobile:u,titleFontSizeTablet:p,titleFontFamily:d,titleFontWeight:b,titleLineHeightType:g,titleLineHeight:m,titleLineHeightTablet:y,titleLineHeightMobile:f,titleBottomSpace:h,titleBottomSpaceTablet:v,titleBottomSpaceMobile:_,titleTransform:T,titleDecoration:C,titleBottomSpaceUnit:S,titleFontStyle:k,metaFontSize:w,metaFontSizeType:P,metaFontSizeMobile:x,metaFontSizeTablet:A,metaFontFamily:G,metaFontWeight:M,metaLineHeightType:R,metaLineHeight:B,metaLineHeightTablet:U,metaLineHeightMobile:E,metaColor:O,metaBottomSpace:L,metaBottomSpaceTablet:H,metaBottomSpaceMobile:F,metaTransform:j,metaDecoration:z,metaBottomSpaceUnit:D,metaFontStyle:N,excerptFontSize:I,excerptFontSizeType:V,excerptFontSizeTablet:W,excerptFontSizeMobile:q,excerptFontFamily:Z,excerptFontWeight:$,excerptFontStyle:Y,excerptLineHeightType:K,excerptLineHeight:J,excerptLineHeightTablet:X,excerptLineHeightMobile:Q,excerptColor:ee,excerptBottomSpace:te,excerptBottomSpaceTablet:le,excerptBottomSpaceMobile:ie,excerptBottomSpaceUnit:oe,excerptTransform:ne,excerptDecoration:re,ctaColor:se,linkBox:ce,ctaFontSize:ue,ctaFontSizeType:pe,ctaFontSizeTablet:de,ctaFontSizeMobile:be,ctaFontFamily:ge,ctaFontStyle:me,ctaFontWeight:ye,ctaLineHeightType:fe,ctaLineHeight:he,ctaLineHeightTablet:ve,ctaLineHeightMobile:_e,ctaBottomSpace:Te,ctaBottomSpaceTablet:Ce,ctaBottomSpaceMobile:Se,ctaBgType:ke,ctaBgHType:we,ctaBgColor:Pe,ctaHColor:xe,ctaBgHColor:Ae,ctaTransform:Ge,ctaDecoration:Me,ctaBottomSpaceUnit:Re,imageBottomSpace:Be,imageBottomSpaceTablet:Ue,imageBottomSpaceMobile:Ee,imageBottomSpaceUnit:Oe,overlayOpacity:Le,bgOverlayColor:He,postPagination:Fe,rowGapUnit:je,columnGapUnit:ze,rowGap:De,rowGapTablet:Ne,rowGapMobile:Ie,columnGap:Ve,columnGapTablet:We,columnGapMobile:qe,bgType:Ze,bgColor:$e,inheritFromThemeBtn:Ye,paginationColor:Ke,paginationBgColor:Je,paginationActiveColor:Xe,paginationBgActiveColor:Qe,paginationLayout:et,paginationBorderSize:tt,paginationBorderRadius:at,paginationBorderColor:lt,paginationBorderActiveColor:it,paginationSpacing:ot,paginationSpacingUnit:nt,paginationAlignment:rt,paddingBtnTop:st,paddingBtnBottom:ct,paddingBtnLeft:ut,paddingBtnRight:pt,paddingBtnTopTablet:dt,paddingBtnRightTablet:bt,paddingBtnBottomTablet:gt,paddingBtnLeftTablet:mt,paddingBtnTopMobile:yt,paddingBtnRightMobile:ft,paddingBtnBottomMobile:ht,paddingBtnLeftMobile:vt,paddingBtnUnit:_t,mobilePaddingBtnUnit:Tt,tabletPaddingBtnUnit:Ct,paddingTop:St,paddingBottom:kt,paddingLeft:wt,paddingRight:Pt,paddingTopTablet:xt,paddingRightTablet:At,paddingBottomTablet:Gt,paddingLeftTablet:Mt,paddingTopMobile:Rt,paddingRightMobile:Bt,paddingBottomMobile:Ut,paddingLeftMobile:Et,mobilePaddingUnit:Ot,tabletPaddingUnit:Lt,contentPaddingUnit:Ht,arrowColor:Ft,arrowSize:jt,paginationType:zt,paginationFontSize:Dt,paginationEventType:Nt,paginationAlign:It,paginationTextColor:Vt,paginationMasonryBgColor:Wt,paginationMasonryBorderHColor:qt,paginationButtonPaddingType:Zt,paginationTextHoverColor:$t,paginationBgHoverColor:Yt,paginationButtonPaddingTopTablet:Kt,paginationButtonPaddingRightTablet:Jt,paginationButtonPaddingBottomTablet:Xt,paginationButtonPaddingLeftTablet:Qt,paginationButtonPaddingTopMobile:ea,paginationButtonPaddingRightMobile:ta,paginationButtonPaddingBottomMobile:aa,paginationButtonPaddingLeftMobile:la,paginationButtonPaddingTop:ia,paginationButtonPaddingRight:oa,paginationButtonPaddingBottom:na,paginationButtonPaddingLeft:ra,mobilepaginationButtonPaddingType:sa,tabletpaginationButtonPaddingType:ca,loaderSize:ua,loaderColor:pa,highlightedTextColor:da,highlightedTextBgColor:ba,imgPosition:ga,titleLetterSpacing:ma,titleLetterSpacingTablet:ya,titleLetterSpacingMobile:fa,titleLetterSpacingType:ha,metaLetterSpacing:va,metaLetterSpacingTablet:_a,metaLetterSpacingMobile:Ta,metaLetterSpacingType:Ca,excerptLetterSpacing:Sa,excerptLetterSpacingTablet:ka,excerptLetterSpacingMobile:wa,excerptLetterSpacingType:Pa,ctaLetterSpacing:xa,ctaLetterSpacingTablet:Aa,ctaLetterSpacingMobile:Ga,ctaLetterSpacingType:Ma,useSeparateBoxShadows:Ra,boxShadowColor:Ba,boxShadowHOffset:Ua,boxShadowVOffset:Ea,boxShadowBlur:Oa,boxShadowSpread:La,boxShadowPosition:Ha,boxShadowColorHover:Fa,boxShadowHOffsetHover:ja,boxShadowVOffsetHover:za,boxShadowBlurHover:Da,boxShadowSpreadHover:Na,boxShadowPositionHover:Ia,overallBorderHColor:Va,arrowDistance:Wa,arrowDistanceTablet:qa,arrowDistanceMobile:Za,columns:$a,tcolumns:Ya,mcolumns:Ka,wrapperTopPadding:Ja,wrapperRightPadding:Xa,wrapperLeftPadding:Qa,wrapperBottomPadding:el,wrapperTopPaddingTablet:tl,wrapperRightPaddingTablet:al,wrapperLeftPaddingTablet:ll,wrapperBottomPaddingTablet:il,wrapperTopPaddingMobile:ol,wrapperRightPaddingMobile:nl,wrapperLeftPaddingMobile:rl,wrapperBottomPaddingMobile:sl,wrapperPaddingUnit:cl,wrapperPaddingUnitTablet:ul,wrapperPaddingUnitMobile:pl,wrapperAlign:dl,wrapperAlignPosition:bl,isLeftToRightLayout:gl,dotsMarginTop:ml,dotsMarginTopTablet:yl,dotsMarginTopMobile:fl,dotsMarginTopUnit:hl}=e,vl=a.toLowerCase(),_l=us(Le,"overlayOpacity",i),Tl=us(Ve,"columnGap",i),Cl=us(De,"rowGap",i),Sl=us(Be,"imageBottomSpace",i),kl=us(h,"titleBottomSpace",i),wl=us(L,"metaBottomSpace",i),Pl=us(te,"excerptBottomSpace",i),xl=us(Te,"ctaBottomSpace",i),Al=void 0!==ot?us(ot,"paginationSpacing",i):"",Gl=void 0!==at?us(at,"paginationBorderRadius",i):"",Ml=void 0!==tt?us(tt,"paginationBorderSize",i):"",Rl=void 0!==jt?us(jt,"arrowSize",i):"",Bl=void 0!==Dt?us(Dt,"paginationFontSize",i):"",Ul=void 0!==ua?us(ua,"loaderSize",i):"",El=isNaN(Ne)?Cl:Ne,Ol=isNaN(Ie)?El:Ie,Ll=Wr(e,"btn"),Hl=Wr(e,"btn","tablet"),Fl=Wr(e,"btn","mobile"),jl=Wr(e,"overall"),zl=Wr(e,"overall","tablet"),Dl=Wr(e,"overall","mobile"),Nl=Wr(e,"paginationMasonry"),Il=Wr(e,"paginationMasonry","tablet"),Vl=Wr(e,"paginationMasonry","mobile"),Wl=us(ml,"dotsMarginTop","post-carousel"),ql=us(yl,"dotsMarginTopTablet","post-carousel"),Zl=us(fl,"dotsMarginTopMobile","post-carousel");let $l={},Yl={};const Kl=Zr({horizontal:Ua,vertical:Ea,blur:Oa,spread:La,color:Ba,position:Ha}),Jl=Zr({horizontal:ja,vertical:za,blur:Da,spread:Na,color:Fa,position:Ia,altColor:Ba});let Xl={".wp-block-uagb-post-grid":{"grid-template-columns":"repeat("+$a+" , minmax(0, 1fr))",...gl?{display:"flex","flex-direction":"column"}:{}},".wp-block-uagb-post-grid.uagb-post__items":{"column-gap":Vr(Tl,ze),"row-gap":Vr(Cl,je)},":not(.wp-block-uagb-post-grid).uagb-post__items":{"margin-right":Vr(-Cl/2,je),"margin-left":Vr(-Cl/2,je)},":not(.wp-block-uagb-post-grid).uagb-post__items article":{"padding-right":Vr(Cl/2,je),"padding-left":Vr(Cl/2,je),"margin-bottom":Vr(Tl,ze)}," .uagb-post__inner-wrap":{background:$e,"text-align":n,...gl?{display:"flex","flex-direction":dl,width:"100%"}:{}},".is_carousel .uagb-post__inner-wrap":{background:Ze?$e:"transparent"},".wp-block-uagb-post-grid .uagb-post__inner-wrap":{"box-shadow":Kl,...jl,"padding-top":Vr(St,Ht),"padding-left":Vr(wt,Ht),"padding-bottom":Vr(kt,Ht),"padding-right":Vr(Pt,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap > .uagb-post__text:not(.highlighted)":{"margin-left":Vr(wt,Ht),"margin-right":Vr(Pt,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text.highlighted":{"margin-left":Vr(wt,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:first-child":{"margin-top":Vr(St,Ht)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:last-child":{"margin-bottom":Vr(kt,Ht)}," .uagb-post__inner-wrap .uagb-post__cta":{"padding-bottom":Vr(xl,Re)}," .uagb-post__inner-wrap .uagb-post__image":{"padding-bottom":Vr(Sl,Oe),...gl&&"top"===ga?{flex:"none",width:"35%"}:{},...gl&&"background"===ga?{flex:"none",width:"100%"}:{}}," .uagb-post__inner-wrap .uagb-post__image + .uagb-post__title ":{"margin-top":"0px"}," .uagb-post__inner-wrap .uagb-post__title":{"padding-bottom":Vr(kl,S)}," .uagb-post__inner-wrap .uagb-post-grid-byline":{"padding-bottom":Vr(wl,D)}," .uagb-post__inner-wrap .uagb-post__excerpt":{"padding-bottom":Vr(Pl,oe)}," .uagb-post__image:before":{"background-color":He,opacity:_l/100}," .uagb-post-pagination-wrap":{"margin-top":Vr(Al,nt),"justify-content":rt}," .uag-post-grid-wrapper":{"padding-top":Vr(Ja,cl),"padding-right":Vr(Xa,cl),"padding-bottom":Vr(el,cl),"padding-left":Vr(Qa,cl),width:"100%",display:"flex","flex-direction":"column","justify-content":bl}};"left"===rt?Xl[" .uagb-post-pagination-wrap"]["margin-left"]=Vr(Cl/2,je):"right"===rt&&(Xl[" .uagb-post-pagination-wrap"]["margin-right"]=Vr(Cl/2,je)),Xl[" .uagb-post__title"]={color:r,"font-size":Vr(s,c),"font-family":d,"font-weight":b,"line-height":Vr(m,g),"text-transform":T,"text-decoration":C,"font-style":k,"letter-spacing":Vr(ma,ha)},Xl[" .uagb-post__title a"]={color:r,"font-size":Vr(s,c),"font-family":d,"font-weight":b,"line-height":Vr(m,g),"letter-spacing":Vr(ma,ha)},Xl[" .uagb-post-grid-byline"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline time"]={"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline span.uagb-post__comment"]={"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" span.uagb-post__taxonomy"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" span.uagb-post__taxonomy.highlighted"]={color:da,"background-color":ba,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"font-style":N,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline .uagb-post__author"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post-grid-byline .uagb-post__author a"]={color:O,"font-size":Vr(w,P),"font-family":G,"font-weight":M,"line-height":Vr(B,R),"text-transform":j,"text-decoration":z,"letter-spacing":Vr(va,Ca)},Xl[" .uagb-post__excerpt"]={color:ee,"font-size":Vr(I,V),"font-family":Z,"font-weight":$,"line-height":Vr(J,K),"font-style":Y,"text-transform":ne,"text-decoration":re,"letter-spacing":Vr(Sa,Pa)},!0===Fe&&("filled"===et&&(Xl[" .uagb-post-pagination-wrap a"]={"background-color":Je,color:Ke},void 0===Qe&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Je,color:Ke}),void 0===Qe&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Je,color:Xe}),void 0!==Qe&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Qe,color:Ke}),void 0!==Qe&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"background-color":Qe,color:Xe})),"border"===et&&(Xl[" .uagb-post-pagination-wrap a"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":lt,"border-radius":Vr(Gl,"px"),color:Ke,"background-color":"transparent"},void 0!==it&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":it,"border-radius":Vr(Gl,"px"),color:Xe,"background-color":"transparent"}),void 0===it&&void 0!==Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":lt,"border-radius":Vr(Gl,"px"),color:Xe,"background-color":"transparent"}),void 0!==it&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":it,"border-radius":Vr(Gl,"px"),color:Ke,"background-color":"transparent"}),"undefined"==typeof paginationBorderHColor&&void 0===Xe&&(Xl[" .uagb-post-pagination-wrap .page-numbers.current"]={"border-style":"solid","border-width":Vr(Ml,"px"),"border-color":lt,"border-radius":Vr(Gl,"px"),color:Ke,"background-color":"transparent"}))),ce&&(Xl[" .uagb-post__inner-wrap"].cursor="pointer"),Xl[" .slick-arrow svg"]={fill:Ft,height:Vr(Rl,"px"),width:Vr(Rl,"px")},Xl[".uagb-post__arrow-outside.uagb-post-grid .slick-prev"]={left:Vr(Wa,"px")},Xl[".uagb-post__arrow-outside.uagb-post-grid .slick-next"]={right:Vr(Wa,"px")},$l={".wp-block-uagb-post-grid":{"grid-template-columns":"repeat("+Ka+" , minmax(0, 1fr))",...gl?{display:"grid"}:{}},".uagb-post__arrow-outside.uagb-post-grid .slick-prev":{left:Vr(Za,"px")},".uagb-post__arrow-outside.uagb-post-grid .slick-next":{right:Vr(Za,"px")}," .uagb-post__inner-wrap .uagb-post__title":{"font-size":Vr(u,c),"line-height":f+g,"padding-bottom":Vr(_,S)},".wp-block-uagb-post-grid .uagb-post__inner-wrap":Dl," .uagb-post__title a":{"font-size":Vr(u,c),"line-height":f+g,"letter-spacing":Vr(fa,ha)}," .uagb-post-grid-byline":{"font-size":Vr(x,P),"line-height":E+R,"padding-bottom":Vr(F,D),"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline time":{"font-size":Vr(x,P),"line-height":E+R,"padding-bottom":Vr(F,D),"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline span.uagb-post__comment":{"font-size":Vr(x,P),"line-height":E+R,"padding-bottom":Vr(F,D),"letter-spacing":Vr(Ta,Ca)}," span.uagb-post__taxonomy.default":{"font-size":Vr(x,P),"line-height":E+R,"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline .uagb-post__author":{"font-size":Vr(x,P),"line-height":E+R,"letter-spacing":Vr(Ta,Ca)}," .uagb-post-grid-byline .uagb-post__author a":{"font-size":Vr(x,P),"line-height":E+R,"letter-spacing":Vr(Ta,Ca)}," .uagb-post__inner-wrap .uagb-post__excerpt":{"font-size":Vr(q,V),"line-height":Q+K,"padding-bottom":Vr(ie,oe),"letter-spacing":Vr(wa,Pa)}," .uagb-post__inner-wrap .uagb-post__cta":{"font-size":Vr(be,pe),"line-height":_e+fe,"padding-bottom":Vr(Se,Re),"letter-spacing":Vr(Ga,Ma)}," .uagb-post__inner-wrap .uagb-post__cta a":{"font-size":Vr(be,pe),"line-height":_e+fe,"padding-top":Vr(yt,Tt),"padding-bottom":Vr(ht,Tt),"padding-left":Vr(vt,Tt),"padding-right":Vr(ft,Tt),"letter-spacing":Vr(Ga,Ma)}," .uagb-post__inner-wrap .uagb-post__image":{"padding-bottom":Vr(Ee,Oe),...gl&&"top"===ga?{width:"unset",display:"flex","align-items":"center"}:{},...gl&&"background"===ga?{width:"100%"}:{}},".uagb-post__items":{"margin-right":Vr(-Ol/2,je),"margin-left":Vr(-Ol/2,je)},":not(.wp-block-uagb-post-grid).uagb-post__items article":{"padding-right":Vr(Ol/2,je),"padding-left":Vr(Ol/2,je),"margin-bottom":Vr(qe,ze)},".wp-block-uagb-post-grid.uagb-post__items":{"column-gap":Vr(qe,ze),"row-gap":Vr(Ie,je)}," .is-masonry":{height:"initial !important"},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:not(.highlighted)":{"margin-left":Vr(Et,Ot),"margin-right":Vr(Bt,Ot)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text.highlighted":{"margin-left":Vr(Et,Ot)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:first-child":{"margin-top":Vr(Rt,Ot)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:last-child":{"margin-bottom":Vr(Ut,Ot)}," .uagb-post__inner-wrap":{...gl?{"flex-direction":"column"}:{}}," .uag-post-grid-wrapper":{"padding-top":Vr(ol,pl),"padding-right":Vr(nl,pl),"padding-bottom":Vr(sl,pl),"padding-left":Vr(rl,pl),width:"unset"}},Ra&&(Xl[".wp-block-uagb-post-grid .uagb-post__inner-wrap:hover"]={"box-shadow":Jl}),Xl[".wp-block-uagb-post-grid article:hover"]={"border-color":Va},Xl[".wp-block-uagb-post-grid article:hover"]={"border-color":Va},Yl={".wp-block-uagb-post-grid":{"grid-template-columns":"repeat("+Ya+" , minmax(0, 1fr))"},".uagb-post__arrow-outside.uagb-post-grid .slick-prev":{left:Vr(qa,"px")},".uagb-post__arrow-outside.uagb-post-grid .slick-next":{right:Vr(qa,"px")}," .uagb-post__inner-wrap .uagb-post__title":{"font-size":Vr(p,c),"line-height":y+g,"padding-bottom":Vr(v,S)}," .uagb-post__title a":{"font-size":Vr(p,c),"line-height":y+g,"letter-spacing":Vr(ya,ha)}," .uagb-post-grid-byline":{"font-size":Vr(A,P),"line-height":U+R,"padding-bottom":Vr(H,D),"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline time":{"font-size":Vr(A,P),"line-height":U+R,"padding-bottom":Vr(H,D),"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline span.uagb-post__comment":{"font-size":Vr(A,P),"line-height":U+R,"padding-bottom":Vr(H,D),"letter-spacing":Vr(_a,Ca)}," span.uagb-post__taxonomy.default":{"font-size":Vr(A,P),"line-height":U+R,"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline .uagb-post__author":{"font-size":Vr(A,P),"line-height":U+R,"letter-spacing":Vr(_a,Ca)}," .uagb-post-grid-byline .uagb-post__author a":{"font-size":Vr(A,P),"line-height":U+R,"letter-spacing":Vr(_a,Ca)}," .uagb-post__inner-wrap .uagb-post__excerpt":{"font-size":Vr(W,V),"line-height":X+K,"padding-bottom":Vr(le,oe),"letter-spacing":Vr(ka,Pa)}," .uagb-post__inner-wrap .uagb-post__cta":{"font-size":Vr(de,pe),"line-height":ve+fe,"padding-bottom":Vr(Ce,Re),"letter-spacing":Vr(Aa,Ma)}," .uagb-post__inner-wrap .uagb-post__cta .uagb-text-link":{"font-size":Vr(de,pe),"line-height":ve+fe,"padding-top":Vr(dt,Ct),"padding-bottom":Vr(gt,Ct),"padding-left":Vr(mt,Ct),"padding-right":Vr(bt,Ct),"letter-spacing":Vr(Aa,Ma)}," .uagb-post__inner-wrap .uagb-post__image":{"padding-bottom":Vr(Ue,Oe),...gl&&"top"===ga?{width:"45%"}:{}},".uagb-post__items":{"margin-right":Vr(-El/2,je),"margin-left":Vr(-El/2,je)},":not(.wp-block-uagb-post-grid).uagb-post__items article":{"padding-right":Vr(El/2,je),"padding-left":Vr(El/2,je),"margin-bottom":Vr(We,ze)},".wp-block-uagb-post-grid.uagb-post__items":{"column-gap":Vr(We,ze),"row-gap":Vr(Ne,je)},".wp-block-uagb-post-grid .uagb-post__inner-wrap":zl," .is-masonry":{height:"initial !important"},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:not(.highlighted)":{"margin-left":Vr(Mt,Lt),"margin-right":Vr(At,Lt)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text.highlighted":{"margin-left":Vr(Mt,Lt)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:first-child":{"margin-top":Vr(xt,Lt)},":not(.wp-block-uagb-post-grid) .uagb-post__inner-wrap .uagb-post__text:last-child":{"margin-bottom":Vr(Gt,Lt)}," .uag-post-grid-wrapper":{"padding-top":Vr(tl,ul),"padding-right":Vr(al,ul),"padding-bottom":Vr(il,ul),"padding-left":Vr(ll,ul)}},"infinite"===zt&&("button"===Nt&&(Xl[".uagb-post__items"]={"margin-bottom":"40px"},Xl[" .uagb-post__load-more-wrap"]={"text-align":It},Xl[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]={color:Vt,"background-color":Wt,"font-size":Vr(Bl,"px"),"padding-top":Vr(ia,Zt),"padding-bottom":Vr(na,Zt),"padding-right":Vr(oa,Zt),"padding-left":Vr(ra,Zt),...Nl},Xl[" .uagb-post__load-more-wrap .uagb-post-pagination-button:hover"]={color:$t,"background-color":Yt,"border-color":qt},$l[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]={"padding-top":Vr(ea,sa),"padding-bottom":Vr(aa,sa),"padding-right":Vr(ta,sa),"padding-left":Vr(la,sa)},Yl[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]={"padding-top":Vr(Kt,ca),"padding-bottom":Vr(Jt,ca),"padding-right":Vr(Xt,ca),"padding-left":Vr(Qt,ca)}),"scroll"===Nt&&(Xl[".uagb-post-grid .uagb-post-inf-loader div"]={width:Vr(Ul,"px"),height:Vr(Ul,"px"),"background-color":pa})),Yl[".uagb-post-grid .uagb-post__inner-wrap"]={"padding-top":Vr(xt,Lt),"padding-bottom":Vr(Gt,Lt),"padding-left":Vr(Mt,Lt),"padding-right":Vr(At,Lt),...zl},$l[".uagb-post-grid .uagb-post__inner-wrap"]={"padding-top":Vr(Rt,Ot),"padding-bottom":Vr(Ut,Ot),"padding-left":Vr(Et,Ot),"padding-right":Vr(Bt,Ot),...Dl,...gl?{display:"inline-block"}:{}},Yl[" .uagb-post__cta .uagb-text-link"]=Hl,$l[" .uagb-post__cta .uagb-text-link"]=Fl,Yl[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]=Il,$l[" .uagb-post__load-more-wrap .uagb-post-pagination-button"]=Vl,"background"!==ga||gl||(Xl[" .uagb-post__inner-wrap .uagb-post__text:nth-child(2)"]={"margin-top":Vr(St,Ht)}),"background"===ga||gl||(Xl[".wp-block-uagb-post-grid .uagb-post__inner-wrap > .uagb-post__image:first-child"]={"margin-top":Vr(-St,Ht),"margin-left":Vr(-wt,Ht),"margin-right":Vr(-Pt,Ht)},Yl[".wp-block-uagb-post-grid .uagb-post__inner-wrap > .uagb-post__image:first-child"]={"margin-top":Vr(-xt,Lt),"margin-left":Vr(-Mt,Lt),"margin-right":Vr(-At,Lt)}),"background"!==ga&&($l[".wp-block-uagb-post-grid .uagb-post__inner-wrap > .uagb-post__image:first-child"]={"margin-top":Vr(-Rt,Ot),"margin-left":Vr(-Et,Ot),"margin-right":Vr(-Bt,Ot)}),Yl[" .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background) "]=Hl,$l[" .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background) "]=Fl,Xl[" .slick-dots"]={"margin-top":Vr(Wl,hl)+"!important"},Yl[" .slick-dots"]={"margin-top":Vr(ql,hl)+"!important"},$l[" .slick-dots"]={"margin-top":Vr(Zl,hl)+"!important"},"post-grid"===i&&(Xl[".uagb-equal_height_inline-read-more-buttons-in-editor .uagb-post__inner-wrap .uagb-post__text:last-child"]={left:Vr(wt,Ht),right:Vr(Pt,Ht)},Yl[".uagb-equal_height_inline-read-more-buttons-in-editor .uagb-post__inner-wrap .uagb-post__text:last-child"]={left:Vr(Mt,Lt),right:Vr(At,Lt)},$l[".uagb-equal_height_inline-read-more-buttons-in-editor .uagb-post__inner-wrap .uagb-post__text:last-child"]={left:Vr(Et,Ot),right:Vr(Bt,Ot)}),Ye||(Xl={...Xl," .uagb-post__cta .uagb-text-link":{"pointer-events":"visible",color:se,"font-size":Vr(ue,pe),"font-family":ge,"font-weight":ye,"font-style":me,"line-height":Vr(he,fe),background:"color"===ke?Pe:"transparent","padding-top":Vr(st,_t),"padding-bottom":Vr(ct,_t),"text-transform":Ge,"text-decoration":Me,"padding-left":Vr(ut,_t),"padding-right":Vr(pt,_t),...Ll,"letter-spacing":Vr(xa,Ma)}," .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background) ":{"pointer-events":"visible",color:se,"font-size":Vr(ue,pe),"font-family":ge,"font-weight":ye,"font-style":me,"line-height":Vr(he,fe),background:Pe,"padding-top":Vr(st,_t),"padding-bottom":Vr(ct,_t),"text-transform":Ge,"text-decoration":Me,"padding-left":Vr(ut,_t),"padding-right":Vr(pt,_t),...Ll,"letter-spacing":Vr(xa,Ma)}," .uagb-post__inner-wrap .uagb-post__text .wp-block-button.uagb-post__cta:not(.is-style-outline) .uagb-text-link.wp-block-button__link:not(.has-background):hover":{color:xe,background:"color"===we?Ae:"transparent","border-color":o}},Yl={...Yl," .uagb-post__cta .uagb-text-link":Hl},$l={...$l," .uagb-post__cta .uagb-text-link":Fl});let Ql="";const ei=".editor-styles-wrapper .uagb-block-"+l;return Ql=ae(Xl,ei),"tablet"!==vl&&"mobile"!==vl||(Ql+=ae(Yl,ei,!0,"tablet"),"mobile"===vl&&(Ql+=ae($l,ei,!0,"mobile"))),Ql},Zw=a(22);const $w=[{defaultAttributes:tt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"center"},{label:"postsToShow",value:4},{label:"columns",value:2},{label:"autoplay",value:!1},{label:"imageBottomSpace",value:25},{label:"paddingTop",value:20},{label:"paddingBottom",value:30},{label:"paddingLeft",value:20},{label:"paddingRight",value:20},{label:"arrowDots",value:"arrows_dots"},{label:"imgPosition",value:"top"},{label:"linkBox",value:!1},{label:"excerptLength",value:15},{label:"displayPostLink",value:!0},{label:"titleColor",value:""},{label:"metaColor",value:""},{label:"excerptColor",value:""},{label:"bgOverlayColor",value:""},{label:"overlayOpacity",value:""},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"displayPostImage",value:!0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"left"},{label:"postsToShow",value:6},{label:"columns",value:3},{label:"autoplay",value:!0},{label:"imageBottomSpace",value:0},{label:"paddingTop",value:40},{label:"paddingBottom",value:40},{label:"paddingLeft",value:40},{label:"paddingRight",value:40},{label:"arrowDots",value:"dots"},{label:"imgPosition",value:"background"},{label:"linkBox",value:!0},{label:"excerptLength",value:12},{label:"displayPostLink",value:!0},{label:"titleColor",value:"#ffffff"},{label:"metaColor",value:"#ffffff"},{label:"excerptColor",value:"#FFFFFFC2"},{label:"bgOverlayColor",value:"#000000"},{label:"overlayOpacity",value:40},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"displayPostImage",value:!0}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"left"},{label:"postsToShow",value:6},{label:"columns",value:3},{label:"autoplay",value:!0},{label:"imageBottomSpace",value:25},{label:"paddingTop",value:30},{label:"paddingBottom",value:30},{label:"paddingLeft",value:30},{label:"paddingRight",value:30},{label:"arrowDots",value:"arrows"},{label:"imgPosition",value:"top"},{label:"linkBox",value:!1},{label:"excerptLength",value:12},{label:"displayPostLink",value:!0},{label:"titleColor",value:""},{label:"metaColor",value:""},{label:"excerptColor",value:""},{label:"bgOverlayColor",value:""},{label:"overlayOpacity",value:60},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"autoplaySpeed",value:""},{label:"arrowSize",value:16},{label:"arrowBorderSize",value:2},{label:"displayPostImage",value:!0}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"align",value:"left"},{label:"postsToShow",value:6},{label:"columns",value:3},{label:"autoplay",value:!0},{label:"imageBottomSpace",value:25},{label:"paddingTop",value:35},{label:"paddingBottom",value:35},{label:"paddingLeft",value:35},{label:"paddingRight",value:35},{label:"arrowDots",value:"arrows_dots"},{label:"imgPosition",value:""},{label:"linkBox",value:!1},{label:"excerptLength",value:12},{label:"displayPostLink",value:!0},{label:"titleColor",value:"#000000"},{label:"metaColor",value:"#777777"},{label:"excerptColor",value:"#000000"},{label:"bgOverlayColor",value:""},{label:"overlayOpacity",value:60},{label:"rowGap",value:20},{label:"columnGap",value:20},{label:"bgType",value:"color"},{label:"autoplaySpeed",value:""},{label:"arrowSize",value:16},{label:"arrowBorderSize",value:2},{label:"displayPostImage",value:!1},{label:"titleBottomSpace",value:10},{label:"metaBottomSpace",value:23},{label:"excerptBottomSpace",value:25}],icon:' '}];var Yw=Object(F.applyFilters)("uag_post_carousel_presets",$w);const Kw=[{defaultAttributes:tt},{defaultPresetAttributes:[{label:"ctaBgHColor"},{label:"ctaColor"},{label:"ctaHColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];var Jw=Object(B.memo)(e=>{let{attributes:t}=e;const{titleFontFamily:a,titleFontWeight:l,titleLoadGoogleFonts:i,metaFontFamily:o,metaFontWeight:n,metaLoadGoogleFonts:r,excerptFontFamily:s,excerptFontWeight:c,excerptLoadGoogleFonts:u,ctaFontFamily:p,ctaFontWeight:d,ctaLoadGoogleFonts:b}=t;let g,m,y,f;if(!0===i){const e={google:{families:[a+(l?":"+l:"")]}};g=React.createElement(O,{config:e})}if(!0===r){const e={google:{families:[o+(n?":"+n:"")]}};m=React.createElement(O,{config:e})}if(!0===u){const e={google:{families:[s+(c?":"+c:"")]}};y=React.createElement(O,{config:e})}if(!0===b){const e={google:{families:[p+(d?":"+d:"")]}};f=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,g,m,y,f)}),Xw=Object(B.memo)(e=>{const{state:t,inspectorControls:a,togglePreview:l}=e;return React.createElement(React.Fragment,null,a,React.createElement(ge.BlockControls,null,(()=>{const{isEditing:e}=t;return React.createElement(Le.ToolbarGroup,{controls:[{icon:"edit",title:Object(r.__)("Edit","ultimate-addons-for-gutenberg"),onClick:()=>l(),isActive:e}]})})()))});const Qw=e=>{const{attributes:t,post:a}=e,l=t.titleTag,i=t.newTab?"_blank":"_self";return void 0===a.title?null:t.displayPostTitle?React.createElement(l,{className:"uagb-post__title uagb-post__text"},React.createElement("a",{href:a.link,target:i,rel:"noopener noreferrer"},Object(Zw.decodeEntities)(a.title.rendered.trim()))):null},eP=e=>{const{post:t,attributes:a,categoriesList:l}=e,i=Object(Ry.getSettings)().formats.date,o=l,n=t.categories,r=[];if(void 0!==o&&void 0!==n)for(let e=0;e{const{post:t,attributes:a}=e,l=a.newTab?"_blank":"_self";if(a.displayPostImage&&void 0!==t.uagb_featured_image_src&&a.imgSize&&t.uagb_featured_image_src[a.imgSize]||!0===a.displayPostImage&&"background"===a.imgPosition){const e=t.uagb_featured_image_src[a.imgSize];return React.createElement("div",{className:"uagb-post__image"},t.uagb_featured_image_src&&e&&e[0]&&React.createElement("a",{href:t.link,target:l,rel:"noopener noreferrer",className:Be()("post-grid"===a.blockName?"uagb-image-ratio-"+a.imageRatio:"")},React.createElement("img",{src:e[0],alt:Object(Zw.decodeEntities)(t.title.rendered.trim())||Object(r.__)("(Untitled)","ultimate-addons-for-gutenberg")})))}return null},aP=e=>{const{post:t,categoriesList:a,attributes:l}=e,{taxStyle:i,displayPostTaxonomy:o,displayPostTaxonomyAboveTitle:n,hideTaxonomyIcon:r,taxDivider:s}=l,c=a,u=t.categories,p=[];if(void 0!==c&&void 0!==u)for(let e=0;eu.map(t=>e.id===t&&React.createElement("span",{className:"uagb-post__taxonomy "+i},r&&"aboveTitle"===n&&React.createElement("span",{className:"dashicons-tag dashicons"}),e.name)))))},lP=e=>{const{post:t,attributes:a}=e;if(null===t.uagb_excerpt)return null;const l=t.uagb_excerpt.split(" ");let i=t.uagb_excerpt;const o=us(a.excerptLength,"excerptLength",a.blockName);return o>=l.length?i=t.uagb_excerpt:(i=l.slice(0,o).join(" "),i+=" ..."),a.displayPostExcerpt&&"excerpt"===a.displayPostContentRadio?React.createElement("div",{className:"uagb-post__excerpt uagb-post__text"},React.createElement("div",{dangerouslySetInnerHTML:{__html:i}})):a.displayPostExcerpt&&"full_post"===a.displayPostContentRadio?React.createElement("div",{className:"uagb-post__excerpt uagb-full_post uagb-post__text"},React.createElement("div",{dangerouslySetInnerHTML:{__html:t.content.raw.trim()}})):null},iP=e=>{const{attributes:t,post:a,setAttributes:l}=e,i=t.newTab?"_blank":"_self",o=t.inheritFromThemeBtn&&"secondary"===t.buttonType,n=o?{borderWidth:"revert-layer"}:{},s="uagb-text-link "+(o?"ast-outline-button":"wp-block-button__link");return t.displayPostLink?React.createElement("div",{className:"uagb-post__text"},React.createElement("div",{className:Be()("uagb-post__cta","wp-block-button")},React.createElement(ge.RichText,{value:t.ctaText?t.ctaText:Object(r.__)("Read More","ultimate-addons-for-gutenberg"),onChange:e=>l({ctaText:e}),className:Be()(s),href:a.link,target:i,style:n,rel:"noopener noreferrer"}))):null};function oP(){return(oP=Object.assign||function(e){for(var t=1;t{let{parentName:t="",parentClassName:a="",children:l}=e;const i={parentName:t,parentClassName:a};return React.createElement(nP.Provider,{value:i},l)},sP=[["uagb/post-image"],["uagb/post-taxonomy"],["uagb/post-title"],["uagb/post-meta"],["uagb/post-excerpt"],["uagb/post-button"]],cP=(e,t,a,l,i,o,n,r)=>{if(!a)return;const s=gP(e);let c=[];const u=function(a,u){let[p,d={}]=a,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(1===b&&"uagb/post-image"===p)return;if(0===b&&"uagb/post-image"!==p)return;d.children&&d.children.length>0&&(c=cP(e,t,d.children,l,i,o,n,r));const g=s[p];return g?React.createElement(B.Suspense,{key:u,fallback:React.createElement("div",{className:"wc-block-placeholder"})},React.createElement(g,oP({},d,{post:t,attributes:l,categoriesList:i,setAttributes:o}))):null},p=React.createElement(React.Fragment,null,a.map((e,t)=>{let[a,l={}]=e;return u([a,l],t,0)}),React.createElement("div",{className:"uag-post-grid-wrapper"},a.map((e,t)=>{let[a,l={}]=e;return u([a,l],t,1)}))),d=a.map((e,t)=>{let[a,l={}]=e;return u([a,l],t,null)});return r?p:d},uP={};function pP(e){e.context||(e.context="any"),bP(e,"context","string"),bP(e,"blockName","string"),dP(e,"component");const{context:t,blockName:a,component:l}=e;uP[t]||(uP[t]={}),uP[t][a]=l}const dP=(e,t)=>{if(e[t]){if("function"==typeof e[t])return;if(e[t].$$typeof&&e[t].$$typeof===Symbol.for("react.lazy"))return}throw new Error(`Incorrect value for the ${t} argument when registering a block component. Component must be a valid React Element or Lazy callback.`)},bP=(e,t,a)=>{const l=typeof e[t];if(l!==a)throw new Error(`Incorrect value for the ${t} argument when registering a block component. It was a ${l}, but must be a ${a}.`)};pP({blockName:"uagb/post-title",component:Qw}),pP({blockName:"uagb/post-image",component:tP}),pP({blockName:"uagb/post-taxonomy",component:aP}),pP({blockName:"uagb/post-meta",component:eP}),pP({blockName:"uagb/post-excerpt",component:lP}),pP({blockName:"uagb/post-button",component:iP});const gP=e=>{return{..."object"==typeof uP[t=e]&&Object.keys(uP[t]).length>0?uP[t]:{},...uP.any};var t},mP=e=>e&&0!==e.length?e.map(e=>[e.name,{...e.attributes,post:void 0,children:e.innerBlocks.length>0?mP(e.innerBlocks):[]}]):[];function yP(){return(yP=Object.assign||function(e){for(var t=1;t{setTimeout(()=>{if(null!=a&&a.current){var e,t;const l=null==a||null===(e=a.current)||void 0===e?void 0:e.offsetWidth,i=100-R/l*100,o=null==a||null===(t=a.current)||void 0===t?void 0:t.closest(".uagb-post__image-position-background");if(o){const e=null==o?void 0:o.getElementsByClassName("uagb-post__image");for(const t of e)t&&(t.style.width=i+"%",t.style.marginLeft=R/2+"px")}}},100)};Object(B.useEffect)(()=>{F()},[]),Object(B.useEffect)(()=>{F()},[e]),Object(B.useEffect)(()=>{F()},[a]),Object(B.useEffect)(()=>{F()},[d]);const j=o.length>x?o.slice(0,x):o;function z(){return React.createElement("button",{type:"button","data-role":"none",className:"slick-next slick-arrow","aria-label":"Next",tabIndex:"0",style:{borderColor:C,borderRadius:T,borderWidth:L}},se.carousel_right)}function D(){return React.createElement("button",{type:"button","data-role":"none",className:"slick-prev slick-arrow","aria-label":"Previous",tabIndex:"0",style:{borderColor:C,borderRadius:T,borderWidth:L}},se.carousel_left)}const N="dots"===S||"arrows_dots"===S,I="arrows"===S||"arrows_dots"===S,V=k?"uagb-post__carousel_equal-height":"";let W;switch(s){case"Tablet":W=G;break;case"Mobile":W=M;break;default:W=A}const q={slidesToShow:W,slidesToScroll:1,autoplaySpeed:U,autoplay:g,infinite:h,pauseOnHover:m,speed:E,arrows:I,dots:N,rtl:!1,afterChange:()=>{k&&uagb_carousel_height(n)},nextArrow:React.createElement(z,{arrowSize:O}),prevArrow:React.createElement(D,{arrowSize:O})},Z=j.map((t,l)=>React.createElement("article",{ref:a,key:l,className:"uagb-post__inner-wrap"},cP("uagb/post-carousel",t,w,e.attributes,e.categoriesList,r)));return A>=j.length?React.createElement("div",{className:Be()("is-carousel","uagb-post__columns-"+A,"uagb-post__columns-tablet-"+G,"uagb-post__columns-mobile-"+M,"uagb-post__items",i,"uagb-post-grid","uagb-post__arrow-outside","uagb-post__image-position-"+d,""+V,H,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+n),"data-blog-id":n},React.createElement(rP,{parentName:"uagb/post-carousel",parentClassName:"uagb-block-grid"},Z)):React.createElement(vS.a,yP({className:Be()("is-carousel","uagb-post__columns-"+A,"uagb-post__items",i,"uagb-post-grid","uagb-post__arrow-outside","uagb-slick-carousel","uagb-post__image-position-"+d,""+V,H,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+n),"data-blog-id":n,style:"dots"===S?{padding:"0 0 35px 0"}:{}},q),Z)})),vP=a(132),_P=0,TP={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},CP={};CP.locals=vP.a.locals||{},CP.use=function(){return _P++||(fP=we()(vP.a,TP)),CP},CP.unuse=function(){_P>0&&!--_P&&(fP(),fP=null)};var SP=CP,kP=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(SP.use(),()=>{SP.unuse()}),[]);const{state:t,setState:a,togglePreview:l,categoriesList:i,latestPosts:o,replaceInnerBlocks:n,block:s,clientId:c,attributes:u,deviceType:p,name:d,setAttributes:b,className:g}=e,m=React.createElement(hP,{attributes:u,className:g,latestPosts:o,block_id:u.block_id,categoriesList:i,deviceType:p,name:d,setAttributes:b});return React.createElement(React.Fragment,null,t.isEditing?(()=>{const e={template:u.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(gP("uagb/post-grid"))};return 0!==u.layoutConfig.length&&(e.renderAppender=!1),React.createElement(Le.Placeholder,{label:"Post Carousel Layout"},React.createElement("div",{className:"uagb-post-grid uagb-block-all-post-grid-item-template"},React.createElement(Le.Tip,null,Object(r.__)("Edit the blocks inside the preview below to change the content displayed for each post within the post carousel.","ultimate-addons-for-gutenberg")),React.createElement(rP,{parentName:"uagb/post-grid",parentClassName:"uagb-block-grid"},React.createElement("article",{className:"uagb-post__inner-wrap uagb-post__edit-mode"},React.createElement("div",{className:"uagb-post__text"},React.createElement(ge.InnerBlocks,e)))),React.createElement("div",{className:"uagb-block-all-post__actions"},React.createElement(Le.Button,{className:"uagb-block-all-post__done-button",isPrimary:!0,onClick:()=>{b({layoutConfig:mP(s)}),a({innerBlocks:s}),l()}},Object(r.__)("Done","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__cancel-button",isTertiary:!0,onClick:()=>{const{innerBlocks:e}=t;n(c,e),l()}},Object(r.__)("Cancel","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__reset-button",onClick:()=>{const e=[];sP.map(t=>{let[a,l]=t;return e.push(Object(de.createBlock)(a,l)),!0}),n(c,e),a({innerBlocks:s})}},Object(r.__)("Reset Layout","ultimate-addons-for-gutenberg")))))})():m)});function wP(){return(wP=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a,attributes:{align:l,displayPostTitle:i,displayPostDate:o,displayPostComment:s,displayPostExcerpt:c,displayPostAuthor:u,displayPostImage:p,displayPostTaxonomy:d,imgSize:b,imgPosition:g,displayPostLink:m,newTab:y,ctaText:f,columns:h,tcolumns:v,mcolumns:_,rowGap:T,rowGapTablet:C,rowGapMobile:S,bgType:w,bgColor:P,titleColor:x,titleTag:A,titleFontSize:G,titleFontSizeType:M,titleFontSizeMobile:R,titleFontSizeTablet:U,titleFontFamily:E,titleFontWeight:O,titleFontStyle:L,titleLineHeightType:H,titleLineHeight:F,titleLineHeightTablet:j,titleLineHeightMobile:z,titleLoadGoogleFonts:D,metaFontSize:N,metaFontSizeType:I,metaFontSizeMobile:V,metaFontSizeTablet:W,metaFontFamily:q,metaFontWeight:Z,metaFontStyle:$,metaLineHeightType:Y,metaLineHeight:K,metaLineHeightTablet:J,metaLineHeightMobile:X,metaLoadGoogleFonts:Q,excerptFontSize:ee,excerptFontSizeType:te,excerptFontSizeTablet:ae,excerptFontSizeMobile:le,excerptFontFamily:ie,excerptFontWeight:oe,excerptFontStyle:ne,excerptLineHeightType:re,excerptLineHeight:se,excerptLineHeightTablet:ce,excerptLineHeightMobile:ue,excerptLoadGoogleFonts:pe,ctaFontSize:de,ctaFontSizeType:be,ctaFontSizeTablet:ye,ctaFontSizeMobile:fe,ctaFontFamily:ve,ctaFontWeight:_e,ctaFontStyle:Te,ctaLineHeightType:Se,ctaLineHeight:ke,ctaLineHeightTablet:we,ctaLineHeightMobile:Pe,ctaLoadGoogleFonts:xe,metaColor:Ae,excerptColor:Ge,ctaColor:Me,ctaBgType:Re,ctaBgHType:Be,ctaBgColor:Ue,ctaHColor:Oe,ctaBgHColor:He,imageBottomSpace:Fe,imageBottomSpaceTablet:ze,imageBottomSpaceMobile:De,titleBottomSpace:Ne,titleBottomSpaceTablet:Ie,titleBottomSpaceMobile:Ve,metaBottomSpace:We,metaBottomSpaceTablet:qe,metaBottomSpaceMobile:Ze,excerptBottomSpace:$e,excerptBottomSpaceTablet:Ye,excerptBottomSpaceMobile:Ke,ctaBottomSpace:Je,ctaBottomSpaceTablet:Xe,ctaBottomSpaceMobile:Qe,autoplay:et,autoplaySpeed:tt,pauseOnHover:at,infiniteLoop:lt,transitionSpeed:it,arrowDots:ot,arrowSize:nt,arrowColor:rt,arrowBorderSize:st,arrowBorderRadius:ct,arrowDistance:ut,arrowDistanceTablet:pt,arrowDistanceMobile:dt,excerptLength:bt,overlayOpacity:gt,bgOverlayColor:mt,linkBox:yt,postDisplaytext:ft,displayPostContentRadio:ht,titleTransform:vt,metaTransform:_t,excerptTransform:Tt,ctaTransform:Ct,titleDecoration:St,metaDecoration:kt,excerptDecoration:wt,ctaDecoration:Pt,paddingBtnTopTablet:xt,paddingBtnRightTablet:At,paddingBtnBottomTablet:Gt,paddingBtnLeftTablet:Mt,paddingBtnTopMobile:Rt,paddingBtnRightMobile:Bt,paddingBtnBottomMobile:Ut,paddingBtnLeftMobile:Et,paddingBtnUnit:Ot,mobilePaddingBtnUnit:Lt,tabletPaddingBtnUnit:Ht,spacingLink:Ft,spacingLinkPadding:jt,contentPaddingUnit:zt,mobilePaddingUnit:Dt,tabletPaddingUnit:Nt,imageBottomSpaceUnit:It,titleBottomSpaceUnit:Vt,metaBottomSpaceUnit:Wt,ctaBottomSpaceUnit:qt,excerptBottomSpaceUnit:Zt,rowGapUnit:$t,taxStyle:Yt,taxDivider:Kt,displayPostTaxonomyAboveTitle:Jt,hideTaxonomyIcon:Xt,highlightedTextColor:Qt,highlightedTextBgColor:ea,titleLetterSpacing:ta,titleLetterSpacingTablet:aa,titleLetterSpacingMobile:la,titleLetterSpacingType:ia,metaLetterSpacing:oa,metaLetterSpacingTablet:na,metaLetterSpacingMobile:ra,metaLetterSpacingType:sa,excerptLetterSpacing:ca,excerptLetterSpacingTablet:ua,excerptLetterSpacingMobile:pa,excerptLetterSpacingType:da,ctaLetterSpacing:ba,ctaLetterSpacingTablet:ga,ctaLetterSpacingMobile:ma,ctaLetterSpacingType:ya,enableOffset:fa,dotsMarginTop:ha,dotsMarginTopTablet:va,dotsMarginTopMobile:_a,dotsMarginTopUnit:Ta,btnVPadding:Ca,btnHPadding:Sa,paddingBtnTop:ka,paddingBtnBottom:wa,paddingBtnRight:Pa,paddingBtnLeft:xa,contentPadding:Aa,contentPaddingMobile:Ga,contentPaddingTablet:Ma,paddingTop:Ra,paddingBottom:Ba,paddingLeft:Ua,paddingRight:Ea,paddingTopTablet:Oa,paddingRightTablet:La,paddingBottomTablet:Ha,paddingLeftTablet:Fa,paddingTopMobile:ja,paddingRightMobile:za,paddingBottomMobile:Da,paddingLeftMobile:Ia,columnGap:Va,columnGapTablet:Wa,columnGapMobile:qa,borderStyle:Za,borderWidth:$a,borderRadius:Ya,borderColor:Ka,borderHColor:Ja,btnBorderTopWidth:Xa,btnBorderLeftWidth:el,btnBorderRightWidth:al,btnBorderBottomWidth:ll,btnBorderTopLeftRadius:sl,btnBorderTopRightRadius:cl,btnBorderBottomLeftRadius:ul,btnBorderBottomRightRadius:pl,btnBorderColor:dl,btnBorderHColor:bl,btnBorderStyle:gl,blockName:ml,categories:yl,postsToShow:fl,postsOffset:vl,order:_l,orderBy:Tl,postType:Cl,taxonomyType:Sl,excludeCurrentPost:kl,allTaxonomyStore:wl,UAGHideDesktop:xl,UAGHideTab:Al,UAGHideMob:Gl,equalHeight:Ml,block_id:Rl,inheritFromThemeBtn:Bl,buttonType:Ul},setAttributes:El,deviceType:Ol,clientId:Ll}=e,[Hl,Fl]=Object(B.useState)({isEditing:!1,innerBlocks:[]}),[jl,zl]=Object(B.useState)(!1);Object(B.useEffect)(()=>{const{block:t}=e;Fl({innerBlocks:t}),Ca&&(void 0===ka&&El({paddingBtnTop:Ca}),void 0===wa&&El({paddingBtnBottom:Ca})),Sa&&(void 0===Pa&&El({paddingBtnRight:Sa}),void 0===xa&&El({paddingBtnLeft:Sa})),Aa&&(void 0===Ra&&El({paddingTop:Aa}),void 0===Ba&&El({paddingBottom:Aa}),void 0===Ea&&El({paddingRight:Aa}),void 0===Ua&&El({paddingLeft:Aa})),Ma&&(void 0===Oa&&El({paddingTopTablet:Ma}),void 0===Ha&&El({paddingBottomTablet:Ma}),void 0===La&&El({paddingRightTablet:Ma}),void 0===Fa&&El({paddingLeftTablet:Ma})),Ga&&(void 0===ja&&El({paddingTopMobile:Ga}),void 0===Da&&El({paddingBottomMobile:Ga}),void 0===za&&El({paddingRightMobile:Ga}),void 0===Ia&&El({paddingLeftMobile:Ga})),$a&&(void 0===Xa&&El({btnBorderTopWidth:$a}),void 0===el&&El({btnBorderLeftWidth:$a}),void 0===al&&El({btnBorderRightWidth:$a}),void 0===ll&&El({btnBorderBottomWidth:$a})),Ya&&(void 0===sl&&El({btnBorderTopLeftRadius:Ya}),void 0===cl&&El({btnBorderTopRightRadius:Ya}),void 0===ul&&El({btnBorderBottomLeftRadius:Ya}),void 0===pl&&El({btnBorderBottomRightRadius:Ya})),Ka&&void 0===dl&&El({btnBorderColor:Ka}),Ja&&void 0===bl&&El({btnBorderHColor:Ja}),Za&&void 0===gl&&El({btnBorderStyle:Za}),Va&&20!==Va&&El({dotsMarginTop:Va}),Wa&&El({dotsMarginTopTablet:Wa}),qa&&El({dotsMarginTopMobile:qa})},[]),Object(B.useEffect)(()=>{Ml?uagb_carousel_height(Rl):uagb_carousel_unset_height(Rl)},[a,Ol]);const Dl=uagb_blocks_info.current_theme,Nl=uagb_blocks_info.is_astra_based_theme;let Il=Object(B.useMemo)(()=>qw(a,0,Ol),[a,Ol]);Il+=".uagb-block-"+Rl+".uagb-post-grid ul.slick-dots li.slick-active button:before, .uagb-block-"+Rl+".uagb-slick-carousel ul.slick-dots li button:before { color: "+a.arrowColor+"; }",Object(B.useEffect)(()=>{ys()},[Ol]),Object(B.useEffect)(()=>{he(e)},[xl,Al,Gl,Ol]);let Vl=[];const{latestPosts:Wl,taxonomyList:ql,block:Zl}=Object(n.useSelect)(e=>{const{getEntityRecords:t}=e("core");wl||jl||(zl(!0),k()({path:"/spectra/v1/all_taxonomy"}).then(e=>{El({allTaxonomyStore:e}),zl(!1)}));const a=wl?wl[Cl]:void 0;let l="";void 0!==a&&(void 0!==a.taxonomy[Sl]&&(l=!1===a.taxonomy[Sl].rest_base||null===a.taxonomy[Sl].rest_base?a.taxonomy[Sl].name:a.taxonomy[Sl].rest_base),""!==Sl&&void 0!==a.terms&&void 0!==a.terms[Sl]&&(Vl=a.terms[Sl]));const i={order:_l,orderby:Tl,per_page:us(fl,"postsToShow",ml),offset:us(vl,"postsOffset",ml)};if(kl){const t=e("core/editor");i.exclude=null!=t&&t.getCurrentPostId?t.getCurrentPostId():null}const o=[],n=parseInt(yl);o.push(n);const r=Vl.length;for(let e=0;e{o.push(e)});const{getBlocks:s}=e("core/block-editor");return void 0!==yl&&""!==yl&&(i[l]=void 0===yl||""===yl?yl:o),{latestPosts:t("postType",Cl,i),categoriesList:Vl,taxonomyList:void 0!==a?a.taxonomy:[],block:s(Ll)}}),{replaceInnerBlocks:$l}=Object(n.useDispatch)("core/block-editor"),Yl=us(h,"columns",ml),Kl=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],Jl=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],Xl=[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}];ql&&Object.keys(ql).map(e=>Kl.push({value:ql[e].name,label:Object(Zw.decodeEntities)(ql[e].label)})),Vl&&Object.keys(Vl).map(e=>Jl.push({value:Vl[e].id,label:Object(Zw.decodeEntities)(Vl[e].name)}));const Ql=()=>{Fl({isEditing:!Hl.isEditing}),Hl.isEditing||Object(r.__)("Showing All Post Grid Layout.","ultimate-addons-for-gutenberg")},ei=Array.isArray(Wl)&&Wl.length,ti=React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:El,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:l,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:Cl},onChange:e=>{El({postType:e}),El({categories:""}),El({taxonomyType:"category"})},options:uagb_blocks_info.post_types}),""!==ql&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:Sl},onChange:e=>{El({taxonomyType:e}),El({categories:""})},options:Kl}),""!=Vl&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:ql[Sl].label,data:{value:yl,label:"categories"},setAttributes:El,options:Jl})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Exclude Current Post","ultimate-addons-for-gutenberg"),checked:kl,onChange:()=>El({excludeCurrentPost:!kl})}),React.createElement(Ks,{label:Object(r.__)("Posts Per Page","ultimate-addons-for-gutenberg"),setAttributes:El,value:fl,data:{value:fl,label:"postsToShow"},min:1,max:100,displayUnit:!1,showControlHeader:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Offset Starting Post","ultimate-addons-for-gutenberg"),checked:fa,onChange:e=>{El({enableOffset:e})},help:React.createElement(React.Fragment,null,!fa&&Object(r.__)("Note: The offset will skip the number of posts set, and will use the next post as the starting post.","ultimate-addons-for-gutenberg"))}),fa&&React.createElement(Ks,{label:Object(r.__)("Offset By","ultimate-addons-for-gutenberg"),setAttributes:El,value:vl,data:{value:vl,label:"postsOffset"},min:0,max:100,displayUnit:!1,help:React.createElement(React.Fragment,null,fa&&Object(r.__)("Note: The offset will skip the number of posts set, and will use the next post as the starting post.","ultimate-addons-for-gutenberg"))}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Order By","ultimate-addons-for-gutenberg"),data:{value:Tl,label:"orderBy"},options:[{value:"date",label:Object(r.__)("Date","ultimate-addons-for-gutenberg")},{value:"title",label:Object(r.__)("Title","ultimate-addons-for-gutenberg")},{value:"rand",label:Object(r.__)("Random","ultimate-addons-for-gutenberg")},{value:"menu_order",label:Object(r.__)("Menu Order","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Order","ultimate-addons-for-gutenberg"),data:{value:_l,label:"order"},options:[{value:"desc",label:Object(r.__)("Descending","ultimate-addons-for-gutenberg")},{value:"asc",label:Object(r.__)("Ascending","ultimate-addons-for-gutenberg")}]}),React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"columns"},tablet:{value:v,label:"tcolumns"},mobile:{value:_,label:"mcolumns"}},min:1,max:8,displayUnit:!1,setAttributes:El}),Yl>1&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:Ml,onChange:()=>El({equalHeight:!Ml}),help:Object(r.__)("Note: Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),React.createElement("h2",null,Object(r.__)("If Posts Not Found","ultimate-addons-for-gutenberg")),React.createElement(Ss,{autoComplete:"off",label:Object(r.__)("Display Message","ultimate-addons-for-gutenberg"),value:ft,data:{value:ft,label:"postDisplaytext"},setAttributes:El,onChange:e=>El({postDisplaytext:e})})),React.createElement(je,{title:Object(r.__)("Carousel","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Pause On Hover","ultimate-addons-for-gutenberg"),checked:at,onChange:()=>El({pauseOnHover:!at})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:et,onChange:()=>El({autoplay:!et})}),!0===et&&React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),value:tt,data:{value:tt,label:"autoplaySpeed"},setAttributes:El,displayUnit:!1,min:100,max:5e3}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Loop","ultimate-addons-for-gutenberg"),checked:lt,onChange:()=>El({infiniteLoop:!lt})}),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:El,displayUnit:!1,value:it,data:{value:it,label:"transitionSpeed"},min:100,max:5e3}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Arrows & Dots Type","ultimate-addons-for-gutenberg"),data:{value:ot,label:"arrowDots"},options:[{value:"arrows",label:Object(r.__)("Arrows","ultimate-addons-for-gutenberg")},{value:"dots",label:Object(r.__)("Dots","ultimate-addons-for-gutenberg")},{value:"arrows_dots",label:Object(r.__)("Both","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Featured Image","ultimate-addons-for-gutenberg"),checked:p,onChange:()=>El({displayPostImage:!p})}),!0===p&&React.createElement(Pi,{label:Object(r.__)("Sizes","ultimate-addons-for-gutenberg"),data:{value:b,label:"imgSize"},setAttributes:El,options:uagb_blocks_info.image_sizes}),!0===p&&React.createElement(Na,{setAttributes:El,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:g,label:"imgPosition"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"background",label:Object(r.__)("Background","ultimate-addons-for-gutenberg")}]}),!0===p&&"background"===g&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Link Complete Box","ultimate-addons-for-gutenberg"),checked:yt,onChange:()=>El({linkBox:!yt})})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Title","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>El({displayPostTitle:!i})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Author","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>El({displayPostAuthor:!u})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Date","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>El({displayPostDate:!o})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Comment","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>El({displayPostComment:!s})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Taxonomy","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>El({displayPostTaxonomy:!d})}),d&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:El,label:Object(r.__)("Taxonomy Position","ultimate-addons-for-gutenberg"),data:{value:Jt,label:"displayPostTaxonomyAboveTitle"},options:[{value:"withMeta",label:Object(r.__)("With Meta","ultimate-addons-for-gutenberg")},{value:"aboveTitle",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")}]}),"aboveTitle"===Jt&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:El,label:Object(r.__)("Taxonomy Style","ultimate-addons-for-gutenberg"),data:{value:Yt,label:"taxStyle"},options:[{value:"default",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"highlighted",label:Object(r.__)("Highlighted","ultimate-addons-for-gutenberg")}]}),"default"===Yt&&React.createElement(Ss,{label:Object(r.__)("Taxonomy Divider","ultimate-addons-for-gutenberg"),value:Kt,data:{value:Kt,label:"taxDivider"},setAttributes:El,onChange:e=>El({taxDivider:e})}))),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Meta Icon","ultimate-addons-for-gutenberg"),checked:Xt,onChange:()=>El({hideTaxonomyIcon:!Xt})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Excerpt","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>El({displayPostExcerpt:!c})}),c&&React.createElement(Na,{setAttributes:El,label:Object(r.__)("Show:","ultimate-addons-for-gutenberg"),data:{value:ht,label:"displayPostContentRadio"},options:[{label:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg"),value:"excerpt"},{label:Object(r.__)("Full post","ultimate-addons-for-gutenberg"),value:"full_post"}]}),c&&"excerpt"===ht&&React.createElement(Qa,{label:Object(r.__)("Max number of words in excerpt","ultimate-addons-for-gutenberg"),setAttributes:El,value:bt,data:{value:bt,label:"excerptLength"},min:1,max:100,displayUnit:!1})),React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Read More Link","ultimate-addons-for-gutenberg"),checked:m,onChange:()=>El({displayPostLink:!m})}),m&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Bl,onChange:()=>El({inheritFromThemeBtn:!Bl}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Bl&&("Astra"===Dl||Nl)&&React.createElement(Na,{setAttributes:El,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ul,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open Links in New Tab","ultimate-addons-for-gutenberg"),checked:y,onChange:()=>El({newTab:!y})}),React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:f,data:{value:f,label:"ctaText"},setAttributes:El,onChange:e=>El({ctaText:e})}),!Bl&&React.createElement(Hr,{setAttributes:El,presets:Kw,presetInputType:"radioImage"}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:El,presets:Yw,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:El,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),value:w,data:{value:w,label:"bgType"},className:"uagb-multi-button-alignment-control",options:Xl}),"color"===w&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:P,data:{value:P,label:"bgColor"},setAttributes:El}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:T,label:"rowGap"},tablet:{value:C,label:"rowGapTablet"},mobile:{value:S,label:"rowGapMobile"}},min:0,max:50,unit:{value:$t,label:"rowGapUnit"},setAttributes:El}),React.createElement(Pl,wP({},e,{label:Object(r.__)("Content Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Ra,label:"paddingTop"},valueRight:{value:Ea,label:"paddingRight"},valueBottom:{value:Ba,label:"paddingBottom"},valueLeft:{value:Ua,label:"paddingLeft"},valueTopTablet:{value:Oa,label:"paddingTopTablet"},valueRightTablet:{value:La,label:"paddingRightTablet"},valueBottomTablet:{value:Ha,label:"paddingBottomTablet"},valueLeftTablet:{value:Fa,label:"paddingLeftTablet"},valueTopMobile:{value:ja,label:"paddingTopMobile"},valueRightMobile:{value:za,label:"paddingRightMobile"},valueBottomMobile:{value:Da,label:"paddingBottomMobile"},valueLeftMobile:{value:Ia,label:"paddingLeftMobile"},unit:{value:zt,label:"contentPaddingUnit"},mUnit:{value:Dt,label:"mobilePaddingUnit"},tUnit:{value:Nt,label:"tabletPaddingUnit"},deviceType:Ol,attributes:a,setAttributes:El,link:{value:jt,label:"spacingLinkPadding"}}))),i&&React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:El,label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:A,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x,data:{value:x,label:"titleColor"},setAttributes:El}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:D,label:"titleLoadGoogleFonts"},fontFamily:{value:E,label:"titleFontFamily"},fontWeight:{value:O,label:"titleFontWeight"},fontStyle:{value:L,label:"titleFontStyle"},fontSizeType:{value:M,label:"titleFontSizeType"},fontSize:{value:G,label:"titleFontSize"},fontSizeMobile:{value:R,label:"titleFontSizeMobile"},fontSizeTablet:{value:U,label:"titleFontSizeTablet"},lineHeightType:{value:H,label:"titleLineHeightType"},lineHeight:{value:F,label:"titleLineHeight"},lineHeightMobile:{value:z,label:"titleLineHeightMobile"},lineHeightTablet:{value:j,label:"titleLineHeightTablet"},letterSpacing:{value:ta,label:"titleLetterSpacing"},letterSpacingTablet:{value:aa,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:la,label:"titleLetterSpacingMobile"},letterSpacingType:{value:ia,label:"titleLetterSpacingType"},transform:{value:vt,label:"titleTransform"},decoration:{value:St,label:"titleDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ne,label:"titleBottomSpace"},tablet:{value:Ie,label:"titleBottomSpaceTablet"},mobile:{value:Ve,label:"titleBottomSpaceMobile"}},min:0,max:50,unit:{value:Vt,label:"titleBottomSpaceUnit"},setAttributes:El})),(u||o||s||d)&&React.createElement(je,{title:Object(r.__)("Meta","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ae,data:{value:Ae,label:"metaColor"},setAttributes:El}),"aboveTitle"===Jt&&"highlighted"===Yt&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Taxonomy Text Color","ultimate-addons-for-gutenberg"),colorValue:Qt,data:{value:Qt,label:"highlightedTextColor"},setAttributes:El}),React.createElement(hl,{label:Object(r.__)("Highlighted Color","ultimate-addons-for-gutenberg"),colorValue:ea,data:{value:ea,label:"highlightedTextBgColor"},setAttributes:El})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:Q,label:"metaLoadGoogleFonts"},fontFamily:{value:q,label:"metaFontFamily"},fontWeight:{value:Z,label:"metaFontWeight"},fontStyle:{value:$,label:"metaFontStyle"},fontSizeType:{value:I,label:"metaFontSizeType"},fontSize:{value:N,label:"metaFontSize"},fontSizeMobile:{value:V,label:"metaFontSizeMobile"},fontSizeTablet:{value:W,label:"metaFontSizeTablet"},lineHeightType:{value:Y,label:"metaLineHeightType"},lineHeight:{value:K,label:"metaLineHeight"},lineHeightMobile:{value:X,label:"metaLineHeightMobile"},lineHeightTablet:{value:J,label:"metaLineHeightTablet"},letterSpacing:{value:oa,label:"metaLetterSpacing"},letterSpacingTablet:{value:na,label:"metaLetterSpacingTablet"},letterSpacingMobile:{value:ra,label:"metaLetterSpacingMobile"},letterSpacingType:{value:sa,label:"metaLetterSpacingType"},transform:{value:_t,label:"metaTransform"},decoration:{value:kt,label:"metaDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:We,label:"metaBottomSpace"},tablet:{value:qe,label:"metaBottomSpaceTablet"},mobile:{value:Ze,label:"metaBottomSpaceMobile"}},min:0,max:50,unit:{value:Wt,label:"metaBottomSpaceUnit"},setAttributes:El})),c&&React.createElement(je,{title:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ge,data:{value:Ge,label:"excerptColor"},setAttributes:El}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:pe,label:"excerptLoadGoogleFonts"},fontFamily:{value:ie,label:"excerptFontFamily"},fontWeight:{value:oe,label:"excerptFontWeight"},fontStyle:{value:ne,label:"excerptFontStyle"},fontSizeType:{value:te,label:"excerptFontSizeType"},fontSize:{value:ee,label:"excerptFontSize"},fontSizeMobile:{value:le,label:"excerptFontSizeMobile"},fontSizeTablet:{value:ae,label:"excerptFontSizeTablet"},lineHeightType:{value:re,label:"excerptLineHeightType"},lineHeight:{value:se,label:"excerptLineHeight"},lineHeightMobile:{value:ue,label:"excerptLineHeightMobile"},lineHeightTablet:{value:ce,label:"excerptLineHeightTablet"},letterSpacing:{value:ca,label:"excerptLetterSpacing"},letterSpacingTablet:{value:ua,label:"excerptLetterSpacingTablet"},letterSpacingMobile:{value:pa,label:"excerptLetterSpacingMobile"},letterSpacingType:{value:da,label:"excerptLetterSpacingType"},transform:{value:Tt,label:"excerptTransform"},decoration:{value:wt,label:"excerptDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:$e,label:"excerptBottomSpace"},tablet:{value:Ye,label:"excerptBottomSpaceTablet"},mobile:{value:Ke,label:"excerptBottomSpaceMobile"}},min:0,max:50,unit:{value:Zt,label:"excerptBottomSpaceUnit"},setAttributes:El})),m&&React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},!Bl&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Me,data:{value:Me,label:"ctaColor"},setAttributes:El}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Re,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:Xl}),"color"===Re&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Ue,data:{value:Ue,label:"ctaBgColor"},setAttributes:El})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Oe,data:{value:Oe,label:"ctaHColor"},setAttributes:El}),React.createElement(Na,{setAttributes:El,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Be,label:"ctaBgHType"},className:"uagb-multi-button-alignment-control",options:Xl}),"color"===Be&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:He,data:{value:He,label:"ctaBgHColor"},setAttributes:El})),disableBottomSeparator:!1}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:El,loadGoogleFonts:{value:xe,label:"ctaLoadGoogleFonts"},fontFamily:{value:ve,label:"ctaFontFamily"},fontWeight:{value:_e,label:"ctaFontWeight"},fontStyle:{value:Te,label:"ctaFontStyle"},fontSizeType:{value:be,label:"ctaFontSizeType"},fontSize:{value:de,label:"ctaFontSize"},fontSizeMobile:{value:fe,label:"ctaFontSizeMobile"},fontSizeTablet:{value:ye,label:"ctaFontSizeTablet"},lineHeightType:{value:Se,label:"ctaLineHeightType"},lineHeight:{value:ke,label:"ctaLineHeight"},lineHeightMobile:{value:Pe,label:"ctaLineHeightMobile"},lineHeightTablet:{value:we,label:"ctaLineHeightTablet"},letterSpacing:{value:ba,label:"ctaLetterSpacing"},letterSpacingTablet:{value:ga,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:ma,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:ya,label:"ctaLetterSpacingType"},transform:{value:Ct,label:"ctaTransform"},decoration:{value:Pt,label:"ctaDecoration"}}),React.createElement(Hi,{setAttributes:El,prefix:"btn",attributes:a,deviceType:Ol,disabledBorderTitle:!1}),React.createElement(Pl,wP({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ka,label:"paddingBtnTop"},valueRight:{value:Pa,label:"paddingBtnRight"},valueBottom:{value:wa,label:"paddingBtnBottom"},valueLeft:{value:xa,label:"paddingBtnLeft"},valueTopTablet:{value:xt,label:"paddingBtnTopTablet"},valueRightTablet:{value:At,label:"paddingBtnRightTablet"},valueBottomTablet:{value:Gt,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:Mt,label:"paddingBtnLeftTablet"},valueTopMobile:{value:Rt,label:"paddingBtnTopMobile"},valueRightMobile:{value:Bt,label:"paddingBtnRightMobile"},valueBottomMobile:{value:Ut,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:Et,label:"paddingBtnLeftMobile"},unit:{value:Ot,label:"paddingBtnUnit"},mUnit:{value:Lt,label:"mobilePaddingBtnUnit"},tUnit:{value:Ht,label:"tabletPaddingBtnUnit"},deviceType:Ol,attributes:a,setAttributes:El,link:{value:Ft,label:"spacingLink"}}))),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Je,label:"ctaBottomSpace"},tablet:{value:Xe,label:"ctaBottomSpaceTablet"},mobile:{value:Qe,label:"ctaBottomSpaceMobile"}},min:0,max:300,unit:{value:qt,label:"ctaBottomSpaceUnit"},setAttributes:El})),p&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},"background"===g&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Overlay Color","ultimate-addons-for-gutenberg"),colorValue:mt,data:{value:mt,label:"bgOverlayColor"},setAttributes:El}),React.createElement(Qa,{label:Object(r.__)("Overlay Opacity","ultimate-addons-for-gutenberg"),setAttributes:El,value:gt,data:{value:gt,label:"overlayOpacity"},min:0,max:100,displayUnit:!1})),"top"===g&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Fe,label:"imageBottomSpace"},tablet:{value:ze,label:"imageBottomSpaceTablet"},mobile:{value:De,label:"imageBottomSpaceMobile"}},min:0,max:50,unit:{value:It,label:"imageBottomSpaceUnit"},setAttributes:El})),React.createElement(je,{title:Object(r.__)("Arrow and Dots","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:rt,data:{value:rt,label:"arrowColor"},setAttributes:El}),"dots"!==ot&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),value:nt,data:{value:nt,label:"arrowSize"},min:0,max:50,setAttributes:El,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Border Size","ultimate-addons-for-gutenberg"),value:st,data:{value:st,label:"arrowBorderSize"},min:0,max:50,setAttributes:El,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),setAttributes:El,displayUnit:!1,value:ct,data:{value:ct,label:"arrowBorderRadius"},min:0,max:50}),React.createElement(tl,{label:Object(r.__)("Arrow Distance from Edges","ultimate-addons-for-gutenberg"),data:{desktop:{value:ut,label:"arrowDistance"},tablet:{value:pt,label:"arrowDistanceTablet"},mobile:{value:dt,label:"arrowDistanceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:El}),React.createElement(tl,{label:Object(r.__)("Top Margin for Dots","ultimate-addons-for-gutenberg"),data:{desktop:{value:ha,label:"dotsMarginTop"},tablet:{value:va,label:"dotsMarginTopTablet"},mobile:{value:_a,label:"dotsMarginTopMobile"}},min:1,max:50,unit:{value:Ta,label:"dotsMarginTopUnit"},setAttributes:El})))),React.createElement(il,wP({},rl,{parentProps:e}))));return ei?React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:Il}),React.createElement(Jw,{attributes:a}),t&&React.createElement(Xw,wP({state:Hl,togglePreview:Ql,inspectorControls:ti},e)),React.createElement(kP,wP({},e,{state:Hl,setState:Fl,togglePreview:Ql,latestPosts:Wl,categoriesList:Vl,replaceInnerBlocks:$l,block:Zl}))):React.createElement(React.Fragment,null,ti,React.createElement(Le.Placeholder,{icon:"admin-post",label:Object(r.__)("Post Carousel","ultimate-addons-for-gutenberg")},Array.isArray(Wl)?ft:React.createElement(Le.Spinner,null)))});a(74);let xP={};xP=Object(F.applyFilters)("uagb/post-carousel",ss(xP)),Object(de.registerBlockType)("uagb/post-carousel",{...xP,title:Object(r.__)("Post Carousel","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your posts in a sliding carousel layout.","ultimate-addons-for-gutenberg"),icon:se.post_carousel,category:uagb_blocks_info.category,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("carousel","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"post-carousel"}):React.createElement(PP,e),save:()=>null});const AP=[{defaultAttributes:Qe},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '}],GP=[{defaultAttributes:Qe},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:15},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowPositionHover",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowPositionHover",value:"outset"}],icon:' '}],MP=[{defaultAttributes:Qe},{defaultPresetAttributes:[{label:"ctaBgHColor"},{label:"ctaColor"},{label:"ctaHColor"},{label:"btnBorderStyle"},{label:"btnBorderTopLeftRadius"},{label:"btnBorderTopRightRadius"},{label:"btnBorderBottomLeftRadius"},{label:"btnBorderBottomRightRadius"},{label:"btnBorderBottomWidthDesktop"},{label:"btnBorderTopWidthDesktop"},{label:"btnBorderLeftWidthDesktop"},{label:"btnBorderRightWidthDesktop"}]},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"color"},{label:"btnBorderStyle",value:"none"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:0},{label:"btnBorderTopRightRadius",value:0},{label:"btnBorderBottomLeftRadius",value:0},{label:"btnBorderBottomRightRadius",value:0},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:5},{label:"btnBorderTopRightRadius",value:5},{label:"btnBorderBottomLeftRadius",value:5},{label:"btnBorderBottomRightRadius",value:5},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"ctaBgType",value:"transparent"},{label:"ctaBgHColor",value:"#3a3a3a"},{label:"ctaColor",value:"#0170b9"},{label:"ctaHColor",value:"#ffffff"},{label:"btnBorderStyle",value:"solid"},{label:"btnBorderTopLeftRadius",value:30},{label:"btnBorderTopRightRadius",value:30},{label:"btnBorderBottomLeftRadius",value:30},{label:"btnBorderBottomRightRadius",value:30},{label:"btnBorderBottomWidth",value:1},{label:"btnBorderTopWidth",value:1},{label:"btnBorderLeftWidth",value:1},{label:"btnBorderRightWidth",value:1}],icon:' '}];function RP(){return(RP=Object.assign||function(e){for(var t=1;t{const{categoriesList:t,latestPosts:a,taxonomyList:l}=e,{attributes:i,setAttributes:o,deviceType:n}=e,{block_id:s,displayPostTitle:c,displayPostDate:u,displayPostComment:p,displayPostExcerpt:d,displayPostAuthor:b,displayPostImage:g,displayPostTaxonomy:m,imgSize:y,imgPosition:f,displayPostLink:h,newTab:v,ctaText:_,align:T,columns:C,tcolumns:S,mcolumns:k,order:w,orderBy:P,categories:x,postsToShow:A,rowGap:G,rowGapTablet:M,rowGapMobile:R,columnGap:B,columnGapTablet:U,columnGapMobile:E,bgColor:O,contentPaddingUnit:L,titleColor:H,titleTag:F,titleFontSize:j,titleFontSizeType:z,titleFontSizeMobile:D,titleFontSizeTablet:N,titleFontFamily:I,titleFontWeight:V,titleFontStyle:W,titleLineHeightType:q,titleLineHeight:Z,titleLineHeightTablet:$,titleLineHeightMobile:Y,titleLoadGoogleFonts:K,metaFontSize:J,metaFontSizeType:X,metaFontSizeMobile:Q,metaFontSizeTablet:ee,metaFontFamily:te,metaFontWeight:ae,metaFontStyle:le,metaLineHeightType:ie,metaLineHeight:oe,metaLineHeightTablet:ne,metaLineHeightMobile:re,metaLoadGoogleFonts:se,excerptFontSize:ce,excerptFontSizeType:ue,excerptFontSizeTablet:pe,excerptFontSizeMobile:de,excerptFontFamily:be,excerptFontWeight:me,excerptFontStyle:ye,excerptLineHeightType:fe,excerptLineHeight:he,excerptLineHeightTablet:ve,excerptLineHeightMobile:_e,excerptLoadGoogleFonts:Te,ctaFontSize:Se,ctaFontSizeType:ke,ctaFontSizeTablet:we,ctaFontSizeMobile:Pe,ctaFontFamily:xe,ctaFontWeight:Ae,ctaFontStyle:Ge,ctaLineHeightType:Me,ctaLineHeight:Re,ctaLineHeightTablet:Be,ctaLineHeightMobile:Ue,ctaLoadGoogleFonts:Oe,metaColor:He,excerptColor:Fe,ctaColor:ze,ctaBgType:De,ctaBgHType:Ne,ctaBgColor:Ie,ctaHColor:Ve,ctaBgHColor:We,imageBottomSpace:qe,imageBottomSpaceTablet:Ze,imageBottomSpaceMobile:$e,titleBottomSpace:Ye,titleBottomSpaceTablet:Ke,titleBottomSpaceMobile:Je,metaBottomSpace:Xe,metaBottomSpaceTablet:Qe,metaBottomSpaceMobile:et,excerptBottomSpace:tt,excerptBottomSpaceTablet:at,excerptBottomSpaceMobile:lt,excerptBottomSpaceUnit:it,ctaBottomSpace:ot,ctaBottomSpaceTablet:nt,ctaBottomSpaceMobile:rt,equalHeight:st,excerptLength:ct,overlayOpacity:ut,bgOverlayColor:pt,linkBox:dt,postType:bt,taxonomyType:gt,postPagination:mt,pageLimit:yt,paginationColor:ft,paginationBgColor:ht,paginationActiveColor:vt,paginationBgActiveColor:_t,paginationLayout:Tt,paginationBorderSize:Ct,paginationBorderRadius:St,paginationBorderColor:kt,paginationBorderActiveColor:wt,paginationSpacing:Pt,paginationSpacingUnit:xt,paginationAlignment:At,paginationPrevText:Gt,paginationNextText:Mt,postDisplaytext:Rt,displayPostContentRadio:Bt,excludeCurrentPost:Ut,rowGapUnit:Et,columnGapUnit:Ot,imageBottomSpaceUnit:Lt,titleBottomSpaceUnit:Ht,metaBottomSpaceUnit:Ft,ctaBottomSpaceUnit:jt,titleTransform:zt,metaTransform:Dt,excerptTransform:Nt,ctaTransform:It,titleDecoration:Vt,metaDecoration:Wt,excerptDecoration:qt,ctaDecoration:Zt,paddingBtnTop:$t,paddingBtnBottom:Yt,paddingBtnLeft:Kt,paddingBtnRight:Jt,paddingBtnTopTablet:Xt,paddingBtnRightTablet:Qt,paddingBtnBottomTablet:ea,paddingBtnLeftTablet:ta,paddingBtnTopMobile:aa,paddingBtnRightMobile:la,paddingBtnBottomMobile:ia,paddingBtnLeftMobile:oa,paddingBtnUnit:na,mobilePaddingBtnUnit:ra,tabletPaddingBtnUnit:sa,spacingLink:ca,spacingLinkPadding:ua,paddingTop:pa,paddingBottom:da,paddingLeft:ba,paddingRight:ga,paddingTopTablet:ma,paddingRightTablet:ya,paddingBottomTablet:fa,paddingLeftTablet:ha,paddingTopMobile:va,paddingRightMobile:_a,paddingBottomMobile:Ta,paddingLeftMobile:Ca,mobilePaddingUnit:Sa,tabletPaddingUnit:ka,postsOffset:wa,taxStyle:Pa,taxDivider:xa,displayPostTaxonomyAboveTitle:Aa,hideTaxonomyIcon:Ga,highlightedTextColor:Ma,highlightedTextBgColor:Ra,titleLetterSpacing:Ba,titleLetterSpacingTablet:Ua,titleLetterSpacingMobile:Ea,titleLetterSpacingType:Oa,metaLetterSpacing:La,metaLetterSpacingTablet:Ha,metaLetterSpacingMobile:Fa,metaLetterSpacingType:ja,excerptLetterSpacing:za,excerptLetterSpacingTablet:Da,excerptLetterSpacingMobile:Ia,excerptLetterSpacingType:Va,ctaLetterSpacing:Wa,ctaLetterSpacingTablet:qa,ctaLetterSpacingMobile:Za,ctaLetterSpacingType:$a,useSeparateBoxShadows:Ya,boxShadowColor:Ka,boxShadowHOffset:Ja,boxShadowVOffset:Xa,boxShadowBlur:el,boxShadowSpread:al,boxShadowPosition:ll,boxShadowColorHover:sl,boxShadowHOffsetHover:cl,boxShadowVOffsetHover:ul,boxShadowBlurHover:pl,boxShadowSpreadHover:dl,boxShadowPositionHover:bl,enableOffset:gl,equalHeightInlineButtons:ml,imageRatio:yl,imgEqualHeight:fl,paginationType:_l,inheritFromThemeBtn:Tl,buttonType:Cl,wrapperTopPadding:Sl,wrapperRightPadding:kl,wrapperLeftPadding:wl,wrapperBottomPadding:xl,wrapperTopPaddingTablet:Al,wrapperRightPaddingTablet:Gl,wrapperLeftPaddingTablet:Ml,wrapperBottomPaddingTablet:Rl,wrapperTopPaddingMobile:Bl,wrapperRightPaddingMobile:Ul,wrapperLeftPaddingMobile:El,wrapperBottomPaddingMobile:Ol,wrapperPaddingUnit:Ll,wrapperPaddingUnitTablet:Hl,wrapperPaddingUnitMobile:Fl,wrapperPaddingLink:jl,wrapperAlign:zl,wrapperAlignPosition:Dl,isLeftToRightLayout:Nl}=i,Il=uagb_blocks_info.current_theme,Vl=uagb_blocks_info.is_astra_based_theme,Wl=e=>{o({imgEqualHeight:e}),o(e?{imageRatio:"2-3"}:{imageRatio:"inherit"})},ql=e=>{o({postType:e}),o({categories:""}),o({taxonomyType:"category"})},Zl=e=>{o({taxonomyType:e}),o({categories:""})},$l=e=>{o({postPagination:e}),o({paginationMarkup:"empty"})},Yl=e=>{o({enableOffset:e}),o({postPagination:!e})},Kl=e=>{o({postsToShow:e}),o({paginationMarkup:"empty"})},Jl=e=>{o({postsOffset:e}),o({paginationMarkup:"empty"})},Xl=e=>{o({pageLimit:e}),o({paginationMarkup:"empty"})},Ql=e=>{o({paginationPrevText:e}),o({paginationMarkup:"empty"})},ei=e=>{o({paginationNextText:e}),o({paginationMarkup:"empty"})},ti=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],ai=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}],li=[{value:"transparent",label:Object(r.__)("Transparent","ultimate-addons-for-gutenberg")},{value:"color",label:Object(r.__)("Color","ultimate-addons-for-gutenberg")}];l&&Object.keys(l).map(e=>ti.push({value:l[e].name,label:Object(Zw.decodeEntities)(l[e].label)})),t&&Object.keys(t).map(e=>ai.push({value:t[e].id,label:Object(Zw.decodeEntities)(t[e].name)}));const ii=()=>React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:o,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:T,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:bt},onChange:ql,options:uagb_blocks_info.post_types}),""!==l&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:gt},onChange:Zl,options:ti}),""!=t&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:l[gt].label,data:{value:x,label:"categories"},setAttributes:o,options:ai})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Exclude Current Post","ultimate-addons-for-gutenberg"),checked:Ut,onChange:()=>o({excludeCurrentPost:!Ut})}),React.createElement(Ks,{label:Object(r.__)("Posts Per Page","ultimate-addons-for-gutenberg"),setAttributes:o,value:A,data:{value:A,label:"postsToShow"},onChange:Kl,min:1,max:50,displayUnit:!1,showControlHeader:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Offset Starting Post","ultimate-addons-for-gutenberg"),checked:gl,onChange:Yl,help:React.createElement(React.Fragment,null,!gl&&React.createElement(React.Fragment,null,Object(r.__)("Note: Enabling this will disable the Pagination. Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. ","ultimate-addons-for-gutenberg"),React.createElement(Le.ExternalLink,{href:"https://developer.wordpress.org/reference/classes/wp_query/#pagination-parameters:~:text=Warning%3A%20Setting%20the%20offset%20parameter%20overrides/ignores%20the%20paged%20parameter%20and%20breaks%20pagination.%20The%20%27offset%27%20parameter%20is%20ignored%20when%20%27posts_per_page%27%3D%3E%2D1%20(show%20all%20posts)%20is%20used."},Object(r.__)("Read more","ultimate-addons-for-gutenberg"))))}),gl&&React.createElement(Ks,{label:Object(r.__)("Offset By","ultimate-addons-for-gutenberg"),setAttributes:o,value:wa,data:{value:wa,label:"postsOffset"},onChange:Jl,min:0,max:50,displayUnit:!1,help:React.createElement(React.Fragment,null,gl&&Object(r.__)("Note: The offset will skip the number of posts set, and will use the next post as the starting post.","ultimate-addons-for-gutenberg"))}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Order By","ultimate-addons-for-gutenberg"),data:{value:P,label:"orderBy"},options:[{value:"date",label:Object(r.__)("Date","ultimate-addons-for-gutenberg")},{value:"title",label:Object(r.__)("Title","ultimate-addons-for-gutenberg")},{value:"rand",label:Object(r.__)("Random","ultimate-addons-for-gutenberg")},{value:"menu_order",label:Object(r.__)("Menu Order","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Order","ultimate-addons-for-gutenberg"),data:{value:w,label:"order"},options:[{value:"desc",label:Object(r.__)("Descending","ultimate-addons-for-gutenberg")},{value:"asc",label:Object(r.__)("Ascending","ultimate-addons-for-gutenberg")}]}),!Nl&&React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:C,label:"columns"},tablet:{value:S,label:"tcolumns"},mobile:{value:k,label:"mcolumns"}},min:0,max:8,displayUnit:!1,setAttributes:o}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:st,onChange:()=>o({equalHeight:!st})}),!gl&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Post Pagination","ultimate-addons-for-gutenberg"),checked:mt,onChange:$l}),!0===mt&&React.createElement(Qa,{label:Object(r.__)("Page Limit","ultimate-addons-for-gutenberg"),setAttributes:o,value:yt,data:{value:yt,label:"pageLimit"},onChange:Xl,min:0,max:100,displayUnit:!1}),React.createElement("h2",null,Object(r.__)("If Posts Not Found","ultimate-addons-for-gutenberg")),React.createElement(Ss,{autoComplete:"off",label:Object(r.__)("Display Message","ultimate-addons-for-gutenberg"),value:Rt,data:{value:Rt,label:"postDisplaytext"},setAttributes:o,onChange:e=>o({postDisplaytext:e})})),(()=>{if(!0===mt)return React.createElement(je,{title:Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:o,label:Object(r.__)("Pagination Type","ultimate-addons-for-gutenberg"),data:{value:_l,label:"paginationType"},options:[{value:"ajax",label:Object(r.__)("Ajax","ultimate-addons-for-gutenberg")},{value:"normal",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Pagination Alignment","ultimate-addons-for-gutenberg"),data:{value:At,label:"paginationAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Pagination Layout","ultimate-addons-for-gutenberg"),data:{value:Tt,label:"paginationLayout"},className:"uagb-multi-button-alignment-control",options:[{value:"border",label:"Border"},{value:"filled",label:"Filled"}],showIcons:!1}),React.createElement(Ss,{label:Object(r.__)("Previous Text","ultimate-addons-for-gutenberg"),value:Gt,data:{value:Gt,label:"paginationPrevText"},setAttributes:o,onChange:Ql}),React.createElement(Ss,{label:Object(r.__)("Next Text","ultimate-addons-for-gutenberg"),value:Mt,data:{value:Mt,label:"paginationNextText"},setAttributes:o,onChange:ei}))})(),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Featured Image","ultimate-addons-for-gutenberg"),checked:g,onChange:()=>o({displayPostImage:!g})}),!0===g&&"background"!==f&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:fl,onChange:Wl}),!fl&&React.createElement(Pi,{label:Object(r.__)("Image Ratio","ultimate-addons-for-gutenberg"),options:[{label:Object(r.__)("Inherit","ultimate-addons-for-gutenberg"),value:"inherit"},{label:Object(r.__)("1:1","ultimate-addons-for-gutenberg"),value:"1-1"},{label:Object(r.__)("3:2","ultimate-addons-for-gutenberg"),value:"2-3"},{label:Object(r.__)("16:9","ultimate-addons-for-gutenberg"),value:"9-16"},{label:Object(r.__)("2:1","ultimate-addons-for-gutenberg"),value:"1-2"}],data:{value:yl,label:"imageRatio"},setAttributes:o})),!0===g&&React.createElement(Pi,{label:Object(r.__)("Sizes","ultimate-addons-for-gutenberg"),data:{value:y,label:"imgSize"},setAttributes:o,options:uagb_blocks_info.image_sizes}),!0===g&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:f,label:"imgPosition"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"background",label:Object(r.__)("Background","ultimate-addons-for-gutenberg")}]}),!0===g&&"background"===f&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Link Complete Box","ultimate-addons-for-gutenberg"),checked:dt,onChange:()=>o({linkBox:!dt})}),g&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Left Right Position","ultimate-addons-for-gutenberg"),checked:Nl,onChange:()=>o({isLeftToRightLayout:!Nl})}),Nl&&"Mobile"!==n&&"background"!==f&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Image Alignment","ultimate-addons-for-gutenberg"),data:{value:zl,label:"wrapperAlign"},options:[{value:"row",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"row-reverse",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Content Position","ultimate-addons-for-gutenberg"),data:{value:Dl,label:"wrapperAlignPosition"},options:[{value:"flex-start",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"flex-end",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}]}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Title","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>o({displayPostTitle:!c})}),c&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("HTML Tag","ultimate-addons-for-gutenberg"),data:{value:F,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Author","ultimate-addons-for-gutenberg"),checked:b,onChange:()=>o({displayPostAuthor:!b})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Date","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>o({displayPostDate:!u})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Comment","ultimate-addons-for-gutenberg"),checked:p,onChange:()=>o({displayPostComment:!p})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Taxonomy","ultimate-addons-for-gutenberg"),checked:m,onChange:()=>o({displayPostTaxonomy:!m})}),m&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Taxonomy Position","ultimate-addons-for-gutenberg"),data:{value:Aa,label:"displayPostTaxonomyAboveTitle"},options:[{value:"withMeta",label:Object(r.__)("With Meta","ultimate-addons-for-gutenberg")},{value:"aboveTitle",label:Object(r.__)("Above Title","ultimate-addons-for-gutenberg")}]}),"aboveTitle"===Aa&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Taxonomy Style","ultimate-addons-for-gutenberg"),data:{value:Pa,label:"taxStyle"},options:[{value:"default",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"highlighted",label:Object(r.__)("Highlighted","ultimate-addons-for-gutenberg")}]}),"default"===Pa&&React.createElement(Ss,{label:Object(r.__)("Taxonomy Divider","ultimate-addons-for-gutenberg"),value:xa,data:{value:xa,label:"taxDivider"},setAttributes:o,onChange:e=>o({taxDivider:e})}))),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Meta Icon","ultimate-addons-for-gutenberg"),checked:Ga,onChange:()=>o({hideTaxonomyIcon:!Ga})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Excerpt","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>o({displayPostExcerpt:!d})}),d&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("Show:","ultimate-addons-for-gutenberg"),data:{value:Bt,label:"displayPostContentRadio"},options:[{value:"excerpt",label:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg")},{value:"full_post",label:Object(r.__)("Full post","ultimate-addons-for-gutenberg")}]}),d&&"excerpt"===Bt&&React.createElement(Qa,{label:Object(r.__)("Max number of words in excerpt","ultimate-addons-for-gutenberg"),setAttributes:o,value:ct,data:{value:ct,label:"excerptLength"},min:1,max:100,displayUnit:!1})),React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Read More Link","ultimate-addons-for-gutenberg"),checked:h,onChange:()=>o({displayPostLink:!h})}),h&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{checked:Tl,onChange:()=>o({inheritFromThemeBtn:!Tl}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Tl&&("Astra"===Il||Vl)&&React.createElement(Na,{setAttributes:o,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Cl,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]}),!Nl&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Buttons on Equal Height","ultimate-addons-for-gutenberg"),checked:ml,onChange:()=>o({equalHeightInlineButtons:!ml})})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open Links in New Tab","ultimate-addons-for-gutenberg"),checked:v,onChange:()=>o({newTab:!v})}),React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),value:_,data:{value:_,label:"ctaText"},setAttributes:o,onChange:e=>o({ctaText:e})}),!Tl&&React.createElement(Hr,{setAttributes:o,presets:MP,presetInputType:"radioImage"})))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:O,data:{value:O,label:"bgColor"},setAttributes:o}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:B,label:"columnGap"},tablet:{value:U,label:"columnGapTablet"},mobile:{value:E,label:"columnGapMobile"}},min:0,max:50,unit:{value:Ot,label:"columnGapUnit"},setAttributes:o}),React.createElement(tl,{label:Object(r.__)("Row Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:G,label:"rowGap"},tablet:{value:M,label:"rowGapTablet"},mobile:{value:R,label:"rowGapMobile"}},min:0,max:50,unit:{value:Et,label:"rowGapUnit"},setAttributes:o}),React.createElement(Pl,RP({},e,{label:Object(r.__)("Content Padding","ultimate-addons-for-gutenberg"),valueTop:{value:pa,label:"paddingTop"},valueRight:{value:ga,label:"paddingRight"},valueBottom:{value:da,label:"paddingBottom"},valueLeft:{value:ba,label:"paddingLeft"},valueTopTablet:{value:ma,label:"paddingTopTablet"},valueRightTablet:{value:ya,label:"paddingRightTablet"},valueBottomTablet:{value:fa,label:"paddingBottomTablet"},valueLeftTablet:{value:ha,label:"paddingLeftTablet"},valueTopMobile:{value:va,label:"paddingTopMobile"},valueRightMobile:{value:_a,label:"paddingRightMobile"},valueBottomMobile:{value:Ta,label:"paddingBottomMobile"},valueLeftMobile:{value:Ca,label:"paddingLeftMobile"},unit:{value:L,label:"contentPaddingUnit"},mUnit:{value:Sa,label:"mobilePaddingUnit"},tUnit:{value:ka,label:"tabletPaddingUnit"},deviceType:n,attributes:i,setAttributes:o,link:{value:ua,label:"spacingLinkPadding"}})),Nl&&React.createElement(React.Fragment,null,React.createElement(Pl,{label:Object(r.__)("Wrapper Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Sl,label:"wrapperTopPadding"},valueRight:{value:kl,label:"wrapperRightPadding"},valueBottom:{value:xl,label:"wrapperBottomPadding"},valueLeft:{value:wl,label:"wrapperLeftPadding"},valueTopTablet:{value:Al,label:"wrapperTopPaddingTablet"},valueRightTablet:{value:Gl,label:"wrapperRightPaddingTablet"},valueBottomTablet:{value:Rl,label:"wrapperBottomPaddingTablet"},valueLeftTablet:{value:Ml,label:"wrapperLeftPaddingTablet"},valueTopMobile:{value:Bl,label:"wrapperTopPaddingMobile"},valueRightMobile:{value:Ul,label:"wrapperRightPaddingMobile"},valueBottomMobile:{value:Ol,label:"wrapperBottomPaddingMobile"},valueLeftMobile:{value:El,label:"wrapperLeftPaddingMobile"},unit:{value:Ll,label:"wrapperPaddingUnit"},mUnit:{value:Fl,label:"wrapperPaddingUnitMobile"},tUnit:{value:Hl,label:"wrapperPaddingUnitTablet"},deviceType:n,attributes:i,setAttributes:o,link:{value:jl,label:"wrapperPaddingLink"},help:Object(r.__)("Note: This padding setting applies to the inner content wrapper in Left Right Layout.","ultimate-addons-for-gutenberg")}))),c&&React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:H,data:{value:H,label:"titleColor"},setAttributes:o}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:K,label:"titleLoadGoogleFonts"},fontFamily:{value:I,label:"titleFontFamily"},fontWeight:{value:V,label:"titleFontWeight"},fontStyle:{value:W,label:"titleFontStyle"},fontSizeType:{value:z,label:"titleFontSizeType"},fontSize:{value:j,label:"titleFontSize"},fontSizeMobile:{value:D,label:"titleFontSizeMobile"},fontSizeTablet:{value:N,label:"titleFontSizeTablet"},lineHeightType:{value:q,label:"titleLineHeightType"},lineHeight:{value:Z,label:"titleLineHeight"},lineHeightMobile:{value:Y,label:"titleLineHeightMobile"},lineHeightTablet:{value:$,label:"titleLineHeightTablet"},letterSpacing:{value:Ba,label:"titleLetterSpacing"},letterSpacingTablet:{value:Ua,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Ea,label:"titleLetterSpacingMobile"},letterSpacingType:{value:Oa,label:"titleLetterSpacingType"},transform:{value:zt,label:"titleTransform"},decoration:{value:Vt,label:"titleDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ye,label:"titleBottomSpace"},tablet:{value:Ke,label:"titleBottomSpaceTablet"},mobile:{value:Je,label:"titleBottomSpaceMobile"}},min:0,max:50,unit:{value:Ht,label:"titleBottomSpaceUnit"},setAttributes:o})),(b||u||p||m)&&React.createElement(je,{title:Object(r.__)("Meta","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Meta Color","ultimate-addons-for-gutenberg"),colorValue:He,data:{value:He,label:"metaColor"},setAttributes:o}),"aboveTitle"===Aa&&"highlighted"===Pa&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Taxonomy Text Color","ultimate-addons-for-gutenberg"),colorValue:Ma,data:{value:Ma,label:"highlightedTextColor"},setAttributes:o}),React.createElement(hl,{label:Object(r.__)("Highlighted Color","ultimate-addons-for-gutenberg"),colorValue:Ra,data:{value:Ra,label:"highlightedTextBgColor"},setAttributes:o})),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:se,label:"metaLoadGoogleFonts"},fontFamily:{value:te,label:"metaFontFamily"},fontWeight:{value:ae,label:"metaFontWeight"},fontStyle:{value:le,label:"metaFontStyle"},fontSizeType:{value:X,label:"metaFontSizeType"},fontSize:{value:J,label:"metaFontSize"},fontSizeMobile:{value:Q,label:"metaFontSizeMobile"},fontSizeTablet:{value:ee,label:"metaFontSizeTablet"},lineHeightType:{value:ie,label:"metaLineHeightType"},lineHeight:{value:oe,label:"metaLineHeight"},lineHeightMobile:{value:re,label:"metaLineHeightMobile"},lineHeightTablet:{value:ne,label:"metaLineHeightTablet"},letterSpacing:{value:La,label:"metaLetterSpacing"},letterSpacingTablet:{value:Ha,label:"metaLetterSpacingTablet"},letterSpacingMobile:{value:Fa,label:"metaLetterSpacingMobile"},letterSpacingType:{value:ja,label:"metaLetterSpacingType"},transform:{value:Dt,label:"metaTransform"},decoration:{value:Wt,label:"metaDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Xe,label:"metaBottomSpace"},tablet:{value:Qe,label:"metaBottomSpaceTablet"},mobile:{value:et,label:"metaBottomSpaceMobile"}},min:0,max:50,unit:{value:Ft,label:"metaBottomSpaceUnit"},setAttributes:o})),d&&React.createElement(je,{title:Object(r.__)("Excerpt","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Fe,data:{value:Fe,label:"excerptColor"},setAttributes:o}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:Te,label:"excerptLoadGoogleFonts"},fontFamily:{value:be,label:"excerptFontFamily"},fontWeight:{value:me,label:"excerptFontWeight"},fontStyle:{value:ye,label:"excerptFontStyle"},fontSizeType:{value:ue,label:"excerptFontSizeType"},fontSize:{value:ce,label:"excerptFontSize"},fontSizeMobile:{value:de,label:"excerptFontSizeMobile"},fontSizeTablet:{value:pe,label:"excerptFontSizeTablet"},lineHeightType:{value:fe,label:"excerptLineHeightType"},lineHeight:{value:he,label:"excerptLineHeight"},lineHeightMobile:{value:_e,label:"excerptLineHeightMobile"},lineHeightTablet:{value:ve,label:"excerptLineHeightTablet"},letterSpacing:{value:za,label:"excerptLetterSpacing"},letterSpacingTablet:{value:Da,label:"excerptLetterSpacingTablet"},letterSpacingMobile:{value:Ia,label:"excerptLetterSpacingMobile"},letterSpacingType:{value:Va,label:"excerptLetterSpacingType"},transform:{value:Nt,label:"excerptTransform"},decoration:{value:qt,label:"excerptDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:tt,label:"excerptBottomSpace"},tablet:{value:at,label:"excerptBottomSpaceTablet"},mobile:{value:lt,label:"excerptBottomSpaceMobile"}},min:0,max:50,unit:{value:it,label:"excerptBottomSpaceUnit"},setAttributes:o})),h&&React.createElement(je,{title:Object(r.__)("Read More Link","ultimate-addons-for-gutenberg"),initialOpen:!1},!Tl&&React.createElement(React.Fragment,null,React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:ze,data:{value:ze,label:"ctaColor"},setAttributes:o}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:De,label:"ctaBgType"},className:"uagb-multi-button-alignment-control",options:li}),"color"===De&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Ie,data:{value:Ie,label:"ctaBgColor"},setAttributes:o})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Ve,data:{value:Ve,label:"ctaHColor"},setAttributes:o}),React.createElement(Na,{setAttributes:o,label:Object(r.__)("Background Type","ultimate-addons-for-gutenberg"),data:{value:Ne,label:"ctaBgHType"},className:"uagb-multi-button-alignment-control",options:li}),"color"===Ne&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:We,data:{value:We,label:"ctaBgHColor"},setAttributes:o}))}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:i,setAttributes:o,loadGoogleFonts:{value:Oe,label:"ctaLoadGoogleFonts"},fontFamily:{value:xe,label:"ctaFontFamily"},fontWeight:{value:Ae,label:"ctaFontWeight"},fontStyle:{value:Ge,label:"ctaFontStyle"},fontSizeType:{value:ke,label:"ctaFontSizeType"},fontSize:{value:Se,label:"ctaFontSize"},fontSizeMobile:{value:Pe,label:"ctaFontSizeMobile"},fontSizeTablet:{value:we,label:"ctaFontSizeTablet"},lineHeightType:{value:Me,label:"ctaLineHeightType"},lineHeight:{value:Re,label:"ctaLineHeight"},lineHeightMobile:{value:Ue,label:"ctaLineHeightMobile"},lineHeightTablet:{value:Be,label:"ctaLineHeightTablet"},letterSpacing:{value:Wa,label:"ctaLetterSpacing"},letterSpacingTablet:{value:qa,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:Za,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:$a,label:"ctaLetterSpacingType"},transform:{value:It,label:"ctaTransform"},decoration:{value:Zt,label:"ctaDecoration"}}),React.createElement(Hi,{setAttributes:o,prefix:"btn",attributes:i,deviceType:n,disabledBorderTitle:!1}),React.createElement(Pl,RP({},e,{label:Object(r.__)("Button Padding","ultimate-addons-for-gutenberg"),valueTop:{value:$t,label:"paddingBtnTop"},valueRight:{value:Jt,label:"paddingBtnRight"},valueBottom:{value:Yt,label:"paddingBtnBottom"},valueLeft:{value:Kt,label:"paddingBtnLeft"},valueTopTablet:{value:Xt,label:"paddingBtnTopTablet"},valueRightTablet:{value:Qt,label:"paddingBtnRightTablet"},valueBottomTablet:{value:ea,label:"paddingBtnBottomTablet"},valueLeftTablet:{value:ta,label:"paddingBtnLeftTablet"},valueTopMobile:{value:aa,label:"paddingBtnTopMobile"},valueRightMobile:{value:la,label:"paddingBtnRightMobile"},valueBottomMobile:{value:ia,label:"paddingBtnBottomMobile"},valueLeftMobile:{value:oa,label:"paddingBtnLeftMobile"},unit:{value:na,label:"paddingBtnUnit"},mUnit:{value:ra,label:"mobilePaddingBtnUnit"},tUnit:{value:sa,label:"tabletPaddingBtnUnit"},deviceType:n,attributes:i,setAttributes:o,link:{value:ca,label:"spacingLink"}}))),!Nl&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:ot,label:"ctaBottomSpace"},tablet:{value:nt,label:"ctaBottomSpaceTablet"},mobile:{value:rt,label:"ctaBottomSpaceMobile"}},min:0,max:300,unit:{value:jt,label:"ctaBottomSpaceUnit"},setAttributes:o}))),mt&&React.createElement(je,{title:Object(r.__)("Pagination","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:ft,data:{value:ft,label:"paginationColor"},setAttributes:o}),"filled"===Tt&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:ht,data:{value:ht,label:"paginationBgColor"},setAttributes:o}),"border"===Tt&&React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:kt,data:{value:kt,label:"paginationBorderColor"},setAttributes:o})),active:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:vt,data:{value:vt,label:"paginationActiveColor"},setAttributes:o}),"filled"===Tt&&React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_t,data:{value:_t,label:"paginationBgActiveColor"},setAttributes:o}),"border"===Tt&&React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:wt,data:{value:wt,label:"paginationBorderActiveColor"},setAttributes:o})),disableBottomSeparator:!1}),"border"===Tt&&React.createElement(React.Fragment,null,React.createElement(Qa,{setAttributes:o,label:Object(r.__)("Border Size","ultimate-addons-for-gutenberg"),value:Ct,data:{value:Ct,label:"paginationBorderSize"},min:0,max:10,displayUnit:!1}),React.createElement(Qa,{setAttributes:o,label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),value:St,data:{value:St,label:"paginationBorderRadius"},displayUnit:!1,min:0,max:100})),React.createElement(Qa,{label:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),setAttributes:o,value:Pt,data:{value:Pt,label:"paginationSpacing"},help:Object(r.__)("This spacing is between the Post Grid and the Pagination","ultimate-addons-for-gutenberg"),min:0,max:300,unit:{value:xt,label:"paginationSpacingUnit"}})),!0===g&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},"background"===f&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Overlay Color","ultimate-addons-for-gutenberg"),colorValue:pt,data:{value:pt,label:"bgOverlayColor"},setAttributes:o}),React.createElement(Qa,{label:Object(r.__)("Overlay Opacity","ultimate-addons-for-gutenberg"),setAttributes:o,value:ut,data:{value:ut,label:"overlayOpacity"},min:0,max:100,displayUnit:!1})),"top"===f&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:qe,label:"imageBottomSpace"},tablet:{value:Ze,label:"imageBottomSpaceTablet"},mobile:{value:$e,label:"imageBottomSpaceMobile"}},min:0,max:50,unit:{value:Lt,label:"imageBottomSpaceUnit"},setAttributes:o})),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:o,prefix:"overall",attributes:i,deviceType:n,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:Ya,onChange:()=>o({useSeparateBoxShadows:!Ya})}),Ya?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:o,presets:AP,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:o,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ka,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ja,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Xa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:el,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:al,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ll,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:o,presets:GP,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:o,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:sl,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:cl,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:ul,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:pl,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:dl,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:bl,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:o,presets:AP,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:o,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:Ka,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Ja,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:Xa,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:el,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:al,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:ll,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),Nl),React.createElement(il,RP({},rl,{parentProps:e.parentProps}))));return Array.isArray(a)&&a.length?React.createElement(React.Fragment,null,(()=>{const{isEditing:t}=e.state;return React.createElement(ge.BlockControls,null,React.createElement(Le.ToolbarGroup,{controls:[{icon:"edit",title:Object(r.__)("Edit","ultimate-addons-for-gutenberg"),onClick:()=>e.togglePreview(),isActive:t}]}))})(),ii()):React.createElement(React.Fragment,null,ii())}),UP=Object(B.memo)(e=>{const t=e.name.replace("uagb/",""),a=Object(B.useRef)(),{attributes:l,className:i,latestPosts:o,block_id:n,setAttributes:r}=e,s=le(),{columns:c,tcolumns:u,mcolumns:p,imgPosition:d,postsToShow:b,equalHeight:g,paginationMarkup:m,postPagination:y,layoutConfig:f,equalHeightInlineButtons:h,isLeftToRightLayout:v}=l,_=us(b,"postsToShow",t),T=us(c,"columns",t),C=us(u,"tcolumns",t),S=us(p,"mcolumns",t),k=g?"uagb-post__equal-height":"",w=o.length>_?o.slice(0,_):o,P=!0===l.displayPostImage?"uagb-post__image-enabled":"uagb-post__image-disabled",x=h?"uagb-equal_height_inline-read-more-buttons-in-editor":"";return React.createElement("div",{className:Be()("is-grid","uagb-post__columns-"+T,"uagb-post__columns-tablet-"+C,"uagb-post__columns-mobile-"+S,"uagb-post__items",""+k,""+P,i,"uagb-post-grid","uagb-post__image-position-"+d,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+n,""+x)},React.createElement(rP,{parentName:"uagb/post-grid",parentClassName:"uagb-block-grid"},w.map((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return React.createElement("article",{ref:a,key:l,className:"uagb-post__inner-wrap"},cP("uagb/post-grid",t,f,e.attributes,e.categoriesList,r,a,v))}))),!0===y&&"empty"!==m&&React.createElement("div",{dangerouslySetInnerHTML:{__html:m},className:"uagb-post-pagination-wrap"}))}),EP=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(SP.use(),()=>{SP.unuse()}),[]);const{categoriesList:t,latestPosts:a,replaceInnerBlocks:l,block:i}=e,{isEditing:o}=e.state,{attributes:n,deviceType:s,name:c,setAttributes:u,clientId:p,className:d}=e;return o?React.createElement(React.Fragment,null,(()=>{const t={template:e.attributes.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(gP("uagb/post-grid"))};return 0!==e.attributes.layoutConfig.length&&(t.renderAppender=!1),React.createElement(Le.Placeholder,{label:"Post Grid Layout"},React.createElement("div",{className:"uagb-post-grid uagb-block-all-post-grid-item-template"},React.createElement(Le.Tip,null,Object(r.__)("Edit the blocks inside the preview below to change the content displayed for each post within the post grid.","ultimate-addons-for-gutenberg")),React.createElement(rP,{parentName:"uagb/post-grid",parentClassName:"uagb-block-grid"},React.createElement("article",{className:"uagb-post__inner-wrap uagb-post__edit-mode"},React.createElement("div",{className:"uagb-post__text"},React.createElement(ge.InnerBlocks,t)))),React.createElement("div",{className:"uagb-block-all-post__actions"},React.createElement(Le.Button,{className:"uagb-block-all-post__done-button",isPrimary:!0,onClick:()=>{u({layoutConfig:mP(i)}),e.setStateValue({innerBlocks:i}),e.togglePreview()}},Object(r.__)("Done","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__cancel-button",isTertiary:!0,onClick:()=>{const{innerBlocks:t}=e.state;l(p,t),e.togglePreview()}},Object(r.__)("Cancel","ultimate-addons-for-gutenberg")),React.createElement(Le.Button,{className:"uagb-block-all-post__reset-button",onClick:()=>{const t=[];sP.map(e=>{let[a,l]=e;return t.push(Object(de.createBlock)(a,l)),!0}),l(p,t),e.setStateValue({innerBlocks:i})}},Object(r.__)("Reset Layout","ultimate-addons-for-gutenberg")))))})()):React.createElement(React.Fragment,null,React.createElement(UP,{attributes:n,className:d,latestPosts:a,block_id:n.block_id,categoriesList:t,deviceType:s,name:c,setAttributes:u}))});function OP(){return(OP=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a,attributes:{borderStyle:l,borderWidth:i,borderRadius:o,borderColor:s,borderHColor:c,btnBorderTopWidth:u,btnBorderLeftWidth:p,btnBorderRightWidth:d,btnBorderBottomWidth:b,btnBorderTopLeftRadius:g,btnBorderTopRightRadius:m,btnBorderBottomLeftRadius:y,btnBorderBottomRightRadius:f,btnBorderColor:h,btnBorderHColor:v,btnBorderStyle:_,blockName:T,categories:C,postsToShow:S,postsOffset:w,order:P,orderBy:x,postType:A,taxonomyType:G,excludeCurrentPost:M,allTaxonomyStore:R,postPagination:U,paginationMarkup:E,UAGHideDesktop:O,UAGHideTab:L,UAGHideMob:H,postDisplaytext:F,isLeftToRightLayout:j,wrapperAlign:z,align:D,displayPostImage:N,wrapperRightPadding:I,wrapperLeftPadding:V,ctaBottomSpace:W},setAttributes:q,clientId:Z,deviceType:$}=e,[Y,K]=Object(B.useState)({isEditing:!1,innerBlocks:[]}),[J,X]=Object(B.useState)(!1);Object(B.useEffect)(()=>{const{block:t}=e;K({innerBlocks:t}),i&&(void 0===u&&q({btnBorderTopWidth:i}),void 0===p&&q({btnBorderLeftWidth:i}),void 0===d&&q({btnBorderRightWidth:i}),void 0===b&&q({btnBorderBottomWidth:i})),o&&(void 0===g&&q({btnBorderTopLeftRadius:o}),void 0===m&&q({btnBorderTopRightRadius:o}),void 0===y&&q({btnBorderBottomLeftRadius:o}),void 0===f&&q({btnBorderBottomRightRadius:o})),s&&void 0===h&&q({btnBorderColor:s}),c&&void 0===v&&q({btnBorderHColor:c}),l&&void 0===_&&q({btnBorderStyle:l})},[]),Object(B.useEffect)(()=>{he(e)},[O,L,H,$]),Object(B.useEffect)(()=>{ys()},[$]),Object(B.useEffect)(()=>{if(!0===j){const e="row"===z?"left":"right";q({align:"center"!==D?e:D}),q({equalHeightInlineButtons:!1,ctaBottomSpace:0}),void 0===W&&q({ctaBottomSpace:0}),V||0===V||q({wrapperLeftPadding:20}),I||0===V||q({wrapperRightPadding:20}),N||q({isLeftToRightLayout:!1})}},[j,z,N]);const Q=Object(B.useMemo)(()=>qw(a,0,$),[a,$]),ee=()=>{K({isEditing:!Y.isEditing})};let te=[];const{latestPosts:ae,taxonomyList:le,block:ie}=Object(n.useSelect)(t=>{const{getEntityRecords:a}=t("core");R||J||(X(!0),k()({path:"/spectra/v1/all_taxonomy"}).then(e=>{q({allTaxonomyStore:e}),X(!1)}));const l=R?R[A]:void 0;if(!0===U&&"empty"===E){const t={nonce:uagb_blocks_info.uagb_ajax_nonce,attributes:JSON.stringify(e.attributes)};$l({url:uagb_blocks_info.ajax_url,action:"uagb_post_pagination",data:t}).then(e=>{q({paginationMarkup:e.data})})}let i="";void 0!==l&&(void 0!==l.taxonomy[G]&&(i=!1===l.taxonomy[G].rest_base||null===l.taxonomy[G].rest_base?l.taxonomy[G].name:l.taxonomy[G].rest_base),""!==G&&void 0!==l.terms&&void 0!==l.terms[G]&&(te=l.terms[G]));const o={order:P,orderby:x,per_page:us(S,"postsToShow",T),offset:us(w,"postsOffset",T)};if(M){const e=t("core/editor");o.exclude=null!=e&&e.getCurrentPostId?e.getCurrentPostId():null}const n=[],r=parseInt(C);n.push(r);const s=te.length;for(let e=0;e{n.push(e)});const{getBlocks:c}=t("core/block-editor");return void 0!==C&&""!==C&&(o[i]=void 0===C||""===C?C:n),{latestPosts:a("postType",A,o),categoriesList:te,taxonomyList:void 0!==l?l.taxonomy:[],block:c(Z)}}),{replaceInnerBlocks:oe}=Object(n.useDispatch)("core/block-editor");return Array.isArray(ae)&&ae.length?React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:Q}),React.createElement(Jw,{attributes:a}),t&&React.createElement(BP,OP({},e,{state:Y,setStateValue:K,togglePreview:ee,latestPosts:ae,taxonomyList:le,categoriesList:te})),React.createElement(EP,OP({},e,{state:Y,setStateValue:K,togglePreview:ee,latestPosts:ae,categoriesList:te,replaceInnerBlocks:oe,block:ie}))):React.createElement(React.Fragment,null,React.createElement(BP,OP({},e,{state:Y,setStateValue:K,latestPosts:ae,taxonomyList:le,categoriesList:te})),React.createElement(Le.Placeholder,{icon:"admin-post",label:Object(r.__)("Post Grid","ultimate-addons-for-gutenberg")},Array.isArray(ae)?F:React.createElement(Le.Spinner,null)))});let HP={};HP=Object(F.applyFilters)("uagb/post-grid",ss(HP)),Object(de.registerBlockType)("uagb/post-grid",{...HP,title:Object(r.__)("Post Grid","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your posts in a structured grid-based layout.","ultimate-addons-for-gutenberg"),icon:se.post_grid,category:uagb_blocks_info.category,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("grid","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"post-grid"}):React.createElement(LP,e),save:()=>null}),Object(de.registerBlockType)("uagb/post-title",{title:Object(r.__)("Post Title","ultimate-addons-for-gutenberg"),description:Object(r.__)("Customize your post title.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("title","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostTitle:Qw,save:function(){return React.createElement("h3",{className:"uagb-post__text uagb-post__title"},React.createElement("a",{href:"/",target:"_blank",rel:"noopener noreferrer",alt:""}," ",Object(r.__)("WordPress Post Title","ultimate-addons-for-gutenberg")))}}),Object(de.registerBlockType)("uagb/post-image",{title:Object(r.__)("Post Image","ultimate-addons-for-gutenberg"),description:Object(r.__)("Customize your post image.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("image","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostImage:tP,save:function(){return React.createElement("div",{className:"uagb-post__image"},React.createElement("img",{src:uagb_blocks_info.uagb_url+"/admin/assets/preview-images/post-grid.png",alt:""}))}}),Object(de.registerBlockType)("uagb/post-taxonomy",{title:Object(r.__)("Post Taxonomy","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show your post's under categories.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("tags","ultimate-addons-for-gutenberg"),Object(r.__)("taxonomy","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostTaxonomy:aP,save:function(){return React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-post__taxonomy uagb-post__text"},React.createElement("span",{className:"dashicons-tag dashicons"}),Object(r.__)("Category","ultimate-addons-for-gutenberg")))}}),Object(de.registerBlockType)("uagb/post-button",{title:Object(r.__)("Post Button","ultimate-addons-for-gutenberg"),description:Object(r.__)("Customize this post button.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("button","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostButton:iP,save:function(){return React.createElement("div",{className:"uagb-post__cta wp-block-button"},React.createElement("a",{className:"uagb-text-link wp-block-button__link"},"Read More"))}}),Object(de.registerBlockType)("uagb/post-excerpt",{title:Object(r.__)("Post Excerpt","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show your post's excerpt.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("excerpt","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostExcerpt:lP,save:function(){return React.createElement("div",{className:"uagb-post__excerpt uagb-full_post"},Object(r.__)("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.","ultimate-addons-for-gutenberg"))}}),Object(de.registerBlockType)("uagb/post-meta",{title:Object(r.__)("Post Meta","ultimate-addons-for-gutenberg"),description:Object(r.__)("Show your post meta details.","ultimate-addons-for-gutenberg"),icon:se.post_grid,parent:["uagb/post-grid","uagb/post-masonry","uagb/post-carousel"],keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("meta","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],PostMeta:eP,save:function(){return React.createElement(React.Fragment,null,React.createElement("span",{className:"uagb-post__author"},React.createElement("span",{className:"dashicons-admin-users dashicons"}),Object(r.__)("Author Name","ultimate-addons-for-gutenberg")),React.createElement("time",{className:"uagb-post__date"},React.createElement("span",{className:"dashicons-calendar dashicons"}),Object(r.__)("Post Date","ultimate-addons-for-gutenberg")),React.createElement("span",{className:"uagb-post__comment"},React.createElement("span",{className:"dashicons-admin-comments dashicons"}),Object(r.__)("Comments","ultimate-addons-for-gutenberg")),React.createElement("span",{className:"uagb-post__taxonomy"},React.createElement("span",{className:"dashicons-tag dashicons"}),Object(r.__)("Category","ultimate-addons-for-gutenberg")))}});var FP=Object(B.memo)(e=>{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,dateLoadGoogleFonts:s,dateFontFamily:c,dateFontWeight:u,authorLoadGoogleFonts:p,authorFontFamily:d,authorFontWeight:b,ctaLoadGoogleFonts:g,ctaFontFamily:m,ctaFontWeight:y}=t;let f,h,v,_,T;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};f=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};h=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};v=React.createElement(O,{config:e})}if(!0===p){const e={google:{families:[d+(b?":"+b:"")]}};_=React.createElement(O,{config:e})}if(!0===g){const e={google:{families:[m+(y?":"+y:"")]}};T=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,f,h,v,_,T)});function jP(){return(jP=Object.assign||function(e){for(var t=1;t{const{categoriesList:t,taxonomyList:a,attributes:l,setAttributes:i,deviceType:o}=e,{headingColor:n,subHeadingColor:s,backgroundColor:c,separatorColor:u,separatorFillColor:p,separatorBg:d,separatorBorder:b,borderFocus:g,headingTag:m,headFontSizeType:y,headFontSize:f,headFontSizeTablet:h,headFontSizeMobile:v,headFontFamily:_,headFontWeight:T,headFontStyle:C,headLineHeightType:S,headLineHeight:k,headLineHeightTablet:w,headLineHeightMobile:P,headLoadGoogleFonts:x,timelinAlignmentTablet:A,timelinAlignmentMobile:G,arrowlinAlignment:M,subHeadFontSizeType:R,subHeadFontSize:B,subHeadFontSizeTablet:U,subHeadFontSizeMobile:E,subHeadFontFamily:O,subHeadFontWeight:L,subHeadFontStyle:H,subHeadLineHeightType:F,subHeadLineHeight:j,subHeadLineHeightTablet:z,subHeadLineHeightMobile:D,subHeadLoadGoogleFonts:N,headSpace:I,headSpaceTablet:V,headSpaceMobile:W,separatorwidth:q,borderwidth:Z,connectorBgsize:$,authorSpace:Y,authorSpaceTablet:K,authorSpaceMobile:J,contentSpace:X,authorColor:Q,authorFontSizeType:ee,authorFontSize:te,authorFontSizeTablet:ae,authorFontSizeMobile:le,authorFontFamily:ie,authorFontWeight:oe,authorFontStyle:ne,authorLineHeightType:re,authorLineHeight:se,authorLineHeightTablet:ce,authorLineHeightMobile:ue,authorLoadGoogleFonts:pe,dateBottomspace:de,dateBottomspaceTablet:be,dateBottomspaceMobile:me,displayPostDate:ye,displayPostExcerpt:fe,displayPostAuthor:he,displayPostImage:ve,displayPostLink:_e,readMoreText:Te,align:Se,alignTablet:ke,alignMobile:we,order:Pe,orderBy:xe,categories:Ae,postsToShow:Ge,imageSize:Me,ctaBackground:Re,icon:Be,iconColor:Ue,dateColor:Oe,ctaColor:He,dateFontSizeType:Fe,dateFontSize:ze,dateFontSizeTablet:De,dateFontSizeMobile:Ne,dateFontFamily:Ie,dateFontWeight:Ve,dateFontStyle:We,dateLineHeightType:qe,dateLineHeight:Ze,dateLineHeightTablet:$e,dateLineHeightMobile:Ye,dateLoadGoogleFonts:Ke,ctaFontSizeType:Je,ctaFontSize:Xe,ctaFontSizeTablet:Qe,ctaFontSizeMobile:et,ctaFontFamily:tt,ctaFontWeight:at,ctaFontStyle:lt,ctaLineHeightType:it,ctaLineHeight:ot,ctaLineHeightTablet:nt,ctaLineHeightMobile:rt,ctaLoadGoogleFonts:st,iconSize:ct,exerptLength:ut,borderRadius:pt,borderRadiusTablet:dt,borderRadiusMobile:bt,iconFocus:gt,iconBgFocus:mt,linkTarget:yt,postType:ft,taxonomyType:ht,dateFormat:vt,excludeCurrentPost:_t,topPadding:Tt,rightPadding:Ct,bottomPadding:St,leftPadding:kt,topPaddingTablet:wt,rightPaddingTablet:Pt,bottomPaddingTablet:xt,leftPaddingTablet:At,topPaddingMobile:Gt,rightPaddingMobile:Mt,bottomPaddingMobile:Rt,leftPaddingMobile:Bt,paddingUnit:Ut,mobilePaddingUnit:Et,tabletPaddingUnit:Ot,paddingLink:Lt,headTransform:Ht,authorTransform:Ft,subHeadTransform:jt,dateTransform:zt,ctaTransform:Dt,headDecoration:Nt,authorDecoration:It,subHeadDecoration:Vt,dateDecoration:Wt,ctaDecoration:qt,ctaBottomSpacing:Zt,ctaBottomSpacingTablet:$t,ctaBottomSpacingMobile:Yt,headTopSpacing:Kt,headTopSpacingTablet:Jt,headTopSpacingMobile:Xt,headLetterSpacing:Qt,headLetterSpacingTablet:ea,headLetterSpacingMobile:ta,headLetterSpacingType:aa,subHeadLetterSpacing:la,subHeadLetterSpacingTablet:ia,subHeadLetterSpacingMobile:oa,subHeadLetterSpacingType:na,dateLetterSpacing:ra,dateLetterSpacingTablet:sa,dateLetterSpacingMobile:ca,dateLetterSpacingType:ua,ctaLetterSpacing:pa,ctaLetterSpacingTablet:da,ctaLetterSpacingMobile:ba,ctaLetterSpacingType:ga,authorLetterSpacing:ma,authorLetterSpacingTablet:ya,authorLetterSpacingMobile:fa,authorLetterSpacingType:ha,verticalSpace:va,verticalSpaceTablet:_a,verticalSpaceMobile:Ta,verticalSpaceUnit:Ca,verticalSpaceUnitTablet:Sa,verticalSpaceUnitMobile:ka,horizontalSpace:wa,horizontalSpaceTablet:Pa,horizontalSpaceMobile:xa,horizontalSpaceUnit:Aa,horizontalSpaceUnitTablet:Ga,horizontalSpaceUnitMobile:Ma,inheritFromTheme:Ra,buttonType:Ba}=l;let Ua=o;const Ea=uagb_blocks_info.current_theme,Oa=uagb_blocks_info.is_astra_based_theme;"Desktop"===o&&(Ua="");const La=void 0!==l["timelinAlignment"+Ua]?l["timelinAlignment"+Ua]:l.timelinAlignment,Ha=[],Fa=[{value:"",label:Object(r.__)("All","ultimate-addons-for-gutenberg")}];a&&Object.keys(a).map(e=>Ha.push({value:a[e].name,label:Object(Zw.decodeEntities)(a[e].label)})),t&&Object.keys(t).map(e=>Fa.push({value:t[e].id,label:Object(Zw.decodeEntities)(t[e].name)}));const ja=new Date;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Query","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:ft},onChange:e=>{i({postType:e}),i({categories:""})},options:uagb_blocks_info.post_types}),""!==a&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:ht},onChange:e=>{i({taxonomyType:e}),i({categories:""})},options:Ha}),""!=t&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:a[ht].label,data:{value:Ae,label:"categories"},setAttributes:i,options:Fa})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Exclude Current Post","ultimate-addons-for-gutenberg"),checked:_t,onChange:()=>i({excludeCurrentPost:!_t})}),React.createElement(Le.QueryControls,{order:Pe,orderBy:xe,numberOfItems:Ge,onNumberOfItemsChange:e=>i({postsToShow:e})}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Order By","ultimate-addons-for-gutenberg"),data:{value:xe,label:"orderBy"},className:"uagb-multi-button-alignment-control",options:[{value:"date",label:Object(r.__)("Date","ultimate-addons-for-gutenberg")},{value:"title",label:Object(r.__)("Title","ultimate-addons-for-gutenberg")},{value:"rand",label:Object(r.__)("Random","ultimate-addons-for-gutenberg")},{value:"menu_order",label:Object(r.__)("Menu Order","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Order","ultimate-addons-for-gutenberg"),data:{value:Pe,label:"order"},className:"uagb-multi-button-alignment-control",options:[{value:"desc",label:Object(r.__)("Descending","ultimate-addons-for-gutenberg")},{value:"asc",label:Object(r.__)("Ascending","ultimate-addons-for-gutenberg")}],showIcons:!1})),React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:i,label:Object(r.__)("Orientation","ultimate-addons-for-gutenberg"),data:{desktop:{value:La,label:"timelinAlignment"},tablet:{value:A,label:"timelinAlignmentTablet"},mobile:{value:G,label:"timelinAlignmentMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"align"},tablet:{value:ke,label:"alignTablet"},mobile:{value:we,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(Na,{setAttributes:i,label:Object(r.__)("Arrow Alignment","ultimate-addons-for-gutenberg"),data:{value:M,label:"arrowlinAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}],showIcons:!1})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Featured Image","ultimate-addons-for-gutenberg"),checked:ve,onChange:()=>i({displayPostImage:!ve})}),ve&&React.createElement(Pi,{label:Object(r.__)("Image Size","ultimate-addons-for-gutenberg"),data:{value:Me,label:"imageSize"},setAttributes:e.setAttributes,options:uagb_blocks_info.image_sizes})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:i,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:m,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Post Author","ultimate-addons-for-gutenberg"),checked:he,onChange:()=>i({displayPostAuthor:!he})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Post Date","ultimate-addons-for-gutenberg"),checked:ye,onChange:()=>i({displayPostDate:!ye})}),ye&&React.createElement(Pi,{label:Object(r.__)("Date Format","ultimate-addons-for-gutenberg"),data:{value:vt,label:"dateFormat"},setAttributes:i,options:[{value:"M j, Y",label:Object(Ry.dateI18n)("M j, Y",ja)},{value:"F j, Y",label:Object(Ry.dateI18n)("F j, Y",ja)},{value:"m/d/Y",label:Object(Ry.dateI18n)("m/d/Y",ja)},{value:"m-d-Y",label:Object(Ry.dateI18n)("m-d-Y",ja)},{value:"m.d.Y",label:Object(Ry.dateI18n)("m.d.Y",ja)},{value:"d M Y",label:Object(Ry.dateI18n)("d M Y",ja)},{value:"d F Y",label:Object(Ry.dateI18n)("d F Y",ja)},{value:"d-m-Y",label:Object(Ry.dateI18n)("d-m-Y",ja)},{value:"d.m.Y",label:Object(Ry.dateI18n)("d.m.Y",ja)},{value:"d/m/Y",label:Object(Ry.dateI18n)("d/m/Y",ja)},{value:"Y-m-d",label:Object(Ry.dateI18n)("Y-m-d",ja)},{value:"Y.m.d",label:Object(Ry.dateI18n)("Y.m.d",ja)},{value:"Y/m/d",label:Object(Ry.dateI18n)("Y/m/d",ja)},{value:"M, Y",label:Object(Ry.dateI18n)("M, Y",ja)},{value:"M Y",label:Object(Ry.dateI18n)("M Y",ja)},{value:"F, Y",label:Object(Ry.dateI18n)("F, Y",ja)},{value:"F Y",label:Object(Ry.dateI18n)("F Y",ja)}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Post Excerpt","ultimate-addons-for-gutenberg"),checked:fe,onChange:()=>i({displayPostExcerpt:!fe})}),fe&&React.createElement(Qa,{label:Object(r.__)("Excerpt Length","ultimate-addons-for-gutenberg"),setAttributes:i,value:ut,data:{value:ut,label:"exerptLength"},min:1,max:50,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Display Continue Reading Link","ultimate-addons-for-gutenberg"),checked:_e,onChange:()=>i({displayPostLink:!_e})}),_e&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("CTA Text","ultimate-addons-for-gutenberg"),value:Te,data:{value:Te,label:"readMoreText"},setAttributes:i,onChange:e=>i({readMoreText:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open link in New Tab","ultimate-addons-for-gutenberg"),checked:yt,onChange:()=>i({linkTarget:!yt})}),React.createElement(Le.ToggleControl,{checked:Ra,onChange:()=>i({inheritFromTheme:!Ra}),label:Object(r.__)("Inherit From Theme","ultimate-addons-for-gutenberg")}),Ra&&("Astra"===Ea||Oa)&&React.createElement(Na,{setAttributes:i,label:Object(r.__)("Button Type","ultimate-addons-for-gutenberg"),data:{value:Ba,label:"buttonType"},options:[{value:"primary",label:Object(r.__)("Primary","ultimate-addons-for-gutenberg")},{value:"secondary",label:Object(r.__)("Secondary","ultimate-addons-for-gutenberg")}]})),React.createElement(tl,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:pt,label:"borderRadius"},tablet:{value:dt,label:"borderRadiusTablet"},mobile:{value:bt,label:"borderRadiusMobile"}},min:0,max:50,displayUnit:!1,setAttributes:i})),React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:Be,onChange:t=>{e.setAttributes({icon:t})}}),Be&&React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:ct,data:{value:ct,label:"iconSize"},min:0,max:30,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Icon Background Size","ultimate-addons-for-gutenberg"),setAttributes:i,value:$,data:{value:$,label:"connectorBgsize"},min:0,max:90,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Border Width","ultimate-addons-for-gutenberg"),setAttributes:i,value:Z,data:{value:Z,label:"borderwidth"},min:1,max:10,displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Connector Thickness","ultimate-addons-for-gutenberg"),setAttributes:i,value:q,data:{value:q,label:"separatorwidth"},min:1,max:10,displayUnit:!1}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Heading","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"headingColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:i,loadGoogleFonts:{value:x,label:"headLoadGoogleFonts"},fontFamily:{value:_,label:"headFontFamily"},fontWeight:{value:T,label:"headFontWeight"},fontStyle:{value:C,label:"headFontStyle"},fontSizeType:{value:y,label:"headFontSizeType"},fontSize:{value:f,label:"headFontSize"},fontSizeMobile:{value:v,label:"headFontSizeMobile"},fontSizeTablet:{value:h,label:"headFontSizeTablet"},lineHeightType:{value:S,label:"headLineHeightType"},lineHeight:{value:k,label:"headLineHeight"},lineHeightMobile:{value:P,label:"headLineHeightMobile"},lineHeightTablet:{value:w,label:"headLineHeightTablet"},letterSpacing:{value:Qt,label:"headLetterSpacing"},letterSpacingTablet:{value:ea,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:ta,label:"headLetterSpacingMobile"},letterSpacingType:{value:aa,label:"headLetterSpacingType"},transform:{value:Ht,label:"headTransform"},decoration:{value:Nt,label:"headDecoration"}}),React.createElement(tl,{label:Object(r.__)("Top Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Kt,label:"headTopSpacing"},tablet:{value:Jt,label:"headTopSpacingTablet"},mobile:{value:Xt,label:"headTopSpacingMobile"}},min:1,max:50,displayUnit:!1,setAttributes:i}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:I,label:"headSpace"},tablet:{value:V,label:"headSpaceTablet"},mobile:{value:W,label:"headSpaceMobile"}},min:0,max:100,displayUnit:!1,setAttributes:i})),he&&React.createElement(je,{title:Object(r.__)("Author","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Q||"",data:{value:Q,label:"authorColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:pe,label:"authorLoadGoogleFonts"},fontFamily:{value:ie,label:"authorFontFamily"},fontWeight:{value:oe,label:"authorFontWeight"},fontStyle:{value:ne,label:"authorFontStyle"},fontSizeType:{value:ee,label:"authorFontSizeType"},fontSize:{value:te,label:"authorFontSize"},fontSizeMobile:{value:le,label:"authorFontSizeMobile"},fontSizeTablet:{value:ae,label:"authorFontSizeTablet"},lineHeightType:{value:re,label:"authorLineHeightType"},lineHeight:{value:se,label:"authorLineHeight"},lineHeightMobile:{value:ue,label:"authorLineHeightMobile"},lineHeightTablet:{value:ce,label:"authorLineHeightTablet"},letterSpacing:{value:ma,label:"authorLetterSpacing"},letterSpacingTablet:{value:ya,label:"authorLetterSpacingTablet"},letterSpacingMobile:{value:fa,label:"authorLetterSpacingMobile"},letterSpacingType:{value:ha,label:"authorLetterSpacingType"},transform:{value:Ft,label:"authorTransform"},decoration:{value:It,label:"authorDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Y,label:"authorSpace"},tablet:{value:K,label:"authorSpaceTablet"},mobile:{value:J,label:"authorSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:i})),fe&&React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"subHeadingColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:i,loadGoogleFonts:{value:N,label:"subHeadLoadGoogleFonts"},fontFamily:{value:O,label:"subHeadFontFamily"},fontWeight:{value:L,label:"subHeadFontWeight"},fontStyle:{value:H,label:"subHeadFontStyle"},fontSizeType:{value:R,label:"subHeadFontSizeType"},fontSize:{value:B,label:"subHeadFontSize"},fontSizeMobile:{value:E,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:U,label:"subHeadFontSizeTablet"},lineHeightType:{value:F,label:"subHeadLineHeightType"},lineHeight:{value:j,label:"subHeadLineHeight"},lineHeightMobile:{value:D,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:z,label:"subHeadLineHeightTablet"},letterSpacing:{value:la,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:ia,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:oa,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:na,label:"subHeadLetterSpacingType"},transform:{value:jt,label:"subHeadTransform"},decoration:{value:Vt,label:"subHeadDecoration"}}),_e&&React.createElement(Qa,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),setAttributes:i,value:X,data:{value:X,label:"contentSpace"},min:0,max:50,displayUnit:!1})),ye&&React.createElement(je,{title:Object(r.__)("Date","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Oe||"",data:{value:Oe,label:"dateColor"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:i,loadGoogleFonts:{value:Ke,label:"dateLoadGoogleFonts"},fontFamily:{value:Ie,label:"dateFontFamily"},fontWeight:{value:Ve,label:"dateFontWeight"},fontStyle:{value:We,label:"dateFontStyle"},fontSizeType:{value:Fe,label:"dateFontSizeType"},fontSize:{value:ze,label:"dateFontSize"},fontSizeMobile:{value:Ne,label:"dateFontSizeMobile"},fontSizeTablet:{value:De,label:"dateFontSizeTablet"},lineHeightType:{value:qe,label:"dateLineHeightType"},lineHeight:{value:Ze,label:"dateLineHeight"},lineHeightMobile:{value:Ye,label:"dateLineHeightMobile"},lineHeightTablet:{value:$e,label:"dateLineHeightTablet"},letterSpacing:{value:ra,label:"dateLetterSpacing"},letterSpacingTablet:{value:sa,label:"dateLetterSpacingTablet"},letterSpacingMobile:{value:ca,label:"dateLetterSpacingMobile"},letterSpacingType:{value:ua,label:"dateLetterSpacingType"},transform:{value:zt,label:"dateTransform"},decoration:{value:Wt,label:"dateDecoration"}}),"center"!==La&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:de,label:"dateBottomspace"},tablet:{value:be,label:"dateBottomspaceTablet"},mobile:{value:me,label:"dateBottomspaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:i})),_e&&React.createElement(je,{title:Object(r.__)("CTA","ultimate-addons-for-gutenberg"),initialOpen:!1},!Ra&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:He||"",data:{value:He,label:"ctaColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:Re||"",data:{value:Re,label:"ctaBackground"},setAttributes:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:l,setAttributes:i,loadGoogleFonts:{value:st,label:"ctaLoadGoogleFonts"},fontFamily:{value:tt,label:"ctaFontFamily"},fontWeight:{value:at,label:"ctaFontWeight"},fontStyle:{value:lt,label:"ctaFontStyle"},fontSizeType:{value:Je,label:"ctaFontSizeType"},fontSize:{value:Xe,label:"ctaFontSize"},fontSizeMobile:{value:et,label:"ctaFontSizeMobile"},fontSizeTablet:{value:Qe,label:"ctaFontSizeTablet"},lineHeightType:{value:it,label:"ctaLineHeightType"},lineHeight:{value:ot,label:"ctaLineHeight"},lineHeightMobile:{value:rt,label:"ctaLineHeightMobile"},lineHeightTablet:{value:nt,label:"ctaLineHeightTablet"},letterSpacing:{value:pa,label:"ctaLetterSpacing"},letterSpacingTablet:{value:da,label:"ctaLetterSpacingTablet"},letterSpacingMobile:{value:ba,label:"ctaLetterSpacingMobile"},letterSpacingType:{value:ga,label:"ctaLetterSpacingType"},transform:{value:Dt,label:"ctaTransform"},decoration:{value:qt,label:"ctaDecoration"}})),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Zt,label:"ctaBottomSpacing"},tablet:{value:$t,label:"ctaBottomSpacingTablet"},mobile:{value:Yt,label:"ctaBottomSpacingMobile"}},min:1,max:50,displayUnit:!1,setAttributes:i})),React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"backgroundColor"},setAttributes:i})),(()=>{const e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"separatorColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:Ue||"",data:{value:Ue,label:"iconColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"separatorBg"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"separatorBorder"},setAttributes:i})),t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Connector Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"separatorFillColor"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:gt||"",data:{value:gt,label:"iconFocus"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Icon Background Color","ultimate-addons-for-gutenberg"),colorValue:mt||"",data:{value:mt,label:"iconBgFocus"},setAttributes:i}),React.createElement(hl,{label:Object(r.__)("Border Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"borderFocus"},setAttributes:i}));return React.createElement(je,{title:Object(r.__)("Connector","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"focus",title:Object(r.__)("Focus","ultimate-addons-for-gutenberg")}],normal:e,focus:t,disableBottomSeparator:!0}))})(),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,jP({},e,{label:Object(r.__)("Post Padding","ultimate-addons-for-gutenberg"),valueTop:{value:Tt,label:"topPadding"},valueRight:{value:Ct,label:"rightPadding"},valueBottom:{value:St,label:"bottomPadding"},valueLeft:{value:kt,label:"leftPadding"},valueTopTablet:{value:wt,label:"topPaddingTablet"},valueRightTablet:{value:Pt,label:"rightPaddingTablet"},valueBottomTablet:{value:xt,label:"bottomPaddingTablet"},valueLeftTablet:{value:At,label:"leftPaddingTablet"},valueTopMobile:{value:Gt,label:"topPaddingMobile"},valueRightMobile:{value:Mt,label:"rightPaddingMobile"},valueBottomMobile:{value:Rt,label:"bottomPaddingMobile"},valueLeftMobile:{value:Bt,label:"leftPaddingMobile"},unit:{value:Ut,label:"paddingUnit"},mUnit:{value:Et,label:"mobilePaddingUnit"},tUnit:{value:Ot,label:"tabletPaddingUnit"},attributes:e,setAttributes:i,link:{value:Lt,label:"paddingLink"}})),React.createElement(tl,{label:Object(r.__)("Gap Between Posts","ultimate-addons-for-gutenberg"),data:{desktop:{value:va,label:"verticalSpace",unit:{value:Ca,label:"verticalSpaceUnit"}},tablet:{value:_a,label:"verticalSpaceTablet",unit:{value:Sa,label:"verticalSpaceUnitTablet"}},mobile:{value:Ta,label:"verticalSpaceMobile",unit:{value:ka,label:"verticalSpaceUnitMobile"}}},min:0,limitMax:{px:100,"%":100,em:100},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:i}),React.createElement(tl,{label:Object(r.__)("Post - Marker Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:wa,label:"horizontalSpace",unit:{value:Aa,label:"horizontalSpaceUnit"}},tablet:{value:Pa,label:"horizontalSpaceTablet",unit:{value:Ga,label:"horizontalSpaceUnitTablet"}},mobile:{value:xa,label:"horizontalSpaceMobile",unit:{value:Ma,label:"horizontalSpaceUnitMobile"}}},min:0,limitMax:{px:50,"%":100,em:50},units:[{name:Object(r.__)("PX","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:i}))),React.createElement(il,jP({},rl,{parentProps:e})))))}),NP=Object(B.memo)(e=>{const t=e.attributes.headingTag,{post:a,attributes:l}=e;let i="_self";return l.linkTarget&&(i="_blank"),React.createElement(t,{className:"uagb-timeline__heading"},React.createElement("a",{href:a.link,target:i,rel:"noopener noreferrer"},Object(Zw.decodeEntities)(a.title.rendered.trim())))}),IP=Object(B.memo)(e=>{const{post:t,attributes:a}=e;if(a.displayPostImage&&void 0!==t.uagb_featured_image_src&&a.imageSize&&t.uagb_featured_image_src[a.imageSize]){const e=t.uagb_featured_image_src[a.imageSize];let l="_self";return a.linkTarget&&(l="_blank"),React.createElement("a",{href:t.link,target:l,rel:"noopener noreferrer",style:{textAlign:a.align},className:"uagb-timeline__image"},React.createElement("img",{src:e[0],alt:Object(Zw.decodeEntities)(t.title.rendered.trim())||Object(r.__)("(Untitled)","ultimate-addons-for-gutenberg")}))}return null}),VP=Object(B.memo)(e=>{const{post:t,attributes:a}=e,l=us(a.contentSpace,"contentSpace","post-timeline"),i=us(a.exerptLength,"exerptLength","post-timeline");let o;if(a.displayPostExcerpt&&t.uagb_excerpt){o=t.uagb_excerpt.split(/\s+/).slice(0,i).join(" ");let e="";return a.displayPostLink&&(e=l+"px"),React.createElement("div",{className:"uagb-timeline-desc-content",dangerouslySetInnerHTML:{__html:o},style:{marginBottom:e}})}return null}),WP=Object(B.memo)(e=>{const{post:t,attributes:a,setAttributes:l}=e;let i="_self";a.linkTarget&&(i="_blank");const o=a.inheritFromTheme&&"secondary"===a.buttonType,n=o?{borderWidth:"revert-layer"}:{},r="uagb-timeline__link "+(o?"ast-outline-button":"wp-block-button__link"),s=o?"div":"a";return a.displayPostLink?"not_set"!==l?React.createElement("div",{className:"uagb-timeline__link_parent wp-block-button"},React.createElement(ge.RichText,{value:a.readMoreText.replace(/(<([^>]+)>)/gi,""),onChange:e=>{l({readMoreText:e})},tagName:s,className:r,href:t.link,target:i,rel:"noopener noreferrer",style:n})):React.createElement("div",{className:"uagb-timeline__link_parent wp-block-button"},React.createElement("a",{className:"uagb-timeline__link wp-block-button__link",href:t.link,target:i,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:a.readMoreText.replace(/(<([^>]+)>)/gi,"")}))):null}),qP=Object(B.memo)(e=>{const{post:t,attributes:a}=e;let l="_self";return a.linkTarget&&(l="_blank"),React.createElement(React.Fragment,null,a.displayPostAuthor&&void 0!==t.uagb_author_info&&React.createElement(React.Fragment,null,React.createElement("span",{className:"dashicons-admin-users dashicons"}),React.createElement("a",{className:"uagb-timeline__author-link",target:l,href:t.uagb_author_info.author_link,rel:"noopener noreferrer"},t.uagb_author_info.display_name)))}),ZP=Object(B.memo)(e=>{const{post:t,attributes:a,dateClass:l}=e;return React.createElement(React.Fragment,null,React.createElement("div",{dateTime:Object(Ry.format)("c",t.date_gmt),className:l,style:{color:a.dateColor}},a.displayPostDate&&t.date_gmt&&Object(Ry.dateI18n)(a.dateFormat,t.date_gmt)))}),$P=Object(B.memo)(e=>{const{attributes:t}=e;return React.createElement("div",{className:"uagb-timeline__marker uagb-timeline__out-view-icon uagb-timeline__icon-new"},Ce(t.icon)?Ce(t.icon):React.createElement("svg",{xmlns:"",viewBox:"0 0 256 512"}))}),YP=a(133),KP=0,JP={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},XP={};XP.locals=YP.a.locals||{},XP.use=function(){return KP++||(zP=we()(YP.a,JP)),XP},XP.unuse=function(){KP>0&&!--KP&&(zP(),zP=null)};var QP=XP,ex=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(QP.use(),()=>{QP.unuse()}),[]);const{latestPosts:t,attributes:a,className:l,setAttributes:i,deviceType:o,name:n}=e,s=n.replace("uagb/",""),{displayPostLink:c,postsToShow:u,block_id:p}=a,d=void 0!==a["timelinAlignment"+o]?a["timelinAlignment"+o]:a.timelinAlignment,b=us(u,"postsToShow",s);let g="";return c&&(g="uagb_timeline__cta-enable"),React.createElement("div",{className:Be()(l,"uagb-timeline__outer-wrap","uagb-timeline__content-wrap","uagb-editor-preview-mode-"+o.toLowerCase(),"uagb-block-"+p,g,...gf(e.attributes,o))},(()=>{if(!Array.isArray(t)||!t.length)return React.createElement(Le.Placeholder,{icon:"admin-post",label:Object(r.__)("Post Timeline","ultimate-addons-for-gutenberg")},Array.isArray(t)?Object(r.__)("No posts found.","ultimate-addons-for-gutenberg"):React.createElement(Le.Spinner,null));const l=t.length>b?t.slice(0,b):t;let n=mf(e.attributes,0,o),s=yf(e.attributes,0,o),c=!1;return React.createElement(React.Fragment,null,l.map((t,l)=>("center"===d&&(c=!0,n=mf(e.attributes,l,o),s=yf(e.attributes,l,o)),React.createElement("article",{className:Be()("uagb-timeline__field ",n),key:l},React.createElement($P,{attributes:a}),React.createElement("div",{className:Be()(s,"uagb-timeline__events-inner-new")},React.createElement("div",{className:"uagb-timeline__events-inner--content"},React.createElement(ZP,{post:t,attributes:a,dateClass:"uagb-timeline__date-hide uagb-timeline__inner-date-new"}),React.createElement(IP,{post:t,attributes:a}),React.createElement(NP,{post:t,attributes:a}),React.createElement(qP,{post:t,attributes:a}),React.createElement(VP,{post:t,attributes:a}),React.createElement(WP,{post:t,attributes:a,setAttributes:i}),React.createElement("div",{className:"uagb-timeline__arrow"}))),c&&React.createElement(React.Fragment,null,React.createElement(ZP,{post:t,attributes:a,dateClass:"uagb-timeline__date-new"}))))))})(),React.createElement("div",{className:"uagb-timeline__line"},React.createElement("div",{className:"uagb-timeline__line__inner"})))});function tx(){return(tx=Object.assign||function(e){for(var t=1;t{const{isSelected:t,setAttributes:a,attributes:l,name:i,clientId:o,deviceType:r,attributes:{categories:s,postsToShow:c,order:u,orderBy:p,postType:d,taxonomyType:b,excludeCurrentPost:g,allTaxonomyStore:m,timelinAlignment:y,stack:f,timelinAlignmentTablet:h,timelinAlignmentMobile:v,UAGHideDesktop:_,UAGHideTab:T,UAGHideMob:C,dateFontSizeType:S,dateFontSize:w,dateFontSizeTablet:P,dateFontSizeMobile:x,dateFontsizeType:A,dateFontsize:G,dateFontsizeTablet:M,dateFontsizeMobile:R}}=e,[U,E]=Object(B.useState)(!1);Object(B.useEffect)(()=>{y&&("none"===f?(void 0===h&&a({timelinAlignmentTablet:y}),void 0===v&&a({timelinAlignmentMobile:y})):(void 0===h&&"tablet"===f&&(a({timelinAlignmentTablet:"left"}),a({timelinAlignmentMobile:"left"})),void 0===v&&"mobile"===f&&(a({timelinAlignmentMobile:"left"}),a({timelinAlignmentTablet:y}))))},[]),Object(B.useEffect)(()=>{void 0===S&&a({dateFontSizeType:A}),void 0===w&&a({dateFontSize:G}),void 0===P&&a({dateFontSizeTablet:M}),void 0===x&&a({dateFontSizeMobile:R})},[]),Object(B.useEffect)(()=>{he(e)},[_,T,C,r]),Object(B.useEffect)(()=>{const e=new CustomEvent("UAGTimelineEditor",{detail:{}});document.dispatchEvent(e)},[e,r]),Object(B.useEffect)(()=>{ys()},[r]);let O=[];const{latestPosts:L,taxonomyList:H,block:F}=Object(n.useSelect)(e=>{const t=us(c,"postsToShow","post-timeline"),{getEntityRecords:l}=e("core");m||U||(E(!0),k()({path:"/spectra/v1/all_taxonomy"}).then(e=>{a({allTaxonomyStore:e}),E(!1)}));const i=m?m[d]:void 0;let o="";void 0!==i&&(void 0!==i.taxonomy[b]&&(o=!1===i.taxonomy[b].rest_base||null===i.taxonomy[b].rest_base?i.taxonomy[b].name:i.taxonomy[b].rest_base),""!==b&&void 0!==i.terms&&void 0!==i.terms[b]&&(O=i.terms[b]));const n={order:u,orderby:p,per_page:t};if(g){const t=e("core/editor");n.exclude=null!=t&&t.getCurrentPostId?t.getCurrentPostId():null}const r=[],y=parseInt(s);r.push(y);const f=O.length;for(let e=0;e{r.push(e)});return void 0!==s&&""!==s&&(n[o]=void 0===s||""===s?s:r),{latestPosts:l("postType",d,n),categoriesList:O,taxonomyList:void 0!==i?i.taxonomy:[]}}),j=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,dateBottomspace:r,dateBottomspaceTablet:s,dateBottomspaceMobile:c,backgroundColor:u,separatorColor:p,separatorFillColor:d,separatorBg:b,separatorBorder:g,borderFocus:m,separatorwidth:y,borderwidth:f,connectorBgsize:h,borderRadius:v,borderRadiusTablet:_,borderRadiusMobile:T,iconColor:C,dateFontSizeType:S,dateFontSize:k,dateFontSizeTablet:w,dateFontSizeMobile:P,dateFontFamily:x,dateFontWeight:A,dateLineHeightType:G,dateLineHeight:M,dateLineHeightTablet:R,dateLineHeightMobile:B,dateColor:U,iconSize:E,iconFocus:O,iconBgFocus:L,headFontSizeType:H,headFontSize:F,headFontSizeTablet:j,headFontSizeMobile:z,headFontFamily:D,headFontWeight:N,headLineHeightType:I,headLineHeight:V,headLineHeightTablet:W,headLineHeightMobile:q,align:Z,alignTablet:$,alignMobile:Y,headingColor:K,headSpace:J,headSpaceTablet:X,headSpaceMobile:Q,subHeadFontSizeType:ee,subHeadFontSize:te,subHeadFontSizeTablet:le,subHeadFontSizeMobile:ie,subHeadFontFamily:oe,subHeadFontWeight:ne,subHeadLineHeightType:re,subHeadLineHeight:se,subHeadLineHeightTablet:ce,subHeadLineHeightMobile:ue,subHeadingColor:pe,authorSpace:de,authorSpaceTablet:be,authorSpaceMobile:ge,authorColor:me,authorFontSizeType:ye,authorFontSize:fe,authorFontSizeTablet:he,authorFontSizeMobile:ve,authorFontFamily:_e,authorFontWeight:Te,authorLineHeightType:Ce,authorLineHeight:Se,authorLineHeightTablet:ke,authorLineHeightMobile:we,ctaColor:Pe,ctaFontSizeType:xe,ctaFontSize:Ae,ctaFontSizeTablet:Ge,ctaFontSizeMobile:Me,ctaFontFamily:Re,ctaFontWeight:Be,ctaLineHeightType:Ue,ctaLineHeight:Ee,ctaLineHeightTablet:Oe,ctaLineHeightMobile:Le,ctaBackground:He,topMarginMobile:Fe,rightMarginMobile:je,bottomMarginMobile:ze,leftMarginMobile:De,mobileMarginUnit:Ne,topPadding:Ie,rightPadding:Ve,bottomPadding:We,leftPadding:qe,topPaddingTablet:Ze,rightPaddingTablet:$e,bottomPaddingTablet:Ye,leftPaddingTablet:Ke,topPaddingMobile:Je,rightPaddingMobile:Xe,bottomPaddingMobile:Qe,leftPaddingMobile:et,paddingUnit:tt,mobilePaddingUnit:at,tabletPaddingUnit:lt,headFontStyle:it,authorFontStyle:ot,subHeadFontStyle:nt,dateFontStyle:rt,ctaFontStyle:st,headTransform:ct,authorTransform:ut,subHeadTransform:pt,dateTransform:dt,ctaTransform:bt,headDecoration:gt,authorDecoration:mt,subHeadDecoration:yt,dateDecoration:ft,ctaDecoration:ht,ctaBottomSpacing:vt,ctaBottomSpacingTablet:_t,ctaBottomSpacingMobile:Tt,headTopSpacing:Ct,headTopSpacingTablet:St,headTopSpacingMobile:kt,headLetterSpacing:wt,headLetterSpacingTablet:Pt,headLetterSpacingMobile:xt,headLetterSpacingType:At,subHeadLetterSpacing:Gt,subHeadLetterSpacingTablet:Mt,subHeadLetterSpacingMobile:Rt,subHeadLetterSpacingType:Bt,dateLetterSpacing:Ut,dateLetterSpacingTablet:Et,dateLetterSpacingMobile:Ot,dateLetterSpacingType:Lt,ctaLetterSpacing:Ht,ctaLetterSpacingTablet:Ft,ctaLetterSpacingMobile:jt,ctaLetterSpacingType:zt,authorLetterSpacing:Dt,authorLetterSpacingTablet:Nt,authorLetterSpacingMobile:It,authorLetterSpacingType:Vt,verticalSpace:Wt,verticalSpaceTablet:qt,verticalSpaceMobile:Zt,verticalSpaceUnit:$t,verticalSpaceUnitTablet:Yt,verticalSpaceUnitMobile:Kt,horizontalSpace:Jt,horizontalSpaceTablet:Xt,horizontalSpaceMobile:Qt,horizontalSpaceUnit:ea,horizontalSpaceUnitTablet:ta,horizontalSpaceUnitMobile:aa,inheritFromTheme:la}=e,ia=us(E,"iconSize",i),oa=us(h,"connectorBgsize",i),na=us(f,"borderwidth",i),ra=us(y,"separatorwidth",i),sa=us(v,"borderRadius",i),ca=us(Ct,"headTopSpacing",i),ua=us(J,"headSpace",i),pa=us(de,"authorSpace",i),da=us(r,"dateBottomspace",i),ba=us(vt,"ctaBottomSpacing",i);let ga={" .uagb-timeline__heading":{"font-size":Vr(F,H),"font-family":D,"font-weight":N,"line-height":Vr(V,I),"font-style":it,"text-decoration":gt,"text-transform":ct,"text-align":Z,color:K,"margin-bottom":Vr(ua,"px"),"margin-top":Vr(ca,"px"),"letter-spacing":Vr(wt,At)}," .uagb-timeline__heading a":{"font-size":Vr(F,H),"font-family":D,"font-weight":N,"line-height":Vr(V,I),"font-style":it,"text-decoration":gt,"text-transform":ct,"text-align":Z,color:K,"margin-bottom":Vr(ua,"px"),"letter-spacing":Vr(wt,At)}," .uagb-timeline-desc-content":{"font-size":Vr(te,ee),"font-family":oe,"font-weight":ne,"line-height":Vr(se,re),"font-style":nt,"text-decoration":yt,"text-transform":pt,"text-align":Z,color:pe,"margin-top":Vr(pa,"px"),"letter-spacing":Vr(Gt,Bt)}," .uagb-timeline__author-link + .uagb-timeline__link_parent":{"margin-top":Vr(pa,"px")}," .uagb-timeline__day-new":{"text-align":Z}," .uagb-timeline__date-inner":{"text-align":Z},".uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u},".uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-left-color":u},".uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u},".uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after":{"border-right-color":u}," .uagb-timeline__line__inner":{"background-color":d}," .uagb-timeline__line":{"background-color":p,width:Vr(ra,"px")},".uagb-timeline__right-block .uagb-timeline__line":{right:"calc( "+oa+"px / 2 )"},".uagb-timeline__left-block .uagb-timeline__line":{left:"calc( "+oa+"px / 2 )"},".uagb-timeline__center-block .uagb-timeline__line":{right:"calc( "+oa+"px / 2 )"}," .uagb-timeline__marker":{"background-color":b,"min-height":Vr(oa,"px"),"min-width":Vr(oa,"px"),"line-height":Vr(oa,"px"),border:na+"px solid"+g},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(Jt,ea),"margin-right":Vr(Jt,ea)},".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(oa,"px")},".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(oa,"px")},".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow":{height:Vr(oa,"px")},".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow":{height:Vr(oa,"px")}," .uagb-timeline__field:not(:last-child)":{"margin-bottom":Vr(Wt,$t)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"margin-bottom":Vr(da,"px"),color:U,"font-size":Vr(k,S),"font-family":x,"font-weight":A,"line-height":Vr(M,G),"font-style":rt,"text-decoration":ft,"text-transform":dt,"text-align":Z,"letter-spacing":Vr(Ut,Lt)}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"margin-bottom":Vr(da,"px"),color:U,"font-size":Vr(k,S),"font-family":x,"font-weight":A,"line-height":Vr(M,G),"font-style":rt,"text-decoration":ft,"text-transform":dt,"text-align":Z,"letter-spacing":Vr(Ut,Lt)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(Jt,ea)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(Jt,ea)}," .uagb-timeline__date-new":{color:U,"font-size":Vr(k,S),"font-family":x,"font-weight":A,"line-height":Vr(M,G),"font-style":rt,"text-decoration":ft,"text-transform":dt,"letter-spacing":Vr(Ut,Lt)}," .uagb-timeline__events-inner-new":{"background-color":u,"border-radius":Vr(sa,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(qe,tt),"padding-right":Vr(Ve,tt),"padding-top":Vr(Ie,tt),"padding-bottom":Vr(We,tt)}," svg":{color:C,"font-size":Vr(ia,"px"),width:Vr(ia,"px")}," .uagb-timeline__marker.uagb-timeline__in-view-icon":{background:L,"border-color":m}," .uagb-timeline__marker.uagb-timeline__in-view-icon svg":{color:O,fill:O}," .uagb-timeline__icon-new svg":{fill:C}," .dashicons-admin-users":{"font-size":Vr(fe,ye),"font-weight":Te,"line-height":Vr(Se,Ce),color:me,"font-style":ot,"text-decoration":mt,"text-transform":ut,"letter-spacing":Vr(Dt,Vt)}," .uagb-timeline__author-link":{"font-size":Vr(fe,ye),"font-family":_e,"font-weight":Te,"line-height":Vr(Se,Ce),color:me,"font-style":ot,"text-decoration":mt,"text-transform":ut,"text-align":Z,"letter-spacing":Vr(Dt,Vt)}," .uagb-timeline__link_parent":{"text-align":Z}," .uagb-timeline__link":{"text-align":Z,"margin-bottom":Vr(ba,"px")}},ma={" .uagb-timeline__day-new":{"text-align":$}," .uagb-timeline__date-inner":{"text-align":$}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":$,"font-size":Vr(w,S),"line-height":Vr(R,G),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Et,Lt)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"text-align":$,"font-size":Vr(w,S),"line-height":Vr(R,G),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Et,Lt)}," .uagb-timeline__date-new":{"font-size":Vr(w,S),"line-height":Vr(R,G),"margin-bottom":Vr(s,"px"),"letter-spacing":Vr(Et,Lt)}," .uagb-timeline__heading":{"text-align":$,"font-size":Vr(j,H),"line-height":Vr(W,I),"margin-bottom":Vr(X,"px"),"margin-top":Vr(St,"px"),"letter-spacing":Vr(Pt,At)}," .uagb-timeline__heading a":{"text-align":$,"font-size":Vr(j,H),"line-height":Vr(W,I),"margin-bottom":Vr(X,"px"),"margin-top":Vr(St,"px"),"letter-spacing":Vr(Pt,At)}," .uagb-timeline-desc-content":{"text-align":$,"font-size":Vr(le,ee),"line-height":Vr(ce,re),"margin-top":Vr(be,"px"),"letter-spacing":Vr(Mt,Bt)}," .uagb-timeline__author-link + .uagb-timeline__link_parent":{"margin-top":Vr(be,"px")},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(Xt,ta),"margin-right":Vr(Xt,ta)},".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(Xt,ta)},".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-right":Vr(Xt,ta)},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-right-color":u},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author-link":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a":{"text-align":$},".uagb-timeline__center-block.uagb-timeline__responsive-tablet a.uagb-timeline__image":{"text-align":$}," .dashicons-admin-users":{"font-size":Vr(he,ye),"line-height":Vr(ke,Ce),"letter-spacing":Vr(Nt,Vt)}," .uagb-timeline__link_parent":{"text-align":$}," .uagb-timeline__author-link":{"text-align":$,"font-size":Vr(he,ye),"line-height":Vr(ke,Ce),"letter-spacing":Vr(Nt,Vt)}," .uagb-timeline__link":{"text-align":$,"margin-bottom":Vr(_t,"px")}," .uagb-timeline__events-inner-new":{"border-radius":Vr(_,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(Ke,lt),"padding-right":Vr($e,lt),"padding-top":Vr(Ze,lt),"padding-bottom":Vr(Ye,lt)}," .uagb-timeline__field:not(:last-child)":{"margin-bottom":Vr(qt,Yt)}},ya={" .uagb-timeline__day-new":{"text-align":Y}," .uagb-timeline__date-inner":{"text-align":Y}," .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":Y,"font-size":Vr(P,S),"line-height":Vr(B,G),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ot,Lt)}," .uagb-timeline__date-hide.uagb-timeline__inner-date-new":{"text-align":Y,"font-size":Vr(P,S),"line-height":Vr(B,G),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ot,Lt)}," .uagb-timeline__date-new":{"font-size":Vr(P,S),"line-height":Vr(B,G),"margin-bottom":Vr(c,"px"),"letter-spacing":Vr(Ot,Lt)}," .uagb-timeline__heading":{"text-align":Y,"font-size":Vr(z,H),"line-height":Vr(q,I),"margin-bottom":Vr(Q,"px"),"margin-top":Vr(kt,"px"),"letter-spacing":Vr(xt,At)}," .uagb-timeline__heading a":{"text-align":Y,"font-size":Vr(z,H),"line-height":Vr(q,I),"margin-bottom":Vr(Q,"px"),"margin-top":Vr(kt,"px"),"letter-spacing":Vr(xt,At)}," .uagb-timeline-desc-content":{"text-align":Y,"font-size":Vr(ie,ee),"line-height":Vr(ue,re),"margin-top":Vr(ge,"px"),"letter-spacing":Vr(Rt,Bt)}," .uagb-timeline__author-link + .uagb-timeline__link_parent":{"margin-top":Vr(ge,"px")},".uagb-timeline__center-block .uagb-timeline__marker":{"margin-left":Vr(Qt,aa),"margin-right":Vr(Qt,aa)},".uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left":{"margin-left":Vr(De,Ne),"margin-right":Vr(je,Ne),"margin-top":Vr(Fe,Ne),"margin-bottom":Vr(ze,Ne)},".uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right":{"margin-left":Vr(De,Ne),"margin-right":Vr(je,Ne),"margin-top":Vr(Fe,Ne),"margin-bottom":Vr(ze,Ne)},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after":{"border-right-color":u},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author-link":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a":{"text-align":Y},".uagb-timeline__center-block.uagb-timeline__responsive-mobile a.uagb-timeline__image":{"text-align":Y}," .dashicons-admin-users":{"font-size":Vr(ve,ye),"line-height":Vr(we,Ce),"letter-spacing":Vr(It,Vt)}," .uagb-timeline__link_parent":{"text-align":Y}," .uagb-timeline__author-link":{"text-align":Y,"font-size":Vr(ve,ye),"line-height":Vr(we,Ce),"letter-spacing":Vr(It,Vt)}," .uagb-timeline__link":{"text-align":Y,"margin-bottom":Vr(Tt,"px")}," .uagb-timeline__events-inner--content":{"padding-left":Vr(et,at),"padding-right":Vr(Xe,at),"padding-top":Vr(Je,at),"padding-bottom":Vr(Qe,at)}," .uagb-timeline__events-inner-new":{"border-radius":Vr(T,"px")}," .uagb-timeline__field:not(:last-child)":{"margin-bottom":Vr(Zt,Kt)}};la||(ga={...ga," .uagb-timeline__link_parent .uagb-timeline__link":{"font-size":Vr(Ae,xe),"font-family":Re,"font-weight":Be,"line-height":Vr(Ee,Ue),color:Pe,"background-color":He,"font-style":st,"text-decoration":ht,"text-transform":bt,"letter-spacing":Vr(Ht,zt)}},ma={...ma," .uagb-timeline__link_parent .uagb-timeline__link":{"font-size":Vr(Ge,xe),"line-height":Vr(Oe,Ue),"letter-spacing":Vr(Ft,zt)}},ya={...ya," .uagb-timeline__link_parent .uagb-timeline__link":{"font-size":Vr(Me,xe),"line-height":Vr(Le,Ue),"letter-spacing":Vr(jt,zt)}});let fa="";const ha=`.editor-styles-wrapper .uagb-block-${n}.uagb-timeline__outer-wrap`;return fa=ae(ga,ha),"tablet"!==o&&"mobile"!==o||(fa+=ae(ma,""+ha,!0,"tablet"),"mobile"===o&&(fa+=ae(ya,""+ha,!0,"mobile"))),fa}(l,0,i,r),[l,r]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:j}),React.createElement(FP,{attributes:l}),t&&React.createElement(DP,tx({},e,{taxonomyList:H,categoriesList:O})),React.createElement(ex,tx({},e,{latestPosts:L})))});let lx={};lx=Object(F.applyFilters)("uagb/post-timeline",ss(lx)),Object(de.registerBlockType)("uagb/post-timeline",{...lx,title:Object(r.__)("Post Timeline","ultimate-addons-for-gutenberg"),description:Object(r.__)("Create an attractive timeline to display your posts.","ultimate-addons-for-gutenberg"),icon:se.post_timeline,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("timeline","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"post-timeline"}):React.createElement(ax,e),save:()=>null});const ix=[{defaultAttributes:Pt},{defaultChildAttributes:xt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"side"},{label:"imageAlignment",value:"middle"},{label:"imageWidth",value:150},{label:"imageWidthTablet",value:150},{label:"imageWidthMobile",value:150},{label:"imgPaddingRight",value:10},{label:"imgPaddingRightTablet",value:10},{label:"imgPaddingRightMobile",value:10},{label:"columnGap",value:50},{label:"columnGapTablet",value:50},{label:"columnGapMobile",value:50},{label:"contentPaddingTop",value:25},{label:"contentPaddingTopTablet",value:25},{label:"contentPaddingTopMobile",value:25},{label:"contentPaddingBottom",value:35},{label:"contentPaddingBottomTablet",value:35},{label:"contentPaddingBottomTablet",value:35},{label:"headingAlign",value:""},{label:"seperatorStyle",value:"dashed"},{label:"seperatorWidth",value:100},{label:"seperatorWidthTablet",value:100},{label:"seperatorWidthMobile",value:100},{label:"seperatorThickness",value:1},{label:"imgPaddingBottom",value:""},{label:"imgPaddingBottomTablet",value:""},{label:"imgPaddingBottomMobile",value:25},{label:"imagePosition",value:"left"},{label:"stack",value:"mobile"},{label:"showImage",value:!0}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"top"},{label:"headingAlign",value:"center"},{label:"imageWidth",value:150},{label:"imageWidthTablet",value:140},{label:"imageWidthMobile",value:130},{label:"seperatorStyle",value:"none"},{label:"imgPaddingBottom",value:20},{label:"imgPaddingBottomTablet",value:20},{label:"imgPaddingBottomMobile",value:20},{label:"columnGap",value:40},{label:"columnGapTablet",value:40},{label:"columnGapMobile",value:40},{label:"contentPaddingTop",value:5},{label:"contentPaddingTopTablet",value:5},{label:"contentPaddingTopMobile",value:5},{label:"contentPaddingBottom",value:5},{label:"contentPaddingBottomTablet",value:5},{label:"contentPaddingBottomMobile",value:5},{label:"imageAlignment",value:""},{label:"imgPaddingTop",value:10},{label:"imgPaddingTopTablet",value:""},{label:"imgPaddingTopMobile",value:""},{label:"imgPaddingRight",value:""},{label:"imgPaddingRightTablet",value:""},{label:"imgPaddingRightMobile",value:""},{label:"showImage",value:!0}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"top"},{label:"headingAlign",value:"center"},{label:"seperatorStyle",value:"solid"},{label:"seperatorWidth",value:33},{label:"seperatorWidthTablet",value:33},{label:"seperatorWidthMobile",value:33},{label:"seperatorThickness",value:1},{label:"columnGap",value:40},{label:"columnGapTablet",value:40},{label:"columnGapMobile",value:40},{label:"contentPaddingTop",value:10},{label:"contentPaddingTopTablet",value:10},{label:"contentPaddingTopMobile",value:10},{label:"contentPaddingBottom",value:10},{label:"contentPaddingBottomTablet",value:10},{label:"contentPaddingBottomMobile",value:10},{label:"imageAlignment",value:""},{label:"showImage",value:!1}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"imgAlign",value:"side"},{label:"headingAlign",value:"center"},{label:"seperatorStyle",value:"solid"},{label:"seperatorWidth",value:33},{label:"seperatorWidthTablet",value:33},{label:"seperatorWidthMobile",value:33},{label:"seperatorThickness",value:1},{label:"columnGap",value:50},{label:"columnGapTablet",value:50},{label:"columnGapMobile",value:50},{label:"contentPaddingTop",value:10},{label:"contentPaddingTopTablet",value:10},{label:"contentPaddingTopMobile",value:10},{label:"contentPaddingBottom",value:10},{label:"contentPaddingBottomTablet",value:10},{label:"contentPaddingBottomMobile",value:10},{label:"imageAlignment",value:""},{label:"imagePosition",value:"left"},{label:"showImage",value:!1}],icon:' '}];var ox=Object(F.applyFilters)("uag_price_list_presets",ix);function nx(){return(nx=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l,clientId:i}=e,{menu_item_count:o,titleSpace:s,titleSpaceTablet:c,titleSpaceMobile:u,columns:p,tcolumns:d,mcolumns:b,rowGap:g,rowGapTablet:m,rowGapMobile:y,columnGap:f,columnGapTablet:h,columnGapMobile:v,priceColor:_,descColor:T,titleColor:C,seperatorStyle:S,seperatorWidth:k,seperatorWidthTablet:w,seperatorWidthMobile:P,seperatorThickness:x,seperatorColor:A,priceLoadGoogleFonts:G,titleLoadGoogleFonts:M,descLoadGoogleFonts:R,titleFontSizeType:U,titleFontSize:E,titleFontSizeTablet:O,titleFontSizeMobile:L,titleFontFamily:H,titleFontWeight:F,titleFontStyle:j,titleLineHeightType:z,titleLineHeight:D,titleLineHeightTablet:N,titleLineHeightMobile:I,priceFontSizeType:V,priceFontSize:W,priceFontSizeTablet:q,priceFontSizeMobile:Z,priceFontFamily:$,priceFontWeight:Y,priceFontStyle:K,priceLineHeightType:J,priceLineHeight:X,priceLineHeightTablet:Q,priceLineHeightMobile:ee,descFontSizeType:te,descFontSize:ae,descFontSizeTablet:le,descFontSizeMobile:ie,descFontFamily:oe,descFontWeight:ne,descFontStyle:re,descLineHeightType:se,descLineHeight:ce,descLineHeightTablet:ue,descLineHeightMobile:pe,headingTag:de,imagePosition:be,imageAlignment:me,imageSize:ye,imageWidth:fe,imageWidthTablet:he,imageWidthMobile:ve,stack:_e,imageWidthType:Te,seperatorWidthType:Se,rowGapType:ke,columnGapType:we,titleSpaceType:Pe,contentPaddingTop:xe,contentPaddingRight:Ae,contentPaddingBottom:Ge,contentPaddingLeft:Me,contentPaddingTopTablet:Re,contentPaddingRightTablet:Be,contentPaddingBottomTablet:Ue,contentPaddingLeftTablet:Oe,contentPaddingTopMobile:He,contentPaddingRightMobile:Fe,contentPaddingBottomMobile:ze,contentPaddingLeftMobile:De,contentPaddingUnit:Ne,contentMobilePaddingUnit:Ie,contentTabletPaddingUnit:Ve,contentSpacingLink:We,imgPaddingTop:qe,imgPaddingRight:Ze,imgPaddingBottom:$e,imgPaddingLeft:Ye,imgPaddingTopTablet:Ke,imgPaddingRightTablet:Je,imgPaddingBottomTablet:Xe,imgPaddingLeftTablet:Qe,imgPaddingTopMobile:et,imgPaddingRightMobile:tt,imgPaddingBottomMobile:at,imgPaddingLeftMobile:lt,imgPaddingUnit:it,imgMobilePaddingUnit:ot,imgTabletPaddingUnit:nt,imgSpacingLink:rt,titleTransform:st,titleDecoration:ct,descTransform:ut,descDecoration:pt,priceTransform:dt,priceDecoration:bt,headingAlign:gt,imgAlign:mt,descLetterSpacing:yt,descLetterSpacingTablet:ft,descLetterSpacingMobile:ht,descLetterSpacingType:vt,priceLetterSpacing:_t,priceLetterSpacingTablet:Tt,priceLetterSpacingMobile:Ct,priceLetterSpacingType:St,titleLetterSpacing:kt,titleLetterSpacingTablet:wt,titleLetterSpacingMobile:Pt,titleLetterSpacingType:xt,showImage:At}=a;Object(B.useEffect)(()=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(e=>{e.attributes.imageWidth=fe})},[fe]);const Gt=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"columns"},tablet:{value:d,label:"tcolumns"},mobile:{value:b,label:"mcolumns"}},min:1,max:Math.min(3,o),displayUnit:!1,setAttributes:t,onChange:(Mt=p,Rt=d,Bt=b,void Object(n.select)("core/block-editor").getBlocks(i).forEach(e=>{e.attributes.columns=Mt,e.attributes.tcolumns=Rt,e.attributes.mcolumns=Bt}))}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:de,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}],onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.headingTag=e}),t({headingTag:e})}}))),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Image","ultimate-addons-for-gutenberg"),checked:At,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.showImage=e}),t({showImage:e})}}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:mt,label:"imgAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:"Top"},{value:"side",label:"Side"}],showIcons:!1,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imgAlign=e}),t({imgAlign:e})}}),"side"===mt&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:be,label:"imagePosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imagePosition=e}),t({imagePosition:e})}}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack on","ultimate-addons-for-gutenberg"),data:{value:_e,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:"None"},{value:"tablet",label:"Tablet"},{value:"mobile",label:"Mobile"}],help:Object(r.__)("Note: Choose on what breakpoint the Images will stack.","ultimate-addons-for-gutenberg"),showIcons:!1,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.stack=e}),t({stack:e})}}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:me,label:"imageAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:"Top"},{value:"middle",label:"Middle"}],showIcons:!1,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imageAlignment=e}),t({imageAlignment:e})}})),"top"===mt&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:gt,label:"headingAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.headingAlign=e}),t({headingAlign:e})}}),At&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:ye},onChange:e=>{Object(n.select)("core/block-editor").getBlocks(i).forEach(t=>{t.attributes.imageSize=e}),t({imageSize:e})},options:Gt}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:t,presets:ox,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:C||"",data:{value:C,label:"titleColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:M,label:"titleLoadGoogleFonts"},fontFamily:{value:H,label:"titleFontFamily"},fontWeight:{value:F,label:"titleFontWeight"},fontStyle:{value:j,label:"titleFontStyle"},fontSizeType:{value:U,label:"titleFontSizeType"},fontSize:{value:E,label:"titleFontSize"},fontSizeMobile:{value:L,label:"titleFontSizeMobile"},fontSizeTablet:{value:O,label:"titleFontSizeTablet"},lineHeightType:{value:z,label:"titleLineHeightType"},lineHeight:{value:D,label:"titleLineHeight"},lineHeightMobile:{value:I,label:"titleLineHeightMobile"},lineHeightTablet:{value:N,label:"titleLineHeightTablet"},letterSpacing:{value:kt,label:"titleLetterSpacing"},letterSpacingTablet:{value:wt,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Pt,label:"titleLetterSpacingMobile"},letterSpacingType:{value:xt,label:"titleLetterSpacingType"},transform:{value:st,label:"titleTransform"},decoration:{value:ct,label:"titleDecoration"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:s,label:"titleSpace"},tablet:{value:c,label:"titleSpaceTablet"},mobile:{value:u,label:"titleSpaceMobile"}},min:0,max:50,unit:{value:Pe,label:"titleSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t})),React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:S,label:"seperatorStyle"},setAttributes:t,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(r.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(r.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(r.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(r.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!==S&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:k,label:"seperatorWidth"},tablet:{value:w,label:"seperatorWidthTablet"},mobile:{value:P,label:"seperatorWidthMobile"}},min:0,max:100,unit:{value:Se,label:"seperatorWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:t}),React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:t,value:x,data:{value:x,label:"seperatorThickness"},min:0,max:20,displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:A||"",data:{value:A,label:"seperatorColor"},setAttributes:t}))),At&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:fe,label:"imageWidth"},tablet:{value:he,label:"imageWidthTablet"},mobile:{value:ve,label:"imageWidthMobile"}},min:0,max:500,unit:{value:Te,label:"imageWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(Pl,nx({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:qe,label:"imgPaddingTop"},valueRight:{value:Ze,label:"imgPaddingRight"},valueBottom:{value:$e,label:"imgPaddingBottom"},valueLeft:{value:Ye,label:"imgPaddingLeft"},valueTopTablet:{value:Ke,label:"imgPaddingTopTablet"},valueRightTablet:{value:Je,label:"imgPaddingRightTablet"},valueBottomTablet:{value:Xe,label:"imgPaddingBottomTablet"},valueLeftTablet:{value:Qe,label:"imgPaddingLeftTablet"},valueTopMobile:{value:et,label:"imgPaddingTopMobile"},valueRightMobile:{value:tt,label:"imgPaddingRightMobile"},valueBottomMobile:{value:at,label:"imgPaddingBottomMobile"},valueLeftMobile:{value:lt,label:"imgPaddingLeftMobile"},unit:{value:it,label:"imgPaddingUnit"},mUnit:{value:ot,label:"imgMobilePaddingUnit"},tUnit:{value:nt,label:"imgTabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:rt,label:"imgSpacingLink"}}))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:T||"",data:{value:T,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:R,label:"descLoadGoogleFonts"},fontFamily:{value:oe,label:"descFontFamily"},fontWeight:{value:ne,label:"descFontWeight"},fontStyle:{value:re,label:"descFontStyle"},fontSizeType:{value:te,label:"descFontSizeType"},fontSize:{value:ae,label:"descFontSize"},fontSizeMobile:{value:ie,label:"descFontSizeMobile"},fontSizeTablet:{value:le,label:"descFontSizeTablet"},lineHeightType:{value:se,label:"descLineHeightType"},lineHeight:{value:ce,label:"descLineHeight"},lineHeightMobile:{value:pe,label:"descLineHeightMobile"},lineHeightTablet:{value:ue,label:"descLineHeightTablet"},letterSpacing:{value:yt,label:"descLetterSpacing"},letterSpacingTablet:{value:ft,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:ht,label:"descLetterSpacingMobile"},letterSpacingType:{value:vt,label:"descLetterSpacingType"},transform:{value:ut,label:"descTransform"},decoration:{value:pt,label:"descDecoration"}})),React.createElement(je,{title:Object(r.__)("Price","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"priceColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:G,label:"priceLoadGoogleFonts"},fontFamily:{value:$,label:"priceFontFamily"},fontWeight:{value:Y,label:"priceFontWeight"},fontStyle:{value:K,label:"priceFontStyle"},fontSizeType:{value:V,label:"priceFontSizeType"},fontSize:{value:W,label:"priceFontSize"},fontSizeMobile:{value:Z,label:"priceFontSizeMobile"},fontSizeTablet:{value:q,label:"priceFontSizeTablet"},lineHeightType:{value:J,label:"priceLineHeightType"},lineHeight:{value:X,label:"priceLineHeight"},lineHeightMobile:{value:ee,label:"priceLineHeightMobile"},lineHeightTablet:{value:Q,label:"priceLineHeightTablet"},letterSpacing:{value:_t,label:"priceLetterSpacing"},letterSpacingTablet:{value:Tt,label:"priceLetterSpacingTablet"},letterSpacingMobile:{value:Ct,label:"priceLetterSpacingMobile"},letterSpacingType:{value:St,label:"priceLetterSpacingType"},transform:{value:dt,label:"priceTransform"},decoration:{value:bt,label:"priceDecoration"}})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Row Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:g,label:"rowGap"},tablet:{value:m,label:"rowGapTablet"},mobile:{value:y,label:"rowGapMobile"}},min:0,max:50,unit:{value:ke,label:"rowGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:f,label:"columnGap"},tablet:{value:h,label:"columnGapTablet"},mobile:{value:v,label:"columnGapMobile"}},min:0,max:50,unit:{value:we,label:"columnGapType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("Em","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:t}),React.createElement(Pl,nx({},e,{label:Object(r.__)("Item Padding","ultimate-addons-for-gutenberg"),valueTop:{value:xe,label:"contentPaddingTop"},valueRight:{value:Ae,label:"contentPaddingRight"},valueBottom:{value:Ge,label:"contentPaddingBottom"},valueLeft:{value:Me,label:"contentPaddingLeft"},valueTopTablet:{value:Re,label:"contentPaddingTopTablet"},valueRightTablet:{value:Be,label:"contentPaddingRightTablet"},valueBottomTablet:{value:Ue,label:"contentPaddingBottomTablet"},valueLeftTablet:{value:Oe,label:"contentPaddingLeftTablet"},valueTopMobile:{value:He,label:"contentPaddingTopMobile"},valueRightMobile:{value:Fe,label:"contentPaddingRightMobile"},valueBottomMobile:{value:ze,label:"contentPaddingBottomMobile"},valueLeftMobile:{value:De,label:"contentPaddingLeftMobile"},unit:{value:Ne,label:"contentPaddingUnit"},mUnit:{value:Ie,label:"contentMobilePaddingUnit"},tUnit:{value:Ve,label:"contentTabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:We,label:"contentSpacingLink"}})))),React.createElement(il,nx({},rl,{parentProps:e})))));var Mt,Rt,Bt}),cx=a(134),ux=0,px={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},dx={};dx.locals=cx.a.locals||{},dx.use=function(){return ux++||(rx=we()(cx.a,px)),dx},dx.unuse=function(){ux>0&&!--ux&&(rx(),rx=null)};var bx=dx;const gx=["uagb/restaurant-menu-child"];var mx=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(bx.use(),()=>{bx.unuse()}),[]);const{className:t,attributes:a,deviceType:l}=e,{menu_item_count:i,columns:o,tcolumns:n,mcolumns:r,block_id:s}=a,c=Object(B.useMemo)(()=>{const e=[];for(let t=0;t{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,descLoadGoogleFonts:o,descFontFamily:n,descFontWeight:r,priceLoadGoogleFonts:s,priceFontFamily:c,priceFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),fx=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{imgAlign:l,imagePosition:i,imageAlignment:o,UAGHideDesktop:r,UAGHideTab:s,UAGHideMob:c,showImage:u},setAttributes:p,clientId:d,name:b,deviceType:g}=e;Object(B.useEffect)(()=>{i&&("left"===i&&p({imgAlign:"side"}),"right"===i&&p({imgAlign:"side"}),"top"===i&&p({imgAlign:"top"})),Object(n.select)("core/block-editor").getBlocks(d).forEach(e=>{e.attributes.imageAlignment=o})},[]),Object(B.useEffect)(()=>{"side"===l&&"right"!==i&&(p({imagePosition:"left"}),p({headingAlign:"left"})),"top"===l&&p({imagePosition:"top"})},[a,g]),Object(B.useEffect)(()=>{ys()},[g]),Object(B.useEffect)(()=>{he(e)},[r,s,c,g]),Object(B.useEffect)(()=>{var e;null===(e=Object(n.select)("core/block-editor").getBlocksByClientId(d)[0])||void 0===e||e.innerBlocks.forEach((function(e){Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{showImage:u})}))},[u]);const m=Object(B.useMemo)(()=>function(e,t,a,l){const{block_id:i,headingAlign:o,priceColor:n,descColor:r,titleColor:s,titleFontSizeType:c,titleFontSize:u,titleFontSizeTablet:p,titleFontSizeMobile:d,titleFontFamily:b,titleFontWeight:g,titleLineHeightType:m,titleLineHeight:y,titleLineHeightTablet:f,titleLineHeightMobile:h,priceFontSizeType:v,priceFontSize:_,priceFontSizeTablet:T,priceFontSizeMobile:C,priceFontFamily:S,priceFontWeight:k,priceLineHeightType:w,priceLineHeight:P,priceLineHeightTablet:x,priceLineHeightMobile:A,descFontSizeType:G,descFontSize:M,descFontSizeTablet:R,descFontSizeMobile:B,descFontFamily:U,descFontWeight:E,descLineHeightType:O,descLineHeight:L,descLineHeightTablet:H,descLineHeightMobile:F,descSpace:j,titleSpace:z,titleSpaceTablet:D,titleSpaceMobile:N,imageWidth:I,imageWidthTablet:V,imageWidthMobile:W,rowGap:q,rowGapTablet:Z,rowGapMobile:$,columnGap:Y,columnGapTablet:K,columnGapMobile:J,seperatorStyle:X,seperatorWidth:Q,seperatorWidthTablet:ee,seperatorWidthMobile:te,seperatorThickness:le,seperatorColor:ie,imageWidthType:oe,seperatorWidthType:ne,rowGapType:re,columnGapType:se,titleSpaceType:ce,contentPaddingTop:ue,contentPaddingRight:pe,contentPaddingBottom:de,contentPaddingLeft:be,contentPaddingTopTablet:ge,contentPaddingRightTablet:me,contentPaddingBottomTablet:ye,contentPaddingLeftTablet:fe,contentPaddingTopMobile:he,contentPaddingRightMobile:ve,contentPaddingBottomMobile:_e,contentPaddingLeftMobile:Te,contentPaddingUnit:Ce,contentMobilePaddingUnit:Se,contentTabletPaddingUnit:ke,imgPaddingTop:we,imgPaddingRight:Pe,imgPaddingBottom:xe,imgPaddingLeft:Ae,imgPaddingTopTablet:Ge,imgPaddingRightTablet:Me,imgPaddingBottomTablet:Re,imgPaddingLeftTablet:Be,imgPaddingTopMobile:Ue,imgPaddingRightMobile:Ee,imgPaddingBottomMobile:Oe,imgPaddingLeftMobile:Le,imgPaddingUnit:He,imgMobilePaddingUnit:Fe,imgTabletPaddingUnit:je,titleFontStyle:ze,titleTransform:De,titleDecoration:Ne,descFontStyle:Ie,descTransform:Ve,descDecoration:We,priceFontStyle:qe,priceTransform:Ze,priceDecoration:$e,descLetterSpacing:Ye,descLetterSpacingTablet:Ke,descLetterSpacingMobile:Je,descLetterSpacingType:Xe,priceLetterSpacing:Qe,priceLetterSpacingTablet:et,priceLetterSpacingMobile:tt,priceLetterSpacingType:at,titleLetterSpacing:lt,titleLetterSpacingTablet:it,titleLetterSpacingMobile:ot,titleLetterSpacingType:nt,imagePosition:rt,imgAlign:st,imageAlignment:ct,stack:ut}=e,pt=l.toLowerCase(),dt=a.replace("uagb/",""),bt=us(le,"seperatorThickness",dt),gt=us(q,"rowGap",dt),mt=us(Z,"rowGapTablet",dt),yt=us($,"rowGapMobile",dt),ft=us(Y,"columnGap",dt),ht=isNaN(K)?ft:K,vt=isNaN(J)?ht:J,_t=us(I,"imageWidth",dt),Tt=isNaN(V)?_t:V,Ct=isNaN(W)?Tt:W,St=us(Q,"seperatorWidth",dt),kt=us(ee,"seperatorWidthTablet",dt),wt=us(te,"seperatorWidthMobile",dt),Pt=us(z,"titleSpace",dt),xt=us(D,"titleSpaceTablet",dt),At=us(N,"titleSpaceMobile",dt);let Gt={},Mt={};const Rt={" .block-editor-block-list__layout":{"column-gap":Vr(ft,se),"row-gap":Vr(gt,re)}," [data-type='uagb/restaurant-menu-child'] img":{"padding-left":Vr(Ae,He),"padding-right":Vr(Pe,He),"padding-top":Vr(we,He),"padding-bottom":Vr(xe,He)}," img":{width:Vr(_t,oe),"max-width":Vr(_t,oe)}," .uagb-rm__content":{"padding-left":Vr(be,Ce),"padding-right":Vr(pe,Ce),"padding-top":Vr(ue,Ce),"padding-bottom":Vr(de,Ce)},".wp-block-uagb-restaurant-menu .uagb-rest_menu__wrap .uagb-rm__content .uagb-rm-details .uagb-rm__title":{"font-size":Vr(u,c),color:s,"margin-bottom":Vr(Pt,ce),"font-family":b,"font-style":ze,"text-transform":De,"text-decoration":Ne,"font-weight":g,"line-height":Vr(y,m),"letter-spacing":Vr(lt,nt)}," .uagb-rm__price":{"font-size":Vr(_,v),"font-family":S,"text-transform":Ze,"text-decoration":$e,"font-style":qe,"font-weight":k,"line-height":Vr(P,w),color:n,"letter-spacing":Vr(Qe,at)}," .uagb-rm__desc":{"font-size":Vr(M,G),"font-family":U,"text-transform":Ve,"text-decoration":We,"font-style":Ie,"font-weight":E,"line-height":Vr(L,O),color:r,"margin-bottom":Vr(j,"px"),"letter-spacing":Vr(Ye,Xe)}};Gt={" img":{width:Vr(Tt,oe),"max-width":Vr(Tt,oe)}," .block-editor-block-list__layout":{"column-gap":Vr(ht,se),"row-gap":Vr(mt,re)},".wp-block-uagb-restaurant-menu .uagb-rest_menu__wrap .uagb-rm__content .uagb-rm-details .uagb-rm__title":{"font-size":Vr(p,c),"line-height":Vr(f,m),"margin-bottom":Vr(xt,ce),"letter-spacing":Vr(it,nt)}," .uagb-rm__desc":{"font-size":Vr(R,G),"line-height":Vr(H,O),"letter-spacing":Vr(Ke,Xe)}," .uagb-rm__price":{"font-size":Vr(T,v),"line-height":Vr(x,w),"letter-spacing":Vr(et,at)}," [data-type='uagb/restaurant-menu-child'] img":{"padding-left":Vr(Be,je),"padding-right":Vr(Me,je),"padding-top":Vr(Ge,je),"padding-bottom":Vr(Re,je)}," .uagb-rm__content":{"padding-left":Vr(fe,ke),"padding-right":Vr(me,ke),"padding-top":Vr(ge,ke),"padding-bottom":Vr(ye,ke)}},Mt={" img":{width:Vr(Ct,oe),"max-width":Vr(Ct,oe)}," .block-editor-block-list__layout":{"column-gap":Vr(vt,se),"row-gap":Vr(yt,re)},".wp-block-uagb-restaurant-menu .uagb-rest_menu__wrap .uagb-rm__content .uagb-rm-details .uagb-rm__title":{"font-size":Vr(d,c),"line-height":Vr(h,m),"margin-bottom":Vr(At,ce),"letter-spacing":Vr(ot,nt)}," .uagb-rm__desc":{"font-size":Vr(B,G),"line-height":Vr(F,O),"letter-spacing":Vr(Je,Xe)}," .uagb-rm__price":{"font-size":Vr(C,v),"line-height":Vr(A,w),"letter-spacing":Vr(tt,at)}," [data-type='uagb/restaurant-menu-child'] img":{"padding-left":Vr(Le,Fe),"padding-right":Vr(Ee,Fe),"padding-top":Vr(Ue,Fe),"padding-bottom":Vr(Oe,Fe)}," .uagb-rm__content":{"padding-left":Vr(Te,Se),"padding-right":Vr(ve,Se),"padding-top":Vr(he,Se),"padding-bottom":Vr(_e,Se)}},"none"!==X&&(Rt[" .uagb-rm__separator"]={"border-top-color":ie,"border-top-style":X,"border-top-width":Vr(bt,"px"),width:Vr(St,ne)},Gt[" .uagb-rm__separator"]={width:Vr(kt,ne)},Mt[" .uagb-rm__separator"]={width:Vr(wt,ne)}),"side"===st&&(Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={"align-items":"top"===ct?"flex-start":"center"},"tablet"===ut?"left"===rt?(Gt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"block"},Mt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"block"}):(Gt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"flex","flex-direction":"column-reverse","align-items":"flex-end"},Mt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={display:"flex","flex-direction":"column-reverse","align-items":"flex-end"}):"mobile"===ut&&(Mt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]="left"===rt?{display:"block"}:{display:"flex","flex-direction":"column-reverse","align-items":"flex-end"}),"left"===rt?Rt[" .uagb-rm-details"]={"text-align":"left"}:"right"===rt&&(Rt[" .uagb-rm-details"]={"text-align":"right"},Rt[" .uagb-rest_menu__wrap .uagb-rm__content"]={"text-align":"right"},Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__separator"]={"margin-left":"auto"})),"top"===st&&(Rt[" .wp-block-uagb-restaurant-menu-child "]={"text-align":o,display:"block"},Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__content"]={"text-align":o},"center"===o?(Rt[" .uagb-rm__content "]={display:"block"},Rt[" .uagb-rm__content "]={display:"block"},Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__separator"]={margin:"0 auto"}):"right"===o&&(Rt[" .wp-block-uagb-restaurant-menu-child .uagb-rm__separator"]={"margin-left":"auto"}));let Bt="";const Ut=".editor-styles-wrapper .uagb-block-"+i;return Bt=ae(Rt,Ut),"tablet"!==pt&&"mobile"!==pt||(Bt+=ae(Gt,""+Ut,!0,"tablet"),"mobile"===pt&&(Bt+=ae(Mt,""+Ut,!0,"mobile"))),Bt}(a,0,b,g),[a,g]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:m}),React.createElement(yx,{attributes:a}),t&&React.createElement(sx,e),React.createElement(mx,e))}),hx=e=>{const{attributes:t,setAttributes:a,index_value:l}=e;let i="";if(void 0!==l){const e=t.rest_menu_item_arr[l];e&&void 0!==e&&(i=e.title)}else i=t.title;return"not_set"!==a?React.createElement(ge.RichText,{tagName:t.headingTag,value:i,placeholder:Object(r.__)("Write a Title","ultimate-addons-for-gutenberg"),className:"uagb-rm__title",onChange:e=>{a({title:e})}}):React.createElement(ge.RichText.Content,{tagName:t.headingTag,value:i,className:"uagb-rm__title"})},vx=e=>{const{attributes:t,setAttributes:a,index_value:l}=e;let i="";if(void 0!==l){const e=t.rest_menu_item_arr[l];e&&void 0!==e&&(i=e.price)}else i=t.price;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:i,className:"uagb-rm__price",placeholder:Object(r.__)("Price","ultimate-addons-for-gutenberg"),onChange:e=>{a({price:e})}}):React.createElement(ge.RichText.Content,{tagName:"span",value:i,className:"uagb-rm__price"})},Tx=e=>{const{attributes:t,setAttributes:a,index_value:l}=e;let i="";if(void 0!==l){const e=t.rest_menu_item_arr[l];e&&void 0!==e&&(i=e.description)}else i=t.description;return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:i,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-rm__desc",onChange:e=>{a({description:e})}}):React.createElement(ge.RichText.Content,{tagName:"div",value:i,className:"uagb-rm__desc"})},Cx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"uagb/restaurant-menu";const{columns:a,tcolumns:l,mcolumns:i}=e;let o="",n=0;const r=e.image;void 0!==e.rest_menu_item_arr&&e.rest_menu_item_arr.map(e=>{const t=e.image;t&&void 0!==t&&n++}),null!=r&&""!==r&&n++,n>0&&(o+="uagb-rm__image-position-"+e.imagePosition+" "),o+=" uagb-rm__align-"+e.headingAlign+" ","left"!==e.imagePosition&&"right"!==e.imagePosition||(o+="uagb-rm__image-aligned-"+e.imageAlignment+" ","none"!==e.stack&&(o+="uagb-rm-stacked-"+e.stack+" ","right"===e.imagePosition&&(o+="uagb-rm-reverse-order-"+e.stack+" ")));const s=t.replace("uagb/",""),c=us(a,"columns",s),u=us(l,"tcolumns",s),p=us(i,"mcolumns",s);return o+="uagb-rm__desk-column-"+c+" ",o+="uagb-rm__tablet-column-"+u+" ",o+="uagb-rm__mobile-column-"+p+" ",[o]},Sx=e=>{const{attributes:t,index_value:a}=e;let l="",i="";const{imageWidth:o,imgTagHeight:n}=t;if(void 0!==a){const e=t.rest_menu_item_arr[a];void 0!==e&&(i=e.image)}else""!==t.image&&(i=t.image);if(i&&void 0!==i){let e="";e=void 0!==i?i:t.image;let a="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,r=t.imageSize;return a=void 0!==i&&void 0!==i[r]?i[r].url:l,React.createElement("img",{className:"",src:a,alt:e.alt,width:o,height:n,loading:"lazy"})}return null}return null},kx=[{attributes:Pt,save(e){const{block_id:t,className:a,rest_menu_item_arr:l,imagePosition:i}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap"),id:"uagb-rm-"+t},l.map((t,a)=>React.createElement("div",{className:Be()("uagb-rest_menu__wrap",...Cx(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-rm__content",key:"tm_content-"+a},("top"==i||"left"==i)&&React.createElement(Sx,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-rm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm-details",key:"tm_wraps-"+a},React.createElement("div",{className:"uagb-rm__title-wrap",key:"rm_title__wraps-"+a},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement("div",{className:"uagb-rest-menu-text-wrap",key:"text-wrap-"+a},React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-rm__price-wrap",key:"rm_price__wraps-"+a},React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"==i&&React.createElement(Sx,{attributes:e.attributes,index_value:a})),React.createElement("div",{className:"uagb-rm__separator-parent"},React.createElement("div",{className:"uagb-rm__separator"}))))))}},{attributes:Pt,save(e){const{block_id:t,className:a,rest_menu_item_arr:l,imagePosition:i}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap","uagb-block-"+t)},l.map((t,a)=>React.createElement("div",{className:Be()("uagb-rest_menu__wrap",...Cx(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-rm__content",key:"tm_content-"+a},("top"==i||"left"==i)&&React.createElement(Sx,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-rm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm-details",key:"tm_wraps-"+a},React.createElement("div",{className:"uagb-rm__title-wrap",key:"rm_title__wraps-"+a},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement("div",{className:"uagb-rest-menu-text-wrap",key:"text-wrap-"+a},React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-rm__price-wrap",key:"rm_price__wraps-"+a},React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"==i&&React.createElement(Sx,{attributes:e.attributes,index_value:a})),React.createElement("div",{className:"uagb-rm__separator-parent"},React.createElement("div",{className:"uagb-rm__separator"}))))))}},{attributes:Pt,save(e){const{block_id:t,className:a}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap","uagb-block-"+t)},React.createElement(ge.InnerBlocks.Content,null)))}}];a(368);const wx=Object(L.compose)(Object(n.withSelect)(e=>({selected:e("core/block-editor").getSelectedBlock()}))),Px=Object(L.createHigherOrderComponent)(e=>wx(t=>{let{...a}=t;return React.createElement(React.Fragment,null,React.createElement(e,a))}),"withPriceList");let xx={};function Ax(){return(Ax=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"price-list"}):React.createElement(fx,e),save:function(e){const{block_id:t,className:a,columns:l,tcolumns:i,mcolumns:o}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-block-"+t,"uagb-rm__desk-column-"+l,"uagb-rm__tablet-column-"+i,"uagb-rm__mobile-column-"+o)},React.createElement(ge.InnerBlocks.Content,null))},deprecated:kx}),Object(F.addFilter)("editor.BlockEdit","uagb/restaurant-menu",Px);var Gx=Object(B.memo)(e=>{const{setAttributes:t,attributes:a}=e,{image:l,showImage:i}=a;return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","advance"]},React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement("p",{className:"uagb-settings-notice"},i?Object(r.__)("For the common styling options please select the Parent Block of this Price List Item.","ultimate-addons-for-gutenberg"):Object(r.__)("For the common styling options and enabling images, please select the Parent Block of this Price List Item.","ultimate-addons-for-gutenberg")),i&&React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{let a=null;a=e&&e.url?e:null,e.type&&"image"===e.type||(a=null),t({image:a})},backgroundImage:l,onRemoveImage:()=>{t({image:null})}})))),React.createElement(il,Ax({},rl,{parentProps:e})))))}),Mx=Object(B.memo)(e=>{const{className:t,setAttributes:a,attributes:l,clientId:i}=e,{imagePosition:o,headingAlign:r,imgAlign:s,showImage:c,image:u,imageWidth:p,block_id:d}=l,b=Object(n.select)("core/block-editor").getBlockHierarchyRootClientId(i),g=Object(n.select)("core/block-editor").getBlockAttributes(b),m=g&&g.imagePosition?g.imagePosition:o,y=g&&g.headingAlign?g.headingAlign:r,f=g&&g.imgAlign?g.imgAlign:s;return a({imagePosition:m}),a({headingAlign:y}),a({imgAlign:f}),Object(B.useEffect)(()=>{u&&u.url&&Zg(null==u?void 0:u.url,a,{type:"width",value:p})},[u,p]),React.createElement("div",{className:Be()(t,"uagb-rest_menu__wrap","uagb-block-"+d)},"top"===f&&React.createElement(React.Fragment,null,c&&React.createElement(Sx,{attributes:l}),React.createElement("div",{className:"uagb-rm__content"},"right"===y&&React.createElement(vx,{attributes:l,setAttributes:a,props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:l,setAttributes:a,props:e}),React.createElement(Tx,{attributes:l,setAttributes:a,props:e}),"center"===y&&React.createElement(vx,{attributes:l,setAttributes:a,props:e})),"left"===y&&React.createElement(vx,{attributes:l,setAttributes:a,props:e})),React.createElement("div",{className:"uagb-rm__separator"})),"side"===f&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm__content"},"left"===m&&c&&React.createElement(Sx,{attributes:l}),"right"===m&&React.createElement(vx,{attributes:l,setAttributes:a,props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:l,setAttributes:a,props:e}),React.createElement(Tx,{attributes:l,setAttributes:a,props:e})),"left"===m&&React.createElement(vx,{attributes:l,setAttributes:a,props:e}),"right"===m&&c&&React.createElement(Sx,{attributes:l})),React.createElement("div",{className:"uagb-rm__separator"})))}),Rx=Object(L.compose)(ls)(e=>{const{isSelected:t}=e;return React.createElement(React.Fragment,null,t&&React.createElement(Gx,e),React.createElement(Mx,e))}),Bx=e=>{const{attributes:t,index_value:a}=e;let l="",i="";if(void 0!==a){const e=t.rest_menu_item_arr[a];void 0!==e&&(i=e.image)}else""!==t.image&&(i=t.image);if(i&&void 0!==i){let e="";e=void 0!==i?i:t.image;let a="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,o=t.imageSize;return a=void 0!==i&&void 0!==i[o]?i[o].url:l,React.createElement("div",{className:"uagb-rm__image-content"},React.createElement("div",{className:"uagb-rm__image"},React.createElement("img",{className:"",src:a,alt:e.alt})))}return null}return null},Ux=e=>{const{attributes:t,index_value:a}=e;let l="",i="";if(void 0!==a){const e=t.rest_menu_item_arr[a];void 0!==e&&(i=e.image)}else""!==t.image&&(i=t.image);if(i&&void 0!==i){let e="";e=void 0!==i?i:t.image;let a="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,o=t.imageSize;return a=void 0!==i&&void 0!==i[o]?i[o].url:l,React.createElement("img",{className:"",src:a,alt:e.alt})}return null}return null},Ex=[{attributes:{block_id:{type:"string"},description:{type:"string",default:Object(r.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")},title:{type:"string",default:Object(r.__)("Menu Item")},price:{type:"string",default:Object(r.__)("$9")},image:{type:"object",default:null},imagePosition:{type:"string",default:"top"},imageAlignment:{type:"string",default:"top"},imageSize:{type:"string",default:"medium"},headingTag:{type:"string",default:"h4"},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},headingAlign:{type:"string",default:"left"}},save(e){const{block_id:t,className:a,imagePosition:l}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-rest_menu__wrap","uagb-rest_menu_repeater",...Cx(e.attributes))},React.createElement("div",{className:Be()(a,"uagb-rest_menu__outer-wrap","uagb-block-"+t)},React.createElement("div",{className:Be()(...Cx(e.attributes))},React.createElement("div",{className:"uagb-rm__content"},("top"==l||"left"==l)&&React.createElement(Bx,{attributes:e.attributes}),React.createElement("div",{className:"uagb-rm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm-details"},React.createElement("div",{className:"uagb-rm__title-wrap"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rest-menu-text-wrap"},React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e}))),React.createElement("div",{className:"uagb-rm__price-wrap"},React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}))))),"right"==l&&React.createElement(Bx,{attributes:e.attributes})),React.createElement("div",{className:"uagb-rm__separator-parent"},React.createElement("div",{className:"uagb-rm__separator"}))))))}},{attributes:{block_id:{type:"string"},description:{type:"string",default:Object(r.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")},title:{type:"string",default:Object(r.__)("Menu Item")},price:{type:"string",default:Object(r.__)("$9")},image:{type:"object",default:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/uag-placeholder.svg"}},imagePosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"image-position"}},imageAlignment:{type:"string",default:"top",UAGCopyPaste:{styleType:"image-align"}},imageSize:{type:"string",default:"medium",UAGCopyPaste:{styleType:"image-size"}},headingTag:{type:"string",default:"h4"},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},headingAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"main-title-align"}},stack:{type:"string",default:"tablet"},imgAlign:{type:"string",UAGCopyPaste:{styleType:"image-align"},default:"side"},showImage:{type:"boolean",default:!0}},save(e){const{imagePosition:t,headingAlign:a,imgAlign:l,showImage:i}=e.attributes;return React.createElement("div",{className:Be()("uagb-rest_menu__wrap")},"top"===l&&React.createElement(React.Fragment,null,i&&React.createElement(Ux,{attributes:e.attributes}),React.createElement("div",{className:"uagb-rm__content"},"right"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"center"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),React.createElement("div",{className:"uagb-rm__separator"})),"side"===l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm__content"},"left"===t&&i&&React.createElement(Ux,{attributes:e.attributes}),"right"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"right"===t&&i&&React.createElement(Ux,{attributes:e.attributes})),React.createElement("div",{className:"uagb-rm__separator"})))}}];let Ox={};Ox=Object(F.applyFilters)("uagb/restaurant-menu-child",ss(Ox)),Object(de.registerBlockType)("uagb/restaurant-menu-child",{...Ox,title:Object(r.__)("Price List-Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add information for this product.","ultimate-addons-for-gutenberg"),icon:se.restaurant_menu_child,keywords:[Object(r.__)("pricelist","ultimate-addons-for-gutenberg"),Object(r.__)("menu","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},parent:["uagb/restaurant-menu"],attributes:xt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"price-list-child",isChildren:!0}):React.createElement(Rx,e),save:function(e){const{imagePosition:t,headingAlign:a,imgAlign:l,showImage:i}=e.attributes;return React.createElement("div",{className:Be()("uagb-rest_menu__wrap")},"top"===l&&React.createElement(React.Fragment,null,i&&React.createElement(Sx,{attributes:e.attributes}),React.createElement("div",{className:"uagb-rm__content"},"right"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"center"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===a&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e})),React.createElement("div",{className:"uagb-rm__separator"})),"side"===l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-rm__content"},"left"===t&&i&&React.createElement(Sx,{attributes:e.attributes}),"right"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement("div",{className:"uagb-rm-details"},React.createElement(hx,{attributes:e.attributes,setAttributes:"not_set",props:e}),React.createElement(Tx,{attributes:e.attributes,setAttributes:"not_set",props:e})),"left"===t&&React.createElement(vx,{attributes:e.attributes,setAttributes:"not_set",props:e}),"right"===t&&i&&React.createElement(Sx,{attributes:e.attributes})),React.createElement("div",{className:"uagb-rm__separator"})))},deprecated:Ex});var Lx=e=>{const{enableSchema:t,itemType:a,rTitle:l,enableDescription:i,rContent:o,enableImage:n,mainimage:s,sku:c,brand:u,showAuthor:p,rAuthor:d,offerType:b,offerCurrency:g,offerPrice:m,ctaLink:y,offerExpiry:f,datepublish:h,identifier:v,isbn:_,bookAuthorName:T,directorname:C,datecreated:S,provider:k,appCategory:w,reviewPublisher:P,operatingSystem:x}=e,A=[];let G;switch(a){case"Product":void 0!==c&&""!==c||(G=Object(r.__)("Missing merchant-specific identifier for product ( SKU )","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==u&&""!==u||(G=Object(r.__)("Missing brand of the product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==b&&""!==b||(G=Object(r.__)("Missing offer Type","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==g&&""!==g||(G=Object(r.__)("Missing offer currency of a product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==m&&""!==m||(G=Object(r.__)("Missing offer price of a product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==f&&""!==f||(G=Object(r.__)("Missing offer expiry of a product","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==v&&""!==v||(G=Object(r.__)("Missing global identifiers","ultimate-addons-for-gutenberg"),A.push(G));break;case"Book":void 0!==_&&""!==_||(G=Object(r.__)("Missing ISBN number of a book","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==T&&""!==T||(G=Object(r.__)("Missing author of the book","ultimate-addons-for-gutenberg"),A.push(G));break;case"Movie":void 0!==S&&""!==S||(G=Object(r.__)("Missing released date of the movie","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==C&&""!==C||(G=Object(r.__)("Missing director name of the movie","ultimate-addons-for-gutenberg"),A.push(G));break;case"Course":void 0!==k&&""!==k||(G=Object(r.__)("Missing provider of the course","ultimate-addons-for-gutenberg"),A.push(G));break;case"SoftwareApplication":void 0!==w&&""!==w||(G=Object(r.__)("Missing type of application (Application Category)","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==x&&""!==x||(G=Object(r.__)("Missing operating system(s) required","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==b&&""!==b||(G=Object(r.__)("Missing Offer Type","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==m&&""!==m||(G=Object(r.__)("Missing offer price of the application","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==g&&""!==g||(G=Object(r.__)("Missing offer currency of the application","ultimate-addons-for-gutenberg"),A.push(G))}a&&(void 0!==l&&""!==l||(G=Object(r.__)("Missing title of the review","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==o&&""!==o&&!1!==i||(G=Object(r.__)("Missing review description","ultimate-addons-for-gutenberg"),A.push(G)),s&&"null"!==s&&"null"!==s.url&&""!==s.url&&!1!==n||(G=Object(r.__)("Missing review Image","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==y&&""!==y||(G=Object(r.__)("Missing url field","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==d&&""!==d&&!1!==p||(G=Object(r.__)("Missing review author name","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==P&&""!==P||(G=Object(r.__)("Missing review publisher","ultimate-addons-for-gutenberg"),A.push(G)),void 0!==h&&""!==h||(G=Object(r.__)("Missing date of publish","ultimate-addons-for-gutenberg"),A.push(G)));const M=A.map(e=>React.createElement("li",{key:e}," ",e," "));return!0===t&&0!==A.length?React.createElement("div",{className:"rating-schema-notices"},React.createElement("h6",null," ",Object(r.__)("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")," "),React.createElement("ul",{className:"rating-schema-notices-list"},M),React.createElement("p",null,Object(r.__)("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")," ",React.createElement("a",{href:"https://developers.google.com/search/docs/data-types/review-snippet",target:"_blank",rel:"noreferrer"},Object(r.__)("Read more.","ultimate-addons-for-gutenberg")))):""};function Hx(){return(Hx=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{enableSchema:l,itemType:i,itemSubtype:o,sku:n,identifier:s,identifierType:c,offerType:u,offerCurrency:p,offerStatus:d,offerPrice:b,offerExpiry:g,datepublish:m,ctaLink:y,ctaTarget:f,brand:h,headingTag:v,mainimage:_,imgSize:T,showFeature:C,showAuthor:S,starColor:k,descColor:w,titleColor:P,contentColor:x,headFontFamily:A,headFontWeight:G,headFontSizeType:M,headFontSize:R,headFontSizeMobile:B,headFontSizeTablet:U,headLineHeightType:E,headLineHeight:O,headLineHeightMobile:L,headLineHeightTablet:H,headLoadGoogleFonts:F,subHeadFontFamily:z,subHeadFontWeight:D,subHeadFontSize:N,subHeadFontSizeType:I,subHeadFontSizeMobile:V,subHeadFontSizeTablet:W,subHeadLineHeight:q,subHeadLineHeightType:Z,subHeadLineHeightMobile:$,subHeadLineHeightTablet:Y,subHeadLoadGoogleFonts:K,contentLoadGoogleFonts:J,contentFontFamily:X,contentFontWeight:Q,contentFontSizeType:ee,contentLineHeightType:te,contentFontSize:ae,contentFontSizeTablet:le,contentFontSizeMobile:ie,contentLineHeight:oe,contentLineHeightTablet:ne,contentLineHeightMobile:re,topPadding:se,bottomPadding:ce,rightPadding:ue,leftPadding:pe,paddingTopMobile:de,paddingBottomMobile:be,paddingRightMobile:me,paddingLeftMobile:ye,paddingTopTablet:fe,paddingBottomTablet:he,paddingRightTablet:ve,paddingLeftTablet:_e,spacingLink:Te,paddingUnit:Se,mobilePaddingUnit:ke,tabletPaddingUnit:we,authorColor:Pe,summaryColor:xe,starActiveColor:Ae,starOutlineColor:Ge,enableDescription:Me,enableImage:Re,overallAlignment:Be,isbn:Ue,bookAuthorName:Oe,reviewPublisher:He,provider:Fe,appCategory:ze,operatingSystem:De,datecreated:Ne,directorname:Ie,headTransform:Ve,headDecoration:We,subHeadTransform:qe,subHeadDecoration:Ze,contentTransform:$e,contentDecoration:Ye,headFontStyle:Ke,subHeadFontStyle:Je,contentFontStyle:Xe,headLetterSpacing:Qe,headLetterSpacingTablet:et,headLetterSpacingMobile:tt,headLetterSpacingType:at,subHeadLetterSpacing:lt,subHeadLetterSpacingTablet:it,subHeadLetterSpacingMobile:ot,subHeadLetterSpacingType:nt,contentLetterSpacing:rt,contentLetterSpacingTablet:st,contentLetterSpacingMobile:ct,contentLetterSpacingType:ut,courseMode:pt,repeatCount:dt,repeatFrequency:bt,categoryOfCourse:gt,courseLocation:mt}=t,yt=e=>{a({itemType:e}),"Movie"===i&&a({enableImage:!0}),"Course"===i&&a({enableDescription:!0}),ht.hasOwnProperty(i)&&ht[i].includes(o)||a({itemSubtype:"None"})};let ft;const ht={Book:[{value:"Audiobook",label:Object(r.__)("Audio book","ultimate-addons-for-gutenberg")}],Product:[{value:"IndividualProduct",label:Object(r.__)("Individual Product","ultimate-addons-for-gutenberg")},{value:"ProductCollection",label:Object(r.__)("Product Collection","ultimate-addons-for-gutenberg")},{value:"ProductGroup",label:Object(r.__)("Product Group","ultimate-addons-for-gutenberg")},{value:"ProductModel",label:Object(r.__)("Product Model","ultimate-addons-for-gutenberg")},{value:"SomeProducts",label:Object(r.__)("Some Products","ultimate-addons-for-gutenberg")},{value:"Vehicle",label:Object(r.__)("Vehicle","ultimate-addons-for-gutenberg")}],SoftwareApplication:[{value:"MobileApplication",label:Object(r.__)("Mobile Application","ultimate-addons-for-gutenberg")},{value:"VideoGame",label:Object(r.__)("Video Game","ultimate-addons-for-gutenberg")},{value:"WebApplication",label:Object(r.__)("Web Application","ultimate-addons-for-gutenberg")}]};switch(i){default:break;case"Book":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("ISBN","ultimate-addons-for-gutenberg"),value:Ue,data:{value:Ue,label:"isbn"},setAttributes:a,onChange:e=>a({isbn:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),React.createElement(Ss,{label:Object(r.__)("Book author name","ultimate-addons-for-gutenberg"),value:Oe,data:{value:Oe,label:"bookAuthorName"},setAttributes:a,onChange:e=>a({bookAuthorName:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}));break;case"Course":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Provider","ultimate-addons-for-gutenberg"),value:Fe,data:{value:Fe,label:"provider"},setAttributes:a,onChange:e=>a({provider:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information about the organization that created the content for the course.","ultimate-addons-for-gutenberg")}),React.createElement(Pi,{label:Object(r.__)("Mode","ultimate-addons-for-gutenberg"),data:{value:pt,label:"courseMode"},setAttributes:a,options:[{value:"Online",label:Object(r.__)("Online","ultimate-addons-for-gutenberg")},{value:"Onsite",label:Object(r.__)("Onsite","ultimate-addons-for-gutenberg")},{value:"Blended",label:Object(r.__)("Blended","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information of medium through which the course will be delivered.","ultimate-addons-for-gutenberg")}),("Onsite"===pt||"Blended"===pt)&&React.createElement(Ss,{label:Object(r.__)("Location","ultimate-addons-for-gutenberg"),value:mt,data:{value:mt,label:"courseLocation"},setAttributes:a,onChange:e=>a({courseLocation:e}),help:Object(r.__)("Note: This property is only required for Onsite or Blended courses, It contain name or address (or both) of the physical location where the course will be taught.","ultimate-addons-for-gutenberg")}),React.createElement(Pi,{label:Object(r.__)("Frequency","ultimate-addons-for-gutenberg"),layout:"stack",data:{value:bt,label:"repeatFrequency"},setAttributes:a,options:[{value:"Daily",label:Object(r.__)("Daily","ultimate-addons-for-gutenberg")},{value:"Weekly",label:Object(r.__)("Weekly","ultimate-addons-for-gutenberg")},{value:"Monthly",label:Object(r.__)("Monthly","ultimate-addons-for-gutenberg")},{value:"Yearly",label:Object(r.__)("Yearly","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information of course happens Daily / Weekly / Monthly or Yearly.","ultimate-addons-for-gutenberg")}),React.createElement(Ks,{label:Object(r.__)("Duration","ultimate-addons-for-gutenberg"),value:dt,data:{value:dt,label:"repeatCount"},displayUnit:!1,setAttributes:a,min:1,help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain the numerical value for how long the course lasts for in Frequency units. For example, if the Frequency is monthly and the Duration is 4, the course lasts for 4 months.","ultimate-addons-for-gutenberg"),showControlHeader:!1,name:"totalNumber"}),React.createElement(Pi,{label:Object(r.__)("Pricing Category","ultimate-addons-for-gutenberg"),layout:"stack",data:{value:gt,label:"categoryOfCourse"},setAttributes:a,options:[{value:"Free",label:Object(r.__)("Free","ultimate-addons-for-gutenberg")},{value:"Partially Free",label:Object(r.__)("Partially Free","ultimate-addons-for-gutenberg")},{value:"Subscription",label:Object(r.__)("Subscription","ultimate-addons-for-gutenberg")},{value:"Paid",label:Object(r.__)("Paid","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Note: This is a mandatory field for the Review schema, It contain information of pricing category of the course.","ultimate-addons-for-gutenberg")}));break;case"SoftwareApplication":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Application Category","ultimate-addons-for-gutenberg"),value:ze,data:{value:ze,label:"appCategory"},setAttributes:a,onChange:e=>a({appCategory:e})}),React.createElement(Ss,{label:Object(r.__)("Operating System","ultimate-addons-for-gutenberg"),value:De,data:{value:De,label:"operatingSystem"},setAttributes:a,onChange:e=>a({operatingSystem:e})}));break;case"Movie":ft=React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Director Name","ultimate-addons-for-gutenberg"),value:Ie,data:{value:Ie,label:"directorname"},setAttributes:a,onChange:e=>a({directorname:e})}),React.createElement("h2",null,Object(r.__)("Date of create","ultimate-addons-for-gutenberg")),React.createElement(Le.DateTimePicker,{currentDate:Ne,onChange:e=>a({datecreated:e}),is12Hour:!0}))}return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,(_&&_.sizes&&(Fx=j(_.sizes)),React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Review Title Tag","ultimate-addons-for-gutenberg"),data:{value:v,label:"headingTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:Be,label:"overallAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Schema Support","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({enableSchema:!l})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Review Description","ultimate-addons-for-gutenberg"),checked:Me,onChange:()=>a({enableDescription:!Me}),help:Object(r.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Review Author","ultimate-addons-for-gutenberg"),checked:S,onChange:()=>a({showAuthor:!S}),help:Object(r.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Ratings","ultimate-addons-for-gutenberg"),checked:C,onChange:()=>a({showFeature:!C}),help:Object(r.__)("Note: Add feature/section ratings separately.","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Review Image","ultimate-addons-for-gutenberg"),checked:Re,onChange:()=>a({enableImage:!Re}),help:Object(r.__)("Note: This is a mandatory field for the Review schema.","ultimate-addons-for-gutenberg")}),React.createElement(Ss,{label:Object(r.__)("Link","ultimate-addons-for-gutenberg"),value:y,data:{value:y,label:"ctaLink"},setAttributes:a,onChange:e=>a({ctaLink:e})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Open in new window","ultimate-addons-for-gutenberg"),checked:f,onChange:()=>{a({ctaTarget:!f})}}))),!0===Re&&React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({mainimage:e}):a({mainimage:null})},backgroundImage:_,onRemoveImage:()=>{a({mainimage:""})},disableLabel:!0}),_&&"null"!==_&&"null"!==_.url&&""!==_.url&&React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:T,label:"imgSize"},setAttributes:a,options:Fx}))),(()=>{if(!0===l)return React.createElement(je,{title:Object(r.__)("Schema","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Item Type","ultimate-addons-for-gutenberg"),data:{value:i},onChange:yt,options:[{value:"Book",label:Object(r.__)("Book","ultimate-addons-for-gutenberg")},{value:"Course",label:Object(r.__)("Course","ultimate-addons-for-gutenberg")},{value:"Movie",label:Object(r.__)("Movie","ultimate-addons-for-gutenberg")},{value:"Product",label:Object(r.__)("Product","ultimate-addons-for-gutenberg")},{value:"SoftwareApplication",label:Object(r.__)("Software Application","ultimate-addons-for-gutenberg")}]}),ht.hasOwnProperty(i)&&React.createElement(Pi,{label:Object(r.__)("Item Subtype","ultimate-addons-for-gutenberg"),data:{value:o,label:"itemSubtype"},setAttributes:a,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},...ht[i]]}),ft,React.createElement(Ss,{label:Object(r.__)("Review Publisher","ultimate-addons-for-gutenberg"),value:He,data:{value:He,label:"reviewPublisher"},setAttributes:a,onChange:e=>a({reviewPublisher:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),React.createElement("h2",null,Object(r.__)("Date Of Publish","ultimate-addons-for-gutenberg")),React.createElement(Le.DateTimePicker,{className:"uagb-date-picker",currentDate:m,onChange:e=>a({datepublish:e}),is12Hour:!0}),["Product","SoftwareApplication"].includes(i)&&React.createElement(React.Fragment,null,["Product"].includes(i)&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Brand","ultimate-addons-for-gutenberg"),value:h,data:{value:h,label:"brand"},setAttributes:a,onChange:e=>a({brand:e})}),React.createElement(Ss,{label:Object(r.__)("SKU","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"sku"},setAttributes:a,onChange:e=>a({sku:e})}),React.createElement(Ss,{label:Object(r.__)("Identifier","ultimate-addons-for-gutenberg"),value:s,data:{value:s,label:"identifier"},setAttributes:a,onChange:e=>a({identifier:e})}),React.createElement(Pi,{label:Object(r.__)("Identifier Type","ultimate-addons-for-gutenberg"),data:{value:c,label:"identifierType"},setAttributes:a,options:["nsn","mpn","gtin8","gtin12","gtin13","gtin14","gtin"].map(e=>({label:e.toUpperCase(),value:e}))})),["Product","SoftwareApplication"].includes(i)&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Offer Currency","ultimate-addons-for-gutenberg"),value:p,data:{value:p,label:"offerCurrency"},setAttributes:a,onChange:e=>a({offerCurrency:e})})),"Offer"===u&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Offer Price","ultimate-addons-for-gutenberg"),value:b,data:{value:b,label:"offerPrice"},setAttributes:a,onChange:e=>a({offerPrice:e}),help:Object(r.__)("Note: This is a mandatory field for the Review schema","ultimate-addons-for-gutenberg")}),React.createElement(Pi,{label:Object(r.__)("Offer Status","ultimate-addons-for-gutenberg"),data:{value:d,label:"offerStatus"},setAttributes:e.setAttributes,options:[{value:"https://schema.org/Discontinued",label:Object(r.__)("Discontinued","ultimate-addons-for-gutenberg")},{value:"https://schema.org/InStock",label:Object(r.__)("In Stock","ultimate-addons-for-gutenberg")},{value:"https://schema.org/InStoreOnly",label:Object(r.__)("In Store Only","ultimate-addons-for-gutenberg")},{value:"https://schema.org/LimitedAvailability",label:Object(r.__)("Limited Availability","ultimate-addons-for-gutenberg")},{value:"https://schema.org/OnlineOnly",label:Object(r.__)("Online Only","ultimate-addons-for-gutenberg")},{value:"https://schema.org/OutOfStock",label:Object(r.__)("Out Of Stock","ultimate-addons-for-gutenberg")},{value:"https://schema.org/PreOrder",label:Object(r.__)("Pre Order","ultimate-addons-for-gutenberg")},{value:"https://schema.org/PreSale",label:Object(r.__)("Pre Sale","ultimate-addons-for-gutenberg")},{value:"https://schema.org/SoldOut",label:Object(r.__)("Sold Out","ultimate-addons-for-gutenberg")}]}),React.createElement("h2",null,Object(r.__)("Price Valid Until","ultimate-addons-for-gutenberg")),React.createElement(Le.DateTimePicker,{className:"uagb-date-picker",currentDate:g,onChange:e=>a({offerExpiry:e}),is12Hour:!0}))))})()),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:P,data:{value:P,label:"titleColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:a,loadGoogleFonts:{value:F,label:"headLoadGoogleFonts"},fontFamily:{value:A,label:"headFontFamily"},fontWeight:{value:G,label:"headFontWeight"},fontStyle:{value:Ke,label:"headFontStyle"},transform:{value:Ve,label:"headTransform"},decoration:{value:We,label:"headDecoration"},fontSizeType:{value:M,label:"headFontSizeType"},fontSize:{value:R,label:"headFontSize"},fontSizeMobile:{value:B,label:"headFontSizeMobile"},fontSizeTablet:{value:U,label:"headFontSizeTablet"},lineHeightType:{value:E,label:"headLineHeightType"},lineHeight:{value:O,label:"headLineHeight"},lineHeightMobile:{value:L,label:"headLineHeightMobile"},lineHeightTablet:{value:H,label:"headLineHeightTablet"},letterSpacing:{value:Qe,label:"headLetterSpacing"},letterSpacingTablet:{value:et,label:"headLetterSpacingTablet"},letterSpacingMobile:{value:tt,label:"headLetterSpacingMobile"},letterSpacingType:{value:at,label:"headLetterSpacingType"}})),Me&&React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},!0===Me&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:w,data:{value:w,label:"descColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:a,loadGoogleFonts:{value:K,label:"subHeadLoadGoogleFonts"},fontFamily:{value:z,label:"subHeadFontFamily"},fontWeight:{value:D,label:"subHeadFontWeight"},fontStyle:{value:Je,label:"subHeadFontStyle"},transform:{value:qe,label:"subHeadTransform"},decoration:{value:Ze,label:"subHeadDecoration"},fontSizeType:{value:I,label:"subHeadFontSizeType"},fontSize:{value:N,label:"subHeadFontSize"},fontSizeMobile:{value:V,label:"subHeadFontSizeMobile"},fontSizeTablet:{value:W,label:"subHeadFontSizeTablet"},lineHeightType:{value:Z,label:"subHeadLineHeightType"},lineHeight:{value:q,label:"subHeadLineHeight"},lineHeightMobile:{value:$,label:"subHeadLineHeightMobile"},lineHeightTablet:{value:Y,label:"subHeadLineHeightTablet"},letterSpacing:{value:lt,label:"subHeadLetterSpacing"},letterSpacingTablet:{value:it,label:"subHeadLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"subHeadLetterSpacingMobile"},letterSpacingType:{value:nt,label:"subHeadLetterSpacingType"}}))),!0===S&&React.createElement(je,{title:Object(r.__)("Author","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Pe,data:{value:Pe,label:"authorColor"},setAttributes:a}))),!0===C&&React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:x,data:{value:x,label:"contentColor"},setAttributes:a}))),React.createElement(je,{title:Object(r.__)("Summary","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:xe,data:{value:xe,label:"summaryColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:e.attributes,setAttributes:a,loadGoogleFonts:{value:J,label:"contentLoadGoogleFonts"},fontFamily:{value:X,label:"contentFontFamily"},fontWeight:{value:Q,label:"contentFontWeight"},fontStyle:{value:Xe,label:"contentFontStyle"},transform:{value:$e,label:"contentTransform"},decoration:{value:Ye,label:"contentDecoration"},fontSizeType:{value:ee,label:"contentFontSizeType"},fontSize:{value:ae,label:"contentFontSize"},fontSizeMobile:{value:ie,label:"contentFontSizeMobile"},fontSizeTablet:{value:le,label:"contentFontSizeTablet"},lineHeightType:{value:te,label:"contentLineHeightType"},lineHeight:{value:oe,label:"contentLineHeight"},lineHeightMobile:{value:re,label:"contentLineHeightMobile"},lineHeightTablet:{value:ne,label:"contentLineHeightTablet"},letterSpacing:{value:rt,label:"contentLetterSpacing"},letterSpacingTablet:{value:st,label:"contentLetterSpacingTablet"},letterSpacingMobile:{value:ct,label:"contentLetterSpacingMobile"},letterSpacingType:{value:ut,label:"contentLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Star","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Active Color","ultimate-addons-for-gutenberg"),colorValue:k,data:{value:k,label:"starColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Inactive Color","ultimate-addons-for-gutenberg"),colorValue:Ae,data:{value:Ae,label:"starActiveColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Outline Color","ultimate-addons-for-gutenberg"),colorValue:Ge,data:{value:Ge,label:"starOutlineColor"},setAttributes:a})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,Hx({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:se,label:"topPadding"},valueRight:{value:ue,label:"rightPadding"},valueBottom:{value:ce,label:"bottomPadding"},valueLeft:{value:pe,label:"leftPadding"},valueTopTablet:{value:fe,label:"paddingTopTablet"},valueRightTablet:{value:ve,label:"paddingRightTablet"},valueBottomTablet:{value:he,label:"paddingBottomTablet"},valueLeftTablet:{value:_e,label:"paddingLeftTablet"},valueTopMobile:{value:de,label:"paddingTopMobile"},valueRightMobile:{value:me,label:"paddingRightMobile"},valueBottomMobile:{value:be,label:"paddingBottomMobile"},valueLeftMobile:{value:ye,label:"paddingLeftMobile"},unit:{value:Se,label:"paddingUnit"},mUnit:{value:ke,label:"mobilePaddingUnit"},tUnit:{value:we,label:"tabletPaddingUnit"},attributes:t,setAttributes:a,link:{value:Te,label:"spacingLink"}})))),React.createElement(il,Hx({},rl,{parentProps:e})))))}),Dx=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))},Nx=e=>{const{ID:t,items:a,summaryTitle:l,summaryDescription:i,starCount:o,setItems:n,setSummaryDescription:s,setSummaryTitle:c,setTitle:u,setDescription:p,setAuthorName:d,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,ctaTarget:f,ctaLink:h,setActiveStarIndex:v,rTitle:_,rContent:T,rAuthor:C,headingTag:S,image_icon_html:k,showfeature:w,imageEnabled:P,descriptionEnabled:x,showauthor:A}=e,{average:G}=e.state,M=a.map(e=>e.value).reduce((e,t)=>e+t)/a.length;G!==M&&e.setStateValue({average:M});let R="_self";return f&&(R="_blank"),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:h,className:"uagb-rating-link-wrapper",target:R,rel:"noopener noreferrer"},React.createElement(ge.RichText,{tagName:S,placeholder:Object(r.__)("Title of the review","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:_,className:"uagb-rating-title",onChange:e=>u(e)})),!0===x&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("Review Description","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:T,className:"uagb-rating-desc",onChange:e=>p(e)}),!0===A&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("Review Author","ultimate-addons-for-gutenberg"),keepPlaceholderOnFocus:!0,value:C,className:"uagb-rating-author",onChange:e=>d(e)}),!0===P&&React.createElement("div",{className:"uagb-rating__source-wrap"},k),a.map((l,i)=>!0===w&&React.createElement("div",{className:"uagb_review_entry",key:i},React.createElement(ge.RichText,{style:{marginRight:"auto"},placeholder:Object(r.__)("Edit feature","ultimate-addons-for-gutenberg"),value:l.label,onChange:e=>n([...a.slice(0,i),{label:e,value:l.value},...a.slice(i+1)])}),React.createElement("div",{style:{marginLeft:"auto",minWidth:a.length>1?120:100}},React.createElement(Dx,{id:`${t}-${i}`,key:i,value:l.value,limit:o,setValue:t=>{const o=[...a.slice(0,i),{label:l.label,value:t},...a.slice(i+1)];n(o),v(i),e.setStateValue({average:o.map(e=>e.value).reduce((e,t)=>e+t)/o.length})},inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,state:e.starState,setStateValue:e.starSetStateValue}),a.length>1&&React.createElement("div",{className:"dashicons dashicons-trash",onClick:()=>{const t=a.slice(0,i).concat(a.slice(i+1,a.length));n(t),e.setStateValue({average:t.map(e=>e.value).reduce((e,t)=>e+t)/t.length})}})))),!0===w&&React.createElement("div",{title:Object(r.__)("Insert new review entry","ultimate-addons-for-gutenberg"),onClick:()=>{n([...a,{label:"",value:0}]),e.setStateValue({average:G/(a.length+1)})},className:"uagb_review_add_entry dashicons dashicons-plus-alt"}),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText,{className:"uagb_review_summary_title",placeholder:Object(r.__)("Title of the summary goes here","ultimate-addons-for-gutenberg"),tagName:"p",onChange:e=>c(e),value:l}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText,{placeholder:Object(r.__)("Summary of the review goes here","ultimate-addons-for-gutenberg"),onChange:e=>s(e),value:i}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*G)/10),React.createElement(Dx,{id:t+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:G,limit:o,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,state:e.starState,setStateValue:e.starSetStateValue})))))},Ix=a(135),Vx=0,Wx={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},qx={};qx.locals=Ix.a.locals||{},qx.use=function(){return Vx++||(jx=we()(Ix.a,Wx)),qx},qx.unuse=function(){Vx>0&&!--Vx&&(jx(),jx=null)};var Zx=qx,$x=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(Zx.use(),()=>{Zx.unuse()}),[]);const{attributes:{block_id:t,authorName:a,itemName:l,description:i,parts:o,starCount:n,summaryTitle:r,summaryDescription:s,inactiveStarColor:c,activeStarColor:u,ctaLink:p,ctaTarget:d,rTitle:b,rContent:g,rAuthor:m,headingTag:y,mainimage:f,imgSize:h,showFeature:v,showAuthor:_,starOutlineColor:T,enableDescription:C,enableImage:S,imgTagHeight:k,imgTagWidth:w},setAttributes:P,isSelected:x,className:A,deviceType:G}=e,M={average:e.attributes.parts.map(e=>e.value).reduce((e,t)=>e+t)/e.attributes.parts.length},[R,U]=Object(B.useState)(M),E={displayValue:e.value,displayColor:e.activeStarColor},[O,L]=Object(B.useState)(E);let H="",F="",j="";var z,D;void 0!==e.attributes.mainimage&&null!==e.attributes.mainimage&&""!==e.attributes.mainimage&&(H=e.attributes.mainimage.url,F=e.attributes.mainimage.title,j=null!==(z=e.attributes.mainimage)&&void 0!==z&&z.alt?null===(D=e.attributes.mainimage)||void 0===D?void 0:D.alt:"");let N="";if(""!==H){const t=e.attributes.mainimage.sizes,a=e.attributes.imgSize;N=void 0!==t&&void 0!==t[a]?t[a].url:H}Object(B.useEffect)(()=>{Zg(N,P)},[N]);let I="";return f&&f.url&&(I=React.createElement("img",{className:"uagb-review__source-image",src:N,title:F,width:w,height:k,loading:"lazy",alt:j})),React.createElement("div",{className:Be()(A,"uagb-ratings__outer-wrap","uagb-block-"+t,"uagb-editor-preview-mode-"+G.toLowerCase())},React.createElement(Nx,{rTitle:b,setTitle:e=>P({rTitle:e}),ctaLink:p,ctaTarget:d,rContent:g,setDescription:e=>P({rContent:e}),rAuthor:m,setAuthorName:e=>P({rAuthor:e}),headingTag:y,mainimage:f,imgSize:h,image_icon_html:I,isSelected:x,authorName:a,itemName:l,description:i,descriptionEnabled:C,ID:t,imageEnabled:S,items:o,starCount:n,summaryTitle:r,summaryDescription:s,inactiveStarColor:c,activeStarColor:u,selectedStarColor:u,starOutlineColor:T,setItemName:e=>P({itemName:e}),setImage:e=>P({imgID:e.id,imgURL:e.url,imgAlt:e.alt}),setItems:e=>P({parts:e}),setSummaryTitle:e=>P({summaryTitle:e}),setSummaryDescription:e=>P({summaryDescription:e}),hasFocus:x,setEditable:e=>U({editable:e}),setActiveStarIndex:e=>U({editedStar:e}),showfeature:v,showauthor:_,state:R,setStateValue:U,starState:O,starSetStateValue:L}))}),Yx=Object(B.memo)(e=>{let{attributes:t}=e;const{headLoadGoogleFonts:a,headFontFamily:l,headFontWeight:i,subHeadLoadGoogleFonts:o,subHeadFontFamily:n,subHeadFontWeight:r,contentLoadGoogleFonts:s,contentFontFamily:c,contentFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};d=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};b=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};p=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,d,b,p)}),Kx=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{parts:l,itemType:i,summaryDescription:o,starCount:n,reviewPublisher:r,datepublish:s,rTitle:c,rContent:u,rAuthor:p,isbn:d,provider:b,sku:g,brand:m,datecreated:y,directorname:f,appCategory:h,operatingSystem:v,aggregateType:_,offerType:T,offerPrice:C,itemSubtype:S,mainimage:k,identifierType:w,identifier:P,ctaLink:x,offerExpiry:A,offerCurrency:G,offerStatus:M,UAGHideDesktop:R,UAGHideTab:U,UAGHideMob:E,contentVrPadding:O,contentHrPadding:L,topPadding:H,bottomPadding:F,rightPadding:j,leftPadding:z,enableSchema:D,items:N,showFeature:I,showAuthor:V,enableDescription:W,enableImage:q,bookAuthorName:Z,courseMode:$,repeatCount:Y,repeatFrequency:K,categoryOfCourse:J,courseLocation:X},setAttributes:Q,deviceType:ee}=e,te=()=>{const e=l.map(e=>e.value).reduce((e,t)=>e+t)/l.length,t=l.length;let a="";a=["Product","SoftwareApplication","Book"].includes(i)&&"None"!==S&&""!==S?S:i;const R={"@context":"https://schema.org/","@type":"Review",reviewBody:o,description:u,itemReviewed:[],reviewRating:{"@type":"Rating",ratingValue:e,worstRating:"0",bestRating:n},author:{"@type":"Person",name:p},publisher:r,datePublished:s,url:x};switch(i){case"Book":R.itemReviewed={"@type":a,name:c,description:u,image:[],author:p,isbn:d};break;case"Course":R.itemReviewed={"@type":i,name:c,description:u,image:[],provider:{"@type":"Organization",name:b},offers:[{"@type":"Offer",category:J}],hasCourseInstance:[{"@type":"CourseInstance",courseMode:$,courseSchedule:{"@type":"Schedule",repeatCount:Y,repeatFrequency:K}}]};break;case"Product":R.itemReviewed={"@type":a,name:c,description:u,image:[],sku:g,brand:{"@type":"Brand",name:m},offers:[]};break;case"Movie":R.itemReviewed={"@type":i,name:c,dateCreated:y,director:{"@type":"Person",name:f}};break;case"SoftwareApplication":R.itemReviewed={"@type":a,name:c,applicationCategory:h,operatingSystem:v,aggregateRating:{"@type":_,ratingValue:e,ratingCount:t},offers:{"@type":T,price:C,url:x,priceCurrency:G}}}k&&(R.itemReviewed.image=k.url),"Course"===i&&(R.itemReviewed.hasCourseInstance[0].location=X,R.provider={"@type":"Organization",name:b}),"Product"===i&&(R.itemReviewed[w]=P,R.itemReviewed.offers={"@type":T,price:C,url:x,priceValidUntil:A,priceCurrency:G,availability:M}),Q({schema:JSON.stringify(R)})};Object(B.useEffect)(()=>{var e;O&&(void 0===H&&Q({topPadding:O}),void 0===F&&Q({bottomPadding:O})),L&&(void 0===j&&Q({rightPadding:L}),void 0===z&&Q({leftPadding:L}));const t=null===(e=document.getElementsByClassName("editor-post-publish-button"))||void 0===e?void 0:e[0];t&&t.addEventListener("click",te)},[]),Object(B.useEffect)(()=>{var e;const t=document.querySelector(".uagb-rating-link-wrapper");null!==t&&t.addEventListener("click",(function(e){e.preventDefault()}));const a=null===(e=document.getElementsByClassName("editor-post-publish-button"))||void 0===e?void 0:e[0];if(a)return a.addEventListener("click",te),()=>{null==a||a.removeEventListener("click",te)}},[a,ee]),Object(B.useEffect)(()=>{ys()},[ee]),Object(B.useEffect)(()=>{he(e)},[R,U,E,ee]),N&&N!==JSON.stringify(l)&&1===l.length&&""===l[0].label&&0===l[0].value&&Q({parts:JSON.parse(N),items:'[{"label":"","value":0}]'});const le=Object(B.useMemo)(()=>function(e,t){const a=t.toLowerCase(),{block_id:l,starColor:i,descColor:o,titleColor:n,contentColor:r,headFontFamily:s,headFontWeight:c,headFontSizeType:u,headLineHeightType:p,headFontSize:d,headFontSizeTablet:b,headFontSizeMobile:g,headLineHeight:m,headLineHeightTablet:y,headLineHeightMobile:f,subHeadFontFamily:h,subHeadFontWeight:v,subHeadFontSize:_,subHeadFontSizeType:T,subHeadFontSizeMobile:C,subHeadFontSizeTablet:S,subHeadLineHeight:k,subHeadLineHeightType:w,subHeadLineHeightMobile:P,subHeadLineHeightTablet:x,contentFontFamily:A,contentFontWeight:G,contentFontSizeType:M,contentLineHeightType:R,contentFontSize:B,contentFontSizeTablet:U,contentFontSizeMobile:E,contentLineHeight:O,contentLineHeightTablet:L,contentLineHeightMobile:H,topPadding:F,bottomPadding:j,rightPadding:z,leftPadding:D,paddingTopMobile:N,paddingBottomMobile:I,paddingRightMobile:V,paddingLeftMobile:W,paddingTopTablet:q,paddingBottomTablet:Z,paddingRightTablet:$,paddingLeftTablet:Y,paddingUnit:K,mobilePaddingUnit:J,tabletPaddingUnit:X,authorColor:Q,summaryColor:ee,starActiveColor:te,starOutlineColor:le,overallAlignment:ie,headTransform:oe,headDecoration:ne,subHeadTransform:re,subHeadDecoration:se,contentTransform:ce,contentDecoration:ue,headFontStyle:pe,subHeadFontStyle:de,contentFontStyle:be,headLetterSpacing:ge,headLetterSpacingTablet:me,headLetterSpacingMobile:ye,headLetterSpacingType:fe,subHeadLetterSpacing:he,subHeadLetterSpacingTablet:ve,subHeadLetterSpacingMobile:_e,subHeadLetterSpacingType:Te,contentLetterSpacing:Ce,contentLetterSpacingTablet:Se,contentLetterSpacingMobile:ke,contentLetterSpacingType:we}=e;let Pe={},xe={};const Ae={" .uagb-star-inner-container svg":{fill:i}," .uagb-avg-review-star-inner-container svg":{fill:i}," .uagb-rating-title":{"font-size":Vr(d,u),"font-weight":c,"font-family":s,"font-style":pe,"text-decoration":ne,"text-transform":oe,"line-height":Vr(m,p),"letter-spacing":Vr(ge,fe),color:n}," .uagb_review_entry":{"font-size":Vr(d,u),"font-weight":c,"font-family":s,"font-style":pe,"text-decoration":ne,"text-transform":oe,"line-height":Vr(m,p),"letter-spacing":Vr(ge,fe)}," .uagb-rating-desc":{"font-size":Vr(_,T),"font-weight":v,"font-family":h,"font-style":de,"text-decoration":se,"text-transform":re,"line-height":Vr(k,w),"letter-spacing":Vr(he,Te),color:o}," .uagb-rating-author":{"font-size":Vr(_,T),"font-weight":v,"font-family":h,"font-style":de,"text-decoration":se,"text-transform":re,"line-height":Vr(k,w),"letter-spacing":Vr(he,Te),color:Q}," .uagb_review_block":{"padding-left":Vr(D,K),"padding-right":Vr(z,K),"padding-top":Vr(F,K),"padding-bottom":Vr(j,K),"text-align":ie}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":Vr(B,M),"font-weight":G,"font-family":A,"font-style":be,"text-decoration":ue,"text-transform":ce,"line-height":Vr(O,R),"letter-spacing":Vr(Ce,we),color:ee}," .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:le,fill:te}};xe={" .uagb-rating-title, .uagb_review_entry":{"font-size":Vr(g,u),"line-height":Vr(f,p),"letter-spacing":Vr(ye,fe)}," .uagb-rating-desc, .uagb-rating-author":{"font-size":Vr(C,T),"line-height":Vr(P,w),"letter-spacing":Vr(_e,Te)}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":Vr(E,M),"line-height":Vr(H,R),"letter-spacing":Vr(ke,we)}," .uagb_review_block":{"padding-left":Vr(W,J),"padding-right":Vr(V,J),"padding-top":Vr(N,J),"padding-bottom":Vr(I,J)}},Pe={" .uagb-rating-title, .uagb_review_entry":{"font-size":Vr(b,u),"line-height":Vr(y,p),"letter-spacing":Vr(me,fe)}," .uagb-rating-desc, .uagb-rating-author":{"font-size":Vr(S,T),"line-height":Vr(x,w),"letter-spacing":Vr(ve,Te)}," .uagb_review_summary, p.rich-text.block-editor-rich-text__editable.uagb_review_summary_title":{"font-size":Vr(U,M),"line-height":Vr(L,R),"letter-spacing":Vr(Se,we)}," .uagb_review_block":{"padding-left":Vr(Y,X),"padding-right":Vr($,X),"padding-top":Vr(q,X),"padding-bottom":Vr(Z,X)}};const Ge=".editor-styles-wrapper .uagb-block-"+l;let Me=ae(Ae,Ge);return"tablet"!==a&&"mobile"!==a||(Me+=ae(Pe,""+Ge,!0,"tablet"),"mobile"===a&&(Me+=ae(xe,""+Ge,!0,"mobile"))),Me}(a,ee),[a,ee]);return React.createElement(React.Fragment,null,React.createElement(Lx,{enableSchema:D,itemType:i,rTitle:c,enableDescription:W,rContent:u,enableImage:q,mainimage:k,sku:g,brand:m,starCount:n,showAuthor:V,rAuthor:p,showfeature:I,aggregateType:_,offerType:T,datepublish:s,offerCurrency:G,offerPrice:C,ctaLink:x,offerExpiry:A,identifier:P,isbn:d,bookAuthorName:Z,directorname:f,datecreated:y,provider:b,appCategory:h,operatingSystem:v,reviewPublisher:r}),React.createElement(me,{blockStyling:le}),React.createElement(Yx,{attributes:a}),t&&React.createElement(zx,e),React.createElement($x,e))}),Jx=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))};a(369);class Xx extends B.Component{constructor(e){super(e),this.state={displayValue:this.props.value,displayColor:this.props.activeStarColor},this.mouseHover=this.mouseHover.bind(this),this.mouseLeave=this.mouseLeave.bind(this),this.mouseClick=this.mouseClick.bind(this)}mouseHover(e){this.setState({displayValue:e+(this.props.value-e==1?.5:1),displayColor:this.props.selectedStarColor})}mouseLeave(){this.setState({displayValue:this.props.value,displayColor:this.props.activeStarColor})}mouseClick(e){const{setValue:t,value:a}=this.props;t(a===e+1?e+.5:e+1),this.setState({displayValue:a===e+1?e+.5:e+1})}componentWillReceiveProps(e){const{value:t,activeStarColor:a}=e;this.props.onHover||this.state.displayValue!==t?this.setState({displayValue:t,displayColor:a}):this.setState({displayColor:a})}render(){const{displayValue:e}=this.state,{limit:t,id:a,className:l,inactiveStarColor:i,onHover:o,onClick:n,style:r,starOutlineColor:s}=this.props;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},r)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>o||this.mouseHover(t),onMouseOut:()=>this.mouseLeave(),onClick:()=>n||this.mouseClick(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(e-t>0?e-t<1?e-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:s}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:this.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:s}))))}}B.Component;var Qx=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))},eA=e=>{const{limit:t,id:a,className:l,inactiveStarColor:i,onClick:o,style:n,starOutlineColor:r,value:s,activeStarColor:c}=e;return React.createElement("div",{className:l,style:Object.assign({display:"flex",flexDirection:"flex-row"},n)},[...Array(t).keys()].map(t=>React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",key:t,height:"20",width:"20",viewBox:"0 0 150 150",onMouseOver:()=>(t=>{e.setStateValue({displayValue:t+(e.value-t==1?.5:1),displayColor:e.selectedStarColor})})(t),onMouseOut:()=>{e.setStateValue({displayValue:e.value,displayColor:e.activeStarColor})},onClick:()=>o||(t=>{const{setValue:a,value:l}=e;a(l===t+1?t+.5:t+1),e.setStateValue({displayValue:l===t+1?t+.5:t+1})})(t)},React.createElement("defs",null,React.createElement("mask",{id:`uagb_review_star_filter-${a}-${t}`},React.createElement("rect",{height:"150",width:150*(s-t>0?s-t<1?s-t:1:0),y:"0",x:"0",fill:"#fff"}))),React.createElement("path",{fill:i,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:r}),React.createElement("path",{className:"star",id:"star"+t,mask:`url(#uagb_review_star_filter-${a}-${t})`,fill:c,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:r}))))},tA=[{attributes:{ID:{type:"string",default:""},itemType:{type:"string",default:Object(r.__)("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(r.__)("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(r.__)("List Of Features:")},featuresAvgText:{type:"string",default:Object(r.__)("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(r.__)("Instock")},availabilitytext:{type:"string",default:Object(r.__)("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"},deviceType:{type:"string",default:"Desktop"},paddingUnit:{type:"string",default:"px"}},save:function(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,ID:u,parts:p,summaryTitle:d,summaryDescription:b,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f,schema:h,block_id:v,showAuthor:_,showFeature:T,enableDescription:C,enableImage:S,ctaTarget:k,ctaLink:w}=t,P=p.map(e=>e.value).reduce((e,t)=>e+t)/p.length;let x="",A="";void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(x=t.mainimage.url,A=t.mainimage.title);let G="";if(""!==x){let e=t.mainimage.sizes,a=t.imgSize;G=void 0!==e&&void 0!==e[a]?e[a].url:x}let M="";n&&n.url&&(M=React.createElement("img",{className:"uagb-howto__source-image",src:G,title:A}));let R="";return k&&(R="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+v.substr(0,8))},l&&React.createElement("script",{type:"application/ld+json"},h),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:w,className:Be()("uagb-rating-link-wrapper"),target:R,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===C&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===_&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===S&&React.createElement("div",{className:"uagb-rating__source-wrap"},M),p.map((e,t)=>!0===T&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:p.length>1?120:100}},React.createElement(Xx,{id:""+t,key:t,value:e.value,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:b}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*P)/10),React.createElement(Xx,{id:u+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:P,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f}))))))}},{attributes:Xt,save:function(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,ID:u,parts:p,summaryTitle:d,summaryDescription:b,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f,schema:h,block_id:v,showAuthor:_,showFeature:T,enableDescription:C,enableImage:S,ctaTarget:k,ctaLink:w}=t,P=p.map(e=>e.value).reduce((e,t)=>e+t)/p.length;let x="",A="",G="";var M,R;void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(x=t.mainimage.url,A=t.mainimage.title,G=null!==(M=e.attributes.mainimage)&&void 0!==M&&M.alt?null===(R=e.attributes.mainimage)||void 0===R?void 0:R.alt:"");let B="";if(""!==x){const e=t.mainimage.sizes,a=t.imgSize;B=void 0!==e&&void 0!==e[a]?e[a].url:x}let U="";n&&n.url&&(U=React.createElement("img",{className:"uagb-howto__source-image",src:B,title:A,alt:G}));let E="";return k&&(E="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+v.substr(0,8))},l&&React.createElement("script",{type:"application/ld+json"},h),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:w,className:Be()("uagb-rating-link-wrapper"),target:E,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===C&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===_&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===S&&React.createElement("div",{className:"uagb-rating__source-wrap"},U),p.map((e,t)=>!0===T&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:p.length>1?120:100}},React.createElement(Qx,{id:""+t,key:t,value:e.value,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:b}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*P)/10),React.createElement(Qx,{id:u+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:P,limit:c,inactiveStarColor:g,activeStarColor:m,selectedStarColor:y,starOutlineColor:f}))))))}},{attributes:Xt,save(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,parts:u,summaryTitle:p,summaryDescription:d,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,schema:f,block_id:h,showAuthor:v,showFeature:_,enableDescription:T,enableImage:C,ctaTarget:S,ctaLink:k}=t,w=u.map(e=>e.value).reduce((e,t)=>e+t)/u.length;let P="",x="",A="";var G,M;void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(P=t.mainimage.url,x=t.mainimage.title,A=null!==(G=e.attributes.mainimage)&&void 0!==G&&G.alt?null===(M=e.attributes.mainimage)||void 0===M?void 0:M.alt:"");let R="";if(""!==P){const e=t.mainimage.sizes,a=t.imgSize;R=void 0!==e&&void 0!==e[a]?e[a].url:P}let B="";n&&n.url&&(B=React.createElement("img",{className:"uagb-howto__source-image",src:R,title:x,alt:A}));let U="";return S&&(U="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+h.substr(0,8))},l&&React.createElement("script",{type:"application/ld+json"},f),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:k,className:Be()("uagb-rating-link-wrapper"),target:U,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===T&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===v&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===C&&React.createElement("div",{className:"uagb-rating__source-wrap"},B),u.map((e,t)=>!0===_&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:u.length>1?120:100}},React.createElement(eA,{id:`${h.substr(0,8)}-${t}`,key:t,value:e.value,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:p}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*w)/10),React.createElement(eA,{id:h.substr(0,8)+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:w,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y}))))))}}];let aA={};aA=Object(F.applyFilters)("uagb/review",ss(aA)),Object(de.registerBlockType)("uagb/review",{...aA,title:Object(r.__)("Review","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add reviews to items with Schema support.","ultimate-addons-for-gutenberg"),icon:se.review,keywords:[Object(r.__)("ratings","ultimate-addons-for-gutenberg"),Object(r.__)("review","ultimate-addons-for-gutenberg"),Object(r.__)("schema","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:Xt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"review"}):React.createElement(Kx,e),save:function(e){const{attributes:t,className:a}=e,{enableSchema:l,rTitle:i,rContent:o,mainimage:n,rAuthor:r,headingTag:s,starCount:c,parts:u,summaryTitle:p,summaryDescription:d,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y,schema:f,block_id:h,showAuthor:v,showFeature:_,enableDescription:T,enableImage:C,ctaTarget:S,ctaLink:k,imgTagHeight:w,imgTagWidth:P}=t,x=u.map(e=>e.value).reduce((e,t)=>e+t)/u.length;let A="",G="",M="";var R,B;void 0!==t.mainimage&&null!==t.mainimage&&""!==t.mainimage&&(A=t.mainimage.url,G=t.mainimage.title,M=null!==(R=e.attributes.mainimage)&&void 0!==R&&R.alt?null===(B=e.attributes.mainimage)||void 0===B?void 0:B.alt:"");let U="";if(""!==A){const e=t.mainimage.sizes,a=t.imgSize;U=void 0!==e&&void 0!==e[a]?e[a].url:A}let E="";n&&n.url&&(E=React.createElement("img",{className:"uagb-howto__source-image",src:U,title:G,width:P,height:w,loading:"lazy",alt:M}));let O="";return S&&(O="_blank"),React.createElement("div",{className:Be()(a,"uagb-ratings__outer-wrap","uagb-block-"+h)},l&&React.createElement("script",{type:"application/ld+json"},f),React.createElement("div",{className:"uagb_review_block"},React.createElement("a",{href:k,className:Be()("uagb-rating-link-wrapper"),target:O,rel:"noopener noreferrer"},React.createElement(ge.RichText.Content,{value:i,className:"uagb-rating-title",tagName:s})),!0===T&&React.createElement(ge.RichText.Content,{tagName:"p",value:o,className:"uagb-rating-desc"}),!0===v&&React.createElement(ge.RichText.Content,{tagName:"p",value:r,className:"uagb-rating-author"}),!0===C&&React.createElement("div",{className:"uagb-rating__source-wrap"},E),u.map((e,t)=>!0===_&&React.createElement("div",{className:"uagb_review_entry"},React.createElement(ge.RichText.Content,{tagName:"div",value:e.label}),React.createElement("div",{key:t,style:{marginLeft:"auto",minWidth:u.length>1?120:100}},React.createElement(Jx,{id:`${h}-${t}`,key:t,value:e.value,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y})))),React.createElement("div",{className:"uagb_review_summary"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_title",tagName:"p",value:p}),React.createElement("div",{className:"uagb_review_overall_value"},React.createElement(ge.RichText.Content,{className:"uagb_review_summary_desc",tagName:"p",value:d}),React.createElement("div",{className:"uagb_review_average"},React.createElement("span",{className:"uagb_review_rating"},Math.round(10*x)/10),React.createElement(Jx,{id:h+"-average",className:"uagb_review_average_stars",onHover:()=>null,onClick:()=>null,value:x,limit:c,inactiveStarColor:b,activeStarColor:g,selectedStarColor:m,starOutlineColor:y}))))))},deprecated:tA}),a(75);const lA=e=>{let t={};switch(e){case"left":t={"margin-left":0,"margin-right":"auto"};break;case"center":t={"margin-left":"auto","margin-right":"auto"};break;case"right":t={"margin-right":0,"margin-left":"auto"}}return t};var iA=Object(B.memo)(e=>{let{attributes:t}=e;const{elementTextLoadGoogleFonts:a,elementTextFontFamily:l,elementTextFontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)});function oA(){return(oA=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{separatorStyle:i,separatorAlign:o,separatorAlignTablet:n,separatorAlignMobile:s,separatorWidth:c,separatorWidthTablet:u,separatorWidthMobile:p,separatorWidthType:d,separatorColor:b,separatorBorderHeight:g,separatorBorderHeightMobile:m,separatorBorderHeightTablet:y,separatorBorderHeightUnit:f,separatorSize:h,separatorSizeMobile:v,separatorSizeTablet:_,separatorSizeType:T,elementType:C,separatorText:S,separatorTextTag:k,separatorIcon:w,elementPosition:P,elementSpacing:x,elementSpacingTablet:A,elementSpacingMobile:G,elementSpacingUnit:M,elementTextLoadGoogleFonts:R,elementTextFontFamily:B,elementTextFontWeight:U,elementTextFontSize:E,elementTextFontSizeType:O,elementTextFontSizeTablet:L,elementTextFontSizeMobile:H,elementTextLineHeightType:F,elementTextLineHeight:j,elementTextLineHeightTablet:z,elementTextLineHeightMobile:D,elementTextFontStyle:N,elementTextLetterSpacing:I,elementTextLetterSpacingTablet:V,elementTextLetterSpacingMobile:W,elementTextLetterSpacingType:q,elementTextDecoration:Z,elementTextTransform:$,elementColor:Y,elementIconWidth:K,elementIconWidthTablet:J,elementIconWidthMobile:X,elementIconWidthType:Q,blockTopPadding:ee,blockRightPadding:te,blockLeftPadding:ae,blockBottomPadding:le,blockTopPaddingTablet:ie,blockRightPaddingTablet:oe,blockLeftPaddingTablet:ne,blockBottomPaddingTablet:re,blockTopPaddingMobile:se,blockRightPaddingMobile:ce,blockLeftPaddingMobile:ue,blockBottomPaddingMobile:pe,blockPaddingUnit:de,blockPaddingUnitTablet:be,blockPaddingUnitMobile:me,blockPaddingLink:ye,blockTopMargin:fe,blockRightMargin:he,blockLeftMargin:ve,blockBottomMargin:_e,blockTopMarginTablet:Te,blockRightMarginTablet:Se,blockLeftMarginTablet:ke,blockBottomMarginTablet:we,blockTopMarginMobile:Pe,blockRightMarginMobile:xe,blockLeftMarginMobile:Ae,blockBottomMarginMobile:Ge,blockMarginUnit:Me,blockMarginUnitTablet:Re,blockMarginUnitMobile:Be,blockMarginLink:Ue}=t;return React.createElement("div",null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:i,label:"separatorStyle"},help:"none"!==i&&"dotted"!==i&&"dashed"!==i&&"double"!==i&&"solid"!==i&&Object(r.__)("Note: Please set Separator Height for proper thickness.","ultimate-addons-for-gutenberg"),setAttributes:a,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"rectangles",label:Object(r.__)("Rectangles","ultimate-addons-for-gutenberg")},{value:"parallelogram",label:Object(r.__)("Parallelogram","ultimate-addons-for-gutenberg")},{value:"slash",label:Object(r.__)("Slash","ultimate-addons-for-gutenberg")},{value:"leaves",label:Object(r.__)("Leaves","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Add Element","ultimate-addons-for-gutenberg"),data:{value:C,label:"elementType"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"text",label:Object(r.__)("Text","ultimate-addons-for-gutenberg")},{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")}],showIcons:!1,responsive:!1}),"text"===C&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("Text","ultimate-addons-for-gutenberg"),data:{value:S,label:"separatorText"},setAttributes:a,value:S}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:k,label:"separatorTextTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"p",label:Object(r.__)("P","ultimate-addons-for-gutenberg")}]})),"icon"===C&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:w,onChange:e=>a({separatorIcon:e})}))))),React.createElement(il,nl,React.createElement(je,{title:"Separator",initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:o,label:"separatorAlign"},tablet:{value:n,label:"separatorAlignTablet"},mobile:{value:s,label:"separatorAlignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"separatorWidth"},tablet:{value:u,label:"separatorWidthTablet"},mobile:{value:p,label:"separatorWidthMobile"}},min:0,max:"%"===d?100:500,unit:{value:d,label:"separatorWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),"solid"!==i&&"double"!==i&&"dotted"!==i&&"dashed"!==i&&"none"!==i&&React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:h,label:"separatorSize"},tablet:{value:_,label:"separatorSizeTablet"},mobile:{value:v,label:"separatorSizeMobile"}},min:0,max:"%"===T?100:500,unit:{value:T,label:"separatorSizeType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),"none"!==i&&React.createElement(tl,{label:Object(r.__)("Separator Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:g,label:"separatorBorderHeight"},tablet:{value:y,label:"separatorBorderHeightTablet"},mobile:{value:m,label:"separatorBorderHeightMobile"}},min:0,max:"%"===T?100:500,unit:{value:f,label:"separatorBorderHeightUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),"none"!==i&&React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"separatorColor"},setAttributes:a})),"none"!==C&&React.createElement(je,{title:"text"===C?Object(r.__)("Text","ultimate-addons-for-gutenberg"):Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),responsive:!0,data:{desktop:{value:P,label:"elementPosition"},tablet:{value:P,label:"elementPosition"},mobile:{value:P,label:"elementPosition"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Y||"",data:{value:Y,label:"elementColor"},setAttributes:a}),"text"===C&&React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:R,label:"elementTextLoadGoogleFonts"},fontFamily:{value:B,label:"elementTextFontFamily"},fontWeight:{value:U,label:"elementTextFontWeight"},fontStyle:{value:N,label:"elementTextFontStyle"},fontSizeType:{value:O,label:"elementTextFontSizeType"},fontSize:{value:E,label:"elementTextFontSize"},fontSizeMobile:{value:H,label:"elementTextFontSizeMobile"},fontSizeTablet:{value:L,label:"elementTextFontSizeTablet"},lineHeightType:{value:F,label:"elementTextLineHeightType"},lineHeight:{value:j,label:"elementTextLineHeight"},lineHeightMobile:{value:D,label:"elementTextLineHeightMobile"},lineHeightTablet:{value:z,label:"elementTextLineHeightTablet"},letterSpacing:{value:I,label:"elementTextLetterSpacing"},letterSpacingTablet:{value:V,label:"elementTextLetterSpacingTablet"},letterSpacingMobile:{value:W,label:"elementTextLetterSpacingMobile"},letterSpacingType:{value:q,label:"elementTextLetterSpacingType"},transform:{value:$,label:"elementTextTransform"},decoration:{value:Z,label:"elementTextDecoration"}}),"icon"===C&&React.createElement(tl,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"elementIconWidth"},tablet:{value:J,label:"elementIconWidthTablet"},mobile:{value:X,label:"elementIconWidthMobile"}},min:0,max:100,unit:{value:Q,label:"elementIconWidthType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:x,label:"elementSpacing"},tablet:{value:A,label:"elementSpacingTablet"},mobile:{value:G,label:"elementSpacingMobile"}},min:0,max:500,unit:{value:M,label:"elementSpacingUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ee,label:"blockTopPadding"},valueRight:{value:te,label:"blockRightPadding"},valueBottom:{value:le,label:"blockBottomPadding"},valueLeft:{value:ae,label:"blockLeftPadding"},valueTopTablet:{value:ie,label:"blockTopPaddingTablet"},valueRightTablet:{value:oe,label:"blockRightPaddingTablet"},valueBottomTablet:{value:re,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:ne,label:"blockLeftPaddingTablet"},valueTopMobile:{value:se,label:"blockTopPaddingMobile"},valueRightMobile:{value:ce,label:"blockRightPaddingMobile"},valueBottomMobile:{value:pe,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:ue,label:"blockLeftPaddingMobile"},unit:{value:de,label:"blockPaddingUnit"},mUnit:{value:me,label:"blockPaddingUnitMobile"},tUnit:{value:be,label:"blockPaddingUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:ye,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:fe,label:"blockTopMargin"},valueRight:{value:he,label:"blockRightMargin"},valueBottom:{value:_e,label:"blockBottomMargin"},valueLeft:{value:ve,label:"blockLeftMargin"},valueTopTablet:{value:Te,label:"blockTopMarginTablet"},valueRightTablet:{value:Se,label:"blockRightMarginTablet"},valueBottomTablet:{value:we,label:"blockBottomMarginTablet"},valueLeftTablet:{value:ke,label:"blockLeftMarginTablet"},valueTopMobile:{value:Pe,label:"blockTopMarginMobile"},valueRightMobile:{value:xe,label:"blockRightMarginMobile"},valueBottomMobile:{value:Ge,label:"blockBottomMarginMobile"},valueLeftMobile:{value:Ae,label:"blockLeftMarginMobile"},unit:{value:Me,label:"blockMarginUnit"},mUnit:{value:Be,label:"blockMarginUnitMobile"},tUnit:{value:Re,label:"blockMarginUnitTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:Ue,label:"blockMarginLink"}}))),React.createElement(il,oA({},rl,{parentProps:e})))))}),rA=function(e){const t={rectangles:"url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.4 0H16L9.6 16H0L6.4 0Z' fill='black'/%3E%3C/svg%3E\")",parallelogram:"url(\"data:image/svg+xml,%3Csvg width='8' height='16' viewBox='0 0 8 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='8' height='16' fill='black'/%3E%3C/svg%3E\")",slash:"url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.29312 16.9999L17 6.29302M14.2931 16.9999L17 14.293M-0.707031 15.9999L16.0002 -0.707153M8.00017 -0.707153L-0.706882 7.9999' stroke='black'/%3E%3C/svg%3E\")",leaves:"url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_2356_5631)'%3E%3Cpath d='M15 1C10.5 1 9 2.5 9 7C13.5 7 15 5.5 15 1Z' stroke='black'/%3E%3Cpath d='M1 1C5.5 1 7 2.5 7 7C2.5 7 1 5.5 1 1Z' stroke='black'/%3E%3Cpath d='M15 15C10.5 15 9 13.5 9 9C13.5 9 15 10.5 15 15Z' stroke='black'/%3E%3Cpath d='M1 15C5.5 15 7 13.5 7 9C2.5 9 1 10.5 1 15Z' stroke='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2356_5631'%3E%3Crect width='16' height='16' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\")"};return e in t?t[e]:""},sA=Object(B.memo)(e=>{const{attributes:{block_id:t,elementType:a,separatorText:l,separatorTextTag:i,separatorStyle:o,separatorIcon:n},className:r,deviceType:s}=e,c=rA(o),u=""+i,p="none"!==a?"wp-block-uagb-separator--"+a:"",d=Object(ge.useBlockProps)({className:Z([r,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+t,"wp-block-uagb-separator",p])});return React.createElement("div",d,React.createElement("div",{className:"uagb-separator-spacing-wrapper"},React.createElement("div",{className:"wp-block-uagb-separator__inner",style:{"--my-background-image":""+c}},"none"!==a&&React.createElement("div",{className:"wp-block-uagb-separator-element"},"icon"===a?Ce(n):React.createElement(u,{className:"uagb-html-tag"},l)))))}),cA=Object(L.compose)(fe,ls)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,separatorHeight:n,separatorHeightTablet:r,separatorHeightMobile:s,separatorHeightType:c,blockTopPadding:u,blockBottomPadding:p,blockTopPaddingTablet:d,blockBottomPaddingTablet:b,blockTopPaddingMobile:g,blockBottomPaddingMobile:m,blockPaddingUnit:y,blockPaddingUnitTablet:f,blockPaddingUnitMobile:h},name:v,clientId:_,deviceType:T,setAttributes:C}=e;Object(B.useEffect)(()=>{he(e)},[l,i,o,T]),Object(B.useEffect)(()=>{ys()},[T]),Object(B.useEffect)(()=>{void 0===u&&C({blockTopPadding:n}),void 0===p&&C({blockBottomPadding:n}),void 0===d&&C({blockTopPaddingTablet:r}),void 0===b&&C({blockBottomPaddingTablet:r}),void 0===g&&C({blockTopPaddingMobile:s}),void 0===m&&C({blockBottomPaddingMobile:s}),void 0===y&&C({blockPaddingUnit:c}),void 0===f&&C({blockPaddingUnitTablet:c}),void 0===h&&C({blockPaddingUnitMobile:c}),C({separatorHeight:0,separatorHeightTablet:0,separatorHeightMobile:0})},[]);const S=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,separatorAlign:r,separatorAlignTablet:s,separatorAlignMobile:c,separatorStyle:u,separatorColor:p,separatorWidth:d,separatorWidthTablet:b,separatorWidthMobile:g,separatorWidthType:m,separatorBorderHeight:y,separatorBorderHeightMobile:f,separatorBorderHeightTablet:h,separatorBorderHeightUnit:v,separatorSize:_,separatorSizeTablet:T,separatorSizeMobile:C,separatorSizeType:S,elementType:k,elementPosition:w,elementSpacing:P,elementSpacingTablet:x,elementSpacingMobile:A,elementSpacingUnit:G,elementTextFontFamily:M,elementTextFontWeight:R,elementTextFontSize:B,elementTextFontSizeType:U,elementTextFontSizeTablet:E,elementTextFontSizeMobile:O,elementTextLineHeightType:L,elementTextLineHeight:H,elementTextLineHeightTablet:F,elementTextLineHeightMobile:j,elementTextFontStyle:z,elementTextLetterSpacing:D,elementTextLetterSpacingTablet:N,elementTextLetterSpacingMobile:I,elementTextLetterSpacingType:V,elementTextDecoration:W,elementTextTransform:q,elementColor:Z,elementIconWidth:$,elementIconWidthTablet:Y,elementIconWidthMobile:K,elementIconWidthType:J,blockTopPadding:X,blockRightPadding:Q,blockLeftPadding:ee,blockBottomPadding:te,blockTopPaddingTablet:le,blockRightPaddingTablet:ie,blockLeftPaddingTablet:oe,blockBottomPaddingTablet:ne,blockTopPaddingMobile:re,blockRightPaddingMobile:se,blockLeftPaddingMobile:ce,blockBottomPaddingMobile:ue,blockPaddingUnit:pe,blockPaddingUnitTablet:de,blockPaddingUnitMobile:be,blockTopMargin:ge,blockRightMargin:me,blockLeftMargin:ye,blockBottomMargin:fe,blockTopMarginTablet:he,blockRightMarginTablet:ve,blockLeftMarginTablet:_e,blockBottomMarginTablet:Te,blockTopMarginMobile:Ce,blockRightMarginMobile:Se,blockLeftMarginMobile:ke,blockBottomMarginMobile:we,blockMarginUnit:Pe,blockMarginUnitTablet:xe,blockMarginUnitMobile:Ae}=e,Ge=us(d,"separatorWidth",i),Me=us(b,"separatorWidthTablet",i),Re=us(g,"separatorWidthMobile",i),Be=us(y,"separatorBorderHeight",i),Ue=us(f,"separatorBorderHeightMobile",i),Ee=us(h,"separatorBorderHeightTablet",i),Oe=us(_,"separatorSize",i),Le=us(T,"separatorSizeTablet",i),He=us(C,"separatorSizeMobile",i),Fe={"border-top-width":Vr(Be,v),"-webkit-mask-size":Vr(Oe,S)+" 100%",width:Vr(Ge,m),"border-top-color":p,"border-top-style":u};let je={};const ze={};if("none"===k)je={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{"margin-top":"5px","margin-bottom":"5px",...Fe}};else{const e=lA(r);je={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{width:Vr(Ge,m),...e},".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before":Fe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before":Fe,".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after":Fe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after":Fe},"left"===w&&(ze[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(P,G)},je[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before"]={display:"none"},je[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before"]={display:"none"}),"right"===w&&(ze[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(P,G)},je[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after"]={display:"none"},je[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after"]={display:"none"}),"center"===w&&(ze[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(P,G),"margin-left":Vr(P,G)})}const De={".wp-block-uagb-separator":{"text-align":r},...je,...ze,".wp-block-uagb-separator--text .wp-block-uagb-separator-element .uagb-html-tag":{"font-family":M,"font-style":z,"text-decoration":W,"text-transform":q,"font-weight":R,"font-size":Vr(B,U),"line-height":Vr(H,L),"letter-spacing":Vr(D,V),color:Z,margin:0},".wp-block-uagb-separator--icon .wp-block-uagb-separator-element svg":{"font-size":Vr($,J),width:Vr($,J),height:Vr($,J),"line-height":Vr($,J),color:Z,fill:Z}," .uagb-separator-spacing-wrapper":{"margin-top":Vr(ge,Pe),"margin-right":Vr(me,Pe),"margin-bottom":Vr(fe,Pe),"margin-left":Vr(ye,Pe),"padding-top":Vr(X,pe||"px"),"padding-right":Vr(Q,pe||"px"),"padding-bottom":Vr(te,pe||"px"),"padding-left":Vr(ee,pe||"px")}},Ne={"border-top-width":Vr(Ee,v),"-webkit-mask-size":Vr(Le,S)+" 100%",width:Vr(Me,m),"border-top-color":p,"border-top-style":u};let Ie={};const Ve={};if("none"===k)Ie={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{"margin-top":"5px","margin-bottom":"5px",...Ne}};else{const e=lA(s);Ie={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{width:Vr(Me,m),...e},".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before":Ne,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before":Ne,".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after":Ne,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after":Ne},"left"===w&&(Ve[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(x,G)},Ie[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before"]={display:"none"},Ie[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before"]={display:"none"}),"center"===w&&(Ve[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(x,G),"margin-right":Vr(x,G)}),"right"===w&&(Ve[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(x,G)},Ie[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after"]={display:"none"},Ie[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after"]={display:"none"})}const We={".wp-block-uagb-separator":{"text-align":s},...Ie,...Ve,".wp-block-uagb-separator--text .wp-block-uagb-separator-element .uagb-html-tag":{"font-family":M,"font-style":z,"text-decoration":W,"text-transform":q,"font-weight":R,"font-size":Vr(E,U),"line-height":Vr(F,L),"letter-spacing":Vr(N,V),color:Z,margin:0},".wp-block-uagb-separator--icon .wp-block-uagb-separator-element svg":{"font-size":Vr(Y,J),width:Vr(Y,J),height:Vr(Y,J),"line-height":Vr(Y,J),color:Z,fill:Z}," .uagb-separator-spacing-wrapper":{"margin-top":Vr(he,xe),"margin-right":Vr(ve,xe),"margin-bottom":Vr(Te,xe),"margin-left":Vr(_e,xe),"padding-top":Vr(le,de||"px"),"padding-right":Vr(ie,de||"px"),"padding-bottom":Vr(ne,de||"px"),"padding-left":Vr(oe,de||"px")}},qe={"border-top-width":Vr(Ue,v),"-webkit-mask-size":Vr(He,S)+" 100%",width:Vr(Re,m),"border-top-color":p,"border-top-style":u};let Ze={};const $e={};if("none"===k)Ze={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{"margin-top":"5px","margin-bottom":"5px",...qe}};else{const e=lA(c);Ze={".wp-block-uagb-separator .wp-block-uagb-separator__inner":{width:Vr(Re,m),...e},".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before":qe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before":qe,".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after":qe,".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after":qe},"left"===w&&($e[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-right":Vr(A,G)},Ze[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::before"]={display:"none"},Ze[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::before"]={display:"none"}),"center"===w&&($e[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(A,G),"margin-right":Vr(A,G)}),"right"===w&&($e[".wp-block-uagb-separator .wp-block-uagb-separator__inner .wp-block-uagb-separator-element"]={"margin-left":Vr(A,G)},Ze[".wp-block-uagb-separator--text .wp-block-uagb-separator__inner::after"]={display:"none"},Ze[".wp-block-uagb-separator--icon .wp-block-uagb-separator__inner::after"]={display:"none"})}const Ye={".wp-block-uagb-separator":{"text-align":c},...Ze,...$e,".wp-block-uagb-separator--text .wp-block-uagb-separator-element .uagb-html-tag":{"font-family":M,"font-style":z,"text-decoration":W,"text-transform":q,"font-weight":R,"font-size":Vr(O,U),"line-height":Vr(j,L),"letter-spacing":Vr(I,V),color:Z,margin:0},".wp-block-uagb-separator--icon .wp-block-uagb-separator-element svg":{"font-size":Vr(K,J),width:Vr(K,J),height:Vr(K,J),"line-height":Vr(K,J),color:Z,fill:Z}," .uagb-separator-spacing-wrapper":{"margin-top":Vr(Ce,Ae),"margin-right":Vr(Se,Ae),"margin-bottom":Vr(we,Ae),"margin-left":Vr(ke,Ae),"padding-top":Vr(re,be||"px"),"padding-right":Vr(se,be||"px"),"padding-bottom":Vr(ue,be||"px"),"padding-left":Vr(ce,be||"px")}},Ke=".editor-styles-wrapper .uagb-block-"+n;let Je=ae(De,Ke);return"tablet"!==o&&"mobile"!==o||(Je+=ae(We,""+Ke,!0,"tablet"),"mobile"===o&&(Je+=ae(Ye,""+Ke,!0,"mobile"))),Je}(a,0,v,T),[a,T]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:S}),React.createElement(iA,{attributes:a}),t&&React.createElement(nA,e),React.createElement(sA,e))}),uA={from:[{type:"block",blocks:["core/spacer"],transform:e=>{const t={"xxx-small":"0px","xx-small":"0px","x-small":"4px",small:"8px",medium:"12px",large:"22px","x-large":"30px","xx-large":"48px"},a=e.height?e.height.split("|"):[],l=3===a.length?a[2].trim():null,i=l&&t.hasOwnProperty(l),o=i?N(t[l]):N(e.height||"0")/2,n=V(i?t[l]:e.height||"px");return Object(de.createBlock)("uagb/separator",{separatorStyle:"none",separatorHeight:o,separatorHeightType:n})}},{type:"block",blocks:["core/separator"],transform:e=>{var t,a,l,i;const o=e&&e.className&&e.className.includes("is-style-dots")?"dotted":"solid";return Object(de.createBlock)("uagb/separator",{separatorColor:/^#([0-9A-Fa-f]{3}){1,2}$/.test((null==e||null===(t=e.style)||void 0===t||null===(a=t.color)||void 0===a?void 0:a.background)||"")?null==e||null===(l=e.style)||void 0===l||null===(i=l.color)||void 0===i?void 0:i.background:Pc(null==e?void 0:e.backgroundColor),separatorStyle:o,separatorHeight:0,separatorBorderHeight:1,separatorWidth:null==e||!e.className||e.className.includes("is-style-default")?25:100})}},{type:"block",blocks:["core/nextpage"],transform:e=>{let{}=e;return Object(de.createBlock)("uagb/separator",{})}}]},pA=[{attributes:{block_id:{type:"string"},isPreview:{type:"boolean",default:!1},separatorAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment"}},separatorAlignTablet:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment-tablet"}},separatorAlignMobile:{type:"string",default:"center",UAGCopyPaste:{styleType:"overall-alignment-mobile"}},separatorStyle:{type:"string",default:"solid",UAGCopyPaste:{styleType:"separator-style"}},separatorWidth:{type:"number",default:100,UAGCopyPaste:{styleType:"separator-width"}},separatorWidthTablet:{type:"number",default:100,UAGCopyPaste:{styleType:"separator-width-tablet"}},separatorWidthMobile:{type:"number",default:100,UAGCopyPaste:{styleType:"separator-width-mobile"}},separatorWidthType:{type:"string",default:"%",UAGCopyPaste:{styleType:"separator-width-type"}},separatorBorderHeight:{type:"number",default:3,UAGCopyPaste:{styleType:"separator-height"}},separatorBorderHeightMobile:{type:"number",default:3,UAGCopyPaste:{styleType:"separator-height-mobile"}},separatorBorderHeightTablet:{type:"number",default:3,UAGCopyPaste:{styleType:"separator-height-tablet"}},separatorBorderHeightUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-thickness-unit"}},separatorSize:{type:"number",default:5,UAGCopyPaste:{styleType:"separator-size"}},separatorSizeMobile:{type:"number",default:5,UAGCopyPaste:{styleType:"separator-size-Mobile"}},separatorSizeTablet:{type:"number",default:5,UAGCopyPaste:{styleType:"separator-size-Tablet"}},separatorSizeType:{default:"px",UAGCopyPaste:{styleType:"separator-size-type"}},separatorColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"separator-color"}},separatorHeight:{type:"number",default:10,UAGCopyPaste:{styleType:"separator-gap"}},separatorHeightMobile:{type:"number",default:10,UAGCopyPaste:{styleType:"separator-gap-mobile"}},separatorHeightTablet:{type:"number",default:10,UAGCopyPaste:{styleType:"separator-gap-tablet"}},separatorHeightType:{type:"string",default:"px",UAGCopyPaste:{styleType:"separator-gap-unit"}},separatorBottomPadding:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-padding"}},separatorPaddingTopTablet:{type:"number",UAGCopyPaste:{styleType:"separator-top-padding-tablet"}},separatorPaddingRightTablet:{type:"number",UAGCopyPaste:{styleType:"separator-right-padding-tablet"}},separatorPaddingBottomTablet:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-padding-tablet"}},separatorPaddingLeftTablet:{type:"number",UAGCopyPaste:{styleType:"separator-left-padding-tablet"}},separatorPaddingTopMobile:{type:"number",UAGCopyPaste:{styleType:"separator-top-padding-mobile"}},separatorPaddingRightMobile:{type:"number",UAGCopyPaste:{styleType:"separator-right-padding-mobile"}},separatorPaddingBottomMobile:{type:"number",UAGCopyPaste:{styleType:"separator-bottom-padding-mobile"}},separatorPaddingLeftMobile:{type:"number",UAGCopyPaste:{styleType:"separator-left-padding-mobile"}},separatorPaddingUnit:{type:"number",default:"px",UAGCopyPaste:{styleType:"separator-padding-unit"}},separatorMobilePaddingUnit:{type:"number",UAGCopyPaste:{styleType:"separator-padding-unit-mobile"},default:"px"},separatorTabletPaddingUnit:{type:"number",UAGCopyPaste:{styleType:"separator-padding-unit-tablet"},default:"px"},separatorPaddingLink:{type:"boolean",default:!0,UAGCopyPaste:{styleType:"separator-padding-link"}},elementType:{type:"string",default:"none"},separatorText:{type:"string",default:Object(r.__)("Divider","ultimate-addons-for-gutenberg")},separatorTextTag:{type:"string",default:"h4",UAGCopyPaste:{styleType:"separator-text-tag"}},separatorIcon:{type:"string",default:"circle-check"},elementPosition:{type:"string",default:"center",UAGCopyPaste:{styleType:"element-position"}},elementSpacing:{type:"number",default:15,UAGCopyPaste:{styleType:"element-spacing"}},elementSpacingTablet:{type:"number",default:15,UAGCopyPaste:{styleType:"element-spacing-tablet"}},elementSpacingMobile:{type:"number",default:15,UAGCopyPaste:{styleType:"element-spacing-mobile"}},elementSpacingUnit:{type:"string",default:"px"},elementTextLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},elementTextFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},elementTextFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},elementTextFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},elementTextFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-size-type"}},elementTextFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},elementTextFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},elementTextLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},elementTextLineHeight:{type:"number",default:1,UAGCopyPaste:{styleType:"main-title-line-height"}},elementTextLineHeightTablet:{type:"number",default:1,UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},elementTextLineHeightMobile:{type:"number",default:1,UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},elementTextFontStyle:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-font-style"}},elementTextLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"label-letter-spacing"}},elementTextLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"label-letter-spacing-tablet"}},elementTextLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"label-letter-spacing-mobile"}},elementTextLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"label-letter-spacing-type"}},elementTextDecoration:{type:"string",UAGCopyPaste:{styleType:"main-title-decoration"}},elementTextTransform:{type:"string",UAGCopyPaste:{styleType:"main-title-transform"}},elementColor:{type:"string",UAGCopyPaste:{styleType:"main-title-color"}},elementIconWidth:{type:"number",default:30,UAGCopyPaste:{styleType:"main-icon-width"}},elementIconWidthTablet:{type:"number",default:30,UAGCopyPaste:{styleType:"main-icon-width-tablet"}},elementIconWidthMobile:{type:"number",default:30,UAGCopyPaste:{styleType:"main-icon-width-mobile"}},elementIconWidthType:{type:"string",default:"px"},blockTopPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding"}},blockRightPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding"}},blockLeftPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding"}},blockBottomPadding:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding"}},blockTopPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-tablet"}},blockRightPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-tablet"}},blockLeftPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-tablet"}},blockBottomPaddingTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-tablet"}},blockTopPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-padding-mobile"}},blockRightPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-padding-mobile"}},blockLeftPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-padding-mobile"}},blockBottomPaddingMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-padding-mobile"}},blockPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit"}},blockPaddingUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-tablet"}},blockPaddingUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-padding-unit-mobile"}},blockPaddingLink:{type:"boolean",default:!1},blockTopMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin"}},blockRightMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin"}},blockLeftMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin"}},blockBottomMargin:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin"}},blockTopMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-tablet"}},blockRightMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-tablet"}},blockLeftMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-tablet"}},blockBottomMarginTablet:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-tablet"}},blockTopMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-top-margin-mobile"}},blockRightMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-right-margin-mobile"}},blockLeftMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-left-margin-mobile"}},blockBottomMarginMobile:{type:"number",isGBSStyle:!0,UAGCopyPaste:{styleType:"block-bottom-margin-mobile"}},blockMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit"}},blockMarginUnitTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-tablet"}},blockMarginUnitMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"block-margin-unit-mobile"}},blockMarginLink:{type:"boolean",default:!1}},save:function(e){const{attributes:{block_id:t,elementType:a,separatorText:l,separatorTextTag:i,separatorStyle:o,separatorIcon:n}}=e,r=rA(o),s=""+i,c=ge.useBlockProps.save({className:Z(["uagb-block-"+t,"none"!==a?"wp-block-uagb-separator--"+a:""])});return React.createElement("div",c,React.createElement("div",{className:"wp-block-uagb-separator__inner",style:{"--my-background-image":""+r}},"none"!==a&&React.createElement("div",{className:"wp-block-uagb-separator-element"},"icon"===a?Ce(n):React.createElement(s,{className:"uagb-html-tag"},l))))}}];const dA=Object(F.applyFilters)("uagb/separator",ss({}));Object(de.registerBlockType)("uagb/separator",{...dA,apiVersion:2,title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a modern separator to divide your page content with icon/text.","ultimate-addons-for-gutenberg"),icon:se.separator,category:uagb_blocks_info.category,keywords:[Object(r.__)("divider","ultimate-addons-for-gutenberg"),Object(r.__)("separator","ultimate-addons-for-gutenberg")],attributes:Ba,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"separator"}):React.createElement(cA,e),save:function(e){const{attributes:{block_id:t,elementType:a,separatorText:l,separatorTextTag:i,separatorStyle:o,separatorIcon:n,blockTopPadding:r,blockRightPadding:s,blockLeftPadding:c,blockBottomPadding:u,blockTopPaddingTablet:p,blockRightPaddingTablet:d,blockLeftPaddingTablet:b,blockBottomPaddingTablet:g,blockTopPaddingMobile:m,blockRightPaddingMobile:y,blockLeftPaddingMobile:f,blockBottomPaddingMobile:h,blockTopMargin:v,blockRightMargin:_,blockLeftMargin:T,blockBottomMargin:C,blockTopMarginTablet:S,blockRightMarginTablet:k,blockLeftMarginTablet:w,blockBottomMarginTablet:P,blockTopMarginMobile:x,blockRightMarginMobile:A,blockLeftMarginMobile:G,blockBottomMarginMobile:M}}=e,R=[r,s,c,u,p,d,b,g,m,y,f,h,v,_,T,C,S,k,w,P,x,A,G,M].some(e=>"number"==typeof e),B=rA(o),U=""+i,E=ge.useBlockProps.save({className:Z(["uagb-block-"+t,"none"!==a?"wp-block-uagb-separator--"+a:""])}),O=()=>React.createElement("div",{className:"wp-block-uagb-separator__inner",style:{"--my-background-image":""+B}},"none"!==a&&React.createElement("div",{className:"wp-block-uagb-separator-element"},"icon"===a?Ce(n):React.createElement(U,{className:"uagb-html-tag"},l)));return React.createElement("div",E,R?React.createElement("div",{className:"uagb-separator-spacing-wrapper"},O()):O())},transforms:uA,deprecated:pA});const bA=[{defaultAttributes:Fa},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowColor",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowColor",value:"rgb(0 0 0 / 15%)"}],icon:' '}],gA=[{defaultAttributes:Fa},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:3},{label:"boxShadowVOffsetHover",value:8},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:15},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:18},{label:"boxShadowBlurHover",value:40},{label:"boxShadowSpreadHover",value:-10},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 20%)"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:4},{label:"boxShadowBlurHover",value:12},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 10%)"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:2},{label:"boxShadowBlurHover",value:5},{label:"boxShadowSpreadHover",value:-1},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:50},{label:"boxShadowBlurHover",value:50},{label:"boxShadowSpreadHover",value:-30},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffsetHover",value:0},{label:"boxShadowVOffsetHover",value:20},{label:"boxShadowBlurHover",value:30},{label:"boxShadowSpreadHover",value:0},{label:"boxShadowColorHover",value:"rgb(0 0 0 / 15%)"}],icon:' '}];function mA(){return(mA=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l,insertBlock:i,block:o,swiperInstance:n}=e,{block_id:s,pauseOn:c,infiniteLoop:u,transitionSpeed:p,displayArrows:d,displayDots:b,autoplay:g,autoplaySpeed:m,transitionEffect:y,backgroundType:f,backgroundImageDesktop:h,backgroundImageTablet:v,backgroundImageMobile:_,backgroundColor:T,backgroundPositionDesktop:C,backgroundPositionTablet:S,backgroundPositionMobile:k,backgroundAttachmentDesktop:w,backgroundAttachmentTablet:P,backgroundAttachmentMobile:x,backgroundRepeatDesktop:A,backgroundRepeatTablet:G,backgroundRepeatMobile:M,backgroundSizeDesktop:R,backgroundSizeTablet:U,backgroundSizeMobile:E,backgroundImageColor:O,gradientValue:L,useSeparateBoxShadows:H,gradientColor1:j,gradientColor2:z,gradientLocation1:D,gradientLocation2:N,gradientType:I,gradientAngle:V,selectGradient:W,boxShadowColor:q,boxShadowHOffset:Z,boxShadowVOffset:$,boxShadowBlur:Y,boxShadowSpread:K,boxShadowPosition:J,boxShadowColorHover:X,boxShadowHOffsetHover:Q,boxShadowVOffsetHover:ee,boxShadowBlurHover:te,boxShadowSpreadHover:ae,boxShadowPositionHover:le,topPaddingDesktop:ie,bottomPaddingDesktop:oe,leftPaddingDesktop:ne,rightPaddingDesktop:re,topPaddingTablet:se,bottomPaddingTablet:ce,leftPaddingTablet:ue,rightPaddingTablet:pe,topPaddingMobile:be,bottomPaddingMobile:me,leftPaddingMobile:ye,rightPaddingMobile:fe,paddingType:he,paddingTypeTablet:ve,paddingTypeMobile:_e,paddingLink:Te,topMarginDesktop:Ce,bottomMarginDesktop:Se,leftMarginDesktop:ke,rightMarginDesktop:we,topMarginTablet:Pe,bottomMarginTablet:xe,leftMarginTablet:Ae,rightMarginTablet:Ge,topMarginMobile:Me,bottomMarginMobile:Re,leftMarginMobile:Be,rightMarginMobile:Ue,marginType:Oe,marginTypeTablet:He,marginTypeMobile:Fe,marginLink:De,backgroundCustomSizeDesktop:Ne,backgroundCustomSizeTablet:Ie,backgroundCustomSizeMobile:Ve,backgroundCustomSizeType:We,overlayType:qe,customPosition:Ze,xPositionDesktop:$e,xPositionTablet:Ye,xPositionMobile:Ke,xPositionType:Je,xPositionTypeTablet:Xe,xPositionTypeMobile:Qe,yPositionDesktop:et,yPositionTablet:tt,yPositionMobile:at,yPositionType:lt,yPositionTypeTablet:it,yPositionTypeMobile:ot,arrowSize:nt,arrowSizeTablet:rt,arrowSizeMobile:st,arrowPadding:ct,arrowPaddingTablet:ut,arrowPaddingMobile:pt,arrowColor:dt,arrowBgColor:bt,arrowDistance:gt,arrowDistanceTablet:mt,arrowDistanceMobile:yt,verticalAlign:ft,dotsMarginTop:ht,dotsMarginTopTablet:vt,dotsMarginTopMobile:_t,minHeight:Tt,minHeightTablet:Ct,minHeightMobile:St}=t;Object(B.useEffect)(()=>{"color"===f&&a({backgroundSizeDesktop:"cover",backgroundSizeTablet:"cover",backgroundSizeMobile:"cover"})},[f]);const kt=[{value:"start",tooltip:Object(r.__)("Top","ultimate-addons-for-gutenberg"),icon:React.createElement(Le.Icon,{icon:ze("flex-column-start")})},{value:"center",tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg"),icon:React.createElement(Le.Icon,{icon:ze("flex-column-center")})},{value:"end",tooltip:Object(r.__)("Bottom","ultimate-addons-for-gutenberg"),icon:React.createElement(Le.Icon,{icon:ze("flex-column-end")})}],wt=Object(F.applyFilters)("spectra.slider.tab_style.NavigationStyle.after","",e);return React.createElement(React.Fragment,null,React.createElement(ge.BlockControls,null,React.createElement(Le.ToolbarGroup,null,React.createElement(Le.ToolbarButton,{icon:"insert",label:Object(r.__)("Add Slide","ultimate-addons-for-gutenberg"),onClick:()=>{i(Object(de.createBlock)("uagb/slider-child"),o.innerBlocks.length,o.clientId),a({slideItem:t.slideItem+1}),n.activeIndex=t.slideItem+1}}))),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,(()=>{const t=Object(F.applyFilters)("spectra.slider.tab_general.displayDots.after","",e),l=Object(F.applyFilters)("spectra.slider.tab_general.autoplay.after","",e),i=Object(F.applyFilters)("spectra.slider.tab_general.transitionSpeed.after","",e);return React.createElement(React.Fragment,null,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Slider","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:g,onChange:()=>{a({autoplay:!g})},help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),!0===g&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:a,value:m,data:{value:m,label:"autoplaySpeed"},min:0,max:15e3,displayUnit:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Pause On","ultimate-addons-for-gutenberg"),data:{value:c,label:"pauseOn"},options:[{value:"hover",label:Object(r.__)("Hover","ultimate-addons-for-gutenberg")},{value:"click",label:Object(r.__)("Interaction","ultimate-addons-for-gutenberg")},{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")}],help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")})),l,React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Loop","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>{a({infiniteLoop:!u})},help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Minimum Height","ultimate-addons-for-gutenberg"),data:{desktop:{value:Tt,label:"minHeight"},tablet:{value:Ct,label:"minHeightTablet"},mobile:{value:St,label:"minHeightMobile"}},min:100,max:1e3,displayUnit:!1,setAttributes:a}),React.createElement(Pi,{label:Object(r.__)("Transition Effect","ultimate-addons-for-gutenberg"),data:{value:y,label:"transitionEffect"},onChange:e=>a({transitionEffect:e}),setAttributes:a,help:Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")},React.createElement("option",{value:"slide"},Object(r.__)("Slide","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"fade"},Object(r.__)("Fade","ultimate-addons-for-gutenberg")),React.createElement("option",{value:"flip"},Object(r.__)("Flip","ultimate-addons-for-gutenberg"))),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:a,value:p,data:{value:p,label:"transitionSpeed"},onChange:e=>a({transitionSpeed:e}),min:100,max:9999,displayUnit:!1}),i),React.createElement(je,{title:Object(r.__)("Navigation","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Arrows","ultimate-addons-for-gutenberg"),checked:d,onChange:()=>{a({displayArrows:!d})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Dots","ultimate-addons-for-gutenberg"),checked:b,onChange:()=>{a({displayDots:!b})}}),t)))})()),React.createElement(il,nl,React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:ft,label:"verticalAlign"},options:kt,showIcons:!0,responsive:!1}))),React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(vi,mA({setAttributes:a,backgroundGradient:{value:L,label:"gradientValue"},backgroundGradientColor1:{value:j,label:"gradientColor1"},gradientType:{value:W,label:"selectGradient"},backgroundGradientColor2:{value:z,label:"gradientColor2"},backgroundGradientLocation1:{value:D,label:"gradientLocation1"},backgroundGradientLocation2:{value:N,label:"gradientLocation2"},backgroundGradientType:{value:I,label:"gradientType"},backgroundGradientAngle:{value:V,label:"gradientAngle"},backgroundImageColor:{value:O,label:"backgroundImageColor"},backgroundSize:{desktop:{value:R,label:"backgroundSizeDesktop"},tablet:{value:U,label:"backgroundSizeTablet"},mobile:{value:E,label:"backgroundSizeMobile"}},backgroundCustomSize:{desktop:{value:Ne,label:"backgroundCustomSizeDesktop"},tablet:{value:Ie,label:"backgroundCustomSizeTablet"},mobile:{value:Ve,label:"backgroundCustomSizeMobile"}},backgroundCustomSizeType:{value:We,label:"backgroundCustomSizeType"},backgroundRepeat:{desktop:{value:A,label:"backgroundRepeatDesktop"},tablet:{value:G,label:"backgroundRepeatTablet"},mobile:{value:M,label:"backgroundRepeatMobile"}},backgroundAttachment:{desktop:{value:w,label:"backgroundAttachmentDesktop"},tablet:{value:P,label:"backgroundAttachmentTablet"},mobile:{value:x,label:"backgroundAttachmentMobile"}},backgroundPosition:{desktop:{value:C,label:"backgroundPositionDesktop"},tablet:{value:S,label:"backgroundPositionTablet"},mobile:{value:k,label:"backgroundPositionMobile"}},backgroundImage:{desktop:{value:h,label:"backgroundImageDesktop"},tablet:{value:v,label:"backgroundImageTablet"},mobile:{value:_,label:"backgroundImageMobile"}},imageResponsive:!0,backgroundColor:{value:T,label:"backgroundColor"},backgroundType:{value:f,label:"backgroundType"},overlayType:{value:qe,label:"overlayType"},gradientOverlay:{value:!0},customPosition:{value:Ze,label:"customPosition"},xPositionDesktop:{value:$e,label:"xPositionDesktop"},xPositionTablet:{value:Ye,label:"xPositionTablet"},xPositionMobile:{value:Ke,label:"xPositionMobile"},xPositionType:{value:Je,label:"xPositionType"},xPositionTypeTablet:{value:Xe,label:"xPositionTypeTablet"},xPositionTypeMobile:{value:Qe,label:"xPositionTypeMobile"},yPositionDesktop:{value:et,label:"yPositionDesktop"},yPositionTablet:{value:tt,label:"yPositionTablet"},yPositionMobile:{value:at,label:"yPositionMobile"},yPositionType:{value:lt,label:"yPositionType"},yPositionTypeTablet:{value:it,label:"yPositionTypeTablet"},yPositionTypeMobile:{value:ot,label:"yPositionTypeMobile"},backgroundVideoType:{value:!1}},e))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"slider",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Separate Hover Shadow","ultimate-addons-for-gutenberg"),checked:H,onChange:()=>a({useSeparateBoxShadows:!H})}),H?React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:bA,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:q,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Z,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:$,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Y,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:K,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:J,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),hover:React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:gA,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:X,label:"boxShadowColorHover",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Q,label:"boxShadowHOffsetHover",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:ee,label:"boxShadowVOffsetHover",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:te,label:"boxShadowBlurHover",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ae,label:"boxShadowSpreadHover",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:le,label:"boxShadowPositionHover",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),disableBottomSeparator:!0}):React.createElement(React.Fragment,null,React.createElement(Hr,{setAttributes:a,presets:bA,presetInputType:"radioImage"}),React.createElement(vl,{blockId:s,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:q,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:Z,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:$,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Y,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:K,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:J,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}}))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,mA({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ie,label:"topPaddingDesktop"},valueRight:{value:re,label:"rightPaddingDesktop"},valueBottom:{value:oe,label:"bottomPaddingDesktop"},valueLeft:{value:ne,label:"leftPaddingDesktop"},valueTopTablet:{value:se,label:"topPaddingTablet"},valueRightTablet:{value:pe,label:"rightPaddingTablet"},valueBottomTablet:{value:ce,label:"bottomPaddingTablet"},valueLeftTablet:{value:ue,label:"leftPaddingTablet"},valueTopMobile:{value:be,label:"topPaddingMobile"},valueRightMobile:{value:fe,label:"rightPaddingMobile"},valueBottomMobile:{value:me,label:"bottomPaddingMobile"},valueLeftMobile:{value:ye,label:"leftPaddingMobile"},unit:{value:he,label:"paddingType"},mUnit:{value:_e,label:"paddingTypeMobile"},tUnit:{value:ve,label:"paddingTypeTablet"},attributes:t,setAttributes:a,link:{value:Te,label:"paddingLink"}})),React.createElement(Pl,mA({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Ce,label:"topMarginDesktop"},valueRight:{value:we,label:"rightMarginDesktop"},valueBottom:{value:Se,label:"bottomMarginDesktop"},valueLeft:{value:ke,label:"leftMarginDesktop"},valueTopTablet:{value:Pe,label:"topMarginTablet"},valueRightTablet:{value:Ge,label:"rightMarginTablet"},valueBottomTablet:{value:xe,label:"bottomMarginTablet"},valueLeftTablet:{value:Ae,label:"leftMarginTablet"},valueTopMobile:{value:Me,label:"topMarginMobile"},valueRightMobile:{value:Ue,label:"rightMarginMobile"},valueBottomMobile:{value:Re,label:"bottomMarginMobile"},valueLeftMobile:{value:Be,label:"leftMarginMobile"},unit:{value:Oe,label:"marginType"},mUnit:{value:Fe,label:"marginTypeMobile"},tUnit:{value:He,label:"marginTypeTablet"},attributes:t,setAttributes:a,link:{value:De,label:"marginLink"}}))),(d||b)&&React.createElement(React.Fragment,null,React.createElement(je,{title:Object(r.__)("Arrows and Dots","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:dt,data:{value:dt,label:"arrowColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:bt,data:{value:bt,label:"arrowBgColor"},setAttributes:a}),d&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:nt,label:"arrowSize"},tablet:{value:rt,label:"arrowSizeTablet"},mobile:{value:st,label:"arrowSizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),data:{desktop:{value:ct,label:"arrowPadding"},tablet:{value:ut,label:"arrowPaddingTablet"},mobile:{value:pt,label:"arrowPaddingMobile"}},min:0,max:80,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Arrow Distance from Edges","ultimate-addons-for-gutenberg"),data:{desktop:{value:gt,label:"arrowDistance"},tablet:{value:mt,label:"arrowDistanceTablet"},mobile:{value:yt,label:"arrowDistanceMobile"}},min:-50,max:50,displayUnit:!1,setAttributes:a})),b&&React.createElement(tl,{label:Object(r.__)("Top Margin for Dots","ultimate-addons-for-gutenberg"),data:{desktop:{value:ht,label:"dotsMarginTop"},tablet:{value:vt,label:"dotsMarginTopTablet"},mobile:{value:_t,label:"dotsMarginTopMobile"}},min:-100,max:100,displayUnit:!1,setAttributes:a}),d&&React.createElement(Hi,{setAttributes:a,prefix:"slider-arrow",attributes:t,deviceType:l,disableBottomSeparator:!0}))),wt),React.createElement(il,mA({},rl,{parentProps:e})))))});function fA(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function hA(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>a.indexOf(e)<0).forEach(a=>{void 0===e[a]?e[a]=t[a]:fA(t[a])&&fA(e[a])&&Object.keys(t[a]).length>0?t[a].__swiper__?e[a]=t[a]:hA(e[a],t[a]):e[a]=t[a]})}function vA(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function _A(e={}){return e.pagination&&void 0===e.pagination.el}function TA(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function CA(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),a=[];return t.forEach(e=>{a.indexOf(e)<0&&a.push(e)}),a.join(" ")}const SA=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"],kA=(e,t)=>{let a=t.slidesPerView;if(t.breakpoints){const e=sk.prototype.getBreakpoint(t.breakpoints),l=e in t.breakpoints?t.breakpoints[e]:void 0;l&&l.slidesPerView&&(a=l.slidesPerView)}let l=Math.ceil(parseFloat(t.loopedSlides||a,10));return l+=t.loopAdditionalSlides,l>e.length&&t.loopedSlidesLimit&&(l=e.length),l};function wA(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function PA(e,t){return"undefined"==typeof window?Object(mo.useEffect)(e,t):Object(mo.useLayoutEffect)(e,t)}const xA=Object(mo.createContext)(null),AA=Object(mo.createContext)(null);function GA(){return(GA=Object.assign?Object.assign.bind():function(e){for(var t=1;te.replace(/_/,"")),r=Object.assign({},e);return Object.keys(r).forEach(r=>{void 0!==e[r]&&(n.indexOf(r)>=0?fA(e[r])?(a[r]={},i[r]={},hA(a[r],e[r]),hA(i[r],e[r])):(a[r]=e[r],i[r]=e[r]):0===r.search(/on[A-Z]/)&&"function"==typeof e[r]?t?l[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:a.on[`${r[2].toLowerCase()}${r.substr(3)}`]=e[r]:o[r]=e[r])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===a[e]&&(a[e]={}),!1===a[e]&&delete a[e]}),{params:a,passedParams:i,rest:o,events:l}}(r),{slides:A,slots:G}=function(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return yo.a.Children.toArray(e).forEach(e=>{if(wA(e))t.push(e);else if(e.props&&e.props.slot&&a[e.props.slot])a[e.props.slot].push(e);else if(e.props&&e.props.children){const l=function e(t){const a=[];return yo.a.Children.toArray(t).forEach(t=>{wA(t)?a.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>a.push(e))}),a}(e.props.children);l.length>0?l.forEach(e=>t.push(e)):a["container-end"].push(e)}else a["container-end"].push(e)}),{slides:t,slots:a}}(o),M=()=>{g(!b)};Object.assign(k.on,{_containerClasses(e,t){u(t)}});const R=()=>{if(Object.assign(k.on,x),s=!0,f.current=new sk(k),f.current.loopCreate=()=>{},f.current.loopDestroy=()=>{},k.loop&&(f.current.loopedSlides=kA(A,k)),f.current.virtual&&f.current.params.virtual.enabled){f.current.virtual.slides=A;const e={cache:!1,slides:A,renderExternal:d,renderExternalUpdate:!1};hA(f.current.params.virtual,e),hA(f.current.originalParams.virtual,e)}};return y.current||R(),f.current&&f.current.on("_beforeBreakpoint",M),Object(mo.useEffect)(()=>()=>{f.current&&f.current.off("_beforeBreakpoint",M)}),Object(mo.useEffect)(()=>{!m.current&&f.current&&(f.current.emitSlidesClasses(),m.current=!0)}),PA(()=>{if(t&&(t.current=y.current),y.current)return f.current.destroyed&&R(),function({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:i,swiper:o},n){vA(n)&&t&&a&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=a,o.originalParams.navigation.prevEl=a),_A(n)&&l&&(o.params.pagination.el=l,o.originalParams.pagination.el=l),TA(n)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:y.current,nextEl:_.current,prevEl:T.current,paginationEl:C.current,scrollbarEl:S.current,swiper:f.current},k),n&&n(f.current),()=>{f.current&&!f.current.destroyed&&f.current.destroy(!0,!1)}},[]),PA(()=>{!s&&x&&f.current&&Object.keys(x).forEach(e=>{f.current.on(e,x[e])});const e=function(e,t,a,l,i){const o=[];if(!t)return o;const n=e=>{o.indexOf(e)<0&&o.push(e)};if(a&&l){const e=l.map(i),t=a.map(i);e.join("")!==t.join("")&&n("children"),l.length!==a.length&&n("children")}return SA.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(fA(e[a])&&fA(t[a])){const l=Object.keys(e[a]),i=Object.keys(t[a]);l.length!==i.length?n(a):(l.forEach(l=>{e[a][l]!==t[a][l]&&n(a)}),i.forEach(l=>{e[a][l]!==t[a][l]&&n(a)}))}else e[a]!==t[a]&&n(a)}),o}(w,h.current,A,v.current,e=>e.key);return h.current=w,v.current=A,e.length&&f.current&&!f.current.destroyed&&function({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:i,prevEl:o,scrollbarEl:n,paginationEl:r}){const s=l.filter(e=>"children"!==e&&"direction"!==e),{params:c,pagination:u,navigation:p,scrollbar:d,virtual:b,thumbs:g}=e;let m,y,f,h,v;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(m=!0),l.includes("controller")&&a.controller&&a.controller.control&&c.controller&&!c.controller.control&&(y=!0),l.includes("pagination")&&a.pagination&&(a.pagination.el||r)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(f=!0),l.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||n)&&(c.scrollbar||!1===c.scrollbar)&&d&&!d.el&&(h=!0),l.includes("navigation")&&a.navigation&&(a.navigation.prevEl||o)&&(a.navigation.nextEl||i)&&(c.navigation||!1===c.navigation)&&p&&!p.prevEl&&!p.nextEl&&(v=!0),s.forEach(t=>{if(fA(c[t])&&fA(a[t]))hA(c[t],a[t]);else{const i=a[t];!0!==i&&!1!==i||"navigation"!==t&&"pagination"!==t&&"scrollbar"!==t?c[t]=a[t]:!1===i&&e[l=t]&&(e[l].destroy(),"navigation"===l?(c[l].prevEl=void 0,c[l].nextEl=void 0,e[l].prevEl=void 0,e[l].nextEl=void 0):(c[l].el=void 0,e[l].el=void 0))}var l}),s.includes("controller")&&!y&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),l.includes("children")&&t&&b&&c.virtual.enabled?(b.slides=t,b.update(!0)):l.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),m&&g.init()&&g.update(!0),y&&(e.controller.control=c.controller.control),f&&(r&&(c.pagination.el=r),u.init(),u.render(),u.update()),h&&(n&&(c.scrollbar.el=n),d.init(),d.updateSize(),d.setTranslate()),v&&(i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),p.init(),p.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),e.update()}({swiper:f.current,slides:A,passedParams:w,changedParams:e,nextEl:_.current,prevEl:T.current,scrollbarEl:S.current,paginationEl:C.current}),()=>{x&&f.current&&Object.keys(x).forEach(e=>{f.current.off(e,x[e])})}}),PA(()=>{var e;!(e=f.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[p]),yo.a.createElement(l,GA({ref:y,className:CA(`${c}${a?" "+a:""}`)},P),yo.a.createElement(AA.Provider,{value:f.current},G["container-start"],yo.a.createElement(i,{className:"swiper-wrapper"},G["wrapper-start"],k.virtual?function(e,t,a){if(!a)return null;const l=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:a.offset+"px"}:{top:a.offset+"px"};return t.filter((e,t)=>t>=a.from&&t<=a.to).map(t=>yo.a.cloneElement(t,{swiper:e,style:l}))}(f.current,A,p):!k.loop||f.current&&f.current.destroyed?A.map(e=>yo.a.cloneElement(e,{swiper:f.current})):function(e,t,a){const l=t.map((t,a)=>yo.a.cloneElement(t,{swiper:e,"data-swiper-slide-index":a}));function i(e,t,l){return yo.a.cloneElement(e,{key:`${e.key}-duplicate-${t}-${l}`,className:`${e.props.className||""} ${a.slideDuplicateClass}`})}if(a.loopFillGroupWithBlank){const e=a.slidesPerGroup-l.length%a.slidesPerGroup;if(e!==a.slidesPerGroup)for(let t=0;t{if(t&&(t.current=c.current),c.current&&o){if(!o.destroyed)return o.on("_slideClass",d),()=>{o&&o.off("_slideClass",d)};"swiper-slide"!==u&&p("swiper-slide")}}),PA(()=>{o&&c.current&&!o.destroyed&&p(o.getSlideClasses(c.current))},[o]);const b={isActive:u.indexOf("swiper-slide-active")>=0||u.indexOf("swiper-slide-duplicate-active")>=0,isVisible:u.indexOf("swiper-slide-visible")>=0,isDuplicate:u.indexOf("swiper-slide-duplicate")>=0,isPrev:u.indexOf("swiper-slide-prev")>=0||u.indexOf("swiper-slide-duplicate-prev")>=0,isNext:u.indexOf("swiper-slide-next")>=0||u.indexOf("swiper-slide-duplicate-next")>=0},g=()=>"function"==typeof l?l(b):l;return yo.a.createElement(a,RA({ref:c,className:CA(`${u}${i?" "+i:""}`),"data-swiper-slide-index":r},s),yo.a.createElement(xA.Provider,{value:b},n?yo.a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof n?n:void 0},g()):g()))}));function UA(){return(UA=Object.assign||function(e){for(var t=1;t{const{attributes:t,clientId:a,block:l,blockParents:i,attributes:{slide_content:o},deviceType:s,setSwiperInstance:c,swiperInstance:u}=e,p=Object(B.useRef)(),d=Object(B.useRef)(),b=Object(B.useRef)(),g=Object(B.useRef)(),{selectBlock:m}=Object(n.useDispatch)(ge.store),y={...t,swiperInstance:u};Object(F.doAction)("spectra.slider.before_render",y);const{isListViewOpen:f,hasChildren:h}=Object(n.useSelect)(e=>{var t;const l=e("core/edit-post")||e("core/edit-widgets")||e("core/edit-site");return{isListViewOpen:!(null==l||!l.isListViewOpened)&&l.isListViewOpened(),hasChildren:0!==(null===(t=e("core/block-editor"))||void 0===t?void 0:t.getBlocks(a).length)}},[]),{isPreview:v,transitionSpeed:_,slideItem:T,block_id:C,displayArrows:S,displayDots:k,extraClasses:w}=t,P=Object(B.useMemo)(()=>[["uagb/slider-child",{},[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide 1","ultimate-addons-for-gutenberg"),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]]],["uagb/slider-child",{},[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide 2","ultimate-addons-for-gutenberg"),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]]],["uagb/slider-child",{},[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide 3","ultimate-addons-for-gutenberg"),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]]]],[T,o]),x=h?"uagb-slider-has-children":"",A=f?"uagb-list-view-enabled":"",G=Object(ge.useBlockProps)({className:`uagb-block-${C} ${x} ${A} uagb-slider-container uagb-slider-editor-wrap uagb-editor-preview-mode-${s.toLowerCase()} ${w}`}),M=Object(ge.useInnerBlocksProps)({className:"swiper-wrapper",slot:"container-start"},{allowedBlocks:EA,template:P,renderAppender:!1,orientation:"horizontal"}),R=e=>{var t,a;null!=e&&null!==(t=e.params)&&void 0!==t&&t.navigation&&(e.params.navigation.prevEl=b.current,e.params.navigation.nextEl=g.current,e.navigation.destroy(),e.navigation.init(),e.navigation.update()),null!=e&&null!==(a=e.params)&&void 0!==a&&a.pagination&&(e.params.pagination.el=d.current,e.params.pagination.clickable=!0,e.pagination.init(),e.pagination.render(),e.pagination.update())},U={slidesPerView:1,autoplay:!1,speed:_,loop:!1,effect:"slide",allowTouchMove:!1,onBeforeInit(e){p.current=e,c(e)},onAfterInit(e){setTimeout(()=>{R(e)})}};return Object(B.useEffect)(()=>{u&&u.update()},[e]),Object(B.useEffect)(()=>{u&&R(u)},[S,k]),Object(B.useEffect)(()=>{if(u&&u.slides){const e=u.slides.length;u.slideTo(e+1,_,!1),setTimeout(()=>{u.slideTo(0,0,!1)},100);const t=["uagb/slider","uagb/slider-child"];let a=!1;for(let e=0;e0&&!--FA&&(OA(),OA=null)};var DA=zA;function NA(){return(NA=Object.assign||function(e){for(var t=1;t{const{insertBlock:a}=Object(n.useDispatch)("core/block-editor"),{getSelectedBlock:l,getBlockParents:i}=e("core/block-editor"),o=l(),r=i(null==o?void 0:o.clientId),s=e("core/block-editor").getBlocksByClientId(r);return{insertBlock:a,block:(e("core/block-editor")||e("core/editor")).getBlock(t.clientId),blockParents:s}});var VA=Object(L.compose)(ls,IA,fe)(e=>{const{isSelected:t,attributes:a,clientId:l,deviceType:i,attributes:{UAGHideDesktop:o,UAGHideTab:n,UAGHideMob:r}}=e,[s,c]=Object(B.useState)(null);e={...e,swiperInstance:s,setSwiperInstance:c},Object(B.useLayoutEffect)(()=>(DA.use(),()=>{DA.unuse()}),[]),Object(B.useEffect)(()=>{he(e)},[o,n,r,i]);const u=Object(B.useMemo)(()=>function(e,t,a){let{backgroundType:l,backgroundImageDesktop:i,backgroundImageTablet:o,backgroundImageMobile:n,backgroundColor:r,backgroundPositionDesktop:s,backgroundPositionTablet:c,backgroundPositionMobile:u,backgroundAttachmentDesktop:p,backgroundAttachmentTablet:d,backgroundAttachmentMobile:b,backgroundRepeatDesktop:g,backgroundRepeatTablet:m,backgroundRepeatMobile:y,backgroundSizeDesktop:f,backgroundSizeTablet:h,backgroundSizeMobile:v,gradientValue:_,sliderBorderHColor:T,useSeparateBoxShadows:C,boxShadowColor:S,boxShadowHOffset:k,boxShadowVOffset:w,boxShadowBlur:P,boxShadowSpread:x,boxShadowPosition:A,boxShadowColorHover:G,boxShadowHOffsetHover:M,boxShadowVOffsetHover:R,boxShadowBlurHover:B,boxShadowSpreadHover:U,boxShadowPositionHover:E,topPaddingDesktop:O,bottomPaddingDesktop:L,leftPaddingDesktop:H,rightPaddingDesktop:j,topPaddingTablet:z,bottomPaddingTablet:D,leftPaddingTablet:N,rightPaddingTablet:I,topPaddingMobile:V,bottomPaddingMobile:W,leftPaddingMobile:q,rightPaddingMobile:Z,paddingType:$,paddingTypeTablet:Y,paddingTypeMobile:K,topMarginDesktop:J,bottomMarginDesktop:X,leftMarginDesktop:Q,rightMarginDesktop:ee,topMarginTablet:te,bottomMarginTablet:le,leftMarginTablet:ie,rightMarginTablet:oe,topMarginMobile:ne,bottomMarginMobile:re,leftMarginMobile:se,rightMarginMobile:ce,marginType:ue,marginTypeTablet:pe,marginTypeMobile:de,backgroundCustomSizeDesktop:be,backgroundCustomSizeTablet:ge,backgroundCustomSizeMobile:me,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPositionDesktop:_e,xPositionTablet:Te,xPositionMobile:Ce,xPositionType:Se,xPositionTypeTablet:ke,xPositionTypeMobile:we,yPositionDesktop:Pe,yPositionTablet:xe,yPositionMobile:Ae,yPositionType:Ge,yPositionTypeTablet:Me,yPositionTypeMobile:Re,arrowColor:Be,arrowSize:Ue,arrowSizeTablet:Ee,arrowSizeMobile:Oe,arrowDistance:Le,arrowDistanceTablet:He,arrowDistanceMobile:Fe,arrowPadding:je,arrowPaddingTablet:ze,arrowPaddingMobile:De,arrowBgColor:Ne,verticalAlign:Ie,dotsMarginTop:Ve,dotsMarginTopTablet:We,dotsMarginTopMobile:qe,minHeight:Ze,minHeightTablet:$e,minHeightMobile:Ye,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at}=e;const lt=a.toLowerCase(),it=Wr(e,"slider"),ot=Wr(e,"slider","tablet"),nt=Wr(e,"slider","mobile"),rt=Wr(e,"slider-arrow"),st=Wr(e,"slider-arrow","tablet"),ct=Wr(e,"slider-arrow","mobile");Ee=void 0!==Ee?Ee:Ue,Oe=void 0!==Oe?Oe:Ee,z=void 0!==z?z:O,V=void 0!==V?V:z,D=void 0!==D?D:L,W=void 0!==W?W:D,N=void 0!==N?N:H,q=void 0!==q?q:N,I=void 0!==I?I:j,Z=void 0!==Z?Z:I,te=void 0!==te?te:J,ne=void 0!==ne?ne:te,le=void 0!==le?le:X,re=void 0!==re?re:le,ie=void 0!==ie?ie:Q,se=void 0!==se?se:ie,oe=void 0!==oe?oe:ee,ce=void 0!==ce?ce:oe,ze=void 0!==ze?ze:je,De=void 0!==De?De:ze;const ut=qr({backgroundType:l,backgroundImage:i,backgroundColor:r,gradientValue:_,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at,backgroundRepeat:g,backgroundPosition:s,backgroundSize:f,backgroundAttachment:p,backgroundCustomSize:be,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPosition:_e,xPositionType:Se,yPosition:Pe,yPositionType:Ge}),pt=Zr({horizontal:k,vertical:w,blur:P,spread:x,color:S,position:A}),dt=Zr({horizontal:M,vertical:R,blur:B,spread:U,color:G,position:E,altColor:S});let bt={".wp-block":{"padding-top":Vr(O,$),"padding-bottom":Vr(L,$),"padding-left":Vr(H,$),"padding-right":Vr(j,$),"margin-top":Vr(J,ue)+" !important","margin-bottom":Vr(X,ue)+" !important","margin-left":Vr(Q,ue),"margin-right":Vr(ee,ue),...ut,"box-shadow":pt,...it},".wp-block:hover":{"border-color":T,"box-shadow":""}," .swiper-button-next:after":{"font-size":Vr(Ue,"px")}," .swiper-button-next":{color:Be,right:Vr(Le,"px"),width:Vr(2*je+Ue,"px"),height:Vr(2*je+Ue,"px"),"line-height":Vr(2*je+Ue,"px"),"background-color":Ne,...rt}," .swiper-button-prev":{color:Be,left:Vr(Le,"px"),width:Vr(2*je+Ue,"px"),height:Vr(2*je+Ue,"px"),"line-height":Vr(2*je+Ue,"px"),"background-color":Ne,...rt}," .swiper-button-next:hover":{"border-color":e["slider-arrowBorderHColor"]}," .swiper-button-prev:hover":{"border-color":e["slider-arrowBorderHColor"]}," .swiper-button-prev:after":{"font-size":Vr(Ue,"px")}," .swiper-pagination":{bottom:Vr(Ve,"px")}," .swiper-pagination-bullet":{"background-color":Be}," .swiper-wrapper":{"align-items":Ie,"min-height":Vr(Ze,"px")}};C&&(bt[".wp-block:hover"]["box-shadow"]=dt);const gt=qr({backgroundType:l,backgroundImage:o,backgroundColor:r,gradientValue:_,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at,backgroundRepeat:m,backgroundPosition:c,backgroundSize:h,backgroundAttachment:d,backgroundCustomSize:ge,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPosition:Te,xPositionType:ke,yPosition:xe,yPositionType:Me});let mt={".wp-block":{"padding-top":Vr(z,Y),"padding-bottom":Vr(D,Y),"padding-left":Vr(N,Y),"padding-right":Vr(I,Y),"margin-top":Vr(te,pe)+" !important","margin-bottom":Vr(le,pe)+" !important","margin-left":Vr(ie,pe),"margin-right":Vr(oe,pe),...gt,...ot}," .swiper-button-next:after":{"font-size":Vr(Ee,"px")}," .swiper-button-prev:after":{"font-size":Vr(Ee,"px")}," .swiper-button-prev":{left:Vr(He,"px"),width:Vr(2*ze+Ee,"px"),height:Vr(2*ze+Ee,"px"),"line-height":Vr(2*ze+Ee,"px"),...st}," .swiper-button-next":{right:Vr(He,"px"),width:Vr(2*ze+Ee,"px"),height:Vr(2*ze+Ee,"px"),"line-height":Vr(2*ze+Ee,"px"),...st}," .swiper-pagination":{bottom:Vr(We,"px")}," .swiper-wrapper":{"min-height":Vr($e,"px")}};const yt=qr({backgroundType:l,backgroundImage:n,backgroundColor:r,gradientValue:_,gradientColor1:Ke,gradientColor2:Je,gradientLocation1:Xe,gradientLocation2:Qe,gradientType:et,gradientAngle:tt,selectGradient:at,backgroundRepeat:y,backgroundPosition:u,backgroundSize:v,backgroundAttachment:b,backgroundCustomSize:me,backgroundCustomSizeType:ye,backgroundImageColor:fe,overlayType:he,customPosition:ve,xPosition:Ce,xPositionType:we,yPosition:Ae,yPositionType:Re});let ft={".wp-block":{"padding-top":Vr(V,K),"padding-bottom":Vr(W,K),"padding-left":Vr(q,K),"padding-right":Vr(Z,K),"margin-top":Vr(ne,de)+" !important","margin-bottom":Vr(re,de)+" !important","margin-left":Vr(se,de),"margin-right":Vr(ce,de),...yt,...nt}," .swiper-button-next:after":{"font-size":Vr(Oe,"px")}," .swiper-button-prev:after":{"font-size":Vr(Oe,"px")}," .swiper-button-prev":{left:Vr(Fe,"px"),width:Vr(2*De+Oe,"px"),height:Vr(2*De+Oe,"px"),"line-height":Vr(2*De+Oe,"px"),...ct}," .swiper-button-next":{right:Vr(Fe,"px"),width:Vr(2*De+Oe,"px"),height:Vr(2*De+Oe,"px"),"line-height":Vr(2*De+Oe,"px"),...ct}," .swiper-pagination":{bottom:Vr(qe,"px")}," .swiper-wrapper":{"min-height":Vr(Ye,"px")}};const ht=".editor-styles-wrapper #block-"+t;bt=Object(F.applyFilters)("spectra.slider.styling",bt,e),mt=Object(F.applyFilters)("spectra.slider.tabletStyling",mt,e),ft=Object(F.applyFilters)("spectra.slider.mobileStyling",ft,e);let vt=ae(bt,ht);return"tablet"!==lt&&"mobile"!==lt||(vt+=ae(mt,""+ht,!0,"tablet"),"mobile"===lt&&(vt+=ae(ft,""+ht,!0,"mobile"))),vt}(a,l,i),[a,i]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:u}),t&&React.createElement(yA,e),React.createElement(LA,e))});const WA=Object(L.createHigherOrderComponent)(e=>t=>{const a=le();if("uagb/slider-child"===t.name){const l={className:"uagb-editor-preview-mode-"+a.toLowerCase(),...t.wrapperProps};return React.createElement(BA,{onClick:e=>(e=>{const t=e.target.closest("div").classList.contains("block-editor-inserter"),a=e.target.closest(".block-editor-block-list__block");if(!t&&a&&a.hasAttribute("data-block")){const e=a.dataset.block;wp.data.select("core/block-editor").isBlockSelected(e)||wp.data.dispatch("core/block-editor").selectBlock(e)}})(e),"aria-hidden":"true"},React.createElement(e,NA({},t,{wrapperProps:l})))}return React.createElement(e,t)},"uagbSlideClass");Object(F.addFilter)("editor.BlockListBlock","uagb/slider-child",WA);let qA={};function ZA(){return(ZA=Object.assign||function(e){for(var t=1;te.attributes.isPreview?React.createElement(rs,{image:"slider"}):React.createElement(VA,e),save:function(e){const{attributes:t}=e,{block_id:a,displayArrows:l,displayDots:i}=t,o=ge.useBlockProps.save();return React.createElement("div",{key:a,className:Be()(o.className,"uagb-block-"+a,"uagb-slider-container")},React.createElement("div",{className:"uagb-slides uagb-swiper"},React.createElement("div",{className:"swiper-wrapper"},React.createElement(ge.InnerBlocks.Content,null))),i&&React.createElement("div",{className:"swiper-pagination"}),l&&React.createElement(React.Fragment,null,React.createElement("div",{className:"swiper-button-prev"}),React.createElement("div",{className:"swiper-button-next"})))}});var YA=Object(B.memo)(e=>{const{attributes:t,setAttributes:a,clientId:l}=e,{backgroundType:i,backgroundImageDesktop:o,backgroundImageTablet:s,backgroundImageMobile:c,backgroundColor:u,backgroundPositionDesktop:p,backgroundPositionTablet:d,backgroundPositionMobile:b,backgroundAttachmentDesktop:g,backgroundAttachmentTablet:m,backgroundAttachmentMobile:y,backgroundRepeatDesktop:f,backgroundRepeatTablet:h,backgroundRepeatMobile:v,backgroundSizeDesktop:_,backgroundSizeTablet:T,backgroundSizeMobile:C,backgroundImageColor:S,gradientValue:k,gradientColor1:w,gradientColor2:P,gradientLocation1:x,gradientLocation2:A,gradientType:G,gradientAngle:M,selectGradient:R,topPaddingDesktop:U,bottomPaddingDesktop:E,leftPaddingDesktop:O,rightPaddingDesktop:L,topPaddingTablet:H,bottomPaddingTablet:F,leftPaddingTablet:j,rightPaddingTablet:z,topPaddingMobile:D,bottomPaddingMobile:N,leftPaddingMobile:I,rightPaddingMobile:V,paddingType:W,paddingTypeTablet:q,paddingTypeMobile:Z,paddingLink:$,topMarginDesktop:Y,bottomMarginDesktop:K,leftMarginDesktop:J,rightMarginDesktop:X,topMarginTablet:Q,bottomMarginTablet:ee,leftMarginTablet:te,rightMarginTablet:ae,topMarginMobile:le,bottomMarginMobile:ie,leftMarginMobile:oe,rightMarginMobile:ne,marginType:re,marginTypeTablet:se,marginTypeMobile:ce,marginLink:ue,backgroundCustomSizeDesktop:pe,backgroundCustomSizeTablet:de,backgroundCustomSizeMobile:be,backgroundCustomSizeType:me,overlayType:ye,customPosition:fe,xPositionDesktop:he,xPositionTablet:ve,xPositionMobile:_e,xPositionType:Te,xPositionTypeTablet:Ce,xPositionTypeMobile:Se,yPositionDesktop:ke,yPositionTablet:we,yPositionMobile:Pe,yPositionType:xe,yPositionTypeTablet:Ae,yPositionTypeMobile:Ge}=t,Me=Object(n.select)("core/block-editor").getBlockParents(l).at(-1),Re=Object(n.select)("core/block-editor").getBlockAttributes(Me),{enableHashNavigation:Be}=Re;Object(B.useEffect)(()=>{"color"===i&&a({backgroundSizeDesktop:"cover",backgroundSizeTablet:"cover",backgroundSizeMobile:"cover"})},[i]);const Ue=uagb_blocks_info.spectra_pro_status,Oe=Ue&&Be?["general","style","advance"]:["style","advance"],Le=Ue&&Be?"general":"style";return React.createElement(ge.InspectorControls,null,React.createElement(Ee,{defaultTab:Le,tabs:Oe},Ue&&React.createElement(il,ol),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(vi,$A({setAttributes:a,backgroundGradient:{value:k,label:"gradientValue"},backgroundGradientColor1:{value:w,label:"gradientColor1"},gradientType:{value:R,label:"selectGradient"},backgroundGradientColor2:{value:P,label:"gradientColor2"},backgroundGradientLocation1:{value:x,label:"gradientLocation1"},backgroundGradientLocation2:{value:A,label:"gradientLocation2"},backgroundGradientType:{value:G,label:"gradientType"},backgroundGradientAngle:{value:M,label:"gradientAngle"},backgroundImageColor:{value:S,label:"backgroundImageColor"},backgroundSize:{desktop:{value:_,label:"backgroundSizeDesktop"},tablet:{value:T,label:"backgroundSizeTablet"},mobile:{value:C,label:"backgroundSizeMobile"}},backgroundCustomSize:{desktop:{value:pe,label:"backgroundCustomSizeDesktop"},tablet:{value:de,label:"backgroundCustomSizeTablet"},mobile:{value:be,label:"backgroundCustomSizeMobile"}},backgroundCustomSizeType:{value:me,label:"backgroundCustomSizeType"},backgroundRepeat:{desktop:{value:f,label:"backgroundRepeatDesktop"},tablet:{value:h,label:"backgroundRepeatTablet"},mobile:{value:v,label:"backgroundRepeatMobile"}},backgroundAttachment:{desktop:{value:g,label:"backgroundAttachmentDesktop"},tablet:{value:m,label:"backgroundAttachmentTablet"},mobile:{value:y,label:"backgroundAttachmentMobile"}},backgroundPosition:{desktop:{value:p,label:"backgroundPositionDesktop"},tablet:{value:d,label:"backgroundPositionTablet"},mobile:{value:b,label:"backgroundPositionMobile"}},backgroundImage:{desktop:{value:o,label:"backgroundImageDesktop"},tablet:{value:s,label:"backgroundImageTablet"},mobile:{value:c,label:"backgroundImageMobile"}},imageResponsive:!0,backgroundColor:{value:u,label:"backgroundColor"},backgroundType:{value:i,label:"backgroundType"},overlayType:{value:ye,label:"overlayType"},gradientOverlay:{value:!0},customPosition:{value:fe,label:"customPosition"},xPositionDesktop:{value:he,label:"xPositionDesktop"},xPositionTablet:{value:ve,label:"xPositionTablet"},xPositionMobile:{value:_e,label:"xPositionMobile"},xPositionType:{value:Te,label:"xPositionType"},xPositionTypeTablet:{value:Ce,label:"xPositionTypeTablet"},xPositionTypeMobile:{value:Se,label:"xPositionTypeMobile"},yPositionDesktop:{value:ke,label:"yPositionDesktop"},yPositionTablet:{value:we,label:"yPositionTablet"},yPositionMobile:{value:Pe,label:"yPositionMobile"},yPositionType:{value:xe,label:"yPositionType"},yPositionTypeTablet:{value:Ae,label:"yPositionTypeTablet"},yPositionTypeMobile:{value:Ge,label:"yPositionTypeMobile"},backgroundVideoType:{value:!1}},e))),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,$A({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:U,label:"topPaddingDesktop"},valueRight:{value:L,label:"rightPaddingDesktop"},valueBottom:{value:E,label:"bottomPaddingDesktop"},valueLeft:{value:O,label:"leftPaddingDesktop"},valueTopTablet:{value:H,label:"topPaddingTablet"},valueRightTablet:{value:z,label:"rightPaddingTablet"},valueBottomTablet:{value:F,label:"bottomPaddingTablet"},valueLeftTablet:{value:j,label:"leftPaddingTablet"},valueTopMobile:{value:D,label:"topPaddingMobile"},valueRightMobile:{value:V,label:"rightPaddingMobile"},valueBottomMobile:{value:N,label:"bottomPaddingMobile"},valueLeftMobile:{value:I,label:"leftPaddingMobile"},unit:{value:W,label:"paddingType"},mUnit:{value:Z,label:"paddingTypeMobile"},tUnit:{value:q,label:"paddingTypeTablet"},attributes:t,setAttributes:a,link:{value:$,label:"paddingLink"}})),React.createElement(Pl,$A({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Y,label:"topMarginDesktop"},valueRight:{value:X,label:"rightMarginDesktop"},valueBottom:{value:K,label:"bottomMarginDesktop"},valueLeft:{value:J,label:"leftMarginDesktop"},valueTopTablet:{value:Q,label:"topMarginTablet"},valueRightTablet:{value:ae,label:"rightMarginTablet"},valueBottomTablet:{value:ee,label:"bottomMarginTablet"},valueLeftTablet:{value:te,label:"leftMarginTablet"},valueTopMobile:{value:le,label:"topMarginMobile"},valueRightMobile:{value:ne,label:"rightMarginMobile"},valueBottomMobile:{value:ie,label:"bottomMarginMobile"},valueLeftMobile:{value:oe,label:"leftMarginMobile"},unit:{value:re,label:"marginType"},mUnit:{value:ce,label:"marginTypeMobile"},tUnit:{value:se,label:"marginTypeTablet"},attributes:t,setAttributes:a,link:{value:ue,label:"marginLink"}})))),React.createElement(il,$A({},rl,{parentProps:e}))))}),KA=Object(B.memo)(e=>{const{slideIndex:t}=e,a=wp.blocks.getBlockTypes().filter((function(e){return!e.parent})),l=[["uagb/container",{variationSelected:!0},[["uagb/info-box",{showIcon:!1,ctaType:"button",infoBoxTitle:Object(r.__)("Slide ","ultimate-addons-for-gutenberg")+parseInt(t+1),showCtaIcon:!1,paddingBtnTop:12,paddingBtnRight:24,paddingBtnBottom:12,paddingBtnLeft:24}]]]],i={allowedBlocks:a.map(e=>e.name).filter(e=>-1===["uagb/slider","uagb/post-carousel","uagb/testimonial"].indexOf(e)),template:l},o=Object(ge.useInnerBlocksProps)({className:"swiper-content",slot:"container-start"},i);return React.createElement("div",o)});const JA=Object(n.withSelect)((e,t)=>{const a=e("core/edit-post")||e("core/edit-widgets")||e("core/edit-site"),l=null!=a&&a.__experimentalGetPreviewDeviceType?a.__experimentalGetPreviewDeviceType():null,{getBlocks:i,getBlockIndex:o}=e("core/block-editor"),{getBlockType:r}=e("core/blocks"),{insertBlock:s}=Object(n.useDispatch)("core/block-editor"),c=i(t.clientId),{replaceInnerBlocks:u}=Object(n.useDispatch)("core/block-editor"),p=o(t.clientId);return{innerBlocks:c,insertBlock:s,blockType:r(t.name),replaceInnerBlocks:u,deviceType:l,isParentOfSelectedBlock:e("core/block-editor").hasSelectedInnerBlock(t.clientId,!0),slideIndex:p}});var XA=Object(L.compose)(JA,ls,fe)(e=>{const{isSelected:t,attributes:a,deviceType:l,clientId:i}=e,o=Object(B.useMemo)(()=>function(e,t,a){let{backgroundType:l,backgroundImageDesktop:i,backgroundImageTablet:o,backgroundImageMobile:n,backgroundColor:r,backgroundPositionDesktop:s,backgroundPositionTablet:c,backgroundPositionMobile:u,backgroundAttachmentDesktop:p,backgroundAttachmentTablet:d,backgroundAttachmentMobile:b,backgroundRepeatDesktop:g,backgroundRepeatTablet:m,backgroundRepeatMobile:y,backgroundSizeDesktop:f,backgroundSizeTablet:h,backgroundSizeMobile:v,gradientValue:_,topPaddingDesktop:T,bottomPaddingDesktop:C,leftPaddingDesktop:S,rightPaddingDesktop:k,topPaddingTablet:w,bottomPaddingTablet:P,leftPaddingTablet:x,rightPaddingTablet:A,topPaddingMobile:G,bottomPaddingMobile:M,leftPaddingMobile:R,rightPaddingMobile:B,paddingType:U,paddingTypeTablet:E,paddingTypeMobile:O,topMarginDesktop:L,bottomMarginDesktop:H,leftMarginDesktop:F,rightMarginDesktop:j,topMarginTablet:z,bottomMarginTablet:D,leftMarginTablet:N,rightMarginTablet:I,topMarginMobile:V,bottomMarginMobile:W,leftMarginMobile:q,rightMarginMobile:Z,marginType:$,marginTypeTablet:Y,marginTypeMobile:K,backgroundCustomSizeDesktop:J,backgroundCustomSizeTablet:X,backgroundCustomSizeMobile:Q,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPositionDesktop:oe,xPositionTablet:ne,xPositionMobile:re,xPositionType:se,xPositionTypeTablet:ce,xPositionTypeMobile:ue,yPositionDesktop:pe,yPositionTablet:de,yPositionMobile:be,yPositionType:ge,yPositionTypeTablet:me,yPositionTypeMobile:ye,overflow:fe,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke}=e;const we=a.toLowerCase(),Pe=Wr(e,"container","tablet"),xe=Wr(e,"container","mobile");w=void 0!==w?w:T,G=void 0!==G?G:w,P=void 0!==P?P:C,M=void 0!==M?M:P,x=void 0!==x?x:S,R=void 0!==R?R:x,A=void 0!==A?A:k,B=void 0!==B?B:A,z=void 0!==z?z:L,V=void 0!==V?V:z,D=void 0!==D?D:H,W=void 0!==W?W:D,N=void 0!==N?N:F,q=void 0!==q?q:N,I=void 0!==I?I:j,Z=void 0!==Z?Z:I;const Ae={},Ge=qr({backgroundType:l,backgroundImage:i,backgroundColor:r,gradientValue:_,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke,backgroundRepeat:g,backgroundPosition:s,backgroundSize:f,backgroundAttachment:p,backgroundCustomSize:J,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPosition:oe,xPositionType:se,yPosition:pe,yPositionType:ge}),Me={"padding-top":Vr(T,U),"padding-bottom":Vr(C,U),"padding-left":Vr(S,U),"padding-right":Vr(k,U),"margin-top":Vr(L,$)+" !important","margin-bottom":Vr(H,$)+" !important","margin-left":Vr(F,$),"margin-right":Vr(j,$),...Ge,overflow:fe};Ae[" .swiper-content"]=Me;const Re=qr({backgroundType:l,backgroundImage:o,backgroundColor:r,gradientValue:_,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke,backgroundRepeat:m,backgroundPosition:c,backgroundSize:h,backgroundAttachment:d,backgroundCustomSize:X,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPosition:ne,xPositionType:ce,yPosition:de,yPositionType:me}),Be={" .swiper-content":{"padding-top":Vr(w,E),"padding-bottom":Vr(P,E),"padding-left":Vr(x,E),"padding-right":Vr(A,E),"margin-top":Vr(z,Y)+" !important","margin-bottom":Vr(D,Y)+" !important","margin-left":Vr(N,Y),"margin-right":Vr(I,Y),...Re,...Pe}},Ue=qr({backgroundType:l,backgroundImage:n,backgroundColor:r,gradientValue:_,gradientColor1:he,gradientColor2:ve,gradientLocation1:_e,gradientLocation2:Te,gradientType:Ce,gradientAngle:Se,selectGradient:ke,backgroundRepeat:y,backgroundPosition:u,backgroundSize:v,backgroundAttachment:b,backgroundCustomSize:Q,backgroundCustomSizeType:ee,backgroundImageColor:te,overlayType:le,customPosition:ie,xPosition:re,xPositionType:ue,yPosition:be,yPositionType:ye}),Ee={" .swiper-content":{"padding-top":Vr(G,O),"padding-bottom":Vr(M,O),"padding-left":Vr(R,O),"padding-right":Vr(B,O),"margin-top":Vr(V,K)+" !important","margin-bottom":Vr(W,K)+" !important","margin-left":Vr(q,K),"margin-right":Vr(Z,K),...Ue,...xe}},Oe=".editor-styles-wrapper #block-"+t;let Le=ae(Ae,Oe);return"tablet"!==we&&"mobile"!==we||(Le+=ae(Be,""+Oe,!0,"tablet"),"mobile"===we&&(Le+=ae(Ee,""+Oe,!0,"mobile"))),Le}(a,i,l),[a,l]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),t&&React.createElement(YA,e),React.createElement(KA,e))}),QA=[{attributes:{block_id:{type:"string",default:"0"},backgroundType:{type:"string",default:"none",UAGCopyPaste:{styleType:"slider-bg-type"}},backgroundImageDesktop:{type:"object",UAGCopyPaste:{styleType:"slider-bg-image-desktop"}},backgroundImageTablet:{type:"object",UAGCopyPaste:{styleType:"slider-bg-image-tablet"}},backgroundImageMobile:{type:"object",UAGCopyPaste:{styleType:"slider-bg-image-mobile"}},backgroundPositionDesktop:{type:"object",default:{x:.5,y:.5},UAGCopyPaste:{styleType:"slider-bg-position-desktop"}},backgroundPositionTablet:{type:"object",UAGCopyPaste:{styleType:"slider-bg-position-tablet"}},backgroundPositionMobile:{type:"object",UAGCopyPaste:{styleType:"slider-bg-position-mobile"}},backgroundSizeDesktop:{type:"string",default:"cover",UAGCopyPaste:{styleType:"slider-bg-size-desktop"}},backgroundSizeTablet:{type:"string",UAGCopyPaste:{styleType:"slider-bg-size-tablet"}},backgroundSizeMobile:{type:"string",UAGCopyPaste:{styleType:"slider-bg-size-mobile"}},backgroundRepeatDesktop:{type:"string",default:"no-repeat",UAGCopyPaste:{styleType:"slider-bg-repeat-desktop"}},backgroundRepeatTablet:{type:"string",UAGCopyPaste:{styleType:"slider-bg-repeat-tablet"}},backgroundRepeatMobile:{type:"string",UAGCopyPaste:{styleType:"slider-bg-repeat-mobile"}},backgroundAttachmentDesktop:{type:"string",default:"scroll",UAGCopyPaste:{styleType:"slider-bg-attachment-desktop"}},backgroundAttachmentTablet:{type:"string",UAGCopyPaste:{styleType:"slider-bg-attachment-tablet"}},backgroundAttachmentMobile:{type:"string",UAGCopyPaste:{styleType:"slider-bg-attachment-mobile"}},backgroundColor:{type:"string",UAGCopyPaste:{styleType:"slider-bg-color"}},backgroundOpacity:{type:"number",UAGCopyPaste:{styleType:"slider-bg-opacity"}},backgroundImageColor:{type:"string",UAGCopyPaste:{styleType:"slider-bg-image-color"},default:"#FFFFFF75"},gradientValue:{type:"string",default:"linear-gradient(90deg, rgba(6, 147, 227, 0.5) 0%, rgba(155, 81, 224, 0.5) 100%)",UAGCopyPaste:{styleType:"slider-bg-gradient-value"}},topPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-top-padding-desktop"},default:20},bottomPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-padding-desktop"},default:20},leftPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-left-padding-desktop"},default:20},rightPaddingDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-right-padding-desktop"},default:20},topPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-top-padding-tablet"},default:20},bottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-padding-tablet"},default:20},leftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-left-padding-tablet"},default:20},rightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"slider-right-padding-tablet"},default:20},topPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-top-padding-mobile"},default:20},bottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-padding-mobile"},default:20},leftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-left-padding-mobile"},default:20},rightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"slider-right-padding-mobile"},default:20},paddingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-padding-type"}},paddingTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-padding-type-tablet"}},paddingTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-padding-type-mobile"}},paddingLink:{type:"boolean",default:!0},topMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-top-margin-desktop"}},bottomMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-margin-desktop"}},leftMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-left-margin-desktop"}},rightMarginDesktop:{type:"number",UAGCopyPaste:{styleType:"slider-right-margin-desktop"}},topMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-top-margin-tablet"}},bottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-margin-tablet"}},leftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-left-margin-tablet"}},rightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"slider-right-margin-tablet"}},topMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-top-margin-mobile"}},bottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-bottom-margin-mobile"}},leftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-left-margin-mobile"}},rightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"slider-right-margin-mobile"}},marginType:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-margin-type"}},marginTypeTablet:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-margin-type-tablet"}},marginTypeMobile:{type:"string",default:"px",UAGCopyPaste:{styleType:"slider-margin-type-mobile"}},isPreview:{type:"boolean",default:!1},isBlockRootParent:{type:"boolean",default:!1},backgroundCustomSizeDesktop:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-desktop"},default:100},backgroundCustomSizeTablet:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-tablet"}},backgroundCustomSizeMobile:{type:"number",UAGCopyPaste:{styleType:"background-custom-size-mobile"}},backgroundCustomSizeType:{type:"string",default:"%",UAGCopyPaste:{styleType:"background-custom-size-type"}},overlayType:{type:"string",default:"none",UAGCopyPaste:{styleType:"background-overlay-type"}},customPosition:{type:"string",default:"default",UAGCopyPaste:{styleType:"background-image-position-type"}},xPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-desktop"},default:""},xPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-tablet"}},xPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-x-position-mobile"}},xPositionType:{type:"string",default:"px"},xPositionTypeTablet:{type:"string",default:"px"},xPositionTypeMobile:{type:"string",default:"px"},yPositionDesktop:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-desktop"},default:""},yPositionTablet:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-tablet"}},yPositionMobile:{type:"number",UAGCopyPaste:{styleType:"background-image-y-position-mobile"}},yPositionType:{type:"string",default:"px"},yPositionTypeTablet:{type:"string",default:"px"},yPositionTypeMobile:{type:"string",default:"px"}},save:function(e){const{block_id:t}=e.attributes;return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-slider-child-wrap","swiper-slide","uagb-block-"+t),key:t},React.createElement("div",{className:"swiper-content"},React.createElement(ge.InnerBlocks.Content,null))))}}];let eG={};eG=Object(F.applyFilters)("uagb/slider-child",ss(eG)),Object(de.registerBlockType)("uagb/slider-child",{...eG,title:Object(r.__)("Slider Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add and customize content of this slide.","ultimate-addons-for-gutenberg"),icon:se.slider_child,parent:["uagb/slider"],keywords:[Object(r.__)("slider","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],attributes:ja,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"slider-child",isChildren:!0}):React.createElement(XA,e),save:function(e){const{block_id:t}=e.attributes,a=ge.useBlockProps.save({className:Be()("uagb-slider-child-wrap","swiper-slide","uagb-block-"+t)});return React.createElement(React.Fragment,null,React.createElement("div",ZA({},a,{key:t}),React.createElement("div",{className:"swiper-content"},React.createElement(ge.InnerBlocks.Content,null))))},deprecated:QA}),a(370);var tG={from:[{type:"raw",priority:20,selector:"p",schema:e=>{let{phrasingContentSchema:t,isPaste:a}=e;return{p:{children:t,attributes:a?[]:["style"]}}},transform(e){const t=Object(de.getBlockAttributes)("uagb/social-share",e.outerHTML),{textAlign:a}=e.style||{};return"left"!==a&&"center"!==a&&"right"!==a||(t.align=a),Object(de.createBlock)("uagb/social-share",t)}}]};const aG=[{defaultAttributes:ht},{defaultChildAttributes:vt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"gap",value:15},{label:"gapTablet",value:15},{label:"gapMobile",value:15},{label:"bgSize",value:12},{label:"bgSizeTablet",value:12},{label:"bgSizeMobile",value:12},{label:"size",value:20},{label:"sizeTablet",value:20},{label:"sizeMobile",value:20},{label:"borderRadius",value:0},{label:"borderRadiusTablet",value:0},{label:"borderRadiusMobile",value:0},{label:"border",value:0},{label:"iconColor",value:"#ffffff"},{label:"iconBgColor",value:"#0170B9"}],childAttributes:[{label:"icon_color",value:""},{label:"icon_bg_color",value:""}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"gap",value:15},{label:"gapTablet",value:15},{label:"gapMobile",value:15},{label:"bgSize",value:12},{label:"bgSizeTablet",value:12},{label:"bgSizeMobile",value:12},{label:"size",value:20},{label:"sizeTablet",value:20},{label:"sizeMobile",value:20},{label:"borderRadius",value:5},{label:"borderRadiusTablet",value:5},{label:"borderRadiusMobile",value:5},{label:"border",value:0},{label:"iconColor",value:"#ffffff"},{label:"iconBgColor",value:"#0170B9"}],childAttributes:[{label:"icon_color",value:""},{label:"icon_bg_color",value:""}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"gap",value:15},{label:"gapTablet",value:15},{label:"gapMobile",value:15},{label:"bgSize",value:12},{label:"bgSizeTablet",value:12},{label:"bgSizeMobile",value:12},{label:"size",value:20},{label:"sizeTablet",value:20},{label:"sizeMobile",value:20},{label:"borderRadius",value:100},{label:"borderRadiusTablet",value:100},{label:"borderRadiusMobile",value:100},{label:"border",value:0},{label:"iconColor",value:"#ffffff"},{label:"iconBgColor",value:"#0170B9"}],childAttributes:[{label:"icon_color",value:""},{label:"icon_bg_color",value:""}],icon:' '}];var lG=Object(F.applyFilters)("uag_social_share_presets",aG);function iG(){return(iG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{align:l,alignTablet:i,alignMobile:o,gap:n,gapTablet:s,gapMobile:c,stack:u,social_layout:p,borderRadius:d,borderRadiusTablet:b,borderRadiusMobile:g,size:m,sizeType:y,sizeMobile:f,sizeTablet:h,bgSize:v,iconColor:_,iconHoverColor:T,iconBgColor:C,iconBgHoverColor:S}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:p,label:"social_layout"},className:"uagb-multi-button-alignment-control",options:[{value:"horizontal",label:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},{value:"vertical",label:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")}],showIcons:!1}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"align"},tablet:{value:i,label:"alignTablet"},mobile:{value:o,label:"alignMobile"}},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0,responsive:!0}),"horizontal"===p&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:u,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"desktop",label:Object(r.__)("Desktop","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}],showIcons:!1,help:Object(r.__)("Note: Choose on what breakpoint the Icons will stack.","ultimate-addons-for-gutenberg")}))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:lG,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"size"},tablet:{value:h,label:"sizeTablet"},mobile:{value:f,label:"sizeMobile"}},min:0,max:100,unit:{value:y,label:"sizeType"},setAttributes:a}),React.createElement(Qa,{label:Object(r.__)("Background Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:v,data:{value:v,label:"bgSize"},min:0,max:100,displayUnit:!1,help:Object(r.__)("Note: Background Size option is useful when one adds background color to the icons.","ultimate-addons-for-gutenberg")}),React.createElement(tl,{label:Object(r.__)("Border Radius","ultimate-addons-for-gutenberg"),data:{desktop:{value:d,label:"borderRadius"},tablet:{value:b,label:"borderRadiusTablet"},mobile:{value:g,label:"borderRadiusMobile"}},min:0,max:100,displayUnit:!1,help:Object(r.__)("Note: Border Radius option is useful when one adds background color to the icons.","ultimate-addons-for-gutenberg"),setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"iconColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:C||"",data:{value:C,label:"iconBgColor"},setAttributes:a})),hover:React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:T||"",data:{value:T,label:"iconHoverColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:S||"",data:{value:S,label:"iconBgHoverColor"},setAttributes:a})),disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Gap between Items","ultimate-addons-for-gutenberg"),data:{desktop:{value:n,label:"gap"},tablet:{value:s,label:"gapTablet"},mobile:{value:c,label:"gapMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}))),React.createElement(il,iG({},rl,{parentProps:e}))))}),rG=a(137),sG=0,cG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},uG={};uG.locals=rG.a.locals||{},uG.use=function(){return sG++||(oG=we()(rG.a,cG)),uG},uG.unuse=function(){sG>0&&!--sG&&(oG(),oG=null)};var pG=uG;const dG=["uagb/social-share-child"];var bG=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(pG.use(),()=>{pG.unuse()}),[]);const{attributes:t,deviceType:a}=e,{className:l,social_layout:i,block_id:o}=t;return React.createElement("div",{className:Be()(l,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+i,"uagb-editor-preview-mode-"+a.toLowerCase(),"uagb-block-"+o)},React.createElement(ge.InnerBlocks,{template:[["uagb/social-share-child",{type:"facebook",image_icon:"icon",icon:"fab fa-facebook",image:"",icon_color:"#3b5998",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}],["uagb/social-share-child",{type:"twitter",image_icon:"icon",icon:"fab fa-twitter-square",image:"",icon_color:"#55acee",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}],["uagb/social-share-child",{type:"pinterest",image_icon:"icon",icon:"fab fa-pinterest-square",image:"",icon_color:"#bd081c",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}],["uagb/social-share-child",{type:"linkedin",image_icon:"icon",icon:"fab fa-linkedin",image:"",icon_color:"#0077b5",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""}]],templateLock:!1,allowedBlocks:dG,__experimentalMoverDirection:i}))}),gG=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,clientId:a,attributes:l,name:i,attributes:{UAGHideDesktop:o,UAGHideTab:r,UAGHideMob:s},deviceType:c}=e;Object(B.useEffect)(()=>{he(e)},[o,r,s,c]),Object(B.useEffect)(()=>{ys()},[c]),Object(B.useEffect)(()=>{var e;null===(e=Object(n.select)("core/block-editor").getBlocksByClientId(a)[0])||void 0===e||e.innerBlocks.forEach((function(e){Object(n.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{parentSize:l.size,parentSizeMobile:l.sizeMobile,parentSizeTablet:l.sizeTablet})}))},[l.size,l.sizeMobile,l.sizeTablet]);const u=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{align:n,alignTablet:r,alignMobile:s,gap:c,gapTablet:u,gapMobile:p,social_layout:d,borderRadius:b,borderRadiusTablet:g,borderRadiusMobile:m,size:y,sizeType:f,sizeMobile:h,sizeTablet:v,bgSize:_,stack:T,iconColor:C,iconHoverColor:S,iconBgColor:k,iconBgHoverColor:w,block_id:P}=e,x=us(_,"bgSize",i),A=us(y,"size",i),G=us(c,"gap",i),M=isNaN(u)?G:u,R=isNaN(p)?M:p,B={" span.uagb-ss__link":{color:C}," span.uagb-ss__link svg":{fill:C}," .uagb-ss-repeater:hover span.uagb-ss__link":{color:S}," .uagb-ss-repeater:hover span.uagb-ss__link svg":{fill:S}," .uagb-ss__wrapper":{background:k}," .uagb-ss__wrapper:hover":{background:w}},U={},E={};function O(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"}B[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={padding:Vr(x,"px"),"margin-left":0,"margin-right":0,"margin-top":Vr(G/2,"px"),"margin-bottom":Vr(G/2,"px")},U[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-top":Vr(M/2,"px"),"margin-bottom":Vr(M/2,"px")},E[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-top":Vr(R/2,"px"),"margin-bottom":Vr(R/2,"px")},B[".uagb-social-share__layout-vertical.uagb-social-share__outer-wrap"]={"flex-direction":"column"},B[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={padding:Vr(x,"px"),"margin-left":Vr(G/2,"px"),"margin-right":Vr(G/2,"px")},U[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":Vr(M/2,"px"),"margin-right":Vr(M/2,"px")},E[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":Vr(R/2,"px"),"margin-right":Vr(R/2,"px")},B[" .uagb-ss__wrapper.uagb-ss-repeater "]={"border-radius":Vr(b,"px")},U[" .uagb-ss__wrapper.uagb-ss-repeater "]={"border-radius":Vr(g,"px")},E[" .uagb-ss__wrapper.uagb-ss-repeater "]={"border-radius":Vr(m,"px")},B[" .uagb-ss__source-image"]={width:Vr(A,f)},B[" .uagb-ss__source-wrap"]={width:Vr(A,f)},B[" .uagb-ss__source-wrap svg"]={width:Vr(A,f),height:Vr(A,f)},B[" .uagb-ss__source-icon"]={width:Vr(A,f),height:Vr(A,f),"font-size":Vr(A,f)};const L=O(n),H=O(r),F=O(s);B[".uagb-social-share__outer-wrap .block-editor-inner-blocks"]={"text-align":n},B[".uagb-social-share__outer-wrap .block-editor-inner-blocks .block-editor-block-list__layout"]={"justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap .block-editor-inner-blocks .block-editor-block-list__layout"]={"justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap .block-editor-inner-blocks .block-editor-block-list__layout"]={"justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F},B[".uagb-social-share__outer-wrap"]={"justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F},"horizontal"===d&&("desktop"===T?(B[".uagb-social-share__layout-horizontal .block-editor-inner-blocks > .block-editor-block-list__layout"]={"flex-direction":"column"},B[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(G,"px"),background:k},U[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(u,"px"),background:k},E[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(p,"px"),background:k},B[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F}):"tablet"===T?(U[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(u,"px"),background:k},U[".uagb-editor-preview-mode-tablet .block-editor-block-list__layout"]={"flex-direction":"column"},E[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"flex-direction":"column"},U[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0},B[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F}):"mobile"===T&&(E[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":Vr(p,"px"),background:k},E[".uagb-editor-preview-mode-mobile .block-editor-block-list__layout"]={"flex-direction":"column"},E[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0},B[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":L,"-webkit-box-pack":L,"-ms-flex-pack":L,"-webkit-box-align":L,"-ms-flex-align":L,"align-items":L},U[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":H,"-webkit-box-pack":H,"-ms-flex-pack":H,"-webkit-box-align":H,"-ms-flex-align":H,"align-items":H},E[".uagb-social-share__outer-wrap"]={"flex-direction":"column","justify-content":F,"-webkit-box-pack":F,"-ms-flex-pack":F,"-webkit-box-align":F,"-ms-flex-align":F,"align-items":F})),E[" .uagb-ss__source-image"]={width:Vr(h,f)},E[" .uagb-ss__source-wrap"]={width:Vr(h,f),height:Vr(h,f),"line-height":Vr(h,f)},E[" .uagb-ss__source-wrap svg"]={width:Vr(h,f),height:Vr(h,f)},E[" .uagb-ss__source-icon"]={width:Vr(h,f),height:Vr(h,f),"font-size":Vr(h,f),"line-height":Vr(h,f)},U[" .uagb-ss__source-image"]={width:Vr(v,f)},U[" .uagb-ss__source-wrap"]={width:Vr(v,f),height:Vr(v,f),"line-height":Vr(v,f)},U[" .uagb-ss__source-wrap svg"]={width:Vr(v,f),height:Vr(v,f)},U[" .uagb-ss__source-icon"]={width:Vr(v,f),height:Vr(v,f),"font-size":Vr(v,f),"line-height":Vr(v,f)};let j="";const z=".uagb-block-"+P;return j=ae(B,z),"tablet"!==o&&"mobile"!==o||(j+=ae(U,""+z,!0,"tablet"),"mobile"===o&&(j+=ae(E,""+z,!0,"mobile"))),j}(l,0,i,c),[l,c]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:u}),t&&React.createElement(nG,e),React.createElement(bG,e))}),mG={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",pinterest:"https://pinterest.com/pin/create/link/?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"https://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body="},yG=[{attributes:ht,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,socials:n,social_count:r,social_layout:s,current_url:c}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+s),id:"uagb-social-share-"+l},React.createElement("div",{className:"uagb-social-share__wrap"},n.map((e,t)=>{if(r<=t)return;let a="";null!=c&&(a=mG[e.type]+encodeURI(c));let l="";return"icon"==e.image_icon?e.icon&&(l=React.createElement("span",{className:Be()(e.icon,"uagb-ss__source-icon")})):e.image&&(l=React.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),React.createElement("div",{className:Be()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},React.createElement("a",{className:"uagb-ss__link",href:a,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},l)))})))}},{attributes:ht,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,socials:n,social_count:r,social_layout:s,current_url:c}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+s),id:"uagb-social-share-"+l},React.createElement("div",{className:"uagb-social-share__wrap"},n.map((e,t)=>{if(r<=t)return;let a="";null!=c&&(a=mG[e.type]);let l="";return"icon"==e.image_icon?e.icon&&(l=React.createElement("span",{className:"uagb-ss__source-icon"},kb(e.icon))):e.image&&(l=React.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),React.createElement("div",{className:Be()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},React.createElement("a",{className:"uagb-ss__link","data-href":a,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},l)))})))}},{attributes:ht,save:e=>{const{attributes:t,className:a}=e,{block_id:l,align:i,items:o,socials:n,social_count:r,social_layout:s,current_url:c}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+s,"uagb-block-"+l)},React.createElement("div",{className:"uagb-social-share__wrap"},n.map((e,t)=>{if(r<=t)return;let a="";null!=c&&(a=mG[e.type]);let l="";return"icon"==e.image_icon?e.icon&&(l=React.createElement("span",{className:"uagb-ss__source-icon"},kb(e.icon))):e.image&&(l=React.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),React.createElement("div",{className:Be()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},React.createElement("a",{className:"uagb-ss__link","data-href":a,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},l)))})))}},{attributes:ht,save:e=>{const{className:t}=e,{block_id:a,social_layout:l}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+l,"uagb-block-"+a)},React.createElement("div",{className:"uagb-social-share__wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];let fG={};fG=Object(F.applyFilters)("uagb/social-share",ss(fG)),Object(de.registerBlockType)("uagb/social-share",{...fG,title:Object(r.__)("Social Share","ultimate-addons-for-gutenberg"),description:Object(r.__)("Share your content on different social media platforms.","ultimate-addons-for-gutenberg"),icon:se.social_share,keywords:[Object(r.__)("social share","ultimate-addons-for-gutenberg"),Object(r.__)("icon","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:ht,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"social-share"}):React.createElement(gG,e),save:function(e){const{className:t}=e,{block_id:a,social_layout:l}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+l,"uagb-block-"+a)},React.createElement(ge.InnerBlocks.Content,null))},transform:tG,deprecated:yG});function hG(){return(hG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a}=e,{type:l,image_icon:i,icon:o,image:n,icon_color:s,icon_hover_color:c,icon_bg_color:u,icon_bg_hover_color:p}=t;return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Type","ultimate-addons-for-gutenberg"),data:{value:l},onChange:e=>{a({type:e}),a({icon:{facebook:"fab fa-facebook",twitter:"fab fa-twitter-square",google:"fab fa-google-plus-square",pinterest:"fab fa-pinterest-square",linkedin:"fab fa-linkedin",digg:"fab fa-digg",blogger:"fab fa-blogger",reddit:"fab fa-reddit-square",stumbleupon:"fab fa-stumbleupon-circle",tumblr:"fab fa-tumblr-square",myspace:"fas fa-user-friends",email:"fas fa-envelope",pocket:"fab fa-get-pocket",vk:"fab fa-vk",odnoklassniki:"fab fa-odnoklassniki",skype:"fab fa-skype",telegram:"fab fa-telegram",whatsapp:"fab fa-whatsapp",xing:"fab fa-xing",buffer:"fab fa-buffer"}[e]})},options:[{value:"facebook",label:Object(r.__)("Facebook","ultimate-addons-for-gutenberg")},{value:"twitter",label:Object(r.__)("Twitter / X","ultimate-addons-for-gutenberg")},{value:"google",label:Object(r.__)("Google Currents","ultimate-addons-for-gutenberg")},{value:"pinterest",label:Object(r.__)("Pinterest","ultimate-addons-for-gutenberg")},{value:"linkedin",label:Object(r.__)("LinkedIn","ultimate-addons-for-gutenberg")},{value:"digg",label:Object(r.__)("Digg","ultimate-addons-for-gutenberg")},{value:"blogger",label:Object(r.__)("Blogger","ultimate-addons-for-gutenberg")},{value:"reddit",label:Object(r.__)("Reddit","ultimate-addons-for-gutenberg")},{value:"stumbleupon",label:Object(r.__)("StumbleUpon","ultimate-addons-for-gutenberg")},{value:"tumblr",label:Object(r.__)("Tumblr","ultimate-addons-for-gutenberg")},{value:"myspace",label:Object(r.__)("Myspace","ultimate-addons-for-gutenberg")},{value:"email",label:Object(r.__)("Email","ultimate-addons-for-gutenberg")},{value:"pocket",label:Object(r.__)("Pocket","ultimate-addons-for-gutenberg")},{value:"vk",label:Object(r.__)("VK","ultimate-addons-for-gutenberg")},{value:"odnoklassniki",label:Object(r.__)("Odnoklassniki","ultimate-addons-for-gutenberg")},{value:"skype",label:Object(r.__)("Skype","ultimate-addons-for-gutenberg")},{value:"telegram",label:Object(r.__)("Telegram","ultimate-addons-for-gutenberg")},{value:"whatsapp",label:Object(r.__)("WhatsApp","ultimate-addons-for-gutenberg")},{value:"xing",label:Object(r.__)("Xing","ultimate-addons-for-gutenberg")},{value:"buffer",label:Object(r.__)("Buffer","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Image / Icon","ultimate-addons-for-gutenberg"),data:{value:i,label:"image_icon"},className:"uagb-multi-button-alignment-control",options:[{value:"icon",label:Object(r.__)("Icon","ultimate-addons-for-gutenberg")},{value:"image",label:Object(r.__)("Image","ultimate-addons-for-gutenberg")}],showIcons:!1}),"icon"===i&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({icon:e})})),"image"===i&&React.createElement(Yl,{onSelectImage:e=>{e&&e.url&&e.type&&"image"===e.type?a({image:e}):a({image:null})},backgroundImage:n,onRemoveImage:()=>{a({image:""})}}))),React.createElement(il,nl,(()=>{let e="",t="";return"image"===i?(e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"icon_bg_color"},setAttributes:a})),t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"icon_bg_hover_color"},setAttributes:a}))):(e=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"icon_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u||"",data:{value:u,label:"icon_bg_color"},setAttributes:a})),t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"icon_hover_color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"icon_bg_hover_color"},setAttributes:a}))),React.createElement(je,{title:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:e,hover:t,disableBottomSeparator:!0}))})()),React.createElement(il,hG({},rl,{parentProps:e}))))}),TG=a(138),CG=0,SG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},kG={};kG.locals=TG.a.locals||{},kG.use=function(){return CG++||(vG=we()(TG.a,SG)),kG},kG.unuse=function(){CG>0&&!--CG&&(vG(),vG=null)};var wG=kG,PG=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(wG.use(),()=>{wG.unuse()}),[]);const{attributes:t,setAttributes:a}=e,{className:l,image_icon:i,icon:o,image:n,parentSize:r,imgTagHeight:s,block_id:c}=t,u=n&&null!=n&&n.alt?null==n?void 0:n.alt:"";let p="";return Object(B.useEffect)(()=>{n&&n.url&&"none"!==i&&Zg(null==n?void 0:n.url,a,{type:"width",value:r})},[n,r]),"icon"===i?o&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},Ce(o,a))):n&&n.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:n.url,alt:u,width:r,height:s,loading:"lazy"})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",l,"uagb-block-"+c)},React.createElement("span",{className:"uagb-ss__link",href:"/"},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))}),xG=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,clientId:l,deviceType:i}=e;Object(B.useEffect)(()=>{ys()},[i]);const o=Object(B.useMemo)(()=>function(e){const{icon_color:t,icon_hover_color:a,icon_bg_color:l,icon_bg_hover_color:i,block_id:o}=e;let n="";return n=ae({".uagb-ss-repeater span.uagb-ss__link":{color:t},".uagb-ss-repeater span.uagb-ss__link svg":{fill:t},".uagb-ss-repeater:hover span.uagb-ss__link":{color:a},".uagb-ss-repeater:hover span.uagb-ss__link svg":{fill:a},".uagb-ss-repeater.uagb-ss__wrapper":{background:l},".uagb-ss-repeater.uagb-ss__wrapper:hover":{background:i}},".uagb-block-"+o),n}(a),[a,i]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:o}),t&&React.createElement(_G,e),React.createElement(PG,e))}),AG={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"https://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body=",pinterest:"https://pinterest.com/pin/create/link/?url=",vk:"https://vkontakte.ru/share.php?url=",odnoklassniki:"https://connect.ok.ru/offer?url=",pocket:"https://getpocket.com/edit?url=",whatsapp:"https://api.whatsapp.com/send?text=",xing:"https://www.xing.com/app/user?op=share&url=",telegram:"https://telegram.me/share/url?url=",skype:"https://web.skype.com/share?url=",buffer:"https://buffer.com/add?url="};a(371);var GG={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"http://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body=",pinterest:"https://pinterest.com/pin/create/link/?url=",vk:"https://vkontakte.ru/share.php?url=",odnoklassniki:"https://connect.ok.ru/offer?url=",pocket:"https://getpocket.com/edit?url=",whatsapp:"https://api.whatsapp.com/send?text=",xing:"https://www.xing.com/app/user?op=share&url=",telegram:"https://telegram.me/share/url?url=",skype:"https://web.skype.com/share?url=",buffer:"https://buffer.com/add?url="},MG=[{attributes:vt,save:e=>{const{attributes:t,className:a}=e,{current_url:l,type:i,image_icon:o,icon:n,image:r,block_id:s,link:c}=e.attributes;let u="";null!=l&&(u=GG[i]);let p="";return"icon"==o?n&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},kb(n))):r&&r.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:r.url})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",a,"uagb-block-"+s)},React.createElement("a",{className:"uagb-ss__link","data-href":u,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))}},{attributes:vt,save:function(e){const{className:t}=e,{type:a,image_icon:l,icon:i,image:o,block_id:n,parentSize:r,imgTagHeight:s}=e.attributes,c=AG[a],u=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let p="";return"icon"===l?i&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},Ce(i))):o&&o.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:o.url,alt:u,width:r,height:s,loading:"lazy"})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",t,"uagb-block-"+n)},React.createElement("a",{className:"uagb-ss__link","data-href":c,rel:"noopener noreferrer"},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))}}];let RG={};RG=Object(F.applyFilters)("uagb/social-share-child",ss(RG)),Object(de.registerBlockType)("uagb/social-share-child",{...RG,title:Object(r.__)("Social Share Child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Share your content on this social media platform .","ultimate-addons-for-gutenberg"),icon:se.social_share_child,parent:["uagb/social-share"],keywords:[Object(r.__)("social share","ultimate-addons-for-gutenberg"),Object(r.__)("icon","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],attributes:vt,category:uagb_blocks_info.category,supports:{html:!1},edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"social-share-child",isChildren:!0}):React.createElement(xG,e),save:function(e){const{className:t}=e,{type:a,image_icon:l,icon:i,image:o,block_id:n,parentSize:r,imgTagHeight:s}=e.attributes,c=AG[a],u=o&&null!=o&&o.alt?null==o?void 0:o.alt:"";let p="";return"icon"===l?i&&(p=React.createElement("span",{className:"uagb-ss__source-icon"},Ce(i))):o&&o.url&&(p=React.createElement("img",{className:"uagb-ss__source-image",src:o.url,alt:u,width:r,height:s,loading:"lazy"})),React.createElement("div",{className:Be()("uagb-ss-repeater","uagb-ss__wrapper",t,"uagb-block-"+n)},React.createElement("span",{className:"uagb-ss__link","data-href":c,tabIndex:0,role:"button","aria-label":a},React.createElement("span",{className:"uagb-ss__source-wrap"},p)))},deprecated:MG});function BG(){return(BG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,attributes:{rating:l,range:i,layout:o,layoutTablet:n,layoutMobile:s,align:c,alignTablet:u,alignMobile:p,size:d,sizeTablet:b,sizeMobile:g,gap:m,gapMobile:y,gapTablet:f,unmarkedColor:h,color:v,title:_,loadGoogleFonts:T,fontFamily:C,fontWeight:S,fontSizeType:k,fontSize:w,fontSizeMobile:P,fontSizeTablet:x,lineHeightType:A,lineHeight:G,lineHeightMobile:M,lineHeightTablet:R,titleColor:B,titleGap:U,titleGapMobile:E,titleGapTablet:O,fontStyle:L,fontTransform:H,fontDecoration:F,displayTitle:j,letterSpacing:z,letterSpacingTablet:D,letterSpacingMobile:N,letterSpacingType:I,blockTopPadding:V,blockRightPadding:W,blockLeftPadding:q,blockBottomPadding:Z,blockTopPaddingTablet:$,blockRightPaddingTablet:Y,blockLeftPaddingTablet:K,blockBottomPaddingTablet:J,blockTopPaddingMobile:X,blockRightPaddingMobile:Q,blockLeftPaddingMobile:ee,blockBottomPaddingMobile:te,blockPaddingUnit:ae,blockPaddingUnitTablet:le,blockPaddingUnitMobile:ie,blockPaddingLink:oe,blockTopMargin:ne,blockRightMargin:re,blockLeftMargin:se,blockBottomMargin:ce,blockTopMarginTablet:ue,blockRightMarginTablet:pe,blockLeftMarginTablet:de,blockBottomMarginTablet:be,blockTopMarginMobile:me,blockRightMarginMobile:ye,blockLeftMarginMobile:fe,blockBottomMarginMobile:he,blockMarginUnit:ve,blockMarginUnitTablet:_e,blockMarginUnitMobile:Te,blockMarginLink:Se,starPosition:ke,starPositionTablet:we,starPositionMobile:Pe},deviceType:xe}=e;let Ae=[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"full",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-justify")}),tooltip:Object(r.__)("Full","ultimate-addons-for-gutenberg")}];("stack"===o||"stack"===n&&"Tablet"===xe||"stack"===s&&"Mobile"===xe)&&(Ae=[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],"full"===c&&a({align:"left"}));const Ge=React.createElement(je,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Title","ultimate-addons-for-gutenberg"),checked:j,onChange:()=>a({displayTitle:!j})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Range","ultimate-addons-for-gutenberg"),data:{value:i,label:"range"},options:[{value:"5",label:Object(r.__)("1-5","ultimate-addons-for-gutenberg")},{value:"10",label:Object(r.__)("1-10","ultimate-addons-for-gutenberg")}]}),React.createElement(Qa,{label:Object(r.__)("Rating","ultimate-addons-for-gutenberg"),setAttributes:a,value:l,data:{value:l,label:"rating"},min:0,max:i,step:.1,displayUnit:!1}),j&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{desktop:{value:o,label:"layout"},tablet:{value:n,label:"layoutTablet"},mobile:{value:s,label:"layoutMobile"}},options:[{value:"inline",label:Object(r.__)("Inline","ultimate-addons-for-gutenberg")},{value:"stack",label:Object(r.__)("Stack","ultimate-addons-for-gutenberg")}],responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Star Position","ultimate-addons-for-gutenberg"),data:{desktop:{value:ke,label:"starPosition"},tablet:{value:we,label:"starPositionTablet"},mobile:{value:Pe,label:"starPositionMobile"}},options:[{value:"before",label:Object(r.__)("Before","ultimate-addons-for-gutenberg")},{value:"after",label:Object(r.__)("After","ultimate-addons-for-gutenberg")}],responsive:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{desktop:{value:c,label:"align"},tablet:{value:u,label:"alignTablet"},mobile:{value:p,label:"alignMobile"}},options:Ae,showIcons:!0,responsive:!0})),Me=React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:B,data:{value:B,label:"titleColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:T,label:"loadGoogleFonts"},fontFamily:{value:C,label:"fontFamily"},fontWeight:{value:S,label:"fontWeight"},fontStyle:{value:L,label:"fontStyle"},transform:{value:H,label:"fontTransform"},decoration:{value:F,label:"fontDecoration"},fontSizeType:{value:k,label:"fontSizeType"},fontSize:{value:w,label:"fontSize"},fontSizeMobile:{value:P,label:"fontSizeMobile"},fontSizeTablet:{value:x,label:"fontSizeTablet"},lineHeightType:{value:A,label:"lineHeightType"},lineHeight:{value:G,label:"lineHeight"},lineHeightMobile:{value:M,label:"lineHeightMobile"},lineHeightTablet:{value:R,label:"lineHeightTablet"},letterSpacing:{value:z,label:"letterSpacing"},letterSpacingTablet:{value:D,label:"letterSpacingTablet"},letterSpacingMobile:{value:N,label:"letterSpacingMobile"},letterSpacingType:{value:I,label:"letterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Gap Between Title And Stars","ultimate-addons-for-gutenberg"),data:{desktop:{value:U,label:"titleGap"},tablet:{value:O,label:"titleGapTablet"},mobile:{value:E,label:"titleGapMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a})),Re=React.createElement(je,{title:Object(r.__)("Star","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:v,data:{value:v,label:"color"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Unmarked Color","ultimate-addons-for-gutenberg"),colorValue:h,data:{value:h,label:"unmarkedColor"},setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:d,label:"size"},tablet:{value:b,label:"sizeTablet"},mobile:{value:g,label:"sizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Stars","ultimate-addons-for-gutenberg"),data:{desktop:{value:m,label:"gap"},tablet:{value:f,label:"gapTablet"},mobile:{value:y,label:"gapMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a})),Be=React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:V,label:"blockTopPadding"},valueRight:{value:W,label:"blockRightPadding"},valueBottom:{value:Z,label:"blockBottomPadding"},valueLeft:{value:q,label:"blockLeftPadding"},valueTopTablet:{value:$,label:"blockTopPaddingTablet"},valueRightTablet:{value:Y,label:"blockRightPaddingTablet"},valueBottomTablet:{value:J,label:"blockBottomPaddingTablet"},valueLeftTablet:{value:K,label:"blockLeftPaddingTablet"},valueTopMobile:{value:X,label:"blockTopPaddingMobile"},valueRightMobile:{value:Q,label:"blockRightPaddingMobile"},valueBottomMobile:{value:te,label:"blockBottomPaddingMobile"},valueLeftMobile:{value:ee,label:"blockLeftPaddingMobile"},unit:{value:ae,label:"blockPaddingUnit"},mUnit:{value:ie,label:"blockPaddingUnitMobile"},tUnit:{value:le,label:"blockPaddingUnitTablet"},deviceType:xe,attributes:t,setAttributes:a,link:{value:oe,label:"blockPaddingLink"}}),React.createElement(Pl,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:ne,label:"blockTopMargin"},valueRight:{value:re,label:"blockRightMargin"},valueBottom:{value:ce,label:"blockBottomMargin"},valueLeft:{value:se,label:"blockLeftMargin"},valueTopTablet:{value:ue,label:"blockTopMarginTablet"},valueRightTablet:{value:pe,label:"blockRightMarginTablet"},valueBottomTablet:{value:be,label:"blockBottomMarginTablet"},valueLeftTablet:{value:de,label:"blockLeftMarginTablet"},valueTopMobile:{value:me,label:"blockTopMarginMobile"},valueRightMobile:{value:ye,label:"blockRightMarginMobile"},valueBottomMobile:{value:he,label:"blockBottomMarginMobile"},valueLeftMobile:{value:fe,label:"blockLeftMarginMobile"},unit:{value:ve,label:"blockMarginUnit"},mUnit:{value:Te,label:"blockMarginUnitMobile"},tUnit:{value:_e,label:"blockMarginUnitTablet"},deviceType:xe,attributes:t,setAttributes:a,link:{value:Se,label:"blockMarginLink"}}));return React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,{tabs:["general","style","advance"]},React.createElement(il,ol,Ge),React.createElement(il,nl,Re,j&&""!==_&&Me,Be),React.createElement(il,BG({},rl,{parentProps:e})))))}),OG=a(139),LG=0,HG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},FG={};FG.locals=OG.a.locals||{},FG.use=function(){return LG++||(UG=we()(OG.a,HG)),FG},FG.unuse=function(){LG>0&&!--LG&&(UG(),UG=null)};var jG=FG,zG=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(jG.use(),()=>{jG.unuse()}),[]);const{className:t,setAttributes:a,attributes:{rating:l,range:i,title:o,displayTitle:n,block_id:s},deviceType:c}=e,u=parseInt(i),p=[];for(let e=1;e<=u;e++)p.push(React.createElement("span",{key:e,className:"uag-star"},"★"));return React.createElement("div",{className:Be()(t,"uagb-editor-preview-mode-"+c.toLowerCase(),"uagb-block-"+s)},n&&React.createElement(ge.RichText,{tagName:"p",placeholder:Object(r.__)("Write a title","ultimate-addons-for-gutenberg"),value:o,className:"uag-star-rating__title",onChange:e=>a({title:e})}),React.createElement("div",{className:"uag-star-rating",title:`${l}/${i}`},p))}),DG=Object(B.memo)(e=>{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i}=t;let o;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};o=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,o)}),NG=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:n,name:r,deviceType:s}=e;Object(B.useEffect)(()=>{he(e)},[l,i,o,s]),Object(B.useEffect)(()=>{ys()},[s]);const c=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{layout:n,layoutTablet:r,layoutMobile:s,rating:c,size:u,sizeMobile:p,sizeTablet:d,align:b,alignTablet:g,alignMobile:m,gap:y,gapTablet:f,gapMobile:h,unmarkedColor:v,color:_,fontFamily:T,fontWeight:C,fontSizeType:S,fontSize:k,fontSizeMobile:w,fontSizeTablet:P,lineHeightType:x,lineHeight:A,lineHeightMobile:G,lineHeightTablet:M,titleColor:R,titleGap:B,titleGapTablet:U,titleGapMobile:E,fontStyle:O,fontTransform:L,fontDecoration:H,letterSpacing:F,letterSpacingTablet:j,letterSpacingMobile:z,letterSpacingType:D,blockTopPadding:N,blockRightPadding:I,blockLeftPadding:V,blockBottomPadding:W,blockTopPaddingTablet:q,blockRightPaddingTablet:Z,blockLeftPaddingTablet:$,blockBottomPaddingTablet:Y,blockTopPaddingMobile:K,blockRightPaddingMobile:J,blockLeftPaddingMobile:X,blockBottomPaddingMobile:Q,blockPaddingUnit:ee,blockPaddingUnitTablet:te,blockPaddingUnitMobile:le,blockTopMargin:ie,blockRightMargin:oe,blockLeftMargin:ne,blockBottomMargin:re,blockTopMarginTablet:se,blockRightMarginTablet:ce,blockLeftMarginTablet:ue,blockBottomMarginTablet:pe,blockTopMarginMobile:de,blockRightMarginMobile:be,blockLeftMarginMobile:ge,blockBottomMarginMobile:me,blockMarginUnit:ye,blockMarginUnitTablet:fe,blockMarginUnitMobile:he,starPosition:ve,starPositionTablet:_e,starPositionMobile:Te,block_id:Ce}=e,Se=us(c,"rating",i),ke=us(B,"titleGap",i),we=us(u,"size",i),Pe=us(y,"gap",i);let xe=b;"full"===b&&(xe="left");const Ae=e=>{let t="";switch(e){case"right":t="flex-end";break;case"center":t="center";break;case"full":t="space-between";break;default:t="flex-start"}return t};function Ge(e){switch(Ae(e)){case"flex-end":return"flex-start";case"center":return"center";case"space-between":return"space-between";default:return"flex-end"}}const Me=100*(Se%1).toFixed(1),Re={"margin-top":Vr(ie,ye),"margin-right":Vr(oe,ye),"margin-bottom":Vr(re,ye),"margin-left":Vr(ne,ye),"padding-top":Vr(N,ee),"padding-right":Vr(I,ee),"padding-bottom":Vr(W,ee),"padding-left":Vr(V,ee)},Be={" .uag-star-rating":{"font-size":Vr(we,"px")}," .uag-star-rating > span":{"margin-right":Vr(Pe,"px"),color:v}," p.uag-star-rating__title.block-editor-rich-text__editable":{"font-size":Vr(k,S),"font-family":T,"font-style":O,"text-decoration":H,"text-transform":L,"font-weight":C,"line-height":Vr(A,x),color:R,"letter-spacing":Vr(F,D)},".wp-block-uagb-star-rating ":{"justify-content":Ae(b),"text-align":xe}};let Ue="margin-right";"stack"===n?"before"===ve?(Ue="margin-top",Be[".wp-block-uagb-star-rating"]={"flex-direction":"column-reverse","align-items":Ae(b),...Re}):"after"===ve&&(Ue="margin-bottom",Be[".wp-block-uagb-star-rating"]={"flex-direction":"column","align-items":Ae(b),...Re}):"inline"===n&&("before"===ve?(Ue="margin-left",Be[".wp-block-uagb-star-rating"]={"flex-direction":"row-reverse","justify-content":Ge(b),...Re}):"after"===ve&&(Ue="margin-right",Be[".wp-block-uagb-star-rating"]={"flex-direction":"row","align-items":"center","justify-content":Ae(b),...Re})),Be[" p.uag-star-rating__title.block-editor-rich-text__editable"][Ue]=Vr(ke,"px"),0!==Me&&(Be[" .uag-star:nth-child("+Math.ceil(Se)+"):before"]={color:_,width:Vr(Me,"%"),position:"absolute",content:"'★'",overflow:"hidden"},Be[" .uag-star:nth-child("+Math.ceil(Se)+")"]={position:"relative"}),Be[" .uag-star:nth-child(-n+"+Math.floor(Se)+")"]={color:_};const Ee={"margin-top":Vr(se,fe),"margin-right":Vr(ce,fe),"margin-bottom":Vr(pe,fe),"margin-left":Vr(ue,fe),"padding-top":Vr(q,te),"padding-right":Vr(Z,te),"padding-bottom":Vr(Y,te),"padding-left":Vr($,te)},Oe={".wp-block-uagb-star-rating ":{"justify-content":Ae(g)}," .uag-star-rating":{"font-size":Vr(d,"px")}," .uag-star-rating > span":{"margin-right":Vr(f,"px")}," .uag-star-rating__title.block-editor-rich-text__editable":{"font-size":Vr(P,S),"line-height":Vr(M,x),"letter-spacing":Vr(j,D)}};let Le="margin-right";"stack"===r?"before"===_e?(Le="margin-top",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"column-reverse","align-items":Ae(g),...Ee}):"after"===_e&&(Le="margin-bottom",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"column","align-items":Ae(g),...Ee}):"inline"===r&&("before"===_e?(Le="margin-left",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"row-reverse","justify-content":Ge(g),...Ee}):"after"===_e&&(Le="margin-right",Oe[".wp-block-uagb-star-rating "]={"flex-direction":"row","align-items":"center","justify-content":Ae(g),...Ee}),Oe[".wp-block-uagb-star-rating p.block-editor-rich-text__editable.uag-star-rating__title "]={"margin-bottom":0});const He={"margin-top":Vr(de,he),"margin-right":Vr(be,he),"margin-bottom":Vr(me,he),"margin-left":Vr(ge,he),"padding-top":Vr(K,le),"padding-right":Vr(J,le),"padding-bottom":Vr(Q,le),"padding-left":Vr(X,le)},Fe={".wp-block-uagb-star-rating ":{"justify-content":Ae(m)}," .uag-star-rating":{"font-size":Vr(p,"px")}," .uag-star-rating > span":{"margin-right":Vr(h,"px")}," .uag-star-rating__title.block-editor-rich-text__editable":{"font-size":Vr(w,S),"line-height":Vr(G,x),"letter-spacing":Vr(z,D)}};let je="margin-right";"stack"===s?"before"===Te?(je="margin-top",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"column-reverse","align-items":Ae(m),...He}):"after"===Te&&(je="margin-bottom",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"column","align-items":Ae(m),...He}):"inline"===s&&("before"===Te?(je="margin-left",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"row-reverse","justify-content":Ge(m),...He}):"after"===Te&&(je="margin-right",Fe[".wp-block-uagb-star-rating "]={"flex-direction":"row","align-items":"center","justify-content":Ae(m),"margin-bottom":0,...He}),Fe[".wp-block-uagb-star-rating p.block-editor-rich-text__editable.uag-star-rating__title "]={"margin-bottom":0}),Oe[" .uag-star-rating__title.block-editor-rich-text__editable"][Le]=Vr(U,"px"),Fe[" .uag-star-rating__title.block-editor-rich-text__editable"][je]=Vr(E,"px");const ze=".editor-styles-wrapper .uagb-block-"+Ce;let De=ae(Be,ze);return"tablet"!==o&&"mobile"!==o||(De+=ae(Oe,""+ze,!0,"tablet"),"mobile"===o&&(De+=ae(Fe,""+ze,!0,"mobile"))),De}(a,0,r,s),[a,s]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),React.createElement(DG,{attributes:a}),t&&React.createElement(EG,e),React.createElement(zG,e))});a(372);var IG=[{attributes:ya,save(e){const{block_id:t,layout:a,title:l,rating:i,range:o}=e.attributes,n=parseInt(o),r=[];for(let e=1;e<=n;e++)r.push(React.createElement("span",{key:e,className:"uag-star"},"★"));return React.createElement("div",{className:Be()(e.className,"uag-star-rating__wrapper","uagb-block-"+t,"uag-star-rating__layout-"+a)},l&&React.createElement(ge.RichText.Content,{tagName:"p",value:l,className:"uag-star-rating__title"}),React.createElement("div",{className:"uag-star-rating",title:`${i}/${o}`},r))}}];let VG={};VG=Object(F.applyFilters)("uagb/star-rating",ss(VG)),Object(de.registerBlockType)("uagb/star-rating",{...VG,title:Object(r.__)("Star Ratings","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display customizable star ratings on your page.","ultimate-addons-for-gutenberg"),icon:se.star_rating,keywords:[Object(r.__)("rating","ultimate-addons-for-gutenberg"),Object(r.__)("star rating","ultimate-addons-for-gutenberg"),Object(r.__)("review","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:ya,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"star-rating"}):React.createElement(NG,e),save:function(e){const{rating:t,block_id:a,title:l,range:i,displayTitle:o}=e.attributes,n=parseInt(i),r=[];for(let e=1;e<=n;e++)r.push(React.createElement("span",{key:e,className:"uag-star"},"★"));return React.createElement("div",{className:Be()(e.className,"uagb-block-"+a)},o&&l&&React.createElement(ge.RichText.Content,{tagName:"p",value:l,className:"uag-star-rating__title"}),React.createElement("div",{className:"uag-star-rating",title:`${t}/${i}`},r))},deprecated:IG});var WG=Object(B.memo)(e=>{let{attributes:t}=e;const{loadGoogleFonts:a,fontFamily:l,fontWeight:i,headingLoadGoogleFonts:o,headingFontFamily:n,headingFontWeight:r}=t;let s,c;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};s=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};c=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,s,c)});function qG(){return(qG=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{align:i,headingAlignment:o,overallAlign:n,disableBullets:s,makeCollapsible:c,initialCollapse:u,icon:p,iconColor:d,bulletColor:b,iconSize:g,smoothScroll:m,smoothScrollOffset:y,smoothScrollOffsetType:f,scrollToTop:h,scrollToTopColor:v,scrollToTopBgColor:_,customWidth:T,widthDesktop:C,widthTablet:S,widthMobile:k,widthTypeMobile:w,widthTypeTablet:P,widthTypeDesktop:x,tColumnsDesktop:A,tColumnsTablet:G,tColumnsMobile:M,backgroundColor:R,linkColor:B,linkHoverColor:U,headingColor:E,paddingTypeMobile:O,paddingTypeTablet:L,paddingTypeDesktop:H,topPadding:F,rightPadding:j,bottomPadding:z,leftPadding:D,topPaddingTablet:N,rightPaddingTablet:I,bottomPaddingTablet:V,leftPaddingTablet:W,topPaddingMobile:q,rightPaddingMobile:Z,bottomPaddingMobile:$,leftPaddingMobile:Y,marginLink:K,paddingLink:J,headingBottom:X,headingBottomTablet:Q,headingBottomMobile:ee,headingBottomType:te,contentPaddingDesktop:ae,contentPaddingTablet:le,contentPaddingMobile:ie,contentPaddingTypeMobile:oe,contentPaddingTypeTablet:ne,contentPaddingTypeDesktop:re,topMargin:se,rightMargin:ce,bottomMargin:ue,leftMargin:pe,topMarginTablet:de,rightMarginTablet:be,bottomMarginTablet:me,leftMarginTablet:ye,topMarginMobile:fe,rightMarginMobile:he,bottomMarginMobile:ve,leftMarginMobile:_e,marginTypeMobile:Te,marginTypeTablet:Se,marginTypeDesktop:ke,loadGoogleFonts:we,fontFamily:Pe,fontWeight:xe,fontSize:Ae,fontSizeType:Ge,fontSizeTablet:Me,fontSizeMobile:Re,lineHeightType:Be,lineHeight:Ue,lineHeightTablet:Oe,lineHeightMobile:He,headingLoadGoogleFonts:Fe,headingFontFamily:ze,headingFontWeight:De,headingFontSize:Ne,headingFontSizeType:Ie,headingFontSizeTablet:Ve,headingFontSizeMobile:We,headingLineHeightType:qe,headingLineHeight:Ze,headingLineHeightTablet:$e,headingLineHeightMobile:Ye,mappingHeaders:Ke,fontStyle:Je,fontTransform:Xe,fontDecoration:Qe,headingFontStyle:et,headingTransform:tt,headingDecoration:at,headingLetterSpacing:lt,headingLetterSpacingTablet:it,headingLetterSpacingMobile:ot,headingLetterSpacingType:nt,letterSpacing:rt,letterSpacingTablet:st,letterSpacingMobile:ct,letterSpacingType:ut,markerView:pt,separatorStyle:dt,separatorColor:bt,separatorHColor:gt,separatorHeight:mt,separatorHeightType:yt,separatorSpace:ft,separatorSpaceTablet:ht,separatorSpaceMobile:vt,separatorSpaceType:_t}=t,Tt="%"===x?100:1e3,Ct="%"===P?100:1e3,St="%"===w?100:1e3;return React.createElement(React.Fragment,null,!T&&React.createElement(ge.BlockControls,null,React.createElement(ge.AlignmentToolbar,{value:i,onChange:e=>{a({align:e})},controls:["left","center","right"]})),React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement("h2",null,Object(r.__)("Choose heading tags to generate table","ultimate-addons-for-gutenberg")),Ke.map((e,t)=>React.createElement(Le.PanelRow,{key:t},React.createElement("label",{htmlFor:"ub_toggle_h"+(t+1)},"H"+(t+1)),React.createElement(Le.ToggleControl,{id:"ub_toggle_h"+(t+1),checked:e,onChange:()=>a({mappingHeaders:[...Ke.slice(0,t),!Ke[t],...Ke.slice(t+1)]})})))),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Overall Alignment","ultimate-addons-for-gutenberg"),data:{value:n,label:"overallAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),!c&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Title Alignment","ultimate-addons-for-gutenberg"),data:{value:o,label:"headingAlignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("List Alignment","ultimate-addons-for-gutenberg"),data:{value:i,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:A,label:"tColumnsDesktop"},tablet:{value:G,label:"tColumnsTablet"},mobile:{value:M,label:"tColumnsMobile"}},min:1,max:10,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Gap Between Lists","ultimate-addons-for-gutenberg"),data:{desktop:{value:ae,label:"contentPaddingDesktop",unit:{value:re,label:"contentPaddingTypeDesktop"}},tablet:{value:le,label:"contentPaddingTablet",unit:{value:ne,label:"contentPaddingTypeTablet"}},mobile:{value:ie,label:"contentPaddingMobile",unit:{value:oe,label:"contentPaddingTypeMobile"}}},min:0,max:100,limitMin:{px:0,"%":0},limitMax:{px:1500,"%":100},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Custom Width","ultimate-addons-for-gutenberg"),checked:T,onChange:()=>a({customWidth:!T}),help:Object(r.__)("Table's width will be auto if this is kept off.","ultimate-addons-for-gutenberg")}),T&&React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:C,label:"widthDesktop",unit:{value:x,label:"widthTypeDesktop"},min:0,max:Tt},tablet:{value:S,label:"widthTablet",unit:{value:P,label:"widthTypeTablet"},min:0,max:Ct},mobile:{value:k,label:"widthMobile",unit:{value:w,label:"widthTypeMobile"},min:0,max:St}},min:0,max:100,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("%","ultimate-addons-for-gutenberg"),unitValue:"%"}],setAttributes:a}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Disable Marker","ultimate-addons-for-gutenberg"),checked:s,onChange:()=>a({disableBullets:!s})}),!s&&React.createElement(Na,{setAttributes:a,label:Object(r.__)("Marker View","ultimate-addons-for-gutenberg"),data:{value:pt,label:"markerView"},className:"uagb-multi-button-alignment-control",options:[{value:"disc",label:Object(r.__)("Bullets","ultimate-addons-for-gutenberg")},{value:"decimal",label:Object(r.__)("Numbers","ultimate-addons-for-gutenberg")}]}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Make Content Collapsible","ultimate-addons-for-gutenberg"),checked:c,onChange:()=>a({makeCollapsible:!c})}),c&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Keep Collapsed Initially","ultimate-addons-for-gutenberg"),checked:u,onChange:()=>a({initialCollapse:!u})}),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:p,onChange:e=>a({icon:e})}),React.createElement(Qa,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),setAttributes:a,value:g,data:{value:g,label:"iconSize"},min:0,max:300,displayUnit:!1})),React.createElement(Pi,{label:Object(r.__)("Separator Style","ultimate-addons-for-gutenberg"),data:{value:dt,label:"separatorStyle"},setAttributes:a,help:"double"===dt&&Object(r.__)("Please set the separator thickness to 3px or more to perceive the Double border.","ultimate-addons-for-gutenberg"),options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")}]})),React.createElement(je,{title:Object(r.__)("Scroll","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Smooth Scroll","ultimate-addons-for-gutenberg"),checked:m,help:Object(r.__)("This will be in action only in Front End.","ultimate-addons-for-gutenberg"),onChange:()=>a({smoothScroll:!m})}),m&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Smooth Scroll Offset","ultimate-addons-for-gutenberg"),setAttributes:a,value:y,data:{value:y,label:"smoothScrollOffset"},min:0,max:1e3,unit:{value:f,label:"smoothScrollOffsetType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]})),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Scroll To Top","ultimate-addons-for-gutenberg"),checked:h,help:Object(r.__)("This will add a scroll to top arrow at the bottom of page.","ultimate-addons-for-gutenberg"),onChange:()=>a({scrollToTop:!h})}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Background","ultimate-addons-for-gutenberg"),colorValue:R||"",data:{value:R,label:"backgroundColor"},setAttributes:a}),React.createElement(Pl,qG({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:F,label:"topPadding"},valueRight:{value:j,label:"rightPadding"},valueBottom:{value:z,label:"bottomPadding"},valueLeft:{value:D,label:"leftPadding"},valueTopTablet:{value:N,label:"topPaddingTablet"},valueRightTablet:{value:I,label:"rightPaddingTablet"},valueBottomTablet:{value:V,label:"bottomPaddingTablet"},valueLeftTablet:{value:W,label:"leftPaddingTablet"},valueTopMobile:{value:q,label:"topPaddingMobile"},valueRightMobile:{value:Z,label:"rightPaddingMobile"},valueBottomMobile:{value:$,label:"bottomPaddingMobile"},valueLeftMobile:{value:Y,label:"leftPaddingMobile"},unit:{value:H,label:"paddingTypeDesktop"},mUnit:{value:O,label:"paddingTypeMobile"},tUnit:{value:L,label:"paddingTypeTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:J,label:"paddingLink"}})),React.createElement(Hi,{setAttributes:a,borderStyleLabel:Object(r.__)("Style","ultimate-addons-for-gutenberg"),borderWidthLabel:Object(r.__)("Width","ultimate-addons-for-gutenberg"),borderRadiusLabel:Object(r.__)("Radius","ultimate-addons-for-gutenberg"),prefix:"overall",attributes:t,deviceType:l,disableBottomSeparator:!0})),React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:E||"",data:{value:E,label:"headingColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Fe,label:"headingLoadGoogleFonts"},fontFamily:{value:ze,label:"headingFontFamily"},fontWeight:{value:De,label:"headingFontWeight"},fontStyle:{value:et,label:"headingFontStyle"},transform:{value:tt,label:"headingTransform"},decoration:{value:at,label:"headingDecoration"},fontSizeType:{value:Ie,label:"headingFontSizeType"},fontSize:{value:Ne,label:"headingFontSize"},fontSizeMobile:{value:We,label:"headingFontSizeMobile"},fontSizeTablet:{value:Ve,label:"headingFontSizeTablet"},lineHeightType:{value:qe,label:"headingLineHeightType"},lineHeight:{value:Ze,label:"headingLineHeight"},lineHeightMobile:{value:Ye,label:"headingLineHeightMobile"},lineHeightTablet:{value:$e,label:"headingLineHeightTablet"},letterSpacing:{value:lt,label:"headingLetterSpacing"},letterSpacingTablet:{value:it,label:"headingLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"headingLetterSpacingMobile"},letterSpacingType:{value:nt,label:"headingLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:X,label:"headingBottom"},tablet:{value:Q,label:"headingBottomTablet"},mobile:{value:ee,label:"headingBottomMobile"}},min:0,max:50,unit:{value:te,label:"headingBottomType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}),c&&React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"iconColor"},setAttributes:a})),React.createElement(je,{title:Object(r.__)("List","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:B||"",data:{value:B,label:"linkColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:U||"",data:{value:U,label:"linkHoverColor"},setAttributes:a}),disableBottomSeparator:!1}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:we,label:"loadGoogleFonts"},fontFamily:{value:Pe,label:"fontFamily"},fontWeight:{value:xe,label:"fontWeight"},fontStyle:{value:Je,label:"fontStyle"},transform:{value:Xe,label:"fontTransform"},decoration:{value:Qe,label:"fontDecoration"},fontSizeType:{value:Ge,label:"fontSizeType"},fontSize:{value:Ae,label:"fontSize"},fontSizeMobile:{value:Re,label:"fontSizeMobile"},fontSizeTablet:{value:Me,label:"fontSizeTablet"},lineHeightType:{value:Be,label:"lineHeightType"},lineHeight:{value:Ue,label:"lineHeight"},lineHeightMobile:{value:He,label:"lineHeightMobile"},lineHeightTablet:{value:Oe,label:"lineHeightTablet"},letterSpacing:{value:rt,label:"letterSpacing"},letterSpacingTablet:{value:st,label:"letterSpacingTablet"},letterSpacingMobile:{value:ct,label:"letterSpacingMobile"},letterSpacingType:{value:ut,label:"letterSpacingType"}}),React.createElement(Pl,qG({},e,{label:Object(r.__)("Inner Content Spacing","ultimate-addons-for-gutenberg"),valueTop:{value:se,label:"topMargin"},valueRight:{value:ce,label:"rightMargin"},valueBottom:{value:ue,label:"bottomMargin"},valueLeft:{value:pe,label:"leftMargin"},valueTopTablet:{value:de,label:"topMarginTablet"},valueRightTablet:{value:be,label:"rightMarginTablet"},valueBottomTablet:{value:me,label:"bottomMarginTablet"},valueLeftTablet:{value:ye,label:"leftMarginTablet"},valueTopMobile:{value:fe,label:"topMarginMobile"},valueRightMobile:{value:he,label:"rightMarginMobile"},valueBottomMobile:{value:ve,label:"bottomMarginMobile"},valueLeftMobile:{value:_e,label:"leftMarginMobile"},unit:{value:ke,label:"marginTypeDesktop"},mUnit:{value:Te,label:"marginTypeMobile"},tUnit:{value:Se,label:"marginTypeTablet"},deviceType:l,attributes:t,setAttributes:a,link:{value:K,label:"marginLink"}})),!s&&React.createElement(hl,{label:Object(r.__)("Marker Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"bulletColor"},setAttributes:a})),h&&React.createElement(je,{title:Object(r.__)("Scroll To Top","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Icon Color","ultimate-addons-for-gutenberg"),colorValue:v||"",data:{value:v,label:"scrollToTopColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:_||"",data:{value:_,label:"scrollToTopBgColor"},setAttributes:a}))),"none"!==dt&&(()=>{const e=[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}];return React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Qa,{label:Object(r.__)("Thickness","ultimate-addons-for-gutenberg"),setAttributes:a,value:mt,data:{value:mt,label:"separatorHeight"},min:0,max:20,unit:{value:yt,label:"separatorHeightType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]}),React.createElement(Ui,{tabs:e,normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:bt||"",data:{value:bt,label:"separatorColor"},setAttributes:a}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:gt||"",data:{value:gt,label:"separatorHColor"},setAttributes:a}),active:"",disableBottomSeparator:!1}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:ft,label:"separatorSpace"},tablet:{value:ht,label:"separatorSpaceTablet"},mobile:{value:vt,label:"separatorSpaceMobile"}},min:0,max:200,unit:{value:_t,label:"separatorSpaceType"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}],setAttributes:a}))})()),React.createElement(il,qG({},rl,{parentProps:e})))))}),YG=function(e){const{mappingHeaders:t,headers:a}=e;return"undefined"!==t&&a&&a.length>0&&a.filter(e=>t[e.tag-1]).length>0?React.createElement("div",{className:"uagb-toc__list-wrap"},(e=>{let t="",a="",l="",i="";const o="
";let n=0;const r={1:0,2:0,3:0,4:0,5:0,6:0};return e.forEach((e,s)=>{const c=e.tag,u=e.content;if(0===s&&(l=c),ct)i+='
    ',n++,r[c]=n;else if(c===t&&c!==a)i+='
  • ',r[c]=n;else if(ca?(i+=o.repeat(e),n=Math.abs(n-e)):c===a&&(i+=o.repeat(e),i+="
  • ")}const p=document.querySelector("iframe[name='editor-canvas']");i+=p?'
  • '+u+"":'
  • '+u+"",t=c}),i+=o.repeat(t),React.createElement("ol",{className:"uagb-toc__list",dangerouslySetInnerHTML:{__html:i}})})((()=>{const e=[];return a.forEach(a=>{t[a.tag-1]&&e.push(a)}),e})())):React.createElement("p",{className:"uagb_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents","ultimate-addons-for-gutenberg"))},KG=a(140),JG=0,XG={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},QG={};QG.locals=KG.a.locals||{},QG.use=function(){return JG++||(ZG=we()(KG.a,XG)),QG},QG.unuse=function(){JG>0&&!--JG&&(ZG(),ZG=null)};var eM=QG,tM=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(eM.use(),()=>{eM.unuse()}),[]);const{headers:t}=e,{attributes:a,setAttributes:l,className:i,deviceType:o,name:n}=e,s=n.replace("uagb/",""),{align:c,makeCollapsible:u,initialCollapse:p,icon:d,tColumnsDesktop:b,mappingHeaders:g,headingTitle:m,separatorStyle:y,block_id:f}=a;Object(B.useEffect)(()=>{if(UAGBTableOfContents){const e=".uagb-block-"+f;UAGBTableOfContents.init(e,a)}},[]);const h=Object(B.useRef)();Object(B.useEffect)(()=>{h.current&&!u&&h.current.classList.contains("uagb-toc__collapse")&&(h.current.classList.remove("uagb-toc__collapse"),UAGBTableOfContents._slideDown(h.current.querySelector(".uagb-toc__list-wrap"),500))},[u]);let v="";return u&&d&&(v=Ce(d,l)),React.createElement("div",{className:Be()(i,"uagb-toc__align-"+c,"uagb-toc__columns-"+us(b,"tColumnsDesktop",s),u&&p?"uagb-toc__collapse":"","uagb-editor-preview-mode-"+o.toLowerCase(),"uagb-block-"+f),ref:h},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title"},React.createElement(ge.RichText,{placeholder:Object(r.__)("Table Of Contents","ultimate-addons-for-gutenberg"),value:m,onChange:e=>l({headingTitle:e}),multiline:!1,onRemove:()=>e.onReplace([])}),v),"none"!==y&&React.createElement("div",{className:"uagb-toc__separator"}),React.createElement(YG,{mappingHeaders:g,headers:t})))});function aM(){return(aM=Object.assign||function(e){for(var t=1;t{const{isSelected:t,setAttributes:a,attributes:l,name:i,clientId:o,attributes:{scrollToTop:r,UAGHideDesktop:s,UAGHideTab:c,UAGHideMob:u,borderStyle:p,borderWidth:d,borderRadius:b,borderColor:g,borderHoverColor:m},deviceType:y}=e;Object(B.useEffect)(()=>{if(null===document.querySelector(".uagb-toc__scroll-top")){const e=document.createElement("div");e.classList.add("uagb-toc__scroll-top"),e.innerHTML='',document.body.appendChild(e)}e.attributes.heading&&""!==e.attributes.heading&&a({headingTitle:e.attributes.heading}),(d||b||g||m||p)&&ue("overall",{label:"borderWidth",value:d},{label:"borderRadius",value:b},{label:"borderColor",value:g},{label:"borderHoverColor",value:m},{label:"borderStyle",value:p},a,l)},[]),Object(B.useEffect)(()=>{he(e)},[s,c,u,y]),Object(B.useEffect)(()=>{ys()},[y]);const f=[];Object(n.useSelect)(e=>{let t=0,a=[];const l=document.querySelector("iframe[name='editor-canvas']");let i;var o,n;l?(i=l.contentDocument.getElementsByClassName("is-root-container"),a=null===(o=i[0])||void 0===o?void 0:o.querySelectorAll("h1, h2, h3, h4, h5, h6")):a=null===(n=document.body.getElementsByClassName("is-root-container")[0])||void 0===n?void 0:n.querySelectorAll("h1, h2, h3, h4, h5, h6");const r=document.querySelectorAll(".uagb-toc-hide-heading");return r&&r.forEach((function(e){const t=e.querySelectorAll("h1, h2, h3, h4, h5, h6");t&&t.forEach((function(e){e.classList.add("uagb-toc-hide-heading")}))})),a&&a.forEach((function(e,a){const l=e;let i;i=!!e.className.includes("uagb-toc-hide-heading");const o=(e=>{if(!e)return e;const 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.textContent),n=l.nodeName.replace(/^H+/,""),r=l.textContent;t=parseInt(n),i||f.push({tag:t,text:r,link:o,content:l.textContent})})),f&&f.forEach((function(e,t){e.level=0;for(let a=t-1;a>=0;a--){const t=f[a];if(t.tag<=e.tag){e.level=t.level,t.tagfunction(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,customWidth:r,makeCollapsible:s,widthDesktop:c,widthTablet:u,widthMobile:p,widthTypeTablet:d,widthTypeMobile:b,widthTypeDesktop:g,tColumnsDesktop:m,tColumnsTablet:y,tColumnsMobile:f,iconColor:h,bulletColor:v,iconSize:_,align:T,overallAlign:C,backgroundColor:S,linkColor:k,linkHoverColor:w,scrollToTopColor:P,scrollToTopBgColor:x,headingColor:A,marginTypeDesktop:G,marginTypeMobile:M,topMargin:R,rightMargin:B,bottomMargin:U,leftMargin:E,topMarginTablet:O,rightMarginTablet:L,bottomMarginTablet:H,leftMarginTablet:F,topMarginMobile:j,rightMarginMobile:z,bottomMarginMobile:D,leftMarginMobile:N,marginTypeTablet:I,vPaddingDesktop:V,hPaddingDesktop:W,vPaddingTablet:q,hPaddingTablet:Z,vPaddingMobile:$,hPaddingMobile:Y,topPadding:K,rightPadding:J,bottomPadding:X,leftPadding:Q,topPaddingTablet:ee,rightPaddingTablet:te,bottomPaddingTablet:le,leftPaddingTablet:ie,topPaddingMobile:oe,rightPaddingMobile:ne,bottomPaddingMobile:re,leftPaddingMobile:se,paddingTypeMobile:ce,paddingTypeTablet:ue,paddingTypeDesktop:pe,headingBottom:de,headingBottomTablet:be,headingBottomMobile:ge,headingBottomType:me,contentPaddingDesktop:ye,contentPaddingTablet:fe,contentPaddingMobile:he,contentPaddingTypeDesktop:ve,contentPaddingTypeTablet:_e,contentPaddingTypeMobile:Te,fontFamily:Ce,fontWeight:Se,fontSize:ke,fontSizeType:we,fontSizeTablet:Pe,fontSizeMobile:xe,lineHeightType:Ae,lineHeight:Ge,lineHeightTablet:Me,lineHeightMobile:Re,headingFontFamily:Be,headingFontWeight:Ue,headingFontSize:Ee,headingFontSizeType:Oe,headingFontSizeTablet:Le,headingFontSizeMobile:He,headingLineHeightType:Fe,headingLineHeight:je,headingLineHeightTablet:ze,headingLineHeightMobile:De,disableBullets:Ne,overallBorderHColor:Ie,fontStyle:Ve,fontTransform:We,fontDecoration:qe,headingFontStyle:Ze,headingTransform:$e,headingDecoration:Ye,headingAlignment:Ke,headingLetterSpacing:Je,headingLetterSpacingTablet:Xe,headingLetterSpacingMobile:Qe,headingLetterSpacingType:et,letterSpacing:tt,letterSpacingTablet:at,letterSpacingMobile:lt,letterSpacingType:it,markerView:ot,separatorStyle:nt,separatorHeight:rt,separatorHeightType:st,separatorSpace:ct,separatorSpaceType:ut,separatorColor:pt,separatorHColor:dt,separatorSpaceTablet:bt,separatorSpaceMobile:gt}=e,mt=us(m,"tColumnsDesktop",i),yt=us(y,"tColumnsTablet",i),ft=us(f,"tColumnsMobile",i),ht=us(c,"widthDesktop",i);let vt={},_t={},Tt={};const Ct=Wr(e,"overall"),St=Wr(e,"overall","tablet"),kt=Wr(e,"overall","mobile"),wt="number"==typeof K?K:V,Pt="number"==typeof X?X:V,xt="number"==typeof Q?Q:W,At="number"==typeof J?J:W,Gt="number"==typeof ee?ee:q,Mt="number"==typeof le?le:q,Rt="number"==typeof ie?ie:Z,Bt="number"==typeof te?te:Z,Ut="number"==typeof oe?oe:$,Et="number"==typeof re?re:$,Ot="number"==typeof se?se:Y,Lt="number"==typeof ne?ne:Y;if(vt={".wp-block-uagb-table-of-contents":{"text-align":C}," .uagb-toc__list-wrap ul li":{"font-size":Vr(ke,we)}," .uagb-toc__list-wrap ol li":{"font-size":Vr(ke,we)}," .uagb-toc__list-wrap li a":{"font-size":Vr(ke,we),"line-height":Vr(Ge,Ae),"font-family":Ce,"font-style":Ve,"text-decoration":qe,"text-transform":We,"font-weight":Se,color:k,"letter-spacing":Vr(tt,it)}," .uagb-toc__title-wrap":{"justify-content":T,"margin-bottom":Vr(de,me)}," .uagb-toc__title":{"justify-content":Ke,"margin-bottom":Vr(de,me),"font-size":Vr(Ee,Oe),"line-height":Vr(je,Fe),"font-family":Be,"font-style":Ze,"text-decoration":Ye,"text-transform":$e,"font-weight":Ue,color:A,"letter-spacing":Vr(Je,et)}," .uagb-toc__list-wrap ol li a:hover":{color:w}," .uagb-toc__wrap":{...Ct,"padding-left":Vr(xt,pe),"padding-right":Vr(At,pe),"padding-top":Vr(wt,pe),"padding-bottom":Vr(Pt,pe),background:S}," .uagb-toc__wrap:hover":{"border-color":Ie}," .uagb-toc__list-wrap ol.uagb-toc__list:first-child":{"margin-left":Vr(E,G),"margin-right":Vr(B,G),"margin-top":Vr(R,G),"margin-bottom":Vr(U,G)}," .uagb-toc__list-wrap > ol.uagb-toc__list li":{color:v}," .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":{"list-style-type":Ne?"none !important":ot+" !important","padding-top":"calc( "+Vr(ye,ve)+" / 2 )","padding-bottom":"calc( "+Vr(ye,ve)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"list-style-type":Ne?"none !important":ot+" !important","padding-top":"calc( "+Vr(ye,ve)+" / 2 )","padding-bottom":"calc( "+Vr(ye,ve)+" / 2 )"}," .uag-toc__collapsible-wrap svg":{width:Vr(_,"px"),height:Vr(_,"px"),fill:h}," svg":{width:Vr(_,"px"),height:Vr(_,"px"),fill:h}},vt[" .uagb-toc__list-wrap"]={"column-count":mt,overflow:"hidden","text-align":T},r&&(vt[" .uagb-toc__wrap"].width=Vr(ht,g)),r&&s&&(vt[" .uagb-toc__title"]["justify-content"]="space-between"),r&&s&&(vt[" .uagb-toc__title"].cursor="pointer"),Ne&&(vt[".wp-block-uagb-table-of-contents ol.uagb-toc__list>li"]={"list-style-type":"none !important"},vt[" .uagb-toc__list"]={"list-style-type":"none !important"},vt[" .uagb-toc__list .uagb-toc__list"]={"list-style-type":"none !important"}),_t={" .uagb-toc__list-wrap ul li":{"font-size":Vr(Pe,we)}," .uagb-toc__list-wrap ol li":{"font-size":Vr(Pe,we)}," .uagb-toc__list-wrap ol li a":{"font-size":Vr(Pe,we),"line-height":Vr(Me,Ae),"letter-spacing":Vr(at,it)}," .uagb-toc__title":{"font-size":Vr(Le,Oe),"line-height":Vr(ze,Fe),"margin-bottom":Vr(be,me),"letter-spacing":Vr(Xe,et)}," .uagb-toc__wrap":{...St,width:Vr(u,d),"padding-left":Vr(Rt,ue),"padding-right":Vr(Bt,ue),"padding-top":Vr(Gt,ue),"padding-bottom":Vr(Mt,ue)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":Vr(F,I),"margin-right":Vr(L,I),"margin-top":Vr(O,I),"margin-bottom":Vr(H,I)}," .uagb-toc__list-wrap":{"column-count":yt,overflow:"hidden","text-align":T}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":Vr(fe,_e)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":Vr(fe,_e)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+Vr(fe,_e)+" / 2 )","padding-bottom":"calc( "+Vr(fe,_e)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+Vr(fe,_e)+" / 2 )","padding-bottom":"calc( "+Vr(fe,_e)+" / 2 )"}},Tt={" .uagb-toc__list-wrap ul li":{"font-size":Vr(xe,we)}," .uagb-toc__list-wrap ol li":{"font-size":Vr(xe,we)}," .uagb-toc__list-wrap ol li a":{"font-size":Vr(xe,we),"line-height":Vr(Re,Ae),"letter-spacing":Vr(lt,it)}," .uagb-toc__title":{"font-size":Vr(He,Oe),"line-height":Vr(De,Fe),"margin-bottom":Vr(ge,me),"letter-spacing":Vr(Qe,et)}," .uagb-toc__wrap":{...kt,width:Vr(p,b),"padding-left":Vr(Ot,ce),"padding-right":Vr(Lt,ce),"padding-top":Vr(Ut,ce),"padding-bottom":Vr(Et,ce)}," .uagb-toc__list-wrap ul.uagb-toc__list:first-child":{"margin-left":Vr(N,M),"margin-right":Vr(z,M),"margin-top":Vr(j,M),"margin-bottom":Vr(D,M)}," .uagb-toc__list-wrap":{"column-count":ft,overflow:"hidden","text-align":T}," .uagb-toc__list-wrap > ol.uagb-toc__list > li:first-child":{"padding-top":Vr(he,Te)}," .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child":{"padding-bottom":Vr(he,Te)}," .uagb-toc__list-wrap ol.uagb-toc__list > li":{"padding-top":"calc( "+Vr(he,Te)+" / 2 )","padding-bottom":"calc( "+Vr(he,Te)+" / 2 )"}," .uagb-toc__list-wrap ul.uagb-toc__list > li":{"padding-top":"calc( "+Vr(he,Te)+" / 2 )","padding-bottom":"calc( "+Vr(he,Te)+" / 2 )"}},"none"!==nt){const e=Vr(xt,pe),t=Vr(At,pe),a=Vr(Rt,ue),l=Vr(Bt,ue),o=Vr(Ot,ce),n=Vr(Lt,ce);vt[" .uagb-toc__separator"]={"border-top-style":nt,"border-top-width":Vr(us(rt,"separatorHeight",i),st),width:"calc( 100% + "+e+" + "+t+")","margin-left":"-"+e,"border-color":pt,"margin-bottom":Vr(us(ct,"separatorSpace",i),ut)},vt[" .uagb-toc__wrap:hover .uagb-toc__separator"]={"border-color":dt},_t[" .uagb-toc__separator"]={width:"calc( 100% + "+a+" + "+l+")","margin-left":"-"+a,"margin-bottom":Vr(us(bt,"separatorSpaceTablet",i),ut)},Tt[" .uagb-toc__separator"]={width:"calc( 100% + "+o+" + "+n+")","margin-left":"-"+o,"margin-bottom":Vr(us(gt,"separatorSpaceMobile",i),ut)}}const Ht=".block-editor-block-list__block .uagb-block-"+n;let Ft=ae(vt,Ht);return"tablet"!==o&&"mobile"!==o||(Ft+=ae(_t,""+Ht,!0,"tablet"),"mobile"===o&&(Ft+=ae(Tt,""+Ht,!0,"mobile"))),""!==P&&(Ft+=".uagb-toc__scroll-top { color: "+P+"; }"),""!==x&&(Ft+=".block-editor-page .uagb-toc__scroll-top.uagb-toc__show-scroll.uagb-toc__show-scroll { background: "+x+"; }"),Ft}(l,0,i,y),[l,y]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:h}),React.createElement(WG,{attributes:l}),t&&React.createElement($G,e),React.createElement(tM,aM({},e,{headers:f})))});class iM extends B.Component{constructor(e){super(e),this.state={headers:e.headers,deregister:null}}componentDidMount(){const e=(t,a)=>(t.map(t=>{const 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),t=()=>{const t=e(Object(n.select)("core/block-editor").getBlocks(),[]);void 0!==t&&t.forEach((e,t)=>{const a=void 0===e.content||""===e.content?"headingId":"anchor",l=void 0===e[a]||""===e[a],i=void 0===e.content||""===e.content?"headingTitle":"content",o=void 0===e[i]||""===e[i],n=!l&&0===e[a].indexOf(t+"-");o||!l&&!n||(e[a]=t+"-"+strip_tags(e[i]).toString().toLowerCase().replace(/( |<.+?>| )/g,"-"),e[a]=e[a].replace(/[^\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s-]/g,""))}),this.setState({headers:t})};t();const a=Object(n.subscribe)(()=>{t()});this.setState({deregister:a})}componentWillUnmount(){this.state.deregister()}componentDidUpdate(e,t){JSON.stringify(this.state.headers)!==JSON.stringify(t.headers)&&this.props.blockProp.setAttributes({headerLinks:JSON.stringify(this.state.headers)})}render(){const{mappingHeaders:e,blockProp:t,style:a}=this.props,{headers:l}=this.state,i=e=>{const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(i(e)):void 0===e.content||""===e.content?e.headingTitle&&t.push(React.createElement("li",{key:e.headingId},React.createElement("a",{href:"#"+e.headingId,dangerouslySetInnerHTML:{__html:e.headingTitle.replace(/(|<\/a>)/g,"")}}))):e.content&&t.push(React.createElement("li",{key:"#"+e.anchor},React.createElement("a",{href:"#"+e.anchor,dangerouslySetInnerHTML:{__html:e.content.replace(/(|<\/a>)/g,"")}})))}),React.createElement("ul",{className:"uagb-toc__list"},t)};return void 0!==typeof e&&l.length>0&&l.filter(t=>e[t.level-1]).length>0?React.createElement("div",{style:a,className:"uagb-toc__list-wrap"},i((t=>{const a=[];for(t.filter(t=>e[t.level-1]).forEach(e=>{let t=a.length-1;if(0===a.length||a[t][0].levele.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]})(l))):t&&React.createElement("p",{className:"ub_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents"))}}var oM=iM;class nM extends B.Component{render(){const{mappingHeaders:e,headers:t}=this.props,a=e=>{const t=[];return e.forEach(l=>{Array.isArray(l)?t.push(a(l)):t.push(React.createElement("li",{key:e.indexOf(l)},React.createElement("a",{href:"#"+l.link,dangerouslySetInnerHTML:{__html:l.text}})))}),React.createElement("ul",{className:"uagb-toc__list"},t)};return void 0!==typeof e&&t&&t.length>0&&t.filter(t=>e[t.tag-1]).length>0?React.createElement("div",{className:"uagb-toc__list-wrap","data-headers":JSON.stringify(t)},a((()=>{const a=[];return t.forEach(t=>{e[t.tag-1]&&a.push(t)}),(t=>{const a=[];for(t.filter(t=>e[t.tag-1]).forEach(e=>{let t=a.length-1;if(0===a.length||a[t][0].tage.tag&&a.length>1;)a[a.length-2].push(a.pop()),t=a.length-1;a[t][0].tag===e.tag&&a[t].push(e)}});a.length>1&&a[a.length-1][0].tag>a[a.length-2][0].tag;)a[a.length-2].push(a.pop());return a[0]})(a)})())):React.createElement("p",{className:"uagb_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents"))}}var rM=nM;class sM extends B.Component{render(){const{mappingHeaders:e,headers:t}=this.props;let a=0,l=0;const i=e=>{const t=[];if("undefined"!==e&&e&&e.length>0)return e.forEach(e=>{Array.isArray(e)?t.push(i(e)):(t.push(React.createElement("li",{key:a},React.createElement("a",{href:"#"+e.link,dangerouslySetInnerHTML:{__html:e.text}}))),a++)}),l++,React.createElement("ul",{key:a+"-"+l,className:"uagb-toc__list"},t)};return"undefined"!=e&&t&&t.length>0&&t.filter(t=>e[t.tag-1]).length>0?React.createElement("div",{className:"uagb-toc__list-wrap"},i((a=>{const l=[];return t.forEach((t,a)=>{e[t.tag-1]&&l.push(t)}),(t=>{const a=[];for(t.filter(t=>e[t.tag-1]).forEach(e=>{let t=a.length-1;if(0===a.length||a[t][0].tage.tag&&a.length>1;)a[a.length-2].push(a.pop()),t=a.length-1;a[t][0].tag===e.tag&&a[t].push(e)}});a.length>1&&a[a.length-1][0].tag>a[a.length-2][0].tag;)a[a.length-2].push(a.pop());return a[0]})(l)})())):React.createElement("p",{className:"uagb_table-of-contents-placeholder"},Object(r.__)("Add a header to begin generating the table of contents"))}}var cM=sM,uM=[{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,scrollToTop:s}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i),id:"uagb-toc-"+l},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),React.createElement(oM,{align:a,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:n&&JSON.parse(n),blockProp:e})))}},{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,scrollToTop:s,smoothScroll:c,makeCollapsible:u,icon:p,initialCollapse:d,smoothScrollOffset:b,smoothScrollDelay:g}=e.attributes;let m="";return u&&p&&(m=React.createElement("span",{className:"uag-toc__collapsible-wrap"},kb(p))),React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i,d?"uagb-toc__collapse":""),"data-scroll":c,"data-offset":b,"data-delay":g,id:"uagb-toc-"+l},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title-wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),m),React.createElement(oM,{align:a,numcolumns:i,scrollToTop:s,mappingHeaders:r,headers:n&&JSON.parse(n),blockProp:e})))}},{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,smoothScroll:s,makeCollapsible:c,icon:u,initialCollapse:p,smoothScrollOffset:d,smoothScrollDelay:b}=e.attributes;let g="";return c&&u&&(g=React.createElement("span",{className:"uag-toc__collapsible-wrap"},kb(u))),React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i,p?"uagb-toc__collapse":"","uagb-block-"+l),"data-scroll":s,"data-offset":d,"data-delay":b},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title-wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),g),React.createElement(rM,{mappingHeaders:r,headers:n&&JSON.parse(n)})))}},{attributes:It,save:function(e){const{className:t}=e,{align:a,block_id:l,tColumns:i,heading:o,headerLinks:n,mappingHeaders:r,smoothScroll:s,makeCollapsible:c,icon:u,initialCollapse:p,smoothScrollOffset:d,smoothScrollDelay:b}=e.attributes;let g="";return c&&u&&(g=React.createElement("span",{className:"uag-toc__collapsible-wrap"},kb(u))),React.createElement("div",{className:Be()(t,"uagb-toc__align-"+a,"uagb-toc__columns-"+i,p?"uagb-toc__collapse":"","uagb-block-"+l),"data-scroll":s,"data-offset":d,"data-delay":b},React.createElement("div",{className:"uagb-toc__wrap"},React.createElement("div",{className:"uagb-toc__title-wrap"},React.createElement(ge.RichText.Content,{value:o,tagName:"div",className:"uagb-toc__title"}),g),React.createElement(cM,{mappingHeaders:r,headers:n&&JSON.parse(n)})))}}];a(373);let pM={};pM=Object(F.applyFilters)("uagb/table-of-contents",ss(pM)),Object(de.registerBlockType)("uagb/table-of-contents",{...pM,title:Object(r.__)("Table Of Contents","ultimate-addons-for-gutenberg"),description:Object(r.__)("Add a table of contents to allow page navigation.","ultimate-addons-for-gutenberg"),icon:se.table_of_contents,keywords:[Object(r.__)("table of contents","ultimate-addons-for-gutenberg"),Object(r.__)("table","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:It,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"table-of-content"}):React.createElement(lM,e),save:()=>null,deprecated:uM}),a(374);const dM=[{defaultAttributes:ga},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"hstyle2"},{label:"tabBodyTopPadding",value:15},{label:"tabBodyRightPadding",value:15},{label:"tabBodyBottomPadding",value:15},{label:"tabBodyLeftPadding",value:0},{label:"tabBorderTopLeftRadius",value:0},{label:"tabBorderTopRightRadius",value:0},{label:"tabBorderBottomLeftRadius",value:0},{label:"tabBorderBottomRightRadius",value:0},{label:"tabBorderStyle",value:"none"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"hstyle3"},{label:"titleAlign",value:"left"},{label:"tabBodyTopPadding",value:""},{label:"tabBodyRightPadding",value:""},{label:"tabBodyBottomPadding",value:""},{label:"tabBodyLeftPadding",value:""},{label:"tabBorderTopLeftRadius",value:0},{label:"tabBorderTopRightRadius",value:0},{label:"tabBorderBottomLeftRadius",value:0},{label:"tabBorderBottomRightRadius",value:0},{label:"tabBorderTopWidth",value:1},{label:"tabBorderRightWidth",value:1},{label:"tabBorderBottomWidth",value:1},{label:"tabBorderLeftWidth",value:1},{label:"tabBorderStyle",value:"solid"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"vstyle6"},{label:"titleAlign",value:"center"},{label:"tabBodyTopPadding",value:""},{label:"tabBodyRightPadding",value:""},{label:"tabBodyBottomPadding",value:""},{label:"tabBodyLeftPadding",value:""},{label:"tabBorderTopLeftRadius",value:4},{label:"tabBorderTopRightRadius",value:4},{label:"tabBorderBottomLeftRadius",value:4},{label:"tabBorderBottomRightRadius",value:4},{label:"tabBorderTopWidth",value:1},{label:"tabBorderRightWidth",value:1},{label:"tabBorderBottomWidth",value:1},{label:"tabBorderLeftWidth",value:1},{label:"tabBorderStyle",value:"solid"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"tabsStyleD",value:"vstyle8"},{label:"titleAlign",value:"center"},{label:"tabBodyTopPadding",value:""},{label:"tabBodyRightPadding",value:""},{label:"tabBodyBottomPadding",value:""},{label:"tabBodyLeftPadding",value:""},{label:"tabBorderTopLeftRadius",value:0},{label:"tabBorderTopRightRadius",value:0},{label:"tabBorderBottomLeftRadius",value:0},{label:"tabBorderBottomRightRadius",value:0},{label:"tabBorderTopWidth",value:1},{label:"tabBorderRightWidth",value:1},{label:"tabBorderBottomWidth",value:1},{label:"tabBorderLeftWidth",value:1},{label:"tabBorderStyle",value:"solid"}],icon:' '}];var bM=Object(F.applyFilters)("uag_tabs_presets",dM);function gM(){return(gM=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,deviceType:l}=e,{tabsStyleD:i,tabsStyleM:o,tabsStyleT:n,tabActiveFrontend:s,tabHeaders:c,headerBgColor:u,headerTextColor:p,activeTabBgColor:d,activeTabTextColor:b,bodyBgColor:g,bodyTextColor:m,tabTitleLeftMargin:y,tabTitleRightMargin:f,tabTitleTopMargin:h,tabTitleBottomMargin:v,tabTitleLeftMarginTablet:_,tabTitleRightMarginTablet:T,tabTitleTopMarginTablet:C,tabTitleBottomMarginTablet:S,tabTitleLeftMarginMobile:k,tabTitleRightMarginMobile:w,tabTitleTopMarginMobile:P,tabTitleBottomMarginMobile:x,tabTitleMarginUnit:A,mobiletabTitleMarginUnit:G,tablettabTitleMarginUnit:M,tabTitleMarginLink:R,tabTitleTopPadding:B,tabTitleRightPadding:U,tabTitleBottomPadding:E,tabTitleLeftPadding:O,tabTitleTopPaddingTablet:L,tabTitleRightPaddingTablet:H,tabTitleBottomPaddingTablet:F,tabTitleLeftPaddingTablet:j,tabTitleTopPaddingMobile:z,tabTitleRightPaddingMobile:D,tabTitleBottomPaddingMobile:N,tabTitleLeftPaddingMobile:I,tabTitlePaddingUnit:V,mobiletabTitlePaddingUnit:W,tablettabTitlePaddingUnit:q,tabTitlePaddingLink:Z,tabBodyLeftMargin:$,tabBodyRightMargin:Y,tabBodyTopMargin:K,tabBodyBottomMargin:J,tabBodyLeftMarginTablet:X,tabBodyRightMarginTablet:Q,tabBodyTopMarginTablet:ee,tabBodyBottomMarginTablet:te,tabBodyLeftMarginMobile:ae,tabBodyRightMarginMobile:le,tabBodyTopMarginMobile:ie,tabBodyBottomMarginMobile:oe,tabBodyMarginUnit:ne,mobiletabBodyMarginUnit:re,tablettabBodyMarginUnit:se,tabBodyMarginLink:ce,tabBodyTopPadding:ue,tabBodyRightPadding:pe,tabBodyBottomPadding:de,tabBodyLeftPadding:be,tabBodyTopPaddingTablet:me,tabBodyRightPaddingTablet:ye,tabBodyBottomPaddingTablet:fe,tabBodyLeftPaddingTablet:he,tabBodyTopPaddingMobile:ve,tabBodyRightPaddingMobile:_e,tabBodyBottomPaddingMobile:Te,tabBodyLeftPaddingMobile:Se,tabBodyPaddingUnit:ke,mobiletabBodyPaddingUnit:we,tablettabBodyPaddingUnit:Pe,tabBodyPaddingLink:xe,titleLoadGoogleFonts:Ae,titleFontFamily:Ge,titleFontWeight:Me,titleFontSizeType:Re,titleFontSize:Be,titleFontSizeMobile:Ue,titleFontSizeTablet:Oe,titleLineHeightType:He,titleLineHeight:Fe,titleLineHeightMobile:ze,titleLineHeightTablet:De,titleLetterSpacing:Ne,titleLetterSpacingTablet:Ie,titleLetterSpacingMobile:Ve,titleLetterSpacingType:We,titleTransform:qe,titleDecoration:Ze,titleAlign:$e,tabAlign:Ye,showIcon:Ke,icon:Je,iconColor:Xe,iconPosition:Qe,iconSpacing:et,iconSpacingTablet:tt,iconSpacingMobile:at,iconSize:lt,iconSizeTablet:it,iconSizeMobile:ot,activeiconColor:nt,titleFontStyle:rt}=t,st=e=>{a({tabActiveFrontend:parseInt(e)})};return React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,(()=>{const e={desktop:[{value:"hstyle1",label:Object(r.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(r.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(r.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(r.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(r.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(r.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(r.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(r.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(r.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(r.__)("Vertical Style 10","ultimate-addons-for-gutenberg")}],tablet:[{value:"hstyle1",label:Object(r.__)("Horizontal Style 1","ultimate-addons-for-gutenberg")},{value:"hstyle2",label:Object(r.__)("Horizontal Style 2","ultimate-addons-for-gutenberg")},{value:"hstyle3",label:Object(r.__)("Horizontal Style 3","ultimate-addons-for-gutenberg")},{value:"hstyle4",label:Object(r.__)("Horizontal Style 4","ultimate-addons-for-gutenberg")},{value:"hstyle5",label:Object(r.__)("Horizontal Style 5","ultimate-addons-for-gutenberg")},{value:"vstyle6",label:Object(r.__)("Vertical Style 6","ultimate-addons-for-gutenberg")},{value:"vstyle7",label:Object(r.__)("Vertical Style 7","ultimate-addons-for-gutenberg")},{value:"vstyle8",label:Object(r.__)("Vertical Style 8","ultimate-addons-for-gutenberg")},{value:"vstyle9",label:Object(r.__)("Vertical Style 9","ultimate-addons-for-gutenberg")},{value:"vstyle10",label:Object(r.__)("Vertical Style 10","ultimate-addons-for-gutenberg")}],mobile:[{value:"stack1",label:Object(r.__)("Stack Style 1","ultimate-addons-for-gutenberg")},{value:"stack2",label:Object(r.__)("Stack Style 2","ultimate-addons-for-gutenberg")},{value:"stack3",label:Object(r.__)("Stack Style 3","ultimate-addons-for-gutenberg")},{value:"stack4",label:Object(r.__)("Stack Style 4","ultimate-addons-for-gutenberg")}]};return React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(ai,{label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{desktop:{value:i,label:"tabsStyleD"},tablet:{value:n,label:"tabsStyleT"},mobile:{value:o,label:"tabsStyleM"}},options:e,setAttributes:a}),React.createElement(Pi,{label:Object(r.__)("Initial Open Tab","ultimate-addons-for-gutenberg"),data:{value:s},onChange:st,options:c.map((e,t)=>({value:t,label:e}))}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Tab Alignment","ultimate-addons-for-gutenberg"),data:{value:Ye,label:"tabAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Text Alignment","ultimate-addons-for-gutenberg"),data:{value:$e,label:"titleAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Icon","ultimate-addons-for-gutenberg"),checked:Ke,onChange:()=>a({showIcon:!Ke})}),Ke&&React.createElement(React.Fragment,null,React.createElement(Mr,{label:Object(r.__)("Tab Icon","ultimate-addons-for-gutenberg"),value:Je,onChange:e=>a({icon:e})}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Icon Position","ultimate-addons-for-gutenberg"),data:{value:Qe,label:"iconPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",label:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(r.__)("Right","ultimate-addons-for-gutenberg")},{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}]})))})(),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:bM,presetInputType:"radioImage"}))),React.createElement(il,nl,(()=>{const l=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:p,data:{value:p,label:"headerTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:u,data:{value:u,label:"headerBgColor"},setAttributes:a})),i=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:b,data:{value:b,label:"activeTabTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:d,data:{value:d,label:"activeTabBgColor"},setAttributes:a}));return React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:l,active:i}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Ae,label:"titleLoadGoogleFonts"},fontFamily:{value:Ge,label:"titleFontFamily"},fontWeight:{value:Me,label:"titleFontWeight"},fontStyle:{value:rt,label:"titleFontStyle"},fontSizeType:{value:Re,label:"titleFontSizeType"},fontSize:{value:Be,label:"titleFontSize"},fontSizeMobile:{value:Ue,label:"titleFontSizeMobile"},fontSizeTablet:{value:Oe,label:"titleFontSizeTablet"},lineHeightType:{value:He,label:"titleLineHeightType"},lineHeight:{value:Fe,label:"titleLineHeight"},lineHeightMobile:{value:ze,label:"titleLineHeightMobile"},lineHeightTablet:{value:De,label:"titleLineHeightTablet"},letterSpacing:{value:Ne,label:"titleLetterSpacing"},letterSpacingTablet:{value:Ie,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:Ve,label:"titleLetterSpacingMobile"},letterSpacingType:{value:We,label:"titleLetterSpacingType"},transform:{value:qe,label:"titleTransform"},decoration:{value:Ze,label:"titleDecoration"}}),React.createElement(Pl,gM({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:h,label:"tabTitleTopMargin"},valueRight:{value:f,label:"tabTitleRightMargin"},valueBottom:{value:v,label:"tabTitleBottomMargin"},valueLeft:{value:y,label:"tabTitleLeftMargin"},valueTopTablet:{value:C,label:"tabTitleTopMarginTablet"},valueRightTablet:{value:T,label:"tabTitleRightMarginTablet"},valueBottomTablet:{value:S,label:"tabTitleBottomMarginTablet"},valueLeftTablet:{value:_,label:"tabTitleLeftMarginTablet"},valueTopMobile:{value:P,label:"tabTitleTopMarginMobile"},valueRightMobile:{value:w,label:"tabTitleRightMarginMobile"},valueBottomMobile:{value:x,label:"tabTitleBottomMarginMobile"},valueLeftMobile:{value:k,label:"tabTitleLeftMarginMobile"},unit:{value:A,label:"tabTitleMarginUnit"},mUnit:{value:G,label:"mobiletabTitleMarginUnit"},tUnit:{value:M,label:"tablettabTitleMarginUnit"},attributes:t,setAttributes:a,link:{value:R,label:"tabTitleMarginLink"}})),React.createElement(Pl,gM({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:B,label:"tabTitleTopPadding"},valueRight:{value:U,label:"tabTitleRightPadding"},valueBottom:{value:E,label:"tabTitleBottomPadding"},valueLeft:{value:O,label:"tabTitleLeftPadding"},valueTopTablet:{value:L,label:"tabTitleTopPaddingTablet"},valueRightTablet:{value:H,label:"tabTitleRightPaddingTablet"},valueBottomTablet:{value:F,label:"tabTitleBottomPaddingTablet"},valueLeftTablet:{value:j,label:"tabTitleLeftPaddingTablet"},valueTopMobile:{value:z,label:"tabTitleTopPaddingMobile"},valueRightMobile:{value:D,label:"tabTitleRightPaddingMobile"},valueBottomMobile:{value:N,label:"tabTitleBottomPaddingMobile"},valueLeftMobile:{value:I,label:"tabTitleLeftPaddingMobile"},unit:{value:V,label:"tabTitlePaddingUnit"},mUnit:{value:W,label:"mobiletabTitlePaddingUnit"},tUnit:{value:q,label:"tablettabTitlePaddingUnit"},attributes:t,setAttributes:a,link:{value:Z,label:"tabTitlePaddingLink"}})))})(),(()=>{if(!Ke)return"";const e=React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Xe,data:{value:Xe,label:"iconColor"},setAttributes:a}),t=React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:nt,data:{value:nt,label:"activeiconColor"},setAttributes:a});return React.createElement(je,{title:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:lt,label:"iconSize"},tablet:{value:it,label:"iconSizeTablet"},mobile:{value:ot,label:"iconSizeMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"active",title:Object(r.__)("Active","ultimate-addons-for-gutenberg")}],normal:e,active:t}),React.createElement(tl,{label:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:et,label:"iconSpacing"},tablet:{value:tt,label:"iconSpacingTablet"},mobile:{value:at,label:"iconSpacingMobile"}},min:0,max:100,displayUnit:!1,setAttributes:a}))})(),React.createElement(je,{title:Object(r.__)("Body","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:m,data:{value:m,label:"bodyTextColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Background Color","ultimate-addons-for-gutenberg"),colorValue:g,data:{value:g,label:"bodyBgColor"},setAttributes:a}),React.createElement(Pl,gM({},e,{label:Object(r.__)("Margin","ultimate-addons-for-gutenberg"),valueTop:{value:K,label:"tabBodyTopMargin"},valueRight:{value:Y,label:"tabBodyRightMargin"},valueBottom:{value:J,label:"tabBodyBottomMargin"},valueLeft:{value:$,label:"tabBodyLeftMargin"},valueTopTablet:{value:ee,label:"tabBodyTopMarginTablet"},valueRightTablet:{value:Q,label:"tabBodyRightMarginTablet"},valueBottomTablet:{value:te,label:"tabBodyBottomMarginTablet"},valueLeftTablet:{value:X,label:"tabBodyLeftMarginTablet"},valueTopMobile:{value:ie,label:"tabBodyTopMarginMobile"},valueRightMobile:{value:le,label:"tabBodyRightMarginMobile"},valueBottomMobile:{value:oe,label:"tabBodyBottomMarginMobile"},valueLeftMobile:{value:ae,label:"tabBodyLeftMarginMobile"},unit:{value:ne,label:"tabBodyMarginUnit"},mUnit:{value:re,label:"mobiletabBodyMarginUnit"},tUnit:{value:se,label:"tablettabBodyMarginUnit"},attributes:t,setAttributes:a,link:{value:ce,label:"tabBodyMarginLink"}})),React.createElement(Pl,gM({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:ue,label:"tabBodyTopPadding"},valueRight:{value:pe,label:"tabBodyRightPadding"},valueBottom:{value:de,label:"tabBodyBottomPadding"},valueLeft:{value:be,label:"tabBodyLeftPadding"},valueTopTablet:{value:me,label:"tabBodyTopPaddingTablet"},valueRightTablet:{value:ye,label:"tabBodyRightPaddingTablet"},valueBottomTablet:{value:fe,label:"tabBodyBottomPaddingTablet"},valueLeftTablet:{value:he,label:"tabBodyLeftPaddingTablet"},valueTopMobile:{value:ve,label:"tabBodyTopPaddingMobile"},valueRightMobile:{value:_e,label:"tabBodyRightPaddingMobile"},valueBottomMobile:{value:Te,label:"tabBodyBottomPaddingMobile"},valueLeftMobile:{value:Se,label:"tabBodyLeftPaddingMobile"},unit:{value:ke,label:"tabBodyPaddingUnit"},mUnit:{value:we,label:"mobiletabBodyPaddingUnit"},tUnit:{value:Pe,label:"tablettabBodyPaddingUnit"},attributes:t,setAttributes:a,link:{value:xe,label:"tabBodyPaddingLink"}}))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"tab",attributes:t,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0}))),React.createElement(il,gM({},rl,{parentProps:e}))))}),fM=a(141),hM=0,vM={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},_M={};_M.locals=fM.a.locals||{},_M.use=function(){return hM++||(mM=we()(fM.a,vM)),_M},_M.unuse=function(){hM>0&&!--hM&&(mM(),mM=null)};var TM=_M;const{updateBlockAttributes:CM,insertBlock:SM,removeBlock:kM}=wp.blockEditor?Object(n.dispatch)("core/block-editor"):Object(n.dispatch)("core/editor"),{getBlockOrder:wM}=wp.blockEditor?Object(n.select)("core/block-editor"):Object(n.select)("core/editor");var PM=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(TM.use(),()=>{TM.unuse()}),[]);const{attributes:t,setAttributes:a,clientId:l,deviceType:i}=e,{tabsStyleD:o,tabsStyleM:s,tabsStyleT:c,tabHeaders:u,tabActive:p,tabAlign:d,showIcon:b,icon:g,iconPosition:m}=t,y=(e,t)=>()=>{e!==t-1&&f(e,e+1)},f=(i,o)=>{const{tabActiveFrontend:r}=t,{getBlock:s}=wp.blockEditor?Object(n.select)("core/block-editor"):Object(n.select)("core/editor"),c=s(l),p=[...u];p.splice(o,1,u[i]),p.splice(i,1,u[o]),a({tabHeaders:p}),r===i+1?a({tabActiveFrontend:o+1}):r===o+1&&a({tabActiveFrontend:i+1}),e.moveTab(c.innerBlocks[i].clientId,o),e.resetTabOrder()};return React.createElement(React.Fragment,null,React.createElement("div",{className:Be()("uagb-editor-preview-mode-"+i.toLowerCase(),"uagb-block-"+l.substr(0,8),"uagb-tabs__wrap",`uagb-tabs__${o}-desktop`,`uagb-tabs__${c}-tablet`,`uagb-tabs__${s}-mobile`)},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d},u.map((n,d)=>{return React.createElement("li",{key:d,className:`uagb-tab ${p===d?"uagb-tabs__active":""} `,id:"uagb-tabs__tab"+d},u.length>0&&React.createElement("div",{className:"uagb-tabs-editor-controls"},0!==d&&React.createElement(Le.Tooltip,{text:Object(r.__)("Move item back","ultimate-addons-for-gutenberg")},React.createElement("span",{role:"button",className:"uagb-tab-item__move-back",onClick:0===d?" ":(h=d,u.length,()=>{h<0||f(h,h-1)}),"aria-disabled":d===u.length,disabled:d===u.length},o.includes("vstyle")&&"Desktop"===i||c.includes("vstyle")&&"Tablet"===i||(s.includes("vstyle")||s.includes("stack"))&&"Mobile"===i?React.createElement(Le.Dashicon,{icon:"arrow-up"}):React.createElement(Le.Dashicon,{icon:"arrow-left"}))),d+1!==u.length&&React.createElement(Le.Tooltip,{text:Object(r.__)("Move item forward","ultimate-addons-for-gutenberg")},React.createElement("span",{role:"button",className:"uagb-tab-item__move-forward",onClick:d===u.length?" ":y(d,u.length),"aria-disabled":d===u.length,disabled:d===u.length},o.includes("vstyle")&&"Desktop"===i||c.includes("vstyle")&&"Tablet"===i||(s.includes("vstyle")||s.includes("stack"))&&"Mobile"===i?React.createElement(Le.Dashicon,{icon:"arrow-down"}):React.createElement(Le.Dashicon,{icon:"arrow-right"}))),React.createElement(Le.Tooltip,{text:Object(r.__)("Remove tab","ultimate-addons-for-gutenberg")},React.createElement("span",{role:"button",tabIndex:d,className:"uagb-tabs__remove",onClick:()=>(i=>{const o=wM(l);kM(o[i],!1),a({tabHeaders:t.tabHeaders.filter((e,t)=>t!==i)}),(e=>{const t=wM(l);a(e),t.forEach(t=>CM(t,e))})({tabActive:0}),e.resetTabOrder()})(d)},React.createElement(Le.Dashicon,{icon:"no"})))),React.createElement("a",{role:"button",tabIndex:d,className:`uagb-tabs__icon-position-${m} uagb-tabs-list`,onClick:()=>{e.updateActiveTab(d)},"data-tab":d},b&&g&&("left"===m||"top"===m)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(g,a)),React.createElement(ge.RichText,{tagName:"p",value:n,onChange:e=>((e,t)=>{const i=wM(l),o=u.map((a,l)=>(t===l&&(a=e),a));a({tabHeaders:o}),CM(i[t],{header:e}),wM(l).forEach(e=>CM(e,{tabHeaders:u}))})(e,d),onSplit:()=>null,placeholder:Object(r.__)("Title…","ultimate-addons-for-gutenberg"),allowedFormats:["core/bold","core/italic"]}),b&&g&&("right"===m||"bottom"===m)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(g,a))));var h}),React.createElement("li",{className:"uagb-tab uagb-tabs__add-tab",role:"presentation",tabIndex:"0",onClick:()=>(()=>{const i=Object(de.createBlock)("uagb/tabs-child");SM(i,t.tabHeaders.length,l),a({tabHeaders:[...t.tabHeaders,"New Tab"]}),e.resetTabOrder()})()},React.createElement(Le.Tooltip,{text:Object(r.__)("Add tab","ultimate-addons-for-gutenberg")},React.createElement(Le.Dashicon,{icon:"plus"})))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks,{template:[["uagb/tabs-child"],["uagb/tabs-child"],["uagb/tabs-child"]],templateLock:!1,allowedBlocks:["uagb/tabs-child"],renderAppender:!1}))))}),xM=Object(L.compose)(Object(n.withDispatch)((e,t,a)=>{let{clientId:l}=t,{select:i}=a;const{getBlock:o}=i("core/block-editor"),{updateBlockAttributes:n,moveBlockToPosition:r}=e("core/block-editor"),s=o(l);return{resetTabOrder(){for(let e=0;e{const{isSelected:t,setAttributes:a,attributes:l,attributes:{tabHeaders:i,borderStyle:o,borderWidth:r,borderRadius:s,borderColor:c,borderHoverColor:u,UAGHideDesktop:p,UAGHideTab:d,UAGHideMob:b},clientId:g,name:m,deviceType:y}=e;Object(B.useEffect)(()=>{(r||s||c||u||o)&&ue("tab",{label:"borderWidth",value:r},{label:"borderRadius",value:s},{label:"borderColor",value:c},{label:"borderHoverColor",value:u},{label:"borderStyle",value:o},a,l)},[]),Object(B.useEffect)(()=>{(()=>{const{updateBlockAttributes:e}=wp.blockEditor?Object(n.dispatch)("core/block-editor"):Object(n.dispatch)("core/editor"),{getBlockOrder:t}=wp.blockEditor?Object(n.select)("core/block-editor"):Object(n.select)("core/editor");t(g).forEach(t=>e(t,{tabHeaders:i}))})(),e.resetTabOrder()},[y,e]),Object(B.useEffect)(()=>{ys()},[y]),Object(B.useEffect)(()=>{he(e)},[p,d,b,y]);const f=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{headerBgColor:n,titleAlign:r,headerTextColor:s,activeTabBgColor:c,activeTabTextColor:u,bodyBgColor:p,bodyTextColor:d,tabTitleTopMargin:b,tabTitleLeftMargin:g,tabTitleRightMargin:m,tabTitleBottomMargin:y,tabTitleTopPadding:f,tabTitleBottomPadding:h,tabTitleLeftPadding:v,tabTitleRightPadding:_,titleFontFamily:T,titleFontWeight:C,titleFontSize:S,titleFontSizeType:k,titleFontSizeMobile:w,titleFontSizeTablet:P,titleLineHeight:x,titleLineHeightType:A,titleLineHeightMobile:G,titleLineHeightTablet:M,titleTransform:R,titleDecoration:B,tabBorderHColor:U,iconColor:E,iconSize:O,iconSizeTablet:L,iconSizeMobile:H,tabBodyLeftMargin:F,tabBodyRightMargin:j,tabBodyTopMargin:z,tabBodyBottomMargin:D,iconSpacing:N,iconSpacingTablet:I,iconSpacingMobile:V,activeiconColor:W,tabTitlePaddingUnit:q,tabTitleMarginUnit:Z,tabBodyPaddingUnit:$,tabBodyMarginUnit:Y,tabTitleTopPaddingTablet:K,tabTitleBottomPaddingTablet:J,tabTitleLeftPaddingTablet:X,tabTitleRightPaddingTablet:Q,tabTitleTopMarginTablet:ee,tabTitleLeftMarginTablet:te,tabTitleRightMarginTablet:le,tabTitleBottomMarginTablet:ie,tablettabTitlePaddingUnit:oe,tablettabTitleMarginUnit:ne,tabTitleTopPaddingMobile:re,tabTitleBottomPaddingMobile:se,tabTitleLeftPaddingMobile:ce,tabTitleRightPaddingMobile:ue,tabTitleTopMarginMobile:pe,tabTitleLeftMarginMobile:de,tabTitleRightMarginMobile:be,tabTitleBottomMarginMobile:ge,mobiletabTitlePaddingUnit:me,mobiletabTitleMarginUnit:ye,tabBodyTopPadding:fe,tabBodyBottomPadding:he,tabBodyLeftPadding:ve,tabBodyRightPadding:_e,tabBodyTopPaddingTablet:Te,tabBodyBottomPaddingTablet:Ce,tabBodyLeftPaddingTablet:Se,tabBodyRightPaddingTablet:ke,tabBodyTopMarginTablet:we,tabBodyLeftMarginTablet:Pe,tabBodyRightMarginTablet:xe,tabBodyBottomMarginTablet:Ae,tablettabBodyPaddingUnit:Ge,tablettabBodyMarginUnit:Me,tabBodyTopPaddingMobile:Re,tabBodyBottomPaddingMobile:Be,tabBodyLeftPaddingMobile:Ue,tabBodyRightPaddingMobile:Ee,tabBodyTopMarginMobile:Oe,tabBodyLeftMarginMobile:Le,tabBodyRightMarginMobile:He,tabBodyBottomMarginMobile:Fe,mobiletabBodyPaddingUnit:je,mobiletabBodyMarginUnit:ze,titleFontStyle:De,tabAlign:Ne,titleLetterSpacing:Ie,titleLetterSpacingTablet:Ve,titleLetterSpacingMobile:We,titleLetterSpacingType:qe}=e,Ze=us(O,"iconSize",i),$e=us(N,"iconSpacing",i),Ye=Wr(e,"tab",""),Ke=Wr(e,"tab","tablet"),Je=Wr(e,"tab","mobile");let Xe={},Qe={},et={};Xe={".uagb-tabs__hstyle1-desktop > .uagb-tabs__panel .uagb-tab":Ye,".uagb-tabs__hstyle1-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__hstyle2-desktop > .uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle2-desktop ul.uagb-tabs__panel":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__hstyle2-desktop > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle3-desktop .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__hstyle3-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__hstyle4-desktop .uagb-tab":{"border-radius":"30px",...Ye},".uagb-tabs__hstyle4-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__hstyle5-desktop":{...Ye},".uagb-tabs__hstyle5-desktop .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__hstyle5-desktop .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__vstyle6-desktop .uagb-tab":Ye,".uagb-tabs__vstyle6-desktop .uagb-tabs__body-wrap":Ye,".uagb-tabs__vstyle7-desktop .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__vstyle7-desktop > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle8-desktop .uagb-tab":{"border-right-width":"0px","border-right":0,outline:0,"border-radius":0,...Ye},".uagb-tabs__vstyle8-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__vstyle9-desktop .uagb-tab":{"border-radius":"30px",...Ye},".uagb-tabs__vstyle9-desktop > .uagb-tabs__body-wrap":Ye,".uagb-tabs__vstyle10-desktop":{...Ye},".uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-desktop .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-bottom-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-bottom":0,outline:0,"border-radius":0,...Ye}," > .uagb-tabs__panel .uagb-tab":{background:n,"text-align":r,"margin-top":Vr(b,Z),"margin-left":Vr(g,Z),"margin-right":Vr(m,Z),"margin-bottom":Vr(y,Z)}," > .uagb-tabs__panel .uagb-tab a":{"padding-top":Vr(f,q),"padding-bottom":Vr(h,q),"padding-left":Vr(v,q),"padding-right":Vr(_,q)}," > .uagb-tabs__panel .uagb-tab a > p":{color:s,"font-family":T,"font-weight":C,"font-size":Vr(S,k),"line-height":Vr(x,A),"letter-spacing":Vr(Ie,qe),"text-transform":R,"text-decoration":B,"font-style":De}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active ":{background:c}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active p":{color:u}," > .uagb-tabs__panel .uagb-tab.uagb-tabs__active .uagb-tabs__icon svg":{fill:W}," > .uagb-tabs__body-wrap ":{background:p,"padding-top":Vr(fe,$),"padding-bottom":Vr(he,$),"padding-left":Vr(ve,$),"padding-right":Vr(_e,$),"margin-top":Vr(z,Y),"margin-left":Vr(F,Y),"margin-right":Vr(j,Y),"margin-bottom":Vr(D,Y)}," > .uagb-tabs__body-wrap > .block-editor-inner-blocks p":{color:d}," .uagb-tabs__icon svg":{height:Vr(Ze,"px"),width:Vr(Ze,"px"),fill:E},".uagb-tabs__wrap > .uagb-tabs__panel .uagb-tab:hover":{"border-color":U},".uagb-tabs__wrap > .uagb-tabs__body-wrap:hover":{"border-color":U}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":Vr($e,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":Vr($e,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":Vr($e,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":Vr($e,"px")}},Xe[" .uagb-tabs__panel"]="left"===Ne?{"margin-right":"auto","margin-left":0}:"right"===Ne?{"margin-left":"auto","margin-right":0}:{margin:"auto"},Qe={".uagb-tabs__hstyle1-tablet > .uagb-tabs__panel .uagb-tab":Ke,".uagb-tabs__hstyle1-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__hstyle2-tablet > .uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle2-tablet ul.uagb-tabs__panel":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__hstyle2-tablet > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle3-tablet .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__hstyle3-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__hstyle4-tablet .uagb-tab":{"border-radius":"30px",...Ke},".uagb-tabs__hstyle4-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__hstyle5-tablet":{...Ke},".uagb-tabs__hstyle5-tablet .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__hstyle5-tablet .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__vstyle6-tablet > .uagb-tabs__panel .uagb-tab":Ke,".uagb-tabs__vstyle6-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__vstyle7-tablet .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__vstyle7-tablet > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle8-tablet > .uagb-tabs__panel .uagb-tab":{"border-right-width":"0px","border-right":0,outline:0,"border-radius":0,...Ke},".uagb-tabs__vstyle8-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__vstyle9-tablet .uagb-tab":{"border-radius":"30px",...Ke},".uagb-tabs__vstyle9-tablet > .uagb-tabs__body-wrap":Ke,".uagb-tabs__vstyle10-tablet":{...Ke},".uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-tablet .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-bottom-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-bottom":0,outline:0,"border-radius":0,...Ke}," .uagb-tabs__icon svg":{height:Vr(L,"px"),width:Vr(L,"px")}," > .uagb-tabs__panel .uagb-tab p":{"font-size":Vr(P,k),"line-height":Vr(M,A),"letter-spacing":Vr(Ve,qe)}," > .uagb-tabs__panel .uagb-tab a":{"padding-top":Vr(K,oe),"padding-bottom":Vr(J,oe),"padding-left":Vr(X,oe),"padding-right":Vr(Q,oe)}," > .uagb-tabs__panel .uagb-tab":{"margin-top":Vr(ee,ne),"margin-left":Vr(te,ne),"margin-right":Vr(le,ne),"margin-bottom":Vr(ie,ne),...Ke}," > .uagb-tabs__body-wrap ":{"padding-top":Vr(Te,Ge),"padding-bottom":Vr(Ce,Ge),"padding-left":Vr(Se,Ge),"padding-right":Vr(ke,Ge),"margin-top":Vr(we,Me),"margin-left":Vr(Pe,Me),"margin-right":Vr(xe,Me),"margin-bottom":Vr(Ae,Me),...Ke}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":Vr(I,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":Vr(I,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":Vr(I,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":Vr(I,"px")}},et={".uagb-tabs__hstyle1-mobile > .uagb-tabs__panel .uagb-tab":Je,".uagb-tabs__hstyle1-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__hstyle2-mobile > .uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle2-mobile ul.uagb-tabs__panel":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__hstyle2-mobile > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__hstyle3-mobile .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Je},".uagb-tabs__hstyle3-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__hstyle4-mobile .uagb-tab":{"border-radius":"30px",...Je},".uagb-tabs__hstyle4-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__hstyle5-mobile":{...Je},".uagb-tabs__hstyle5-mobile .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__hstyle5-mobile .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__vstyle6-mobile .uagb-tab":Je,".uagb-tabs__vstyle6-mobile .uagb-tabs__body-wrap":Je,".uagb-tabs__vstyle7-mobile .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__vstyle7-mobile > .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle8-mobile .uagb-tab":{"border-right-width":"0px","border-right":0,outline:0,"border-radius":0,...Je},".uagb-tabs__vstyle8-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__vstyle9-mobile .uagb-tab":{"border-radius":"30px",...Je},".uagb-tabs__vstyle9-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__vstyle10-mobile":{...Je},".uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-mobile .uagb-tabs__body-wrap":{"border-width":"0px","border-style":"none"},".uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-bottom-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-bottom":0,outline:0,"border-radius":0,...Je},".uagb-tabs__stack1-mobile > .uagb-tabs__panel .uagb-tab":Je,".uagb-tabs__stack1-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__stack2-mobile .uagb-tab":{"border-bottom-width":"0px","border-bottom":0,outline:0,"border-radius":0,...Je},".uagb-tabs__stack2-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__stack3-mobile .uagb-tab":{"border-radius":"30px",...Je},".uagb-tabs__stack3-mobile > .uagb-tabs__body-wrap":Je,".uagb-tabs__stack4-mobile":Je,".uagb-tabs__stack4-mobile .uagb-tab":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-bottom-width":"0px","border-top":0,"border-left":0,"border-right":0,"border-bottom":0,outline:0,"border-radius":0},".uagb-tabs__stack4-mobile .uagb-tab.uagb-tabs__active":{"border-top-width":"0px","border-right-width":"0px","border-left-width":"0px","border-top":0,"border-left":0,"border-right":0,outline:0,"border-radius":0,...Je}," .uagb-tabs__icon svg":{height:Vr(H,"px"),width:Vr(H,"px")}," > .uagb-tabs__panel .uagb-tab p":{"font-size":Vr(w,k),"line-height":Vr(G,A),"letter-spacing":Vr(We,qe)}," > .uagb-tabs__panel .uagb-tab":{"margin-top":Vr(pe,ye),"margin-left":Vr(de,ye),"margin-right":Vr(be,ye),"margin-bottom":Vr(ge,ye),...Je}," > .uagb-tabs__panel .uagb-tab a":{"padding-top":Vr(re,me),"padding-bottom":Vr(se,me),"padding-left":Vr(ce,me),"padding-right":Vr(ue,me)}," > .uagb-tabs__body-wrap ":{"padding-top":Vr(Re,je),"padding-bottom":Vr(Be,je),"padding-left":Vr(Ue,je),"padding-right":Vr(Ee,je),"margin-top":Vr(Oe,ze),"margin-left":Vr(Le,ze),"margin-right":Vr(He,ze),"margin-bottom":Vr(Fe,ze),...Je}," .uagb-tabs__icon-position-left .uagb-tabs__icon ":{"margin-right":Vr(V,"px")}," .uagb-tabs__icon-position-right .uagb-tabs__icon ":{"margin-left":Vr(V,"px")}," .uagb-tabs__icon-position-top .uagb-tabs__icon ":{"margin-bottom":Vr(V,"px")}," .uagb-tabs__icon-position-bottom .uagb-tabs__icon ":{"margin-top":Vr(V,"px")}};const tt=".editor-styles-wrapper .uagb-block-"+t.substr(0,8);let at=ae(Xe,tt);return"tablet"!==o&&"mobile"!==o||(at+=ae(Qe,""+tt,!0,"tablet"),"mobile"===o&&(at+=ae(et,""+tt,!0,"mobile"))),at}(l,g,m,y),[l,y]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:f}),t&&React.createElement(yM,e),React.createElement(PM,e))});const AM=ce("tab");var GM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"stack1",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},...AM,titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}};const MM=ce("tab");var RM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"stack1",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},...MM,titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}};const BM=ce("tab");var UM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"stack1",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},...BM,titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}}};const EM=ce("tab"),OM={block_id:{type:"string"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]},tabActive:{type:"number",default:0},tabActiveFrontend:{type:"number",default:0},tabsStyleD:{type:"string",default:"hstyle1",UAGCopyPaste:{styleType:"tabs-style"}},tabsStyleT:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-tablet"}},tabsStyleM:{type:"string",default:"vstyle6",UAGCopyPaste:{styleType:"tabs-style-mobile"}},headerBgColor:{type:"string",UAGCopyPaste:{styleType:"main-title-bg-color"}},headerTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-color"}},bodyBgColor:{type:"string",UAGCopyPaste:{styleType:"desc-bg-color"}},bodyTextColor:{type:"string",UAGCopyPaste:{styleType:"desc-color"}},borderStyle:{type:"string",default:"solid"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string",default:"#e0e0e0"},borderHoverColor:{type:"string"},activeTabBgColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-color"}},activeTabTextColor:{type:"string",default:"",UAGCopyPaste:{styleType:"main-title-hover-bg-color"}},tabTitleLeftMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin"}},tabTitleRightMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin"}},tabTitleTopMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin"}},tabTitleBottomMargin:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin"}},tabTitleLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-tablet"}},tabTitleRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-tablet"}},tabTitleTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-tablet"}},tabTitleBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-tablet"}},tabTitleLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-margin-mobile"}},tabTitleRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-margin-mobile"}},tabTitleTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-margin-mobile"}},tabTitleBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-margin-mobile"}},tabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-unit-margin"}},mobiletabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-mobile"}},tablettabTitleMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-margin-unit-tablet"}},tabTitleMarginLink:{type:"boolean",default:!1},tabBodyLeftMargin:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin"}},tabBodyRightMargin:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin"}},tabBodyTopMargin:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin"}},tabBodyBottomMargin:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"}},tabBodyLeftMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-tablet"}},tabBodyRightMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-tablet"}},tabBodyTopMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-tablet"}},tabBodyBottomMarginTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},tabBodyLeftMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-margin-mobile"}},tabBodyRightMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-margin-mobile"}},tabBodyTopMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-margin-mobile"}},tabBodyBottomMarginMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},tabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit"}},mobiletabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-mobile"}},tablettabBodyMarginUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-margin-unit-tablet"}},tabBodyMarginLink:{type:"boolean",default:!1},tabBodyVertPadding:{type:"number",UAGCopyPaste:{styleType:"desc-vertical-padding"}},tabBodyHrPadding:{type:"number",UAGCopyPaste:{styleType:"desc-horizontal-padding"}},tabTitleLeftPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding"}},tabTitleRightPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding"}},tabTitleTopPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding"}},tabTitleBottomPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding"}},tabTitleLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-tablet"}},tabTitleRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-tablet"}},tabTitleTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-tablet"}},tabTitleBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-tablet"}},tabTitleLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-left-padding-mobile"}},tabTitleRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-right-padding-mobile"}},tabTitleTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-top-padding-mobile"}},tabTitleBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-bottom-padding-mobile"}},tabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit"}},mobiletabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-mobile"}},tablettabTitlePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-padding-unit-tablet"}},tabTitlePaddingLink:{type:"boolean",default:!1},tabBodyLeftPadding:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},tabBodyRightPadding:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},tabBodyTopPadding:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},tabBodyBottomPadding:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},tabBodyLeftPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},tabBodyRightPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-tablet"}},tabBodyTopPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-tablet"}},tabBodyBottomPaddingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-tablet"}},tabBodyLeftPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},tabBodyRightPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},tabBodyTopPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},tabBodyBottomPaddingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},tabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobiletabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"}},tablettabBodyPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},tabBodyPaddingLink:{type:"boolean",default:!1},tabTitleVertPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-vertical-padding"}},tabTitleHrPadding:{type:"number",UAGCopyPaste:{styleType:"main-title-horizontal-padding"}},titleFontSize:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size"}},titleFontSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-font-unit-size"}},titleFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-tablet"}},titleFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-font-size-mobile"}},titleFontFamily:{type:"string",default:"Default",UAGCopyPaste:{styleType:"main-title-font-family"}},titleFontWeight:{type:"string",UAGCopyPaste:{styleType:"main-title-font-weight"}},titleLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"main-title-line-height-type"}},titleLineHeight:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height"}},titleLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-tablet"}},titleLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-line-height-mobile"}},titleLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"main-title-load-google-fonts"}},titleTransform:{type:"string",default:"normal",UAGCopyPaste:{styleType:"main-title-transform"}},titleDecoration:{type:"string",default:"none",UAGCopyPaste:{styleType:"main-title-decoration"}},tabAlign:{type:"string",default:"left",UAGCopyPaste:{styleType:"overall-alignment"}},titleAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},showIcon:{type:"boolean",default:!1},icon:{type:"string"},iconPosition:{type:"string",default:"left",UAGCopyPaste:{styleType:"tab-icon-position"}},iconSpacing:{type:"string",default:10,UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingTablet:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconSpacingMobile:{type:"string",UAGCopyPaste:{styleType:"tab-icon-spacing"}},iconColor:{type:"string",UAGCopyPaste:{styleType:"icon-color"}},iconSize:{type:"number",default:16,UAGCopyPaste:{styleType:"icon-size"}},iconSizeTablet:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},iconSizeMobile:{type:"number",UAGCopyPaste:{styleType:"icon-size"}},activeiconColor:{type:"string",UAGCopyPaste:{styleType:"icon-hover-color"}},titleFontStyle:{type:"string",UAGCopyPaste:{styleType:"main-title-font-style"},default:"normal"},isPreview:{type:"boolean",default:!1},titleLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},titleLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},titleLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},titleLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},...EM};var LM=[{attributes:OM,save(e){const{className:t}=e,{block_id:a,tabHeaders:l,tabActiveFrontend:i,tabsStyleD:o,tabsStyleT:n,tabsStyleM:r,icon:s,showIcon:c,iconPosition:u}=e.attributes;return React.createElement("div",{className:Be()(t,"uagb-block-"+a,"uagb-tabs__wrap",`uagb-tabs__${o}-desktop`,`uagb-tabs__${n}-tablet`,`uagb-tabs__${r}-mobile`),"data-tab-active":i},React.createElement("ul",{className:"uagb-tabs__panel"},l.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs__icon-position-"+u},c&&("left"===u||"top"===u)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(s)),React.createElement(ge.RichText.Content,{tagName:"span",value:e}),c&&("right"===u||"bottom"===u)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(s)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:OM,save(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":"")},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(c)),React.createElement(ge.RichText.Content,{tagName:"span",value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},kb(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:GM,save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":"")},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:RM,save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d,role:"tablist"},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":""),role:"none"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t,role:"tab"},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:UM,save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d,role:"tablist"},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":""),role:"none"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t,role:"tab"},u&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{tagName:"div",value:e}),u&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))}}];let HM={};HM=Object(F.applyFilters)("uagb/tabs",ss(HM)),Object(de.registerBlockType)("uagb/tabs",{...HM,title:Object(r.__)("Tabs","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your content under different tabs.","ultimate-addons-for-gutenberg"),icon:se.tabs,keywords:[Object(r.__)("tabs","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:ga,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"tabs"}):React.createElement(xM,e),save:function(e){const{attributes:t,className:a}=e,{block_id:l,tabHeaders:i,tabActiveFrontend:o,tabsStyleD:n,tabsStyleT:r,tabsStyleM:s,icon:c,showIcon:u,iconPosition:p,tabAlign:d}=t;return React.createElement("div",{className:Be()(a,"uagb-block-"+l,"uagb-tabs__wrap",`uagb-tabs__${n}-desktop`,`uagb-tabs__${r}-tablet`,`uagb-tabs__${s}-mobile`),"data-tab-active":o},React.createElement("ul",{className:"uagb-tabs__panel uagb-tabs__align-"+d,role:"tablist"},i.map((e,t)=>React.createElement("li",{key:t,className:"uagb-tab "+(o===t?"uagb-tabs__active":""),role:"none"},React.createElement("a",{href:"#uagb-tabs__tab"+t,className:"uagb-tabs-list uagb-tabs__icon-position-"+p,"data-tab":t,role:"tab"},u&&c&&("left"===p||"top"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)),React.createElement(ge.RichText.Content,{tagName:"div",value:e}),u&&c&&("right"===p||"bottom"===p)&&React.createElement("span",{className:"uagb-tabs__icon"},Ce(c)))))),React.createElement("div",{className:"uagb-tabs__body-wrap"},React.createElement(ge.InnerBlocks.Content,null)))},deprecated:LM}),a(375);var FM={isPreview:{type:"boolean",default:!1},block_id:{type:"string"},id:{type:"number",default:0},header:{type:"html"},tabActive:{type:"number"},tabHeaders:{type:"array",default:[Object(r.__)("Tab 1","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 2","ultimate-addons-for-gutenberg"),Object(r.__)("Tab 3","ultimate-addons-for-gutenberg")]}},jM=Object(B.memo)(e=>{const{attributes:t}=e,{tabActive:a,id:l}=t;return React.createElement("div",{className:"uagb-tabs__body-container uagb-inner-tab-"+l,style:{display:l===a?"block":"none"},"aria-labelledby":"uagb-tabs__tab"+l},React.createElement(ge.InnerBlocks,{template:[["core/paragraph",{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."}]],templateLock:!1}))}),zM=Object(L.compose)(ls)(e=>{const{attributes:t,setAttributes:a,clientId:l}=e;return Object(B.useEffect)(()=>{const{getBlockRootClientId:e,getBlockAttributes:i}=Object(n.select)("core/block-editor"),o=i(e(l));null!=o&&o.tabActiveFrontend&&o.tabActiveFrontend!==(null==t?void 0:t.tabActive)&&a({tabActive:o.tabActiveFrontend}),null!==o&&!1!==o.needUpdate&&Object.keys(o).forEach(e=>{"metadata"!==e&&(t[e]=o[e])})},[]),React.createElement(jM,e)}),DM=[{attributes:FM,save(e){const{attributes:t,className:a}=e,{id:l,block_id:i}=t;return React.createElement("div",{className:"uagb-tabs__body-container"},React.createElement("div",{className:Be()(a,"uagb-blocks__"+i,"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab"+l},React.createElement(ge.InnerBlocks.Content,null)))}},{attributes:FM,save(e){const{attributes:t,className:a}=e,{id:l,block_id:i}=t;return React.createElement("div",{className:"uagb-tabs__body-container uagb-tabs__inner-tab uagb-inner-tab-"+l},React.createElement("div",{className:Be()(a,"uagb-blocks__"+i,"uagb-tabs__body"),"aria-labelledby":"uagb-tabs__tab"+l},React.createElement(ge.InnerBlocks.Content,null)))}}];let NM={};NM=Object(F.applyFilters)("uagb/tabs-child",ss(NM)),Object(de.registerBlockType)("uagb/tabs-child",{...NM,title:Object(r.__)("Tabs child","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your content in a tab.","ultimate-addons-for-gutenberg"),parent:["uagb/tabs"],icon:se.tabs_child,keywords:[Object(r.__)("tabs","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0,html:!1},attributes:FM,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"tabs-child",isChildren:!0}):React.createElement(zM,e),save:function(e){const{attributes:t}=e,{id:a}=t;return React.createElement("div",{className:"uagb-tabs__body-container uagb-inner-tab-"+a,"aria-labelledby":"uagb-tabs__tab"+a},React.createElement(ge.InnerBlocks.Content,null))},deprecated:DM}),a(376);var IM=Object(B.memo)(e=>{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,countLoadGoogleFonts:o,countFontFamily:n,countFontWeight:r,listLoadGoogleFonts:s,listFontFamily:c,listFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});const VM=[{defaultAttributes:Jt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:3},{label:"boxShadowVOffset",value:8},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:18},{label:"boxShadowBlur",value:40},{label:"boxShadowSpread",value:-10},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:4},{label:"boxShadowBlur",value:12},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-4",label:Object(r.__)("Preset 4","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:2},{label:"boxShadowBlur",value:5},{label:"boxShadowSpread",value:-1},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-5",label:Object(r.__)("Preset 5","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:50},{label:"boxShadowBlur",value:50},{label:"boxShadowSpread",value:-30},{label:"boxShadowPosition",value:"outset"}],icon:' '},{value:"preset-6",label:Object(r.__)("Preset 6","ultimate-addons-for-gutenberg"),attributes:[{label:"boxShadowHOffset",value:0},{label:"boxShadowVOffset",value:20},{label:"boxShadowBlur",value:30},{label:"boxShadowSpread",value:0},{label:"boxShadowPosition",value:"outset"}],icon:' '}];var WM=Object(F.applyFilters)("uag_taxonomy_presets",VM);function qM(){return(qM=Object.assign||function(e){for(var t=1;t{const{attributes:t,setAttributes:a,taxonomyList:l,termsList:i,deviceType:o}=e,{block_id:n,postType:s,taxonomyType:c,layout:u,columns:p,tcolumns:d,mcolumns:b,bgColor:g,titleColor:m,countColor:y,rowGap:f,rowGapTablet:h,rowGapMobile:v,columnGap:_,columnGapTablet:T,columnGapMobile:C,contentTopPadding:S,contentRightPadding:k,contentBottomPadding:w,contentLeftPadding:P,contentTopPaddingTablet:x,contentRightPaddingTablet:A,contentBottomPaddingTablet:G,contentLeftPaddingTablet:M,contentTopPaddingMobile:R,contentRightPaddingMobile:B,contentBottomPaddingMobile:U,contentLeftPaddingMobile:E,contentPaddingUnit:O,mobileContentPaddingUnit:L,tabletContentPaddingUnit:H,contentPaddingLink:F,titleBottomSpace:j,titleBottomSpaceTablet:z,titleBottomSpaceMobile:D,alignment:N,listStyle:I,listTextColor:V,hoverlistTextColor:W,listBottomMargin:q,listStyleColor:Z,hoverlistStyleColor:$,noTaxDisplaytext:Y,boxShadowColor:K,boxShadowHOffset:J,boxShadowVOffset:X,boxShadowBlur:Q,boxShadowSpread:ee,boxShadowPosition:te,showCount:ae,titleFontSize:le,titleFontSizeType:ie,titleFontSizeMobile:oe,titleFontSizeTablet:ne,titleFontFamily:re,titleFontWeight:se,titleFontStyle:ce,titleLineHeightType:ue,titleLineHeight:pe,titleLineHeightTablet:de,titleLineHeightMobile:be,titleLoadGoogleFonts:me,countFontSize:ye,countFontSizeType:fe,countFontSizeMobile:he,countFontSizeTablet:ve,countFontFamily:_e,countFontWeight:Te,countFontStyle:Se,countLineHeightType:ke,countLineHeight:we,countLineHeightTablet:Pe,countLineHeightMobile:xe,countLoadGoogleFonts:Ae,listFontSize:Ge,listFontSizeType:Me,listFontSizeMobile:Re,listFontSizeTablet:Be,listFontFamily:Ue,listFontWeight:Oe,listFontStyle:He,listLineHeightType:Fe,listLineHeight:ze,listLineHeightTablet:De,listLineHeightMobile:Ne,listLoadGoogleFonts:Ie,showEmptyTaxonomy:Ve,listDisplayStyle:We,showhierarchy:qe,titleTag:Ze,titleTransform:$e,countTransform:Ye,listTransform:Ke,titleDecoration:Je,countDecoration:Xe,listDecoration:Qe,titleLetterSpacing:et,titleLetterSpacingTablet:tt,titleLetterSpacingMobile:at,titleLetterSpacingType:lt,countLetterSpacing:it,countLetterSpacingTablet:ot,countLetterSpacingMobile:nt,countLetterSpacingType:rt,listLetterSpacing:st,listLetterSpacingTablet:ct,listLetterSpacingMobile:ut,listLetterSpacingType:pt,seperatorStyle:dt,seperatorWidth:bt,seperatorThickness:gt,seperatorColor:mt,seperatorHoverColor:yt}=t,ft=Ve?l:i,ht=[{value:"",label:Object(r.__)("Select Taxonomy","ultimate-addons-for-gutenberg")}];""!==ft&&void 0!==ft&&Object.keys(ft).map(e=>ht.push({value:l[e].name,label:l[e].label}));const vt=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:V||"",data:{value:V,label:"listTextColor"},setAttributes:a}),React.createElement("br",null),"none"!==I&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Bullet/Numbers Color","ultimate-addons-for-gutenberg"),colorValue:Z||"",data:{value:Z,label:"listStyleColor"},setAttributes:a}))),_t=React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Text Color","ultimate-addons-for-gutenberg"),colorValue:W||"",data:{value:W,label:"hoverlistTextColor"},setAttributes:a}),React.createElement("br",null),"none"!==I&&React.createElement(React.Fragment,null,React.createElement(hl,{label:Object(r.__)("Bullet/Numbers Color","ultimate-addons-for-gutenberg"),colorValue:$||"",data:{value:$,label:"hoverlistStyleColor"},setAttributes:a}))),Tt=React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Query","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Pi,{label:Object(r.__)("Post Type","ultimate-addons-for-gutenberg"),data:{value:s},onChange:e=>{const t={nonce:uagb_blocks_info.uagb_ajax_nonce};$l({url:uagb_blocks_info.ajax_url,action:"uagb_get_taxonomy",data:t}).then(t=>{a({listInJson:t}),a({postType:e}),a({categories:""}),a({taxonomyType:""})})},options:uagb_blocks_info.post_types}),""!==l&&React.createElement(Pi,{label:Object(r.__)("Taxonomy","ultimate-addons-for-gutenberg"),data:{value:c},onChange:e=>{a({taxonomyType:e}),a({categories:""})},options:ht}),""===l&&React.createElement(Ss,{autoComplete:"off",label:Object(r.__)("Display Message","ultimate-addons-for-gutenberg"),value:Y,data:{value:Y,label:"noTaxDisplaytext"},setAttributes:a,onChange:e=>a({noTaxDisplaytext:e}),help:Object(r.__)("If taxonomy Not Found","ultimate-addons-for-gutenberg")}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Empty Taxonomy","ultimate-addons-for-gutenberg"),checked:Ve,onChange:()=>a({showEmptyTaxonomy:!Ve})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Posts Count","ultimate-addons-for-gutenberg"),checked:ae,onChange:()=>a({showCount:!ae})}),"list"===u&&"list"===We&&"post_tag"!==c&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Show Hierarchy","ultimate-addons-for-gutenberg"),checked:qe,onChange:()=>a({showhierarchy:!qe})})),(()=>{let e=Ze;return""===Ze&&(e="h4","list"===u&&(e="div")),React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Na,{setAttributes:a,label:Object(r.__)("Heading Tag","ultimate-addons-for-gutenberg"),data:{value:e,label:"titleTag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"div",label:Object(r.__)("Div","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:a,label:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),data:{value:u,label:"layout"},className:"uagb-multi-button-alignment-control",options:[{value:"grid",label:"Grid"},{value:"list",label:"List"}],showIcons:!1}),"grid"===u&&React.createElement(tl,{label:Object(r.__)("Columns","ultimate-addons-for-gutenberg"),data:{desktop:{value:p,label:"columns",min:1,max:4},tablet:{value:d,label:"tcolumns",min:1,max:3},mobile:{value:b,label:"mcolumns",min:1,max:2}},min:1,max:4,displayUnit:!1,setAttributes:a}),"list"===u&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Display Style","ultimate-addons-for-gutenberg"),data:{value:We,label:"listDisplayStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"list",label:"List"},{value:"dropdown",label:"Dropdown"}],showIcons:!1})),"grid"===u&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:N,label:"alignment"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0})),"list"===u&&"dropdown"!==We&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:a,label:Object(r.__)("List Style","ultimate-addons-for-gutenberg"),data:{value:I,label:"listStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"disc",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-list-ul")}),tooltip:Object(r.__)("Bullet","ultimate-addons-for-gutenberg")},{value:"decimal",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-list-ol")}),tooltip:Object(r.__)("Numbers","ultimate-addons-for-gutenberg")},{value:"none",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-bars")}),tooltip:Object(r.__)("None","ultimate-addons-for-gutenberg")}],showIcons:!0})))})()),React.createElement(il,nl,"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:me,label:"titleLoadGoogleFonts"},fontFamily:{value:re,label:"titleFontFamily"},fontWeight:{value:se,label:"titleFontWeight"},fontStyle:{value:ce,label:"titleFontStyle"},fontSizeType:{value:ie,label:"titleFontSizeType"},fontSize:{value:le,label:"titleFontSize"},fontSizeMobile:{value:oe,label:"titleFontSizeMobile"},fontSizeTablet:{value:ne,label:"titleFontSizeTablet"},lineHeightType:{value:ue,label:"titleLineHeightType"},lineHeight:{value:pe,label:"titleLineHeight"},lineHeightMobile:{value:be,label:"titleLineHeightMobile"},lineHeightTablet:{value:de,label:"titleLineHeightTablet"},transform:{value:$e,label:"titleTransform"},decoration:{value:Je,label:"titleDecoration"},letterSpacing:{value:et,label:"titleLetterSpacing"},letterSpacingTablet:{value:tt,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:at,label:"titleLetterSpacingMobile"},letterSpacingType:{value:lt,label:"titleLetterSpacingType"}}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:m||"",data:{value:m,label:"titleColor"},setAttributes:a}),ae&&React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:j,label:"titleBottomSpace"},tablet:{value:z,label:"titleBottomSpaceTablet"},mobile:{value:D,label:"titleBottomSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:a})),"grid"===u&&"dropdown"!==We&&ae&&React.createElement(je,{title:Object(r.__)("Count","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:y||"",data:{value:y,label:"countColor"},setAttributes:a}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Ae,label:"countLoadGoogleFonts"},fontFamily:{value:_e,label:"countFontFamily"},fontWeight:{value:Te,label:"countFontWeight"},fontStyle:{value:Se,label:"countFontStyle"},fontSizeType:{value:fe,label:"countFontSizeType"},fontSize:{value:ye,label:"countFontSize"},fontSizeMobile:{value:he,label:"countFontSizeMobile"},fontSizeTablet:{value:ve,label:"countFontSizeTablet"},lineHeightType:{value:ke,label:"countLineHeightType"},lineHeight:{value:we,label:"countLineHeight"},lineHeightMobile:{value:xe,label:"countLineHeightMobile"},lineHeightTablet:{value:Pe,label:"countLineHeightTablet"},transform:{value:Ye,label:"countTransform"},decoration:{value:Xe,label:"countDecoration"},letterSpacing:{value:it,label:"countLetterSpacing"},letterSpacingTablet:{value:ot,label:"countLetterSpacingTablet"},letterSpacingMobile:{value:nt,label:"countLetterSpacingMobile"},letterSpacingType:{value:rt,label:"countLetterSpacingType"}})),"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:g||"",data:{value:g,label:"bgColor"},setAttributes:a})),"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:a,prefix:"overall",attributes:t,deviceType:o,disableBottomSeparator:!0,disabledBorderTitle:!0})),"grid"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:a,presets:WM,presetInputType:"radioImage"}),React.createElement(vl,{blockId:n,setAttributes:a,label:Object(r.__)("Box Shadow","ultimate-addons-for-gutenberg"),boxShadowColor:{value:K,label:"boxShadowColor",title:Object(r.__)("Color","ultimate-addons-for-gutenberg")},boxShadowHOffset:{value:J,label:"boxShadowHOffset",title:Object(r.__)("Horizontal","ultimate-addons-for-gutenberg")},boxShadowVOffset:{value:X,label:"boxShadowVOffset",title:Object(r.__)("Vertical","ultimate-addons-for-gutenberg")},boxShadowBlur:{value:Q,label:"boxShadowBlur",title:Object(r.__)("Blur","ultimate-addons-for-gutenberg")},boxShadowSpread:{value:ee,label:"boxShadowSpread",title:Object(r.__)("Spread","ultimate-addons-for-gutenberg")},boxShadowPosition:{value:te,label:"boxShadowPosition",title:Object(r.__)("Position","ultimate-addons-for-gutenberg")}})),"list"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("List","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:t,setAttributes:a,loadGoogleFonts:{value:Ie,label:"listLoadGoogleFonts"},fontFamily:{value:Ue,label:"listFontFamily"},fontWeight:{value:Oe,label:"listFontWeight"},fontStyle:{value:He,label:"listFontStyle"},fontSizeType:{value:Me,label:"listFontSizeType"},fontSize:{value:Ge,label:"listFontSize"},fontSizeMobile:{value:Re,label:"listFontSizeMobile"},fontSizeTablet:{value:Be,label:"listFontSizeTablet"},lineHeightType:{value:Fe,label:"listLineHeightType"},lineHeight:{value:ze,label:"listLineHeight"},lineHeightMobile:{value:Ne,label:"listLineHeightMobile"},lineHeightTablet:{value:De,label:"listLineHeightTablet"},transform:{value:Ke,label:"listTransform"},decoration:{value:Qe,label:"listDecoration"},letterSpacing:{value:st,label:"listLetterSpacing"},letterSpacingTablet:{value:ct,label:"listLetterSpacingTablet"},letterSpacingMobile:{value:ut,label:"listLetterSpacingMobile"},letterSpacingType:{value:pt,label:"listLetterSpacingType"}}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:vt,hover:_t,disableBottomSeparator:!0})),"list"===u&&"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Separator","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pi,{label:Object(r.__)("Separator Style","ultimate-addons-for-gutenberg"),data:{value:dt,label:"seperatorStyle"},setAttributes:a,options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"solid",label:Object(r.__)("Solid","ultimate-addons-for-gutenberg")},{value:"dotted",label:Object(r.__)("Dotted","ultimate-addons-for-gutenberg")},{value:"dashed",label:Object(r.__)("Dashed","ultimate-addons-for-gutenberg")},{value:"double",label:Object(r.__)("Double","ultimate-addons-for-gutenberg")},{value:"groove",label:Object(r.__)("Groove","ultimate-addons-for-gutenberg")},{value:"inset",label:Object(r.__)("Inset","ultimate-addons-for-gutenberg")},{value:"outset",label:Object(r.__)("Outset","ultimate-addons-for-gutenberg")},{value:"ridge",label:Object(r.__)("Ridge","ultimate-addons-for-gutenberg")}]}),"none"!==dt&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Separator Width (%)","ultimate-addons-for-gutenberg"),value:bt,min:0,max:100,setAttributes:a,data:{value:bt,label:"seperatorWidth"},displayUnit:!1}),React.createElement(Qa,{label:Object(r.__)("Separator Thickness","ultimate-addons-for-gutenberg"),value:gt,min:0,max:20,setAttributes:a,data:{value:gt,label:"seperatorThickness"},displayUnit:!1}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:mt||"",data:{value:mt,label:"seperatorColor"},setAttributes:a}),React.createElement(hl,{label:Object(r.__)("Hover Color","ultimate-addons-for-gutenberg"),colorValue:yt||"",data:{value:yt,label:"seperatorHoverColor"},setAttributes:a}))),"dropdown"!==We&&React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},"grid"===u&&React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Row Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:f,label:"rowGap"},tablet:{value:h,label:"rowGapTablet"},mobile:{value:v,label:"rowGapMobile"}},min:1,max:50,displayUnit:!1,setAttributes:a}),React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:_,label:"columnGap"},tablet:{value:T,label:"columnGapTablet"},mobile:{value:C,label:"columnGapMobile"}},min:1,max:50,displayUnit:!1,setAttributes:a}),React.createElement(Pl,qM({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:S,label:"contentTopPadding"},valueRight:{value:k,label:"contentRightPadding"},valueBottom:{value:w,label:"contentBottomPadding"},valueLeft:{value:P,label:"contentLeftPadding"},valueTopTablet:{value:x,label:"contentTopPaddingTablet"},valueRightTablet:{value:A,label:"contentRightPaddingTablet"},valueBottomTablet:{value:G,label:"contentBottomPaddingTablet"},valueLeftTablet:{value:M,label:"contentLeftPaddingTablet"},valueTopMobile:{value:R,label:"contentTopPaddingMobile"},valueRightMobile:{value:B,label:"contentRightPaddingMobile"},valueBottomMobile:{value:U,label:"contentBottomPaddingMobile"},valueLeftMobile:{value:E,label:"contentLeftPaddingMobile"},unit:{value:O,label:"contentPaddingUnit"},mUnit:{value:L,label:"mobileContentPaddingUnit"},tUnit:{value:H,label:"tabletContentPaddingUnit"},deviceType:o,attributes:t,setAttributes:a,link:{value:F,label:"contentPaddingLink"}}))),"list"===u&&React.createElement(Qa,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),setAttributes:a,value:q,data:{value:q,label:"listBottomMargin"},min:0,max:100,displayUnit:!1})),"list"===u&&"dropdown"===We&&React.createElement("p",{className:"uagb-settings-notice"},Object(r.__)("There is no style available for the currently selected layout.","ultimate-addons-for-gutenberg"))),React.createElement(il,qM({},rl,{parentProps:e}))));return React.createElement(React.Fragment,null,Tt)}),YM=a(142),KM=0,JM={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},XM={};XM.locals=YM.a.locals||{},XM.use=function(){return KM++||(ZM=we()(YM.a,JM)),XM},XM.unuse=function(){KM>0&&!--KM&&(ZM(),ZM=null)};var QM=XM,eR=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(QM.use(),()=>{QM.unuse()}),[]);const{categoriesList:t,attributes:a,deviceType:l}=e,{layout:i,seperatorStyle:o,noTaxDisplaytext:n,showCount:s,listDisplayStyle:c,titleTag:u,block_id:p,showEmptyTaxonomy:d,taxonomyType:b}=a,g="post_tag"!==b&&a.showhierarchy;let m;"grid"===i?m=u||"h4":"list"===i&&(m=u||"div");const y={per_page:-1,hide_empty:!d,context:"view"},{records:f}=Object(be.useEntityRecords)("taxonomy",b,y),h=e=>null!=f&&f.length?null===e?f:f.filter(t=>{let{parent:a}=t;return a===e}):[],v=e=>e?Object(Zw.decodeEntities)(e).trim():Object(r.__)("(Untitled)","ultimate-addons-for-gutenberg"),_=e=>{const t=h(e.id),{id:a,link:l,count:i,name:n}=e;return 0===e.parent&&!g||"post_tag"===b?React.createElement("li",{key:a,className:"uagb-tax-list"},React.createElement(m,{class:"uagb-tax-link-wrap"},React.createElement("a",{className:"uagb-tax-link",href:l,target:"_blank",rel:"noreferrer noopener"},v(n)),s&&` (${i})`),"none"!==o&&React.createElement("div",{className:"uagb-tax-separator"})):g?React.createElement("li",{key:a,className:"uagb-tax-list"},React.createElement(m,{class:"uagb-tax-link-wrap"},React.createElement("a",{className:"uagb-tax-link",href:l,target:"_blank",rel:"noreferrer noopener"},v(n)),s&&` (${i})`),"none"!==o&&React.createElement("div",{className:"uagb-tax-separator"}),g&&!!t.length&&React.createElement("ul",{className:"uagb-taxonomy-list-children"},t.map(e=>_(e)))):void 0};return t.length?React.createElement("div",{className:Z(["uagb-taxonomy__outer-wrap","uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-layout-"+i,"uagb-block-"+p])},"grid"===i&&t.map((e,t)=>React.createElement("div",{className:"uagb-taxomony-box",key:t},React.createElement("a",{className:"uagb-tax-link",href:e.link},React.createElement(m,{className:"uagb-tax-title",dangerouslySetInnerHTML:{__html:e.name}}),s&&React.createElement(React.Fragment,null,e.count," ",e.count>"1"?e.singular_name+"s":e.singular_name)))),"list"===i&&"list"===c&&React.createElement("ul",{className:"uagb-list-wrap"},h(g?0:null).map(e=>_(e))),"list"===i&&"dropdown"===c&&React.createElement("select",{className:"uagb-list-dropdown-wrap"},t.map((e,t)=>React.createElement("option",{key:t,value:e.link},Object(Zw.decodeEntities)(e.name),s&&` (${e.count})`)))):React.createElement("div",{className:Z(["uagb-taxonomy__outer-wrap","uagb-editor-preview-mode-"+l.toLowerCase(),"uagb-layout-"+i,"uagb-block-"+p])},React.createElement("div",{className:"uagb-tax-not-available"},n))});function tR(){return(tR=Object.assign||function(e){for(var t=1;t{const{isSelected:t,attributes:a,attributes:{postType:l,taxonomyType:i,showEmptyTaxonomy:o,listInJson:r=null,borderStyle:s,borderThickness:c,borderRadius:u,borderColor:p,borderHoverColor:d,overallBorderTopWidth:b,overallBorderLeftWidth:g,overallBorderRightWidth:m,overallBorderBottomWidth:y,overallBorderTopLeftRadius:f,overallBorderTopRightRadius:h,overallBorderBottomLeftRadius:v,overallBorderBottomRightRadius:_,overallBorderColor:T,overallBorderHColor:C,overallBorderStyle:S,UAGHideDesktop:k,UAGHideTab:w,UAGHideMob:P},setAttributes:x,name:A,deviceType:G}=e;let M=[];const{taxonomyList:R,termsList:U}=Object(n.useSelect)(e=>{const t=null!==r?r.data:"",a=""!==t?t[l]:"undefined",n=o?"with_empty_taxonomy":"without_empty_taxonomy";return void 0!==a&&void 0!==a[n]&&void 0!==a[n][i]&&(M=a[n][i]),{categoriesList:M,taxonomyList:void 0!==a?a.taxonomy:[],termsList:void 0!==a?a.terms:[]}});Object(B.useEffect)(()=>{if(!r){const e={nonce:uagb_blocks_info.uagb_ajax_nonce};$l({url:uagb_blocks_info.ajax_url,action:"uagb_get_taxonomy",data:e}).then(e=>{x({listInJson:e})})}c&&(void 0===b&&x({overallBorderTopWidth:c}),void 0===g&&x({overallBorderLeftWidth:c}),void 0===m&&x({overallBorderRightWidth:c}),void 0===y&&x({overallBorderBottomWidth:c})),u&&(void 0===f&&x({overallBorderTopLeftRadius:u}),void 0===h&&x({overallBorderTopRightRadius:u}),void 0===v&&x({overallBorderBottomLeftRadius:u}),void 0===_&&x({overallBorderBottomRightRadius:u})),p&&void 0===T&&x({overallBorderColor:p}),d&&void 0===C&&x({overallBorderHColor:d}),s&&void 0===S&&x({overallBorderStyle:s})},[]),Object(B.useEffect)(()=>{he(e)},[k,w,P,G]),Object(B.useEffect)(()=>{ys()},[G]);const E=Object(B.useMemo)(()=>function(e,t,a){const l=t.replace("uagb/",""),i=a.toLowerCase(),{block_id:o,columns:n,tcolumns:r,mcolumns:s,bgColor:c,titleColor:u,countColor:p,rowGap:d,rowGapTablet:b,rowGapMobile:g,columnGap:m,columnGapTablet:y,columnGapMobile:f,contentTopPadding:h,contentRightPadding:v,contentBottomPadding:_,contentLeftPadding:T,contentTopPaddingTablet:C,contentRightPaddingTablet:S,contentBottomPaddingTablet:k,contentLeftPaddingTablet:w,contentTopPaddingMobile:P,contentRightPaddingMobile:x,contentBottomPaddingMobile:A,contentLeftPaddingMobile:G,contentPaddingUnit:M,mobileContentPaddingUnit:R,tabletContentPaddingUnit:B,titleBottomSpace:U,titleBottomSpaceTablet:E,titleBottomSpaceMobile:O,alignment:L,listStyle:H,seperatorHoverColor:F,listTextColor:j,hoverlistTextColor:z,listBottomMargin:D,listStyleColor:N,hoverlistStyleColor:I,boxShadowColor:V,boxShadowHOffset:W,boxShadowVOffset:q,boxShadowBlur:Z,boxShadowSpread:$,boxShadowPosition:Y,titleFontSize:K,titleFontSizeType:J,titleFontSizeMobile:X,titleFontSizeTablet:Q,titleFontFamily:ee,titleFontWeight:te,titleLineHeightType:le,titleLineHeight:ie,titleLineHeightTablet:oe,titleLineHeightMobile:ne,countFontSize:re,countFontSizeType:se,countFontSizeMobile:ce,countFontSizeTablet:ue,countFontFamily:pe,countFontWeight:de,countLineHeightType:be,countLineHeight:ge,countLineHeightTablet:me,countLineHeightMobile:ye,listFontSize:fe,listFontSizeType:he,listFontSizeMobile:ve,listFontSizeTablet:_e,listFontFamily:Te,listFontWeight:Ce,listLineHeightType:Se,listLineHeight:ke,listLineHeightTablet:we,listLineHeightMobile:Pe,overallBorderHColor:xe,titleFontStyle:Ae,countFontStyle:Ge,listFontStyle:Me,titleTransform:Re,countTransform:Be,listTransform:Ue,titleDecoration:Ee,countDecoration:Oe,listDecoration:Le,titleLetterSpacing:He,titleLetterSpacingTablet:Fe,titleLetterSpacingMobile:je,titleLetterSpacingType:ze,countLetterSpacing:De,countLetterSpacingTablet:Ne,countLetterSpacingMobile:Ie,countLetterSpacingType:Ve,listLetterSpacing:We,listLetterSpacingTablet:qe,listLetterSpacingMobile:Ze,listLetterSpacingType:$e,seperatorStyle:Ye,seperatorWidth:Ke,seperatorThickness:Je,seperatorColor:Xe}=e,Qe=us(D,"listBottomMargin",l),et=us(n,"columns",l),tt=us(r,"tcolumns",l),at=us(s,"mcolumns",l),lt=us(U,"titleBottomSpace",l),it=us(d,"rowGap",l),ot=us(m,"columnGap",l),nt=Wr(e,"overall",""),rt=Wr(e,"overall","tablet"),st=Wr(e,"overall","mobile");let ct={},ut={},pt={},dt=Y;"outset"===Y&&(dt=""),ct={".uagb-taxonomy__outer-wrap.uagb-layout-grid":{display:"grid","grid-template-columns":"repeat("+et+", 1fr)","grid-column-gap":Vr(ot,"px"),"grid-row-gap":Vr(it,"px")},".uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(h,M),"padding-bottom":Vr(_,M),"padding-left":Vr(T,M),"padding-right":Vr(v,M),"background-color":c,"text-align":L,"box-shadow":Vr(W,"px")+" "+Vr(q,"px")+" "+Vr(Z,"px")+" "+Vr($,"px")+" "+V+" "+dt},".uagb-layout-grid .uagb-tax-link":{color:p,"font-size":Vr(re,se),"font-family":pe,"font-weight":de,"line-height":Vr(ge,be),"font-style":Ge,"text-decoration":Oe,"text-transform":Be,"letter-spacing":Vr(De,Ve),"pointer-events":"none"},".uagb-layout-grid .uagb-tax-title":{color:u,"margin-top":"0","margin-bottom":Vr(lt,"px"),"font-size":Vr(K,J),"font-family":ee,"font-weight":te,"line-height":Vr(ie,le),"font-style":Ae,"text-decoration":Ee,"text-transform":Re,"letter-spacing":Vr(He,ze)},".uagb-layout-list .uagb-tax-list":{"list-style":H,color:N,"font-size":Vr(fe,he),"font-family":Te,"font-weight":Ce,"line-height":Vr(ke,Se),"font-style":Me,"text-decoration":Le,"text-transform":Ue,"letter-spacing":Vr(We,$e)},".uagb-layout-list .uagb-tax-list:hover":{color:I},".uagb-layout-list .uagb-tax-link-wrap:hover":{color:I},".uagb-layout-list .uagb-tax-list a.uagb-tax-link":{color:j},".uagb-layout-list .uagb-tax-list a.uagb-tax-link:hover":{color:z},".uagb-layout-list .uagb-tax-list .uagb-tax-link-wrap":{"margin-bottom":Vr(Qe,"px")}," .uagb-taxonomy-wrap.uagb-layout-grid":{display:"grid","grid-template-columns":"repeat("+et+", 1fr)","grid-column-gap":Vr(ot,"px"),"grid-row-gap":Vr(it,"px")}," .uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(h,M),"padding-bottom":Vr(_,M),"padding-left":Vr(T,M),"padding-right":Vr(v,M),"background-color":c,"text-align":L,"box-shadow":Vr(W,"px")+" "+Vr(q,"px")+" "+Vr(Z,"px")+" "+Vr($,"px")+" "+V+" "+dt}," .uagb-layout-grid .uagb-tax-title":{color:u,"margin-top":"0","margin-bottom":Vr(lt,"px"),"font-size":Vr(K,J),"font-family":ee,"font-weight":te,"line-height":Vr(ie,le),"font-style":Ae,"text-decoration":Ee,"text-transform":Re}," .uagb-layout-grid .uagb-tax-link":{color:p,"font-size":Vr(re,se),"font-family":pe,"font-weight":de,"line-height":Vr(ge,be),"font-style":Ge,"text-decoration":Oe,"text-transform":Be}," .uagb-layout-list .uagb-tax-list":{"list-style":H,color:N,"font-size":Vr(fe,he),"font-family":Te,"font-weight":Ce,"line-height":Vr(ke,Se),"font-style":Me,"text-decoration":Le,"text-transform":Ue}," .uagb-layout-list .uagb-tax-list:hover":{color:I}," .uagb-layout-list .uagb-tax-list a.uagb-tax-link":{color:j}," .uagb-layout-list .uagb-tax-list a.uagb-tax-link:hover":{color:z}," .uagb-layout-list .uagb-tax-list .uagb-tax-link-wrap":{"margin-bottom":Vr(Qe,"px")}},"none"!==Ye&&(ct[" .uagb-layout-list .uagb-tax-separator"]={"border-top-color":Xe,"border-top-style":Ye,"border-top-width":Vr(Je,"px"),width:Vr(Ke,"%")},ct[" .uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F},ct[".uagb-layout-list .uagb-tax-separator"]={"border-top-color":Xe,"border-top-style":Ye,"border-top-width":Vr(Je,"px"),width:Vr(Ke,"%")},ct[".uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F}),ct[" .uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F},ct[".uagb-layout-list .uagb-tax-separator:hover"]={"border-top-color":F},ct[" .uagb-taxomony-box"]=nt,ct[" .uagb-taxomony-box:hover"]={"border-color":xe},pt={".uagb-taxonomy__outer-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+at+", 1fr)","grid-column-gap":Vr(f,"px"),"grid-row-gap":Vr(g,"px")},".uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(P,R),"padding-bottom":Vr(A,R),"padding-left":Vr(G,R),"padding-right":Vr(x,R),...st},".uagb-layout-grid .uagb-tax-title":{"font-size":Vr(X,J),"line-height":Vr(ne,le),"margin-bottom":Vr(O,"px"),"letter-spacing":Vr(je,ze)},".uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ce,se),"line-height":Vr(ye,be),"letter-spacing":Vr(Ie,Ve)},".uagb-layout-list .uagb-tax-list":{"font-size":Vr(ve,he),"line-height":Vr(Pe,Se),"letter-spacing":Vr(Ze,$e)}," .uagb-taxonomy-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+at+", 1fr)"}," .uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(P,R),"padding-bottom":Vr(A,R),"padding-left":Vr(G,R),"padding-right":Vr(x,R)}," .uagb-layout-grid .uagb-tax-title":{"font-size":Vr(X,J),"line-height":Vr(ne,le)}," .uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ce,se),"line-height":Vr(ye,be)}," .uagb-layout-list .uagb-tax-list":{"font-size":Vr(ve,he),"line-height":Vr(Pe,Se)}},ut={".uagb-taxonomy__outer-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+tt+", 1fr)","grid-column-gap":Vr(y,"px"),"grid-row-gap":Vr(b,"px")},".uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(C,B),"padding-bottom":Vr(k,B),"padding-left":Vr(w,B),"padding-right":Vr(S,B),...rt},".uagb-layout-grid .uagb-tax-title":{"font-size":Vr(Q,J),"line-height":Vr(oe,le),"margin-bottom":Vr(E,"px"),"letter-spacing":Vr(Fe,ze)},".uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ue,se),"line-height":Vr(me,be),"letter-spacing":Vr(Ne,Ve)},".uagb-layout-list .uagb-tax-list":{"font-size":Vr(_e,he),"line-height":Vr(we,Se),"letter-spacing":Vr(qe,$e)}," .uagb-taxonomy-wrap.uagb-layout-grid":{"grid-template-columns":"repeat("+tt+", 1fr)"}," .uagb-layout-grid .uagb-taxomony-box":{"padding-top":Vr(C,B),"padding-bottom":Vr(k,B),"padding-left":Vr(w,B),"padding-right":Vr(S,B)}," .uagb-layout-grid .uagb-tax-title":{"font-size":Vr(Q,J),"line-height":Vr(oe,le)}," .uagb-layout-grid .uagb-tax-link":{"font-size":Vr(ue,se),"line-height":Vr(me,be)}," .uagb-layout-list .uagb-tax-list":{"font-size":Vr(_e,he),"line-height":Vr(we,Se)}};let bt="";const gt=".uagb-block-"+o;return bt=ae(ct,gt),"tablet"!==i&&"mobile"!==i||(bt+=ae(ut,""+gt,!0,"tablet"),"mobile"===i&&(bt+=ae(pt,""+gt,!0,"mobile"))),bt}(a,A,G),[a,G]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:E}),React.createElement(IM,{attributes:a}),t&&React.createElement($M,tR({},e,{taxonomyList:R,termsList:U})),React.createElement(eR,tR({},e,{categoriesList:M})))});let lR={};lR=Object(F.applyFilters)("uagb/taxonomy-list",ss(lR)),Object(de.registerBlockType)("uagb/taxonomy-list",{...lR,title:Object(r.__)("Taxonomy List","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display your content categorized as per post type.","ultimate-addons-for-gutenberg"),icon:se.taxonomy_list,keywords:[Object(r.__)("post","ultimate-addons-for-gutenberg"),Object(r.__)("taxonomy","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"taxonomy-list"}):React.createElement(aR,e),save:()=>null});var iR=Object(B.memo)(e=>{let{attributes:t}=e;const{titleLoadGoogleFonts:a,titleFontFamily:l,titleFontWeight:i,prefixLoadGoogleFonts:o,prefixFontFamily:n,prefixFontWeight:r,descLoadGoogleFonts:s,descFontFamily:c,descFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)});let oR="";yt.image&&(oR=yt.image.url);const nR=[{defaultAttributes:yt},{value:"preset-1",label:Object(r.__)("Preset 1","ultimate-addons-for-gutenberg"),attributes:[{label:"image",value:{url:oR||uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},{label:"titleSpace",value:10},{label:"prefixSpace",value:11},{label:"descSpace",value:10},{label:"align",value:"center"},{label:"imgPosition",value:"above"},{label:"imgAlign",value:""},{label:"socialEnable",value:!0},{label:"imgStyle",value:"circle"},{label:"imageLeftMargin",value:20},{label:"imageRightMargin",value:20},{label:"imgWidth",value:100},{label:"imgWidthMobile",value:100},{label:"imgWidthTablet",value:100}],icon:' '},{value:"preset-2",label:Object(r.__)("Preset 2","ultimate-addons-for-gutenberg"),attributes:[{label:"image",value:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},{label:"titleSpace",value:5},{label:"prefixSpace",value:13},{label:"descSpace",value:20},{label:"align",value:"center"},{label:"imgPosition",value:"above"},{label:"imgAlign",value:""},{label:"socialEnable",value:!1},{label:"imgStyle",value:"circle"},{label:"imageLeftMargin",value:20},{label:"imageRightMargin",value:20},{label:"imgWidth",value:100},{label:"imgWidthMobile",value:100},{label:"imgWidthTablet",value:100}],icon:' '},{value:"preset-3",label:Object(r.__)("Preset 3","ultimate-addons-for-gutenberg"),attributes:[{label:"image",value:{url:uagb_blocks_info.uagb_url+"/admin/assets/images/placeholder.png"}},{label:"titleSpace",value:5},{label:"prefixSpace",value:13},{label:"descSpace",value:20},{label:"align",value:"left"},{label:"imgPosition",value:"left"},{label:"imgAlign",value:"middle"},{label:"socialEnable",value:!0},{label:"imgStyle",value:"circle"},{label:"imageLeftMargin",value:20},{label:"imageRightMargin",value:20},{label:"imgWidth",value:100},{label:"imgWidthMobile",value:100},{label:"imgWidthTablet",value:100}],icon:' '}];var rR=Object(F.applyFilters)("uag_team_presets",nR);function sR(){return(sR=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l}=e,{align:i,tag:o,titleColor:n,prefixColor:s,descColor:c,titleFontFamily:u,titleFontWeight:p,titleFontSizeType:d,titleFontSize:b,titleFontSizeMobile:g,titleFontSizeTablet:m,titleLineHeightType:y,titleLineHeight:f,titleLineHeightMobile:h,titleLineHeightTablet:v,prefixFontFamily:_,prefixFontWeight:T,prefixFontSizeType:C,prefixFontSize:S,prefixFontSizeMobile:k,prefixFontSizeTablet:w,prefixLineHeightType:P,prefixLineHeight:x,prefixLineHeightMobile:A,prefixLineHeightTablet:G,descFontFamily:M,descFontWeight:R,descFontSizeType:B,descFontSize:U,descFontSizeMobile:E,descFontSizeTablet:O,descLineHeightType:L,descLineHeight:H,descLineHeightMobile:F,descLineHeightTablet:z,socialFontSize:D,socialFontSizeType:N,socialFontSizeMobile:I,socialFontSizeTablet:V,titleLoadGoogleFonts:W,prefixLoadGoogleFonts:q,descLoadGoogleFonts:Z,image:$,imgStyle:Y,imgAlign:K,imgSize:J,imgWidth:X,imgWidthTablet:Q,imgWidthMobile:ee,imgPosition:te,titleSpace:ae,titleSpaceTablet:le,titleSpaceMobile:ie,descSpace:oe,descSpaceTablet:ne,descSpaceMobile:re,prefixSpace:se,prefixSpaceTablet:ce,prefixSpaceMobile:ue,twitterIcon:pe,fbIcon:de,linkedinIcon:be,pinIcon:me,twitterLink:ye,fbLink:fe,linkedinLink:he,pinLink:ve,socialColor:_e,socialHoverColor:Te,socialSpace:Se,socialSpaceTablet:ke,socialSpaceMobile:we,socialTarget:Pe,socialEnable:xe,stack:Ae,imageLeftMargin:Ge,imageRightMargin:Me,imageTopMargin:Re,imageBottomMargin:Be,imageMarginTopTablet:Ue,imageMarginRightTablet:Oe,imageMarginBottomTablet:He,imageMarginLeftTablet:Fe,imageMarginTopMobile:ze,imageMarginRightMobile:De,imageMarginBottomMobile:Ne,imageMarginLeftMobile:Ie,imageMarginUnit:Ve,tabletImageMarginUnit:We,mobileImageMarginUnit:qe,spacingLink:Ze,titleTransform:$e,titleDecoration:Ye,descTransform:Ke,descDecoration:Je,prefixTransform:Xe,prefixDecoration:Qe,titleFontStyle:et,descFontStyle:tt,prefixFontStyle:at,titleLetterSpacing:lt,titleLetterSpacingTablet:it,titleLetterSpacingMobile:ot,titleLetterSpacingType:nt,prefixLetterSpacing:rt,prefixLetterSpacingTablet:st,prefixLetterSpacingMobile:ct,prefixLetterSpacingType:ut,descLetterSpacing:pt,descLetterSpacingTablet:dt,descLetterSpacingMobile:bt,descLetterSpacingType:gt}=a;return $&&$.sizes&&(cR=j($.sizes)),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("Layout","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Na,{setAttributes:t,label:Object(r.__)("Title Tag","ultimate-addons-for-gutenberg"),data:{value:o,label:"tag"},options:[{value:"h1",label:Object(r.__)("H1","ultimate-addons-for-gutenberg")},{value:"h2",label:Object(r.__)("H2","ultimate-addons-for-gutenberg")},{value:"h3",label:Object(r.__)("H3","ultimate-addons-for-gutenberg")},{value:"h4",label:Object(r.__)("H4","ultimate-addons-for-gutenberg")},{value:"h5",label:Object(r.__)("H5","ultimate-addons-for-gutenberg")},{value:"h6",label:Object(r.__)("H6","ultimate-addons-for-gutenberg")},{value:"span",label:Object(r.__)("Span","ultimate-addons-for-gutenberg")},{value:"div",label:Object(r.__)("Div","ultimate-addons-for-gutenberg")}]}),"above"===te&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Alignment","ultimate-addons-for-gutenberg"),data:{value:i,label:"align"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"center",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Center","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),React.createElement(Yl,{onSelectImage:e=>{if(e&&e.url)if(e.type&&"image"===e.type){if(e.sizes){const t=j(e.sizes);cR=t}t({image:e})}else t({image:null});else t({image:null})},backgroundImage:$,onRemoveImage:()=>{t({image:""})}}),$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Image Position","ultimate-addons-for-gutenberg"),data:{value:te,label:"imgPosition"},className:"uagb-multi-button-alignment-control",options:[{value:"left",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-left")}),tooltip:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"above",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-center")}),tooltip:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"right",icon:React.createElement(Le.Icon,{icon:Ce("fa fa-align-right")}),tooltip:Object(r.__)("Right","ultimate-addons-for-gutenberg")}],showIcons:!0}),"above"!==te&&$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:Ae,label:"stack"},className:"uagb-multi-button-alignment-control",options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}]}),$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Image Style","ultimate-addons-for-gutenberg"),data:{value:Y,label:"imgStyle"},className:"uagb-multi-button-alignment-control",options:[{value:"normal",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"circle",label:Object(r.__)("Circle","ultimate-addons-for-gutenberg")},{value:"square",label:Object(r.__)("Square","ultimate-addons-for-gutenberg")}]}),te&&"above"!==te&&$&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:K,label:"imgAlign"},className:"uagb-multi-button-alignment-control",options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}]}),$&&React.createElement(React.Fragment,null,React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:J,label:"imgSize"},setAttributes:t,options:cR}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:X,label:"imgWidth"},tablet:{value:Q,label:"imgWidthTablet"},mobile:{value:ee,label:"imgWidthMobile"}},min:0,max:500,displayUnit:!1,setAttributes:t}))),React.createElement(je,{title:Object(r.__)("Social Links","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Social Links","ultimate-addons-for-gutenberg"),checked:xe,onChange:()=>t({socialEnable:!xe})}),xe&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Open Links in New Window","ultimate-addons-for-gutenberg"),checked:Pe,onChange:()=>t({socialTarget:!Pe})}),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 1","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:pe,onChange:e=>t({twitterIcon:e})}),pe&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:ye,data:{value:ye,label:"twitterLink"},setAttributes:t,onChange:e=>t({twitterLink:e}),placeholder:Object(r.__)("Enter Item 1 URL","ultimate-addons-for-gutenberg")})),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 2","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:de,onChange:e=>t({fbIcon:e})}),de&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:fe,data:{value:fe,label:"fbLink"},setAttributes:t,onChange:e=>t({fbLink:e}),placeholder:Object(r.__)("Enter Item 2 URL","ultimate-addons-for-gutenberg")})),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 3","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:be,onChange:e=>t({linkedinIcon:e})}),be&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:he,data:{value:he,label:"linkedinLink"},setAttributes:t,onChange:e=>t({linkedinLink:e}),placeholder:Object(r.__)("Enter Item 3 URL","ultimate-addons-for-gutenberg")})),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Item 4","ultimate-addons-for-gutenberg")),React.createElement(Mr,{label:Object(r.__)("Icon","ultimate-addons-for-gutenberg"),value:me,onChange:e=>t({pinIcon:e})}),me&&React.createElement(React.Fragment,null,React.createElement(Ss,{label:Object(r.__)("URL","ultimate-addons-for-gutenberg"),value:ve,data:{value:ve,label:"pinLink"},setAttributes:t,onChange:e=>t({pinLink:e}),placeholder:Object(r.__)("Enter Item 4 URL","ultimate-addons-for-gutenberg")})))),React.createElement(je,{title:Object(r.__)("Presets","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hr,{setAttributes:t,presets:rR,presetInputType:"radioImage"}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Title","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:n||"",data:{value:n,label:"titleColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:W,label:"titleLoadGoogleFonts"},fontFamily:{value:u,label:"titleFontFamily"},fontWeight:{value:p,label:"titleFontWeight"},fontStyle:{value:et,label:"titleFontStyle"},transform:{value:$e,label:"titleTransform"},decoration:{value:Ye,label:"titleDecoration"},fontSizeType:{value:d,label:"titleFontSizeType"},fontSize:{value:b,label:"titleFontSize"},fontSizeMobile:{value:g,label:"titleFontSizeMobile"},fontSizeTablet:{value:m,label:"titleFontSizeTablet"},lineHeightType:{value:y,label:"titleLineHeightType"},lineHeight:{value:f,label:"titleLineHeight"},lineHeightMobile:{value:h,label:"titleLineHeightMobile"},lineHeightTablet:{value:v,label:"titleLineHeightTablet"},letterSpacing:{value:lt,label:"titleLetterSpacing"},letterSpacingTablet:{value:it,label:"titleLetterSpacingTablet"},letterSpacingMobile:{value:ot,label:"titleLetterSpacingMobile"},letterSpacingType:{value:nt,label:"titleLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:ae,label:"titleSpace"},tablet:{value:le,label:"titleSpaceTablet"},mobile:{value:ie,label:"titleSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),React.createElement(je,{title:Object(r.__)("Designation","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:s||"",data:{value:s,label:"prefixColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:q,label:"prefixLoadGoogleFonts"},fontFamily:{value:_,label:"prefixFontFamily"},fontWeight:{value:T,label:"prefixFontWeight"},fontStyle:{value:at,label:"prefixFontStyle"},transform:{value:Xe,label:"prefixTransform"},decoration:{value:Qe,label:"prefixDecoration"},fontSizeType:{value:C,label:"prefixFontSizeType"},fontSize:{value:S,label:"prefixFontSize"},fontSizeMobile:{value:k,label:"prefixFontSizeMobile"},fontSizeTablet:{value:w,label:"prefixFontSizeTablet"},lineHeightType:{value:P,label:"prefixLineHeightType"},lineHeight:{value:x,label:"prefixLineHeight"},lineHeightMobile:{value:A,label:"prefixLineHeightMobile"},lineHeightTablet:{value:G,label:"prefixLineHeightTablet"},letterSpacing:{value:rt,label:"prefixLetterSpacing"},letterSpacingTablet:{value:st,label:"prefixLetterSpacingTablet"},letterSpacingMobile:{value:ct,label:"prefixLetterSpacingMobile"},letterSpacingType:{value:ut,label:"prefixLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:se,label:"prefixSpace"},tablet:{value:ce,label:"prefixSpaceTablet"},mobile:{value:ue,label:"prefixSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),React.createElement(je,{title:Object(r.__)("Description","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:c||"",data:{value:c,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:Z,label:"descLoadGoogleFonts"},fontFamily:{value:M,label:"descFontFamily"},fontWeight:{value:R,label:"descFontWeight"},fontStyle:{value:tt,label:"descFontStyle"},transform:{value:Ke,label:"descTransform"},decoration:{value:Je,label:"descDecoration"},fontSizeType:{value:B,label:"descFontSizeType"},fontSize:{value:U,label:"descFontSize"},fontSizeMobile:{value:E,label:"descFontSizeMobile"},fontSizeTablet:{value:O,label:"descFontSizeTablet"},lineHeightType:{value:L,label:"descLineHeightType"},lineHeight:{value:H,label:"descLineHeight"},lineHeightMobile:{value:F,label:"descLineHeightMobile"},lineHeightTablet:{value:z,label:"descLineHeightTablet"},letterSpacing:{value:pt,label:"descLetterSpacing"},letterSpacingTablet:{value:dt,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:bt,label:"descLetterSpacingMobile"},letterSpacingType:{value:gt,label:"descLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:oe,label:"descSpace"},tablet:{value:ne,label:"descSpaceTablet"},mobile:{value:re,label:"descSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t})),React.createElement(React.Fragment,null,xe&&React.createElement(je,{title:Object(r.__)("Social Icons","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Icon Size","ultimate-addons-for-gutenberg"),data:{desktop:{value:D,label:"socialFontSize"},tablet:{value:V,label:"socialFontSizeTablet"},mobile:{value:I,label:"socialFontSizeMobile"}},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"},{name:Object(r.__)("EM","ultimate-addons-for-gutenberg"),unitValue:"em"}],unit:{value:N,label:"socialFontSizeType"},min:0,limitMax:{px:100,em:100},displayUnit:!0,setAttributes:t}),React.createElement(tl,{label:Object(r.__)("Icon Spacing","ultimate-addons-for-gutenberg"),data:{desktop:{value:Se,label:"socialSpace"},tablet:{value:ke,label:"socialSpaceTablet"},mobile:{value:we,label:"socialSpaceMobile"}},min:0,max:50,displayUnit:!1,setAttributes:t}),React.createElement(Ui,{tabs:[{name:"normal",title:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{name:"hover",title:Object(r.__)("Hover","ultimate-addons-for-gutenberg")}],normal:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:_e||"",data:{value:_e,label:"socialColor"},setAttributes:t}),hover:React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:Te||"",data:{value:Te,label:"socialHoverColor"},setAttributes:t}),disableBottomSeparator:!0}))),$&&React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,sR({},e,{label:Object(r.__)("Image Margin","ultimate-addons-for-gutenberg"),valueTop:{value:Re,label:"imageTopMargin"},valueRight:{value:Me,label:"imageRightMargin"},valueBottom:{value:Be,label:"imageBottomMargin"},valueLeft:{value:Ge,label:"imageLeftMargin"},valueTopTablet:{value:Ue,label:"imageMarginTopTablet"},valueRightTablet:{value:Oe,label:"imageMarginRightTablet"},valueBottomTablet:{value:He,label:"imageMarginBottomTablet"},valueLeftTablet:{value:Fe,label:"imageMarginLeftTablet"},valueTopMobile:{value:ze,label:"imageMarginTopMobile"},valueRightMobile:{value:De,label:"imageMarginRightMobile"},valueBottomMobile:{value:Ne,label:"imageMarginBottomMobile"},valueLeftMobile:{value:Ie,label:"imageMarginLeftMobile"},unit:{value:Ve,label:"imageMarginUnit"},mUnit:{value:qe,label:"mobileImageMarginUnit"},tUnit:{value:We,label:"tabletImageMarginUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Ze,label:"spacingLink"}})))),React.createElement(il,sR({},rl,{parentProps:e})))))}),dR=a(143),bR=0,gR={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},mR={};mR.locals=dR.a.locals||{},mR.use=function(){return bR++||(uR=we()(dR.a,gR)),mR},mR.unuse=function(){bR>0&&!--bR&&(uR(),uR=null)};var yR=mR,fR=Object(B.memo)(e=>{Object(B.useLayoutEffect)(()=>(yR.use(),()=>{yR.unuse()}),[]);const{className:t,setAttributes:a,attributes:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n,deviceType:s}=e,{align:c,tag:u,title:p,prefix:d,description_text:b,image:g,imgStyle:m,imgSize:y,imgPosition:f,twitterIcon:h,fbIcon:v,linkedinIcon:_,pinIcon:T,twitterLink:C,fbLink:S,linkedinLink:k,pinLink:w,socialTarget:P,socialEnable:x,stack:A,imgWidth:G,block_id:M}=l,R=React.createElement(React.Fragment,null,React.createElement(ge.RichText,{tagName:u,value:p,className:"uagb-team__title",onChange:e=>a({title:e}),multiline:!1,placeholder:Object(r.__)("Write a Title","ultimate-addons-for-gutenberg"),onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}),React.createElement(ge.RichText,{tagName:"div",value:d,className:"uagb-team__prefix",onChange:e=>a({prefix:e}),onMerge:i,placeholder:Object(r.__)("Write a Designation","ultimate-addons-for-gutenberg"),onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])})),U=(e,t,l)=>{const i=l?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:i,title:"",rel:"noopener noreferrer"},Ce(e,a)))},E=React.createElement("ul",{className:"uagb-team__social-list"},""!==h&&U(h,C,P),""!==v&&U(v,S,P),""!==_&&U(_,k,P),""!==T&&U(T,w,P)),O=React.createElement(ge.RichText,{tagName:"p",value:b,placeholder:Object(r.__)("Write a Description","ultimate-addons-for-gutenberg"),className:"uagb-team__desc",onChange:e=>a({description_text:e}),onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])});let L="",H="";g&&(L=g.sizes,H=g.sizes&&L[y]?L[y].url:g.url);let F="";return""!==H&&(F=React.createElement("img",{className:"uagb-team__image-crop-"+m,src:H,alt:g.alt?g.alt:"",height:G,width:G,loading:"lazy"})),React.createElement("div",{className:Be()(t,"uagb-team__image-position-"+f,"uagb-team__align-"+c,"uagb-team__stack-"+A,"uagb-editor-preview-mode-"+s.toLowerCase(),"uagb-block-"+M)},"left"===f&&F,React.createElement("div",{className:"uagb-team__content"},"above"===f&&F,R,O,x&&E),"right"===f&&F)}),hR=Object(L.compose)(ls,fe)(e=>{const{isSelected:t,attributes:a,attributes:{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o},clientId:n,name:r,deviceType:s}=e;Object(B.useEffect)(()=>{he(e)},[l,i,o,s]),Object(B.useEffect)(()=>{ys()},[s]);const c=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,tag:r,align:s,titleColor:c,prefixColor:u,descColor:p,titleFontFamily:d,titleFontWeight:b,titleFontSizeType:g,titleFontSize:m,titleFontSizeMobile:y,titleFontSizeTablet:f,titleLineHeightType:h,titleLineHeight:v,titleLineHeightTablet:_,titleLineHeightMobile:T,prefixFontFamily:C,prefixFontWeight:S,prefixFontSizeType:k,prefixFontSize:w,prefixFontSizeMobile:P,prefixFontSizeTablet:x,prefixLineHeightType:A,prefixLineHeight:G,prefixLineHeightTablet:M,prefixLineHeightMobile:R,descFontFamily:B,descFontWeight:U,descFontSizeType:E,descFontSize:O,descFontSizeMobile:L,descFontSizeTablet:H,descLineHeightType:F,descLineHeight:j,descLineHeightTablet:z,descLineHeightMobile:D,socialFontSize:N,socialFontSizeType:I,socialFontSizeMobile:V,socialFontSizeTablet:W,socialSpaceTablet:q,socialSpaceMobile:Z,imgAlign:$,imgWidth:Y,imgWidthTablet:K,imgWidthMobile:J,imgPosition:X,titleSpace:Q,titleSpaceTablet:ee,titleSpaceMobile:te,descSpace:le,descSpaceTablet:ie,descSpaceMobile:oe,prefixSpace:ne,prefixSpaceTablet:re,prefixSpaceMobile:se,socialColor:ce,socialHoverColor:ue,socialSpace:pe,imageLeftMargin:de,imageRightMargin:be,imageTopMargin:ge,imageBottomMargin:me,imageMarginTopTablet:ye,imageMarginRightTablet:fe,imageMarginBottomTablet:he,imageMarginLeftTablet:ve,imageMarginTopMobile:_e,imageMarginRightMobile:Te,imageMarginBottomMobile:Ce,imageMarginLeftMobile:Se,imageMarginUnit:ke,tabletImageMarginUnit:we,mobileImageMarginUnit:Pe,titleTransform:xe,titleDecoration:Ae,descTransform:Ge,descDecoration:Me,prefixTransform:Re,prefixDecoration:Be,titleFontStyle:Ue,descFontStyle:Ee,prefixFontStyle:Oe,titleLetterSpacing:Le,titleLetterSpacingTablet:He,titleLetterSpacingMobile:Fe,titleLetterSpacingType:je,prefixLetterSpacing:ze,prefixLetterSpacingTablet:De,prefixLetterSpacingMobile:Ne,prefixLetterSpacingType:Ie,descLetterSpacing:Ve,descLetterSpacingTablet:We,descLetterSpacingMobile:qe,descLetterSpacingType:Ze}=e,$e=us(Y,"imgWidth",i),Ye=us(Q,"titleSpace",i),Ke=us(ne,"prefixSpace",i),Je=us(le,"descSpace",i),Xe=us(N,"socialFontSize",i),Qe=us(pe,"socialSpace",i),et=isNaN(q)?Qe:q,tt=isNaN(Z)?et:Z;let at={},lt={};const it={" p.uagb-team__desc.block-editor-rich-text__editable":{"font-size":Vr(O,E),"line-height":Vr(j,F),"font-family":B,"font-style":Ee,"text-decoration":Me,"text-transform":Ge,"font-weight":U,color:p,"margin-bottom":Vr(Je,"px"),"margin-top":Vr(Ke,"px"),"letter-spacing":Vr(Ve,Ze)}," .rich-text.block-editor-rich-text__editable.uagb-team__prefix":{"font-family":C,"font-style":Oe,"text-decoration":Be,"text-transform":Re,"font-weight":S,"font-size":Vr(w,k),"line-height":Vr(G,A),color:u,"letter-spacing":Vr(ze,Ie)}," .uagb-team__social-icon a":{color:ce,"font-size":Vr(Xe,I),width:Vr(Xe,I),height:Vr(Xe,I),"line-height":Vr(Xe,I)}," .uagb-team__social-icon svg":{fill:ce,width:Vr(Xe,I),height:Vr(Xe,I)}," .uagb-team__social-icon:hover a":{color:ue}," .uagb-team__social-icon:hover svg":{fill:ue},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":Vr(Qe,"px"),"margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":Vr(Qe,"px"),"margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":Vr(Qe/2,"px"),"margin-left":Vr(Qe/2,"px")},".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon":{"margin-right":Vr(Qe,"px"),"margin-left":"0"},".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon":{"margin-left":Vr(Qe,"px"),"margin-right":"0"}," .uagb-team__image-wrap":{"margin-top":Vr(ge,ke),"margin-bottom":Vr(me,ke),"margin-left":Vr(de,ke),"margin-right":Vr(be,ke),width:Vr($e,"px")}," img":{"margin-top":Vr(ge,ke),"margin-bottom":Vr(me,ke),"margin-left":Vr(de,ke),"margin-right":Vr(be,ke),width:Vr($e,"px"),height:Vr($e,"px")}};"above"===X&&("center"===s?(it[" img"]["margin-left"]="auto",it[" img"]["margin-right"]="auto",it[" .uagb-team__social-list"]={"justify-content":"center"}):"left"===s?(it[" img"]["margin-right"]="auto",it[" .uagb-team__social-list"]={"justify-content":"flex-start"}):"right"===s&&(it[" .uagb-team__social-list"]={"justify-content":"flex-end"},it[" img"]["margin-left"]="auto")),"above"!==X&&("middle"===$?(it[" img"]["align-self"]="center",it[" .uagb-team__content"]={"align-self":"center"}):it[" img"]["align-self"]="flex-start"),it[" "+r+".rich-text.block-editor-rich-text__editable.uagb-team__title"]={"font-family":d,"font-style":Ue,"text-decoration":Ae,"text-transform":xe,"font-weight":b,"font-size":Vr(m,g),"line-height":Vr(v,h),color:c,"margin-bottom":Vr(Ye,"px"),"letter-spacing":Vr(Le,je)},lt={" img":{width:Vr(J,"px"),height:Vr(J,"px")}," p.uagb-team__desc.block-editor-rich-text__editable":{"font-size":Vr(L,E),"margin-top":Vr(se,"px"),"margin-bottom":Vr(oe,"px"),"letter-spacing":Vr(qe,Ze),"line-height":Vr(D,F)}," .rich-text.block-editor-rich-text__editable.uagb-team__prefix":{"font-size":Vr(P,k),"letter-spacing":Vr(Ne,Ie),"line-height":Vr(R,A)}," .uagb-team__social-icon a":{"font-size":Vr(V,I),width:Vr(V,I),height:Vr(V,I),"line-height":Vr(V,I)}," .uagb-team__social-icon svg":{width:Vr(V,I),height:Vr(V,I)}," .uagb-team__image-wrap":{"margin-top":Vr(_e,Pe),"margin-bottom":Vr(Ce,Pe),"margin-left":Vr(Se,Pe),"margin-right":Vr(Te,Pe)},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":Vr(Z,"px"),"margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":Vr(Z,"px"),"margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":Vr(tt/2,"px"),"margin-left":Vr(tt/2,"px")}},lt[" "+r+".rich-text.block-editor-rich-text__editable.uagb-team__title"]={"margin-bottom":Vr(te,"px"),"letter-spacing":Vr(Fe,je),"line-height":Vr(T,h)},at={" img":{width:Vr(K,"px"),height:Vr(K,"px")}," p.uagb-team__desc.block-editor-rich-text__editable":{"font-size":Vr(H,E),"margin-top":Vr(re,"px"),"margin-bottom":Vr(ie,"px"),"letter-spacing":Vr(We,Ze),"line-height":Vr(z,F)}," .rich-text.block-editor-rich-text__editable.uagb-team__prefix":{"font-size":Vr(x,k),"letter-spacing":Vr(De,Ie),"line-height":Vr(M,A)}," .uagb-team__social-icon a":{"font-size":Vr(W,I),width:Vr(W,I),height:Vr(W,I),"line-height":Vr(W,I)}," .uagb-team__social-icon svg":{width:Vr(W,I),height:Vr(W,I)}," .uagb-team__image-wrap":{"margin-top":Vr(ye,we),"margin-bottom":Vr(he,we),"margin-left":Vr(ve,we),"margin-right":Vr(fe,we)},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":Vr(q,"px"),"margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":Vr(q,"px"),"margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":Vr(et/2,"px"),"margin-left":Vr(et/2,"px")}},at[" "+r+".rich-text.block-editor-rich-text__editable.uagb-team__title"]={"margin-bottom":Vr(ee,"px"),"letter-spacing":Vr(He,je),"line-height":Vr(_,h)},lt[" "+r+".uagb-team__title"]={"font-size":Vr(y,g)},at[" "+r+".uagb-team__title"]={"font-size":Vr(f,g)};let ot="";const nt=`#block-${t} .uagb-block-${n}`;return ot=ae(it,nt),"tablet"!==o&&"mobile"!==o||(ot+=ae(at,""+nt,!0,"tablet"),"mobile"===o&&(ot+=ae(lt,""+nt,!0,"mobile"))),ot}(a,n,r,s),[a,s]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:c}),React.createElement(iR,{attributes:a}),t&&React.createElement(pR,e),React.createElement(fR,e))});function vR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:l,title:"",rel:"noopener noreferrer"},Ce(e)))}const _R={block_id:{type:"string"},classMigrate:{type:"boolean",default:!1},align:{type:"string",default:"center"},tag:{type:"string",default:"h3"},title:{selector:"h1,h2,h3,h4,h5,h6",default:"John Doe"},prefix:{selector:"div.uagb-team__prefix",default:"Designation"},description_text:{selector:"p",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."},titleColor:{type:"string"},prefixColor:{type:"string",default:"#888888"},descColor:{type:"string"},socialColor:{type:"string",default:"#333"},socialHoverColor:{type:"string"},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"},prefixFontFamily:{type:"string",default:"Default"},prefixFontWeight:{type:"string"},prefixFontSubset:{type:"string"},prefixFontSizeType:{type:"string",default:"px"},prefixLineHeightType:{type:"string",default:"em"},prefixFontSize:{type:"number",default:15},prefixFontSizeTablet:{type:"number"},prefixFontSizeMobile:{type:"number"},prefixLineHeight:{type:"number"},prefixLineHeightTablet:{type:"number"},prefixLineHeightMobile:{type:"number"},descFontFamily:{type:"string",default:"Default"},descFontWeight:{type:"string"},descFontSubset:{type:"string"},descFontSizeType:{type:"string",default:"px"},descLineHeightType:{type:"string",default:"em"},descFontSize:{type:"number"},descFontSizeTablet:{type:"number"},descFontSizeMobile:{type:"number"},descLineHeight:{type:"number"},descLineHeightTablet:{type:"number"},descLineHeightMobile:{type:"number"},socialFontSize:{type:"number",default:20},socialFontSizeType:{type:"string",default:"px"},socialFontSizeMobile:{type:"number"},socialFontSizeTablet:{type:"number"},image:{type:"object"},imgStyle:{type:"string",default:"normal"},imgPosition:{type:"string",default:"above"},imgAlign:{type:"string",default:"top"},imgSize:{type:"string",default:"thumbnail"},imgWidth:{type:"number",default:120},titleSpace:{type:"number"},prefixSpace:{type:"number"},descSpace:{type:"number",default:10},imgLeftMargin:{type:"number",default:20},imgRightMargin:{type:"number",default:20},imgTopMargin:{type:"number",default:15},imgBottomMargin:{type:"number",default:15},socialEnable:{type:"boolean",default:!0},socialSpace:{type:"number",default:20},socialTarget:{type:"boolean",default:!1},twitterIcon:{type:"string",default:"fab fa-twitter"},fbIcon:{type:"string",default:"fab fa-facebook"},linkedinIcon:{type:"string",default:"fab fa-linkedin"},pinIcon:{type:"string",default:"fab fa-pinterest"},twitterLink:{type:"string",default:"#"},fbLink:{type:"string",default:"#"},linkedinLink:{type:"string",default:"#"},pinLink:{type:"string",default:"#"},stack:{type:"string",default:"tablet"},titleLoadGoogleFonts:{type:"boolean",default:!1},prefixLoadGoogleFonts:{type:"boolean",default:!1},descLoadGoogleFonts:{type:"boolean",default:!1},imageMarginUnit:{type:"string",default:"px"}};function TR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,target:l,title:"",rel:"noopener noreferrer"},kb(e)))}function CR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:l,title:"",rel:"noopener noreferrer"},Ce(e)))}function SR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,target:l,title:"",rel:"noopener noreferrer"},React.createElement("span",{className:e})))}function kR(e,t,a){const l=a?"_blank":"_self";return React.createElement("li",{className:"uagb-team__social-icon"},React.createElement("a",{href:t,"aria-label":e,target:l,title:"",rel:"noopener noreferrer"},kb(e)))}var wR=[{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T),id:"uagb-team-"+t},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&SR(p,m,v),""!=d&&SR(d,y,v),""!=b&&SR(b,f,v),""!=g&&SR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T),id:"uagb-team-"+t},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&TR(p,m,v),""!=d&&TR(d,y,v),""!=b&&TR(b,f,v),""!=g&&TR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&TR(p,m,v),""!=d&&TR(d,y,v),""!=b&&TR(b,f,v),""!=g&&TR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!=S&&(k=React.createElement("div",{className:Be()("uagb-team__image-wrap","uagb-team__image-crop-"+c)},React.createElement("img",{className:"",src:S,alt:r.alt?r.alt:""}))),React.createElement("div",{className:Be()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},React.createElement("div",{className:"uagb-team__wrap"},"left"==u&&k,React.createElement("div",{className:"uagb-team__content"},"above"==u&&k,React.createElement("div",{className:"uagb-team__title-wrap"},React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"})),React.createElement("div",{className:"uagb-team__desc-wrap"},React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"})),_&&React.createElement("div",{className:"uagb-team__social-icon-wrap"},React.createElement("ul",{className:"uagb-team__social-list"},""!=p&&kR(p,m,v),""!=d&&kR(d,y,v),""!=b&&kR(b,f,v),""!=g&&kR(g,h,v)))),"right"==u&&k))}},{attributes:_R,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!==S&&(k=React.createElement("img",{className:"uagb-team__image-crop-"+c,src:S,alt:r.alt?r.alt:""})),React.createElement("div",{className:Be()(e.className,"uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},"left"===u&&k,React.createElement("div",{className:"uagb-team__content"},"above"===u&&k,React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"}),React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"}),_&&React.createElement("ul",{className:"uagb-team__social-list"},""!==p&&TR(p,m,v),""!==d&&TR(d,y,v),""!==b&&TR(b,f,v),""!==g&&TR(g,h,v))),"right"===u&&k)}},{attributes:yt,save(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T}=e.attributes;let C="",S="";r&&(C=r.sizes,S=r.sizes&&C[s]?C[s].url:r.url);let k="";return""!==S&&(k=React.createElement("img",{className:"uagb-team__image-crop-"+c,src:S,alt:r.alt?r.alt:""})),React.createElement("div",{className:Be()(e.className,"uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},"left"===u&&k,React.createElement("div",{className:"uagb-team__content"},"above"===u&&k,React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"}),React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"}),_&&React.createElement("ul",{className:"uagb-team__social-list"},""!==p&&CR(p,m,v),""!==d&&CR(d,y,v),""!==b&&CR(b,f,v),""!==g&&CR(g,h,v))),"right"===u&&k)}}];a(377);let PR={};PR=Object(F.applyFilters)("uagb/team",ss(PR)),Object(de.registerBlockType)("uagb/team",{...PR,title:Object(r.__)("Team","ultimate-addons-for-gutenberg"),description:Object(r.__)("Showcase your team by displaying info and social media profiles.","ultimate-addons-for-gutenberg"),icon:se.team,keywords:[Object(r.__)("team","ultimate-addons-for-gutenberg"),Object(r.__)("members","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:yt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"team"}):React.createElement(hR,e),save:function(e){const{block_id:t,align:a,tag:l,title:i,prefix:o,description_text:n,image:r,imgSize:s,imgStyle:c,imgPosition:u,twitterIcon:p,fbIcon:d,linkedinIcon:b,pinIcon:g,twitterLink:m,fbLink:y,linkedinLink:f,pinLink:h,socialTarget:v,socialEnable:_,stack:T,imgWidth:C}=e.attributes;let S="",k="";r&&(S=r.sizes,k=r.sizes&&S[s]?S[s].url:r.url);let w="";return""!==k&&(w=React.createElement("img",{className:"uagb-team__image-crop-"+c,src:k,alt:r.alt?r.alt:"",height:C,width:C,loading:"lazy"})),React.createElement("div",{className:Be()(e.className,"uagb-team__image-position-"+u,"uagb-team__align-"+a,"uagb-team__stack-"+T,"uagb-block-"+t)},"left"===u&&w,React.createElement("div",{className:"uagb-team__content"},"above"===u&&w,React.createElement(ge.RichText.Content,{tagName:l,value:i,className:"uagb-team__title"}),React.createElement(ge.RichText.Content,{tagName:"span",value:o,className:"uagb-team__prefix"}),React.createElement(ge.RichText.Content,{tagName:"p",value:n,className:"uagb-team__desc"}),_&&React.createElement("ul",{className:"uagb-team__social-list"},""!==p&&vR(p,m,v),""!==d&&vR(d,y,v),""!==b&&vR(b,f,v),""!==g&&vR(g,h,v))),"right"===u&&w)},deprecated:wR});function xR(){return(xR=Object.assign||function(e){for(var t=1;t{const{setAttributes:t,attributes:a,deviceType:l,name:i}=e,o=i.replace("uagb/",""),{test_item_count:n,headingAlign:s,headingAlignTablet:c,headingAlignMobile:u,companyColor:p,descColor:d,authorColor:b,nameFontSizeType:g,nameFontSize:m,nameFontSizeTablet:y,nameFontSizeMobile:f,nameFontFamily:h,nameFontWeight:v,nameFontStyle:_,nameLineHeightType:T,nameLineHeight:C,nameLineHeightTablet:S,nameLineHeightMobile:k,nameLoadGoogleFonts:w,companyFontSizeType:P,companyFontSize:x,companyFontSizeTablet:A,companyFontSizeMobile:G,companyFontFamily:M,companyFontWeight:R,companyFontStyle:B,companyLineHeightType:U,companyLineHeight:E,companyLineHeightTablet:O,companyLineHeightMobile:L,companyLoadGoogleFonts:H,descFontSizeType:F,descFontSize:j,descFontSizeTablet:z,descFontSizeMobile:D,descFontFamily:N,descFontWeight:I,descFontStyle:V,descLineHeightType:W,descLineHeight:q,descLineHeightTablet:Z,descLineHeightMobile:$,descLoadGoogleFonts:Y,descSpace:K,descSpaceTablet:J,descSpaceMobile:X,iconimgStyle:Q,imagePosition:ee,imageAlignment:te,nameSpace:ae,nameSpaceTablet:le,nameSpaceMobile:ie,imageSize:oe,imageWidth:ne,imageWidthTablet:re,imageWidthMobile:se,columns:ce,tcolumns:ue,mcolumns:pe,pauseOnHover:de,infiniteLoop:be,transitionSpeed:me,arrowDots:ye,arrowSize:fe,arrowBorderSize:he,arrowBorderSizeUnit:ve,arrowBorderRadius:_e,arrowBorderRadiusUnit:Te,autoplay:Se,autoplaySpeed:ke,arrowColor:we,rowGap:Pe,rowGapTablet:xe,rowGapMobile:Ae,columnGap:Ge,columnGapTablet:Me,columnGapMobile:Re,backgroundType:Be,backgroundColor:Ue,backgroundImage:Oe,backgroundPosition:He,backgroundSize:Fe,backgroundRepeat:ze,backgroundImageColor:De,stack:Ne,imageWidthType:Ie,arrowSizeType:Ve,rowGapType:We,columnGapType:qe,descSpaceType:Ze,nameSpaceType:$e,overlayType:Ye,backgroundAttachment:Ke,gradientValue:Je,gradientColor1:Xe,gradientColor2:Qe,gradientLocation1:et,gradientLocation2:tt,gradientType:at,gradientAngle:lt,selectGradient:it,descTransform:ot,descDecoration:nt,nameTransform:rt,nameDecoration:st,companyTransform:ct,companyDecoration:ut,paddingUnit:pt,mobilePaddingUnit:dt,tabletPaddingUnit:bt,paddingTop:gt,paddingBottom:mt,paddingLeft:yt,paddingRight:ft,paddingTopTablet:ht,paddingRightTablet:vt,paddingBottomTablet:_t,paddingLeftTablet:Tt,paddingTopMobile:Ct,paddingRightMobile:St,paddingBottomMobile:kt,paddingLeftMobile:wt,imgspacingLink:Pt,spacingLink:xt,imgpaddingTop:At,imgpaddingRight:Gt,imgpaddingBottom:Mt,imgpaddingLeft:Rt,imgpaddingTopTablet:Bt,imgpaddingRightTablet:Ut,imgpaddingBottomTablet:Et,imgpaddingLeftTablet:Ot,imgpaddingTopMobile:Lt,imgpaddingRightMobile:Ht,imgpaddingBottomMobile:Ft,imgpaddingLeftMobile:jt,imgpaddingUnit:zt,imgmobilePaddingUnit:Dt,imgtabletPaddingUnit:Nt,equalHeight:It,vAlignContent:Vt,nameLetterSpacing:Wt,nameLetterSpacingTablet:qt,nameLetterSpacingMobile:Zt,nameLetterSpacingType:$t,descLetterSpacing:Yt,descLetterSpacingTablet:Kt,descLetterSpacingMobile:Jt,descLetterSpacingType:Xt,companyLetterSpacing:Qt,companyLetterSpacingTablet:ea,companyLetterSpacingMobile:ta,companyLetterSpacingType:aa}=a,la=us(n,"test_item_count",o),ia=(oa=a.test_block,JSON.parse(JSON.stringify(oa)));var oa;const na=[{value:"thumbnail",label:Object(r.__)("Thumbnail","ultimate-addons-for-gutenberg")},{value:"medium",label:Object(r.__)("Medium","ultimate-addons-for-gutenberg")},{value:"full",label:Object(r.__)("Large","ultimate-addons-for-gutenberg")}],ra=e=>{let a=null;ia[e]&&void 0!==ia[e]&&(a=ia[e].image);const l=e+1,i=Object(r.__)("Image","ultimate-addons-for-gutenberg");return React.createElement(Yl,{onSelectImage:a=>((e,a)=>{let l=null;l=e&&e.url?e:null,e.type&&"image"===e.type||(l=null);const i=ia.map((e,t)=>(a===t&&(e.image=l),e));t({test_block:i})})(a,e),backgroundImage:a,onRemoveImage:()=>(e=>{const a=ia.map((t,a)=>(e===a&&(t.image=null),t));t({test_block:a})})(e),slug:"image-"+l,label:`${i} ${l}`})};let sa=0;return ia.map((e,t)=>{const a=ia[t];if(a&&void 0!==a){const e=a.image;null!=e&&""!==e&&sa++}}),React.createElement(React.Fragment,null,React.createElement(ge.InspectorControls,null,React.createElement(Ee,null,React.createElement(il,ol,React.createElement(je,{title:Object(r.__)("General","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(Qa,{label:Object(r.__)("Number of Testimonials","ultimate-addons-for-gutenberg"),value:n,data:{value:n,label:"test_item_count"},onChange:e=>{const a=[...ia],l=us(e,"test_item_count","testimonial");if(a.length1&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Equal Height","ultimate-addons-for-gutenberg"),checked:It,onChange:()=>t({equalHeight:!It}),help:Object(r.__)("Note: Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")}),ce>1&&It&&React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:Vt,label:"vAlignContent"},className:"uagb-multi-button-alignment-control",options:[{value:"flex-start",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"center",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")},{value:"end",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}],showIcons:!1})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},(()=>{const e=[];for(let t=0;t0&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Position","ultimate-addons-for-gutenberg"),data:{value:ee,label:"imagePosition"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")},{value:"left",label:Object(r.__)("Left","ultimate-addons-for-gutenberg")},{value:"right",label:Object(r.__)("Right","ultimate-addons-for-gutenberg")}]}),("left"===ee||"right"===ee)&&React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:t,label:Object(r.__)("Vertical Alignment","ultimate-addons-for-gutenberg"),data:{value:te,label:"imageAlignment"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"middle",label:Object(r.__)("Middle","ultimate-addons-for-gutenberg")}]}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Stack On","ultimate-addons-for-gutenberg"),data:{value:Ne,label:"stack"},options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"tablet",label:Object(r.__)("Tablet","ultimate-addons-for-gutenberg")},{value:"mobile",label:Object(r.__)("Mobile","ultimate-addons-for-gutenberg")}]})),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Style","ultimate-addons-for-gutenberg"),data:{value:Q,label:"iconimgStyle"},options:[{value:"normal",label:Object(r.__)("Normal","ultimate-addons-for-gutenberg")},{value:"circle",label:Object(r.__)("Circle","ultimate-addons-for-gutenberg")},{value:"square",label:Object(r.__)("Square","ultimate-addons-for-gutenberg")}]}),React.createElement(Pi,{label:Object(r.__)("Size","ultimate-addons-for-gutenberg"),data:{value:oe,label:"imageSize"},setAttributes:t,options:na}),React.createElement(tl,{label:Object(r.__)("Width","ultimate-addons-for-gutenberg"),data:{desktop:{value:ne,label:"imageWidth"},tablet:{value:re,label:"imageWidthTablet"},mobile:{value:se,label:"imageWidthMobile"}},min:1,max:500,unit:{value:Ie,label:"imageWidthType"},setAttributes:t}))),React.createElement(je,{title:Object(r.__)("Carousel","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Pause On Hover","ultimate-addons-for-gutenberg"),checked:de,onChange:()=>{t({pauseOnHover:!de})}}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Autoplay","ultimate-addons-for-gutenberg"),checked:Se,onChange:()=>{t({autoplay:!Se})}}),!0===Se&&React.createElement(Qa,{label:Object(r.__)("Autoplay Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:t,value:ke,data:{value:ke,label:"autoplaySpeed"},min:100,max:15e3,displayUnit:!1}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Infinite Loop","ultimate-addons-for-gutenberg"),checked:be,onChange:()=>{t({infiniteLoop:!be})}}),React.createElement(Qa,{label:Object(r.__)("Transition Speed (ms)","ultimate-addons-for-gutenberg"),setAttributes:t,value:me,data:{value:me,label:"transitionSpeed"},min:100,max:5e3,displayUnit:!1}),React.createElement(Na,{setAttributes:t,label:Object(r.__)("Show Arrows & Dots","ultimate-addons-for-gutenberg"),data:{value:ye,label:"arrowDots"},options:[{value:"arrows",label:Object(r.__)("Arrows","ultimate-addons-for-gutenberg")},{value:"dots",label:Object(r.__)("Dots","ultimate-addons-for-gutenberg")},{value:"arrows_dots",label:Object(r.__)("Both","ultimate-addons-for-gutenberg")}]}))),React.createElement(il,nl,React.createElement(je,{title:Object(r.__)("Name","ultimate-addons-for-gutenberg"),initialOpen:!0},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:b||"",data:{value:b,label:"authorColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:w,label:"nameLoadGoogleFonts"},fontFamily:{value:h,label:"nameFontFamily"},fontWeight:{value:v,label:"nameFontWeight"},fontStyle:{value:_,label:"nameFontStyle"},fontSizeType:{value:g,label:"nameFontSizeType"},fontSize:{value:m,label:"nameFontSize"},fontSizeMobile:{value:f,label:"nameFontSizeMobile"},fontSizeTablet:{value:y,label:"nameFontSizeTablet"},lineHeightType:{value:T,label:"nameLineHeightType"},lineHeight:{value:C,label:"nameLineHeight"},lineHeightMobile:{value:k,label:"nameLineHeightMobile"},lineHeightTablet:{value:S,label:"nameLineHeightTablet"},transform:{value:rt,label:"nameTransform"},decoration:{value:st,label:"nameDecoration"},letterSpacing:{value:Wt,label:"nameLetterSpacing"},letterSpacingTablet:{value:qt,label:"nameLetterSpacingTablet"},letterSpacingMobile:{value:Zt,label:"nameLetterSpacingMobile"},letterSpacingType:{value:$t,label:"nameLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:ae,label:"nameSpace"},tablet:{value:le,label:"nameSpaceTablet"},mobile:{value:ie,label:"nameSpaceMobile"}},min:1,max:50,unit:{value:$e,label:"nameSpaceType"},setAttributes:t})),React.createElement(je,{title:Object(r.__)("Content","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:d||"",data:{value:d,label:"descColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:Y,label:"descLoadGoogleFonts"},fontFamily:{value:N,label:"descFontFamily"},fontWeight:{value:I,label:"descFontWeight"},fontStyle:{value:V,label:"descFontStyle"},fontSizeType:{value:F,label:"descFontSizeType"},fontSize:{value:j,label:"descFontSize"},fontSizeMobile:{value:D,label:"descFontSizeMobile"},fontSizeTablet:{value:z,label:"descFontSizeTablet"},lineHeightType:{value:W,label:"descLineHeightType"},lineHeight:{value:q,label:"descLineHeight"},lineHeightMobile:{value:$,label:"descLineHeightMobile"},lineHeightTablet:{value:Z,label:"descLineHeightTablet"},transform:{value:ot,label:"descTransform"},decoration:{value:nt,label:"descDecoration"},letterSpacing:{value:Yt,label:"descLetterSpacing"},letterSpacingTablet:{value:Kt,label:"descLetterSpacingTablet"},letterSpacingMobile:{value:Jt,label:"descLetterSpacingMobile"},letterSpacingType:{value:Xt,label:"descLetterSpacingType"}}),React.createElement(tl,{label:Object(r.__)("Bottom Margin","ultimate-addons-for-gutenberg"),data:{desktop:{value:K,label:"descSpace"},tablet:{value:J,label:"descSpaceTablet"},mobile:{value:X,label:"descSpaceMobile"}},min:1,max:50,unit:{value:Ze,label:"descSpaceType"},setAttributes:t})),React.createElement(je,{title:Object(r.__)("Company","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:p||"",data:{value:p,label:"companyColor"},setAttributes:t}),React.createElement(Wp,{label:Object(r.__)("Typography","ultimate-addons-for-gutenberg"),attributes:a,setAttributes:t,loadGoogleFonts:{value:H,label:"companyLoadGoogleFonts"},fontFamily:{value:M,label:"companyFontFamily"},fontWeight:{value:R,label:"companyFontWeight"},fontStyle:{value:B,label:"companyFontStyle"},fontSizeType:{value:P,label:"companyFontSizeType"},fontSize:{value:x,label:"companyFontSize"},fontSizeMobile:{value:G,label:"companyFontSizeMobile"},fontSizeTablet:{value:A,label:"companyFontSizeTablet"},lineHeightType:{value:U,label:"companyLineHeightType"},lineHeight:{value:E,label:"companyLineHeight"},lineHeightMobile:{value:L,label:"companyLineHeightMobile"},lineHeightTablet:{value:O,label:"companyLineHeightTablet"},transform:{value:ct,label:"companyTransform"},decoration:{value:ut,label:"companyDecoration"},letterSpacing:{value:Qt,label:"companyLetterSpacing"},letterSpacingTablet:{value:ea,label:"companyLetterSpacingTablet"},letterSpacingMobile:{value:ta,label:"companyLetterSpacingMobile"},letterSpacingType:{value:aa,label:"companyLetterSpacingType"}})),React.createElement(je,{title:Object(r.__)("Image","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Pl,xR({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:At,label:"imgpaddingTop"},valueRight:{value:Gt,label:"imgpaddingRight"},valueBottom:{value:Mt,label:"imgpaddingBottom"},valueLeft:{value:Rt,label:"imgpaddingLeft"},valueTopTablet:{value:Bt,label:"imgpaddingTopTablet"},valueRightTablet:{value:Ut,label:"imgpaddingRightTablet"},valueBottomTablet:{value:Et,label:"imgpaddingBottomTablet"},valueLeftTablet:{value:Ot,label:"imgpaddingLeftTablet"},valueTopMobile:{value:Lt,label:"imgpaddingTopMobile"},valueRightMobile:{value:Ht,label:"imgpaddingRightMobile"},valueBottomMobile:{value:Ft,label:"imgpaddingBottomMobile"},valueLeftMobile:{value:jt,label:"imgpaddingLeftMobile"},unit:{value:zt,label:"imgpaddingUnit"},mUnit:{value:Dt,label:"imgmobilePaddingUnit"},tUnit:{value:Nt,label:"imgtabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:Pt,label:"imgspacingLink"}}))),React.createElement(je,{title:Object(r.__)("Arrow & Dots","ultimate-addons-for-gutenberg"),initialOpen:!1},"dots"!==ye&&React.createElement(React.Fragment,null,React.createElement(Qa,{label:Object(r.__)("Arrow Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:fe,data:{value:fe,label:"arrowSize"},min:0,max:50,unit:{value:Ve,label:"arrowSizeType"}}),React.createElement(Qa,{label:Object(r.__)("Arrow Border Size","ultimate-addons-for-gutenberg"),setAttributes:t,value:he,data:{value:he,label:"arrowBorderSize"},min:0,max:50,unit:{value:ve,label:"arrowBorderSizeUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]}),React.createElement(Qa,{label:Object(r.__)("Arrow Border Radius","ultimate-addons-for-gutenberg"),setAttributes:t,value:_e,data:{value:_e,label:"arrowBorderRadius"},min:0,max:50,unit:{value:Te,label:"arrowBorderRadiusUnit"},units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]})),React.createElement(tl,{label:Object(r.__)("Top Margin for Dots","ultimate-addons-for-gutenberg"),data:{desktop:{value:Pe,label:"rowGap"},tablet:{value:xe,label:"rowGapTablet"},mobile:{value:Ae,label:"rowGapMobile"}},min:1,max:50,unit:{value:We,label:"rowGapType"},setAttributes:t}),React.createElement(hl,{label:Object(r.__)("Color","ultimate-addons-for-gutenberg"),colorValue:we||"",data:{value:we,label:"arrowColor"},setAttributes:t})),React.createElement(je,{title:Object(r.__)("Background","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(vi,xR({setAttributes:t,backgroundGradient:{value:Je,label:"gradientValue"},backgroundGradientColor1:{value:Xe,label:"gradientColor1"},gradientType:{value:it,label:"selectGradient"},backgroundGradientColor2:{value:Qe,label:"gradientColor2"},backgroundGradientLocation1:{value:et,label:"gradientLocation1"},backgroundGradientLocation2:{value:tt,label:"gradientLocation2"},backgroundGradientType:{value:at,label:"gradientType"},backgroundGradientAngle:{value:lt,label:"gradientAngle"},backgroundImageColor:{value:De,label:"backgroundImageColor"},overlayType:{value:Ye,label:"overlayType"},gradientOverlay:{value:!0},backgroundSize:{value:Fe,label:"backgroundSize"},backgroundRepeat:{value:ze,label:"backgroundRepeat"},backgroundAttachment:{value:Ke,label:"backgroundAttachment"},backgroundPosition:{value:He,label:"backgroundPosition"},backgroundImage:{value:Oe,label:"backgroundImage"},backgroundColor:{value:Ue,label:"backgroundColor"},backgroundType:{value:Be,label:"backgroundType"},backgroundVideoType:{value:!1}},e))),React.createElement(je,{title:Object(r.__)("Border","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Hi,{setAttributes:t,borderStyleLabel:Object(r.__)("Style","ultimate-addons-for-gutenberg"),borderWidthLabel:Object(r.__)("Width","ultimate-addons-for-gutenberg"),borderRadiusLabel:Object(r.__)("Radius","ultimate-addons-for-gutenberg"),prefix:"overall",attributes:a,deviceType:l,disableBottomSeparator:!0,disabledBorderTitle:!0})),React.createElement(je,{title:Object(r.__)("Spacing","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(tl,{label:Object(r.__)("Column Gap","ultimate-addons-for-gutenberg"),data:{desktop:{value:Ge,label:"columnGap"},tablet:{value:Me,label:"columnGapTablet"},mobile:{value:Re,label:"columnGapMobile"}},min:1,max:50,unit:{value:qe,label:"columnGapType"},setAttributes:t}),React.createElement(Pl,xR({},e,{label:Object(r.__)("Padding","ultimate-addons-for-gutenberg"),valueTop:{value:gt,label:"paddingTop"},valueRight:{value:ft,label:"paddingRight"},valueBottom:{value:mt,label:"paddingBottom"},valueLeft:{value:yt,label:"paddingLeft"},valueTopTablet:{value:ht,label:"paddingTopTablet"},valueRightTablet:{value:vt,label:"paddingRightTablet"},valueBottomTablet:{value:_t,label:"paddingBottomTablet"},valueLeftTablet:{value:Tt,label:"paddingLeftTablet"},valueTopMobile:{value:Ct,label:"paddingTopMobile"},valueRightMobile:{value:St,label:"paddingRightMobile"},valueBottomMobile:{value:kt,label:"paddingBottomMobile"},valueLeftMobile:{value:wt,label:"paddingLeftMobile"},unit:{value:pt,label:"paddingUnit"},mUnit:{value:dt,label:"mobilePaddingUnit"},tUnit:{value:bt,label:"tabletPaddingUnit"},deviceType:l,attributes:a,setAttributes:t,link:{value:xt,label:"spacingLink"}})))),React.createElement(il,xR({},rl,{parentProps:e})))))}),MR=function(e){let t="";return t+=" uagb-tm__imgicon-style-"+e.iconimgStyle+" ",t+="uagb-tm__image-position-"+e.imagePosition+" ","left"!==e.imagePosition&&"right"!==e.imagePosition||(t+="uagb-tm__image-aligned-"+e.imageAlignment+" ","none"!==e.stack&&(t+="uagb-tm-stacked-"+e.stack+" ","right"===e.imagePosition&&(t+="uagb-tm-reverse-order-"+e.stack+" "))),t+="uagb-tm__bg-type-"+e.backgroundType+" ",[t]},RR=e=>{const{attributes:t,index_value:a}=e;let l="";const i=t.test_block[a];if(i&&void 0!==i){const e=i.image,{imageWidth:o,imgTagHeight:n}=t;let r="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,s=t.imageSize;return r=void 0!==i&&void 0!==i[s]?i[s].url:l,React.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+a},React.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+a},React.createElement("img",{className:"uagb-tm-img-src",src:r,alt:e.alt,width:o,height:n,loading:"lazy"})))}return null}return null},BR=e=>{const{attributes:t,setAttributes:a,index_value:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n}=e,s=t.test_block[l];let c="";s&&void 0!==s&&(c=s.name);const u=[...t.test_block];return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:c,placeholder:Object(r.__)("Author Name","ultimate-addons-for-gutenberg"),className:"uagb-tm__author-name",onChange:e=>{const t={description:u[l].description,name:e,company:u[l].company,image:u[l].image};u[l]=t,a({test_block:u})},onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}):React.createElement(ge.RichText.Content,{tagName:"span",value:c,className:"uagb-tm__author-name"})},UR=e=>{const{attributes:t,setAttributes:a,index_value:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n}=e,s=t.test_block[l];let c="";s&&void 0!==s&&(c=s.company);const u=[...t.test_block];return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:c,className:"uagb-tm__company",onChange:e=>{const t={description:u[l].description,name:u[l].name,company:e,image:u[l].image};u[l]=t,a({test_block:u})},multiline:!1,placeholder:Object(r.__)("Company Name","ultimate-addons-for-gutenberg"),onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}):React.createElement(ge.RichText.Content,{tagName:"span",value:c,className:"uagb-tm__company"})},ER=e=>{const{attributes:t,setAttributes:a,index_value:l,mergeBlocks:i,insertBlocksAfter:o,onReplace:n}=e,s=t.test_block[l];let c="";s&&void 0!==s&&(c=s.description);const u=[...t.test_block];return"not_set"!==a?React.createElement(ge.RichText,{tagName:"div",value:c,placeholder:Object(r.__)("Write Description","ultimate-addons-for-gutenberg"),className:"uagb-tm__desc",onChange:e=>{const t={description:e,name:u[l].name,company:u[l].company,image:u[l].image};u[l]=t,a({test_block:u})},onMerge:i,onSplit:o?function(e,t){a({content:e});for(var l=arguments.length,i=new Array(l>2?l-2:0),n=2;nn([])}):React.createElement(ge.RichText.Content,{tagName:"div",value:c,className:"uagb-tm__desc"})},OR=a(144),LR=0,HR={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},FR={};FR.locals=OR.a.locals||{},FR.use=function(){return LR++||(AR=we()(OR.a,HR)),FR},FR.unuse=function(){LR>0&&!--LR&&(AR(),AR=null)};var jR=FR;function zR(){return(zR=Object.assign||function(e){for(var t=1;t{var t,a,l;Object(B.useLayoutEffect)(()=>(jR.use(),()=>{jR.unuse()}),[]);const{className:i,setAttributes:o,attributes:n,deviceType:r,name:s}=e,c=s.replace("uagb/",""),{block_id:u,test_block:p,imagePosition:d,columns:b,tcolumns:g,mcolumns:m,test_item_count:y,pauseOnHover:f,infiniteLoop:h,transitionSpeed:v,arrowDots:_,arrowSize:T,arrowBorderSize:C,arrowBorderRadius:S,autoplay:k,autoplaySpeed:w,arrowColor:P,equalHeight:x,imageWidth:A}=n,G=Object(B.useRef)(),M=e=>{let{onClick:t}=e;return React.createElement("button",{type:"button","data-role":"none",className:"slick-next slick-arrow","aria-label":"Next",tabIndex:"0",style:{borderColor:P,borderRadius:S,borderWidth:us(C,"arrowBorderSize",c)},onClick:t},se.carousel_right)},R=e=>{let{onClick:t}=e;return React.createElement("button",{type:"button","data-role":"none",className:"slick-prev slick-arrow","aria-label":"Previous",tabIndex:"0",style:{borderColor:P,borderRadius:S,borderWidth:us(C,"arrowBorderSize",c)},onClick:t},se.carousel_left)},U="dots"===_||"arrows_dots"===_,E="arrows"===_||"arrows_dots"===_,O=x?"uagb-post__carousel_equal-height":"",L={accessibility:!1,slidesToShow:us("Desktop"===r?b:"Tablet"===r?g:m,"columns",c),slidesToScroll:1,autoplaySpeed:us(w,"autoplaySpeed",c),autoplay:k,infinite:h,pauseOnHover:f,speed:us(v,"transitionSpeed",c),arrows:E,dots:U,rtl:!1,afterChange:()=>{x&&uagb_carousel_height(u)},draggable:!1,nextArrow:React.createElement(M,{arrowSize:T,onClick:G.slickNext}),prevArrow:React.createElement(R,{arrowSize:T,onClick:G.slickPrev})},H=y===b?"uagb-post__carousel_notset":"",F=y===g?"uagb-post__carousel_notset-tablet":"",j=y===m?"uagb-post__carousel_notset-mobile":"",z=(null===(t=n.test_block[0])||void 0===t?void 0:t.image)||(null===(a=n.test_block[1])||void 0===a?void 0:a.image)||(null===(l=n.test_block[2])||void 0===l?void 0:l.image);let D="",N="";if(z){const e=z;if(null!=e&&""!==e&&(N=e.url),""!==N){const t=e.sizes,a=n.imageSize;D=void 0!==t&&void 0!==t[a]?t[a].url:N}}return Object(B.useEffect)(()=>{Zg(D,o,{type:"width",value:A})},[A,D]),React.createElement("div",{className:Be()(i,"uagb-slick-carousel uagb-tm__arrow-outside","uagb-editor-preview-mode-"+r.toLowerCase(),"uagb-block-"+u,""+O,H,F,j)},React.createElement(vS.a,zR({className:Be()("is-carousel","uagb-tm__columns-"+us(b,"columns",c),"uagb-tm__items")},L,{ref:G}),p.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(n)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"===d||"left"===d)&&React.createElement(RR,{attributes:n,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement(ER,{attributes:n,setAttributes:o,props:e,index_value:a})),React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"===d&&React.createElement(RR,{attributes:n,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:n,setAttributes:o,props:e,index_value:a}),React.createElement(UR,{attributes:n,setAttributes:o,props:e,index_value:a}))))),"right"===d&&React.createElement(RR,{attributes:n,index_value:a}))))))}),NR=function(e,t){if(!e)return"";void 0!==t&&""!==t||(t=100),t=void 0!==t?t/100:1,e=(e=e.replace("#","")).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,a,l){return t+t+a+a+l+l}));const a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),l=a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null;return l?"rgba("+l.r+","+l.g+","+l.b+","+t+")":""},IR=Object(B.memo)(e=>{let{attributes:t}=e;const{nameLoadGoogleFonts:a,nameFontFamily:l,nameFontWeight:i,companyLoadGoogleFonts:o,companyFontFamily:n,companyFontWeight:r,descLoadGoogleFonts:s,descFontFamily:c,descFontWeight:u}=t;let p,d,b;if(!0===a){const e={google:{families:[l+(i?":"+i:"")]}};p=React.createElement(O,{config:e})}if(!0===o){const e={google:{families:[n+(r?":"+r:"")]}};d=React.createElement(O,{config:e})}if(!0===s){const e={google:{families:[c+(u?":"+u:"")]}};b=React.createElement(O,{config:e})}return React.createElement(React.Fragment,null,p,d,b)}),VR=Object(L.compose)(ls,fe)(e=>{const{setAttributes:t,attributes:a,attributes:{backgroundOpacity:l,backgroundImageColor:i,backgroundType:o,overlayType:n,gradientColor1:r,gradientColor2:s,gradientLocation1:c,gradientLocation2:u,gradientType:p,gradientAngle:d,gradientPosition:b,borderStyle:g,borderWidth:m,borderRadius:y,borderColor:f,borderHoverColor:h,equalHeight:v,UAGHideDesktop:_,UAGHideTab:T,UAGHideMob:C,block_id:S},isSelected:k,clientId:w,name:P,deviceType:x}=e;Object(B.useEffect)(()=>{if(101!==l&&"image"===o&&"gradient"===n){const e=NR(pl(r),l),a=NR(pl(s),l);let i;i="linear"===p?`linear-gradient(${d}deg, ${e} ${c}%, ${a} ${u}%)`:`radial-gradient( at ${b}, ${e} ${c}%, ${a} ${u}%)`,t({gradientValue:i})}if("image"===o&&101!==l){const e=NR(pl(i),l);t({backgroundImageColor:e}),t({backgroundOpacity:101})}(m||y||f||h||g)&&ue("overall",{label:"borderWidth",value:m},{label:"borderRadius",value:y},{label:"borderColor",value:f},{label:"borderHoverColor",value:h},{label:"borderStyle",value:g},t,a)},[]),Object(B.useEffect)(()=>{v?uagb_carousel_height(S):uagb_carousel_unset_height(S)},[a,x]),Object(B.useEffect)(()=>{he(e)},[_,T,C,x]),Object(B.useEffect)(()=>{ys()},[x]);const A=Object(B.useMemo)(()=>function(e,t,a,l){const i=a.replace("uagb/",""),o=l.toLowerCase(),{block_id:n,headingAlign:r,headingAlignTablet:s,headingAlignMobile:c,companyColor:u,descColor:p,authorColor:d,nameFontSizeType:b,nameFontSize:g,nameFontSizeTablet:m,nameFontSizeMobile:y,nameFontFamily:f,nameFontWeight:h,nameLineHeightType:v,nameLineHeight:_,nameLineHeightTablet:T,nameLineHeightMobile:C,companyFontSizeType:S,companyFontSize:k,companyFontSizeTablet:w,companyFontSizeMobile:P,companyFontFamily:x,companyFontWeight:A,companyLineHeightType:G,companyLineHeight:M,companyLineHeightTablet:R,companyLineHeightMobile:B,descFontSizeType:U,descFontSize:E,descFontSizeTablet:O,descFontSizeMobile:L,descFontFamily:H,descFontWeight:F,descLineHeightType:j,descLineHeight:z,descLineHeightTablet:D,descLineHeightMobile:N,descSpace:I,descSpaceTablet:V,descSpaceMobile:W,nameSpace:q,nameSpaceTablet:Z,nameSpaceMobile:$,imageWidth:Y,imageWidthTablet:K,imageWidthMobile:J,rowGap:X,rowGapTablet:Q,rowGapMobile:ee,columnGap:te,columnGapTablet:le,columnGapMobile:ie,backgroundType:oe,backgroundColor:ne,backgroundImage:re,backgroundPosition:se,backgroundSize:ce,backgroundRepeat:ue,backgroundImageColor:pe,arrowColor:de,test_item_count:be,columns:ge,arrowDots:me,arrowSize:ye,imageWidthType:fe,arrowSizeType:he,rowGapType:ve,columnGapType:_e,descSpaceType:Te,nameSpaceType:Ce,gradientValue:Se,descTransform:ke,descDecoration:we,nameTransform:Pe,nameDecoration:xe,companyTransform:Ae,companyDecoration:Ge,paddingUnit:Me,mobilePaddingUnit:Re,tabletPaddingUnit:Be,paddingTop:Ue,paddingBottom:Ee,paddingLeft:Oe,paddingRight:Le,paddingTopTablet:He,paddingRightTablet:Fe,paddingBottomTablet:je,paddingLeftTablet:ze,paddingTopMobile:De,paddingRightMobile:Ne,paddingBottomMobile:Ie,paddingLeftMobile:Ve,imgpaddingTop:We,imgpaddingRight:qe,imgpaddingBottom:Ze,imgpaddingLeft:$e,imgpaddingTopTablet:Ye,imgpaddingRightTablet:Ke,imgpaddingBottomTablet:Je,imgpaddingLeftTablet:Xe,imgpaddingTopMobile:Qe,imgpaddingRightMobile:et,imgpaddingBottomMobile:tt,imgpaddingLeftMobile:at,imgpaddingUnit:lt,imgmobilePaddingUnit:it,imgtabletPaddingUnit:ot,nameFontStyle:nt,companyFontStyle:rt,descFontStyle:st,overallBorderHColor:ct,nameLetterSpacing:ut,nameLetterSpacingTablet:pt,nameLetterSpacingMobile:dt,nameLetterSpacingType:bt,descLetterSpacing:gt,descLetterSpacingTablet:mt,descLetterSpacingMobile:yt,descLetterSpacingType:ft,companyLetterSpacing:ht,companyLetterSpacingTablet:vt,companyLetterSpacingMobile:_t,companyLetterSpacingType:Tt,overlayType:Ct,gradientColor1:St,gradientColor2:kt,gradientLocation1:wt,gradientLocation2:Pt,gradientAngle:xt,selectGradient:At,gradientType:Gt}=e,Mt=us(ye,"arrowSize",i),Rt=us(be,"test_item_count",i),Bt=us(X,"rowGap",i),Ut=us(q,"nameSpace",i),Et=us(I,"descSpace",i),Ot=us(te,"columnGap",i),Lt=us(ge,"columns",i),Ht=us(Y,"imageWidth",i),Ft=isNaN(le)?Ot:le,jt=isNaN(ie)?Ft:ie,zt=Wr(e,"overall"),Dt=Wr(e,"overall","tablet"),Nt=Wr(e,"overall","mobile");let It="center";"left"===r?It="flex-start":"right"===r&&(It="flex-end");const Vt=se.replace("-"," "),Wt={" .uagb-testimonial__wrap":{"margin-bottom":Vr(Bt,ve),"padding-left":Vr(Ot/2,_e),"padding-right":Vr(Ot/2,_e)}," .uagb-testimonial__wrap .uagb-tm__image-content":{"padding-top":Vr(We,lt),"padding-right":Vr(qe,lt),"padding-bottom":Vr(Ze,lt),"padding-left":Vr($e,lt)}," .uagb-tm__image-position-top .uagb-tm__image-content":{"justify-content":It}," .uagb-tm__image img":{width:Vr(Ht,fe),"max-width":Vr(Ht,fe)}," .uagb-tm__content":{"text-align":r,"padding-top":Vr(Ue,Me),"padding-bottom":Vr(Ee,Me),"padding-left":Vr(Oe,Me),"padding-right":Vr(Le,Me)}," .uagb-tm__author-name":{"font-size":Vr(g,b),"font-family":f,"font-weight":h,"font-style":nt,"text-decoration":xe,"text-transform":Pe,"line-height":Vr(_,v),color:d,"margin-bottom":Vr(Ut,Ce),"letter-spacing":Vr(ut,bt)}," .uagb-tm__company":{"font-size":Vr(k,S),"font-family":x,"font-weight":A,"font-style":rt,"text-decoration":Ge,"text-transform":Ae,"line-height":Vr(M,G),color:u,"letter-spacing":Vr(ht,Tt)}," .uagb-tm__desc":{"font-size":Vr(E,U),"font-family":H,"font-style":st,"text-decoration":we,"text-transform":ke,"font-weight":F,"line-height":Vr(z,j),color:p,"margin-bottom":Vr(Et,Te),"letter-spacing":Vr(gt,ft)}," ul.slick-dots li button:before":{color:de}," ul.slick-dots li.slick-active button:before":{color:de}," .slick-arrow svg":{fill:de,height:Vr(Mt,he),width:Vr(Mt,he)}," .uagb-testimonial__wrap .uagb-tm__content":zt," .uagb-testimonial__wrap .uagb-tm__content:hover":{"border-color":ct}};Rt===Lt&&(Wt[".uagb-slick-carousel"]={padding:"0"}),"dots"===me&&(Wt[" .uagb-slick-carousel.uagb-tm__arrow-outside"]={padding:"0 0 35px 0"}),1!==Rt&&Rt!==Lt||(Wt[" .uagb-slick-carousel.uagb-tm__arrow-outside"]={padding:"0"});const qt={" .uagb-tm__image img":{width:Vr(J,fe),"max-width":Vr(J,fe)}," .uagb-testimonial__wrap":{"padding-left":Vr(jt/2,_e),"padding-right":Vr(jt/2,_e),"margin-bottom":Vr(ee,ve)}," .block-editor-rich-text__editable.uagb-tm__author-name":{"margin-bottom":Vr($,Ce),"letter-spacing":Vr(dt,bt)}," .uagb-tm__desc":{"margin-bottom":Vr(W,Te),"font-size":Vr(L,U),"line-height":Vr(N,j),"letter-spacing":Vr(yt,ft)}," .uagb-testimonial__wrap .uagb-tm__content":Nt," .uagb-testimonial__wrap .uagb-tm__image-content":{"text-align":c,"padding-top":Vr(Qe,it),"padding-right":Vr(et,it),"padding-bottom":Vr(tt,it),"padding-left":Vr(at,it)}," .uagb-tm__company":{"font-size":Vr(P,S),"line-height":Vr(B,G),"letter-spacing":Vr(_t,Tt)}," .uagb-tm__author-name":{"font-size":Vr(y,b),"line-height":Vr(C,v)}," .uagb-tm__content":{"text-align":c,"padding-top":Vr(De,Re),"padding-bottom":Vr(Ie,Re),"padding-left":Vr(Ve,Re),"padding-right":Vr(Ne,Re)}},Zt={" .uagb-tm__image img":{width:Vr(K,fe),"max-width":Vr(K,fe)}," .block-editor-rich-text__editable.uagb-tm__author-name":{"margin-bottom":Vr(Z,Ce),"letter-spacing":Vr(pt,bt)}," .uagb-testimonial__wrap":{"padding-left":Vr(Ft/2,_e),"padding-right":Vr(Ft/2,_e),"margin-bottom":Vr(Q,ve)}," .uagb-testimonial__wrap .uagb-tm__content":Dt," .uagb-testimonial__wrap .uagb-tm__image-content":{"text-align":s,"padding-top":Vr(Ye,ot),"padding-right":Vr(Ke,ot),"padding-bottom":Vr(Je,ot),"padding-left":Vr(Xe,ot)}," .uagb-tm__content":{"text-align":s,"padding-top":Vr(He,Be),"padding-bottom":Vr(je,Be),"padding-left":Vr(ze,Be),"padding-right":Vr(Fe,Be)}," .uagb-tm__desc":{"margin-bottom":Vr(V,Te),"font-size":Vr(O,U),"line-height":Vr(D,j),"letter-spacing":Vr(mt,ft)}," .uagb-tm__company":{"font-size":Vr(w,S),"line-height":Vr(R,G),"letter-spacing":Vr(vt,Tt)}," .uagb-tm__author-name":{"font-size":Vr(m,b),"line-height":Vr(T,v)}};let $t;switch(At){case"basic":$t=Se;break;case"advanced":switch(Gt){case"linear":$t=`linear-gradient(${xt}deg, ${St} ${wt}%, ${kt} ${Pt}%)`;break;case"radial":$t=`radial-gradient( at center center, ${St} ${wt}%, ${kt} ${Pt}%)`;break;default:$t=""}break;default:$t=""}"gradient"===oe&&(Wt[" .uagb-tm__content"]["background-image"]=$t),"image"===oe?"color"===Ct?Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay"]={"background-color":pe}:"gradient"===Ct&&(Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay"]={"background-image":$t}):Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content"]={"background-color":ne},Wt[" .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content"]={"background-image":re?`url(${re.url})`:null,"background-position":Vt,"background-repeat":ue,"background-size":ce};let Yt="";const Kt=".uagb-block-"+n;return Yt=ae(Wt,Kt),"tablet"!==o&&"mobile"!==o||(Yt+=ae(Zt,""+Kt,!0,"tablet"),"mobile"===o&&(Yt+=ae(qt,""+Kt,!0,"mobile"))),Yt}(a,0,P,x),[a,x]);return React.createElement(React.Fragment,null,React.createElement(me,{blockStyling:A}),React.createElement(IR,{attributes:a}),k&&React.createElement(GR,e),React.createElement(DR,e))}),WR=e=>{const{attributes:t,index_value:a}=e;let l="";const i=t.test_block[a];if(i&&void 0!==i){const e=i.image;let o="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,n=t.imageSize;return o=void 0!==i&&void 0!==i[n]?i[n].url:l,React.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+a},React.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+a},React.createElement("img",{className:"",src:o,alt:e.alt})))}return null}return null},qR=e=>{const{attributes:t,index_value:a}=e;let l="";const i=t.test_block[a];if(i&&void 0!==i){const e=i.image;let o="";if(null!=e&&""!==e&&(l=e.url),""!==l){const i=e.sizes,n=t.imageSize;return o=void 0!==i&&void 0!==i[n]?i[n].url:l,React.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+a},React.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+a},React.createElement("img",{className:"uagb-tm-img-src",src:o,alt:e.alt})))}return null}return null};const ZR=[];for(var $R=1;$R<=3;$R++){var YR="Company"+$R;ZR.push({description:"I have been working with these guys since years now! With lots of hard work and timely communication they made sure they delivered the best to me. Highly recommended!",name:"John Doe ",company:YR,image:""})}const KR=ce("overall"),JR={test_item_count:{type:"number",default:3},classMigrate:{type:"boolean",default:!1},test_block:{type:"array",default:ZR},headingAlign:{type:"string",default:"center"},descColor:{type:"string",default:"#333"},companyColor:{type:"string",default:"#888888"},authorColor:{type:"string",default:"#333"},iconimgStyle:{type:"string",default:"circle"},imagePosition:{type:"string",default:"bottom"},imageAlignment:{type:"string",default:"top"},nameFontSizeType:{type:"string",default:"px"},nameFontSize:{type:"number"},nameFontSizeTablet:{type:"number"},nameFontSizeMobile:{type:"number"},nameFontFamily:{type:"string",default:"Default"},nameFontWeight:{type:"string"},nameFontSubset:{type:"string"},nameLineHeightType:{type:"string",default:"em"},nameLineHeight:{type:"number"},nameLineHeightTablet:{type:"number"},nameLineHeightMobile:{type:"number"},nameLoadGoogleFonts:{type:"boolean",default:!1},companyFontSizeType:{type:"string",default:"px"},companyFontSize:{type:"number"},companyFontSizeTablet:{type:"number"},companyFontSizeMobile:{type:"number"},companyFontFamily:{type:"string",default:"Default"},companyFontWeight:{type:"string"},companyFontSubset:{type:"string"},companyLineHeightType:{type:"string",default:"em"},companyLineHeight:{type:"number"},companyLineHeightTablet:{type:"number"},companyLineHeightMobile:{type:"number"},companyLoadGoogleFonts:{type:"boolean",default:!1},descFontSizeType:{type:"string",default:"px"},descFontSize:{type:"number"},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},nameSpace:{type:"number",default:5},descSpace:{type:"number",default:15},block_id:{type:"string",default:"not_set"},authorSpace:{type:"number",default:5},imgVrPadding:{type:"number",default:10},imgHrPadding:{type:"number",default:10},imgTopPadding:{type:"number",default:10},imgBottomPadding:{type:"number",default:10},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",default:60},columns:{type:"number",default:1},tcolumns:{type:"number",default:1},mcolumns:{type:"number",default:1},pauseOnHover:{type:"boolean",default:!0},infiniteLoop:{type:"boolean",default:!0},transitionSpeed:{type:"number",default:500},autoplay:{type:"boolean",default:!0},autoplaySpeed:{type:"number",default:2e3},arrowDots:{type:"string",default:"arrows_dots"},arrowSize:{type:"number",default:20},arrowBorderSize:{type:"number",default:1},arrowBorderRadius:{type:"number",default:0},arrowColor:{type:"string",default:"#aaaaaa"},rowGap:{type:"number",default:10},columnGap:{type:"number",default:10},contentPadding:{type:"number",default:5},backgroundType:{type:"string"},backgroundImage:{type:"object"},backgroundPosition:{type:"string",default:"center-center"},backgroundSize:{type:"string",default:"cover"},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundColor:{type:"string"},backgroundImageColor:{type:"string"},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number",default:"1"},borderRadius:{type:"number"},borderColor:{type:"string"},backgroundOpacity:{type:"number",default:50},arrowColor:{type:"string",default:"#333"},stack:{type:"string",default:"tablet"},nameSpaceType:{type:"string",default:"px"},descSpaceType:{type:"string",default:"px"},imgpaddingUnit:{type:"string",default:"px"},arrowBorderSizeUnit:{type:"string",default:"px"},arrowBorderRadiusUnit:{type:"string",default:"px"},arrowSizeType:{type:"string",default:"px"},rowGapType:{type:"string",default:"px"},columnGapType:{type:"string",default:"px"},paddingUnit:{type:"string",default:"px"},...KR},XR=[];for(let e=1;e<=3;e++){const e="I have been working with these guys for years now! With lots of hard work and timely communication, they made sure they delivered the best to me. Highly recommended!",t="John Doe ",a="Company Name";XR.push({description:e,name:t,company:a,image:""})}var QR=[{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes,m=[];return m.push({block_id:t,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,arrowColor:g}),React.createElement(React.Fragment,null,React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside"),id:"uagb-testimonial-"+t,"data-slider":JSON.stringify(m)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a})))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside"),id:"uagb-testimonial-"+t},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(qR,{attributes:e.attributes,index_value:a}))))))}},{attributes:JR,save(e){const{block_id:t,className:a,columns:l,autoplaySpeed:i,autoplay:o,infiniteLoop:n,pauseOnHover:r,transitionSpeed:s,tcolumns:c,arrowSize:u,mcolumns:p,test_block:d,imagePosition:b,arrowColor:g}=e.attributes;return React.createElement("div",{className:Be()(a,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+l,"uagb-tm__items")},d.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"==b||"left"==b)&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(B.Fragment,null,React.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+a},React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))),React.createElement("div",{className:"uagb-tm__meta"},React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}),React.createElement(B.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})))))),"right"==b&&React.createElement(WR,{attributes:e.attributes,index_value:a}))))))}},{attributes:{test_item_count:{type:"number",default:3},classMigrate:{type:"boolean",default:!1},test_block:{type:"array",default:XR},headingAlign:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align"}},headingAlignTablet:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align-tablet"}},headingAlignMobile:{type:"string",default:"center",UAGCopyPaste:{styleType:"main-title-align-mobile"}},descColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"desc-color"}},companyColor:{type:"string",default:"#888888",UAGCopyPaste:{styleType:"prefix-color"}},authorColor:{type:"string",UAGCopyPaste:{styleType:"author-color"},default:"#333"},iconimgStyle:{type:"string",UAGCopyPaste:{styleType:"image-style"},default:"circle"},imagePosition:{type:"string",UAGCopyPaste:{styleType:"image-position"},default:"bottom"},imageAlignment:{type:"string",UAGCopyPaste:{styleType:"image-align"},default:"top"},nameFontSizeType:{type:"string",UAGCopyPaste:{styleType:"author-font-size-type"},default:"px"},nameFontSize:{type:"number",default:20,UAGCopyPaste:{styleType:"author-font-size"}},nameFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"author-font-size-tablet"}},nameFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"author-font-size-mobile"}},nameFontFamily:{type:"string",UAGCopyPaste:{styleType:"author-font-family"},default:"Default"},nameFontWeight:{type:"string",default:"500",UAGCopyPaste:{styleType:"author-font-weight"}},nameFontStyle:{type:"string",UAGCopyPaste:{styleType:"author-font-style"}},nameLineHeightType:{type:"string",UAGCopyPaste:{styleType:"author-line-height-type"},default:"em"},nameLineHeight:{type:"number",default:2,UAGCopyPaste:{styleType:"author-line-height"}},nameLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"author-line-height-tablet"}},nameLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"author-line-height-mobile"}},nameLoadGoogleFonts:{type:"boolean",default:!1},companyFontSizeType:{type:"string",UAGCopyPaste:{styleType:"prefix-font-size-type"},default:"px"},companyFontSize:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size"}},companyFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-tablet"}},companyFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-font-size-mobile"}},companyFontFamily:{type:"string",UAGCopyPaste:{styleType:"prefix-font-family"},default:"Default"},companyFontWeight:{type:"string",UAGCopyPaste:{styleType:"prefix-font-weight"}},companyFontStyle:{type:"string",UAGCopyPaste:{styleType:"prefix-font-style"}},companyLineHeightType:{type:"string",UAGCopyPaste:{styleType:"prefix-line-height-type"},default:"em"},companyLineHeight:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height"}},companyLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-tablet"}},companyLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"prefix-line-height-mobile"}},companyLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"prefix-load-google-fonts"}},descFontSizeType:{type:"string",UAGCopyPaste:{styleType:"desc-font-size-type"},default:"px"},descFontSize:{type:"number",default:18,UAGCopyPaste:{styleType:"desc-font-size"}},descFontSizeTablet:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-tablet"}},descFontSizeMobile:{type:"number",UAGCopyPaste:{styleType:"desc-font-size-mobile"}},descFontFamily:{type:"string",UAGCopyPaste:{styleType:"desc-font-family"},default:"Default"},descFontWeight:{type:"string",default:"400",UAGCopyPaste:{styleType:"desc-font-weight"}},descFontStyle:{type:"string",UAGCopyPaste:{styleType:"desc-font-style"}},descLineHeightType:{type:"string",default:"em",UAGCopyPaste:{styleType:"desc-line-height-type"}},descLineHeight:{type:"number",default:1.6,UAGCopyPaste:{styleType:"desc-line-height"}},descLineHeightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-tablet"}},descLineHeightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-line-height-mobile"}},descLoadGoogleFonts:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"desc-load-google-fonts"}},nameSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"author-bottom-margin"}},nameSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"author-bottom-margin-mobile"}},nameSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"author-bottom-margin-tablet"}},descSpace:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin"},default:20},descSpaceTablet:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-tablet"}},descSpaceMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-margin-mobile"}},block_id:{type:"string",default:"not_set"},authorSpace:{type:"number",default:5,UAGCopyPaste:{styleType:"author-bottom-margin"}},imgVrPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"image-vertical-padding"}},imgHrPadding:{type:"number",default:10,UAGCopyPaste:{styleType:"image-horizontal-padding"}},imgTopPadding:{type:"number",UAGCopyPaste:{styleType:"image-top-padding"},default:10},imgBottomPadding:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding"},default:10},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",UAGCopyPaste:{styleType:"image-size"},default:"thumbnail"},imageWidth:{type:"number",UAGCopyPaste:{styleType:"image-width"},default:60},imageWidthMobile:{type:"number",UAGCopyPaste:{styleType:"image-width-mobile"}},imageWidthTablet:{type:"number",UAGCopyPaste:{styleType:"image-width-tablet"}},columns:{type:"number",default:1},tcolumns:{type:"number",default:1},mcolumns:{type:"number",default:1},pauseOnHover:{type:"boolean",default:!0},infiniteLoop:{type:"boolean",default:!0},transitionSpeed:{type:"number",default:500},autoplay:{type:"boolean",default:!0},autoplaySpeed:{type:"number",default:2e3},arrowDots:{type:"string",default:"arrows_dots"},arrowSize:{type:"number",default:20,UAGCopyPaste:{styleType:"arrow-size"}},arrowBorderSize:{type:"number",default:0,UAGCopyPaste:{styleType:"arrow-border-size"}},arrowBorderSizeUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"arrow-unit"}},arrowBorderRadius:{type:"number",default:0,UAGCopyPaste:{styleType:"arrow-border-radius"}},arrowBorderRadiusUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"arrow-unit"}},arrowColor:{type:"string",default:"#333",UAGCopyPaste:{styleType:"arrow-color"}},rowGap:{type:"number",default:10,UAGCopyPaste:{styleType:"row-gap"}},rowGapMobile:{type:"number",UAGCopyPaste:{styleType:"row-gap-mobile"}},rowGapTablet:{type:"number",UAGCopyPaste:{styleType:"row-gap-tablet"}},columnGap:{type:"number",default:10,UAGCopyPaste:{styleType:"column-gap"}},columnGapMobile:{type:"number",UAGCopyPaste:{styleType:"column-gap-mobile"}},columnGapTablet:{type:"number",UAGCopyPaste:{styleType:"column-gap-tablet"}},contentPadding:{type:"number",default:5,UAGCopyPaste:{styleType:"content-padding"}},backgroundType:{type:"string",default:"none",UAGCopyPaste:{styleType:"column-bg-type"}},backgroundImage:{type:"object",UAGCopyPaste:{styleType:"column-bg-image"}},backgroundPosition:{type:"string",UAGCopyPaste:{styleType:"column-bg-position"},default:"center-center"},backgroundSize:{type:"string",default:"cover",UAGCopyPaste:{styleType:"column-bg-size"}},backgroundRepeat:{type:"string",default:"no-repeat",UAGCopyPaste:{styleType:"column-bg-repeat"}},backgroundColor:{type:"string",UAGCopyPaste:{styleType:"column-bg-color"}},backgroundImageColor:{type:"string",UAGCopyPaste:{styleType:"column-bg-image-color"}},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number"},borderRadius:{type:"number"},borderColor:{type:"string"},backgroundOpacity:{type:"number",UAGCopyPaste:{styleType:"column-bg-opacity"}},stack:{type:"string",default:"tablet"},imageWidthType:{type:"string",UAGCopyPaste:{styleType:"image-width-type"},default:"px"},arrowSizeType:{type:"string",default:"px",UAGCopyPaste:{styleType:"arrow-size-type"}},rowGapType:{type:"string",default:"px",UAGCopyPaste:{styleType:"row-gap-unit"}},columnGapType:{type:"string",default:"px",UAGCopyPaste:{styleType:"column-gap-unit"}},descSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-bottom-margin-unit"}},nameSpaceType:{type:"string",default:"px",UAGCopyPaste:{styleType:"author-bottom-margin-type"}},borderHoverColor:{type:"string"},overlayType:{type:"string",UAGCopyPaste:{styleType:"column-overlay-type"},default:"color"},backgroundAttachment:{type:"string",UAGCopyPaste:{styleType:"column-bg-attachment"}},gradientValue:{type:"string",default:"linear-gradient(90deg, rgb(6, 147, 227, 0.5) 0%, rgb(155, 81, 224, 0.5) 100%)",UAGCopyPaste:{styleType:"column-gradient-value"}},descTransform:{type:"string",UAGCopyPaste:{styleType:"desc-transform"}},descDecoration:{type:"string",UAGCopyPaste:{styleType:"desc-decoration"}},nameTransform:{type:"string",UAGCopyPaste:{styleType:"author-transform"}},nameDecoration:{type:"string",UAGCopyPaste:{styleType:"author-decoration"}},companyTransform:{type:"string",UAGCopyPaste:{styleType:"prefix-transform"}},companyDecoration:{type:"string",UAGCopyPaste:{styleType:"prefix-decoration"}},paddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit"}},mobilePaddingUnit:{type:"string",UAGCopyPaste:{styleType:"desc-padding-unit-mobile"},default:"px"},tabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-padding-unit-tablet"}},paddingTop:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding"}},paddingBottom:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding"}},paddingLeft:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding"}},paddingRight:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding"}},paddingTopTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingRightTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingBottomTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingLeftTablet:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-tablet"}},paddingTopMobile:{type:"number",UAGCopyPaste:{styleType:"desc-top-padding-mobile"}},paddingRightMobile:{type:"number",UAGCopyPaste:{styleType:"desc-right-padding-mobile"}},paddingBottomMobile:{type:"number",UAGCopyPaste:{styleType:"desc-bottom-padding-mobile"}},paddingLeftMobile:{type:"number",UAGCopyPaste:{styleType:"desc-left-padding-mobile"}},imgspacingLink:{type:"boolean"},spacingLink:{type:"boolean"},imgpaddingTop:{type:"number",UAGCopyPaste:{styleType:"image-top-padding"}},imgpaddingRight:{type:"number",UAGCopyPaste:{styleType:"image-right-padding"}},imgpaddingBottom:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding"}},imgpaddingLeft:{type:"number",UAGCopyPaste:{styleType:"image-left-padding"}},imgpaddingTopTablet:{type:"number",UAGCopyPaste:{styleType:"image-top-padding-tablet"}},imgpaddingRightTablet:{type:"number",UAGCopyPaste:{styleType:"image-right-padding-tablet"}},imgpaddingBottomTablet:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding-tablet"}},imgpaddingLeftTablet:{type:"number",UAGCopyPaste:{styleType:"image-left-padding-tablet"}},imgpaddingTopMobile:{type:"number",UAGCopyPaste:{styleType:"image-top-padding-mobile"}},imgpaddingRightMobile:{type:"number",UAGCopyPaste:{styleType:"image-right-padding-mobile"}},imgpaddingBottomMobile:{type:"number",UAGCopyPaste:{styleType:"image-bottom-padding-mobile"}},imgpaddingLeftMobile:{type:"number",UAGCopyPaste:{styleType:"image-left-padding-mobile"}},imgpaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-padding-unit"}},imgmobilePaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-padding-unit-mobile"}},imgtabletPaddingUnit:{type:"string",default:"px",UAGCopyPaste:{styleType:"image-padding-unit-tablet"}},gradientColor1:{type:"string",UAGCopyPaste:{styleType:"column-gradient-color-1"}},gradientColor2:{type:"string",UAGCopyPaste:{styleType:"column-gradient-color-2"}},gradientType:{type:"string",UAGCopyPaste:{styleType:"column-gradient-type"},default:"linear"},gradientLocation1:{type:"number",default:0,UAGCopyPaste:{styleType:"column-gradient-location-1"}},gradientLocation2:{type:"number",UAGCopyPaste:{styleType:"column-gradient-location-2"},default:100},gradientAngle:{type:"number",UAGCopyPaste:{styleType:"column-gradient-angle"},default:0},gradientPosition:{type:"string",UAGCopyPaste:{styleType:"column-gradient-position"},default:"center center"},isPreview:{type:"boolean",default:!1},equalHeight:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"post-equal-height"}},...KR,nameLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing"}},nameLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-tablet"}},nameLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"main-title-letter-spacing-mobile"}},nameLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"main-title-letter-spacing-type"}},descLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},descLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},descLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},descLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}},companyLetterSpacing:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing"}},companyLetterSpacingTablet:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-tablet"}},companyLetterSpacingMobile:{type:"number",UAGCopyPaste:{styleType:"desc-letter-spacing-mobile"}},companyLetterSpacingType:{type:"string",default:"px",UAGCopyPaste:{styleType:"desc-letter-spacing-type"}}},save(e){const{block_id:t,className:a,columns:l,tcolumns:i,mcolumns:o,test_block:n,imagePosition:r,equalHeight:s,test_item_count:c}=e.attributes,u=s?"uagb-post__carousel_equal-height":"",p=c===l?"uagb-post__carousel_notset":"",d=c===i?"uagb-post__carousel_notset-tablet":"",b=c===o?"uagb-post__carousel_notset-mobile":"";return React.createElement("div",{className:Be()(a,"uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t,""+u,p,d,b)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+us(l,"columns","testimonial"),"uagb-tm__items")},n.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"===r||"left"===r)&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})),React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"===r&&React.createElement(qR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"===r&&React.createElement(qR,{attributes:e.attributes,index_value:a}))))))}}];a(378);let eB={};eB=Object(F.applyFilters)("uagb/testimonial",ss(eB)),Object(de.registerBlockType)("uagb/testimonial",{...eB,title:Object(r.__)("Testimonials","ultimate-addons-for-gutenberg"),description:Object(r.__)("Display customer testimonials in customizable layouts.","ultimate-addons-for-gutenberg"),icon:se.testimonial,keywords:[Object(r.__)("testimonial","ultimate-addons-for-gutenberg"),Object(r.__)("uag","ultimate-addons-for-gutenberg")],supports:{anchor:!0},attributes:mt,category:uagb_blocks_info.category,edit:e=>e.attributes.isPreview?React.createElement(rs,{image:"testimonial"}):React.createElement(VR,e),save:function(e){const{block_id:t,className:a,columns:l,tcolumns:i,mcolumns:o,test_block:n,imagePosition:r,equalHeight:s,test_item_count:c}=e.attributes,u=s?"uagb-post__carousel_equal-height":"",p=c===l?"uagb-post__carousel_notset":"",d=c===i?"uagb-post__carousel_notset-tablet":"",b=c===o?"uagb-post__carousel_notset-mobile":"";return React.createElement("div",{className:Be()(a,"uagb-slick-carousel uagb-tm__arrow-outside","uagb-block-"+t,""+u,p,d,b)},React.createElement("div",{className:Be()("is-carousel","uagb-tm__columns-"+us(l,"columns","testimonial"),"uagb-tm__items")},n.map((t,a)=>React.createElement("div",{className:Be()("uagb-testimonial__wrap",...MR(e.attributes)),key:"wrap-"+a},React.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+a},React.createElement("div",{className:"uagb-tm__overlay"}),("top"===r||"left"===r)&&React.createElement(RR,{attributes:e.attributes,index_value:a}),React.createElement("div",{className:"uagb-tm__text-wrap"},React.createElement(React.Fragment,null,React.createElement(ER,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a})),React.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"===r&&React.createElement(RR,{attributes:e.attributes,index_value:a}),React.createElement(React.Fragment,null,React.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+a},React.createElement(BR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}),React.createElement(UR,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:a}))))),"right"===r&&React.createElement(RR,{attributes:e.attributes,index_value:a}))))))},deprecated:QR});var tB={UAGAnimationType:{type:"string",default:"",UAGCopyPaste:{styleType:"block-animation-type"}},UAGAnimationTime:{type:"number",default:400,UAGCopyPaste:{styleType:"block-animation-time"}},UAGAnimationDelay:{type:"number",default:0,UAGCopyPaste:{styleType:"block-animation-delay"}},UAGAnimationEasing:{type:"string",default:"ease",UAGCopyPaste:{styleType:"block-animation-easing"}},UAGAnimationRepeat:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"block-animation-repeat"}}},aB={UAGPosition:{type:"string",default:"",UAGCopyPaste:{styleType:"block-position-type"}},UAGStickyLocation:{type:"string",default:"top",UAGCopyPaste:{styleType:"block-position-sticky-location"}},UAGStickyRestricted:{type:"boolean",default:!1,UAGCopyPaste:{styleType:"block-position-sticky-restricted"}},UAGStickyOffset:{type:"number",default:0,UAGCopyPaste:{styleType:"block-position-sticky-offset"}}},lB={isGridCssInParent:{type:"boolean",default:!1},gridSettingType:{type:"string"},gridColumnStart:{type:"number"},gridColumnEnd:{type:"number"},gridColumnStartTablet:{type:"number"},gridColumnEndTablet:{type:"number"},gridColumnStartMobile:{type:"number"},gridColumnEndMobile:{type:"number"},gridRowStart:{type:"number"},gridRowEnd:{type:"number"},gridRowStartTablet:{type:"number"},gridRowEndTablet:{type:"number"},gridRowStartMobile:{type:"number"},gridRowEndMobile:{type:"number"},gridAlignItems:{type:"string"},gridAlignItemsTablet:{type:"string"},gridAlignItemsMobile:{type:"string"},gridJustifyItems:{type:"string"},gridJustifyItemsTablet:{type:"string"},gridJustifyItemsMobile:{type:"string"},gridColumnSpan:{type:"number"},gridRowSpan:{type:"number"},gridColumnSpanTablet:{type:"number"},gridRowSpanTablet:{type:"number"},gridColumnSpanMobile:{type:"number"},gridRowSpanMobile:{type:"number"}};const{enableMasonryGallery:iB}=uagb_blocks_info;Object(F.addFilter)("blocks.registerBlockType","uagb/advanced-control-block",(function(e){return uagb_blocks_info.uagb_exclude_blocks_from_extension.includes(e.name)||e.attributes&&(e.attributes=Object.assign(e.attributes,{UAGUserRole:{type:"string"},UAGBrowser:{type:"string"},UAGSystem:{type:"string"},UAGHideDesktop:{type:"boolean",default:!1},UAGHideMob:{type:"boolean",default:!1},UAGHideTab:{type:"boolean",default:!1},UAGLoggedIn:{type:"boolean",default:!1},UAGLoggedOut:{type:"boolean",default:!1},UAGDisplayConditions:{type:"string"},UAGDay:{type:"array",default:[]},zIndex:{type:"number"},zIndexTablet:{type:"number"},zIndexMobile:{type:"number"},UAGResponsiveConditions:{type:"boolean",default:!1},...tB,...aB})),"uagb/container"===e.name&&null!=e&&e.attributes&&(e.attributes={...e.attributes,...lB}),e})),("enabled"===iB||!0===iB)&&Object(F.addFilter)("blocks.registerBlockType","uagb/masonry-gallery",(function(e){return["core/gallery"].includes(e.name)&&e.attributes&&(e.attributes=Object.assign(e.attributes,{masonry:{type:"boolean",default:!1},masonryGutter:{type:"number"},block_id:{type:"string"}})),e})),Object(F.addFilter)("blocks.registerBlockType","uagb/block-label",(function(e){return e.name.includes("uagb/")&&(e.attributes={...e.attributes,metadata:{type:"object",default:{name:""}}},null!=e&&e.__experimentalLabel||(e.__experimentalLabel=(e,t)=>{let{context:a}=t;const{metadata:l}=e;if("list-view"===a&&l.name)return l.name})),e}));var oB,nB=a(145),rB=0,sB={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},cB={};cB.locals=nB.a.locals||{},cB.use=function(){return rB++||(oB=we()(nB.a,sB)),cB},cB.unuse=function(){rB>0&&!--rB&&(oB(),oB=null)};var uB=cB;const{enableMasonryGallery:pB}=uagb_blocks_info,dB=Object(L.createHigherOrderComponent)(e=>t=>{const{attributes:a,setAttributes:l,isSelected:i}=t,o=t.name;Object(B.useLayoutEffect)(()=>(uB.use(),()=>{uB.unuse()}),[]),(()=>{const e=a.columns?a.columns:3,l={".wp-block-gallery ul.blocks-gallery-grid":{"column-gap":Vr(a.masonryGutter,"px"),"column-count":e},".wp-block-gallery ul.blocks-gallery-grid li.blocks-gallery-item":{"margin-bottom":Vr(a.masonryGutter,"px")},".wp-block-gallery.blocks-gallery-grid.has-nested-images.uag-masonry.blocks-gallery-grid":{"column-gap":Vr(a.masonryGutter,"px"),"column-count":e},".wp-block-gallery.blocks-gallery-grid.has-nested-images.uag-masonry.blocks-gallery-grid figure.wp-block-image:not(#individual-image)":{"margin-bottom":Vr(a.masonryGutter,"px")}},i=ae(l,"#block-"+t.clientId),o=(()=>{var e,t,a;let l=document;const i=document.querySelectorAll('iframe[name="editor-canvas"]');if(null==i||!i[0])return document;const o=(null===(e=i[0])||void 0===e||null===(t=e.contentWindow)||void 0===t?void 0:t.document)||(null===(a=i[0])||void 0===a?void 0:a.contentDocument);if(!o)return document;l=o;const n=l.getElementById("uagb-editor-styles"),r=document.getElementById("uagb-editor-styles");if(!n&&r){var s;const e=r.cloneNode(!0);null===(s=l.head)||void 0===s||s.appendChild(e)}return l})();if(a.masonry){const e=o.getElementById("uag-gallery-masonry-style-"+t.clientId.substr(0,8));if(null!=e)e.innerHTML=i;else{var n;const e=o.createElement("style");e.setAttribute("id","uag-gallery-masonry-style-"+t.clientId.substr(0,8)),e.innerHTML=i,null===(n=o.head)||void 0===n||n.appendChild(e)}}})();const s=void 0!==a.ids?a.ids.length:Object(n.select)("core/block-editor").getBlocks(t.clientId).length;return React.createElement(React.Fragment,null,React.createElement(e,t),i&&["core/gallery"].includes(o)&&0!==s.length&&React.createElement(ge.InspectorControls,null,React.createElement(je,{title:Object(r.__)("Masonry Gallery","ultimate-addons-for-gutenberg"),initialOpen:!1},React.createElement(Le.ToggleControl,{label:Object(r.__)("Enable Masonry Layout","ultimate-addons-for-gutenberg"),checked:a.masonry,onChange:e=>(e=>{if(e)l({className:"uag-masonry"});else{let e=a.className;e=e.replace("uag-masonry",""),l({className:e})}l({masonry:!a.masonry}),l({block_id:t.clientId.substr(0,8)})})(e)}),a.masonry&&React.createElement(Qa,{label:Object(r.__)("Gap","ultimate-addons-for-gutenberg"),data:{value:a.masonryGutter,label:"masonryGutter"},min:0,max:100,setAttributes:l,value:a.masonryGutter,units:[{name:Object(r.__)("Gap","ultimate-addons-for-gutenberg"),unitValue:"px"}]}))))},"MasonryGallery");"enabled"!==pB&&!0!==pB||(Object(F.addFilter)("editor.BlockEdit","uagb/masonry-gallery",dB,999),Object(F.addFilter)("blocks.getSaveContent.extraProps","uagb/apply-extra-class",(function(e,t,a){return"core/gallery"===t.name&&a.masonry&&(e.className=e.className+" uagb-block-"+a.block_id),e})));const bB=[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{label:Object(r.__)("Fade","ultimate-addons-for-gutenberg"),options:[{value:"fade",label:Object(r.__)("Fade","ultimate-addons-for-gutenberg")},{value:"fade-down",label:Object(r.__)("Fade Down","ultimate-addons-for-gutenberg")},{value:"fade-up",label:Object(r.__)("Fade Up","ultimate-addons-for-gutenberg")},{value:"fade-left",label:Object(r.__)("Fade Left","ultimate-addons-for-gutenberg")},{value:"fade-right",label:Object(r.__)("Fade Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Flip","ultimate-addons-for-gutenberg"),options:[{value:"flip-down",label:Object(r.__)("Flip Down","ultimate-addons-for-gutenberg")},{value:"flip-up",label:Object(r.__)("Flip Up","ultimate-addons-for-gutenberg")},{value:"flip-left",label:Object(r.__)("Flip Left","ultimate-addons-for-gutenberg")},{value:"flip-right",label:Object(r.__)("Flip Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Slide","ultimate-addons-for-gutenberg"),options:[{value:"slide-down",label:Object(r.__)("Slide Down","ultimate-addons-for-gutenberg")},{value:"slide-up",label:Object(r.__)("Slide Up","ultimate-addons-for-gutenberg")},{value:"slide-left",label:Object(r.__)("Slide Left","ultimate-addons-for-gutenberg")},{value:"slide-right",label:Object(r.__)("Slide Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Zoom-In","ultimate-addons-for-gutenberg"),options:[{value:"zoom-in",label:Object(r.__)("Zoom-In","ultimate-addons-for-gutenberg")},{value:"zoom-in-down",label:Object(r.__)("Zoom-In Down","ultimate-addons-for-gutenberg")},{value:"zoom-in-up",label:Object(r.__)("Zoom-In Up","ultimate-addons-for-gutenberg")},{value:"zoom-in-left",label:Object(r.__)("Zoom-In Left","ultimate-addons-for-gutenberg")},{value:"zoom-in-right",label:Object(r.__)("Zoom-In Right","ultimate-addons-for-gutenberg")}]},{label:Object(r.__)("Zoom-Out","ultimate-addons-for-gutenberg"),options:[{value:"zoom-out",label:Object(r.__)("Zoom-Out","ultimate-addons-for-gutenberg")},{value:"zoom-out-down",label:Object(r.__)("Zoom-Out Down","ultimate-addons-for-gutenberg")},{value:"zoom-out-up",label:Object(r.__)("Zoom-Out Up","ultimate-addons-for-gutenberg")},{value:"zoom-out-left",label:Object(r.__)("Zoom-Out Left","ultimate-addons-for-gutenberg")},{value:"zoom-out-right",label:Object(r.__)("Zoom-Out Right","ultimate-addons-for-gutenberg")}]}],gB={none:{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},fade:{value:"fade",label:Object(r.__)("Fade","ultimate-addons-for-gutenberg")},"fade-down":{value:"fade-down",label:Object(r.__)("Fade Down","ultimate-addons-for-gutenberg")},"fade-up":{value:"fade-up",label:Object(r.__)("Fade Up","ultimate-addons-for-gutenberg")},"fade-left":{value:"fade-left",label:Object(r.__)("Fade Left","ultimate-addons-for-gutenberg")},"fade-right":{value:"fade-right",label:Object(r.__)("Fade Right","ultimate-addons-for-gutenberg")},"flip-down":{value:"flip-down",label:Object(r.__)("Flip Down","ultimate-addons-for-gutenberg")},"flip-up":{value:"flip-up",label:Object(r.__)("Flip Up","ultimate-addons-for-gutenberg")},"flip-left":{value:"flip-left",label:Object(r.__)("Flip Left","ultimate-addons-for-gutenberg")},"flip-right":{value:"flip-right",label:Object(r.__)("Flip Right","ultimate-addons-for-gutenberg")},"slide-down":{value:"slide-down",label:Object(r.__)("Slide Down","ultimate-addons-for-gutenberg")},"slide-up":{value:"slide-up",label:Object(r.__)("Slide Up","ultimate-addons-for-gutenberg")},"slide-left":{value:"slide-left",label:Object(r.__)("Slide Left","ultimate-addons-for-gutenberg")},"slide-right":{value:"slide-right",label:Object(r.__)("Slide Right","ultimate-addons-for-gutenberg")},"zoom-in":{value:"zoom-in",label:Object(r.__)("Zoom-In","ultimate-addons-for-gutenberg")},"zoom-in-down":{value:"zoom-in-down",label:Object(r.__)("Zoom-In Down","ultimate-addons-for-gutenberg")},"zoom-in-up":{value:"zoom-in-up",label:Object(r.__)("Zoom-In Up","ultimate-addons-for-gutenberg")},"zoom-in-left":{value:"zoom-in-left",label:Object(r.__)("Zoom-In Left","ultimate-addons-for-gutenberg")},"zoom-in-right":{value:"zoom-in-right",label:Object(r.__)("Zoom-In Right","ultimate-addons-for-gutenberg")},"zoom-out":{value:"zoom-out",label:Object(r.__)("Zoom-Out","ultimate-addons-for-gutenberg")},"zoom-out-down":{value:"zoom-out-down",label:Object(r.__)("Zoom-Out Down","ultimate-addons-for-gutenberg")},"zoom-out-up":{value:"zoom-out-up",label:Object(r.__)("Zoom-Out Up","ultimate-addons-for-gutenberg")},"zoom-out-left":{value:"zoom-out-left",label:Object(r.__)("Zoom-Out Left","ultimate-addons-for-gutenberg")},"zoom-out-right":{value:"zoom-out-right",label:Object(r.__)("Zoom-Out Right","ultimate-addons-for-gutenberg")}};var mB=e=>{const{attributes:{UAGStickyLocation:t,UAGStickyRestricted:a,UAGStickyOffset:l,isBlockRootParent:i},setAttributes:o}=e;return React.createElement(React.Fragment,null,React.createElement(Na,{setAttributes:o,label:Object(r.__)("Stick at","ultimate-addons-for-gutenberg"),data:{value:t,label:"UAGStickyLocation"},options:[{value:"top",label:Object(r.__)("Top","ultimate-addons-for-gutenberg")},{value:"bottom",label:Object(r.__)("Bottom","ultimate-addons-for-gutenberg")}]}),React.createElement(Qa,{label:Object(r.__)("Offset","ultimate-addons-for-gutenberg"),setAttributes:o,value:l,data:{value:l,label:"UAGStickyOffset"},min:0,max:500,units:[{name:Object(r.__)("Pixel","ultimate-addons-for-gutenberg"),unitValue:"px"}]}),"top"===t&&!i&&React.createElement(Le.ToggleControl,{label:Object(r.__)("Keep Inside Parent","ultimate-addons-for-gutenberg"),checked:a,onChange:()=>o({UAGStickyRestricted:!a})}))},yB=e=>{const{attributes:{UAGPosition:t},setAttributes:a}=e;return React.createElement(je,{title:Object(r.__)("Sticky","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},React.createElement(Le.ToggleControl,{label:Object(r.__)("Sticky Container","ultimate-addons-for-gutenberg"),checked:"sticky"===t,onChange:()=>a({UAGPosition:"sticky"===t?"":"sticky"}),help:Object(r.__)("Changes affect the frontend only","ultimate-addons-for-gutenberg")}),"sticky"===t&&React.createElement(mB,e))};function fB(){return(fB=Object.assign||function(e){for(var t=1;tt=>{const{attributes:a}=t,{UAGAnimationType:l,UAGAnimationTime:i,UAGAnimationDelay:o,UAGAnimationEasing:n,UAGAnimationRepeat:r,layout:s}=a,c={...t.wrapperProps};return""!==l&&(c["data-aos-duration"]=i,c["data-aos-delay"]=o,c["data-aos-easing"]=n,r||(c["data-aos-once"]="true")),["grid","flex"].includes(s)&&(c.className=Be()(c.className,"uagb-layout-"+s)),React.createElement(e,fB({},t,{wrapperProps:c}))},"withAOSWrapperProps");Object(F.addFilter)("uag_advance_tab_content","uagb/advanced-display-condition",(function(e,t){if(!t)return e;const{isSelected:a,name:l}=t,i=["uagb/cf7-styler","uagb/wp-search","uagb/gf-styler","uagb/columns","uagb/section","uagb/popup-builder"],o=["uagb/tabs","uagb/tabs-child","uagb/countdown","uagb/modal","uagb/popup-builder"],s=Object(n.select)("core/block-editor").getBlockParents(t.clientId);let c=!0;if(s.length)for(let e=0;e{var t;const{clientId:a,name:l,attributes:{UAGAnimationType:i,UAGAnimationTime:o,UAGAnimationDelay:n,UAGAnimationEasing:s},setAttributes:c}=e,u=Object(F.applyFilters)("spectra.animations-extension.easing-pro-options","",l),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const t=document.querySelector('iframe[name="editor-canvas"]'),l=(null==t?void 0:t.contentDocument)||(null==t?void 0:t.contentWindow.document),r=t?l.getElementById("block-"+a):document.getElementById("block-"+a),c=parseInt(localStorage.getItem("aosWaitTimeoutCode-"+a)),p=parseInt(localStorage.getItem("aosRemoveClassesTimeoutCode-"+a));c&&(r.removeAttribute("data-aos"),r.classList.remove("aos-animate")),r.style.transitionDuration="0s",r.setAttribute("data-aos",e),r.style.transitionTimingFunction=u?u[s]:"cubic-bezier(.250, .100, .250, 1)",clearTimeout(c),clearTimeout(p);const d=setTimeout(()=>{r.style.transitionDuration=o/1e3+"s",r.classList.add("aos-animate")},0),b=setTimeout(()=>{r.removeAttribute("data-aos"),r.classList.remove("aos-animate"),r.style.transitionDuration="",r.style.transitionTimingFunction=""},n+o);localStorage.setItem("aosWaitTimeoutCode-"+a,d),localStorage.setItem("aosRemoveClassesTimeoutCode-"+a,b)};e={...e,playAnimation:p};const d=Object(F.applyFilters)("spectra.animations-extension.pro-options",e),b=!(d.$$typeof!==Symbol.for("react.element")||null==d||null===(t=d.props)||void 0===t||!t.children)||null;return React.createElement(React.Fragment,null,React.createElement(Bp,{placeholder:Object(r.__)("Animation Type","ultimate-addons-for-gutenberg"),onChange:e=>{c({UAGAnimationType:e.value}),p(e.value)},options:bB,value:""!==i?gB[i]:gB.none,defaultValue:""!==i?gB[i]:gB.none,isSearchable:!0,className:"uagb-animation-type-searchable-select",classNamePrefix:"uagb-animation-type-select"}),b&&d,!uagb_blocks_info.spectra_pro_status&&React.createElement("br",null),i&&!b&&React.createElement(Le.Button,{className:"uagb-animation__play-button",onClick:()=>p(),variant:"tertiary"},Object(r.__)("Preview","ultimate-addons-for-gutenberg")))})(t)),a&&!["uagb/buttons-child","uagb/faq-child","uagb/icon-list-child","uagb/social-share-child","uagb/restaurant-menu-child","uagb/slider-child"].includes(l)&&React.createElement(React.Fragment,null,"enabled"===hB&&!["uagb/popup-builder"].includes(l)&&React.createElement(je,{title:Object(r.__)("Display Conditions","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},(e=>{const{attributes:t,setAttributes:a}=e,{UAGLoggedIn:l,UAGLoggedOut:i,UAGDisplayConditions:o,UAGSystem:n,UAGBrowser:s,UAGUserRole:c,UAGDay:u}=t,p=e=>{const{value:t,checked:l}=e.target;a({UAGDay:l?[...u,t]:Y(u,t)})},d=[{value:"monday",label:Object(r.__)("Monday","ultimate-addons-for-gutenberg")},{value:"tuesday",label:Object(r.__)("Tuesday","ultimate-addons-for-gutenberg")},{value:"wednesday",label:Object(r.__)("Wednesday","ultimate-addons-for-gutenberg")},{value:"thursday",label:Object(r.__)("Thursday","ultimate-addons-for-gutenberg")},{value:"friday",label:Object(r.__)("Friday","ultimate-addons-for-gutenberg")},{value:"saturday",label:Object(r.__)("Saturday","ultimate-addons-for-gutenberg")},{value:"sunday",label:Object(r.__)("Sunday","ultimate-addons-for-gutenberg")}];return React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Display Conditions","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({UAGDisplayConditions:e}),options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"userstate",label:Object(r.__)("User State","ultimate-addons-for-gutenberg")},{value:"userRole",label:Object(r.__)("User Role","ultimate-addons-for-gutenberg")},{value:"browser",label:Object(r.__)("Browser","ultimate-addons-for-gutenberg")},{value:"os",label:Object(r.__)("Operating System","ultimate-addons-for-gutenberg")},{value:"day",label:Object(r.__)("Day","ultimate-addons-for-gutenberg")}]}),"userstate"===o&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged In Users","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGLoggedIn:!t.UAGLoggedIn})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged Out Users","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGLoggedOut:!t.UAGLoggedOut})})),"os"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Operating System","ultimate-addons-for-gutenberg"),value:n,onChange:e=>a({UAGSystem:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"iphone",label:Object(r.__)("iOS","ultimate-addons-for-gutenberg")},{value:"android",label:Object(r.__)("Android","ultimate-addons-for-gutenberg")},{value:"windows",label:Object(r.__)("Windows","ultimate-addons-for-gutenberg")},{value:"open_bsd",label:Object(r.__)("OpenBSD","ultimate-addons-for-gutenberg")},{value:"sun_os",label:Object(r.__)("SunOS","ultimate-addons-for-gutenberg")},{value:"linux",label:Object(r.__)("Linux","ultimate-addons-for-gutenberg")},{value:"mac_os",label:Object(r.__)("Mac OS","ultimate-addons-for-gutenberg")}]})),"browser"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Browser","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({UAGBrowser:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"firefox",label:Object(r.__)("Mozilla Firefox","ultimate-addons-for-gutenberg")},{value:"chrome",label:Object(r.__)("Google Chrome","ultimate-addons-for-gutenberg")},{value:"opera_mini",label:Object(r.__)("Opera Mini","ultimate-addons-for-gutenberg")},{value:"opera",label:Object(r.__)("Opera","ultimate-addons-for-gutenberg")},{value:"safari",label:Object(r.__)("Safari","ultimate-addons-for-gutenberg")},{value:"edge",label:Object(r.__)("Microsoft Edge","ultimate-addons-for-gutenberg")}]})),"userRole"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide for User Role","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({UAGUserRole:e}),options:uagb_blocks_info.user_role})),"day"===o&&React.createElement(React.Fragment,null,React.createElement("p",null,Object(r.__)("Select days you want to disable.","ultimate-addons-for-gutenberg")),d.map((e,t)=>React.createElement("label",{key:t,className:"form-check-label",htmlFor:"flexCheckDefault"},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",name:e.value,value:e.value,sunday:!0,onChange:p,checked:!(null==u||!u.includes(e.value))}),e.label))))})(t),React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"))),"enabled"===vB&&React.createElement(je,{title:Object(r.__)("Responsive Conditions","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},(e=>{const{attributes:t,setAttributes:a}=e,{UAGHideDesktop:l,UAGHideMob:i,UAGHideTab:o,UAGResponsiveConditions:n,UAGDisplayConditions:s}=t;return Object(B.useEffect)(()=>{"responsiveVisibility"===s||n||a({UAGHideDesktop:!1,UAGHideTab:!1,UAGHideMob:!1})},[]),React.createElement(React.Fragment,null,React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Desktop","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGHideDesktop:!t.UAGHideDesktop,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Tablet","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({UAGHideTab:!t.UAGHideTab,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Mobile","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGHideMob:!t.UAGHideMob,UAGResponsiveConditions:!0})})))})(t),React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg"))),!i.includes(l)&&React.createElement(je,{title:Object(r.__)("Z-Index","ultimate-addons-for-gutenberg"),initialOpen:!1,className:"block-editor-block-inspector__advanced uagb-extention-tab"},(e=>{const{attributes:t,setAttributes:a}=e,{zIndex:l,zIndexTablet:i,zIndexMobile:o}=t;return React.createElement(React.Fragment,null,React.createElement(tl,{label:Object(r.__)("Z-Index","ultimate-addons-for-gutenberg"),data:{desktop:{value:l,label:"zIndex"},tablet:{value:i,label:"zIndexTablet"},mobile:{value:o,label:"zIndexMobile"}},min:-100,max:1e3,displayUnit:!1,setAttributes:a}),React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Above setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")))})(t))))})),Object(F.addFilter)("editor.BlockListBlock","uagb/with-aos-wrapper-props",TB),Object(F.addFilter)("blocks.getSaveContent.extraProps","uagb/apply-extra-class",(function(e,t,a){const{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,zIndex:n,zIndexTablet:r,zIndexMobile:s,UAGDisplayConditions:c,UAGResponsiveConditions:u,layout:p}=a,d=Object(F.applyFilters)("uag_reponsive_conditions_compatible_blocks",["uagb/"]);let b=!1;for(const e of d)if(t.name.includes(e)){b=!0;break}return("responsiveVisibility"===c||u&&b)&&(l&&(e.className=Be()(e.className,"uag-hide-desktop")),i&&(e.className=Be()(e.className,"uag-hide-tab")),o&&(e.className=Be()(e.className,"uag-hide-mob"))),(n||r||s)&&(e.className=Be()(e.className,"uag-blocks-common-selector"),e.style={"--z-index-desktop":n+";","--z-index-tablet":r+";","--z-index-mobile":s+";"}),"uagb/container"!==(null==t?void 0:t.name)||"grid"!==p&&"flex"!==p||(e.className=Be()(e.className,"uagb-layout-"+p)),e}));var CB=a(57),SB={copy:React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",height:"18px",viewBox:"0 0 24 24",width:"18px",fill:"#000000"},React.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),React.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})),paste:React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",height:"18px",viewBox:"0 0 24 24",width:"18px",fill:"#000000"},React.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),React.createElement("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"}))};const kB=()=>{const{registerShortcut:e}=Object(n.useDispatch)(CB.store),t=Object(F.applyFilters)("uagb.blocksAttributes",za),[a,l]=Object(B.useState)(!1),[i,o]=Object(B.useState)(!1),{hasMultiSelection:s}=Object(n.select)("core/block-editor"),c=te();Object(B.useLayoutEffect)(()=>(uB.use(),()=>{uB.unuse()}),[]),Object(B.useEffect)(()=>{const t=te("spectraCopyPasteStyles");if(t||c.setItem("spectraCopyPasteStyles",JSON.stringify({})),t){for(const e in t)Math.abs(Date.now()-t[e].stylesSavedTimeStamp)/36e5>=8&&delete t[e];c.setItem("spectraCopyPasteStyles",JSON.stringify(t))}e({name:"uagb/copy",category:"block",description:Object(r.__)("Copy the selected block(s).","ultimate-addons-for-gutenberg"),keyCombination:{modifier:"primaryShift",character:"y"}}),e({name:"uagb/paste",category:"block",description:Object(r.__)("Paste the selected block(s).","ultimate-addons-for-gutenberg"),keyCombination:{modifier:"primaryShift",character:"u"}})},[]);const u=()=>{l(!1);const{getSelectedBlock:e,hasMultiSelection:t,getMultiSelectedBlocks:a}=Object(n.select)("core/block-editor");if(t())return void a().map(e=>(e&&d(e),e));const i=e();i&&d(i)},p=()=>{l(!1);const{getSelectedBlock:e,hasMultiSelection:t,getMultiSelectedBlocks:a}=Object(n.select)("core/block-editor");if(t())return void a().map(e=>(e&&b(e),e));const i=e();i&&b(i)},d=e=>{const a=te("spectraCopyPasteStyles");c.setItem("spectraCopyPasteStyles",JSON.stringify({}));const{attributes:l,name:i,innerBlocks:o}=e;a&&c.setItem("spectraCopyPasteStyles",JSON.stringify({}));let n={};const r={};if(i.includes("uagb/")){const e=i.replace("uagb/","");let s=t[e];a[e+"-styles"]={},a["global-style"]={},s&&a&&("enabled"===uagb_blocks_info.enableAnimationsExtension&&(s={...s,...tB,...aB}),Object.keys(s).map(e=>{if(s[e].UAGCopyPaste){const t=s[e].UAGCopyPaste.styleType;void 0!==l[e]&&null!==l[e]&&(n[t]=l[e],r[e]=l[e])}return e})),o&&(r.innerblocks=o),n.stylesSavedTimeStamp=Date.now(),a[e+"-styles"]=r,a["global-style"]=n,c.setItem("spectraCopyPasteStyles",JSON.stringify(a))}if(i.includes("core/")){const e=i.replace("core/","");n=l,n.stylesSavedTimeStamp=Date.now(),a[`core-${e}-styles`]=n,c.setItem("spectraCopyPasteStyles",JSON.stringify(a))}},b=e=>{const{name:a,clientId:l,innerBlocks:i}=e;let o,n;const r={},s=te("spectraCopyPasteStyles");if(a.includes("uagb/")){o=s["global-style"];const e=a.replace("uagb/",""),c=t[e];if(n=s[e+"-styles"],c&&n){if(g(l,n),i){const e={};i.map((a,l)=>{const i=a.name.replace("uagb/",""),o=t[i];return n.innerblocks[l].name==="uagb/"+i&&Object.keys(o).map(t=>(o[t].UAGCopyPaste&&(e[t]=n.innerblocks[l].attributes[t]),e)),g(a.clientId,e),a})}}else c&&o&&(Object.keys(c).map(e=>{if(c[e].UAGCopyPaste){const t=c[e].UAGCopyPaste.styleType;Object.keys(o).map(a=>(a===t&&(r[e]=o[t]),r))}return r}),g(l,r))}if(a.includes("core/")){const e=a.replace("core/",""),t=["content","values","value","citation","body","caption","foot","head","url","alt","id","linkDestination"];n=s[`core-${e}-styles`],t.map(e=>(n[e]&&delete n[e],e)),g(l,n)}},g=(e,t)=>{Object(n.dispatch)("core/block-editor").updateBlockAttributes(e,t)};Object(CB.useShortcut)("uagb/copy",e=>{u(),e.preventDefault()}),Object(CB.useShortcut)("uagb/paste",e=>{p(),e.preventDefault()});let m=Object(r.__)("Style","ultimate-addons-for-gutenberg");return s()&&(m=Object(r.__)("Styles","ultimate-addons-for-gutenberg")),React.createElement(ge.BlockControls,{group:"block"},React.createElement(Le.ToolbarGroup,{className:"uag-copy-paste-styles"},React.createElement(Le.ToolbarButton,{icon:"admin-appearance",label:Object(r.__)("Spectra Copy/Paste","ultimate-addons-for-gutenberg"),onClick:()=>{(()=>{const e=te("spectraCopyPasteStyles");l(!a),0!==Object.keys(e).length?o(!1):o(!0)})()}})),a&&React.createElement(Le.Popover,{position:"bottom center",className:"uag-copy-paste-styles-popover",focusOnMount:"container",onFocusOutside:()=>{l(!1)}},React.createElement(Le.MenuItem,{onClick:u},SB.copy,Object(r.__)("Copy ","ultimate-addons-for-gutenberg")+m),React.createElement(Le.MenuItem,{icon:"paste",onClick:p,disabled:i},SB.paste,Object(r.__)("Paste ","ultimate-addons-for-gutenberg")+m)))},wB=Object(L.createHigherOrderComponent)(e=>t=>{const{getSelectedBlock:a,getMultiSelectedBlocks:l}=Object(n.select)("core/block-editor"),i=["core/missing","uagb/faq-child","uagb/restaurant-menu-child","uagb/google-map","uagb/content-timeline-child","uagb/tabs-child"],o=a(),r=l();let s=!1,c=!1;if(o){const e=o.name;!e.includes("uagb/")&&!e.includes("core/")||"core/missing"===e||i.includes(e)||(s=!0)}r&&0!==r.length&&r.map(e=>{const t=e.name;return!t.includes("uagb/")&&!t.includes("core/")||"core/missing"===t||i.includes(t)||(c=!0),e});const{isSelected:u}=t;return u?React.createElement(React.Fragment,null,React.createElement(e,t),(s||c)&&React.createElement(kB,null)):React.createElement(e,t)},"displayUAGCopyPasteSettingConditionally");"enabled"===uagb_blocks_info.copy_paste&&Object(F.addFilter)("editor.BlockEdit","uag-copy-paste",wB);const{enableConditionsForCoreBlocks:PB,enableResponsiveConditionsForCoreBlocks:xB}=uagb_blocks_info,AB=Object(L.createHigherOrderComponent)(e=>t=>{const{InspectorAdvancedControls:a}=wp.blockEditor,l=t.name,i=l.includes("core/");return React.createElement(React.Fragment,null,React.createElement(e,t),i&&!["uagb/*","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","core/legacy-widget","core/navigation","core/search","core/file"].includes(l)&&React.createElement(a,null,React.createElement("p",{className:"components-base-control__help"},Object(r.__)("Below setting will only take effect once you are on the live page, and not while you're editing.","ultimate-addons-for-gutenberg")),React.createElement(Le.ExternalLink,{href:"https://wpspectra.com/docs/display-conditions-blocks/"},Object(r.__)("Filter to disable responsive/display condition. ","ultimate-addons-for-gutenberg")),"1"===xB&&(e=>{const{attributes:t,setAttributes:a}=e,{UAGHideDesktop:l,UAGHideMob:i,UAGHideTab:o,UAGResponsiveConditions:n,UAGDisplayConditions:s}=t;return Object(B.useEffect)(()=>{"responsiveVisibility"===s||n||a({UAGHideDesktop:!1,UAGHideTab:!1,UAGHideMob:!1})},[]),React.createElement(React.Fragment,null,React.createElement("hr",{className:"uagb-editor__separator"}),React.createElement("p",{className:"components-base-control__label"},Object(r.__)("Responsive Conditions","ultimate-addons-for-gutenberg")),React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Desktop","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGHideDesktop:!t.UAGHideDesktop,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Tablet","ultimate-addons-for-gutenberg"),checked:o,onChange:()=>a({UAGHideTab:!t.UAGHideTab,UAGResponsiveConditions:!0})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide on Mobile","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGHideMob:!t.UAGHideMob,UAGResponsiveConditions:!0})})))})(t),React.createElement("hr",{className:"uagb-editor__separator"}),(e=>{const{attributes:t,setAttributes:a}=e,{UAGLoggedIn:l,UAGLoggedOut:i,UAGDisplayConditions:o,UAGSystem:n,UAGBrowser:s,UAGUserRole:c,UAGDay:u}=t,p=[{value:"monday",label:Object(r.__)("Monday","ultimate-addons-for-gutenberg")},{value:"tuesday",label:Object(r.__)("Tuesday","ultimate-addons-for-gutenberg")},{value:"wednesday",label:Object(r.__)("Wednesday","ultimate-addons-for-gutenberg")},{value:"thursday",label:Object(r.__)("Thursday","ultimate-addons-for-gutenberg")},{value:"friday",label:Object(r.__)("Friday","ultimate-addons-for-gutenberg")},{value:"saturday",label:Object(r.__)("Saturday","ultimate-addons-for-gutenberg")},{value:"sunday",label:Object(r.__)("Sunday","ultimate-addons-for-gutenberg")}],d=e=>{const{value:t,checked:l}=e.target;a({UAGDay:l?[...u,t]:Y(u,t)})};return React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Display Conditions","ultimate-addons-for-gutenberg"),value:o,onChange:e=>a({UAGDisplayConditions:e}),options:[{value:"none",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"userstate",label:Object(r.__)("User State","ultimate-addons-for-gutenberg")},{value:"userRole",label:Object(r.__)("User Role","ultimate-addons-for-gutenberg")},{value:"browser",label:Object(r.__)("Browser","ultimate-addons-for-gutenberg")},{value:"os",label:Object(r.__)("Operating System","ultimate-addons-for-gutenberg")},{value:"day",label:Object(r.__)("Day","ultimate-addons-for-gutenberg")}]}),"userstate"===o&&React.createElement(React.Fragment,null,React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged In Users","ultimate-addons-for-gutenberg"),checked:l,onChange:()=>a({UAGLoggedIn:!t.UAGLoggedIn})}),React.createElement(Le.ToggleControl,{label:Object(r.__)("Hide From Logged Out Users","ultimate-addons-for-gutenberg"),checked:i,onChange:()=>a({UAGLoggedOut:!t.UAGLoggedOut})})),"os"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Operating System","ultimate-addons-for-gutenberg"),value:n,onChange:e=>a({UAGSystem:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"iphone",label:Object(r.__)("iOS","ultimate-addons-for-gutenberg")},{value:"android",label:Object(r.__)("Android","ultimate-addons-for-gutenberg")},{value:"windows",label:Object(r.__)("Windows","ultimate-addons-for-gutenberg")},{value:"open_bsd",label:Object(r.__)("OpenBSD","ultimate-addons-for-gutenberg")},{value:"sun_os",label:Object(r.__)("SunOS","ultimate-addons-for-gutenberg")},{value:"linux",label:Object(r.__)("Linux","ultimate-addons-for-gutenberg")},{value:"mac_os",label:Object(r.__)("Mac OS","ultimate-addons-for-gutenberg")}]})),"browser"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide on Browser","ultimate-addons-for-gutenberg"),value:s,onChange:e=>a({UAGBrowser:e}),options:[{value:"",label:Object(r.__)("None","ultimate-addons-for-gutenberg")},{value:"firefox",label:Object(r.__)("Mozilla Firefox","ultimate-addons-for-gutenberg")},{value:"chrome",label:Object(r.__)("Google Chrome","ultimate-addons-for-gutenberg")},{value:"opera_mini",label:Object(r.__)("Opera Mini","ultimate-addons-for-gutenberg")},{value:"opera",label:Object(r.__)("Opera","ultimate-addons-for-gutenberg")},{value:"safari",label:Object(r.__)("Safari","ultimate-addons-for-gutenberg")},{value:"edge",label:Object(r.__)("Microsoft Edge","ultimate-addons-for-gutenberg")}]})),"userRole"===o&&React.createElement(React.Fragment,null,React.createElement(Le.SelectControl,{label:Object(r.__)("Hide for User Role","ultimate-addons-for-gutenberg"),value:c,onChange:e=>a({UAGUserRole:e}),options:uagb_blocks_info.user_role})),"day"===o&&React.createElement(React.Fragment,null,React.createElement("p",null,"Select days you want to disable."),p.map((e,t)=>React.createElement("label",{key:t,className:"form-check-label",htmlFor:"flexCheckDefault"},React.createElement("input",{type:"checkbox",className:"uagb-forms-checkbox",name:e.value,value:e.value,sunday:!0,onChange:d,checked:!(null==u||!u.includes(e.value))}),e.label))))})(t)))},"AdvancedControlsBlock");"1"===PB&&(Object(F.addFilter)("editor.BlockEdit","uagb/advanced-control-block",AB),Object(F.addFilter)("blocks.getSaveContent.extraProps","uagb/apply-extra-class-core",(function(e,t,a){const{UAGHideDesktop:l,UAGHideTab:i,UAGHideMob:o,UAGDisplayConditions:n,UAGResponsiveConditions:r}=a,s=t.name.includes("core/");return("responsiveVisibility"===n||r&&s)&&(l&&(e.className=Be()(e.className,"uag-hide-desktop")),i&&(e.className=Be()(e.className,"uag-hide-tab")),o&&(e.className=Be()(e.className,"uag-hide-mob"))),e})));const GB="uagb-remove-group-parent-tabs",MB=e=>{const{name:t}=e,a=()=>!!document.getElementById(GB);return Object(B.useEffect)(()=>{t&&(t.includes("uagb/")?a()||(()=>{const e=document.createElement("style");e.setAttribute("id",GB),e.textContent='.components-panel .block-editor-block-inspector :not(.uag-control-tabs) > div[role="tablist"].components-tab-panel__tabs{display:none;}',document.head.appendChild(e)})():a()&&document.getElementById(GB).remove())},[t]),null},RB=Object(L.createHigherOrderComponent)(e=>t=>{const{isSelected:a}=t;return a?React.createElement(React.Fragment,null,React.createElement(e,t),React.createElement(MB,t)):React.createElement(e,t)},"addUagbSelectedCss");Object(F.addFilter)("editor.BlockEdit","add-uagb-block-selected-css",RB);var BB,UB=a(146),EB=0,OB={injectType:"lazySingletonStyleTag",attributes:{id:"uagb-editor-styles"},insert:"head",singleton:!0},LB={};LB.locals=UB.a.locals||{},LB.use=function(){return EB++||(BB=we()(UB.a,OB)),LB},LB.unuse=function(){EB>0&&!--EB&&(BB(),BB=null)};var HB=LB,FB=Object(L.compose)(Object(n.withSelect)(e=>({getDefaultAllowedQuickSidebarBlocks:e(w).getDefaultAllowedQuickSidebarBlocks()})),Object(n.withDispatch)(e=>({updateDefaultAllowedQuickSidebarBlocks:t=>e("spectra").updateDefaultAllowedQuickSidebarBlocks(t)})))(e=>{const{updateDefaultAllowedQuickSidebarBlocks:t,getDefaultAllowedQuickSidebarBlocks:a}=e,{block:l,id:i,create:o,blockInsertionPoint:s,getSelectedBlockClientId:c,getSelectedBlockAllowedBlocks:u,getBlockRootClientId:p}=e,[d,b]=Object(B.useState)(!1),g=Object(B.useRef)(!1),{createNotice:m}=Object(n.useDispatch)("core/notices"),[y,f]=Object(B.useState)(0),h="quick-action-sidebar/remove-notices-flow/removed-notice/"+y,v=()=>b(!0),_=()=>b(!1),T=React.createElement(Le.Popover,{placement:"right",key:i,className:"spectra-ee-quick-access__sidebar--blocks--block--icon--name"},React.createElement("div",{className:"block-title"},React.createElement("div",{onClick:()=>{var e;(e=>{t(e);const a={security:uagb_blocks_info.uagb_ajax_nonce,defaultAllowedQuickSidebarBlocks:JSON.stringify(e)};$l({url:uagb_blocks_info.ajax_url,action:"uag_global_update_allowed_block",data:a})})(((e,t)=>e.filter(e=>e!==t))(a,(e=l).name)),f(e=>e+1),m("success",Object(r.sprintf)( /* translators: abbreviation for units */ Object(r.__)("%s Removed from Quick Action Bar.","ultimate-addons-for-gutenberg"),e.title),{type:"snackbar",id:h,isDismissible:!0}),setTimeout(()=>{Object(n.dispatch)("core/notices").removeNotice(h)},1e3)},className:"spectra-ee-quick-access__sidebar--blocks--block--name"},React.createElement("svg",{className:"block-title-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))),l.title)),C=l.name.split("/"),S=C[0],k=C[1];return React.createElement("div",{id:`draggable-box__${S}--${k}`},React.createElement(Le.Draggable,{elementId:`draggable-box__${S}--${k}`,__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:[o(l.name)]}},e=>{var t;let{onDraggableStart:a,onDraggableEnd:r}=e;return React.createElement("div",{className:"spectra-ee-quick-access__sidebar--blocks--block",key:i,onClick:e=>{((e,t)=>{var a,l;let i=p||"",r=s;u&&u.includes(t)&&(r=Object(n.select)("core/block-editor").getSelectedBlock().innerBlocks.length,i=c),null!=e&&null!==(a=e.target)&&void 0!==a&&null!==(l=a.classList)&&void 0!==l&&l.contains("block-title-svg")?g.current=!1:Object(n.dispatch)("core/block-editor").insertBlocks(o(t.name),r,i)})(e,l)},draggable:!0,onDragStart:e=>{g.current=!0,a&&a(e)},onDragEnd:e=>{g.current=!1,r&&r(e)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_},React.createElement("div",{className:`spectra-ee-quick-access__sidebar-icon__${S} spectra-ee-quick-access__sidebar-icon__${S}--${k} spectra-ee-quick-access__sidebar--blocks--block--icon`},React.createElement(Le.Icon,{icon:null!==(t=l.icon)&&void 0!==t&&t.src?l.icon.src:l.icon})),d&&T)}))});const jB="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function zB(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function DB(e){return"nodeType"in e}function NB(e){var t,a;return e?zB(e)?e:DB(e)&&null!=(t=null==(a=e.ownerDocument)?void 0:a.defaultView)?t:window:window}function IB(e){const{Document:t}=NB(e);return e instanceof t}function VB(e){return!zB(e)&&e instanceof NB(e).HTMLElement}function WB(e){return e instanceof NB(e).SVGElement}function qB(e){return e?zB(e)?e.document:DB(e)?IB(e)?e:VB(e)||WB(e)?e.ownerDocument:document:document:document}const ZB=jB?mo.useLayoutEffect:mo.useEffect;function $B(e){const t=Object(mo.useRef)(e);return ZB(()=>{t.current=e}),Object(mo.useCallback)((function(){for(var e=arguments.length,a=new Array(e),l=0;l{a.current!==e&&(a.current=e)},t),a}function KB(e,t){const a=Object(mo.useRef)();return Object(mo.useMemo)(()=>{const t=e(a.current);return a.current=t,t},[...t])}function JB(e){const t=$B(e),a=Object(mo.useRef)(null),l=Object(mo.useCallback)(e=>{e!==a.current&&(null==t||t(e,a.current)),a.current=e},[]);return[a,l]}function XB(e){const t=Object(mo.useRef)();return Object(mo.useEffect)(()=>{t.current=e},[e]),t.current}let QB={};function eU(e,t){return Object(mo.useMemo)(()=>{if(t)return t;const a=null==QB[e]?0:QB[e]+1;return QB[e]=a,e+"-"+a},[e,t])}function tU(e){return function(t){for(var a=arguments.length,l=new Array(a>1?a-1:0),i=1;i{const l=Object.entries(a);for(const[a,i]of l){const l=t[a];null!=l&&(t[a]=l+e*i)}return t},{...t})}}const aU=tU(1),lU=tU(-1);function iU(e){if(!e)return!1;const{KeyboardEvent:t}=NB(e.target);return t&&e instanceof t}function oU(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=NB(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const nU=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(e)return[nU.Translate.toString(e),nU.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:l}=e;return t+" "+a+"ms "+l}}}),rU="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function sU(e){return e.matches(rU)?e:e.querySelector(rU)}const cU={display:"none"};function uU(e){let{id:t,value:a}=e;return yo.a.createElement("div",{id:t,style:cU},a)}function pU(e){let{id:t,announcement:a,ariaLiveType:l="assertive"}=e;return yo.a.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":l,"aria-atomic":!0},a)}const dU=Object(mo.createContext)(null),bU={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},gU={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was moved over droppable area "+a.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was dropped over droppable area "+a.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function mU(e){let{announcements:t=gU,container:a,hiddenTextDescribedById:l,screenReaderInstructions:i=bU}=e;const{announce:o,announcement:n}=function(){const[e,t]=Object(mo.useState)("");return{announce:Object(mo.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),r=eU("DndLiveRegion"),[s,c]=Object(mo.useState)(!1);if(Object(mo.useEffect)(()=>{c(!0)},[]),function(e){const t=Object(mo.useContext)(dU);Object(mo.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}(Object(mo.useMemo)(()=>({onDragStart(e){let{active:a}=e;o(t.onDragStart({active:a}))},onDragMove(e){let{active:a,over:l}=e;t.onDragMove&&o(t.onDragMove({active:a,over:l}))},onDragOver(e){let{active:a,over:l}=e;o(t.onDragOver({active:a,over:l}))},onDragEnd(e){let{active:a,over:l}=e;o(t.onDragEnd({active:a,over:l}))},onDragCancel(e){let{active:a,over:l}=e;o(t.onDragCancel({active:a,over:l}))}}),[o,t])),!s)return null;const u=yo.a.createElement(yo.a.Fragment,null,yo.a.createElement(uU,{id:l,value:i.draggable}),yo.a.createElement(pU,{id:r,announcement:n}));return a?Object(on.createPortal)(u,a):u}var yU;function fU(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(yU||(yU={}));const hU=Object.freeze({x:0,y:0});function vU(e,t){let{data:{value:a}}=e,{data:{value:l}}=t;return l-a}function _U(e,t){const a=Math.max(t.top,e.top),l=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),n=i-l,r=o-a;if(l{let{collisionRect:t,droppableRects:a,droppableContainers:l}=e;const i=[];for(const e of l){const{id:l}=e,o=a.get(l);if(o){const a=_U(o,t);a>0&&i.push({id:l,data:{droppableContainer:e,value:a}})}}return i.sort(vU)};function CU(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:hU}function SU(e){return function(t){for(var a=arguments.length,l=new Array(a>1?a-1:0),i=1;i({...t,top:t.top+e*a.y,bottom:t.bottom+e*a.y,left:t.left+e*a.x,right:t.right+e*a.x}),{...t})}}const kU=SU(1);const wU={ignoreTransform:!1};function PU(e,t){void 0===t&&(t=wU);let a=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:l}=NB(e).getComputedStyle(e);t&&(a=function(e,t,a){const l=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!l)return e;const{scaleX:i,scaleY:o,x:n,y:r}=l,s=e.left-n-(1-i)*parseFloat(a),c=e.top-r-(1-o)*parseFloat(a.slice(a.indexOf(" ")+1)),u=i?e.width/i:e.width,p=o?e.height/o:e.height;return{width:u,height:p,top:c,right:s+u,bottom:c+p,left:s}}(a,t,l))}const{top:l,left:i,width:o,height:n,bottom:r,right:s}=a;return{top:l,left:i,width:o,height:n,bottom:r,right:s}}function xU(e){return PU(e,{ignoreTransform:!0})}function AU(e,t){const a=[];return e?function l(i){if(null!=t&&a.length>=t)return a;if(!i)return a;if(IB(i)&&null!=i.scrollingElement&&!a.includes(i.scrollingElement))return a.push(i.scrollingElement),a;if(!VB(i)||WB(i))return a;if(a.includes(i))return a;const o=NB(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=NB(e).getComputedStyle(e));const a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const l=t[e];return"string"==typeof l&&a.test(l)})}(i,o)&&a.push(i),function(e,t){return void 0===t&&(t=NB(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?a:l(i.parentNode)}(e):a}function GU(e){const[t]=AU(e,1);return null!=t?t:null}function MU(e){return jB&&e?zB(e)?e:DB(e)?IB(e)||e===qB(e).scrollingElement?window:VB(e)?e:null:null:null}function RU(e){return zB(e)?e.scrollX:e.scrollLeft}function BU(e){return zB(e)?e.scrollY:e.scrollTop}function UU(e){return{x:RU(e),y:BU(e)}}var EU;function OU(e){return!(!jB||!e)&&e===document.scrollingElement}function LU(e){const t={x:0,y:0},a=OU(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},l={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=l.y,isRight:e.scrollLeft>=l.x,maxScroll:l,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(EU||(EU={}));const HU={x:.2,y:.2};function FU(e,t,a,l,i){let{top:o,left:n,right:r,bottom:s}=a;void 0===l&&(l=10),void 0===i&&(i=HU);const{isTop:c,isBottom:u,isLeft:p,isRight:d}=LU(e),b={x:0,y:0},g={x:0,y:0},m=t.height*i.y,y=t.width*i.x;return!c&&o<=t.top+m?(b.y=EU.Backward,g.y=l*Math.abs((t.top+m-o)/m)):!u&&s>=t.bottom-m&&(b.y=EU.Forward,g.y=l*Math.abs((t.bottom-m-s)/m)),!d&&r>=t.right-y?(b.x=EU.Forward,g.x=l*Math.abs((t.right-y-r)/y)):!p&&n<=t.left+y&&(b.x=EU.Backward,g.x=l*Math.abs((t.left+y-n)/y)),{direction:b,speed:g}}function jU(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:a,right:l,bottom:i}=e.getBoundingClientRect();return{top:t,left:a,right:l,bottom:i,width:e.clientWidth,height:e.clientHeight}}function zU(e){return e.reduce((e,t)=>aU(e,UU(t)),hU)}const DU=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+RU(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+BU(t),0)}]];class NU{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const a=AU(t),l=zU(a);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of DU)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(a),n=l[e]-t;return this.rect[o]+n},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class IU{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,a){var l;null==(l=this.target)||l.addEventListener(e,t,a),this.listeners.push([e,t,a])}}function VU(e,t){const a=Math.abs(e.x),l=Math.abs(e.y);return"number"==typeof t?Math.sqrt(a**2+l**2)>t:"x"in t&&"y"in t?a>t.x&&l>t.y:"x"in t?a>t.x:"y"in t&&l>t.y}var WU,qU;function ZU(e){e.preventDefault()}function $U(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(WU||(WU={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(qU||(qU={}));const YU={start:[qU.Space,qU.Enter],cancel:[qU.Esc],end:[qU.Space,qU.Enter]},KU=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case qU.Right:return{...a,x:a.x+25};case qU.Left:return{...a,x:a.x-25};case qU.Down:return{...a,y:a.y+25};case qU.Up:return{...a,y:a.y-25}}};class JU{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new IU(qB(t)),this.windowListeners=new IU(NB(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(WU.Resize,this.handleCancel),this.windowListeners.add(WU.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(WU.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,a=e.node.current;a&&function(e,t){if(void 0===t&&(t=PU),!e)return;const{top:a,left:l,bottom:i,right:o}=t(e);GU(e)&&(i<=0||o<=0||a>=window.innerHeight||l>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(a),t(hU)}handleKeyDown(e){if(iU(e)){const{active:t,context:a,options:l}=this.props,{keyboardCodes:i=YU,coordinateGetter:o=KU,scrollBehavior:n="smooth"}=l,{code:r}=e;if(i.end.includes(r))return void this.handleEnd(e);if(i.cancel.includes(r))return void this.handleCancel(e);const{collisionRect:s}=a.current,c=s?{x:s.left,y:s.top}:hU;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:a.current,currentCoordinates:c});if(u){const t=lU(u,c),l={x:0,y:0},{scrollableAncestors:i}=a.current;for(const a of i){const i=e.code,{isTop:o,isRight:r,isLeft:s,isBottom:c,maxScroll:p,minScroll:d}=LU(a),b=jU(a),g={x:Math.min(i===qU.Right?b.right-b.width/2:b.right,Math.max(i===qU.Right?b.left:b.left+b.width/2,u.x)),y:Math.min(i===qU.Down?b.bottom-b.height/2:b.bottom,Math.max(i===qU.Down?b.top:b.top+b.height/2,u.y))},m=i===qU.Right&&!r||i===qU.Left&&!s,y=i===qU.Down&&!c||i===qU.Up&&!o;if(m&&g.x!==u.x){const e=a.scrollLeft+t.x,o=i===qU.Right&&e<=p.x||i===qU.Left&&e>=d.x;if(o&&!t.y)return void a.scrollTo({left:e,behavior:n});l.x=o?a.scrollLeft-e:i===qU.Right?a.scrollLeft-p.x:a.scrollLeft-d.x,l.x&&a.scrollBy({left:-l.x,behavior:n});break}if(y&&g.y!==u.y){const e=a.scrollTop+t.y,o=i===qU.Down&&e<=p.y||i===qU.Up&&e>=d.y;if(o&&!t.x)return void a.scrollTo({top:e,behavior:n});l.y=o?a.scrollTop-e:i===qU.Down?a.scrollTop-p.y:a.scrollTop-d.y,l.y&&a.scrollBy({top:-l.y,behavior:n});break}}this.handleMove(e,aU(lU(u,this.referenceCoordinates),l))}}}handleMove(e,t){const{onMove:a}=this.props;e.preventDefault(),a(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function XU(e){return Boolean(e&&"distance"in e)}function QU(e){return Boolean(e&&"delay"in e)}JU.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:l=YU,onActivation:i}=t,{active:o}=a;const{code:n}=e.nativeEvent;if(l.start.includes(n)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class eE{constructor(e,t,a){var l;void 0===a&&(a=function(e){const{EventTarget:t}=NB(e);return e instanceof t?e:qB(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=qB(o),this.documentListeners=new IU(this.document),this.listeners=new IU(a),this.windowListeners=new IU(NB(o)),this.initialCoordinates=null!=(l=oU(i))?l:hU,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:a}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(WU.Resize,this.handleCancel),this.windowListeners.add(WU.DragStart,ZU),this.windowListeners.add(WU.VisibilityChange,this.handleCancel),this.windowListeners.add(WU.ContextMenu,ZU),this.documentListeners.add(WU.Keydown,this.handleKeydown),t){if(null!=a&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(QU(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(XU(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(WU.Click,$U,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(WU.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:a,initialCoordinates:l,props:i}=this,{onMove:o,options:{activationConstraint:n}}=i;if(!l)return;const r=null!=(t=oU(e))?t:hU,s=lU(l,r);if(!a&&n){if(XU(n)){if(null!=n.tolerance&&VU(s,n.tolerance))return this.handleCancel();if(VU(s,n.distance))return this.handleStart()}return QU(n)&&VU(s,n.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(r)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===qU.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const tE={move:{name:"pointermove"},end:{name:"pointerup"}};class aE extends eE{constructor(e){const{event:t}=e,a=qB(t.target);super(e,tE,a)}}aE.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:l}=t;return!(!a.isPrimary||0!==a.button||(null==l||l({event:a}),0))}}];const lE={move:{name:"mousemove"},end:{name:"mouseup"}};var iE;!function(e){e[e.RightClick=2]="RightClick"}(iE||(iE={})),class extends eE{constructor(e){super(e,lE,qB(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:l}=t;return a.button!==iE.RightClick&&(null==l||l({event:a}),!0)}}];const oE={move:{name:"touchmove"},end:{name:"touchend"}};var nE,rE;(class extends eE{constructor(e){super(e,oE)}static setup(){return window.addEventListener(oE.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(oE.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:l}=t;const{touches:i}=a;return!(i.length>1||(null==l||l({event:a}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(nE||(nE={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(rE||(rE={}));const sE={x:{[EU.Backward]:!1,[EU.Forward]:!1},y:{[EU.Backward]:!1,[EU.Forward]:!1}};var cE,uE;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(cE||(cE={})),function(e){e.Optimized="optimized"}(uE||(uE={}));const pE=new Map;function dE(e,t){return KB(a=>e?a||("function"==typeof t?t(e):e):null,[t,e])}function bE(e){let{callback:t,disabled:a}=e;const l=$B(t),i=Object(mo.useMemo)(()=>{if(a||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(l)},[a]);return Object(mo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function gE(e){return new NU(PU(e),e)}function mE(e,t,a){void 0===t&&(t=gE);const[l,i]=Object(mo.useReducer)((function(l){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=l?l:a)?i:null;const o=t(e);return JSON.stringify(l)===JSON.stringify(o)?l:o}),null),o=function(e){let{callback:t,disabled:a}=e;const l=$B(t),i=Object(mo.useMemo)(()=>{if(a||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(l)},[l,a]);return Object(mo.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const a of t){const{type:t,target:l}=a;if("childList"===t&&l instanceof HTMLElement&&l.contains(e)){i();break}}}}),n=bE({callback:i});return ZB(()=>{i(),e?(null==n||n.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==n||n.disconnect(),null==o||o.disconnect())},[e]),l}const yE=[];function fE(e,t){void 0===t&&(t=[]);const a=Object(mo.useRef)(null);return Object(mo.useEffect)(()=>{a.current=null},t),Object(mo.useEffect)(()=>{const t=e!==hU;t&&!a.current&&(a.current=e),!t&&a.current&&(a.current=null)},[e]),a.current?lU(e,a.current):hU}function hE(e){return Object(mo.useMemo)(()=>e?function(e){const t=e.innerWidth,a=e.innerHeight;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}(e):null,[e])}const vE=[];const _E=[{sensor:aE,options:{}},{sensor:JU,options:{}}],TE={current:{}},CE={draggable:{measure:xU},droppable:{measure:xU,strategy:cE.WhileDragging,frequency:uE.Optimized},dragOverlay:{measure:PU}};class SE extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,a;return null!=(t=null==(a=this.get(e))?void 0:a.node.current)?t:void 0}}const kE={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new SE,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:fU},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:CE,measureDroppableContainers:fU,windowRect:null,measuringScheduled:!1},wE={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:fU,draggableNodes:new Map,over:null,measureDroppableContainers:fU},PE=Object(mo.createContext)(wE),xE=Object(mo.createContext)(kE);function AE(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new SE}}}function GE(e,t){switch(t.type){case yU.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case yU.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case yU.DragEnd:case yU.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case yU.RegisterDroppable:{const{element:a}=t,{id:l}=a,i=new SE(e.droppable.containers);return i.set(l,a),{...e,droppable:{...e.droppable,containers:i}}}case yU.SetDroppableDisabled:{const{id:a,key:l,disabled:i}=t,o=e.droppable.containers.get(a);if(!o||l!==o.key)return e;const n=new SE(e.droppable.containers);return n.set(a,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:n}}}case yU.UnregisterDroppable:{const{id:a,key:l}=t,i=e.droppable.containers.get(a);if(!i||l!==i.key)return e;const o=new SE(e.droppable.containers);return o.delete(a),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function ME(e){let{disabled:t}=e;const{active:a,activatorEvent:l,draggableNodes:i}=Object(mo.useContext)(PE),o=XB(l),n=XB(null==a?void 0:a.id);return Object(mo.useEffect)(()=>{if(!t&&!l&&o&&null!=n){if(!iU(o))return;if(document.activeElement===o.target)return;const e=i.get(n);if(!e)return;const{activatorNode:t,node:a}=e;if(!t.current&&!a.current)return;requestAnimationFrame(()=>{for(const e of[t.current,a.current]){if(!e)continue;const t=sU(e);if(t){t.focus();break}}})}},[l,t,i,n,o]),null}const RE=Object(mo.createContext)({...hU,scaleX:1,scaleY:1});var BE;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(BE||(BE={}));const UE=Object(mo.memo)((function(e){var t,a,l,i;let{id:o,accessibility:n,autoScroll:r=!0,children:s,sensors:c=_E,collisionDetection:u=TU,measuring:p,modifiers:d,...b}=e;const g=Object(mo.useReducer)(GE,void 0,AE),[m,y]=g,[f,h]=function(){const[e]=Object(mo.useState)(()=>new Set),t=Object(mo.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[Object(mo.useCallback)(t=>{let{type:a,event:l}=t;e.forEach(e=>{var t;return null==(t=e[a])?void 0:t.call(e,l)})},[e]),t]}(),[v,_]=Object(mo.useState)(BE.Uninitialized),T=v===BE.Initialized,{draggable:{active:C,nodes:S,translate:k},droppable:{containers:w}}=m,P=C?S.get(C):null,x=Object(mo.useRef)({initial:null,translated:null}),A=Object(mo.useMemo)(()=>{var e;return null!=C?{id:C,data:null!=(e=null==P?void 0:P.data)?e:TE,rect:x}:null},[C,P]),G=Object(mo.useRef)(null),[M,R]=Object(mo.useState)(null),[B,U]=Object(mo.useState)(null),E=YB(b,Object.values(b)),O=eU("DndDescribedBy",o),L=Object(mo.useMemo)(()=>w.getEnabled(),[w]),H=function(e){return Object(mo.useMemo)(()=>({draggable:{...CE.draggable,...null==e?void 0:e.draggable},droppable:{...CE.droppable,...null==e?void 0:e.droppable},dragOverlay:{...CE.dragOverlay,...null==e?void 0:e.dragOverlay}}),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(p),{droppableRects:F,measureDroppableContainers:j,measuringScheduled:z}=function(e,t){let{dragging:a,dependencies:l,config:i}=t;const[o,n]=Object(mo.useState)(null),{frequency:r,measure:s,strategy:c}=i,u=Object(mo.useRef)(e),p=function(){switch(c){case cE.Always:return!1;case cE.BeforeDragging:return a;default:return!a}}(),d=YB(p),b=Object(mo.useCallback)((function(e){void 0===e&&(e=[]),d.current||n(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))}),[d]),g=Object(mo.useRef)(null),m=KB(t=>{if(p&&!a)return pE;if(!t||t===pE||u.current!==e||null!=o){const t=new Map;for(let a of e){if(!a)continue;if(o&&o.length>0&&!o.includes(a.id)&&a.rect.current){t.set(a.id,a.rect.current);continue}const e=a.node.current,l=e?new NU(s(e),e):null;a.rect.current=l,l&&t.set(a.id,l)}return t}return t},[e,o,a,p,s]);return Object(mo.useEffect)(()=>{u.current=e},[e]),Object(mo.useEffect)(()=>{p||b()},[a,p]),Object(mo.useEffect)(()=>{o&&o.length>0&&n(null)},[JSON.stringify(o)]),Object(mo.useEffect)(()=>{p||"number"!=typeof r||null!==g.current||(g.current=setTimeout(()=>{b(),g.current=null},r))},[r,p,b,...l]),{droppableRects:m,measureDroppableContainers:b,measuringScheduled:null!=o}}(L,{dragging:T,dependencies:[k.x,k.y],config:H.droppable}),D=function(e,t){const a=null!==t?e.get(t):void 0,l=a?a.node.current:null;return KB(e=>{var a;return null===t?null:null!=(a=null!=l?l:e)?a:null},[l,t])}(S,C),N=Object(mo.useMemo)(()=>B?oU(B):null,[B]),I=function(){const e=!1===(null==M?void 0:M.autoScrollEnabled),t="object"==typeof r?!1===r.enabled:!1===r,a=T&&!e&&!t;return"object"==typeof r?{...r,enabled:a}:{enabled:a}}(),V=function(e,t){return dE(e,t)}(D,H.draggable.measure);!function(e){let{activeNode:t,measure:a,initialRect:l,config:i=!0}=e;const o=Object(mo.useRef)(!1),{x:n,y:r}="boolean"==typeof i?{x:i,y:i}:i;ZB(()=>{if(!n&&!r||!t)return void(o.current=!1);if(o.current||!l)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=CU(a(e),l);if(n||(i.x=0),r||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=GU(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,n,r,l,a])}({activeNode:C?S.get(C):null,config:I.layoutShiftCompensation,initialRect:V,measure:H.draggable.measure});const W=mE(D,H.draggable.measure,V),q=mE(D?D.parentElement:null),Z=Object(mo.useRef)({activatorEvent:null,active:null,activeNode:D,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:w,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$=w.getNodeFor(null==(t=Z.current.over)?void 0:t.id),Y=function(e){let{measure:t}=e;const[a,l]=Object(mo.useState)(null),i=bE({callback:Object(mo.useCallback)(e=>{for(const{target:a}of e)if(VB(a)){l(e=>{const l=t(a);return e?{...e,width:l.width,height:l.height}:l});break}},[t])}),o=Object(mo.useCallback)(e=>{const a=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return VB(t)?t:e}(e);null==i||i.disconnect(),a&&(null==i||i.observe(a)),l(a?t(a):null)},[t,i]),[n,r]=JB(o);return Object(mo.useMemo)(()=>({nodeRef:n,rect:a,setRef:r}),[a,n,r])}({measure:H.dragOverlay.measure}),K=null!=(a=Y.nodeRef.current)?a:D,J=T?null!=(l=Y.rect)?l:W:null,X=Boolean(Y.nodeRef.current&&Y.rect),Q=CU(ee=X?null:W,dE(ee));var ee;const te=hE(K?NB(K):null),ae=function(e){const t=Object(mo.useRef)(e),a=KB(a=>e?a&&a!==yE&&e&&t.current&&e.parentNode===t.current.parentNode?a:AU(e):yE,[e]);return Object(mo.useEffect)(()=>{t.current=e},[e]),a}(T?null!=$?$:D:null),le=function(e,t){void 0===t&&(t=PU);const[a]=e,l=hE(a?NB(a):null),[i,o]=Object(mo.useReducer)((function(){return e.length?e.map(e=>OU(e)?l:new NU(t(e),e)):vE}),vE),n=bE({callback:o});return e.length>0&&i===vE&&o(),ZB(()=>{e.length?e.forEach(e=>null==n?void 0:n.observe(e)):(null==n||n.disconnect(),o())},[e]),i}(ae),ie=function(e,t){let{transform:a,...l}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...l}),a):a}(d,{transform:{x:k.x-Q.x,y:k.y-Q.y,scaleX:1,scaleY:1},activatorEvent:B,active:A,activeNodeRect:W,containerNodeRect:q,draggingNodeRect:J,over:Z.current.over,overlayNodeRect:Y.rect,scrollableAncestors:ae,scrollableAncestorRects:le,windowRect:te}),oe=N?aU(N,k):null,ne=function(e){const[t,a]=Object(mo.useState)(null),l=Object(mo.useRef)(e),i=Object(mo.useCallback)(e=>{const t=MU(e.target);t&&a(e=>e?(e.set(t,UU(t)),new Map(e)):null)},[]);return Object(mo.useEffect)(()=>{const t=l.current;if(e!==t){o(t);const n=e.map(e=>{const t=MU(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,UU(t)]):null}).filter(e=>null!=e);a(n.length?new Map(n):null),l.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{const t=MU(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),Object(mo.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>aU(e,t),hU):zU(e):hU,[e,t])}(ae),re=fE(ne),se=fE(ne,[W]),ce=aU(ie,re),ue=J?kU(J,ie):null,pe=A&&ue?u({active:A,collisionRect:ue,droppableRects:F,droppableContainers:L,pointerCoordinates:oe}):null,de=function(e,t){if(!e||0===e.length)return null;const[a]=e;return t?a[t]:a}(pe,"id"),[be,ge]=Object(mo.useState)(null),me=function(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}(X?ie:aU(ie,se),null!=(i=null==be?void 0:be.rect)?i:null,W),ye=Object(mo.useCallback)((e,t)=>{let{sensor:a,options:l}=t;if(null==G.current)return;const i=S.get(G.current);if(!i)return;const o=e.nativeEvent,n=new a({active:G.current,activeNode:i,event:o,options:l,context:Z,onStart(e){const t=G.current;if(null==t)return;const a=S.get(t);if(!a)return;const{onDragStart:l}=E.current,i={active:{id:t,data:a.data,rect:x}};Object(on.unstable_batchedUpdates)(()=>{null==l||l(i),_(BE.Initializing),y({type:yU.DragStart,initialCoordinates:e,active:t}),f({type:"onDragStart",event:i})})},onMove(e){y({type:yU.DragMove,coordinates:e})},onEnd:r(yU.DragEnd),onCancel:r(yU.DragCancel)});function r(e){return async function(){const{active:t,collisions:a,over:l,scrollAdjustedTranslate:i}=Z.current;let n=null;if(t&&i){const{cancelDrop:r}=E.current;n={activatorEvent:o,active:t,collisions:a,delta:i,over:l},e===yU.DragEnd&&"function"==typeof r&&await Promise.resolve(r(n))&&(e=yU.DragCancel)}G.current=null,Object(on.unstable_batchedUpdates)(()=>{y({type:e}),_(BE.Uninitialized),ge(null),R(null),U(null);const t=e===yU.DragEnd?"onDragEnd":"onDragCancel";if(n){const e=E.current[t];null==e||e(n),f({type:t,event:n})}})}}Object(on.unstable_batchedUpdates)(()=>{R(n),U(e.nativeEvent)})},[S]),fe=function(e,t){return Object(mo.useMemo)(()=>e.reduce((e,a)=>{const{sensor:l}=a;return[...e,...l.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,a)}))]},[]),[e,t])}(c,Object(mo.useCallback)((e,t)=>(a,l)=>{const i=a.nativeEvent,o=S.get(l);if(null!==G.current||!o||i.dndKit||i.defaultPrevented)return;const n={active:o};!0===e(a,t.options,n)&&(i.dndKit={capturedBy:t.sensor},G.current=l,ye(a,t))},[S,ye]));!function(e){Object(mo.useEffect)(()=>{if(!jB)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),ZB(()=>{W&&v===BE.Initializing&&_(BE.Initialized)},[W,v]),Object(mo.useEffect)(()=>{const{onDragMove:e}=E.current,{active:t,activatorEvent:a,collisions:l,over:i}=Z.current;if(!t||!a)return;const o={active:t,activatorEvent:a,collisions:l,delta:{x:ce.x,y:ce.y},over:i};Object(on.unstable_batchedUpdates)(()=>{null==e||e(o),f({type:"onDragMove",event:o})})},[ce.x,ce.y]),Object(mo.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:a,droppableContainers:l,scrollAdjustedTranslate:i}=Z.current;if(!e||null==G.current||!t||!i)return;const{onDragOver:o}=E.current,n=l.get(de),r=n&&n.rect.current?{id:n.id,rect:n.rect.current,data:n.data,disabled:n.disabled}:null,s={active:e,activatorEvent:t,collisions:a,delta:{x:i.x,y:i.y},over:r};Object(on.unstable_batchedUpdates)(()=>{ge(r),null==o||o(s),f({type:"onDragOver",event:s})})},[de]),ZB(()=>{Z.current={activatorEvent:B,active:A,activeNode:D,collisionRect:ue,collisions:pe,droppableRects:F,draggableNodes:S,draggingNode:K,draggingNodeRect:J,droppableContainers:w,over:be,scrollableAncestors:ae,scrollAdjustedTranslate:ce},x.current={initial:J,translated:ue}},[A,D,pe,ue,S,K,J,F,w,be,ae,ce]),function(e){let{acceleration:t,activator:a=nE.Pointer,canScroll:l,draggingRect:i,enabled:o,interval:n=5,order:r=rE.TreeOrder,pointerCoordinates:s,scrollableAncestors:c,scrollableAncestorRects:u,delta:p,threshold:d}=e;const b=function(e){let{delta:t,disabled:a}=e;const l=XB(t);return KB(e=>{if(a||!l||!e)return sE;const i=Math.sign(t.x-l.x),o=Math.sign(t.y-l.y);return{x:{[EU.Backward]:e.x[EU.Backward]||-1===i,[EU.Forward]:e.x[EU.Forward]||1===i},y:{[EU.Backward]:e.y[EU.Backward]||-1===o,[EU.Forward]:e.y[EU.Forward]||1===o}}},[a,t,l])}({delta:p,disabled:!o}),[g,m]=function(){const e=Object(mo.useRef)(null);return[Object(mo.useCallback)((t,a)=>{e.current=setInterval(t,a)},[]),Object(mo.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),y=Object(mo.useRef)({x:0,y:0}),f=Object(mo.useRef)({x:0,y:0}),h=Object(mo.useMemo)(()=>{switch(a){case nE.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case nE.DraggableRect:return i}},[a,i,s]),v=Object(mo.useRef)(null),_=Object(mo.useCallback)(()=>{const e=v.current;if(!e)return;const t=y.current.x*f.current.x,a=y.current.y*f.current.y;e.scrollBy(t,a)},[]),T=Object(mo.useMemo)(()=>r===rE.TreeOrder?[...c].reverse():c,[r,c]);Object(mo.useEffect)(()=>{if(o&&c.length&&h){for(const e of T){if(!1===(null==l?void 0:l(e)))continue;const a=c.indexOf(e),i=u[a];if(!i)continue;const{direction:o,speed:r}=FU(e,i,h,t,d);for(const e of["x","y"])b[e][o[e]]||(r[e]=0,o[e]=0);if(r.x>0||r.y>0)return m(),v.current=e,g(_,n),y.current=r,void(f.current=o)}y.current={x:0,y:0},f.current={x:0,y:0},m()}else m()},[t,_,l,m,o,n,JSON.stringify(h),JSON.stringify(b),g,c,T,u,JSON.stringify(d)])}({...I,delta:k,draggingRect:ue,pointerCoordinates:oe,scrollableAncestors:ae,scrollableAncestorRects:le});const he=Object(mo.useMemo)(()=>({active:A,activeNode:D,activeNodeRect:W,activatorEvent:B,collisions:pe,containerNodeRect:q,dragOverlay:Y,draggableNodes:S,droppableContainers:w,droppableRects:F,over:be,measureDroppableContainers:j,scrollableAncestors:ae,scrollableAncestorRects:le,measuringConfiguration:H,measuringScheduled:z,windowRect:te}),[A,D,W,B,pe,q,Y,S,w,F,be,j,ae,le,H,z,te]),ve=Object(mo.useMemo)(()=>({activatorEvent:B,activators:fe,active:A,activeNodeRect:W,ariaDescribedById:{draggable:O},dispatch:y,draggableNodes:S,over:be,measureDroppableContainers:j}),[B,fe,A,W,y,O,S,be,j]);return yo.a.createElement(dU.Provider,{value:h},yo.a.createElement(PE.Provider,{value:ve},yo.a.createElement(xE.Provider,{value:he},yo.a.createElement(RE.Provider,{value:me},s)),yo.a.createElement(ME,{disabled:!1===(null==n?void 0:n.restoreFocus)})),yo.a.createElement(mU,{...n,hiddenTextDescribedById:O}))})),EE=Object(mo.createContext)(null),OE="button";const LE={timeout:25};function HE(e,t,a){const l=e.slice();return l.splice(a<0?l.length+a:a,0,l.splice(t,1)[0]),l}function FE(e,t){return e.reduce((e,a,l)=>{const i=t.get(a);return i&&(e[l]=i),e},Array(e.length))}function jE(e){return null!==e&&e>=0}const zE=e=>{let{rects:t,activeIndex:a,overIndex:l,index:i}=e;const o=HE(t,l,a),n=t[i],r=o[i];return r&&n?{x:r.left-n.left,y:r.top-n.top,scaleX:r.width/n.width,scaleY:r.height/n.height}:null},DE={scaleX:1,scaleY:1},NE=e=>{var t;let{activeIndex:a,activeNodeRect:l,index:i,rects:o,overIndex:n}=e;const r=null!=(t=o[a])?t:l;if(!r)return null;if(i===a){const e=o[n];return e?{x:0,y:aa&&i<=n?{x:0,y:-r.height-s,...DE}:i=n?{x:0,y:r.height+s,...DE}:{x:0,y:0,...DE}},IE=yo.a.createContext({activeIndex:-1,containerId:"Sortable",disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:zE,disabled:{draggable:!1,droppable:!1}});function VE(e){let{children:t,id:a,items:l,strategy:i=zE,disabled:o=!1}=e;const{active:n,dragOverlay:r,droppableRects:s,over:c,measureDroppableContainers:u}=Object(mo.useContext)(xE),p=eU("Sortable",a),d=Boolean(null!==r.rect),b=Object(mo.useMemo)(()=>l.map(e=>"object"==typeof e&&"id"in e?e.id:e),[l]),g=null!=n,m=n?b.indexOf(n.id):-1,y=c?b.indexOf(c.id):-1,f=Object(mo.useRef)(b),h=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a{h&&g&&u(b)},[h,b,g,u]),Object(mo.useEffect)(()=>{f.current=b},[b]);const T=Object(mo.useMemo)(()=>({activeIndex:m,containerId:p,disabled:_,disableTransforms:v,items:b,overIndex:y,useDragOverlay:d,sortedRects:FE(b,s),strategy:i}),[m,p,_.draggable,_.droppable,v,b,y,s,d,i]);return yo.a.createElement(IE.Provider,{value:T},t)}const WE=e=>{let{id:t,items:a,activeIndex:l,overIndex:i}=e;return HE(a,l,i).indexOf(t)},qE=e=>{let{containerId:t,isSorting:a,wasDragging:l,index:i,items:o,newIndex:n,previousItems:r,previousContainerId:s,transition:c}=e;return!(!c||!l||r!==o&&i===n||!a&&(n===i||t!==s))},ZE={duration:200,easing:"ease"},$E=nU.Transition.toString({property:"transform",duration:0,easing:"linear"}),YE={roleDescription:"sortable"};function KE(e){let{animateLayoutChanges:t=qE,attributes:a,disabled:l,data:i,getNewIndex:o=WE,id:n,strategy:r,resizeObserverConfig:s,transition:c=ZE}=e;const{items:u,containerId:p,activeIndex:d,disabled:b,disableTransforms:g,sortedRects:m,overIndex:y,useDragOverlay:f,strategy:h}=Object(mo.useContext)(IE),v=function(e,t){var a,l;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(a=null==e?void 0:e.draggable)?a:t.draggable,droppable:null!=(l=null==e?void 0:e.droppable)?l:t.droppable}}(l,b),_=u.indexOf(n),T=Object(mo.useMemo)(()=>({sortable:{containerId:p,index:_,items:u},...i}),[p,i,_,u]),C=Object(mo.useMemo)(()=>u.slice(u.indexOf(n)),[u,n]),{rect:S,node:k,isOver:w,setNodeRef:P}=function(e){let{data:t,disabled:a=!1,id:l,resizeObserverConfig:i}=e;const o=eU("Droppable"),{active:n,dispatch:r,over:s,measureDroppableContainers:c}=Object(mo.useContext)(PE),u=Object(mo.useRef)({disabled:a}),p=Object(mo.useRef)(!1),d=Object(mo.useRef)(null),b=Object(mo.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:y}={...LE,...i},f=YB(null!=m?m:l),h=bE({callback:Object(mo.useCallback)(()=>{p.current?(null!=b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{c(Array.isArray(f.current)?f.current:[f.current]),b.current=null},y)):p.current=!0},[y]),disabled:g||!n}),v=Object(mo.useCallback)((e,t)=>{h&&(t&&(h.unobserve(t),p.current=!1),e&&h.observe(e))},[h]),[_,T]=JB(v),C=YB(t);return Object(mo.useEffect)(()=>{h&&_.current&&(h.disconnect(),p.current=!1,h.observe(_.current))},[_,h]),ZB(()=>(r({type:yU.RegisterDroppable,element:{id:l,key:o,disabled:a,node:_,rect:d,data:C}}),()=>r({type:yU.UnregisterDroppable,key:o,id:l})),[l]),Object(mo.useEffect)(()=>{a!==u.current.disabled&&(r({type:yU.SetDroppableDisabled,id:l,key:o,disabled:a}),u.current.disabled=a)},[l,o,a,r]),{active:n,rect:d,isOver:(null==s?void 0:s.id)===l,node:_,over:s,setNodeRef:T}}({id:n,data:T,disabled:v.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...s}}),{active:x,activatorEvent:A,activeNodeRect:G,attributes:M,setNodeRef:R,listeners:B,isDragging:U,over:E,setActivatorNodeRef:O,transform:L}=function(e){let{id:t,data:a,disabled:l=!1,attributes:i}=e;const o=eU("Droppable"),{activators:n,activatorEvent:r,active:s,activeNodeRect:c,ariaDescribedById:u,draggableNodes:p,over:d}=Object(mo.useContext)(PE),{role:b=OE,roleDescription:g="draggable",tabIndex:m=0}=null!=i?i:{},y=(null==s?void 0:s.id)===t,f=Object(mo.useContext)(y?RE:EE),[h,v]=JB(),[_,T]=JB(),C=function(e,t){return Object(mo.useMemo)(()=>e.reduce((e,a)=>{let{eventName:l,handler:i}=a;return e[l]=e=>{i(e,t)},e},{}),[e,t])}(n,t),S=YB(a);return ZB(()=>(p.set(t,{id:t,key:o,node:h,activatorNode:_,data:S}),()=>{const e=p.get(t);e&&e.key===o&&p.delete(t)}),[p,t]),{active:s,activatorEvent:r,activeNodeRect:c,attributes:Object(mo.useMemo)(()=>({role:b,tabIndex:m,"aria-disabled":l,"aria-pressed":!(!y||b!==OE)||void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[l,b,m,y,g,u.draggable]),isDragging:y,listeners:l?void 0:C,node:h,over:d,setNodeRef:v,setActivatorNodeRef:T,transform:f}}({id:n,data:T,attributes:{...YE,...a},disabled:v.draggable}),H=function(){for(var e=arguments.length,t=new Array(e),a=0;ae=>{t.forEach(t=>t(e))},t)}(P,R),F=Boolean(x),j=F&&!g&&jE(d)&&jE(y),z=!f&&U,D=z&&j?L:null,N=j?null!=D?D:(null!=r?r:h)({rects:m,activeNodeRect:G,activeIndex:d,overIndex:y,index:_}):null,I=jE(d)&&jE(y)?o({id:n,items:u,activeIndex:d,overIndex:y}):_,V=null==x?void 0:x.id,W=Object(mo.useRef)({activeId:V,items:u,newIndex:I,containerId:p}),q=u!==W.current.items,Z=t({active:x,containerId:p,isDragging:U,isSorting:F,id:n,index:_,items:u,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:c,wasDragging:null!=W.current.activeId}),$=function(e){let{disabled:t,index:a,node:l,rect:i}=e;const[o,n]=Object(mo.useState)(null),r=Object(mo.useRef)(a);return ZB(()=>{if(!t&&a!==r.current&&l.current){const e=i.current;if(e){const t=PU(l.current,{ignoreTransform:!0}),a={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(a.x||a.y)&&n(a)}}a!==r.current&&(r.current=a)},[t,a,l,i]),Object(mo.useEffect)(()=>{o&&n(null)},[o]),o}({disabled:!Z,index:_,node:k,rect:S});return Object(mo.useEffect)(()=>{F&&W.current.newIndex!==I&&(W.current.newIndex=I),p!==W.current.containerId&&(W.current.containerId=p),u!==W.current.items&&(W.current.items=u)},[F,I,p,u]),Object(mo.useEffect)(()=>{if(V===W.current.activeId)return;if(V&&!W.current.activeId)return void(W.current.activeId=V);const e=setTimeout(()=>{W.current.activeId=V},50);return()=>clearTimeout(e)},[V]),{active:x,activeIndex:d,attributes:M,data:T,rect:S,index:_,newIndex:I,items:u,isOver:w,isSorting:F,isDragging:U,listeners:B,node:k,overIndex:y,over:E,setNodeRef:H,setActivatorNodeRef:O,setDroppableNodeRef:P,setDraggableNodeRef:R,transform:null!=$?$:N,transition:$||q&&W.current.newIndex===_?$E:z&&!iU(A)||!c?void 0:F||Z?nU.Transition.toString({...c,property:"transform"}):void 0}}qU.Down,qU.Right,qU.Up,qU.Left;const JE=e=>{let{containerNodeRect:t,draggingNodeRect:a,transform:l}=e;return a&&t?function(e,t,a){const l={...e};return t.top+e.y<=a.top?l.y=a.top-t.top:t.bottom+e.y>=a.top+a.height&&(l.y=a.top+a.height-t.bottom),t.left+e.x<=a.left?l.x=a.left-t.left:t.right+e.x>=a.left+a.width&&(l.x=a.left+a.width-t.right),l}(l,a,t):l},XE=e=>{let{transform:t}=e;return{...t,x:0}};function QE(){return(QE=Object.assign||function(e){for(var t=1;t{var t,a,l;let{id:i,item:o}=e;const{attributes:n,listeners:r,setNodeRef:s,transform:c,transition:u}=KE({id:i}),p={transform:nU.Transform.toString(c),transition:u};return React.createElement("div",QE({ref:s,style:p},n,r,{className:"spectra-ee-quick-access__sidebar--blocks--block"}),React.createElement("div",{className:`spectra-ee-quick-access__sidebar-icon__${null==o||null===(t=o.name)||void 0===t?void 0:t.split("/")[0]} spectra-ee-quick-access__sidebar-icon__${null==o||null===(a=o.name)||void 0===a?void 0:a.split("/")[0]}--${null==o||null===(l=o.name)||void 0===l?void 0:l.split("/")[1]} spectra-ee-quick-access__sidebar--blocks--block--icon`},React.createElement(Le.Icon,{icon:o.icon.src?o.icon.src:o.icon})))};var tO=Object(L.compose)(Object(n.withDispatch)(e=>({updateDefaultAllowedQuickSidebarBlocks:t=>e("spectra").updateDefaultAllowedQuickSidebarBlocks(t)})))(e=>{let{initialItems:t,updateDefaultAllowedQuickSidebarBlocks:a}=e;const[l,i]=Object(mo.useState)(t);return React.createElement(UE,{onDragStart:()=>{const e=document.querySelector(".interface-interface-skeleton__content");e&&e.classList.add("spectra-ee-quick-access__sidebar--prevent-editor-interactions")},onDragEnd:e=>{let{active:t,over:o}=e;const n=document.querySelector(".interface-interface-skeleton__content");if(n&&n.classList.remove("spectra-ee-quick-access__sidebar--prevent-editor-interactions"),t.id!==o.id){const e=l.findIndex(e=>e.id===t.id),n=l.findIndex(e=>e.id===o.id),r=HE(l,e,n);(e=>{a(e);const t={security:uagb_blocks_info.uagb_ajax_nonce,defaultAllowedQuickSidebarBlocks:JSON.stringify(e)};$l({url:uagb_blocks_info.ajax_url,action:"uag_global_update_allowed_block",data:t})})(r.map(e=>e.name)),i(r)}},modifiers:[XE,JE]},React.createElement(VE,{items:l.map(e=>e.id),strategy:NE},React.createElement("div",{className:"spectra-ee-quick-access__sidebar--blocks-sortable"},l.map((e,t)=>React.createElement(eO,{key:e.id,id:e.id,item:e,isLast:t===l.length-1})))))}),aO=e=>{const{enableRearrange:t}=e,a=Object(n.useSelect)(e=>e("spectra").getDefaultAllowedQuickSidebarBlocks()),l=Object(de.getBlockTypes)(),{blockInsertionPoint:i,getSelectedBlockClientId:o,getSelectedBlockAllowedBlocks:r,getBlockRootClientId:s}=Object(n.useSelect)(e=>{const t=e("core/block-editor"),{index:a}=t.getBlockInsertionPoint(),l=t.getSelectedBlockClientId();return{blockInsertionPoint:a,getSelectedBlockClientId:l,getSelectedBlockAllowedBlocks:t.getAllowedBlocks(l)||[],getBlockRootClientId:t.getBlockRootClientId(l)}}),c=l.filter(e=>null==a?void 0:a.includes(e.name)),u=e=>Object(de.createBlock)(e);c.forEach((e,t)=>{e.id=""+(t+1)});const p=a.filter(e=>null!=e).map(e=>c.find(t=>{let{name:a}=t;return a===e})).filter(e=>void 0!==e);return React.createElement(React.Fragment,null,!t&&(null==p?void 0:p.map((e,t)=>React.createElement(FB,{key:t,id:t,block:e,create:u,blockInsertionPoint:i,getSelectedBlockClientId:o,getSelectedBlockAllowedBlocks:r,getBlockRootClientId:s}))),t&&React.createElement(tO,{initialItems:p}))},lO=e=>{let{closePopover:t,updateDefaultAllowedQuickSidebarBlocks:a,getDefaultAllowedQuickSidebarBlocks:l}=e;const[i,o]=Object(B.useState)(""),{createNotice:s}=Object(n.useDispatch)("core/notices"),[c,u]=Object(B.useState)(0),p="quick-action-sidebar/add-notices-flow/added-notice/"+c,d=Object(de.getBlockTypes)(),b=()=>t(!1),g=d.filter(e=>{var t;return null===(t=e.title.toLowerCase())||void 0===t?void 0:t.includes(i.toLowerCase())}),m=[],y=[];return g.forEach(e=>{null!=l&&l.includes(e.name)?m.push(e):y.push(e)}),React.createElement(Le.Popover,{onClose:b,placement:"right-start",className:"spectra-quick-action-block-popover"},React.createElement(Le.SearchControl,{value:i,onChange:e=>o(e),label:"Search Blocks",className:"spectra-quick-action-block-popover-search"}),React.createElement("div",{className:"spectra-block-container"},y.some(e=>!e.parent&&e.title.toLowerCase().includes(i.toLowerCase()))&&React.createElement("div",{className:"block-editor-inserter__panel-header spectra-quick-action-block-popover-header__add-to-quick-action-bar"},React.createElement("h2",{className:"block-editor-inserter__panel-title"},Object(r.__)("Add to Quick Action Bar","ultimate-addons-for-gutenberg"))),y.map((e,t)=>{var i;return(e=>{if(!e.parent&&!e.ancestor&&"uagb/popup-builder"!==e.name)return e})(e)&&React.createElement("div",{key:t,className:"spectra-block-wrap",onClick:()=>{return t=e,(e=>{a(e);const t={security:uagb_blocks_info.uagb_ajax_nonce,defaultAllowedQuickSidebarBlocks:JSON.stringify(e)};$l({url:uagb_blocks_info.ajax_url,action:"uag_global_update_allowed_block",data:t})})([...l,t.name]),u(e=>e+1),s("success",Object(r.sprintf)( /* translators: abbreviation for units */ diff --git a/readme.txt b/readme.txt index 97a7f4d803..faf3c95ba5 100644 --- a/readme.txt +++ b/readme.txt @@ -215,6 +215,9 @@ Our external packages use [Rating Star Component](https://github.com/n49/react-s == Changelog == += x.x.x = +* This update addressed a security bug. Props to Patchstack for privately reporting it to our team. Please make sure you are using the latest version on your website. + = 2.15.0 - Thursday, 1st August 2024 = * Improvement: Container - Added an order option for grid layout to set the order in which the inner container should be. * Improvement: Info Box - Added an overall border option. diff --git a/src/blocks/faq-child/render.js b/src/blocks/faq-child/render.js index 2a2358e18c..2a462ccaae 100644 --- a/src/blocks/faq-child/render.js +++ b/src/blocks/faq-child/render.js @@ -16,6 +16,11 @@ const Render = ( props ) => { const { attributes, setAttributes, state, isSelected } = props; const { question, answer, icon, iconActive, layout, headingTag, block_id } = attributes; + + // Reset the heading tag to it's default if it somehow has a value other than the valid tag types. + const validHeadingTags = [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span', 'p' ]; + const childHeadingTag = validHeadingTags.includes( headingTag ) ? headingTag : 'span'; + const faqRenderIcon = () => { return ( <> @@ -31,7 +36,7 @@ const Render = ( props ) => {
    { 'accordion' === layout && faqRenderIcon() } setAttributes( { question: value } ) } diff --git a/src/blocks/faq/edit.js b/src/blocks/faq/edit.js index df7dbe843f..d83a4e0da5 100755 --- a/src/blocks/faq/edit.js +++ b/src/blocks/faq/edit.js @@ -114,11 +114,15 @@ const FaqComponent = ( props ) => { }, [] ); + // A list of all the valid heading tags. + const validHeadingTags = [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span', 'p' ]; + useEffect( () => { const getChildBlocks = select( 'core/block-editor' ).getBlocks( clientId ); + // Set all the FAQ child heading types based on the current heading type if it's valid, else set to span. getChildBlocks.forEach( ( faqChild ) => { - faqChild.attributes.headingTag = attributes.headingTag; + faqChild.attributes.headingTag = validHeadingTags.includes( attributes.headingTag ) ? attributes.headingTag : 'span'; } ); // Use Effect Case to Update the Defaults for Backward Compatible Attributes that don't have a Default. From 388bf2960fac1d3b09afe079485e13adee68de5f Mon Sep 17 00:00:00 2001 From: Zane Vaz <94819993+bsf-zanev@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:19:52 +0530 Subject: [PATCH 2/2] Version Bump 2.15.1 (#4136) * SPCTR-4275: Bumped version to 2.15.1 without date * makepot * Updated the release date for Spectra 2.15.1 --------- Co-authored-by: Yash Tingre --- README.md | 4 ++-- classes/class-uagb-loader.php | 2 +- languages/ultimate-addons-for-gutenberg.pot | 10 +++++++--- package-lock.json | 2 +- package.json | 2 +- readme.txt | 4 ++-- ultimate-addons-for-gutenberg.php | 2 +- 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 8dce161099..196561a150 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Requires at least:** 5.6 **Requires PHP:** 7.4 **Tested up to:** 6.6 -**Stable tag:** 2.15.0 +**Stable tag:** 2.15.1 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html @@ -215,7 +215,7 @@ Our external packages use [Rating Star Component](https://github.com/n49/react-s ## Changelog ## -### x.x.x ### +### 2.15.1 - Tuesday, 6th August 2024 ### * This update addressed a security bug. Props to Patchstack for privately reporting it to our team. Please make sure you are using the latest version on your website. ### 2.15.0 - Thursday, 1st August 2024 ### diff --git a/classes/class-uagb-loader.php b/classes/class-uagb-loader.php index 5c157baa6c..76a6595abe 100644 --- a/classes/class-uagb-loader.php +++ b/classes/class-uagb-loader.php @@ -86,7 +86,7 @@ public function define_constants() { define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) ); define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) ); define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) ); - define( 'UAGB_VER', '2.15.0' ); + define( 'UAGB_VER', '2.15.1' ); define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' ); define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' ); define( 'UAGB_SLUG', 'spectra' ); diff --git a/languages/ultimate-addons-for-gutenberg.pot b/languages/ultimate-addons-for-gutenberg.pot index ec200e1ad3..66c9411386 100644 --- a/languages/ultimate-addons-for-gutenberg.pot +++ b/languages/ultimate-addons-for-gutenberg.pot @@ -2,19 +2,20 @@ # This file is distributed under the same license as the Spectra plugin. msgid "" msgstr "" -"Project-Id-Version: Spectra 2.15.0\n" +"Project-Id-Version: Spectra 2.15.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-07-31T15:35:05+00:00\n" +"POT-Creation-Date: 2024-08-02T13:54:07+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.9.0\n" +"X-Generator: WP-CLI 2.10.0\n" "X-Domain: ultimate-addons-for-gutenberg\n" #. Plugin Name of the plugin +#: ultimate-addons-for-gutenberg.php #: admin-core/inc/admin-menu.php:135 #: admin-core/inc/admin-menu.php:136 #: admin-core/inc/admin-menu.php:147 @@ -28,14 +29,17 @@ msgstr "" #. Plugin URI of the plugin #. Author URI of the plugin +#: ultimate-addons-for-gutenberg.php msgid "https://www.brainstormforce.com" msgstr "" #. Description of the plugin +#: ultimate-addons-for-gutenberg.php msgid "The Spectra extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster." msgstr "" #. Author of the plugin +#: ultimate-addons-for-gutenberg.php msgid "Brainstorm Force" msgstr "" diff --git a/package-lock.json b/package-lock.json index df25bb9556..2b4e82d800 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ultimate-addons-for-gutenberg", - "version": "2.15.0", + "version": "2.15.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4830c5db4c..0ae2c98899 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ultimate-addons-for-gutenberg", - "version": "2.15.0", + "version": "2.15.1", "description": "The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.", "author": "Brainstorm Force", "license": "ISC", diff --git a/readme.txt b/readme.txt index faf3c95ba5..51cb6ef08c 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: gutenberg, blocks, gutenberg blocks, editor, block Requires at least: 5.6 Requires PHP: 7.4 Tested up to: 6.6 -Stable tag: 2.15.0 +Stable tag: 2.15.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -215,7 +215,7 @@ Our external packages use [Rating Star Component](https://github.com/n49/react-s == Changelog == -= x.x.x = += 2.15.1 - Tuesday, 6th August 2024 = * This update addressed a security bug. Props to Patchstack for privately reporting it to our team. Please make sure you are using the latest version on your website. = 2.15.0 - Thursday, 1st August 2024 = diff --git a/ultimate-addons-for-gutenberg.php b/ultimate-addons-for-gutenberg.php index 5766da9b31..68f20a5a80 100644 --- a/ultimate-addons-for-gutenberg.php +++ b/ultimate-addons-for-gutenberg.php @@ -4,7 +4,7 @@ * Plugin URI: https://www.brainstormforce.com * Author: Brainstorm Force * Author URI: https://www.brainstormforce.com - * Version: 2.15.0 + * Version: 2.15.1 * Description: The Spectra extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster. * Text Domain: ultimate-addons-for-gutenberg * Domain Path: /languages