Stackable – Page Builder Gutenberg Blocks - Version 2.12.2

Version Description

  • Fixed: WordPress 5.4 compatibility
  • Fixed: Blocks without a layout tab would not show options when they're first added
  • Fixed: Some image width options won't respond
Download this release

Release Info

Developer bfintal
Plugin Icon 128x128 Stackable – Page Builder Gutenberg Blocks
Version 2.12.2
Comparing to
See all releases

Code changes from version 2.12.1 to 2.12.2

dist/admin_welcome.js CHANGED
@@ -38,4 +38,4 @@ object-assign
38
  *
39
  * This source code is licensed under the MIT license found in the
40
  * LICENSE file in the root directory of this source tree.
41
- */var a,r,i,l,o;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},a=function(e){null!==s?setTimeout(a,0,e):(s=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},l=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,g=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var h=d.now();t.unstable_now=function(){return d.now()-h}}var v=!1,y=null,w=-1,k=5,O=0;l=function(){return t.unstable_now()>=O},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,S=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();O=e+k;try{y(!0,e)?S.postMessage(null):(v=!1,y=null)}catch(e){throw S.postMessage(null),e}}else v=!1},a=function(e){y=e,v||(v=!0,S.postMessage(null))},r=function(e,n){w=g(function(){e(t.unstable_now())},n)},i=function(){m(w),w=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var a=Math.floor((n-1)/2),r=e[a];if(!(void 0!==r&&0<j(r,t)))break e;e[a]=t,e[n]=r,n=a}}function x(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length;a<r;){var i=2*(a+1)-1,l=e[i],o=i+1,s=e[o];if(void 0!==l&&0>j(l,n))void 0!==s&&0>j(s,l)?(e[a]=s,e[o]=n,a=o):(e[a]=l,e[i]=n,a=i);else{if(!(void 0!==s&&0>j(s,n)))break e;e[a]=s,e[o]=n,a=o}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],T=[],B=1,M=null,N=3,I=!1,A=!1,D=!1;function R(e){for(var t=x(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,_(P,t)}t=x(T)}}function z(e){if(D=!1,R(e),!A)if(null!==x(P))A=!0,a(L);else{var t=x(T);null!==t&&r(z,t.startTime-e)}}function L(e,n){A=!1,D&&(D=!1,i()),I=!0;var a=N;try{for(R(n),M=x(P);null!==M&&(!(M.expirationTime>n)||e&&!l());){var o=M.callback;if(null!==o){M.callback=null,N=M.priorityLevel;var s=o(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?M.callback=s:M===x(P)&&E(P),R(n)}else E(P);M=x(P)}if(null!==M)var u=!0;else{var c=x(T);null!==c&&r(z,c.startTime-n),u=!1}return u}finally{M=null,N=a,I=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=o;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();if("object"==typeof l&&null!==l){var s=l.delay;s="number"==typeof s&&0<s?o+s:o,l="number"==typeof l.timeout?l.timeout:F(e)}else l=F(e),s=o;return e={id:B++,callback:n,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>o?(e.sortIndex=s,_(T,e),null===x(P)&&e===x(T)&&(D?i():D=!0,r(z,s-o))):(e.sortIndex=l,_(P,e),A||I||(A=!0,a(L))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=x(P);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||l()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){A||I||(A=!0,a(L))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_Profiling=null},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t,n){"use strict";n.r(t);var a=n(20),r=n(11),i=n(3),l=n(4),o=n(1);Object(r.a)(function(){var e=document.querySelector(".s-news-box-content");e&&""===e.innerHTML&&(Object(i.render)(wp.element.createElement("div",null,wp.element.createElement(l.Spinner,null)),e),Object(a.send)("stackable_news_feed_ajax",{success:function(t){e.innerHTML=t},error:function(e){alert(e)},data:{nonce:o.nonceNews}}))});var s=n(0),u={"ugb/accordion":{title:Object(s.__)("Accordion",o.i18n),description:Object(s.__)("A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.",o.i18n),sDemoURL:"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/text":{title:Object(s.__)("Advanced Text",o.i18n),description:Object(s.__)("Start with the building block of all page layouts.",o.i18n),sDemoURL:"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/heading":{title:Object(s.__)("Advanced Heading",o.i18n),description:Object(s.__)("Introduce new sections of your content in style.",o.i18n),sDemoURL:"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blockquote":{title:Object(s.__)("Blockquote",o.i18n),description:Object(s.__)("Display a quote in style.",o.i18n),sDemoURL:"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blog-posts":{title:Object(s.__)("Blog Posts",o.i18n),description:Object(s.__)("Your latest blog posts. Use this to showcase a few of your posts in your landing pages.",o.i18n),sDemoURL:"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/button":{title:Object(s.__)("Button",o.i18n),description:Object(s.__)("Add a customizable button.",o.i18n),sDemoURL:"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/cta":{title:Object(s.__)("Call to Action",o.i18n),description:Object(s.__)("A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.",o.i18n),sDemoURL:"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/card":{title:Object(s.__)("Card",o.i18n),description:Object(s.__)("Describe a single subject in a small card. You can use this to describe your product, service or a person.",o.i18n),sDemoURL:"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/columns":{title:Object(s.__)("Columns",o.i18n),description:Object(s.__)("Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.",o.i18n),sDemoURL:"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/container":{title:Object(s.__)("Container",o.i18n),description:Object(s.__)("A styled container that you can add other blocks inside. Use this to create unique layouts.",o.i18n),sDemoURL:"https://wpstackable.com/container-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/count-up":{title:Object(s.__)("Count Up",o.i18n),description:Object(s.__)("Showcase your stats. Display how many customers you have or the number of downloads of your app.",o.i18n),sDemoURL:"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/design-library":{title:Object(s.__)("Design Library",o.i18n),description:Object(s.__)("Choose from over a hundred block designs from the Stackable Design Library.",o.i18n)},"ugb/divider":{title:Object(s.__)("Divider",o.i18n),description:Object(s.__)("Add a pause between your content.",o.i18n)},"ugb/expand":{title:Object(s.__)("Expand / Show More",o.i18n),description:Object(s.__)("Display a small snippet of text. Your readers can toggle it to show more information.",o.i18n),sDemoURL:"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature-grid":{title:Object(s.__)("Feature Grid",o.i18n),description:Object(s.__)("Display multiple product features or services. You can use Feature Grids one after another.",o.i18n),sDemoURL:"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature":{title:Object(s.__)("Feature",o.i18n),description:Object(s.__)("Display a product feature or a service in a large area.",o.i18n),sDemoURL:"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/header":{title:Object(s.__)("Header",o.i18n),description:Object(s.__)("A large header title area. Typically used at the very top of a page.",o.i18n),sDemoURL:"https://wpstackable.com/header-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon":{title:Object(s.__)("Icon",o.i18n),description:Object(s.__)("Pick an icon or upload your own SVG icon to decorate your content.",o.i18n),sDemoURL:"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon-list":{title:Object(s.__)("Icon List",o.i18n),description:Object(s.__)("An unordered list with icons. You can use this as a list of features or benefits.",o.i18n),sDemoURL:"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/image-box":{title:Object(s.__)("Image Box",o.i18n),description:Object(s.__)("Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.",o.i18n),sDemoURL:"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/notification":{title:Object(s.__)("Notification",o.i18n),description:Object(s.__)("Show a notice to your readers. People can dismiss the notice to permanently hide it.",o.i18n),sDemoURL:"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/number-box":{title:Object(s.__)("Number Box",o.i18n),description:Object(s.__)('Display steps or methods that your users will do in your service. For example, "Get started in just 3 easy steps: 1, 2 and 3!"',o.i18n),sDemoURL:"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/pricing-box":{title:Object(s.__)("Pricing Box",o.i18n),description:Object(s.__)("Display the different pricing tiers of your business.",o.i18n),sDemoURL:"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/separator":{title:Object(s.__)("Separator",o.i18n),description:Object(s.__)("A fancy separator to be placed between containers and content.",o.i18n),sDemoURL:"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/spacer":{title:Object(s.__)("Spacer",o.i18n),description:Object(s.__)("Sometimes you just need some space.",o.i18n)},"ugb/team-member":{title:Object(s.__)("Team Member",o.i18n),description:Object(s.__)("Display members of your team or your office. Use multiple Team Member blocks if you have a large team.",o.i18n),sDemoURL:"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/testimonial":{title:Object(s.__)("Testimonial",o.i18n),description:Object(s.__)("Showcase what your users say about your product or service.",o.i18n),sDemoURL:"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/video-popup":{title:Object(s.__)("Video Popup",o.i18n),description:Object(s.__)("Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.",o.i18n),sDemoURL:"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}},c=n(14),f=n(6),p=n.n(f),d=n(21),g=n.n(d),m=n(12);var b=n(5);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(P,h({design:a("Design",e.designDefault),size:a("Size","normal"),text:a("Text",""),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),icon:a("Icon"),iconPosition:a("IconPosition"),onChange:function(e){return t(v({},n("Text"),e))},url:a("Url"),newTab:a("NewTab"),noFollow:a("NoFollow"),onChangeUrl:function(e){return t(v({},n("Url"),e))},onChangeNewTab:function(e){return t(v({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(v({},n("NoFollow"),e))},onChangeIcon:function(e){return t(v({},n("Icon"),e))},isSelected:e.isSelected},e))};y.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(y.Content=function(e){var t=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a};return wp.element.createElement(P.Content,h({design:n("Design",e.designDefault),size:n("Size","normal"),text:n("Text"),icon:n("Icon"),newTab:n("NewTab"),url:n("Url"),noFollow:n("NoFollow"),hoverEffect:n("HoverEffect"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow"),iconPosition:n("IconPosition")},e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=1,j=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,a=C(t).apply(this,arguments),e=!a||"object"!==k(a)&&"function"!=typeof a?S(n):a,x(S(e),"hideUrlPopup",function(){document.body.removeEventListener("click",e.outsideClickHandler),e.setState({openPopup:!1})}),e.state={openPopup:!1},e.buttonInstanceId=E++,e.onButtonClickHandler=e.onButtonClickHandler.bind(S(e)),e.outsideClickHandler=e.outsideClickHandler.bind(S(e)),e.onKeyPressHandler=e.onKeyPressHandler.bind(S(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(t,i["Component"]),n=t,(a=[{key:"onButtonClickHandler",value:function(e){if(this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button"));else if(e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-url-input-popover")||e.target.closest(".ugb-icon-popover")||e.target.closest(".components-popover"))return;this.state.openPopup||document.body.addEventListener("click",this.outsideClickHandler),this.setState({openPopup:!0})}},{key:"outsideClickHandler",value:function(e){e.target.closest(".ugb-button-container-".concat(this.buttonInstanceId))||e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")?this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-svg-icon-placeholder__button")&&this.hideUrlPopup():this.hideUrlPopup()}},{key:"onKeyPressHandler",value:function(e){e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")||this.hideUrlPopup()}},{key:"render",value:function(){var e,t=this.props,n=t.iconButton,a=t.className,r=void 0===a?"":a,l=t.size,u=void 0===l?"normal":l,c=t.text,f=void 0===c?"":c,d=t.onChange,g=void 0===d?function(){}:d,b=t.design,h=void 0===b?"basic":b,v=t.shadow,y=void 0===v?0:v,w=t.iconPosition,k=void 0===w?"":w,O=t.hoverEffect,C=void 0===O?"":O,S=t.ghostToNormalEffect,_=void 0!==S&&S,E=t.url,j=void 0===E?"":E,P=t.newTab,T=void 0===P?"":P,B=t.noFollow,M=void 0===B?"":B,N=t.onChangeUrl,I=void 0===N?null:N,A=t.onChangeNewTab,D=void 0===A?null:A,R=t.onChangeNoFollow,z=void 0===R?null:R,L=t.onChangeIcon,F=void 0===L?null:L,U=t.icon,H=void 0===U?null:U,V=t.isSelected,G=void 0===V?null:V,q=p()([r,"ugb-button","ugb-button--size-".concat(u)],(x(e={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":_},"ugb--hover-effect-".concat(C),"link"!==h&&C),x(e,"ugb--shadow-".concat(y),"basic"===h&&y),x(e,"ugb-button--design-".concat(h),"basic"!==h),x(e,"ugb-button--has-icon",H),x(e,"ugb-button--icon-position-".concat(k),k),e)),W=p()(["ugb-button-container","ugb-button-container-".concat(this.buttonInstanceId),this.props.containerClassName]),K=(null===G||G)&&this.state.openPopup;return wp.element.createElement("div",{className:W,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},wp.element.createElement("a",{className:q},H&&"link"!==h&&wp.element.createElement(i.Fragment,null,!F&&wp.element.createElement(wu,{value:H}),F&&wp.element.createElement(Eu,{value:H,onChange:F,isOpen:n?K:null})),!n&&wp.element.createElement(m.RichText,{tagName:"span",className:"link"===h?"":"ugb-button--inner",placeholder:Object(s.__)("Button text",o.i18n),value:f,onChange:g,withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0}),K&&wp.element.createElement(pt,{value:j,onChange:I,newTab:T,noFollow:M,onChangeNewTab:D,onChangeNoFollow:z,disableSuggestions:this.props.disableSuggestions})))}}])&&O(n.prototype,a),r&&O(n,r),t}();j.defaultProps={iconButton:!1,disableSuggestions:!1,containerClassName:"",className:"",size:"normal",text:"",onChange:function(){},design:"basic",shadow:0,iconPosition:"",hoverEffect:"",ghostToNormalEffect:!1,url:"",newTab:"",noFollow:"",onChangeUrl:null,onChangeNewTab:null,onChangeNoFollow:null,onChangeIcon:null,icon:null,isSelected:null},j.Content=function(e){var t,n=e.iconButton,a=e.className,r=void 0===a?"":a,i=e.size,l=void 0===i?"normal":i,o=e.url,s=void 0===o?"":o,u=e.icon,c=void 0===u?null:u,f=e.text,d=void 0===f?"":f,b=e.design,h=void 0===b?"basic":b,v=e.newTab,y=void 0!==v&&v,k=e.shadow,O=void 0===k?0:k,C=e.iconPosition,S=void 0!==C&&C,_=e.hoverEffect,E=void 0===_?"":_,j=e.noFollow,P=void 0!==j&&j,T=e.ghostToNormalEffect,B=void 0!==T&&T,M=e.target,N=void 0===M?"":M,I=e.role,A=void 0===I?"":I,D=e.title,R=void 0===D?"":D,z=p()([r,"ugb-button","ugb-button--size-".concat(l)],(x(t={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":B},"ugb--hover-effect-".concat(E),"link"!==h&&E),x(t,"ugb--shadow-".concat(O),"basic"===h&&O),x(t,"ugb-button--design-".concat(h),"basic"!==h),x(t,"ugb-button--has-icon",c),x(t,"ugb-button--icon-position-".concat(S),S),t)),L=[];y&&(L.push("noopener"),L.push("noreferrer")),P&&L.push("nofollow");var F={};return A&&(F.role=A),wp.element.createElement("div",{className:"ugb-button-container"},(d||n)&&wp.element.createElement("a",w({className:z,href:s,target:N||y?N||"_blank":void 0,rel:e.rel||L.join(" "),title:g()(R)},F),c&&"link"!==h&&wp.element.createElement(wu.Content,{value:c}),!n&&wp.element.createElement(m.RichText.Content,{tagName:"span",className:"link"===h?"":"ugb-button--inner",value:d})))};var P=j,T=[],B={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},M=function(e){return!e.match(/^(sans[-+]serif|serif|monospace|serif-alt)$/i)},N=function(e){if(!T.includes(e)){if(document&&M(e)){var t=document.createElement("link");t.setAttribute("href",function(e){var t=e.replace(/ /g,"+"),n=B[o.locale]?"&subset=".concat(B):"";return"https://fonts.googleapis.com/css?family=".concat(t,":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic").concat(n)}(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),document.querySelector("head").appendChild(t)}T.push(e)}},I=function(e){return M(e)?'"'.concat(e,'", Sans-serif'):e.match(/^serif$/i)?'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif':e.match(/^serif-alt$/i)?'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif':e.match(/^monospace$/i)?'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace':'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},A=function(e){Object.keys(e).filter(function(e){return e.match(/fontfamily/i)}).forEach(function(t){var n=e[t];n&&N(n)})};var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return Object(b.camelCase)(Object(s.sprintf)(e,t))},i=ge(n,r,""),l=a.importantSize,o=void 0!==l&&l,u=a.important,c=void 0===u||u,f=a.inherit,p=void 0===f||f,d=a.inheritMax,g=void 0===d?50:d,m=a.inheritMin,h={},v=i("FontSize"),y=i("TabletFontSize"),w=i("MobileFontSize");if("tablet"!==t&&"mobile"!==t)h={fontFamily:""!==i("FontFamily")?I(i("FontFamily")):void 0,fontSize:""!==v?de("".concat(v).concat(i("FontSizeUnit")||"px"),o):void 0,fontWeight:""!==i("FontWeight")?i("FontWeight"):void 0,textTransform:""!==i("TextTransform")?i("TextTransform"):void 0,letterSpacing:""!==i("LetterSpacing")?"".concat(i("LetterSpacing"),"px"):void 0,lineHeight:""!==i("LineHeight")?"".concat(i("LineHeight")).concat(i("LineHeightUnit")||"em"):void 0};else if("tablet"===t){if(h={lineHeight:""!==i("TabletLineHeight")?"".concat(i("TabletLineHeight")).concat(i("TabletLineHeightUnit")||"em"):void 0},p){var k=me(v,{min:m,max:g});k&&(h.fontSize="".concat(k).concat(i("FontSizeUnit")||"px"))}y&&(h.fontSize=i("TabletFontSize","%s".concat(i("TabletFontSizeUnit")||"px")))}else{if(h={lineHeight:""!==i("MobileLineHeight")?"".concat(i("MobileLineHeight")).concat(i("MobileLineHeightUnit")||"em"):void 0},p){var O=me(v,{min:m,max:g});O&&(h.fontSize="".concat(O).concat(i("FontSizeUnit")||"px"));var C=me(y,{min:m,max:g});C?h.fontSize="".concat(C).concat(i("TabletFontSizeUnit")||"px"):(O||y)&&(h.fontSize=void 0)}w&&(h.fontSize=i("MobileFontSize","%s".concat(i("MobileFontSizeUnit")||"px")))}return c?pe(h):h},R=n(7);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F={},U=function(){F=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(n,!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},function(e){var t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML='<div class="wp-block">'.concat(e.map(function(e){return"<".concat(e,"></").concat(e,">")}).join(),"</div>"),!document||!document.body)return{};document.body.appendChild(t);var n={};return e.forEach(function(e){var a=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(a))}),document.body.removeChild(t),n}(["h1","h2","h3","h4","h5","h6","p"]))};Object(R.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",function(e,t,n,a){return e[".ugb-default-font-size .wp-block ".concat(t)]=D("%s","desktop",a,{important:!0}),F={},e});var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(F).length&&!t||U(),F[e]||F.p||21};Object(r.a)(function(){U()});var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e,t))},a=ge(t,n);return"gradient"===a("BackgroundColorType")||a("BackgroundMediaUrl")||a("TabletBackgroundMediaUrl")||a("MobileBackgroundMediaUrl")};var G=n(2),q=n.n(G);function W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var K=q.a.createElement("circle",{cx:50,cy:50,r:50}),$=function(e){return q.a.createElement("svg",W({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),K)};function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Q=q.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),X=function(e){return q.a.createElement("svg",Y({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),Q)};function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Z=q.a.createElement("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"});var ee={circle:$,square:X,blob1:function(e){return q.a.createElement("svg",J({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),Z)}},te=function(e){var t=Object(R.applyFilters)("stackable.image.shape.svgs",ee);return t[e]?t[e]:null},ne=n(10),ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||ae(e):null};window._stackableCachedImageData={};var ie=function(e,t){var n=t("core").getMedia,a=e?n(e):null;return a&&void 0!==a.id&&(window._stackableCachedImageData[a.id]=a),a},le=function(e){return window._stackableCachedImageData[e]||null};var oe=n(13),se=n.n(oe);n(28),n(22);function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(n,!0).forEach(function(t){fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(function(n,a){return ce({},n,fe({},a,de(e[a],t)))},{})},de=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?"".concat(e," !important"):e},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,l=null!==t?t:function(e){return Object(b.lowerFirst)(e)},o=void 0===e[l(a)]?"":e[l(a)];return""!==o?r?Object(s.sprintf)(r.replace(/%$/,"%%"),o):o:i}},me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,a=void 0===n?Number.NEGATIVE_INFINITY:n,r=t.max,i=void 0===r?Number.POSITIVE_INFINITY:r;if(""!==e){var l=Object(b.clamp)(e,parseFloat(a),parseFloat(i));if(!isNaN(l))return parseFloat(l)!==parseFloat(e)?l:void 0}};var be={facebook:{label:Object(s.__)("Facebook",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg>'},twitter:{label:Object(s.__)("Twitter",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>'},instagram:{label:Object(s.__)("Instagram",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>'},pinterest:{label:Object(s.__)("Pinterest",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:Object(s.__)("LinkedIn",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg>'},youtube:{label:Object(s.__)("YouTube",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></svg>'},email:{label:Object(s.__)("Email",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}},he=n(16);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(n,!0).forEach(function(t){we(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=["uniqueClass"],Oe={};function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(i.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),a=Ce(n,2),r=a[0],l=a[1],o=function(t){try{var n=t instanceof Function?t(r):t;l(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}};return[r,o]},_e=function(){return void 0!==he.registerBlockCollection};var xe=function(e,t){var n=Ee(e,t);return n?n.html[0]:""},Ee=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},je=n(17),Pe=n.n(je);n(29);var Te=function(e){return e.match(/(mp4|webm|ogg)$/i)},Be="desktop",Me=function(){return Be},Ne=!1,Ie=function(){return Ne};function Ae(){return(Ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(n,!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a},r=Object.keys(be).reduce(function(e,r){var i;return Re({},e,(ze(i={},"".concat(r,"Url"),a("".concat(r,"Url"))),ze(i,"onChange".concat(Object(b.upperFirst)(r),"Url"),function(e){return t(ze({},n("".concat(r,"Url")),e))}),i))},{});return wp.element.createElement(Ke,Ae({design:a("Design",e.designDefault),size:a("Size","normal"),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),useSocialColors:a("UseSocialColors"),newTab:a("NewTab"),onChangeNewTab:function(e){return t(ze({},n("NewTab"),e))},isSelected:e.isSelected},r,e))};Le.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(Le.Content=function(e){var t=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a},a=Object.keys(be).reduce(function(e,t){return Re({},e,ze({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement(Ke.Content,Ae({design:n("Design",e.designDefault),size:n("Size","normal"),newTab:n("NewTab"),hoverEffect:n("HoverEffect"),useSocialColors:n("UseSocialColors"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow")},a,e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(n,!0).forEach(function(t){He(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ge=function(e){return wp.element.createElement(i.Fragment,null,Object.keys(be).map(function(t){var n=p()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return(!0===e["show".concat(Object(b.upperFirst)(t))]||e["".concat(t,"Url")]&&!1!==e["show".concat(Object(b.upperFirst)(t))])&&wp.element.createElement(P,Ve({key:t,iconButton:!0,className:n,rel:"noopener noreferrer nofollow",icon:be[t].icon,url:e["".concat(t,"Url")],onChangeUrl:function(n){var a=n;"email"===t&&a.match(/^[^:]+@./)&&(a="mailto:".concat(a)),e["onChange".concat(Object(b.upperFirst)(t),"Url")](a)},onChangeNoFollow:!1,disableSuggestions:!0},e))}))},qe=Object.keys(be).reduce(function(e,t){var n;return Ue({},e,(He(n={},"".concat(t,"Url"),""),He(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});Ge.defaultProps=Ue({useSocialColors:!0},qe),Ge.Content=function(e){return wp.element.createElement(i.Fragment,null,Object.keys(be).map(function(t){var n=p()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return!1!==e["show".concat(Object(b.upperFirst)(t))]&&wp.element.createElement(P.Content,Ve({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:be[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var We=Object.keys(be).reduce(function(e,t){var n;return Ue({},e,(He(n={},"".concat(t,"Url"),""),He(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});Ge.Content.defaultProps=Ue({useSocialColors:!0},We);var Ke=Ge;function $e(){return($e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ye=q.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Qe=q.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Xe=q.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),Je=function(e){return q.a.createElement("svg",$e({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Ye,Qe,Xe)};function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(n,!0).forEach(function(t){tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt=function(e){var t=e.imageID,n=e.imageURL,a=e.onRemove,r=e.className,i=e.allowedTypes,o=e.render,s=e.hasRemove,u=e.style,c=p()([r,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),f=et({},u,{backgroundImage:n&&!o?"url(".concat(n,")"):void 0});return wp.element.createElement(m.MediaUpload,{onSelect:function(t){var n=t.url,a=t.width,r=t.height,i=e.imageSize||"full";t.sizes&&t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChange(et({},t,{url:n,width:a,height:r}))},allowedTypes:i,value:t,render:function(e){return n&&o?wp.element.createElement("div",{className:c,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:f,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&s&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(l.Dashicon,{icon:"no"})),o):wp.element.createElement("div",{className:c,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:f,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&s&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(l.Dashicon,{icon:"no"})),!n&&wp.element.createElement(Je,null))}})};nt.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rt=function(e){return wp.element.createElement(l.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(m.URLInput,at({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(b.omit)(e,["label","help"]))))};rt.defaultProps={label:Object(s.__)("URL",o.i18n),help:null,value:"",onChange:function(){}};var it=rt;function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ut=Object(i.createElement)(function(e){var t=e.className,n=e.isPressed,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach(function(t){lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},ot(e,["className","isPressed"]),{className:p()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":"true",focusable:"false"});return Object(i.createElement)("svg",a)},{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(i.createElement)(function(e){return Object(i.createElement)("path",e)},{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"})),ct=[{id:"opensInNewTab",title:Object(s.__)("Opens in new tab",o.i18n)},{id:"noFollowLink",title:Object(s.__)("Nofollow link",o.i18n)}],ft=function(e){var t=e.value,n={url:t,opensInNewTab:e.newTab,noFollowLink:e.noFollow};if(!e.onChange&&!e.onChangeNewTab&&!e.onChangeNoFollow)return null;var a=p()(["ugb-url-input-popover"]),r=ct.filter(function(t){switch(t.id){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;default:return!0}});return wp.element.createElement(l.Popover,{className:a,focusOnMount:!1,position:e.position},wp.element.createElement(m.__experimentalLinkControl,{value:n,settings:r,showSuggestions:!e.disableSuggestions,onChange:function(t){var a={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow},r=Object(b.omitBy)(Object(b.omit)(t,"id","title","type"),function(e,t){return n[t]===e});Object(b.keys)(r).map(function(e){return a[e](r[e])})}},wp.element.createElement("form",null,wp.element.createElement("input",{placeholder:Object(s.__)("Search or type url",o.i18n),value:t}),wp.element.createElement(l.Button,{icon:ut,type:"submit"}))))};ft.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,onChangeNewTab:null,onChangeNoFollow:null};var pt=ft,dt=n(9);function gt(){return(gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=Object(s.__)("(current %s: %s)",o.i18n),vt=Object(dt.compose)([m.withColorContext,Object(dt.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.disableCustomColors,n=e.label,a=e.onChange,r=e.value,u=e.className,c=void 0===u?"":u,f=e.colors.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(n,!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{name:e.name||e.fallback||e.color||Object(s.__)("Untitled Color",o.i18n)})}),d=Object(m.getColorObjectByColorValue)(f,r),g=d&&d.name,b=Object(s.sprintf)(ht,n.toLowerCase(),g||r),h=wp.element.createElement(i.Fragment,null,n,r&&wp.element.createElement(l.ColorIndicator,{colorValue:r,"aria-label":b}));return wp.element.createElement(l.BaseControl,{className:p()([c,"editor-color-palette-control"]),id:"editor-color-palette-control",label:h},wp.element.createElement(l.ColorPalette,gt({className:"editor-color-palette-control__color-palette",value:r,onChange:function(e){var t=Object(m.getColorObjectByColorValue)(f,e);a(Object(R.applyFilters)("stackable.color-palette-control.change",e,t))}},{colors:f,disableCustomColors:t})))}),yt=n(8),wt=n.n(yt);function kt(e){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ot(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ct(e,t){return!t||"object"!==kt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(dt.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ct(this,St(n).apply(this,arguments))}var a,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_t(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidMount",value:function(){A(this.props.attributes)}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&Ot(a.prototype,r),l&&Ot(a,l),n}(),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t,"defaultProps",{attributes:{}}),n},"withGoogleFont");function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(){return(Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function jt(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(dt.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){var e,t,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,(e=!(a=Pt(n).apply(this,arguments))||"object"!==xt(a)&&"function"!=typeof a?Tt(t):a).setAttributes=e.setAttributes.bind(Tt(e)),e}var a,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidUpdate",value:function(e){Object(b.isEqual)(e.attributes,this.props.attributes)||Object(R.doAction)("stackable.setAttributes.after")}},{key:"setAttributes",value:function(e){var t=this.props.blockName,n=Object(R.applyFilters)("stackable.setAttributes",e,this.props);n=Object(R.applyFilters)("stackable.".concat(t,".setAttributes"),n,this.props),this.props.setAttributes(n)}},{key:"render",value:function(){return wp.element.createElement(e,Et({},this.props,{setAttributes:this.setAttributes}))}}])&&jt(a.prototype,r),l&&jt(a,l),n}(),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t,"propTypes",{setAttributes:wt.a.func.isRequired}),n},"withSetAttributeHook");function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function It(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function At(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Dt(e,t){return!t||"object"!==Mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zt(e,t){return(zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(dt.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Dt(this,Rt(n).apply(this,arguments))}var a,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zt(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=e.clientId,r="ugb-".concat(a.substring(0,7));void 0!==t.uniqueClass&&t.uniqueClass===r||n({uniqueClass:r})}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&At(a.prototype,r),l&&At(a,l),n}(),Lt(t,"defaultProps",{attributes:{},clientId:"",setAttributes:function(){}}),n},"withUniqueClass");Object(R.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",function(e){return[].concat(It(e),["uniqueClass"])}),Object(R.addFilter)("stackable.block.attributes","stackable/unique-class",function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(n,!0).forEach(function(t){Lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{uniqueClass:{type:"string",default:""}})});var Ft=function(e){return document.querySelector(".ugb-panel--".concat(e))},Ut=function(e){var t=e.closest(".ugb-inspector-panel-controls");if(!t)return null;var n=t.getAttribute("class").match(/ugb-panel-(\w+)/);if(n){var a=n[1];return document.querySelector(".ugb-tab--".concat(a))}return null},Ht=function(e){e&&(e.classList.contains("is-active")||e.click())},Vt=function(e){if(e){if(!e.classList.contains("is-opened")){var t=e.querySelector("button");t&&t.click()}Gt(e)}},Gt=function(e){var t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar"),a=e.getBoundingClientRect().top+2;if(a-=t?t.getBoundingClientRect().height:0,a-=n.getBoundingClientRect().top,!_e()){var r=document.querySelector(".edit-post-sidebar-header");a-=r?r.getBoundingClientRect().height-1:0}document.querySelector(".edit-post-sidebar").scrollTop+=a};function qt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $t=!1,Yt={".ugb-top-separator":"top-separator",".ugb-bottom-separator":"bottom-separator",".ugb-inner-block":"column-background",".ugb-block-title":"block-title",".ugb-block-description":"block-description",".ugb--has-block-background":"block-background"},Qt={},Xt=[".block-editor-rich-text__editable",".editor-rich-text__editable","svg","img","figure",".ugb-button",'[role="button"]',".ugb-block-content > * > *",".ugb-block-content > *",".ugb-content-wrapper",".ugb-top-separator",".ugb-bottom-separator",".ugb-inner-block",".ugb-main-block"],Jt=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(n,!0).forEach(function(t){Kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Qt[e],{},Yt)};Object(r.a)(function(){if(!$t&&($t=!0,Element.prototype.matches)){var e=Object(R.applyFilters)("stackable.click-open-inspector.listener-override",{});document.body.addEventListener("dblclick",function(t){var n,a,r=(n=t.target,(a=n.closest("[data-type]"))&&a.getAttribute("data-type").match(/^ugb\//i)?a.getAttribute("data-type").replace(/^ugb\//i,""):"");if(r){var i=Jt(r);if(i){var l=[];Object.keys(e).some(function(n){return!!t.target.closest(n)&&(l=e[n],!0)}),[].concat(qt(l),Xt).some(function(e){var n=t.target.closest(e);return!!n&&Object.keys(i).some(function(e){return!!n.matches(e)&&function(e){var t=Ft(e);if(t){var n=Ut(t);Ht(n),Vt(t)}if(!t){[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some(function(n){var a=document.querySelector(n);return Ht(a),(t=Ft(e))&&Vt(t),!!t})}return t}(i[e])})})}}})}});function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(){return(en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function tn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function nn(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function an(e){return(an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e){return Object(dt.createHigherOrderComponent)(function(t){var n,a;return a=n=function(n){function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),nn(this,an(a).apply(this,arguments))}var r,l,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}(a,i["Component"]),r=a,(l=[{key:"render",value:function(){var n=this.props.className.match(/ugb--help-tip/),a=p()([this.props.className],ln({},"ugb--help-tip-".concat(e),!n));return wp.element.createElement(t,en({},this.props,{className:a}))}}])&&tn(r.prototype,l),o&&tn(r,o),a}(),ln(n,"defaultProps",{className:""}),a},"withHelpTip")};function sn(){return(sn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var un=function(e){return wp.element.createElement(l.SelectControl,sn({},e,{options:[{value:"",label:Object(s.__)("None",o.i18n)},{value:"normal",label:Object(s.__)("Normal",o.i18n)},{value:"multiply",label:Object(s.__)("Multiply",o.i18n)},{value:"screen",label:Object(s.__)("Screen",o.i18n)},{value:"overlay",label:Object(s.__)("Overlay",o.i18n)},{value:"darken",label:Object(s.__)("Darken",o.i18n)},{value:"lighten",label:Object(s.__)("Lighten",o.i18n)},{value:"color-dodge",label:Object(s.__)("Color Dodge",o.i18n)},{value:"color-burn",label:Object(s.__)("Color Burn",o.i18n)},{value:"hard-light",label:Object(s.__)("Hard Light",o.i18n)},{value:"soft-light",label:Object(s.__)("Soft Light",o.i18n)},{value:"difference",label:Object(s.__)("Difference",o.i18n)},{value:"exclusion",label:Object(s.__)("Exclusion",o.i18n)},{value:"hue",label:Object(s.__)("Hue",o.i18n)},{value:"saturation",label:Object(s.__)("Saturation",o.i18n)},{value:"color",label:Object(s.__)("Color",o.i18n)},{value:"luminosity",label:Object(s.__)("Luminosity",o.i18n)},{value:"initial",label:Object(s.__)("Initial",o.i18n)},{value:"inherit",label:Object(s.__)("Inherit",o.i18n)},{value:"unset",label:Object(s.__)("Unset",o.i18n)}]}))};un.defaultProps={label:Object(s.__)("Mix Blend Mode",o.i18n),help:Object(s.__)("Not supported in all browsers.",o.i18n)};var cn=Object(dt.compose)(on("background-blend-mode"))(un);function fn(){return(fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pn=q.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),dn=q.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),gn=q.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),mn=function(e){return q.a.createElement("svg",fn({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),pn,dn,gn)},bn=function(e){var t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=function(){e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return wp.element.createElement("div",{className:"ugb-image-control"},wp.element.createElement(l.BaseControl,{help:e.help},wp.element.createElement(ia,{label:e.label,screens:e.screens}),wp.element.createElement(m.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:function(a){return wp.element.createElement(i.Fragment,null,e.imageURL&&wp.element.createElement("div",{className:"ugb-image-preview-wrapper"},wp.element.createElement("button",{className:"ugb-image-preview-remove",onClick:n},wp.element.createElement(l.Dashicon,{icon:"no"})),"video"===t&&wp.element.createElement("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()}}),"image"===t&&wp.element.createElement("img",{className:"ugb-image-preview",src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},alt:Object(s.__)("preview",o.i18n)})),!e.imageURL&&wp.element.createElement("div",{className:"ugb-placeholder",onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},role:"button",tabIndex:0},wp.element.createElement(mn,null)))}})))};bn.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var hn=bn;function vn(){return(vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yn=function(e){return wp.element.createElement(l.TextareaControl,vn({},e,{help:wp.element.createElement(i.Fragment,null,wp.element.createElement(l.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(s.__)("Describe the purpose of the image",o.i18n)),Object(s.__)("Leave empty if the image is purely decorative.",o.i18n))}))};yn.defaultProps={label:Object(s.__)("Alt Text (Alternative Text)",o.i18n)};var wn=yn,kn=n(35),On=n.n(kn),Cn=n(36),Sn=n.n(Cn),_n=n(37),xn=n.n(_n),En=n(38),jn=n.n(En);function Pn(){return(Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Tn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Bn=function(e){return wp.element.createElement(i.Fragment,null,wp.element.createElement(Gl,Pn({},e,{className:p()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(Tn(e.hasDefault?[{label:Object(s.__)("Default",o.i18n),value:"",image:On.a}]:[]),[{label:Object(s.__)("Square",o.i18n),value:"square",image:Sn.a},{label:Object(s.__)("Circle",o.i18n),value:"circle",image:xn.a},{label:Object(s.sprintf)(Object(s.__)("Blob %s",o.i18n),1),value:"blob1",image:jn.a}],Tn(Object(R.applyFilters)("stackable.image.control.shapes",[])))})),o.showProNotice&&wp.element.createElement(Yu,{type:"image"}))};Bn.defaultProps={className:"",label:Object(s.__)("Shape",o.i18n),selected:"",hasDefault:!0};var Mn=Bn,Nn=function(e){var t=e.imageData?re(e.imageData,e.imageSize||"full"):null,n=null!==e.isSquareImage?e.isSquareImage:!!t&&t.width===t.height;return wp.element.createElement(i.Fragment,null,e.onChangeShape&&wp.element.createElement(Mn,{selected:e.shape,onChange:e.onChangeShape}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Flip Shape Horizontally",o.i18n),checked:e.shapeFlipX,onChange:e.onChangeShapeFlipX}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Flip Shape Vertically",o.i18n),checked:e.shapeFlipY,onChange:e.onChangeShapeFlipY}),e.onChangeShapeStretch&&!["","square"].includes(e.shape)&&!n&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Stretch Shape Mask",o.i18n),checked:e.shapeStretch,onChange:e.onChangeShapeStretch}))};Nn.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var In=Object(dt.compose)([Object(ne.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(Nn);function An(){return(An=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Dn(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Rn=function(e){var t=e.imageSizes,n=e.value,a=e.className,r=Dn(e,["imageSizes","value","className"]),i=function(e){return Object(b.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}(t);return Object(b.isEmpty)(i)?null:wp.element.createElement(l.SelectControl,An({},r,{value:n||"large",options:i,className:p()(a,["ugb--help-tip-image-size"])}))};Rn.defaultProps={className:"",label:Object(s.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var zn=Object(dt.compose)([Object(ne.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(Rn),Ln=function(e){var t=e.label,n=e.setAttributes,a=e.enablePaddingTop,r=e.enablePaddingRight,l=e.enablePaddingBottom,o=e.enablePaddingLeft,s=e.attributes,u=s.columnPaddingTop,c=void 0===u?"":u,f=s.columnPaddingBottom,p=void 0===f?"":f,d=s.columnPaddingRight,g=void 0===d?"":d,m=s.columnPaddingLeft,b=void 0===m?"":m,h=s.columnPaddingUnit,v=void 0===h?"px":h,y=s.tabletColumnPaddingTop,w=void 0===y?"":y,k=s.tabletColumnPaddingBottom,O=void 0===k?"":k,C=s.tabletColumnPaddingRight,S=void 0===C?"":C,_=s.tabletColumnPaddingLeft,x=void 0===_?"":_,E=s.tabletColumnPaddingUnit,j=void 0===E?"px":E,P=s.mobileColumnPaddingTop,T=void 0===P?"":P,B=s.mobileColumnPaddingBottom,M=void 0===B?"":B,N=s.mobileColumnPaddingRight,I=void 0===N?"":N,A=s.mobileColumnPaddingLeft,D=void 0===A?"":A,R=s.mobileColumnPaddingUnit,z=void 0===R?"px":R;return wp.element.createElement(i.Fragment,null,wp.element.createElement(pu,{label:t,className:"ugb--help-tip-advanced-column-paddings",defaultLocked:!0,min:[0,0,0],max:[500,30,100],step:1,valueDesktop:{top:c,right:g,bottom:p,left:b},valueDesktopUnit:v,onChangeDesktop:function(e){n({columnPaddingTop:e.top,columnPaddingRight:e.right,columnPaddingBottom:e.bottom,columnPaddingLeft:e.left})},onChangeDesktopUnit:function(e){return n({columnPaddingUnit:e})},valueTablet:{top:w,right:O,bottom:S,left:x},valueTabletUnit:j,onChangeTablet:function(e){n({tabletColumnPaddingTop:e.top,tabletColumnPaddingBottom:e.right,tabletColumnPaddingRight:e.bottom,tabletColumnPaddingLeft:e.left})},onChangeTabletUnit:function(e){return n({tabletColumnPaddingUnit:e})},valueMobile:{top:T,right:M,bottom:I,left:D},valueMobileUnit:z,onChangeMobile:function(e){n({mobileColumnPaddingTop:e.top,mobileColumnPaddingBottom:e.right,mobileColumnPaddingRight:e.bottom,mobileColumnPaddingLeft:e.left})},onChangeMobileUnit:function(e){return n({mobileColumnPaddingUnit:e})},enableTop:a,enableRight:r,enableBottom:l,enableLeft:o}))};Ln.defaultProps={setAttributes:function(){},label:Object(s.__)("Column Paddings",o.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};function Fn(){return(Fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Un=q.a.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7v2zM4 6v8h16V6H4z"}),Hn=function(e){return q.a.createElement("svg",Fn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Un)};function Vn(){return(Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gn=q.a.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm0 2v15h8V4H8z"}),qn=function(e){return q.a.createElement("svg",Vn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Gn)};function Wn(){return(Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Kn=q.a.createElement("path",{d:"M6 4v15h12V4H6zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z"}),$n=function(e){return q.a.createElement("svg",Wn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Kn)};function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Xn(e,t){return!t||"object"!==Yn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zn(e,t){return(Zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ea={desktop:wp.element.createElement(Hn,null),tablet:wp.element.createElement($n,null),mobile:wp.element.createElement(qn,null)},ta={desktop:Object(s.__)("Desktop",o.i18n),tablet:Object(s.__)("Tablet",o.i18n),mobile:Object(s.__)("Mobile",o.i18n)},na=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Xn(this,Jn(t).apply(this,arguments))).state={screen:Me(),isScreenPickerOpen:Ie(),isMouseOver:!1},e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zn(e,t)}(t,i["Component"]),n=t,(a=[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),function(e){Be=e}(e),Object(R.doAction)("stackable.responsive-toggle.screen.change",e),this.setState({isMouseOver:e})}},{key:"onOtherScreenChange",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e})}},{key:"onOtherScreenOpen",value:function(){this.setState({isScreenPickerOpen:!0})}},{key:"onOtherScreenClose",value:function(){this.setState({isScreenPickerOpen:!1})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(R.addAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e),this.onOtherScreenChange.bind(this)),Object(R.addAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e),this.onOtherScreenOpen.bind(this)),Object(R.addAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e),this.onOtherScreenClose.bind(this))}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(R.removeAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e)),Object(R.removeAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e)),Object(R.removeAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e))}},{key:"render",value:function(){var e=this;return wp.element.createElement("div",{className:"ugb-base-control-multi-label__responsive"},this.props.screens.length>1&&this.props.screens.map(function(t,n){return n>0&&!e.state.isScreenPickerOpen&&!e.state.isMouseOver?null:wp.element.createElement("div",{key:n},wp.element.createElement(l.Button,{className:e.state.screen===t?"is-active":"",onClick:function(){return e.onChangeScreen(t)},icon:ea[t],showTooltip:!1,label:ta[t],"data-screen":t,onMouseEnter:function(){return e.setState({isMouseOver:t})},onMouseLeave:function(){return e.setState({isMouseOver:!1})}}),e.state.isMouseOver===t&&wp.element.createElement(l.Popover,{focusOnMount:!1,position:"bottom center",className:"components-tooltip","aria-hidden":"true"},ta[t]))}))}}])&&Qn(n.prototype,a),r&&Qn(n,r),t}();na.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var aa=Object(dt.withInstanceId)(na),ra=function(e){return wp.element.createElement("div",{className:"ugb-base-control-multi-label"},wp.element.createElement("div",{className:"ugb-base-control-multi-label__label components-base-control__label"},e.label),wp.element.createElement(aa,{screens:e.screens,onChangeScreen:e.onChangeScreen}),wp.element.createElement("div",{className:"ugb-base-control-multi-label__units"},e.units.length>1&&e.units.map(function(t,n){return wp.element.createElement("button",{key:n,className:e.unit===t?"is-active":"",onClick:function(){return e.onChangeUnit(t)}},t)}),e.afterButton))};ra.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var ia=ra;function la(){return(la=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function oa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function sa(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ua=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,r=sa(e,["allowReset","withInputField","isShiftStepEnabled"]),u=oa(Object(i.useState)(""===e.value||isNaN(e.value)?"":e.value),2),c=u[0],f=u[1],d=function(t){if(f(t),!isNaN(t)){var n=parseFloat(t);if(!isNaN(n))return void e.onChange(Object(b.clamp)(n,e.min,e.max))}e.onChange(e.resetFallbackValue)},g=p()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===c}),m=""===c,h=e.initialPosition||e.placeholder||"",v=function(e,t,n){var a=(e-t)/(n-t)*100;return"".concat(Object(b.clamp)(a,0,100),"%")}((m?h:c)||e.sliderMin||e.min||0,e.sliderMin||e.min||0,e.sliderMax||e.max||100);return wp.element.createElement("div",{className:g,style:{"--ugb-advanced-range-control--width":v}},wp.element.createElement(l.RangeControl,la({},r,{initialPosition:"",onChange:d,withInputField:!1,allowReset:!1,max:e.sliderMax||e.max,min:e.sliderMin||e.min})),n&&wp.element.createElement(l.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:a,max:e.max,min:e.min,onChange:d,onBlur:function(){if(!isNaN(c)){var t=parseFloat(c);if(!isNaN(t))return void f(Object(b.clamp)(t,e.min,e.max))}f(e.resetFallbackValue)},shiftStep:e.shiftStep,step:e.step,value:c,placeholder:null!==e.placeholder?e.placeholder:h}),t&&wp.element.createElement(l.Button,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:function(){f(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},Object(s.__)("Reset",o.i18n)))};ua.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,initialPosition:0,onChange:function(){}};var ca=ua;function fa(e){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ga=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(n,!0).forEach(function(t){da(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(b.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","placeholder","initialPosition"])),n=e.units.indexOf(e.unit)<0?0:e.units.indexOf(e.unit);Array.isArray(e.min)&&(t.min=e.min[n]),Array.isArray(e.max)&&(t.max=e.max[n]),Array.isArray(e.step)&&(t.step=e.step[n]),t.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,t.placeholder=e.placeholder;var a=e.placeholder;if(Array.isArray(a)||"object"!==fa(a))Array.isArray(a)&&"desktop"===e.screen?(t.placeholder=a[n]||"",t.initialPosition=a[n]||"",Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||"")):e.screen&&"desktop"!==e.screen&&(t.placeholder="",t.initialPosition="");else{var r=Me()||"desktop";a=void 0!==a[r]?a[r]:a[Object.keys(a)[0]],Array.isArray(a)?(t.placeholder=a[n]||"",t.initialPosition=a[n]||""):(t.placeholder=a||"",t.initialPosition=a||""),Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||""),t.initialPosition=function(e){return"string"==typeof e&&""!==e&&e.match(/^[\d.]+$/)?e.includes(".")?parseFloat(e):parseInt(e,10):e}(t.initialPosition)}var i=p()(["ugb-advanced-range-control",e.className]);return wp.element.createElement(l.BaseControl,{help:e.help,className:i},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(ca,t))};ga.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:""};var ma=ga,ba=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-select-control",e.className)},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(l.SelectControl,Object(b.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};ba.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var ha=ba,va=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-text-control",e.className)},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(l.TextControl,Object(b.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};va.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var ya=n(39),wa=n.n(ya);function ka(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Oa(e){return(Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sa(e,t){return(Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _a(e){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var xa=function(e){return!(!e.length||"object"!==_a(e[0].options))},Ea=function(e,t){if(!t.length)return e;if(!xa(t)){var n=t.filter(function(t){return t.value===e});return n.length?n[0].label:e}var a=t.map(function(t){return{title:t.title,options:t.options.filter(function(t){return t.value===e})}}).filter(function(e){return e.options.length>0});return a.length?a[0].options[0].label:e},ja=function(e){return e.value},Pa=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},Ta=function(e){return e.options},Ba=function(){return!0},Ma=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Oa(t).apply(this,arguments))||"object"!==_a(a)&&"function"!=typeof a?Ca(n):a).state={value:e.props.value,label:e.props.value?Ea(e.props.value,e.props.options):e.props.value,suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(Ca(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(Ca(e)),e.onChange=e.onChange.bind(Ca(e)),e.onFocus=e.onFocus.bind(Ca(e)),e.autosuggestDiv=Object(i.createRef)(),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sa(e,t)}(t,i["Component"]),n=t,(a=[{key:"onChange",value:function(e,t){var n=t.newValue;this.props.onChange(n),this.setState({value:n,label:Ea(n,this.props.options)})}},{key:"onFocus",value:function(){var e=this;this.props.highlightValueOnFocus&&setTimeout(function(){var t=e.autosuggestDiv.current.querySelector('[data-value="'.concat(e.state.value,'"]'));t&&t.scrollIntoView()},0)}},{key:"onSuggestionsFetchRequested",value:function(e){var t=e.value,n=e.reason;if("input-focused"!==n&&"suggestion-selected"!==n){var a=function(e,t){var n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;var a=new RegExp(n,"i");return xa(t)?t.map(function(e){return{title:e.title,options:e.options.filter(function(e){return a.test(e.label)||a.test(e.value)})}}).filter(function(e){return e.options.length>0}):t.filter(function(e){return a.test(e.label)||a.test(e.value)})}(t,this.props.options);this.setState({suggestions:a,isEmpty:""!==t.trim()&&0===a.length})}else this.setState({suggestions:this.props.options,isEmpty:!1})}},{key:"onSuggestionsClearRequested",value:function(){this.setState({suggestions:[]})}},{key:"render",value:function(){var e=this,t=this.state,n=t.label,a=t.suggestions,r={placeholder:"",value:n,onChange:this.onChange,onFocus:this.onFocus,type:"search"};return wp.element.createElement(l.BaseControl,{help:this.props.help,className:p()("ugb-advanced-autosuggest-control",this.props.className)},wp.element.createElement(ia,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(wa.a,{multiSection:xa(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:ja,renderSuggestion:function(t){return wp.element.createElement("div",{className:"ugb-autosuggest-option","data-value":t.value,id:"ugb-autosuggest-option--".concat(t.id||Object(b.kebabCase)(t.value))},e.props.renderOption?e.props.renderOption(t):t.label)},renderSectionTitle:Pa,getSectionSuggestions:Ta,shouldRenderSuggestions:Ba,inputProps:r}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}])&&ka(n.prototype,a),r&&ka(n,r),t}();Ma.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(s.__)("No matches found",o.i18n),renderOption:null,highlightValueOnFocus:!1};var Na=Ma;function Ia(){return(Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Aa=q.a.createElement("path",{d:"M3 15.1h14v2H3zM9.4 2.9h1.2v8.6l1.3-1.3 1.1.8-3 3-3-3 1.1-.8 1.3 1.3V2.9z"}),Da=function(e){return q.a.createElement("svg",Ia({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Aa)};function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var za=q.a.createElement("path",{d:"M9 3h2v14H9zM1.6 10.6V9.4h3.9L4.2 8.1 5 7l3 3-3 3-.8-1.1 1.3-1.3H1.6zM18.4 9.4v1.2h-3.9l1.3 1.3L15 13l-3-3 3-3 .8 1.1-1.3 1.3h3.9z"}),La=function(e){return q.a.createElement("svg",Ra({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),za)};function Fa(){return(Fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ua=q.a.createElement("path",{d:"M2.9 3h2v14h-2zM17.1 9.4v1.2H8.5l1.3 1.3L9 13l-3-3 3-3 .8 1.1-1.3 1.3h8.6z"}),Ha=function(e){return q.a.createElement("svg",Fa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ua)};function Va(){return(Va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ga=q.a.createElement("path",{d:"M15.1 3h2v14h-2zM2.9 10.6V9.4h8.6l-1.3-1.3L11 7l3 3-3 3-.8-1.1 1.3-1.3H2.9z"}),qa=function(e){return q.a.createElement("svg",Va({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ga)};function Wa(){return(Wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ka=q.a.createElement("path",{d:"M3 16.4h14v2H3zM3 1.6h14v2H3zM10.6 12.8V7.2l1.3 1.3 1.1-.8-3-3-3 3 1.1.8 1.3-1.3v5.6l-1.3-1.3-1.1.8 3 3 3-3-1.1-.8z"}),$a=function(e){return q.a.createElement("svg",Wa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ka)};function Ya(){return(Ya=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Qa=q.a.createElement("path",{d:"M3 3h14v2H3zM10.6 17.1H9.4V8.4L8.1 9.7 7 9l3-3 3 3-1.1.8-1.3-1.3v8.6z"}),Xa=function(e){return q.a.createElement("svg",Ya({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Qa)};function Ja(){return(Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Za=q.a.createElement("path",{d:"M3 9h14v2H3zM10.6 18.4H9.4v-3.9l-1.3 1.3L7 15l3-3 3 3-1.1.8-1.3-1.3v3.9zM9.4 1.6h1.2v3.9l1.3-1.3L13 5l-3 3-3-3 1.1-.8 1.3 1.3V1.6z"}),er=function(e){return q.a.createElement("svg",Ja({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Za)};function tr(){return(tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rr=[{value:"flex-start",title:Object(s.__)("Align Left",o.i18n),icon:wp.element.createElement(Ha,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(La,null)},{value:"flex-end",title:Object(s.__)("Align Right",o.i18n),icon:wp.element.createElement(qa,null)}],ir=[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(Xa,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(er,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(Da,null)},{value:"stretch",title:Object(s.__)("Stretch",o.i18n),icon:wp.element.createElement($a,null)}],lr={"flex-horizontal":rr,"flex-vertical":[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(Xa,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(er,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(Da,null)}],"flex-vertical-with-stretch":ir},or=function(e){var t="string"==typeof e.controls?lr[e.controls]:e.controls,n=p()({"ugb-toolbar--full-width":e.fullwidth,"ugb-toolbar--multiline":e.multiline});return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-toolbar-control",e.className)},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(l.ButtonGroup,{children:t.map(function(t,n){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(n,!0).forEach(function(t){ar(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{onClick:function(){return e.onChange(t.value!==e.value?t.value:"")},isPrimary:e.value===t.value,isSmall:e.isSmall,children:t.icon?null:t.custom||wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)});return wp.element.createElement(l.Button,tr({key:n},a))}),className:n}))};or.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1};var sr=or;function ur(){return(ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var cr=function(e){var t=e.placeholder,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10};return"string"==typeof t&&(t=[t,n(t)]),wp.element.createElement(ma,ur({},e,{placeholder:t,onChangeUnit:function(t){""!==e.value&&("em"===t||"rem"===t?e.onChange(n(e.value)):"px"===t&&e.onChange(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value))),e.onChangeUnit(t)}}))};cr.defaultProps={label:Object(s.__)("Font Size",o.i18n),value:"",onChange:function(){},unit:"px",onChangeUnit:function(){},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};var fr=cr;function pr(){return(pr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var dr=n(40).map(function(e){return{label:e.family,value:e.family}}),gr=function(e){var t=Object(i.useMemo)(function(){return Object(R.applyFilters)("stackable.font-family-control.options",[{id:"system-fonts",title:Object(s.__)("System Fonts",o.i18n),options:[{label:Object(s.__)("Sans-Serif",o.i18n),value:"Sans-Serif"},{label:Object(s.__)("Serif",o.i18n),value:"Serif"},{label:Object(s.__)("Serif Alternative",o.i18n),value:"Serif-Alt"},{label:Object(s.__)("Monospace",o.i18n),value:"Monospace"}]},{id:"google-fonts",title:Object(s.__)("Google Fonts",o.i18n),options:dr}])},[]);return wp.element.createElement(Na,pr({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){dr.some(function(e){return e.value===t&&(N(t),!0)}),e.onChange(t)}}))};gr.defaultProps={onChange:function(){},label:Object(s.__)("Font Family",o.i18n),value:""};var mr=gr;function br(){return(br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function hr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){vr(e,t,n[t])})}return e}function wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Or(e,t,n){return t&&kr(e.prototype,t),n&&kr(e,n),e}function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sr(e){return(Sr="function"==typeof Symbol&&"symbol"===Cr(Symbol.iterator)?function(e){return Cr(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Cr(e)})(e)}function _r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xr(e,t){return!t||"object"!==Sr(t)&&"function"!=typeof t?_r(e):t}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(e,t){return(jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}var Tr=n(23),Br=n(15),Mr=n.n(Br);function Nr(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ir=function(){function e(){wr(this,e),vr(this,"refs",{})}return Or(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Ar)}}]),e}();function Ar(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Dr(e,t){return Object.keys(e).reduce(function(n,a){return-1===t.indexOf(a)&&(n[a]=e[a]),n},{})}var Rr={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},zr=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function Lr(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function Fr(e,t){e.style["".concat(zr,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Ur(e,t){e.style["".concat(zr,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function Hr(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Vr(e,t,n){return Math.max(e,Math.min(n,t))}function Gr(e){return"px"===e.substr(-2)?parseFloat(e):0}function qr(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Wr(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function Kr(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function $r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var a={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?a:$r(e.parentNode,t,a)}}function Yr(e){var t=e.lockOffset,n=e.width,a=e.height,r=t,i=t,l="px";if("string"==typeof t){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Mr()(null!==o,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=parseFloat(t),i=parseFloat(t),l=o[1]}return Mr()(isFinite(r)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===l&&(r=r*n/100,i=i*a/100),{x:r,y:i}}function Qr(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:Qr(e.parentNode):null}var Xr=27,Jr=32,Zr=37,ei=38,ti=39,ni=40,ai={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ri(e){return null!=e.sortableHandle}var ii=function(){function e(t,n){wr(this,e),this.container=t,this.onScrollCallback=n}return Or(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,a=e.minTranslate,r=e.maxTranslate,i=e.width,l=e.height,o={x:0,y:0},s={x:1,y:1},u=10,c=10,f=this.container,p=f.scrollTop,d=f.scrollLeft,g=f.scrollHeight,m=f.scrollWidth,b=0===p,h=g-p-f.clientHeight==0,v=0===d,y=m-d-f.clientWidth==0;n.y>=r.y-l/2&&!h?(o.y=1,s.y=c*Math.abs((r.y-l/2-n.y)/l)):n.x>=r.x-i/2&&!y?(o.x=1,s.x=u*Math.abs((r.x-i/2-n.x)/i)):n.y<=a.y+l/2&&!b?(o.y=-1,s.y=c*Math.abs((n.y-l/2-a.y)/l)):n.x<=a.x+i/2&&!v&&(o.x=-1,s.x=u*Math.abs((n.x-i/2-a.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===o.x&&0===o.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:s.x*o.x,top:s.y*o.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}();var li={axis:wt.a.oneOf(["x","y","xy"]),contentWindow:wt.a.any,disableAutoscroll:wt.a.bool,distance:wt.a.number,getContainer:wt.a.func,getHelperDimensions:wt.a.func,helperClass:wt.a.string,helperContainer:wt.a.oneOfType([wt.a.func,"undefined"==typeof HTMLElement?wt.a.any:wt.a.instanceOf(HTMLElement)]),hideSortableGhost:wt.a.bool,keyboardSortingTransitionDuration:wt.a.number,lockAxis:wt.a.string,lockOffset:wt.a.oneOfType([wt.a.number,wt.a.string,wt.a.arrayOf(wt.a.oneOfType([wt.a.number,wt.a.string]))]),lockToContainerEdges:wt.a.bool,onSortEnd:wt.a.func,onSortMove:wt.a.func,onSortOver:wt.a.func,onSortStart:wt.a.func,pressDelay:wt.a.number,pressThreshold:wt.a.number,keyCodes:wt.a.shape({lift:wt.a.arrayOf(wt.a.number),drop:wt.a.arrayOf(wt.a.number),cancel:wt.a.arrayOf(wt.a.number),up:wt.a.arrayOf(wt.a.number),down:wt.a.arrayOf(wt.a.number)}),shouldCancelStart:wt.a.func,transitionDuration:wt.a.number,updateBeforeSortStart:wt.a.func,useDragHandle:wt.a.bool,useWindowAsScrollContainer:wt.a.bool},oi={lift:[Jr],drop:[Jr],cancel:[Xr],up:[ei,Zr],down:[ni,ti]},si={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:oi,shouldCancelStart:function(e){return-1!==[ai.Input,ai.Textarea,ai.Select,ai.Option,ai.Button].indexOf(e.target.tagName)||!!Hr(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},ui=Object.keys(li);var ci={index:wt.a.number.isRequired,collection:wt.a.oneOfType([wt.a.number,wt.a.string]),disabled:wt.a.bool},fi=Object.keys(ci);function pi(){return(pi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function di(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var gi=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return wr(this,n),vr(_r(_r(t=xr(this,Er(n).call(this,e)))),"state",{}),vr(_r(_r(t)),"handleStart",function(e){var n=t.props,a=n.distance,r=n.shouldCancelStart;if(2!==e.button&&!r(e)){t.touched=!0,t.position=Kr(e);var i=Hr(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var l=t.props.useDragHandle,o=i.sortableInfo,s=o.index,u=o.collection;if(o.disabled)return;if(l&&!Hr(e.target,ri))return;t.manager.active={collection:u,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==ai.Anchor||e.preventDefault(),a||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),vr(_r(_r(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),vr(_r(_r(t)),"handleMove",function(e){var n=t.props,a=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=Kr(e),l={x:t.position.x-i.x,y:t.position.y-i.y},o=Math.abs(l.x)+Math.abs(l.y);t.delta=l,a||r&&!(o>=r)?a&&o>=a&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),vr(_r(_r(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),vr(_r(_r(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),vr(_r(_r(t)),"handlePress",function(e){try{var n=t.manager.getActive(),a=function(){if(n){var a=function(){var n,a,r,u,m,b,h=p.sortableInfo.index,v=(n=p,{bottom:Gr((a=window.getComputedStyle(n)).marginBottom),left:Gr(a.marginLeft),right:Gr(a.marginRight),top:Gr(a.marginTop)}),y=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Gr(t.gridColumnGap),y:Gr(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),k=l({index:h,node:p,collection:d});if(t.node=p,t.margin=v,t.gridGap=y,t.width=k.width,t.height=k.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=w,t.index=h,t.newIndex=h,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=$r(p,t.container),t.initialOffset=Kr(g?yr({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((u="input, textarea, select, canvas, [contenteditable]",m=(r=p).querySelectorAll(u),Nr((b=r.cloneNode(!0)).querySelectorAll(u)).forEach(function(e,t){"file"!==e.type&&(e.value=m[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===ai.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)}),b)),Lr(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-v.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-v.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),s&&(t.sortableGhost=p,Lr(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var O=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,C=O.top,S=O.left,_=O.width,x=C+O.height,E=S+_;t.axis.x&&(t.minTranslate.x=S-t.boundingClientRect.left,t.maxTranslate.x=E-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=C-t.boundingClientRect.top,t.maxTranslate.y=x-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:w.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:w.left+w.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:w.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:w.top+w.height)-t.boundingClientRect.top-t.height/2);o&&o.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?p:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Rr.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),Rr.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:h}),c&&c({node:p,index:h,collection:d,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},r=t.props,i=r.axis,l=r.getHelperDimensions,o=r.helperClass,s=r.hideSortableGhost,u=r.updateBeforeSortStart,c=r.onSortStart,f=r.useWindowAsScrollContainer,p=n.node,d=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(function(){var t=p.sortableInfo.index;return Promise.resolve(u({collection:d,index:t,node:p,isKeySorting:g},e)).then(function(){})},function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return m&&m.then?m.then(a):a()}}();return Promise.resolve(a&&a.then?a.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),vr(_r(_r(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),vr(_r(_r(t)),"handleSortEnd",function(e){var n=t.props,a=n.hideSortableGhost,r=n.onSortEnd,i=t.manager,l=i.active.collection,o=i.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(o?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(Rr.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),Rr.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),a&&t.sortableGhost&&Lr(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=s.length;u<c;u++){var f=s[u],p=f.node;f.edgeOffset=null,f.boundingClientRect=null,Fr(p,null),Ur(p,null),f.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof r&&r({collection:l,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:o,nodes:s},e),t.touched=!1}),vr(_r(_r(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var a=yr({},t.translate),r=0,i=0;return t.axis.x&&(a.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),r=t.translate.x-a.x),t.axis.y&&(a.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-a.y),t.translate=a,Fr(t.helper,t.translate),t.scrollContainer.scrollLeft+=r,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),vr(_r(_r(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),vr(_r(_r(t)),"handleKeyDown",function(e){var n=e.keyCode,a=t.props,r=a.shouldCancelStart,i=a.keyCodes,l=yr({},oi,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!r(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),vr(_r(_r(t)),"keyLift",function(e){var n=e.target,a=Hr(n,function(e){return null!=e.sortableInfo}).sortableInfo,r=a.index,i=a.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:r,collection:i},t.handlePress(e)}),vr(_r(_r(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),a=n[n.length-1].node.sortableInfo.index,r=t.newIndex+e,i=t.newIndex;if(!(r<0||r>a)){t.prevIndex=i,t.newIndex=r;var l=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),o=n.find(function(e){return e.node.sortableInfo.index===l}),s=o.node,u=t.containerScrollDelta,c=o.boundingClientRect||Wr(s,u),f=o.translate||{x:0,y:0},p=c.top+f.y-u.top,d=c.left+f.x-u.left,g=i<r,m=g&&t.axis.x?s.offsetWidth-t.width:0,b=g&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:d+m,pageY:p+b,ignoreTransition:0===e})}}),vr(_r(_r(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),vr(_r(_r(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),vr(_r(_r(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,a=e.target,r=Hr(a,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?ri(a):a.sortableInfo)}),function(e){Mr()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=new Ir,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return Pr(n,G["Component"]),Or(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var a=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof a?a():a,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Qr(e.container)||e.container,e.autoScroller=new ii(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return Rr[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return Rr[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,a=t.lockOffset,r=t.lockToContainerEdges,i=t.transitionDuration,l=t.keyboardSortingTransitionDuration,o=void 0===l?i:l,s=this.manager.isKeySorting,u=e.ignoreTransition,c=Kr(e),f={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,r){var p=function(e){var t=e.height,n=e.width,a=e.lockOffset,r=Array.isArray(a)?a:[a,a];Mr()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",a);var i=hr(r,2),l=i[0],o=i[1];return[Yr({height:t,lockOffset:l,width:n}),Yr({height:t,lockOffset:o,width:n})]}({height:this.height,lockOffset:a,width:this.width}),d=hr(p,2),g=d[0],m=d[1],b={x:this.width/2-g.x,y:this.height/2-g.y},h={x:this.width/2-m.x,y:this.height/2-m.y};f.x=Vr(this.minTranslate.x+b.x,this.maxTranslate.x-h.x,f.x),f.y=Vr(this.minTranslate.y+b.y,this.maxTranslate.y-h.y,f.y)}"x"===n?f.y=0:"y"===n&&(f.x=0),s&&o&&!u&&Ur(this.helper,o),Fr(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,a=e.onSortOver,r=this.containerScrollDelta,i=this.windowScrollDelta,l=this.manager.getOrderedRefs(),o=this.offsetEdge.left+this.translate.x+r.left,s=this.offsetEdge.top+this.translate.y+r.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var f=0,p=l.length;f<p;f++){var d=l[f].node,g=d.sortableInfo.index,m=d.offsetWidth,b=d.offsetHeight,h={height:this.height>b?b/2:this.height/2,width:this.width>m?m/2:this.width/2},v=u&&g>this.index&&g<=c,y=u&&g<this.index&&g>=c,w={x:0,y:0},k=l[f].edgeOffset;k||(k=$r(d,this.container),l[f].edgeOffset=k,u&&(l[f].boundingClientRect=Wr(d,r)));var O=f<l.length-1&&l[f+1],C=f>0&&l[f-1];O&&!O.edgeOffset&&(O.edgeOffset=$r(O.node,this.container),u&&(O.boundingClientRect=Wr(O.node,r))),g!==this.index?(t&&Ur(d,t),this.axis.x?this.axis.y?y||g<this.index&&(o+i.left-h.width<=k.left&&s+i.top<=k.top+h.height||s+i.top+h.height<=k.top)?(w.x=this.width+this.marginOffset.x,k.left+w.x>this.containerBoundingRect.width-h.width&&O&&(w.x=O.edgeOffset.left-k.left,w.y=O.edgeOffset.top-k.top),null===this.newIndex&&(this.newIndex=g)):(v||g>this.index&&(o+i.left+h.width>=k.left&&s+i.top+h.height>=k.top||s+i.top+h.height>=k.top+b))&&(w.x=-(this.width+this.marginOffset.x),k.left+w.x<this.containerBoundingRect.left+h.width&&C&&(w.x=C.edgeOffset.left-k.left,w.y=C.edgeOffset.top-k.top),this.newIndex=g):v||g>this.index&&o+i.left+h.width>=k.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=g):(y||g<this.index&&o+i.left<=k.left+h.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(v||g>this.index&&s+i.top+h.height>=k.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=g):(y||g<this.index&&s+i.top<=k.top+h.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),Fr(d,w),l[f].translate=w):n&&(this.sortableGhost=d,Lr(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var S=u?this.prevIndex:c;a&&this.newIndex!==S&&a({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:S,isKeySorting:u,nodes:l,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Mr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(Tr.findDOMNode)(this):e(a.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(G.createElement)(e,br({ref:t},Dr(this.props,ui)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(),vr(t,"displayName",qr("sortableList",e)),vr(t,"defaultProps",si),vr(t,"propTypes",li),vr(t,"childContextTypes",{manager:wt.a.object.isRequired}),n}(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),mi=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return wr(this,n),xr(this,Er(n).apply(this,arguments))}return Pr(n,G["Component"]),Or(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,a=e.index,r=Object(Tr.findDOMNode)(this);r.sortableInfo={collection:t,disabled:n,index:a,manager:this.context.manager},this.node=r,this.ref={node:r},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Mr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(G.createElement)(e,br({ref:t},Dr(this.props,fi)))}}]),n}(),vr(t,"displayName",qr("sortableElement",e)),vr(t,"contextTypes",{manager:wt.a.object.isRequired}),vr(t,"propTypes",ci),vr(t,"defaultProps",{collection:0}),n}(function(e){var t=e.value,n=(e.key,e.index,di(e,["value","key","index"]));return wp.element.createElement("div",pi({className:"ugb-sort-control__item"},n),t)}),bi=!1,hi=function e(t){for(var n=t.values?t.values.splice(0,t.num):Object(b.range)(t.num).map(function(e){return e+1});n.length<t.num;)n.push(n.length+1);return wp.element.createElement(l.BaseControl,{help:t.help,className:p()(["ugb-sort-control",t.className,"ugb-sort-control--axis-".concat(t.axis)])},wp.element.createElement(ia,pi({label:t.label},Object(b.omit)(t,Object.keys(e.defaultProps)),{afterButton:t.hasReset?wp.element.createElement(l.Button,{disabled:!t.values,onClick:function(){return t.onChange("",{oldIndex:0,newIndex:0})},isSmall:!0,isSecondary:!0},Object(s.__)("Reset")):null})),wp.element.createElement(gi,{onSortStart:function(){return bi=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,r=e.newIndex;bi=!1;var i=function(e,t,n){return e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e}(n,a,r);t.onChange(i,{oldIndex:a,newIndex:r})},axis:t.axis},n.map(function(e,n){return wp.element.createElement(mi,{key:n,index:n,value:e,onMouseEnter:function(){bi||t.onHover(n)},onMouseLeave:function(){bi||t.onHover(null)}})})))};hi.defaultProps={className:"",help:"",label:Object(s.__)("Column Arrangement",o.i18n),num:2,axis:"x",values:null,onChange:function(){},onHover:function(){},hasReset:!1};function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(n,!0).forEach(function(t){wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ki={},Oi={};Object(R.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){Oi[e]=t}),Object(R.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===Oi[e]&&(Oi[e]=t)});var Ci=function(e){var t=function(t){var n=Object(i.useMemo)(function(){return Object(ne.select)("core/block-editor").getSelectedBlockClientId()},[]),a=yi({},t,{onToggle:function(e,a){if(n&&t.withCaching){var r=(l=a.current,(o=l.closest("[data-ugb-tab]"))?o.getAttribute("data-ugb-tab"):""),i="".concat(n,"-").concat(r);Oi[n]=r,ki[i]=e?t.title:null}var l,o;t.onToggle(e)}});if(n&&t.withCaching){var r=Oi[n]||"",l="".concat(n,"-").concat(r),o=ki[l];o?a.initialOpen=o===t.title:null===o&&(a.initialOpen=!1)}return wp.element.createElement(i.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=yi({},e.defaultProps||{},{withCaching:!0}),t};function Si(e){return(Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ji(e){return(ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ti(e,t){return(Ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Bi=1,Mi=function(e){function t(e){var n,a,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(r=ji(t).apply(this,arguments))||"object"!==Si(r)&&"function"!=typeof r?Pi(a):r).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(Pi(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(Pi(n)),n.instanceId=Bi++,n.panelRef=Object(i.createRef)(),n}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ti(e,t)}(t,i["Component"]),n=t,(a=[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.hasToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t]||(n=!0,0))}),n?(this.props.onChange&&this.props.onChange(!0),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(n,!0).forEach(function(t){xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,xi({},this.props.toggleAttributeName,!0))):e}},{key:"componentDidMount",value:function(){Object(R.addFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9)}},{key:"componentWillUnmount",value:function(){Object(R.removeFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId))}},{key:"onToggle",value:function(){if(this.setState({opened:!this.state.opened}),!this.state.opened&&this.panelRef.current){var e=this.panelRef.current.querySelector(".components-panel__body-title"),t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar");t&&e.getBoundingClientRect().top<t.getBoundingClientRect().bottom?Gt(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&Gt(this.panelRef.current)}this.props.onToggle(!this.state.opened,this.panelRef)}},{key:"onAdvancedToggle",value:function(){this.setState({showAdvanced:!this.state.showAdvanced})}},{key:"render",value:function(){var e=this,t=p()([this.props.className,"ugb-toggle-panel-body"],xi({"ugb-toggle-panel-body--advanced":this.state.showAdvanced},"ugb-panel--".concat(this.props.id),this.props.id));return wp.element.createElement(l.PanelBody,{className:t,initialOpen:this.props.initialOpen,onToggle:this.onToggle,opened:this.state.opened,ref:this.panelRef,title:wp.element.createElement(i.Fragment,null,this.props.hasToggle&&this.props.toggleAttributeName&&wp.element.createElement("span",{className:"editor-panel-toggle-settings__panel-title"},wp.element.createElement(l.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:this.props.checked,onClick:function(t){t.stopPropagation(),t.preventDefault();var n=e.props.checked;n&&e.state.opened||n||e.state.opened||e.onToggle(),e.props.onChange&&e.props.onChange(!n)},"aria-describedby":this.props.title}),this.props.title),!(this.props.hasToggle&&this.props.toggleAttributeName)&&this.props.title)},this.props.children,this.state.showAdvanced&&this.props.advancedChildren,this.props.advancedChildren&&wp.element.createElement("button",{className:"ugb-panel-advanced-button",onClick:this.onAdvancedToggle},this.state.showAdvanced?Object(s.__)("Simple",o.i18n):Object(s.__)("Advanced",o.i18n)))}}])&&Ei(n.prototype,a),r&&Ei(n,r),t}();Mi.defaultProps={id:"",className:"",title:Object(s.__)("Settings",o.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!0,initialAdvanced:!1,advancedChildren:null,toggleOnSetAttributes:[],toggleAttributeName:"",onToggle:function(){}};var Ni=Ci(Mi);function Ii(){return(Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ai=function(e){var t=e.blockProps;return wp.element.createElement(Ni,Ii({title:Object(s.__)("Spacing",o.i18n)},e,{className:p()(["ugb--help-tip-spacing",e.className])}),Object(R.applyFilters)("stackable.panel-spacing-body.edit.before",null,t),e.children,Object(R.applyFilters)("stackable.panel-spacing-body.edit.after",null,t))};Ai.defaultProps={className:"",blockProps:{}};var Di=function(e){var t=p()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};Di.defaultProps={tab:"layout"};function Ri(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}function zi(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){Ri(i,a,r,l,o,"next",e)}function o(e){Ri(i,a,r,l,o,"throw",e)}l(void 0)})}}var Li=null,Fi={},Ui=[],Hi=function(e){return e.replace(/^[\w-]+\//,"")},Vi=function(){var e=zi(regeneratorRuntime.mark(function e(){var t,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]&&a[0],Li&&!t){e.next=9;break}return e.next=4,Pe()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:Li=e.sent,t&&(Fi={},Ui=[]);case 9:return e.abrupt("return",Li);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Gi=function(){var e=zi(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Hi(t),Fi[n]){e.next=8;break}return e.next=4,Pe()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:Fi[n]=e.sent;case 8:return e.abrupt("return",Fi[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),qi=function(){var e=zi(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Ui[t]){e.next=7;break}return e.next=3,Pe()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:Ui[t]=e.sent;case 7:return e.abrupt("return",Ui[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Wi=function(){var e=zi(regeneratorRuntime.mark(function e(){var t,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],e.next=3,Pe()({path:"/wp/v2/stk_design_library_dev_mode/",method:"POST",data:{devmode:t}});case 3:return n=e.sent,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();Object(r.a)(function(){});var Ki=function(){var e=zi(regeneratorRuntime.mark(function e(t){var n,a,r,i,l,o,s,u,c,f,p,d,g,m,b,h,v,y;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,a=void 0===n?"":n,r=t.block,i=void 0===r?"":r,l=t.mood,o=void 0===l?"":l,s=t.plan,u=void 0===s?"":s,c=t.colors,f=void 0===c?[]:c,p=t.categories,d=void 0===p?[]:p,g=t.search,m=void 0===g?"":g,b=t.reset,h=void 0!==b&&b,e.t0=Object,e.next=4,Vi(h);case 4:return e.t1=e.sent,v=e.t0.values.call(e.t0,e.t1),a&&(v=v.filter(function(e){return e.type===a})),i&&(y=-1===i.indexOf("ugb/")?"ugb/".concat(i):i,v=v.filter(function(e){return e.block===y})),o&&(v=v.filter(function(e){return e.mood===o})),u&&(v=v.filter(function(e){return e.plan===u})),f&&f.length&&(v=v.filter(function(e){return e.colors.some(function(e){return f.includes(e)})})),d&&d.length&&(v=v.filter(function(e){return e.categories.some(function(e){return d.includes(e)})})),m&&m.toLowerCase().replace(/\s+/," ").trim().split(" ").forEach(function(e){v=v.filter(function(t){return["label","plan","block","tags","categories","colors"].some(function(n){return-1!==t[n].toString().toLowerCase().indexOf(e)})})}),e.abrupt("return",v);case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),$i=function(){var e=zi(regeneratorRuntime.mark(function e(t){var n,a,r,i,l,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vi();case 2:if(n=e.sent,a=n[t],r=a.type,i=a.block,l=a.template,"block"!==r||!i){e.next=12;break}return e.next=8,Gi(i);case 8:return o=e.sent,e.abrupt("return",o[t]);case 12:if(!l){e.next=16;break}return e.next=15,qi(t);case 15:return e.abrupt("return",e.sent);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Yi=function(){var e=zi(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Object,e.next=3,Vi();case 3:return e.t1=e.sent,t=e.t0.values.call(e.t0,e.t1),e.abrupt("return",t.reduce(function(e,t){var n=t.block,a=t.type;return e.includes(n)||"block"!==a||e.push(n),e},[]));case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();function Qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Xi=function(e){var t=Qi(Object(i.useState)(!1),2),n=t[0],a=t[1],r=Qi(Object(i.useState)(""),2),u=r[0],c=r[1],f=Qi(Object(i.useState)([]),2),p=f[0],d=f[1],g=Qi(Object(i.useState)(!0),2),m=g[0],b=g[1],h=Qi(Object(i.useState)(""),2),v=h[0],y=h[1];return Object(i.useEffect)(function(){var t=!0;return Ki({type:"block",block:e.block,search:u}).then(function(e){t&&d(e)}).finally(function(){t&&b(!1)}),function(){t=!1}},[e.block,u]),wp.element.createElement("div",null,wp.element.createElement(l.Button,{className:"ugb-design-library-control__open-library",label:Object(s.__)("Open Design Library",o.i18n),isSmall:!0,isLink:!0,onClick:function(){return a(!0)}},Object(s.__)("Open Design Library",o.i18n)),wp.element.createElement(l.TextControl,{placeholder:Object(s.__)("Search designs...",o.i18n),value:u,onChange:function(e){return c(e)}}),!o.isPro&&wp.element.createElement(sr,{controls:[{value:"",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("All",o.i18n),wp.element.createElement("span",null,p.length))},{value:"free",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("Free",o.i18n),wp.element.createElement("span",null,p.reduce(function(e,t){return e+("free"===t.plan?1:0)},0)))},{value:"premium",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("Premium",o.i18n),wp.element.createElement("span",null,p.reduce(function(e,t){return e+("free"!==t.plan?1:0)},0)))}],value:v,onChange:function(e){return y(e)}}),wp.element.createElement(Cl,{designs:p.filter(function(e){var t=e.plan;return!v||t===v}),isBusy:m,onSelect:e.onSelect}),n&&wp.element.createElement(Jh,{search:u,selectedBlock:e.block,onClose:function(){a(!1),c("")},onSelect:function(t){e.onSelect(t),a(!1)}}))};Xi.defaultProps={block:"",onSelect:function(){}};function Ji(){return(Ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zi=q.a.createElement("path",{d:"M64.1 136L23 176.7c-1.9 1.8-1.9 4.8-.1 6.7.9 1 2.3 1.5 3.6 1.4l86.9.1L64.1 136z"}),el=q.a.createElement("path",{d:"M177.9 128.4c0-4.5-1.8-8.9-5-12.1L71.4 14.7 26.6 59.5c-3.2 3.2-5 7.5-5 12.1 0 4.5 1.8 8.9 5 12.1l101.6 101.6v-.1l44.8-44.8c3.1-3.2 4.9-7.5 4.9-12z",opacity:.75}),tl=q.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM128.2 71.6H71.4v56.8h56.8zM128.2 185.1l44.7-44.7c3.1-3.1 4.9-7.4 5-11.8h-49.7v56.5z"}),nl=q.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM172.9 14.7H86.1l49.4 49.6 40.9-41.2c1.9-2 1.8-5.2-.1-7.1-.9-.8-2.1-1.3-3.4-1.3z"}),al=function(e){return q.a.createElement("svg",Ji({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),Zi,el,tl,nl)};function rl(){return(rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var il=q.a.createElement("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.5c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.5 10.6h1.8l-1.8 1.8v-1.8zm3.1-1.2H4.5V7.7h4.8L7.6 9.4zm2.9-2.9h-6V5H12l-1.5 1.5zM3.3 15H1.5V5h1.7v10zm1.2-.8L13.7 5h1.8v.8L6.3 15H4.5v-.8zm11-4.8h-1.8l1.8-1.8v1.8zm-3.1 1.2h3.1v1.7h-4.8l1.7-1.7zm-2.9 2.9h6V15H8l1.5-1.5zM16.8 5h1.7v10h-1.7V5zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8zm17 16.4c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3v-1.3c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3zm-14.9-.7c0 .3-.2.5-.5.5s-.5-.2-.5-.5.3-.5.5-.5.5.2.5.5zm13.8 0c0 .3-.2.5-.5.5s-.5-.2-.5-.5.2-.5.5-.5.5.2.5.5zM2.6 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm13.8 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}),ll=function(e){return q.a.createElement("svg",rl({xmlns:"http://www.w3.org/2000/svg"},e),il)};function ol(){return(ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var sl=q.a.createElement("path",{d:"M10.9 20h-9c-1 0-1.8-.8-1.8-1.8v-5.1c0-1 .8-1.8 1.8-1.8h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zm-9.1-7.4c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5v-5.1c0-.3-.2-.5-.5-.5h-9zM18.2 8.7h-9c-1 0-1.8-.8-1.8-1.8V1.8C7.4.8 8.2 0 9.2 0h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zM9.1 1.3c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V1.8c0-.3-.2-.5-.5-.5h-9z"}),ul=function(e){return q.a.createElement("svg",ol({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),sl)},cl=function(e){return Object(i.cloneElement)(e,{fill:"url(#stackable-gradient)",className:"ugb-stackable-icon-gradient ".concat(e.props.className||"")})};Object(r.a)(function(){var e=document.createElement("DIV");document.querySelector("body").appendChild(e),Object(i.render)(wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ugb-stackable-gradient",height:"0",width:"0",style:{opacity:0}},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"stackable-gradient"},wp.element.createElement("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))),e)});var fl=function(){return wp.element.createElement(al,{width:"20",height:"20"})};function pl(e){return(pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dl(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gl(e){return(gl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ml(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bl(e,t){return(bl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hl=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=gl(t).apply(this,arguments))||"object"!==pl(a)&&"function"!=typeof a?ml(n):a).state={isOpen:!1,slide:0},e.open=e.open.bind(ml(e)),e.close=e.close.bind(ml(e)),e.prev=e.prev.bind(ml(e)),e.next=e.next.bind(ml(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bl(e,t)}(t,i["Component"]),n=t,(a=[{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"next",value:function(){var e=this.state.slide>=4?0:this.state.slide+1;this.setState({slide:e})}},{key:"prev",value:function(){var e=this.state.slide<=0?4:this.state.slide-1;this.setState({slide:e})}},{key:"render",value:function(){var e=this.props.tag;return wp.element.createElement(e,null,wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=".concat(this.props.buttonUtmSource,"&utm_campaign=learnmore&utm_medium=gutenberg"),target:"_premium",onClick:this.open,className:this.props.buttonClassName},this.props.button),this.state.isOpen&&wp.element.createElement(l.Modal,{className:"ugb-pro-modal",onRequestClose:this.close},wp.element.createElement("img",{src:"https://da4bu55kgdxvv.cloudfront.net/premium-popup.jpg",alt:Object(s.__)("Premium features",o.i18n)}),wp.element.createElement("div",{className:"ugb-pro-modal__footer"},wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=editor-modal-popup&utm_campaign=upgrade&utm_medium=gutenberg",className:"button button-secondary",target:"_premium",title:Object(s.__)("Upgrade to Premium",o.i18n)},wp.element.createElement(fl,null),Object(s.__)("Upgrade to Premium",o.i18n)),wp.element.createElement("a",{href:"https://demo.wpstackable.com?utm_source=editor-modal-popup&utm_campaign=trydemo&utm_medium=gutenberg",target:"_premium",title:Object(s.__)("Try Premium Demo",o.i18n)},Object(s.__)("Try Premium Demo",o.i18n)))))}}])&&dl(n.prototype,a),r&&dl(n,r),t}();hl.defaultProps={button:Object(s.__)("Learn More",o.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var vl=hl;function yl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var wl=function(e){var t=e.designId,n=e.image,a=e.label,r=e.onClick,o=e.plan,s=e.isPro,u=yl(Object(i.useState)(!1),2),c=u[0],f=u[1],d=yl(Object(i.useState)(!1),2),g=d[0],m=d[1],b=p()(["ugb-design-library-item"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"ugb--is-busy":c},"ugb--is-".concat(o),!s&&"free"!==o));return wp.element.createElement("div",{className:b,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},c&&wp.element.createElement("span",{className:"ugb-design-library-item__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),!s&&"free"!==o&&wp.element.createElement("span",{className:"ugb-design-library-item__premium","data-testid":"premium-tag"},o),wp.element.createElement("button",{className:"ugb-design-library-item__image",onClick:function(){(s||"free"===o)&&(f(!0),$i(t).then(function(e){f(!1),r(e)}))}},!s&&"free"!==o&&wp.element.createElement(l.Dashicon,{icon:"lock"}),wp.element.createElement("img",{src:n,alt:a,loading:"lazy"})),wp.element.createElement("footer",null,(s||"free"===o)&&wp.element.createElement("span",null,a),!s&&"free"!==o&&!g&&wp.element.createElement("span",null,a),!s&&"free"!==o&&g&&wp.element.createElement(vl,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(i.Fragment,null,wp.element.createElement(l.Dashicon,{icon:"external"}),e.premiumLabel)})))};wl.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:o.isPro,premiumLabel:Object(s.__)("Go Premium",o.i18n)};var kl=wl;var Ol=function(e){var t=e.designs,n=e.isBusy,a=e.onSelect,r=p()(["ugb-design-library-items"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"ugb-design-library-items--columns-".concat(e.columns),!n&&e.columns));return wp.element.createElement("div",{className:r},(t||[]).map(function(e,t){return wp.element.createElement(kl,{key:t,type:e.type,block:e.block,template:e.template,plan:e.plan,designId:e.id,image:e.image,label:e.label,onClick:function(e){a(e)}})}),n&&wp.element.createElement("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),!n&&!(t||[]).length&&wp.element.createElement("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},Object(s.__)("No designs found",o.i18n)))};Ol.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var Cl=Ol;n(132);function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(n,!0).forEach(function(t){xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var El={},jl=function(e){var t=function(t){var n,a=t.initialTab||El[t.blockProps.clientId]||(n=t.blockProps,Oe[n.name]||(Oe[n.name]=Object(he.createBlock)(n.name).attributes),Object.keys(Oe[n.name]).every(function(e){return!!ke.includes(e)||Oe[n.name][e]===n.attributes[e]})?"layout":"style");Object(R.doAction)("stackable.inspector.tab.initial",t.blockProps.clientId,a);var r=_l({},t,{initialTab:a,onClick:function(e){El[t.blockProps.clientId]=e,Object(R.doAction)("stackable.inspector.tab.click",t.blockProps.clientId,e),t.onClick(e)}});return wp.element.createElement(i.Fragment,null,wp.element.createElement(e,r))};return t.defaultProps=_l({},e.defaultProps||{}),t};function Pl(e){return(Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tl(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ml(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nl(e,t){return(Nl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Il=[{value:"layout",title:Object(s.__)("Layout",o.i18n),label:Object(s.__)("Layout Tab",o.i18n),icon:"admin-settings"},{value:"style",title:Object(s.__)("Style",o.i18n),label:Object(s.__)("Style Tab",o.i18n),icon:"admin-appearance"},{value:"advanced",title:Object(s.__)("Advanced",o.i18n),label:Object(s.__)("Advanced Tab",o.i18n),icon:"admin-tools"}],Al=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Bl(t).apply(this,arguments))||"object"!==Pl(a)&&"function"!=typeof a?Ml(n):a).tabsToUse=e.props.tabs||["layout","style","advanced"],e.state={activeTab:e.props.initialTab?e.props.initialTab:e.tabsToUse[0]},e.onButtonPanelClick=e.onButtonPanelClick.bind(Ml(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(Ml(e)),e.select=e.select.bind(Ml(e)),e.containerDiv=Object(i.createRef)(),e.props.onTabFirstOpen(e.state.activeTab),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nl(e,t)}(t,i["Component"]),n=t,(a=[{key:"updateSidebarPanelTab",value:function(e){var t,n=this.containerDiv.current.closest(".components-panel");n&&(n.setAttribute("data-ugb-tab",e),null===(t=n.closest(".edit-post-sidebar"))||void 0===t||t.classList.add("ugb--has-panel-tabs"))}},{key:"componentDidMount",value:function(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&document.body.addEventListener("click",this.onButtonPanelClick)}},{key:"componentWillUnmount",value:function(){var e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&document.body.removeEventListener("click",this.onButtonPanelClick)}},{key:"onButtonPanelClick",value:function(e){var t,n=e.target.closest(".components-panel__body-toggle");n&&"layout"!==this.state.activeTab&&(t=n,[].forEach.call(document.querySelectorAll(".components-panel__body .components-panel__body-toggle"),function(e){0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&t!==e&&e.click()}),this.props.onClickPanel(n.closest(".components-panel__body")))}},{key:"select",value:function(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}},{key:"render",value:function(){var e=this,t=p()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return wp.element.createElement("div",{className:t,style:this.props.style,ref:this.containerDiv},wp.element.createElement("div",{className:"ugb-panel-tabs__wrapper"},Il.map(function(t,n){var a=t.value,r=t.title,i=t.label,o=t.icon;return e.tabsToUse.includes(a)?wp.element.createElement("button",{key:n,onClick:function(){return e.select(a)},className:p()(["edit-post-sidebar__panel-tab","ugb-tab--".concat(a)],{"is-active":e.state.activeTab===a}),"aria-label":i,"data-label":i},wp.element.createElement(l.Icon,{icon:o}),r):null})))}}])&&Tl(n.prototype,a),r&&Tl(n,r),t}();Al.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};jl(Al);function Dl(){return(Dl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Rl=function(e){var t=p()(["ugb-global-style-control__item"],{"ugb-global-style-control__item--large-preview":e.largePreview}),n=e.renderPreview&&e.renderPreview(Object(b.pick)(e,["label","value"]));return wp.element.createElement("div",{className:t},n&&wp.element.createElement("div",{className:"ugb-global-style-control__item-preview"},n),wp.element.createElement("div",{className:"ugb-global-style-control__item-label"},e.label),wp.element.createElement(l.Button,{className:"ugb-global-style-control__item-button",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.onEdit(e.value)},label:Object(s.__)("Edit Style",o.i18n),isTertiary:!0,icon:"edit"}))};Rl.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var zl=function(e){var t=e.options;if(e.value){var n=e.options.find(function(t){return t.value===e.value});n&&(t=e.options.filter(function(t){return t.value!==e.value})).unshift(n)}var a=p()(["ugb-global-style-control",e.className],{"ugb--has-value":e.value});return wp.element.createElement(Na,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(Rl,Dl({},t,{largePreview:e.largePreview,onEdit:e.onEdit,renderPreview:e.renderPreview}))}},e.value&&wp.element.createElement(l.Button,{icon:"edit",label:Object(s.__)("Edit Style",o.i18n),isSecondary:!0,onClick:function(){return e.onEdit(e.value)}}),e.value&&wp.element.createElement(l.Button,{icon:"editor-unlink",label:Object(s.__)("Unlink Style",o.i18n),isSecondary:!0,disabled:!e.value,onClick:e.onUnlink}))};zl.defaultProps={className:"",label:Object(s.__)("Style",o.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};var Ll=function(e){var t=e.imageFile,n=e.imageHoverFile,a=e.imageWidth,r=void 0===a?"":a,i=e.imageHeight,l=void 0===i?"":i,s=e.label,u=t?t.match(/https?:/i)?t:o.srcUrl?"".concat(o.srcUrl,"/").concat(t):t:"",c=n?n.match(/https?:/i)?n:o.srcUrl?"".concat(o.srcUrl,"/").concat(n):n:null;return wp.element.createElement("span",{className:"ugb-design-panel-item"},c&&wp.element.createElement("img",{className:"ugb-design-panel-item__hover-image",src:c,alt:s,width:r,height:l}),u&&wp.element.createElement("img",{className:"ugb-design-panel-item__image",src:u,alt:s,width:r,height:l}),wp.element.createElement("span",{className:"design-label"},s))};function Fl(){return(Fl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Hl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vl=function(e){var t=e.options.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(n,!0).forEach(function(t){Hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(Ll,{imageFile:e.image,imageHoverFile:e.hoverImage,imageWidth:e.imageWidth,imageHeight:e.imageHeight,isPro:e.isPro,label:e.label}),title:e.label,value:e.value})}),n=p()([e.className,"ugb-design-control-wrapper","components-base-control","ugb-design-control--columns-".concat(e.columns)]);return wp.element.createElement("div",{className:n},e.label&&wp.element.createElement("div",{className:"components-base-control__label"},e.label),wp.element.createElement(l.RadioControl,Fl({},Object(b.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Vl.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var Gl=Vl,ql=n(41),Wl=n.n(ql),Kl=n(42),$l=n.n(Kl),Yl=n(43),Ql=n.n(Yl),Xl=n(44),Jl=n.n(Xl),Zl=n(45),eo=n.n(Zl),to=n(46),no=n.n(to),ao=n(47),ro=n.n(ao),io=n(48),lo=n.n(io),oo=n(49),so=n.n(oo),uo=n(50),co=n.n(uo),fo=n(51),po=n.n(fo),go=n(52),mo=n.n(go),bo=n(53),ho=n.n(bo);function vo(){return(vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yo={"wave-1":{image:co.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),1),value:"wave-1"},"straight-1":{image:so.a,label:Object(s.__)("Straight",o.i18n),value:"straight-1"},"wave-2":{image:po.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),2),value:"wave-2"},"wave-3":{image:mo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),3),value:"wave-3"},"wave-4":{image:ho.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),4),value:"wave-4"},"slant-1":{image:ro.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),1),value:"slant-1"},"slant-2":{image:lo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),2),value:"slant-2"},"curve-1":{image:Wl.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),1),value:"curve-1"},"curve-2":{image:$l.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),2),value:"curve-2"},"curve-3":{image:Ql.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),3),value:"curve-3"},"rounded-1":{image:Jl.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),1),value:"rounded-1"},"rounded-2":{image:eo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),2),value:"rounded-2"},"rounded-3":{image:no.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),3),value:"rounded-3"}},wo=function(e){var t=Object.keys(yo).filter(function(t){return!e.excludeDesigns.includes(t)}).map(function(e){return yo[e]});return wp.element.createElement(l.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:e.label,help:e.help},wp.element.createElement(Gl,vo({options:Object(R.applyFilters)("stackable.separator.edit.layouts",t,e)},Object(b.omit)(e,["label","help"]))))};wo.defaultProps={label:"",help:"",excludeDesigns:[]};function ko(){return(ko=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Oo=q.a.createElement("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}),Co=function(e){return q.a.createElement("svg",ko({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Oo)};function So(){return(So=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _o=Object(dt.withInstanceId)(Object(dt.withState)({openPopover:!1,clickedOnButton:!1})(function(e){var t=e.instanceId,n=e.openPopover,a=e.clickedOnButton,r=e.setState;return wp.element.createElement(l.BaseControl,So({className:"ugb-icon-control ugb-icon-control-".concat(t)},Object(b.omit)(e,["onChange","value"])),wp.element.createElement("div",{className:"ugb-icon-control__wrapper"},wp.element.createElement("div",{className:"ugb-icon-control__button-wrapper"},wp.element.createElement(l.Button,{isSecondary:!0,className:"ugb-icon-control__icon-button",onClick:function(){r(a?{openPopover:!1,clickedOnButton:!1}:{openPopover:!0})}},e.value&&wp.element.createElement(wu,{value:e.value}),!e.value&&wp.element.createElement(Co,{style:{opacity:.3}})),n&&wp.element.createElement(Uo,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-icon-control-".concat(t))?r({clickedOnButton:!0}):r({openPopover:!1,clickedOnButton:!1})},onClose:function(){return r({openPopover:!1})},returnSVGValue:e.returnSVGValue,onChange:e.onChange})),wp.element.createElement(l.Button,{onClick:function(){e.onReset?e.onReset():e.onChange(""),r({openPopover:!1})},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(s.__)("Reset",o.i18n))))}));_o.defaultProps={label:Object(s.__)("Icon",o.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var xo=_o;function Eo(){return(Eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var jo=q.a.createElement("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}),Po=function(e){return q.a.createElement("svg",Eo({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e),jo)};function To(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Bo(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}var Mo=function(){var e,t=(e=regeneratorRuntime.mark(function e(){var t,n,a,r,i=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"icon",n=i.length>1&&void 0!==i[1]?i[1]:o.fontAwesomeSearchProIcons,a='{ search(version: "latest", first: 50, query: "'.concat((t||"info").replace(/["'\\]/g,""),'") {\n\t\t\tid\n\t\t\tmembership {\n\t\t\t\tfree\n\t\t\t\t').concat(n?"pro":"","\n\t\t\t}\n\t\t} }"),e.next=5,fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:a})}).then(function(e){return e.json()});case 5:return r=e.sent,e.abrupt("return",r.data.search.reduce(function(e,t){return No(t,n).forEach(function(t){e.push(t)}),e},[]));case 7:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){Bo(i,a,r,l,o,"next",e)}function o(e){Bo(i,a,r,l,o,"throw",e)}l(void 0)})});return function(){return t.apply(this,arguments)}}(),No=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(To(e.membership.free),To(t?e.membership.pro.filter(function(t){return!e.membership.free.includes(t)}):[]));return n.map(function(t){return{className:"fa".concat(t[0]," fa-").concat(e.id),prefix:"fa".concat(t[0]),iconName:e.id}})},Io=n(54);function Ao(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Do=null,Ro=null,zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,"$1".concat(t," ")):e.match(/(<svg)/)?e.replace(/(<svg)/,'$1 class="'.concat(t,'"')):e},Lo=function(e){for(var t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1"),n=0;n<2;n++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t},Fo=function(e){var t=Ao(Object(i.useState)(""),2),n=t[0],a=t[1],r=Ao(Object(i.useState)([]),2),u=r[0],c=r[1],f=Ao(Object(i.useState)(!1),2),d=f[0],g=f[1],m=Ao(Object(i.useState)(!1),2),b=m[0],h=m[1],v=e.returnSVGValue;Object(i.useEffect)(function(){var e=!0;return clearTimeout(Do),Do=setTimeout(function(){e&&(g(!0),Mo(n).then(function(t){e&&c(t)}).finally(function(){e&&g(!1)}))},500),function(){e=!1,clearTimeout(Do)}},[n]),Object(i.useEffect)(function(){Ro||(Ro=wp.data.select("core/block-editor").getSettings().mediaUpload),b?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==Ro&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:Ro})},[b]);var y=p()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":o.isPro,"ugb-icon--has-upload":v,"ugb-icon--has-reset":e.allowReset});return wp.element.createElement(l.Popover,{className:"ugb-icon-popover",onClose:e.onClose,onClickOutside:e.onClickOutside,position:e.position,anchorRef:e.anchorRef},wp.element.createElement(l.PanelBody,null,wp.element.createElement(Io.FileDrop,{onFrameDragEnter:function(){return h(!0)},onFrameDragLeave:function(){return h(!1)},onFrameDrop:function(){return h(!1)},onDrop:function(t){if(v&&t.length)if("image/svg+xml"===t[0].type){var n=new FileReader;n.onload=function(t){h(!1);var n=Lo(zo(t.target.result));e.onChange(n),e.onClose()},n.readAsText(t[0])}else h(!1);else h(!1)}},wp.element.createElement("div",{className:y},wp.element.createElement(l.TextControl,{className:"ugb-icon-popover__input",value:n,onChange:a,placeholder:Object(s.__)("Type to search icon",o.i18n)}),o.isPro&&wp.element.createElement(l.Button,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:o.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:Object(s.__)("Icon Settings",o.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),v&&wp.element.createElement(l.Button,{onClick:function(t){t.preventDefault();var n=document.createElement("input");n.accept="image/svg+xml",n.type="file",n.onchange=function(t){var n=t.target.files;if(n.length){var a=new FileReader;a.onload=function(t){h(!1);var n=Lo(zo(t.target.result));e.onChange(n),e.onClose()},a.readAsText(n[0])}else h(!1)},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},Object(s.__)("Upload SVG",o.i18n)),e.allowReset&&wp.element.createElement(l.Button,{onClick:function(){e.onChange(""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(s.__)("Clear icon",o.i18n))),wp.element.createElement("div",{className:"ugb-icon-popover__iconlist"},d&&wp.element.createElement(l.Spinner,null),!d&&u.map(function(t,n){var a=t.prefix,r=t.iconName,i="".concat(a,"-").concat(r);return wp.element.createElement("button",{key:n,className:"components-button ugb-prefix--".concat(a," ugb-icon--").concat(r),onClick:function(){e.returnSVGValue?e.onChange(Lo(xe(a,r))):e.onChange(i,a,r),e.onClose()}},wp.element.createElement(lv,{prefix:a,iconName:r}))}),!d&&!u.length&&wp.element.createElement("p",{className:"components-base-control__help"},Object(s.__)("No matches found",o.i18n))),v&&b&&wp.element.createElement("div",{className:"ugb-icon-popover__drop-indicator"},wp.element.createElement(Po,{height:"40",width:"40"}),Object(s.__)("Drop your SVG here",o.i18n)))))};Fo.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var Uo=Fo,Ho=function(e){return wp.element.createElement(gd,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(Wd,{label:e.label,className:p()([e.className,"ugb--help-tip-alignment-all"])}))};Ho.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(s.__)("Align",o.i18n)};var Vo=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})};function Go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var qo=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=Go(t,2),a=n[0],r=n[1];t="linear-gradient(90deg, ".concat(a||"transparent",", ").concat(r||"transparent",")")}var u=p()(["components-circular-option-picker__option-wrapper","ugb-button-icon-popover-control-color-preview"],{"ugb-button-icon-popover-control-color-preview--transparent":!t||"transparent"===t});return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",{className:u},wp.element.createElement(l.Button,{className:"components-circular-option-picker__option",label:Object(s.__)("Selected color",o.i18n),style:{background:t},onClick:e.onClick,ref:e._ref}),e.children))};qo.defaultProps={color:"",onClick:function(){},_ref:null};var Wo=qo;function Ko(){return(Ko=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var $o=q.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Yo=q.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Qo=q.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),Xo=function(e){return q.a.createElement("svg",Ko({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),$o,Yo,Qo)},Jo=function(e){return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",{className:"components-circular-option-picker__option-wrapper ugb-button-icon-popover-control-image-preview"},wp.element.createElement(l.Button,{className:"components-circular-option-picker__option",label:Object(s.__)("Selected image",o.i18n),style:{backgroundImage:e.imageUrl?"url(".concat(e.imageUrl,")"):void 0},onClick:e.onClick,ref:e._ref},!e.imageUrl&&wp.element.createElement(Xo,null)),e.children))};Jo.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var Zo=Jo;function es(e){return(es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function as(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function rs(e){return(rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ls(e,t){return(ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var os=1,ss=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=rs(t).apply(this,arguments))||"object"!==es(a)&&"function"!=typeof a?is(n):a).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(is(e)),e.handleClose=e.handleClose.bind(is(e)),e.handleMouseLeave=e.handleMouseLeave.bind(is(e)),e.handleMouseEnter=e.handleMouseEnter.bind(is(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(is(e)),e.handleReset=e.handleReset.bind(is(e)),e.buttonRef=Object(i.createRef)(),e.buttonRefColorPreview=Object(i.createRef)(),e.buttonRefImagePreview=Object(i.createRef)(),e.instanceId=os++,e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ls(e,t)}(t,i["Component"]),n=t,(a=[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.onToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t]||(n=!0,0))}),n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(n,!0).forEach(function(t){ns(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,ns({},this.props.toggleAttributeName,!0)):e}},{key:"componentDidMount",value:function(){Object(R.addFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9),document.addEventListener("mousedown",this.handleOnClickOutside)}},{key:"componentWillUnmount",value:function(){Object(R.removeFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId)),document.removeEventListener("mousedown",this.handleOnClickOutside)}},{key:"handleOpen",value:function(){this.setState({open:!this.state.open})}},{key:"handleClose",value:function(){this.setState({open:!1})}},{key:"handleMouseLeave",value:function(){this.setState({isMouseOutside:!0})}},{key:"handleMouseEnter",value:function(){this.setState({isMouseOutside:!1})}},{key:"handleReset",value:function(){this.props.resetPopoverTitle||this.props.resetPopoverDescription?this.setState({showResetPopover:!0}):this.props.onReset()}},{key:"handleOnClickOutside",value:function(e){var t,n,a,r;(null===(t=window.wp)||void 0===t?void 0:null===(n=t.media)||void 0===n?void 0:null===(a=n.frame)||void 0===a?void 0:null===(r=a.el)||void 0===r?void 0:r.clientHeight)||this.state.isMouseOutside&&e.target.closest("button")!==this.buttonRef.current&&e.target.closest("button")!==this.buttonRefColorPreview.current&&e.target.closest("button")!==this.buttonRefImagePreview.current&&(e.target.closest(".ugb-button-icon-control__popover")||this.handleClose())}},{key:"render",value:function(){var e=this;return wp.element.createElement(l.BaseControl,{help:this.props.help,label:!this.props.onToggle&&wp.element.createElement("label",{htmlFor:"ugb-button-icon-control__edit-".concat(this.instanceId)},this.props.label),id:"ugb-button-icon-control",className:p()("ugb-button-icon-control",this.props.className)},this.props.onToggle&&wp.element.createElement(l.ToggleControl,{label:this.props.label,checked:this.props.checked,onChange:this.props.onToggle}),wp.element.createElement("div",{className:"ugb-button-icon-control__wrapper"},this.props.allowReset&&wp.element.createElement(i.Fragment,null,wp.element.createElement(l.Button,{onClick:this.handleReset,className:"ugb-button-icon-control__reset",label:Object(s.__)("Reset",o.i18n),icon:"image-rotate"}),this.state.showResetPopover&&wp.element.createElement(l.Popover,{onClickOutside:function(){return e.setState({showResetPopover:!1})},focusOnMount:!1,position:"bottom center"},wp.element.createElement("div",{className:"components-color-picker__body"},wp.element.createElement("h4",{className:"ugb-button-icon-control__text-title"},this.props.resetPopoverTitle),wp.element.createElement("p",{className:"components-base-control__help"},this.props.resetPopoverDescription),wp.element.createElement(l.ButtonGroup,null,wp.element.createElement(l.Button,{onClick:function(){e.setState({showResetPopover:!1}),e.props.onReset()},isDestructive:!0,isSecondary:!0,isSmall:!0},Object(s.__)("Reset",o.i18n)),wp.element.createElement(l.Button,{onClick:function(){return e.setState({showResetPopover:!1})},isSmall:!0},Object(s.__)("Cancel",o.i18n)))))),this.props.hasImagePreview&&wp.element.createElement(Zo,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(Wo,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),wp.element.createElement(l.Button,{onClick:this.handleOpen,className:"ugb-button-icon-control__edit",label:Object(s.__)("Edit",o.i18n),isSecondary:!0,icon:"edit",id:"ugb-button-icon-control__edit-".concat(this.instanceId),ref:this.buttonRef}),this.state.open&&wp.element.createElement(l.Popover,{className:"ugb-button-icon-control__popover",focusOnMount:"container",anchorRef:this.buttonRef.current,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter},wp.element.createElement(l.PanelBody,null,(void 0!==this.props.popoverLabel?this.props.popoverLabel:this.props.label)&&wp.element.createElement("h2",{className:"components-panel__body-title"},this.props.popoverLabel||this.props.label),this.props.children))))}}])&&as(n.prototype,a),r&&as(n,r),t}();ss.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:function(){},checked:!1,onToggle:void 0,toggleOnSetAttributes:[],toggleAttributeName:"",colorPreview:null,imageUrlPreview:"",hasColorPreview:!1,hasImagePreview:!1};var us=ss,cs=function(e){var t=re(e.imageData,e.size||"full"),n=e.widthMax||1e3,a=0;e.imageData&&e.onChangeSize&&t&&(n=t.width,a=t.height);var r=!!t&&t.width===t.height;return wp.element.createElement(i.Fragment,null,e.onChangeImage&&wp.element.createElement(hn,{label:Object(s.__)("Image",o.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:"",width:"",height:""})},onChange:function(t){var n=t.url,a=t.width,r=t.height,i=e.size||"full";t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChangeImage({id:t.id,url:n,width:a,height:r})}}),e.onChangeShape&&wp.element.createElement(In,{isSquareImage:r,shape:e.shape,shapeFlipX:e.shapeFlipX,shapeFlipY:e.shapeFlipY,shapeStretch:e.shapeStretch,onChangeShape:e.onChangeShape,onChangeShapeFlipX:e.onChangeShapeFlipX,onChangeShapeFlipY:e.onChangeShapeFlipY,onChangeShapeStretch:e.onChangeShapeStretch}),wp.element.createElement(Vo,null),e.onChangeAlt&&wp.element.createElement(wn,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(zn,{label:Object(s.__)("Image Size",o.i18n),value:e.size,onChange:function(t){var n=re(e.imageData,t||"full"),a="",r="",i=e.url;n&&(a=n.width,r=n.height,i=n.source_url),e.onChangeSize(t,i,a,r)}}),e.onChangeWidth&&wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,null,wp.element.createElement(ma,{label:Object(s.__)("Image Width",o.i18n),value:e.width,placeholder:e.placeholder,max:n,onChange:function(t){var r=a/n;e.onChangeWidth("number"==typeof t?t:"","number"==typeof t?parseInt(r*t,10):"")},allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ma,{label:Object(s.__)("Image Width",o.i18n),value:e.tabletWidth,max:n,onChange:e.onChangeTabletWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ma,{label:Object(s.__)("Image Width",o.i18n),value:e.mobileWidth,max:n,onChange:e.onChangeMobileWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"}))),e.onChangeSquare&&wp.element.createElement(i.Fragment,null,("number"==typeof e.width||e.width)&&wp.element.createElement(kd,null,wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Force square image",o.i18n),checked:e.square,onChange:e.onChangeSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.tabletWidth||e.tabletWidth)&&wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Force square image",o.i18n),checked:e.tabletSquare,onChange:e.onChangeTabletSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.mobileWidth||e.mobileWidth)&&wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Force square image",o.i18n),checked:e.mobileSquare,onChange:e.onChangeMobileSquare,className:"ugb--help-tip-image-square"}))),e.onChangeBorderRadius&&""===e.shape&&wp.element.createElement(ma,{label:Object(s.__)("Border Radius",o.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:100,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-border-radius"}),e.onChangeShadow&&""===e.shape&&wp.element.createElement(ma,{label:Object(s.__)("Shadow / Outline",o.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-shadow"}),e.onChangeBlendMode&&wp.element.createElement(cn,{label:Object(s.__)("Blend Mode",o.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};cs.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id,e.width,e.height},shape:"",onChangeShape:function(){},shapeStretch:"",onChangeShapeStretch:function(){},alt:"",onChangeAlt:function(){},size:"large",onChangeSize:function(){},widthMax:1e3,width:"",tabletWidth:"",mobileWidth:"",onChangeWidth:function(){},onChangeTabletWidth:function(){},onChangeMobileWidth:function(){},square:"",tabletSquare:"",mobileSquare:"",onChangeSquare:function(){},onChangeTabletSquare:function(){},onChangeMobileSquare:function(){},borderRadius:"",onChangeBorderRadius:function(){},shadow:"",onChangeShadow:function(){},blendMode:"",onChangeBlendMode:function(){}};var fs=Object(dt.compose)(Object(ne.withSelect)(function(e,t){var n=e("core").getMedia;return ie(t.id,e),{imageData:t.id?n(t.id):null}}))(cs);function ps(){return(ps=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ds(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gs=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(fs,ps({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id,l=e.width,o=e.height;t((ds(a={},n("Url"),r),ds(a,n("Id"),i),ds(a,n("Width"),l),ds(a,n("Height"),o),a))},alt:a("Alt"),onChangeAlt:function(e){return t(ds({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,r,i){var l;t((ds(l={},n("Size"),e),ds(l,n("Url"),a),ds(l,n("Width"),r),ds(l,n("Height"),i),l))},shape:a("Shape"),onChangeShape:function(e){return t(ds({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(ds({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(ds({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(ds({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(ds({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var r;t((ds(r={},n("Width"),e),ds(r,n("Height"),a),r))},onChangeTabletWidth:function(e){return t(ds({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(ds({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(ds({},n("Square"),e))},onChangeTabletSquare:function(e){return t(ds({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(ds({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(ds({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(ds({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(ds({},n("BlendMode"),e))}},e))};gs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var ms=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeImage&&wp.element.createElement(hn,{label:Object(s.__)("Image",o.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:""})},onChange:function(t){var n=t.url,a=e.size||"full";t.sizes[a]&&(n=t.sizes[a].url),e.onChangeImage({id:t.id,url:n})}}),e.onChangeSize&&wp.element.createElement(zn,{label:Object(s.__)("Image Size",o.i18n),value:e.size,onChange:function(t){e.onChangeSize(t,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=le(e)||ie(e,ne.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""}(e.id,t||"full"))},className:"ugb--help-tip-image-size"}),e.onChangeBackgroundPosition&&wp.element.createElement(ha,{label:Object(s.__)("Background Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"}),e.onChangeBackgroundRepeat&&wp.element.createElement(ha,{label:Object(s.__)("Background Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"}),e.onChangeBackgroundSize&&wp.element.createElement(ha,{label:Object(s.__)("Background Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"}),e.onChangeBackgroundSize&&"custom"===e.backgroundSize&&wp.element.createElement(ma,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%"],min:[0,0],max:[1e3,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0}))};ms.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id},size:"",onChangeSize:function(){},backgroundPosition:"",onChangeBackgroundPosition:function(){},backgroundRepeat:"",onChangeBackgroundRepeat:function(){},backgroundSize:"",onChangeBackgroundSize:function(){},backgroundCustomSizeUnit:"",onChangeBackgroundCustomSizeUnit:function(){},backgroundCustomSize:"",onChangeBackgroundCustomSize:function(){}};var bs=Object(dt.compose)(Object(ne.withSelect)(function(e,t){var n=e("core").getMedia;return ie(t.id,e),{imageData:t.id?n(t.id):null}}))(ms);function hs(){return(hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function vs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ys=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(bs,hs({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id;t((vs(a={},n("Url"),r),vs(a,n("Id"),i),a))},size:a("Size"),onChangeSize:function(e,a){var r;t((vs(r={},n("Size"),e),vs(r,n("Url"),a),r))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(vs({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(vs({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(vs({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(vs({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(vs({},n("BackgroundCustomSizeUnit"),e))}},e))};ys.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function ws(){return(ws=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ks=function(e){var t=Object(i.useMemo)(function(){return"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder(H(e.htmlTag,!0))):e.fontSize||e.placeholder||H(e.htmlTag,!0)},[e.htmlTag,e.fontSize]);return wp.element.createElement(i.Fragment,null,wp.element.createElement(us,{label:e.label,popoverLabel:e.popoverLabel,onReset:e.onReset,allowReset:e.fontFamily||e.fontSize||e.tabletFontSize||e.mobileFontSize||e.fontWeight||e.textTransform||e.lineHeight||e.tabletLineHeight||e.mobileLineHeight||e.letterSpacing,resetPopoverTitle:e.resetPopoverTitle,resetPopoverDescription:e.resetPopoverDescription,className:e.className},e.onChangeFontFamily&&wp.element.createElement(mr,{label:Object(s.__)("Font Family",o.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,className:"ugb--help-tip-typography-family"}),e.onChangeFontSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,null,wp.element.createElement(fr,ws({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(fr,ws({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletfontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(fr,ws({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobilefontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))),e.onChangeFontWeight&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Weight",o.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Normal",o.i18n),value:"normal"},{label:Object(s.__)("Bold",o.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,className:"ugb--help-tip-typography-weight"}),e.onChangeTextTransform&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Transform",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Uppercase",o.i18n),value:"uppercase"},{label:Object(s.__)("Lowercase",o.i18n),value:"lowercase"},{label:Object(s.__)("Capitalize",o.i18n),value:"capitalize"},{label:Object(s.__)("None",o.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,className:"ugb--help-tip-typography-transform"}),e.onChangeLineHeight&&wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,null,wp.element.createElement(ma,{label:Object(s.__)("Line-Height",o.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.lineHeight,onChange:e.onChangeLineHeight,unit:e.lineHeightUnit,onChangeUnit:e.onChangeLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ma,{label:Object(s.__)("Line-Height",o.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.tabletLineHeight,onChange:e.onChangeTabletLineHeight,unit:e.tabletLineHeightUnit,onChangeUnit:e.onChangeTabletLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ma,{label:Object(s.__)("Line-Height",o.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.mobileLineHeight,onChange:e.onChangeMobileLineHeight,unit:e.mobileLineHeightUnit,onChangeUnit:e.onChangeMobileLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"}))),e.onChangeLetterSpacing&&wp.element.createElement(ma,{label:Object(s.__)("Letter Spacing",o.i18n),min:-5,max:10,step:.1,allowReset:!0,onChange:e.onChangeLetterSpacing,value:e.letterSpacing,placeholder:"0",className:"ugb--help-tip-typography-letter-spacing"})),e.showSecondFontSize&&e.onChangeFontSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,null,wp.element.createElement(fr,ws({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(fr,ws({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletfontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(fr,ws({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobilefontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))))};ks.defaultProps={label:Object(s.__)("Typography",o.i18n),popoverLabel:void 0,className:"ugb--help-tip-typography",showSecondFontSize:!0,fontFamily:"",fontSize:"",tabletFontSize:"",mobileFontSize:"",fontSizeUnit:"px",tabletFontSizeUnit:"px",mobileFontSizeUnit:"px",fontWeight:"",textTransform:"",lineHeight:"",tabletLineHeight:"",mobileLineHeight:"",lineHeightUnit:"em",tabletLineHeightUnit:"em",mobileLineHeightUnit:"em",letterSpacing:"",fontSizeProps:{},resetPopoverTitle:"",resetPopoverDescription:"",placeholder:"",htmlTag:"p",onReset:function(){},onChangeFontFamily:function(){},onChangeFontSize:function(){},onChangeTabletFontSize:function(){},onChangeMobileFontSize:function(){},onChangeFontSizeUnit:function(){},onChangeTabletFontSizeUnit:function(){},onChangeMobileFontSizeUnit:function(){},onChangeFontWeight:function(){},onChangeTextTransform:function(){},onChangeLineHeight:function(){},onChangeTabletLineHeight:function(){},onChangeMobileLineHeight:function(){},onChangeLineHeightUnit:function(){},onChangeTabletLineHeightUnit:function(){},onChangeMobileLineHeightUnit:function(){},onChangeLetterSpacing:function(){}};var Os=ks;function Cs(){return(Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _s=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Os,Cs({fontFamily:e.blockAttributes[n("FontFamily")]||"",fontSize:e.blockAttributes[n("FontSize")]||"",tabletFontSize:e.blockAttributes[n("TabletFontSize")]||"",mobileFontSize:e.blockAttributes[n("MobileFontSize")]||"",fontSizeUnit:e.blockAttributes[n("FontSizeUnit")]||"px",tabletFontSizeUnit:e.blockAttributes[n("TabletFontSizeUnit")]||"px",mobileFontSizeUnit:e.blockAttributes[n("MobileFontSizeUnit")]||"px",fontWeight:e.blockAttributes[n("FontWeight")]||"",textTransform:e.blockAttributes[n("TextTransform")]||"",letterSpacing:e.blockAttributes[n("LetterSpacing")]||"",lineHeight:e.blockAttributes[n("LineHeight")]||"",tabletLineHeight:e.blockAttributes[n("TabletLineHeight")]||"",mobileLineHeight:e.blockAttributes[n("MobileLineHeight")]||"",lineHeightUnit:e.blockAttributes[n("LineHeightUnit")]||"em",tabletLineHeightUnit:e.blockAttributes[n("TabletLineHeightUnit")]||"em",mobileLineHeightUnit:e.blockAttributes[n("MobileLineHeightUnit")]||"em",onChangeFontFamily:function(e){return t(Ss({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(Ss({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(Ss({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(Ss({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(Ss({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(Ss({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(Ss({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(Ss({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(Ss({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(Ss({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(Ss({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(Ss({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(Ss({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(Ss({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(Ss({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(Ss({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((Ss(e={},n("FontFamily"),""),Ss(e,n("FontSize"),""),Ss(e,n("TabletFontSize"),""),Ss(e,n("MobileFontSize"),""),Ss(e,n("FontSizeUnit"),"px"),Ss(e,n("TabletFontSizeUnit"),"px"),Ss(e,n("MobileFontSizeUnit"),"px"),Ss(e,n("FontWeight"),""),Ss(e,n("TextTransform"),""),Ss(e,n("LetterSpacing"),""),Ss(e,n("LineHeight"),""),Ss(e,n("TabletLineHeight"),""),Ss(e,n("MobileLineHeight"),""),Ss(e,n("LineHeightUnit"),"em"),Ss(e,n("TabletLineHeightUnit"),"em"),Ss(e,n("MobileLineHeightUnit"),"em"),e))}},e))};_s.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var xs=_s,Es=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeBackgroundColorType&&wp.element.createElement(l.BaseControl,{id:"ugb-background-color-type",className:"ugb--help-tip-background-color-type"},wp.element.createElement(sr,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&wp.element.createElement(vt,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),e.labelBackgroundColor,1):e.labelBackgroundColor,value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColorOpacity&&"gradient"!==e.backgroundColorType&&!e.backgroundMediaURL&&!e.tabletBackgroundMediaURL&&!e.mobileBackgroundMediaURL&&wp.element.createElement(ma,{label:Object(s.__)("Background Color Opacity",o.i18n),value:e.backgroundColorOpacity,onChange:e.onChangeBackgroundColorOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-background-color-opacity"}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&wp.element.createElement(vt,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),e.labelBackgroundColor,2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&wp.element.createElement(us,{label:Object(s.__)("Adv. Gradient Color Settings",o.i18n),onReset:e.onResetAdvancedGradient,allowReset:""!==e.backgroundGradientDirection&&90!==e.backgroundGradientDirection||""!==e.backgroundGradientLocation1&&0!==e.backgroundGradientLocation1||""!==e.backgroundGradientLocation2&&100!==e.backgroundGradientLocation2||e.backgroundGradientBlendMode},e.onChangeBackgroundGradientDirection&&wp.element.createElement(ma,{label:Object(s.__)("Gradient Direction (degrees)",o.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeBackgroundGradientLocation1&&wp.element.createElement(ma,{label:Object(s.sprintf)(Object(s.__)("Color %d Location",o.i18n),1),value:e.backgroundGradientLocation1,onChange:e.onChangeBackgroundGradientLocation1,min:0,max:100,step:1,allowReset:!0,placeholder:"0",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientLocation2&&wp.element.createElement(ma,{label:Object(s.sprintf)(Object(s.__)("Color %d Location",o.i18n),2),value:e.backgroundGradientLocation2,onChange:e.onChangeBackgroundGradientLocation2,min:0,max:100,step:1,allowReset:!0,placeholder:"100",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientBlendMode&&wp.element.createElement(cn,{label:Object(s.__)("Background Gradient Blend Mode",o.i18n),value:e.backgroundGradientBlendMode,onChange:e.onChangeBackgroundGradientBlendMode,className:"ugb--help-tip-background-blend-mode"})),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&e.onChangeBackgroundMedia&&wp.element.createElement(Vo,null),e.onChangeBackgroundMedia&&wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,null,wp.element.createElement(hn,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",o.i18n):Object(s.__)("Background Image",o.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",o.i18n):"",onRemove:function(){return e.onChangeBackgroundMedia({url:"",id:""})},onChange:e.onChangeBackgroundMedia,imageID:e.backgroundMediaID,imageURL:e.backgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(hn,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",o.i18n):Object(s.__)("Background Image",o.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",o.i18n):"",onRemove:function(){return e.onChangeTabletBackgroundMedia({url:"",id:""})},onChange:e.onChangeTabletBackgroundMedia,imageID:e.tabletBackgroundMediaID,imageURL:e.tabletBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(hn,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",o.i18n):Object(s.__)("Background Image",o.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",o.i18n):"",onRemove:function(){return e.onChangeMobileBackgroundMedia({url:"",id:""})},onChange:e.onChangeMobileBackgroundMedia,imageID:e.mobileBackgroundMediaID,imageURL:e.mobileBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]}))),e.onChangeBackgroundTintStrength&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(ma,{label:Object(s.__)("Background Media Tint Strength",o.i18n),value:e.backgroundTintStrength,onChange:function(t){var n=void 0===t||""===t;""!==e.backgroundColor||n?"#000000"===e.backgroundColor&&n?e.onChangeBackgroundTintStrength(t,""):e.onChangeBackgroundTintStrength(t,e.backgroundColor):e.onChangeBackgroundTintStrength(t,"#000000")},min:0,max:10,step:1,allowReset:!0,placeholder:e.backgroundColor?"5":"0",className:"ugb--help-tip-background-tint"}),e.onChangeFixedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&!([e.backgroundMediaURL,e.tabletBackgroundMediaURL,e.mobileBackgroundMediaURL].filter(function(e){return e}).filter(Te).length>0)&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Fixed Background",o.i18n),checked:e.fixedBackground,onChange:e.onChangeFixedBackground,className:"ugb--help-tip-background-fixed"}),e.hasAdvancedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(us,{label:Object(s.__)("Adv. Background Image Settings",o.i18n),onReset:e.onResetAdvancedBackground,allowReset:e.backgroundPosition||e.tabletBackgroundPosition||e.mobileBackgroundPosition||e.backgroundRepeat||e.tabletBackgroundRepeat||e.mobileBackgroundRepeat||e.backgroundSize||e.tabletBackgroundSize||e.mobileBackgroundSize||e.backgroundImageBlendMode},wp.element.createElement(kd,null,wp.element.createElement(ha,{label:Object(s.__)("Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ha,{label:Object(s.__)("Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.tabletBackgroundPosition,onChange:e.onChangeTabletBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ha,{label:Object(s.__)("Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.mobileBackgroundPosition,onChange:e.onChangeMobileBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(kd,null,wp.element.createElement(ha,{label:Object(s.__)("Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ha,{label:Object(s.__)("Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.tabletBackgroundRepeat,onChange:e.onChangeTabletBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ha,{label:Object(s.__)("Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.mobileBackgroundRepeat,onChange:e.onChangeMobileBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(kd,null,wp.element.createElement(ha,{label:Object(s.__)("Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ha,{label:Object(s.__)("Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.tabletBackgroundSize,onChange:e.onChangeTabletBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ha,{label:Object(s.__)("Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.mobileBackgroundSize,onChange:e.onChangeMobileBackgroundSize,className:"ugb--help-tip-background-image-size"})),"custom"===e.backgroundSize&&wp.element.createElement(kd,null,wp.element.createElement(ma,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0})),"custom"===e.tabletBackgroundSize&&wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ma,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.tabletBackgroundCustomSizeUnit,onChangeUnit:e.onChangeTabletBackgroundCustomSizeUnit,value:e.tabletBackgroundCustomSize,onChange:e.onChangeTabletBackgroundCustomSize,allowReset:!0})),"custom"===e.mobileBackgroundSize&&wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ma,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.mobileBackgroundCustomSizeUnit,onChangeUnit:e.onChangeMobileBackgroundCustomSizeUnit,value:e.mobileBackgroundCustomSize,onChange:e.onChangeMobileBackgroundCustomSize,allowReset:!0})),e.onChangeBackgroundImageBlendMode&&wp.element.createElement(cn,{label:Object(s.__)("Image Blend Mode",o.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};Es.defaultProps={backgroundColorType:"",backgroundColor:"",backgroundColorOpacity:"",backgroundColor2:"",backgroundMediaID:"",backgroundMediaURL:"",tabletBackgroundMediaID:"",tabletBackgroundMediaURL:"",mobileBackgroundMediaID:"",mobileBackgroundMediaURL:"",backgroundTintStrength:"",fixedBackground:"",onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColorOpacity:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundMedia:function(e){e.url,e.id},onChangeTabletBackgroundMedia:function(e){e.url,e.id},onChangeMobileBackgroundMedia:function(e){e.url,e.id},onChangeBackgroundTintStrength:function(){},onChangeFixedBackground:function(){},labelBackgroundColorType:Object(s.__)("Background Color Type",o.i18n),labelBackgroundColor:Object(s.__)("Background Color",o.i18n),hasAdvancedGradient:!0,backgroundGradientDirection:"",backgroundGradientBlendMode:"",backgroundGradientLocation1:0,backgroundGradientLocation2:100,onResetAdvancedGradient:function(){},onChangeBackgroundGradientDirection:function(){},onChangeBackgroundGradientBlendMode:function(){},onChangeBackgroundGradientLocation1:function(){},onChangeBackgroundGradientLocation2:function(){},hasAdvancedBackground:!0,backgroundMediaAllowVideo:!0,backgroundPosition:"",tabletBackgroundPosition:"",mobileBackgroundPosition:"",backgroundRepeat:"",tabletBackgroundRepeat:"",mobileBackgroundRepeat:"",backgroundSize:"",tabletBackgroundSize:"",mobileBackgroundSize:"",backgroundCustomSize:"",tabletBackgroundCustomSize:"",mobileBackgroundCustomSize:"",backgroundCustomSizeUnit:"%",tabletBackgroundCustomSizeUnit:"%",mobileBackgroundCustomSizeUnit:"%",backgroundImageBlendMode:"",onResetAdvancedBackground:function(){},onChangeBackgroundPosition:function(){},onChangeTabletBackgroundPosition:function(){},onChangeMobileBackgroundPosition:function(){},onChangeBackgroundRepeat:function(){},onChangeTabletBackgroundRepeat:function(){},onChangeMobileBackgroundRepeat:function(){},onChangeBackgroundSize:function(){},onChangeTabletBackgroundSize:function(){},onChangeMobileBackgroundSize:function(){},onChangeBackgroundCustomSize:function(){},onChangeTabletBackgroundCustomSize:function(){},onChangeMobileBackgroundCustomSize:function(){},onChangeBackgroundCustomSizeUnit:function(){},onChangeTabletBackgroundCustomSizeUnit:function(){},onChangeMobileBackgroundCustomSizeUnit:function(){},onChangeBackgroundImageBlendMode:function(){}};var js=Es;function Ps(){return(Ps=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bs=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(js,Ps({backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColorOpacity:e.blockAttributes[n("BackgroundColorOpacity")],backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundMediaID:e.blockAttributes[n("BackgroundMediaID")]||"",backgroundMediaURL:e.blockAttributes[n("BackgroundMediaURL")]||"",tabletBackgroundMediaID:e.blockAttributes[n("TabletBackgroundMediaID")]||"",tabletBackgroundMediaURL:e.blockAttributes[n("TabletBackgroundMediaURL")]||"",mobileBackgroundMediaID:e.blockAttributes[n("MobileBackgroundMediaID")]||"",mobileBackgroundMediaURL:e.blockAttributes[n("MobileBackgroundMediaURL")]||"",backgroundTintStrength:e.blockAttributes[n("BackgroundTintStrength")],fixedBackground:e.blockAttributes[n("FixedBackground")]||"",onChangeBackgroundColorType:function(e){return t(Ts({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(Ts({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(Ts({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(Ts({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ts(a={},n("BackgroundMediaURL"),r),Ts(a,n("BackgroundMediaID"),i),a))},onChangeTabletBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ts(a={},n("TabletBackgroundMediaURL"),r),Ts(a,n("TabletBackgroundMediaID"),i),a))},onChangeMobileBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ts(a={},n("MobileBackgroundMediaURL"),r),Ts(a,n("MobileBackgroundMediaID"),i),a))},onChangeBackgroundTintStrength:function(e,a){var r;t((Ts(r={},n("BackgroundTintStrength"),e),Ts(r,n("BackgroundColor"),a),r))},onChangeFixedBackground:function(e){return t(Ts({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(Ts({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(Ts({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(Ts({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(Ts({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((Ts(e={},n("BackgroundGradientDirection"),""),Ts(e,n("BackgroundGradientBlendMode"),""),Ts(e,n("BackgroundGradientLocation1"),""),Ts(e,n("BackgroundGradientLocation2"),""),e))},backgroundPosition:e.blockAttributes[n("BackgroundPosition")]||"",tabletBackgroundPosition:e.blockAttributes[n("TabletBackgroundPosition")]||"",mobileBackgroundPosition:e.blockAttributes[n("MobileBackgroundPosition")]||"",backgroundRepeat:e.blockAttributes[n("BackgroundRepeat")]||"",tabletBackgroundRepeat:e.blockAttributes[n("TabletBackgroundRepeat")]||"",mobileBackgroundRepeat:e.blockAttributes[n("MobileBackgroundRepeat")]||"",backgroundSize:e.blockAttributes[n("BackgroundSize")]||"",tabletBackgroundSize:e.blockAttributes[n("TabletBackgroundSize")]||"",mobileBackgroundSize:e.blockAttributes[n("MobileBackgroundSize")]||"",backgroundCustomSize:e.blockAttributes[n("BackgroundCustomSize")]||"",tabletBackgroundCustomSize:e.blockAttributes[n("TabletBackgroundCustomSize")]||"",mobileBackgroundCustomSize:e.blockAttributes[n("MobileBackgroundCustomSize")]||"",backgroundCustomSizeUnit:e.blockAttributes[n("BackgroundCustomSizeUnit")]||"%",tabletBackgroundCustomSizeUnit:e.blockAttributes[n("TabletBackgroundCustomSizeUnit")]||"%",mobileBackgroundCustomSizeUnit:e.blockAttributes[n("MobileBackgroundCustomSizeUnit")]||"%",backgroundImageBlendMode:e.blockAttributes[n("BackgroundImageBlendMode")]||"",onChangeBackgroundPosition:function(e){return t(Ts({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(Ts({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(Ts({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(Ts({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(Ts({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(Ts({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(Ts({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(Ts({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(Ts({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(Ts({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(Ts({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(Ts({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(Ts({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(Ts({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(Ts({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(Ts({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((Ts(e={},n("BackgroundPosition"),""),Ts(e,n("TabletBackgroundPosition"),""),Ts(e,n("MobileBackgroundPosition"),""),Ts(e,n("BackgroundRepeat"),""),Ts(e,n("TabletBackgroundRepeat"),""),Ts(e,n("MobileBackgroundRepeat"),""),Ts(e,n("BackgroundSize"),""),Ts(e,n("TabletBackgroundSize"),""),Ts(e,n("MobileBackgroundSize"),""),Ts(e,n("BackgroundCustomSize"),""),Ts(e,n("TabletBackgroundCustomSize"),""),Ts(e,n("MobileBackgroundCustomSize"),""),Ts(e,n("BackgroundCustomSizeUnit"),"%"),Ts(e,n("TabletBackgroundCustomSizeUnit"),"%"),Ts(e,n("MobileBackgroundCustomSizeUnit"),"%"),Ts(e,n("BackgroundImageBlendMode"),""),e))}},e))};Bs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ms=n(55),Ns=n.n(Ms),Is=n(56),As=n.n(Is),Ds=n(57),Rs=n.n(Ds),zs=n(58),Ls=n.n(zs);function Fs(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Us=function(e){var t=e.design?e.design:"basic",n=e.size?e.size:"normal",a="basic"===t;return wp.element.createElement(i.Fragment,null,e.onChangeUrl&&wp.element.createElement(it,{label:Object(s.__)("Link / URL",o.i18n),value:e.url,onChange:e.onChangeUrl,placeholder:"http://"}),e.onChangeUrl&&e.onChangeNewTab&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Open link in new tab",o.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),e.onChangeUrl&&e.onChangeNoFollow&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Nofollow link",o.i18n),checked:e.noFollow,onChange:e.onChangeNoFollow}),e.onChangeUrl&&wp.element.createElement(Vo,null),e.onChangeDesign&&wp.element.createElement(Gl,{label:Object(s.__)("Design",o.i18n),selected:t,options:[{label:Object(s.__)("Basic",o.i18n),value:"basic",image:Ns.a},{label:Object(s.__)("Ghost",o.i18n),value:"ghost",image:As.a},{label:Object(s.__)("Plain",o.i18n),value:"plain",image:Ls.a}].concat(Fs(e.onChangeUseSocialColors?[]:[{label:Object(s.__)("Link",o.i18n),value:"link",image:Rs.a}]),Fs(Object(R.applyFilters)("stackable.button.edit.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(Vo,null),e.onChangeUseSocialColors&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Use social colors",o.i18n),checked:e.useSocialColors,onChange:e.onChangeUseSocialColors}),(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(i.Fragment,null,e.onChangeBackgroundColorType&&a&&wp.element.createElement(l.BaseControl,{id:"button-color-type",className:"ugb--help-tip-button-color-type"},wp.element.createElement(sr,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&"link"!==t&&wp.element.createElement(vt,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),1):Object(s.__)("Button Color",o.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(vt,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(ma,{label:Object(s.__)("Gradient Direction (degrees)",o.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeTextColor&&a&&wp.element.createElement(vt,{label:Object(s.__)("Text Color",o.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(Vo,null),e.onChangeHoverGhostToNormal&&"ghost"===t&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Change to Normal Button on Hover",o.i18n),checked:e.hoverGhostToNormal,onChange:e.onChangeHoverGhostToNormal,className:"ugb--help-tip-button-to-normal"}),e.onChangeHoverEffect&&"link"!==t&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Hover Effect",o.i18n),value:e.hoverEffect,onChange:e.onChangeHoverEffect,options:[{value:"",label:Object(s.__)("None",o.i18n)},{value:"lift",label:Object(s.__)("Lift",o.i18n)},{value:"scale",label:Object(s.__)("Scale",o.i18n)},{value:"lift-scale",label:Object(s.__)("Lift & Scale",o.i18n)},{value:"scale-more",label:Object(s.__)("Scale More",o.i18n)},{value:"lift-scale-more",label:Object(s.__)("Lift & Scale More",o.i18n)}],className:"ugb--help-tip-button-hover-effect"}),e.onChangeOpacity&&wp.element.createElement(ma,{label:Object(s.__)("Hover Opacity",o.i18n),value:e.hoverOpacity,onChange:e.onChangeHoverOpacity,min:0,max:1,step:.1,placeholder:"0.8",allowReset:!0,className:"ugb--help-tip-button-hover-opacity"}),e.hasHoverColors&&"link"!==t&&(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(us,{label:Object(s.__)("Hover Colors",o.i18n),onReset:e.onResetHoverColors,allowReset:e.hoverBackgroundColor||e.hoverBackgroundColor2||e.hoverBackgroundGradientDirection||e.hoverTextColor,className:"ugb--help-tip-button-hover-color"},e.onChangeHoverBackgroundColor&&wp.element.createElement(vt,{label:e.onChangeHoverBackgroundColor&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),1):Object(s.__)("Button Color",o.i18n),value:e.hoverBackgroundColor,onChange:e.onChangeHoverBackgroundColor,className:"ugb--help-tip-button-hover-color"}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(vt,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),2),value:e.hoverBackgroundColor2,onChange:e.onChangeHoverBackgroundColor2}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(ma,{label:Object(s.__)("Gradient Direction (degrees)",o.i18n),value:e.hoverBackgroundGradientDirection,onChange:e.onChangeHoverBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeHoverTextColor&&("ghost"===t&&e.hoverGhostToNormal||a)&&wp.element.createElement(vt,{label:Object(s.__)("Text Color",o.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(Vo,null),e.hasTypography&&"link"!==t&&wp.element.createElement(xs,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,onChangeLineHeight:null,showSecondFontSize:!1,placeholder:e.placeholder}),e.onChangeSize&&(!e.onChangeDesign||"link"!==t)&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Button Size",o.i18n),value:n,options:[{value:"tiny",label:Object(s.__)("Tiny",o.i18n)},{value:"small",label:Object(s.__)("Small",o.i18n)},{value:"normal",label:Object(s.__)("Normal",o.i18n)},{value:"medium",label:Object(s.__)("Medium",o.i18n)},{value:"large",label:Object(s.__)("Large",o.i18n)}],onChange:e.onChangeSize,className:"ugb--help-tip-button-size"}),e.onChangeBorderRadius&&"link"!==t&&"plain"!==t&&wp.element.createElement(ma,{label:Object(s.__)("Border Radius",o.i18n),value:e.borderRadius,min:"0",max:"100",onChange:e.onChangeBorderRadius,allowReset:!0,placeholder:"4",className:"ugb--help-tip-button-border-radius"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(Nc,{label:Object(s.__)("Vertical Padding",o.i18n),top:e.paddingTop,bottom:e.paddingBottom,onChange:e.onChangePaddings,enableLeft:!1,enableRight:!1,placeholder:[8,8],className:"ugb--help-tip-button-vertical-padding"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(Nc,{label:Object(s.__)("Horizontal Padding",o.i18n),right:e.paddingRight,left:e.paddingLeft,onChange:e.onChangePaddings,enableTop:!1,enableBottom:!1,max:100,placeholder:[26,26],className:"ugb--help-tip-button-horizontal-padding"}),e.onChangeBorderWidth&&"ghost"===t&&wp.element.createElement(ma,{label:Object(s.__)("Border Width",o.i18n),value:e.borderWidth,min:"1",max:"6",onChange:e.onChangeBorderWidth,allowReset:!0,placeholder:"2"}),e.onChangeShadow&&(""===t||"basic"===t)&&wp.element.createElement(ma,{label:Object(s.__)("Shadow",o.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-button-shadow"}),e.onChangeOpacity&&wp.element.createElement(ma,{label:Object(s.__)("Opacity",o.i18n),value:e.opacity,onChange:e.onChangeOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0"}),"link"!==t&&wp.element.createElement(Vo,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(xo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(us,{label:Object(s.__)("Adv. Icon Settings",o.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(ma,{label:Object(s.__)("Icon Size",o.i18n),value:e.iconSize,onChange:e.onChangeIconSize,min:5,max:100,step:1,allowReset:!0}),e.onChangeIconPosition&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Icon Position",o.i18n),value:e.iconPosition,options:[{value:"",label:Object(s.__)("Left",o.i18n)},{value:"right",label:Object(s.__)("Right",o.i18n)}],onChange:e.onChangeIconPosition}),e.onChangeIconSpacing&&wp.element.createElement(ma,{label:Object(s.__)("Icon Spacing",o.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};Us.defaultProps={hasTypography:!0,attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},design:"",onChangeDesign:function(){},url:"",newTab:"",noFollow:"",onChangeUrl:function(){},onChangeNewTab:function(){},onChangeNoFollow:function(){},size:"",onChangeSize:function(){},opacity:"",textColor:"",backgroundColorType:"",backgroundColor:"",backgroundColor2:"",backgroundGradientDirection:"",onChangeOpacity:function(){},onChangeTextColor:function(){},onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundGradientDirection:function(){},hasHoverColors:!0,onResetHoverColors:function(){},hoverEffect:"",hoverOpacity:"",hoverTextColor:"",hoverBackgroundColor:"",hoverBackgroundColor2:"",hoverBackgroundGradientDirection:"",hoverGhostToNormal:!1,onChangeHoverEffect:function(){},onChangeHoverOpacity:function(){},onChangeHoverTextColor:function(){},onChangeHoverBackgroundColor:function(){},onChangeHoverBackgroundColor2:function(){},onChangeHoverBackgroundGradientDirection:function(){},onChangeHoverGhostToNormal:function(){},borderRadius:"",onChangeBorderRadius:function(){},borderWidth:"",onChangeBorderWidth:function(){},shadow:"",onChangeShadow:function(){},paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",onChangePaddings:function(){},hasAdvancedIcon:!0,onResetAdvancedIcon:function(){},icon:"",iconSize:"",iconPosition:"",iconSpacing:"",onChangeIcon:function(){},onChangeIconSize:function(){},onChangeIconPosition:function(){},onChangeIconSpacing:function(){},useSocialColors:!0,onChangeUseSocialColors:null};var Hs=Us;function Vs(){return(Vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qs=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(Hs,Vs({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(Gs({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",onChangeUrl:function(e){return t(Gs({},n("Url"),e))},onChangeNewTab:function(e){return t(Gs({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(Gs({},n("NoFollow"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(Gs({},n("Size"),e))},opacity:e.blockAttributes[n("Opacity")]||"",textColor:e.blockAttributes[n("TextColor")]||"",backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundGradientDirection:a("BackgroundGradientDirection"),onChangeOpacity:function(e){return t(Gs({},n("Opacity"),e))},onChangeTextColor:function(e){return t(Gs({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(Gs({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(Gs({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(Gs({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(Gs({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((Gs(e={},n("HoverBackgroundColor"),""),Gs(e,n("HoverBackgroundColor2"),""),Gs(e,n("HoverBackgroundGradientDirection"),""),Gs(e,n("HoverTextColor"),""),e))},hoverEffect:e.blockAttributes[n("HoverEffect")]||"",hoverOpacity:e.blockAttributes[n("HoverOpacity")]||"",hoverTextColor:e.blockAttributes[n("HoverTextColor")]||"",hoverBackgroundColor:e.blockAttributes[n("HoverBackgroundColor")]||"",hoverBackgroundColor2:e.blockAttributes[n("HoverBackgroundColor2")]||"",hoverBackgroundGradientDirection:a("HoverBackgroundGradientDirection"),hoverGhostToNormal:e.blockAttributes[n("HoverGhostToNormal")]||"",onChangeHoverEffect:function(e){return t(Gs({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(Gs({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(Gs({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(Gs({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(Gs({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(Gs({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(Gs({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(Gs({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(Gs({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(Gs({},n("Shadow"),e))},paddingTop:a("PaddingTop"),paddingRight:a("PaddingRight"),paddingBottom:a("PaddingBottom"),paddingLeft:a("PaddingLeft"),onChangePaddings:function(e){var a={};void 0!==e.top&&(a[n("PaddingTop")]=""!==e.top?parseInt(e.top,10):""),void 0!==e.right&&(a[n("PaddingRight")]=""!==e.right?parseInt(e.right,10):""),void 0!==e.bottom&&(a[n("PaddingBottom")]=""!==e.bottom?parseInt(e.bottom,10):""),void 0!==e.left&&(a[n("PaddingLeft")]=""!==e.left?parseInt(e.left,10):""),t(a)},icon:e.blockAttributes[n("Icon")]||"",onChangeIcon:function(e){return t(Gs({},n("Icon"),e))},onResetAdvancedIcon:function(){var e;t((Gs(e={},n("IconSize"),""),Gs(e,n("IconPosition"),""),Gs(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(Gs({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(Gs({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(Gs({},n("IconSpacing"),e))}},e))};qs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ws=qs,Ks=n(59),$s=n.n(Ks),Ys=n(60),Qs=n.n(Ys),Xs=n(61),Js=n.n(Xs);function Zs(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var eu=function(e){var t=e.design?e.design:"basic",n="shaped"===t||"outlined"===t;return wp.element.createElement(i.Fragment,null,e.onChangeIcon&&wp.element.createElement(xo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(Gl,{label:Object(s.__)("Design",o.i18n),selected:e.design,columns:3,options:[{label:Object(s.__)("Plain",o.i18n),value:"plain",image:$s.a},{label:Object(s.__)("Shaped",o.i18n),value:"shaped",image:Qs.a},{label:Object(s.__)("Outlined",o.i18n),value:"outlined",image:Js.a}].concat(Zs(Object(R.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),o.showProNotice&&wp.element.createElement(Yu,{title:Object(s.__)("Say Hello to Gorgeous Icons 👋",o.i18n),description:Object(s.__)("Liven up your icons with gradient fills, multiple colors and background shapes. This feature is only available on Stackable Premium",o.i18n)}),o.showProNotice&&wp.element.createElement(l.BaseControl,{label:Object(s.__)("Icon Color Type",o.i18n),id:"icon-color-type"},wp.element.createElement(sr,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n),className:"ugb--is-premium",disabled:!0},{value:"multicolor",title:Object(s.__)("Multicolor",o.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(R.applyFilters)("stackable.icon-controls.edit.color",wp.element.createElement(i.Fragment,null,e.onChangeColor&&wp.element.createElement(vt,{label:Object(s.__)("Icon Color",o.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(Vo,null),n&&e.onChangeBackgroundColor&&wp.element.createElement(i.Fragment,null,o.showProNotice&&e.onChangeBackgroundColorType&&"outlined"!==e.design&&wp.element.createElement(l.BaseControl,{label:Object(s.__)("Icon Shape / Outline Color",o.i18n),id:"icon-shape-color-type"},wp.element.createElement(sr,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(R.applyFilters)("stackable.icon-controls.edit.background-color",wp.element.createElement(i.Fragment,null,e.onChangeBackgroundColor&&wp.element.createElement(vt,{label:Object(s.__)("Icon Shape / Outline Color",o.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(ma,{label:"shaped"===e.design?Object(s.__)("Icon Shape Border Radius",o.i18n):Object(s.__)("Outline Border Radius",o.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:50,step:1,allowReset:!0,placeholder:50}),e.onChangePadding&&wp.element.createElement(ma,{label:"shaped"===e.design?Object(s.__)("Icon Shape Padding",o.i18n):Object(s.__)("Outline Padding",o.i18n),value:e.padding,onChange:e.onChangePadding,min:0,max:150,step:1,allowReset:!0,placeholder:20}),"shaped"===t&&e.onChangeShadow&&wp.element.createElement(ma,{label:Object(s.__)("Shadow / Outline",o.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-general-shadow"}),"outlined"===t&&e.onChangeOutlineWidth&&wp.element.createElement(ma,{label:Object(s.__)("Outline Width",o.i18n),value:e.outlineWidth,onChange:e.onChangeOutlineWidth,min:0,max:10,step:1,allowReset:!0,placeholder:"3"}),e.onChangeBackgroundColorType&&wp.element.createElement(Vo,null)),e.onChangeSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,null,wp.element.createElement(ma,{label:Object(s.__)("Icon Size",o.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(ma,{label:Object(s.__)("Icon Size",o.i18n),value:e.tabletSize,max:e.sizeMax,onChange:e.onChangeTabletSize,allowReset:!0,placeholder:e.size||50})),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(ma,{label:Object(s.__)("Icon Size",o.i18n),value:e.mobileSize,max:e.sizeMax,onChange:e.onChangeMobileSize,allowReset:!0,placeholder:e.tabletSize||e.size||50}))),e.onChangeOpacity&&wp.element.createElement(ma,{label:Object(s.__)("Icon Opacity",o.i18n),value:e.opacity,min:0,max:1,step:.1,onChange:e.onChangeOpacity,allowReset:!0,placeholder:"1.0"}),e.onChangeRotation&&wp.element.createElement(ma,{label:Object(s.__)("Icon Rotation",o.i18n),value:e.rotation,min:0,max:360,onChange:e.onChangeRotation,allowReset:!0,placeholder:"0"}),Object(R.applyFilters)("stackable.icon-controls.edit.after",null,e))};eu.defaultProps={icon:"",onChangeIcon:function(){},design:"",onChangeDesign:function(){},colorType:"",onChangeColorType:function(){},color:"",onChangeColor:function(){},color2:"",onChangeColor2:function(){},colorGradientDirection:"",onChangeColorGradientDirection:function(){},numPaths:"",color3:"",onChangeColor3:function(){},color4:"",onChangeColor4:function(){},color5:"",onChangeColor5:function(){},color6:"",onChangeColor6:function(){},color7:"",onChangeColor7:function(){},color8:"",onChangeColor8:function(){},color9:"",onChangeColor9:function(){},color10:"",onChangeColor10:function(){},multiOpacity1:"",onChangeMultiOpacity1:function(){},multiOpacity2:"",onChangeMultiOpacity2:function(){},multiOpacity3:"",onChangeMultiOpacity3:function(){},multiOpacity4:"",onChangeMultiOpacity4:function(){},multiOpacity5:"",onChangeMultiOpacity5:function(){},multiOpacity6:"",onChangeMultiOpacity6:function(){},multiOpacity7:"",onChangeMultiOpacity7:function(){},multiOpacity8:"",onChangeMultiOpacity8:function(){},multiOpacity9:"",onChangeMultiOpacity9:function(){},multiOpacity10:"",onChangeMultiOpacity10:function(){},borderRadius:"",onChangeBorderRadius:function(){},padding:"",onChangePadding:function(){},shadow:"",onChangeShadow:function(){},outlineWidth:"",onChangeOutlineWidth:function(){},backgroundColorType:"",onChangeBackgroundColorType:function(){},backgroundColor:"",onChangeBackgroundColor:function(){},backgroundColor2:"",onChangeBackgroundColor2:function(){},backgroundColorGradientDirection:"",onChangeBackgroundColorGradientDirection:function(){},size:"",tabletSize:"",mobileSize:"",sizeMax:300,onChangeSize:function(){},onChangeTabletSize:function(){},onChangeMobileSize:function(){},opacity:"",onChangeOpacity:function(){},rotation:"",onChangeRotation:function(){},showBackgroundShape:"",onChangeShowBackgroundShape:function(){},backgroundShape:"",onChangeBackgroundShape:function(){},backgroundShapeSize:"",onChangeBackgroundShapeSize:function(){},backgroundShapeColor:"",onChangeBackgroundShapeColor:function(){},backgroundShapeOffsetHorizontal:"",onChangeBackgroundShapeHorizontalOffset:function(){},backgroundShapeOffsetVertical:"",onChangeBackgroundShapeVerticalOffset:function(){}};var tu=eu;function nu(){return(nu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ru=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(tu,nu({icon:a("Icon"),onChangeIcon:function(e){return t(au({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(au({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(au({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(au({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(au({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(au({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(au({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(au({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(au({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(au({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(au({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(au({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(au({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(au({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(au({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(au({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(au({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(au({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(au({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(au({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(au({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(au({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(au({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(au({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(au({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(au({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(au({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(au({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(au({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(au({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(au({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(au({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(au({},n("Size"),e))},onChangeTabletSize:function(e){return t(au({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(au({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(au({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(au({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(au({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(au({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(au({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(au({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(au({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(au({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(au({},n("BackgroundShapeOffsetVertical"),e))}},e))};ru.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var iu=function(e){return wp.element.createElement(i.Fragment,null,e.socialUrlFields&&wp.element.createElement(i.Fragment,null,Object.keys(be).map(function(t){return wp.element.createElement(l.TextControl,{key:t,className:"ugb-social-url-text-control",label:Object(s.sprintf)(Object(s._x)("%s Link","name",o.i18n),be[t].label),value:e["".concat(t,"Url")],onChange:e["onChange".concat(Object(b.upperFirst)(t),"Url")],placeholder:"http://"})})),e.onChangeNewTab&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Open link in new tab",o.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),wp.element.createElement(Vo,null),wp.element.createElement(Ws,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,useSocialColors:e.useSocialColors,onChangeUseSocialColors:e.onChangeUseSocialColors,onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,onChangeIcon:!1,hasTypography:!1}))};iu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var lu=iu;function ou(){return(ou=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uu=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(lu,ou({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(su({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(su({},n("UseSocialColors"),e))}},e))};uu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function cu(){return(cu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fu=function(e){var t=Object(b.pick)(e,["label","units","screens","defaultLocked","enableTop","enableRight","enableBottom","enableLeft","className","sliderMax","sliderMin"]),n=Array.isArray(e.min)?e.min:[e.min,e.min,e.min],a=Array.isArray(e.max)?e.max:[e.max,e.max,e.max],r=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return wp.element.createElement(i.Fragment,null,wp.element.createElement(kd,{screen:"desktop"},wp.element.createElement(Nc,cu({},t,{min:n[0],max:a[0],step:r[0],top:e.valueDesktop.top,right:e.valueDesktop.right,bottom:e.valueDesktop.bottom,left:e.valueDesktop.left,unit:e.valueDesktopUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeDesktopUnit(t)},placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(kd,{screen:"tablet"},wp.element.createElement(Nc,cu({},t,{min:n[1],max:a[1],step:r[1],top:e.valueTablet.top,right:e.valueTablet.right,bottom:e.valueTablet.bottom,left:e.valueTablet.left,unit:e.valueTabletUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeTabletUnit(t)}}))),wp.element.createElement(kd,{screen:"mobile"},wp.element.createElement(Nc,cu({},t,{min:n[2],max:a[2],step:r[2],top:e.valueMobile.top,right:e.valueMobile.right,bottom:e.valueMobile.bottom,left:e.valueMobile.left,unit:e.valueMobileUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeMobileUnit(t)}}))))};fu.defaultProps={label:Object(s.__)("Spacing",o.i18n),defaultLocked:!0,units:["px","em","%"],screens:["desktop","tablet","mobile"],min:0,max:500,step:1,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,valueDesktop:{},valueTablet:{},valueMobile:{},valueDesktopUnit:"",valueTabletUnit:"",valueMobileUnit:"",onChangeDesktop:function(){},onChangeTablet:function(){},onChangeMobile:function(){},onChangeDesktopUnit:function(){},onChangeTabletUnit:function(){},onChangeMobileUnit:function(){},placeholderTop:"60",placeholderLeft:"35",placeholderBottom:"60",placeholderRight:"35",className:"ugb--help-tip-advanced-column-paddings"};var pu=fu;function du(){return(du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(n,!0).forEach(function(t){bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hu=function(e,t){var n=te(t||"blob1");return n?wp.element.createElement("div",{className:"ugb-icon__bg-shape-wrapper"},e,wp.element.createElement(n,{className:"ugb-icon__bg-shape"})):e},vu=function(e){var t=Object(R.applyFilters)("stackable.svg-icon.extract-svg",e);return t.match(/^<svg(.*?)<\/svg>$/g)?t:t.match(/<svg/)?(t.match(/<svg.*?<\/svg>/g)||[t])[0]:t},yu=function(e){var t=mu({},e,{value:"string"==typeof e.value?vu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],bu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(lv,du({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],bu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=hu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)};yu.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(yu.Content=function(e){var t=mu({},e,{value:"string"==typeof e.value?vu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],bu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(lv.Content,du({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],bu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=hu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=mu({},yu.defaultProps);var wu=yu;function ku(){return(ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ou=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(wu,ku({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))};Ou.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},Ou.Content=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(wu.Content,ku({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))},Ou.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var Cu=Ou;function Su(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var xu=Object(dt.withInstanceId)(function(e){var t=_u(Object(i.useState)(!1),2),n=t[0],a=t[1],r=_u(Object(i.useState)(!1),2),o=r[0],s=r[1],u=e.instanceId,c=e.isOpen,f=e.onChange,p=Su(e,["instanceId","isOpen","onChange"]);return Object(i.useEffect)(function(){e.onToggle(n)},[n]),wp.element.createElement("div",{className:"ugb-svg-icon-placeholder ugb-svg-icon-placeholder-".concat(u)},wp.element.createElement(l.Button,{className:"ugb-svg-icon-placeholder__button",onClick:function(){o?(a(!1),s(!1)):a(!0)}},wp.element.createElement(Cu,p)),(null!==c&&c||null===c&&n)&&wp.element.createElement(Uo,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-svg-icon-placeholder-".concat(u))?s(!0):(a(!1),s(!1))},onClose:function(){return a(!1)},onChange:f}))});xu.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var Eu=xu;function ju(){return(ju=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Pu=q.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),Tu=q.a.createElement("path",{d:"M107 175.1l43.7-44.8c3.7-3.8 5.4-8.8 5.1-13.8 0-.4-.1-.8-.1-1.2H107v59.8z",fill:"#5fb3dd"}),Bu=q.a.createElement("path",{d:"M48.8.4L5.1 45.2C1.4 49-.3 54 0 59c0 .4.1.7.1 1.1h48.6V.4z",fill:"#e2735d"}),Mu=q.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),Nu=q.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),Iu=q.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),Au=q.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),Du=q.a.createElement("path",{className:"pro-icon_svg__st2",d:"M107 60.1v55.2h48.6c-.5-3.8-2.1-7.5-4.9-10.4L107 60.1z"}),Ru=q.a.createElement("path",{d:"M48.8 115.3V60.1H.2c.5 3.8 2.1 7.5 4.9 10.4l43.7 44.8z",fill:"#ea75d4"}),zu=q.a.createElement("path",{d:"M154.3 8.5c3.1-3.2.9-8.5-3.6-8.5H62.3l50.3 51.5 41.7-43z",fill:"#eabd59"}),Lu=q.a.createElement("path",{d:"M1.5 166.8C-1.7 170 .6 175 5 175h88.5l-50.3-51.4-41.7 43.2z",fill:"#49cbce"}),Fu=function(e){return q.a.createElement("svg",ju({id:"pro-icon_svg__Layer_3",viewBox:"0 0 155.8 175.1",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},e),Pu,Tu,Bu,Mu,Nu,Iu,Au,Du,Ru,zu,Lu)},Uu={layout:{title:Object(s.__)("Say Hello to More Layouts 👋",o.i18n),description:Object(s.__)("Get more layouts for this block. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},design:{title:Object(s.__)("Say Hello to More Designs 👋",o.i18n),description:Object(s.__)("Get more pre-set sections / designs for this block. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},image:{title:Object(s.__)("Say Hello to More Shapes 👋",o.i18n),description:Object(s.__)("Get more cool shapes for your images. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},effect:{title:Object(s.__)("Say Hello to More Effects 👋",o.i18n),description:Object(s.__)("Get more flashy image & hover effects. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},advanced:{title:Object(s.__)("Say Hello to Fine-Grained Controls 👋",o.i18n),description:Object(s.__)("Get column spacing options, column colors and more. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},postsBlock:{title:Object(s.__)("Say Hello to More Post Controls 👋",o.i18n),description:Object(s.__)("Get a load more button, more post options and Custom Post Types. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)}},Hu=function(e){var t=p()(["ugb-design-control-pro-note",e.className]);return wp.element.createElement("div",{className:t},e.isDismissible&&wp.element.createElement(l.Button,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),wp.element.createElement(Fu,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||Uu[e.type].title),wp.element.createElement("p",null,e.description||Uu[e.type].description),e.showButton&&wp.element.createElement(vl,{button:e.button||Uu[e.type].button,buttonUtmSource:e.buttonUtmSource}),e.showHideNote&&wp.element.createElement("p",{className:"ugb-design-control-pro-note__notice"},Object(s.__)("You can hide premium hints in the settings",o.i18n)))};Hu.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var Vu=Hu;function Gu(e){return(Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qu(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Wu(e){return(Wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){return($u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yu=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Wu(t).apply(this,arguments))||"object"!==Gu(a)&&"function"!=typeof a?Ku(n):a).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind(Ku(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$u(e,t)}(t,i["Component"]),n=t,(a=[{key:"onClick",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=p()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!this.state.isOpen});return wp.element.createElement("div",{className:"components-base-control"},wp.element.createElement("button",{className:"ugb-pro-control-more-dots",onClick:this.onClick},wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"})),wp.element.createElement("div",{className:e},wp.element.createElement(Vu,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}])&&qu(n.prototype,a),r&&qu(n,r),t}();function Qu(e){return(Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(n,!0).forEach(function(t){Zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ec(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function tc(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function nc(e){return(nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ac(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rc(e,t){return(rc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ic=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this;var r=(e=!(a=nc(t).apply(this,arguments))||"object"!==Qu(a)&&"function"!=typeof a?ac(n):a).getEnabledValues(),i=!r.length||r.every(function(e){return e===r[0]}),l=r.every(function(e){return""===e});return e.state={locked:l?e.props.defaultLocked:i},e.onToggleLock=e.onToggleLock.bind(ac(e)),e.onChangeTop=e.onChangeTop.bind(ac(e)),e.onChangeRight=e.onChangeRight.bind(ac(e)),e.onChangeBottom=e.onChangeBottom.bind(ac(e)),e.onChangeLeft=e.onChangeLeft.bind(ac(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rc(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){return[].concat(ec(this.props.enableTop?[this.props.top]:[]),ec(this.props.enableRight?[this.props.right]:[]),ec(this.props.enableBottom?[this.props.bottom]:[]),ec(this.props.enableLeft?[this.props.left]:[]))}},{key:"getEnabledLocations",value:function(){return[].concat(ec(this.props.enableTop?["top"]:[]),ec(this.props.enableRight?["right"]:[]),ec(this.props.enableBottom?["bottom"]:[]),ec(this.props.enableLeft?["left"]:[]))}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(b.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeTop",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Ju({},this.getEnabledValues(),{top:n}))}},{key:"onChangeRight",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Ju({},this.getEnabledValues(),{right:n}))}},{key:"onChangeBottom",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Ju({},this.getEnabledValues(),{bottom:n}))}},{key:"onChangeLeft",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Ju({},this.getEnabledValues(),{left:n}))}},{key:"render",value:function(){var e=this.props.instanceId,t="ugb-four-number-control-".concat(e,"__item-");return wp.element.createElement(l.BaseControl,{help:this.props.help,className:p()("ugb-four-number-control",this.props.className)},wp.element.createElement(ia,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-four-number-control__wrapper"},wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-top")},wp.element.createElement("input",{id:"".concat(t,"-top"),type:"number",onChange:this.onChangeTop,"aria-label":Object(s.__)("Top",o.i18n),value:this.props.top,placeholder:this.props.enableTop?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableTop}),wp.element.createElement("span",null,Object(s.__)("Top",o.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-right")},wp.element.createElement("input",{id:"".concat(t,"-right"),type:"number",onChange:this.onChangeRight,"aria-label":this.props.label,value:this.props.right,placeholder:this.props.enableRight?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableRight}),wp.element.createElement("span",null,Object(s.__)("Right",o.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-bottom")},wp.element.createElement("input",{id:"".concat(t,"-bottom"),type:"number",onChange:this.onChangeBottom,"aria-label":this.props.label,value:this.props.bottom,placeholder:this.props.enableBottom?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableBottom}),wp.element.createElement("span",null,Object(s.__)("Bottom",o.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-left")},wp.element.createElement("input",{id:"".concat(t,"-left"),type:"number",onChange:this.onChangeLeft,"aria-label":this.props.label,value:this.props.left,placeholder:this.props.enableLeft?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableLeft}),wp.element.createElement("span",null,Object(s.__)("Left",o.i18n))),wp.element.createElement(l.Button,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:wp.element.createElement(l.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}])&&tc(n.prototype,a),r&&tc(n,r),t}();ic.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0};Object(dt.withInstanceId)(ic);function lc(){return(lc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var oc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),sc=q.a.createElement("path",{d:"M4.4 15.7h11.2c.1 0 .2 0 .2.1l2 2c.2.2.1.6-.2.6H2.4c-.3 0-.4-.3-.2-.6l2-2s.1-.1.2-.1z",fill:"#555d63"}),uc=function(e){return q.a.createElement("svg",lc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),oc,sc)};function cc(){return(cc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),pc=q.a.createElement("path",{d:"M4.3 4.4v11.2c0 .1 0 .2-.1.2l-2 2c-.2.2-.6.1-.6-.2V2.4c0-.3.4-.4.6-.2l2 2s.1.1.1.2z",fill:"#555d63"}),dc=function(e){return q.a.createElement("svg",cc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),fc,pc)};function gc(){return(gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var mc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),bc=q.a.createElement("path",{d:"M15.7 15.6V4.4c0-.1 0-.2.1-.2l2-2c.2-.2.6-.1.6.2v15.2c0 .3-.3.4-.6.2l-2-2s-.1-.1-.1-.2z",fill:"#555d63"}),hc=function(e){return q.a.createElement("svg",gc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),mc,bc)};function vc(){return(vc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),wc=q.a.createElement("path",{d:"M15.6 4.3H4.4c-.1 0-.2 0-.2-.1l-2-2c-.2-.2-.1-.6.2-.6h15.2c.3 0 .4.3.2.6l-2 2s-.1.1-.2.1z",fill:"#555d63"}),kc=function(e){return q.a.createElement("svg",vc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),yc,wc)};function Oc(e){return(Oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cc(){return(Cc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Sc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_c(n,!0).forEach(function(t){Ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_c(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jc(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Pc(e){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bc(e,t){return(Bc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Mc=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this;var r=(e=!(a=Pc(t).apply(this,arguments))||"object"!==Oc(a)&&"function"!=typeof a?Tc(n):a).getEnabledValues(),i=e.firstValue(),l=Object.values(r).every(function(e){return e===i}),o=Object.values(r).every(function(e){return""===e});return e.state={locked:o?e.props.defaultLocked:l},e.onToggleLock=e.onToggleLock.bind(Tc(e)),e.onChangeAll=e.onChangeAll.bind(Tc(e)),e.onChangeTop=e.onChangeTop.bind(Tc(e)),e.onChangeRight=e.onChangeRight.bind(Tc(e)),e.onChangeBottom=e.onChangeBottom.bind(Tc(e)),e.onChangeLeft=e.onChangeLeft.bind(Tc(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bc(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return xc({},t,Ec({},n,e.props[n]))},{})}},{key:"getEnabledLocations",value:function(){return[].concat(Sc(this.props.enableTop?["top"]:[]),Sc(this.props.enableRight?["right"]:[]),Sc(this.props.enableBottom?["bottom"]:[]),Sc(this.props.enableLeft?["left"]:[]))}},{key:"firstValue",value:function(){return this.getEnabledLocations().length?Object.values(this.getEnabledValues())[0]:""}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(b.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeAll",value:function(e){var t=e||0===e?e:"";this.props.onChange(this.filterOnlyEnabled({top:t,right:t,bottom:t,left:t}))}},{key:"onChangeTop",value:function(e){this.props.onChange(xc({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(xc({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(xc({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(xc({},this.getEnabledValues(),{left:e||0===e?e:""}))}},{key:"render",value:function(){var e=this.props,t=e.instanceId,n=e.units,a=e.unit,r="ugb-four-range-control-".concat(t,"__item-"),u={min:this.props.min,max:this.props.max,step:this.props.step,placeholder:this.props.placeholder,initialPosition:this.props.initialPosition,sliderMin:this.props.sliderMin,sliderMax:this.props.sliderMax},c=n.indexOf(a)<0?0:n.indexOf(a);Array.isArray(this.props.min)&&(u.min=this.props.min[c]),Array.isArray(this.props.max)&&(u.max=this.props.max[c]),Array.isArray(this.props.sliderMin)&&(u.sliderMin=this.props.sliderMin[c]),Array.isArray(this.props.sliderMax)&&(u.sliderMax=this.props.sliderMax[c]),Array.isArray(this.props.step)&&(u.step=this.props.step[c]),Array.isArray(this.props.placeholder)&&(u.placeholder=this.props.placeholder[c]),Array.isArray(this.props.initialPosition)&&(u.initialPosition=this.props.initialPosition[c]);var f=p()(["ugb-four-range-control__lock"],{"ugb--is-locked":this.state.locked}),d=wp.element.createElement(l.Button,{className:f,onClick:this.onToggleLock,icon:wp.element.createElement(l.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})});return wp.element.createElement(l.BaseControl,{help:this.props.help,className:p()("ugb-four-range-control",this.props.className,{"ugb--locked":this.state.locked})},wp.element.createElement(ia,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens,afterButton:d}),this.state.locked&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(ma,Cc({id:"".concat(r,"-all"),value:this.firstValue(),onChange:this.onChangeAll,allowReset:!0},u))),!this.state.locked&&wp.element.createElement(i.Fragment,null,this.props.enableTop&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Top",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(kc,null))),wp.element.createElement(ma,Cc({id:"".concat(r,"-top"),value:this.props.top,onChange:this.onChangeTop,allowReset:!0},u,{placeholder:this.props.placeholderTop||u.placeholder}))),this.props.enableRight&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Right",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(hc,null))),wp.element.createElement(ma,Cc({id:"".concat(r,"-right"),value:this.props.right,onChange:this.onChangeRight,allowReset:!0},u,{placeholder:this.props.placeholderRight||u.placeholder}))),this.props.enableBottom&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Bottom",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(uc,null))),wp.element.createElement(ma,Cc({id:"".concat(r,"-bottom"),value:this.props.bottom,onChange:this.onChangeBottom,allowReset:!0},u,{placeholder:this.props.placeholderBottom||u.placeholder}))),this.props.enableLeft&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Left",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(dc,null))),wp.element.createElement(ma,Cc({id:"".concat(r,"-left"),value:this.props.left,onChange:this.onChangeLeft,allowReset:!0},u,{placeholder:this.props.placeholderLeft||u.placeholder})))))}}])&&jc(n.prototype,a),r&&jc(n,r),t}();Mc.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,min:0,max:50,sliderMin:null,sliderMax:null,step:1,placeholder:"",placeholderTop:"",placeholderRight:"",placeholderBottom:"",placeholderLeft:"",initialPosition:""};var Nc=Mc,Ic=n(62),Ac=n.n(Ic),Dc=n(63),Rc=n.n(Dc),zc=n(64),Lc=n.n(zc),Fc=n(65),Uc=n.n(Fc),Hc=n(66),Vc=n.n(Hc),Gc=n(67),qc=n.n(Gc),Wc=n(68),Kc=n.n(Wc),$c=n(69),Yc=n.n($c),Qc=n(70),Xc=n.n(Qc),Jc=n(71),Zc=n.n(Jc),ef=n(72),tf=n.n(ef),nf=n(73),af=n.n(nf),rf=n(74),lf=n.n(rf),of=n(75),sf=n.n(of),uf=n(76),cf=n.n(uf),ff=n(77),pf=n.n(ff),df=n(78),gf=n.n(df),mf=n(79),bf=n.n(mf),hf=n(80),vf=n.n(hf),yf=n(81),wf=n.n(yf),kf=n(82),Of=n.n(kf),Cf=n(83),Sf=n.n(Cf),_f=n(84),xf=n.n(_f),Ef=n(85),jf=n.n(Ef),Pf=n(86),Tf=n.n(Pf),Bf=n(87),Mf=n.n(Bf),Nf=n(88),If=n.n(Nf),Af=n(89),Df=n.n(Af),Rf=n(90),zf=n.n(Rf),Lf=n(91),Ff=n.n(Lf);function Uf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Hf(){return(Hf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Vf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function qf(e,t,n){return t&&Gf(e.prototype,t),n&&Gf(e,n),e}function Wf(e){return(Wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $f(e,t){return!t||"object"!==Wf(t)&&"function"!=typeof t?Kf(e):t}function Yf(e){return(Yf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qf(e,t){return(Qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qf(e,t)}function Jf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zf=n(18),ep=n.n(Zf),tp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.forEach(function(e){return e&&e.apply(void 0,n)})}};function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(t){Jf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rp=function(e){function t(){var e,n;Vf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Jf(Kf(n=$f(this,(e=Yf(t)).call.apply(e,[this].concat(r)))),"getRailProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return ap({},e,{onMouseDown:tp(e.onMouseDown,a),onTouchStart:tp(e.onTouchStart,r)})}),n}return Xf(t,G["Component"]),qf(t,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,a=t.activeHandleID,r=(0,t.children)({getEventData:n,activeHandleID:a,getRailProps:e});return r&&q.a.Children.only(r)}}]),t}();rp.propTypes={};var ip=rp,lp=function(e){function t(){return Vf(this,t),$f(this,Yf(t).apply(this,arguments))}return Xf(t,G["Component"]),qf(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,a=e.scale,r=e.count,i=t({getEventData:e.getEventData,activeHandleID:e.activeHandleID,ticks:(n||a.getTicks(r)).map(function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}})});return i&&q.a.Children.only(i)}}]),t}();lp.propTypes={},lp.defaultProps={count:10};var op=lp;function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach(function(t){Jf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cp=function(e){function t(){var e,n;Vf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Jf(Kf(n=$f(this,(e=Yf(t)).call.apply(e,[this].concat(r)))),"getTrackProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return up({},e,{onMouseDown:tp(e.onMouseDown,a),onTouchStart:tp(e.onTouchStart,r)})}),n}return Xf(t,G["Component"]),qf(t,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,a=t.left,r=t.right,i=t.scale,l=t.handles,o=t.getEventData,s=t.activeHandleID,u=i.getDomain(),c=[],f=0;f<l.length+1;f++){var p=l[f-1],d=l[f];0===f&&!0===a?p={id:"$",value:u[0],percent:0}:f===l.length&&!0===r&&(d={id:"$",value:u[1],percent:100}),p&&d&&c.push({id:"".concat(p.id,"-").concat(d.id),source:p,target:d})}var g=n({getEventData:o,activeHandleID:s,tracks:c,getTrackProps:e});return g&&q.a.Children.only(g)}}]),t}();cp.propTypes={},cp.defaultProps={left:!0,right:!0};var fp=cp;function pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach(function(t){Jf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gp=function(e){function t(){var e,n;Vf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Jf(Kf(n=$f(this,(e=Yf(t)).call.apply(e,[this].concat(r)))),"autofocus",function(e){e.target.focus()}),Jf(Kf(n),"getHandleProps",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.props,r=a.emitKeyboard,i=a.emitMouse,l=a.emitTouch;return dp({},t,{onKeyDown:tp(t.onKeyDown,function(t){return r(t,e)}),onMouseDown:tp(t.onMouseDown,n.autofocus,function(t){return i(t,e)}),onTouchStart:tp(t.onTouchStart,function(t){return l(t,e)})})}),n}return Xf(t,G["Component"]),qf(t,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,a=(0,t.children)({handles:t.handles,activeHandleID:n,getHandleProps:e});return a&&q.a.Children.only(a)}}]),t}();gp.propTypes={};var mp=gp;function bp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var hp="react-compound-slider:";function vp(e){return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function yp(e,t,n,a){var r=e.findIndex(function(e){return e.key===t});if(-1!==r){var i=e[r],l=i.key;return i.val===n?e:[].concat(bp(e.slice(0,r)),[{key:l,val:n}],bp(e.slice(r+1))).sort(vp(a))}return e}function kp(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function Op(e){var t=e.type,n=void 0===t?"":t,a=e.touches;return!a||a.length>1||"touchend"===n.toLowerCase()&&a.length>0}function Cp(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Sp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=0;return{handles:e.map(function(e){var t=n.getValue(e);return e!==t&&(r+=1,ep()(!a,"".concat(hp," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t}).map(function(e,t){return{key:"$$-".concat(t),val:e}}).sort(vp(t)),changes:r}}var _p=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};var xp,Ep;1===(xp=_p).length&&(Ep=xp,xp=function(e,t){return _p(Ep(e),t)});var jp=Array.prototype,Pp=(jp.slice,jp.map,Math.sqrt(50)),Tp=Math.sqrt(10),Bp=Math.sqrt(2),Mp=function(e,t,n){var a,r,i,l,o=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((a=t<e)&&(r=e,e=t,t=r),0===(l=function(e,t,n){var a=(t-e)/Math.max(0,n),r=Math.floor(Math.log(a)/Math.LN10),i=a/Math.pow(10,r);return r>=0?(i>=Pp?10:i>=Tp?5:i>=Bp?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(i>=Pp?10:i>=Tp?5:i>=Bp?2:1)}(e,t,n))||!isFinite(l))return[];if(l>0)for(e=Math.ceil(e/l),t=Math.floor(t/l),i=new Array(r=Math.ceil(t-e+1));++o<r;)i[o]=(e+o)*l;else for(e=Math.floor(e*l),t=Math.ceil(t*l),i=new Array(r=Math.ceil(e-t+1));++o<r;)i[o]=(e-o)/l;return a&&i.reverse(),i};var Np=function(){function e(){Vf(this,e),this.domain=[0,1],this.range=[0,1],this.interpolator=null}return qf(e,[{key:"createInterpolator",value:function(e,t){var n=e[0],a=e[1],r=t[0],i=t[1];return a<n?(n=this.deinterpolateValue(a,n),r=this.interpolateValue(i,r)):(n=this.deinterpolateValue(n,a),r=this.interpolateValue(r,i)),function(e){return r(n(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=e.map(function(e){return+e}),this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=e.map(function(e){return+e}),this}},{key:"getTicks",value:function(e){var t=this.domain;return Mp(t[0],t[t.length-1],e||10)}}]),e}();function Ip(e,t,n){return Math.min(Math.max(e,t),n)}var Ap=function e(){var t=this;Vf(this,e),Jf(this,"setDomain",function(e){return t.domain=e.slice(),t}),Jf(this,"setRange",function(e){return t.range=e.slice(),t}),Jf(this,"setStep",function(e){return t.step=e,t}),Jf(this,"getValue",function(e){var n=Uf(t.domain,2),a=n[0],r=n[1],i=Uf(t.range,2),l=i[0],o=i[1],s=t.step,u=(Ip(e,a,r)-a)/(r-a);return Ip(s*Math.round(u*(o-l)/s)+l,l<o?l:o,o>l?o:l)}),this.step=1,this.domain=[0,1],this.range=[0,1]},Dp="undefined"!=typeof window&&"undefined"!=typeof document,Rp=function(){},zp=function(e,t,n,a){var r=a?e-t:e+t;return a?Math.max(n[0],r):Math.min(n[1],r)},Lp=function(e,t,n,a){var r=a?e+t:e-t;return a?Math.min(n[1],r):Math.max(n[0],r)},Fp=function(e){function t(){var e,n;Vf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Jf(Kf(n=$f(this,(e=Yf(t)).call.apply(e,[this].concat(r)))),"state",{step:null,values:null,domain:null,handles:[],reversed:null,activeHandleID:null,valueToPerc:null,valueToStep:null,pixelToStep:null}),Jf(Kf(n),"slider",q.a.createRef()),Jf(Kf(n),"onKeyDown",function(e,t){var a=["ArrowRight","ArrowUp"],r=["ArrowDown","ArrowLeft"],i=Kf(n),l=i.state.handles,o=i.props,s=o.step,u=o.reversed,c=o.vertical,f=o.domain,p=e.key||e.keyCode;if(a.concat(r).includes(p)){if(c){var d=[r,a];a=d[0],r=d[1]}e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault();var g=l.find(function(e){return e.key===t});if(g){var m=g.val,b=m;a.includes(p)?b=zp(m,s,f,u):r.includes(p)&&(b=Lp(m,s,f,u));var h=l.map(function(e){return e.key===t?{key:e.key,val:b}:e});n.submitUpdate(h,!0)}}}),Jf(Kf(n),"onMouseDown",function(e,t){n.onStart(e,t,!1)}),Jf(Kf(n),"onTouchStart",function(e,t){Op(e)||n.onStart(e,t,!0)}),Jf(Kf(n),"getEventData",function(e,t){var a,r=Kf(n),i=r.state,l=i.pixelToStep,o=i.valueToPerc,s=r.props.vertical;return l.setDomain(kp(n.slider.current,s)),{value:a=t?l.getValue(Cp(s,e)):l.getValue(s?e.clientY:e.pageX),percent:o.getValue(a)}}),Jf(Kf(n),"onMouseMove",function(e){var t=Kf(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;i.setDomain(kp(n.slider.current,s));var c=yp(r,l,i.getValue(s?e.clientY:e.pageX),u);n.submitUpdate(c)}),Jf(Kf(n),"onTouchMove",function(e){var t=Kf(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;if(!Op(e)){i.setDomain(kp(n.slider.current,s));var c=yp(r,l,i.getValue(Cp(s,e)),u);n.submitUpdate(c)}}),Jf(Kf(n),"onMouseUp",function(){var e=Kf(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),Dp&&(document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onMouseUp))}),Jf(Kf(n),"onTouchEnd",function(){var e=Kf(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),Dp&&(document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onTouchEnd))}),n}return Xf(t,G["PureComponent"]),qf(t,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(kp(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Dp&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var a=this.state.handles,r=this.props.onSlideStart;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),a.find(function(e){return e.key===t})?(this.setState({activeHandleID:t}),r(a.map(function(e){return e.val}),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:null}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,a=this,r=this.state,i=r.handles,l=r.pixelToStep,o=this.props,s=o.vertical,u=o.reversed,c=this.slider;l.setDomain(kp(c.current,s)),n=t?l.getValue(Cp(s,e)):l.getValue(s?e.clientY:e.pageX);for(var f=null,p=1/0,d=0;d<i.length;d++){var g=i[d],m=g.key,b=g.val,h=Math.abs(b-n);h<p&&(f=m,p=h)}var v=yp(i,f,n,u);this.setState({activeHandleID:f},function(){a.submitUpdate(v,!0),t?a.addTouchEvents():a.addMouseEvents()})}},{key:"addMouseEvents",value:function(){Dp&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Dp&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e,t){var n=this.props,a=n.mode,r=n.step,i=n.onUpdate,l=n.onChange,o=n.reversed,s=this.state.valueToStep.getValue;this.setState(function(n){var u,c=n.handles;if("function"==typeof a)u=a(c,e,r,o,s),ep()(Array.isArray(u),"Custom mode function did not return an array.");else switch(a){case 1:u=function(e,t){return t}(0,e);break;case 2:u=function(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}(c,e);break;case 3:u=function e(t,n,a,r,i){for(var l=-1,o=!0,s=0;s<t.length;s++){var u=t[s],c=n[s];if(!c||c.key!==u.key)return t;c.val!==u.val&&(l=s,o=c.val-u.val>0)}if(-1===l)return t;for(var f=o?a:-a,p=0;p<n.length;p++){var d=n[p],g=n[p+1];if(g&&d.val===g.val){if(p===l){var m=g.val+f;if(i(m)===m){var b=e(n,yp(n,g.key,g.val+f,r),a,r,i);return b===n?t:b}return t}var h=d.val+f;if(i(h)===h){var v=e(n,yp(n,d.key,d.val+f,r),a,r,i);return v===n?t:v}return t}}return n}(c,e,r,o,s);break;default:u=e,ep()(!1,"".concat(hp," Invalid mode value."))}return i(u.map(function(e){return e.val})),t&&l(u.map(function(e){return e.val})),{handles:u}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,a=t.valueToPerc,r=t.activeHandleID,i=this.props,l=i.className,o=i.rootStyle,s=i.rootProps,u=i.component,c=i.disabled,f=i.flatten,p=n.map(function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:a.getValue(n)}}),d=q.a.Children.map(this.props.children,function(t){return!t||t.type.name!==ip.name&&t.type.name!==op.name&&t.type.name!==fp.name&&t.type.name!==mp.name?t:q.a.cloneElement(t,{scale:a,handles:p,activeHandleID:r,getEventData:e.getEventData,emitKeyboard:c?Rp:e.onKeyDown,emitMouse:c?Rp:e.onMouseDown,emitTouch:c?Rp:e.onTouchStart})});return f?q.a.createElement(G.Fragment,null,q.a.createElement(u,Hf({},s,{style:o,className:l,ref:this.slider})),d):q.a.createElement(u,Hf({},s,{style:o,className:l,ref:this.slider}),d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,a,r=e.step,i=e.values,l=e.domain,o=e.reversed,s=e.onUpdate,u=e.onChange,c=e.warnOnChanges,f=t.valueToPerc,p=t.valueToStep,d=t.pixelToStep,g={};if(f&&p&&d||(f=new Np,p=new Ap,d=new Ap,g.valueToPerc=f,g.valueToStep=p,g.pixelToStep=d),null===t.step||null===t.domain||null===t.reversed||r!==t.step||l[0]!==t.domain[0]||l[1]!==t.domain[1]||o!==t.reversed){var m=Uf(l,2),b=m[0],h=m[1];p.setStep(r).setRange([b,h]).setDomain([b,h]),!0===o?(f.setDomain([b,h]).setRange([100,0]),d.setStep(r).setRange([h,b])):(f.setDomain([b,h]).setRange([0,100]),d.setStep(r).setRange([b,h])),ep()(h>b,"".concat(hp," Max must be greater than min (even if reversed). Max is ").concat(h,". Min is ").concat(b,"."));var v=Sp(i||t.values,o,p,c),y=v.handles;(v.changes||void 0===i||i===t.values)&&(s(y.map(function(e){return e.val})),u(y.map(function(e){return e.val}))),g.step=r,g.values=i,g.domain=l,g.handles=y,g.reversed=o}else if(n=i,a=t.values,!(n===a||n.length===a.length&&n.reduce(function(e){return function(t,n,a){return t&&e[a]===n}}(a),!0))){var w=Sp(i,o,p,c),k=w.handles;w.changes&&(s(k.map(function(e){return e.val})),u(k.map(function(e){return e.val}))),g.values=i,g.handles=k}return Object.keys(g).length?g:null}}]),t}();Fp.propTypes={},Fp.defaultProps={mode:1,step:.1,domain:[0,100],component:"div",rootProps:{},rootStyle:{},vertical:!1,reversed:!1,onChange:Rp,onUpdate:Rp,onSlideStart:Rp,onSlideEnd:Rp,disabled:!1,flatten:!1,warnOnChanges:!1};var Up=Fp;Up.Rail=ip,Up.Ticks=op,Up.Tracks=fp,Up.Handles=mp;function Hp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Vp(){return(Vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gp={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},qp={position:"absolute",width:"100%",height:3,backgroundColor:"#e2e4e7",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},Wp=function(e){var t=e.getRailProps;return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",Vp({style:Gp},t())),wp.element.createElement("div",{style:qp}))},Kp=function(e){var t=Hp(e.domain,2),n=t[0],a=t[1],r=e.handle,i=r.id,l=r.value,o=r.percent,s=e.disabled,u=void 0!==s&&s,c=e.getHandleProps;return wp.element.createElement("button",Vp({role:"slider","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":l,disabled:u,style:{left:"".concat(o,"%")}},c(i)))},$p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if("left"===t)for(var n=e.length-1;n>=1;n--)if(e[n]<10){var a=10-e[n];e[n]=10,e[n-1]-=a}for(var r=0;r<e.length-1;r++)if(e[r]<10){var i=10-e[r];e[r]=10,e[r+1]-=i}if("right"===t)for(var l=e.length-1;l>=1;l--)if(e[l]<10){var o=10-e[l];e[l]=10,e[l-1]-=o}return e};function Yp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Qp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Xp={position:"relative",width:"100%"},Jp=[0,100],Zp=function(e){var t=0;return[].concat(Qp(e),[100]).map(function(e){var n=e-t;return t+=n,n})},ed=function(e){var t=0;return Qp(e).pop(),e.reduce(function(n,a,r){if(r===e.length-1)return n;var i=a+t;return t+=a,n.push(i),n},[])},td=function(e){return wp.element.createElement(Up,{className:"ugb-column-widths-control__columns-slider",rootStyle:Xp,mode:function(e,t){var n,a=e.map(function(e){return e.val}),r=t.map(function(e){return e.val});if(Object(b.isEqual)(a,r))return t;if((n=[0].concat(Qp(r),[100])).some(function(e,t){return 0!==t&&e-n[t-1]<10})){var i=Yp(function(e,t){var n,a=0;return t.some(function(t,r){return t!==e[r]&&(a=r,n=t>e[r]?"right":"left",!0)}),[a,n]}(a,r),2);i[0];(function(e,t,n){var a=Zp(e),r=$p(a,n);return ed(r)})(r,0,i[1]).forEach(function(e,n){t[n].val=e})}return t},step:1,onUpdate:function(t){return e.onChange(Zp(t))},domain:Jp,values:ed(e.value)},wp.element.createElement(ip,null,function(e){var t=e.getRailProps;return wp.element.createElement(Wp,{getRailProps:t})}),wp.element.createElement(mp,null,function(e){var t=e.handles,n=e.getHandleProps;return wp.element.createElement("div",{className:"slider-handles"},t.map(function(e){return wp.element.createElement(Kp,{key:e.id,handle:e,domain:Jp,getHandleProps:n})}))}))};td.defaultProps={onChange:function(){},value:[]};var nd=td;function ad(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var rd=function(e){return e.every(function(e){return!e})},id=function(e){var t,n={gridTemplateColumns:(t=e.value,t.map(function(e){return(e/100*t.length).toFixed(2)+"fr"}).join(" ")),gridAutoFlow:rd(e.value)?"column":void 0,justifyContent:rd(e.value)?"space-around":void 0};return wp.element.createElement("div",{className:"ugb-column-widths-control__columns-input",style:n},e.value.map(function(t,n){return wp.element.createElement("input",{key:n,className:"components-column-widths-control__number",type:"number",value:t||"",onChange:function(t){var a=parseInt(t.target.value,10),r=ad(e.value);r[n]=isNaN(a)?"":a,e.onChange(r)},onBlur:function(){var t=$p(e.value),a=100-t.reduce(function(e,t){return e+t},0);n<e.value.length-1?t[n+1]+=a:t[n-1]+=a,e.onChange($p(t))}})}))};id.defaultProps={onChange:function(){},value:[]};var ld=id;function od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sd={"2-1":[50,50],"2-2":[67,33],"2-3":[33,67],"3-1":[33,33,34],"3-2":[25,50,25],"3-3":[50,25,25],"3-4":[25,25,50],"4-1":[25,25,25,25],"4-2":[40,20,20,20],"4-3":[20,20,20,40],"5-1":[20,20,20,20,20],"6-1":[16,17,17,17,17,16]},ud={plain:{2:[{value:"2-1",image:Ac.a},{value:"2-2",image:Rc.a},{value:"2-3",image:Lc.a}],3:[{value:"3-1",image:Uc.a},{value:"3-2",image:Vc.a},{value:"3-3",image:qc.a},{value:"3-4",image:Kc.a}],4:[{value:"4-1",image:Yc.a},{value:"4-2",image:Xc.a},{value:"4-3",image:Zc.a}]},grid:{2:[{value:"2-1",image:tf.a},{value:"2-2",image:af.a},{value:"2-3",image:lf.a}],3:[{value:"3-1",image:sf.a},{value:"3-2",image:cf.a},{value:"3-3",image:pf.a},{value:"3-4",image:gf.a}],4:[{value:"4-1",image:bf.a},{value:"4-2",image:vf.a},{value:"4-3",image:wf.a}]},uneven:{2:[{value:"2-1",image:Of.a},{value:"2-2",image:Sf.a},{value:"2-3",image:xf.a}],3:[{value:"3-1",image:jf.a},{value:"3-2",image:Tf.a},{value:"3-3",image:Mf.a},{value:"3-4",image:If.a}],4:[{value:"4-1",image:Df.a},{value:"4-2",image:zf.a},{value:"4-3",image:Ff.a}]}},cd=function(e){return e.every(function(e){return!e})},fd=function(e){var t=od(Object(i.useState)(-1),2),n=(t[0],t[1]),a=od(Object(i.useState)(!0),2),r=(a[0],a[1]),o=od(Object(i.useState)(""),2),u=o[0],c=o[1];Object(i.useEffect)(function(){c("")},[e.columns]);var f="grid"===e.design?"grid":"plain"===e.design?"plain":"uneven",d=ud[f],g=wp.element.createElement(l.Button,{className:"ugb-columns-width-control__reset",disabled:e.forceBlank?cd(e.values):Object(b.isEqual)(e.values,sd[u||"".concat(e.columns,"-1")]),onClick:function(){c(""),e.forceBlank?e.onChange(["","","","","",""]):e.onChange(sd[u||"".concat(e.columns,"-1")])},isSmall:!0,isSecondary:!0},Object(s.__)("Reset"));return wp.element.createElement(l.BaseControl,{help:e.help,className:p()(["ugb-columns-width-control","ugb--help-tip-column-width",e.className])},(e.hasIndividualControls||!e.hasIndividualControls&&d[e.columns])&&wp.element.createElement(ia,{label:e.label,afterButton:e.hasIndividualControls?g:null,screens:e.screens}),d[e.columns]&&wp.element.createElement(Gl,{options:d[e.columns],onChange:function(t){n(-1),r(!0),c(t),e.onChange(sd[t])}}),e.hasIndividualControls&&wp.element.createElement(i.Fragment,null,wp.element.createElement(nd,{value:cd(e.values)?sd["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),wp.element.createElement(ld,{value:cd(e.values)?e.forceBlank?e.values:sd["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),!1))};fd.defaultProps={columns:2,design:"plain",values:["",""],onChange:function(){},help:"",label:Object(s.__)("Column Widths",o.i18n),className:"",hasIndividualControls:!0,screens:["desktop"],forceBlank:!1};function pd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dd=function(e){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=ge(e.blockAttributes,t,""),a=e.screens;return wp.element.createElement(i.Fragment,null,a.includes("desktop")&&wp.element.createElement(kd,{screens:a},i.Children.toArray(e.children).map(function(a){return Object(i.cloneElement)(a,{value:n(),onChange:function(n){e.onChange?e.onChange(t(),n,""):e.setAttributes(pd({},t(),n))}})})),a.includes("tablet")&&wp.element.createElement(kd,{screens:a,screen:"tablet"},i.Children.toArray(e.children).map(function(a){return Object(i.cloneElement)(a,{value:n("Tablet"),placeholder:n("Tablet")||a.props.placeholder,onChange:function(n){e.onChange?e.onChange(t("Tablet"),n,"Tablet"):e.setAttributes(pd({},t("Tablet"),n))}})})),a.includes("mobile")&&wp.element.createElement(kd,{screens:a,screen:"mobile"},i.Children.toArray(e.children).map(function(a){return Object(i.cloneElement)(a,{value:n("Mobile"),placeholder:n("Mobile")||a.props.placeholder,onChange:function(n){e.onChange?e.onChange(t("Mobile"),n,"Mobile"):e.setAttributes(pd({},t("Mobile"),n))}})})))};dd.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},onChange:null,placeholder:"",screens:["desktop","tablet","mobile"]};var gd=dd;function md(e){return(md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bd(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function hd(e){return(hd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yd(e,t){return(yd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wd=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=hd(t).apply(this,arguments))||"object"!==md(a)&&"function"!=typeof a?vd(n):a).state={screen:Me()},e.onScreenChange=e.onScreenChange.bind(vd(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yd(e,t)}(t,i["Component"]),n=t,(a=[{key:"onScreenChange",value:function(e){this.setState({screen:e})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(R.addAction)("stackable.responsive-toggle.screen.change","stackable/when-responsive-screen-".concat(e),this.onScreenChange)}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(R.removeAction)("stackable.responsive-toggle.screen.change","stackable/when-responsive-screen-".concat(e))}},{key:"render",value:function(){var e=this,t=i.Children.toArray(this.props.children).map(function(t){return Object(i.cloneElement)(t,{screens:e.props.screens,screen:e.state.screen})}),n=this.state.screen===this.props.screen,a=!this.props.screens.includes(this.state.screen)&&!n&&"desktop"===this.props.screen;return wp.element.createElement(i.Fragment,null,(n||a)&&t)}}])&&bd(n.prototype,a),r&&bd(n,r),t}();wd.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};var kd=Object(dt.withInstanceId)(wd);function Od(){return(Od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cd=q.a.createElement("path",{d:"M26.6 40.2h-8.2V27.8H8.8v12.4H.6V9.8h8.2v11.3h9.5V9.8h8.2v30.4zM49.4 40.2h-8.3V24.1c0-2 0-3.7.1-5.4-.5.6-1.1 1.3-1.9 2l-3.4 2.8-4.3-5.2L42 9.8h7.4v30.4z"}),Sd=function(e){return q.a.createElement("svg",Od({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Cd)};function _d(){return(_d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var xd=q.a.createElement("path",{d:"M24.1 39.6H18V27.2H6.6v12.4H.5V10.8h6.1v11.3H18V10.8h6.1v28.8zM49.5 39.6H29.4v-4.2l7.2-7.3c2.1-2.2 3.5-3.7 4.2-4.6.7-.8 1.1-1.6 1.4-2.4.3-.7.4-1.5.4-2.2 0-1.2-.3-2-1-2.6-.6-.6-1.5-.8-2.5-.8-1.1 0-2.2.3-3.2.8s-2.1 1.2-3.3 2.2l-3.3-3.9c1.4-1.2 2.6-2.1 3.5-2.6.9-.5 1.9-.9 3-1.2 1.1-.3 2.3-.4 3.7-.4 1.8 0 3.4.3 4.8 1s2.4 1.6 3.2 2.8 1.1 2.5 1.1 4.1c0 1.3-.2 2.6-.7 3.7-.5 1.2-1.2 2.4-2.2 3.6s-2.7 3-5.2 5.2l-3.7 3.5v.3h12.5v5z"}),Ed=function(e){return q.a.createElement("svg",_d({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),xd)};function jd(){return(jd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Pd=q.a.createElement("path",{d:"M24 38.9h-4.6V26.4H6.6V39H2V11.1h4.6v11.4h12.8V11.1H24v27.8zM47.2 17.5c0 1.8-.5 3.2-1.5 4.4-1 1.2-2.5 2-4.3 2.4v.2c2.2.3 3.9 1 5 2.1s1.7 2.6 1.7 4.4c0 2.7-.9 4.7-2.8 6.2s-4.6 2.2-8.1 2.2c-3.1 0-5.7-.5-7.8-1.5v-4c1.2.6 2.4 1 3.8 1.4 1.3.3 2.6.5 3.8.5 2.2 0 3.8-.4 4.8-1.2 1.1-.8 1.6-2 1.6-3.7 0-1.5-.6-2.6-1.8-3.3-1.2-.7-3-1-5.6-1h-2.4V23H36c4.4 0 6.7-1.5 6.7-4.6 0-1.2-.4-2.1-1.2-2.8-.8-.6-1.9-1-3.4-1-1.1 0-2.1.1-3 .4-1 .3-2.1.9-3.5 1.7l-2.2-3.1c2.6-1.9 5.5-2.8 8.9-2.8 2.8 0 5 .6 6.6 1.8 1.5 1.1 2.3 2.8 2.3 4.9z"}),Td=function(e){return q.a.createElement("svg",jd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Pd)};function Bd(){return(Bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Md=q.a.createElement("path",{d:"M23.5 37.9h-4.2V26.3H7.4v11.6H3.2V12.2h4.2v10.5h11.8V12.2h4.2v25.7zM46.8 32.3h-3.5v5.6h-4v-5.6H27.5v-3.2l11.7-17h4v16.7h3.5v3.5zm-7.5-3.5v-6.4c0-2.3.1-4.2.2-5.6h-.1c-.3.8-.8 1.7-1.5 2.8l-6.4 9.3h7.8z"}),Nd=function(e){return q.a.createElement("svg",Bd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Md)};function Id(){return(Id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ad=q.a.createElement("path",{d:"M24.2 36.2h-3.7V26H10v10.2H6.3V13.5H10v9.3h10.5v-9.3h3.7v22.7zM36.3 22c2.3 0 4.1.6 5.4 1.8 1.3 1.2 2 2.9 2 5 0 2.4-.8 4.3-2.3 5.7s-3.7 2-6.5 2c-2.5 0-4.5-.4-6-1.2V32c.8.5 1.8.8 2.9 1.1s2.1.4 3 .4c1.6 0 2.9-.4 3.8-1.1.9-.7 1.3-1.8 1.3-3.2 0-2.7-1.7-4.1-5.2-4.1-.5 0-1.1 0-1.8.1s-1.3.2-1.9.3l-1.6-1 .9-11.1h11.8v3.2h-8.6l-.5 5.8c.4-.1.8-.1 1.3-.2.6-.1 1.2-.2 2-.2z"}),Dd=function(e){return q.a.createElement("svg",Id({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Ad)};function Rd(){return(Rd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var zd=q.a.createElement("path",{d:"M24.1 35.2h-3.3V26h-9.4v9.2H8.1V14.8h3.3v8.3h9.4v-8.3h3.3v20.4zM28.1 26.5c0-8 3.2-11.9 9.7-11.9 1 0 1.9.1 2.6.2v2.7c-.7-.2-1.5-.3-2.4-.3-2.2 0-3.8.6-4.9 1.8-1.1 1.2-1.7 3-1.8 5.6h.2c.4-.8 1-1.3 1.8-1.7.8-.4 1.7-.6 2.8-.6 1.8 0 3.3.6 4.3 1.7s1.5 2.7 1.5 4.6c0 2.1-.6 3.8-1.8 5.1-1.2 1.2-2.8 1.9-4.9 1.9-1.5 0-2.7-.3-3.8-1.1-1.1-.7-1.9-1.7-2.5-3.1-.5-1.4-.8-3-.8-4.9zm7.1 6.2c1.1 0 2-.4 2.6-1.1.6-.7.9-1.8.9-3.1 0-1.2-.3-2.1-.9-2.8-.6-.7-1.4-1-2.6-1-.7 0-1.4.2-1.9.5-.6.3-1.1.7-1.4 1.2-.3.5-.5 1.1-.5 1.6 0 1.3.4 2.4 1.1 3.3.7 1 1.6 1.4 2.7 1.4z"}),Ld=function(e){return q.a.createElement("svg",Rd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),zd)};function Fd(){return(Fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ud=[{value:"h1",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),1),icon:wp.element.createElement(Sd,null)},{value:"h2",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),2),icon:wp.element.createElement(Ed,null)},{value:"h3",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),3),icon:wp.element.createElement(Td,null)},{value:"h4",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),4),icon:wp.element.createElement(Nd,null)},{value:"h5",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),5),icon:wp.element.createElement(Dd,null)},{value:"h6",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),6),icon:wp.element.createElement(Ld,null)}],Hd=function(e){return wp.element.createElement(sr,Fd({},e,{className:"ugb-heading-buttons-control",controls:Ud}))};Hd.defaultProps={label:Object(s.sprintf)(Object(s._x)("%s HTML Tag","component"),Object(s.__)("Title",o.i18n)),value:Ud[0].value};function Vd(){return(Vd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gd=[{value:"left",title:Object(s.__)("Align Left",o.i18n),icon:"editor-alignleft"},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:"editor-aligncenter"},{value:"right",title:Object(s.__)("Align Right",o.i18n),icon:"editor-alignright"},{value:"justify",title:Object(s.__)("Justified",o.i18n),icon:"editor-justify"}],qd=function(e){var t=e.justified,n=e.className;return wp.element.createElement(sr,Vd({},Object(b.omit)(e,["justified"]),{className:p()([n,"ugb-align-buttons-control"]),controls:Gd.filter(function(e){return!!t||"justify"!==e.value})}))};qd.defaultProps={className:"",label:Object(s.__)("Align",o.i18n),value:Gd[0].value,justified:!1};var Wd=qd;function Kd(){return(Kd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function $d(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Yd={Edit:function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=$d(e,["blockProps","render","mainClass","blockTag"]),l=t.blockName,o=t.attributes,s=o.anchor,u=void 0===s?"":s,c=o.design,f=o.blockTag,d=void 0===f?"div":f,g=p()([e.className],Object(R.applyFilters)("stackable.".concat(l,".main-block.classes"),{"ugb-main-block":a},t)),m=p()(["ugb-inner-block"],Object(R.applyFilters)("stackable.".concat(l,".main-block.inner-classes"),{},t)),b=""!==u?u:void 0,h=d||r||"div";return wp.element.createElement(h,Kd({},i,{id:b,className:g}),t.styles,Object(R.applyFilters)("stackable.".concat(l,".edit.output.outer"),null,c,t),n&&wp.element.createElement("div",{className:m},Object(R.applyFilters)("stackable.".concat(l,".edit.output.before"),null,c,t),wp.element.createElement("div",{className:"ugb-block-content"},n(t)),Object(R.applyFilters)("stackable.".concat(l,".edit.output.after"),null,c,t)))}};Yd.Edit.defaultProps={styles:null,mainClass:!0},Yd.Save=function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=$d(e,["blockProps","render","mainClass","blockTag"]),l=t.blockName,o=t.attributes,s=o.anchor,u=void 0===s?"":s,c=o.design,f=o.blockTag,d=void 0===f?"div":f,g=p()([e.className],Object(R.applyFilters)("stackable.".concat(l,".main-block.classes"),{"ugb-main-block":a},t)),m=p()(["ugb-inner-block"],Object(R.applyFilters)("stackable.".concat(l,".main-block.inner-classes"),{},t)),b=""!==u?u:void 0,h=d||r||"div";return wp.element.createElement(h,Kd({},i,{id:b,className:g}),t.styles,Object(R.applyFilters)("stackable.".concat(l,".save.output.outer"),null,c,t),n&&wp.element.createElement("div",{className:m},Object(R.applyFilters)("stackable.".concat(l,".save.output.before"),null,c,t),wp.element.createElement("div",{className:"ugb-block-content"},n(t)),Object(R.applyFilters)("stackable.".concat(l,".save.output.after"),null,c,t)))},Yd.Save.defaultProps={styles:null,mainClass:!0};var Qd=n(24);function Xd(e){return(Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jd(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Zd(e){return(Zd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(e,t){return(tg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ng=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Zd(t).apply(this,arguments))||"object"!==Xd(a)&&"function"!=typeof a?eg(n):a).state={value:e.props.value},e.uniqueId=Object(b.uniqueId)("ugb-code-textarea-"),e.onChange=e.onChange.bind(eg(e)),e.debouncedOnChange=Object(b.debounce)(e.debouncedOnChange.bind(eg(e)),500,{leading:!0}),e.codeMirror=null,e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tg(e,t)}(t,i["Component"]),n=t,(a=[{key:"componentWillUnmount",value:function(){this.debouncedOnChange.cancel(),this.codeMirror&&this.codeMirror.codemirror.off("change",this.onChange)}},{key:"componentDidMount",value:function(){Qd.initialize&&(this.codeMirror=Object(Qd.initialize)(this.uniqueId,se()(Qd.defaultSettings,this.props.editorSettings)),this.codeMirror.codemirror.on("change",this.onChange))}},{key:"debouncedOnChange",value:function(e){this.props.onChange(e||this.state.value)}},{key:"onChange",value:function(e){var t=e.getValue?e.getValue():e;this.setState({value:t}),this.debouncedOnChange(t)}},{key:"render",value:function(){return wp.element.createElement("textarea",{className:"ugb-code-textarea",id:this.uniqueId,value:this.state.value,onChange:this.onChange})}}])&&Jd(n.prototype,a),r&&Jd(n,r),t}();ng.defaultProps={value:"",onChange:function(){},editorSettings:{}};function ag(){return(ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rg=q.a.createElement("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}),ig=function(e){return q.a.createElement("svg",ag({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),rg)};function lg(){return(lg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var og=q.a.createElement("filter",{id:"curve-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),sg=q.a.createElement("path",{className:"curve-1-shadow_svg__st2",d:"M808 87.9c-334.7 0-631.8 37-818 94.1v10c186.2-57.1 483.3-94.1 818-94.1 325.3 0 615 34.9 802 89.3v-10c-187-54.3-476.7-89.3-802-89.3z"}),ug=function(e){return q.a.createElement("svg",lg({viewBox:"0 0 1600 200",filter:"url(#curve-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),og,sg)};function cg(){return(cg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fg=q.a.createElement("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}),pg=function(e){return q.a.createElement("svg",cg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),fg)};function dg(){return(dg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var gg=q.a.createElement("filter",{id:"curve-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),mg=q.a.createElement("path",{d:"M808 167.6c-334.7 0-631.8-37-818-94.1v10c186.2 57.1 483.3 94.1 818 94.1 325.3 0 615-34.9 802-89.3v-10c-187 54.4-476.7 89.3-802 89.3z"}),bg=function(e){return q.a.createElement("svg",dg({viewBox:"0 0 1600 200",filter:"url(#curve-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),gg,mg)};function hg(){return(hg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var vg=q.a.createElement("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}),yg=function(e){return q.a.createElement("svg",hg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),vg)};function wg(){return(wg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var kg=q.a.createElement("filter",{id:"curve-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Og=q.a.createElement("path",{className:"curve-2-shadow_svg__st2",d:"M1138.3 36.2c246.1 0 412 130.1 458.4 171.4h13.3S1430.8 23.8 1138.3 23.8C884 23.8 172 156.9-10 197.9v9.7H2.2C201.7 163.7 889.3 36.2 1138.3 36.2z"}),Cg=function(e){return q.a.createElement("svg",wg({viewBox:"0 0 1600 200",filter:"url(#curve-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),kg,Og)};function Sg(){return(Sg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _g=q.a.createElement("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}),xg=function(e){return q.a.createElement("svg",Sg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),_g)};function Eg(){return(Eg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var jg=q.a.createElement("filter",{id:"curve-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Pg=q.a.createElement("path",{d:"M1604.2 13.7c3.3-3.1 5.2 152.3 5.7 193.7h.1S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v10c244.9 57.8 894 174.1 1148.3 174.1 262 0 433.1-147.5 465.9-178.2z"}),Tg=function(e){return q.a.createElement("svg",Eg({viewBox:"0 0 1600 200",filter:"url(#curve-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),jg,Pg)};function Bg(){return(Bg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Mg=q.a.createElement("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}),Ng=function(e){return q.a.createElement("svg",Bg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Mg)};function Ig(){return(Ig=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ag=q.a.createElement("filter",{id:"curve-3-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Dg=q.a.createElement("path",{className:"curve-3-shadow_svg__st1",d:"M876.1 171.1C456 171.1-6.7 13.4-6.7 13.4v13.7S456 184.8 876.1 184.8s730.3-155.1 730.3-155.1V16s-310.3 155.1-730.3 155.1z"}),Rg=function(e){return q.a.createElement("svg",Ig({viewBox:"0 0 1600 200",filter:"url(#curve-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ag,Dg)};function zg(){return(zg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Lg=q.a.createElement("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}),Fg=function(e){return q.a.createElement("svg",zg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Lg)};function Ug(){return(Ug=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Hg=q.a.createElement("filter",{id:"curve-3-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Vg=q.a.createElement("path",{d:"M876.2 40.3C456.1 40.3-6.5 177.6-6.5 177.6v10S456.2 50.3 876.3 50.3s730.3 135.1 730.3 135.1v-10c0-.1-310.3-135.1-730.4-135.1z"}),Gg=function(e){return q.a.createElement("svg",Ug({viewBox:"0 0 1600 200",filter:"url(#curve-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Hg,Vg)};function qg(){return(qg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Wg=q.a.createElement("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}),Kg=function(e){return q.a.createElement("svg",qg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Wg)};function $g(){return($g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Yg=q.a.createElement("filter",{id:"rounded-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Qg=q.a.createElement("path",{className:"rounded-1-shadow_svg__st1",d:"M1491.2 20.7c48.1-3.8 90.6 32.5 94.4 80.6l8.5 107.7h8.8l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2v9.4L1491.2 20.7z"}),Xg=function(e){return q.a.createElement("svg",$g({viewBox:"0 0 1600 200",filter:"url(#rounded-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Yg,Qg)};function Jg(){return(Jg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zg=q.a.createElement("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}),em=function(e){return q.a.createElement("svg",Jg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Zg)};function tm(){return(tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var nm=q.a.createElement("filter",{id:"rounded-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),am=q.a.createElement("path",{d:"M1596.6 111.7l8.2-78-.2-36.4-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v10l1507.2 120.5c48.1 3.8 93.6-32.5 97.4-80.6z"}),rm=function(e){return q.a.createElement("svg",tm({viewBox:"0 0 1600 200",filter:"url(#rounded-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),nm,am)};function im(){return(im=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var lm=q.a.createElement("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}),om=function(e){return q.a.createElement("svg",im({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),lm)};function sm(){return(sm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var um=q.a.createElement("filter",{id:"rounded-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),cm=q.a.createElement("path",{className:"rounded-2-shadow_svg__st2",d:"M1600 133.2c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2V210h9v-66.8c0-10.9 8.9-19.8 19.8-19.8h1542.4c10.9 0 19.8 8.9 19.8 19.8V210h9v-76.8z"}),fm=function(e){return q.a.createElement("svg",sm({viewBox:"0 0 1600 200",filter:"url(#rounded-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),um,cm)};function pm(){return(pm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var dm=q.a.createElement("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}),gm=function(e){return q.a.createElement("svg",pm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),dm)};function mm(){return(mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var bm=q.a.createElement("filter",{id:"rounded-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),hm=q.a.createElement("path",{d:"M1600 128.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v10l10-.2c0 11 8.9 19.9 19.8 19.8h1560.4c10.9 0 19.8-8.9 19.8-19.8h9.5v-10h-9.5z"}),vm=function(e){return q.a.createElement("svg",mm({viewBox:"0 0 1600 200",filter:"url(#rounded-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),bm,hm)};function ym(){return(ym=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var wm=q.a.createElement("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}),km=function(e){return q.a.createElement("svg",ym({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),wm)};function Om(){return(Om=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cm=q.a.createElement("filter",{id:"rounded-3-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Sm=q.a.createElement("path",{d:"M1472.3 99.9c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v10s449.8-106 489.8-115.5 90.8-9.7 121.1-8.2c30.3 1.6 734.2 39.7 783.9 42.3 49.8 2.6 69.9 6.8 87 18.1 10 6.6 138.2 89.2 138.2 89.2v-10s-128.2-82.6-138.2-89.2z"}),_m=function(e){return q.a.createElement("svg",Om({viewBox:"0 0 1600 200",filter:"url(#rounded-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Cm,Sm)};function xm(){return(xm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Em=q.a.createElement("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}),jm=function(e){return q.a.createElement("svg",xm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Em)};function Pm(){return(Pm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Tm=q.a.createElement("filter",{id:"rounded-3-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Bm=q.a.createElement("path",{d:"M1472.3 113.3c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v10s449.8 106 489.8 115.5 90.8 9.7 121.1 8.2c30.3-1.6 734.2-39.7 783.9-42.3 49.8-2.6 69.9-6.8 87-18.1 10-6.6 138.2-89.2 138.2-89.2v-10s-128.2 82.6-138.2 89.2z"}),Mm=function(e){return q.a.createElement("svg",Pm({viewBox:"0 0 1600 200",filter:"url(#rounded-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Tm,Bm)};function Nm(){return(Nm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Im=q.a.createElement("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}),Am=function(e){return q.a.createElement("svg",Nm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Im)};function Dm(){return(Dm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Rm=q.a.createElement("filter",{id:"slant-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),zm=q.a.createElement("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}),Lm=function(e){return q.a.createElement("svg",Dm({viewBox:"0 0 1600 200",filter:"url(#slant-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Rm,zm)};function Fm(){return(Fm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Um=q.a.createElement("path",{d:"M1610 210H-10V.5l1620 183.4z"}),Hm=function(e){return q.a.createElement("svg",Fm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Um)};function Vm(){return(Vm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gm=q.a.createElement("filter",{id:"slant-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),qm=q.a.createElement("path",{d:"M-10 .5v10l1620 183.4v-10z"}),Wm=function(e){return q.a.createElement("svg",Vm({viewBox:"0 0 1600 200",filter:"url(#slant-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Gm,qm)};function Km(){return(Km=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var $m=q.a.createElement("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}),Ym=function(e){return q.a.createElement("svg",Km({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),$m)};function Qm(){return(Qm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Xm=q.a.createElement("filter",{id:"slant-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Jm=q.a.createElement("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}),Zm=function(e){return q.a.createElement("svg",Qm({viewBox:"0 0 1600 200",filter:"url(#slant-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Xm,Jm)};function eb(){return(eb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var tb=q.a.createElement("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}),nb=function(e){return q.a.createElement("svg",eb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),tb)};function ab(){return(ab=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rb=q.a.createElement("filter",{id:"slant-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),ib=q.a.createElement("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}),lb=function(e){return q.a.createElement("svg",ab({viewBox:"0 0 1600 200",filter:"url(#slant-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),rb,ib)};function ob(){return(ob=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var sb=q.a.createElement("path",{d:"M-10 210h1620V105.2H-10z"}),ub=function(e){return q.a.createElement("svg",ob({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),sb)};function cb(){return(cb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fb=q.a.createElement("filter",{id:"straight-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),pb=q.a.createElement("path",{d:"M-10 121.6h1620v-16.4H-10z"}),db=function(e){return q.a.createElement("svg",cb({viewBox:"0 0 1600 200",filter:"url(#straight-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),fb,pb)};function gb(){return(gb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var mb=q.a.createElement("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}),bb=function(e){return q.a.createElement("svg",gb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),mb)};function hb(){return(hb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var vb=q.a.createElement("filter",{id:"wave-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),yb=q.a.createElement("path",{className:"wave-1-shadow_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7v10s91.9 35.9 203.9 35.9 182.4-38.8 324.6-38.8c183.8 0 275.7 67.5 393.5 67.5 175.2 0 247-80.4 429.4-80.4 87.6 0 158 12.9 268.6 53.1v-10c-110.6-40.2-181-53.1-268.6-53.1z"}),wb=function(e){return q.a.createElement("svg",hb({viewBox:"0 0 1600 200",filter:"url(#wave-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),vb,yb)};function kb(){return(kb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ob=q.a.createElement("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}),Cb=function(e){return q.a.createElement("svg",kb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ob)};function Sb(){return(Sb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _b=q.a.createElement("filter",{id:"wave-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),xb=q.a.createElement("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v10s91.9-35.9 203.9-35.9 182.4 38.8 324.6 38.8C702.3 148.5 794.2 81 912 81c175.2 0 247 80.4 429.4 80.4 87.6 0 158-12.9 268.6-53.1v-10c-110.6 40.2-181 53.1-268.6 53.1z"}),Eb=function(e){return q.a.createElement("svg",Sb({viewBox:"0 0 1600 200",filter:"url(#wave-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),_b,xb)};function jb(){return(jb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Pb=q.a.createElement("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}),Tb=function(e){return q.a.createElement("svg",jb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Pb)};function Bb(){return(Bb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Mb=q.a.createElement("filter",{id:"wave-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Nb=q.a.createElement("path",{className:"wave-2-shadow_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3v10s77.1 31.5 171.6 3c69.7-21 174.7-62.6 294.4-73 115-10 163.1 3.4 274.1 23.8 111 20.4 199.6 39.5 275 27.9 76-11.7 175.1-60.1 223.1-73.9s115.2-25.2 204-8.5c91 17.1 124.8 34.2 177.8 24.2v-10c-53 10-86.8-7.1-177.8-24.2z"}),Ib=function(e){return q.a.createElement("svg",Bb({viewBox:"0 0 1600 200",filter:"url(#wave-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Mb,Nb)};function Ab(){return(Ab=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Db=q.a.createElement("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}),Rb=function(e){return q.a.createElement("svg",Ab({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Db)};function zb(){return(zb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Lb=q.a.createElement("filter",{id:"wave-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Fb=q.a.createElement("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v10s77.1-31.5 171.6-3c69.7 21 174.7 62.6 294.4 73 115 10 163.1-3.4 274.1-23.8 111-20.4 199.6-39.5 275-27.9 76 11.7 175.1 60.1 223.1 73.9s115.2 25.2 204 8.5c91-17.1 124.8-34.2 177.8-24.2v-10c-53-10-86.8 7.1-177.8 24.2z"}),Ub=function(e){return q.a.createElement("svg",zb({viewBox:"0 0 1600 200",filter:"url(#wave-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Lb,Fb)};function Hb(){return(Hb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vb=q.a.createElement("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}),Gb=function(e){return q.a.createElement("svg",Hb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Vb)};function qb(){return(qb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Wb=q.a.createElement("filter",{id:"wave-3-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Kb=q.a.createElement("path",{className:"wave-3-shadow_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.5 102-10 136.2-10 136.2v10s69.9-5.7 198.5-34.3 221.7-45.7 311.8-49.1 202.6.3 418.2 41.1c156.9 29.7 337.2 67.4 495.1 67.4 127.6 0 196.4-19.4 196.4-19.4v-10s-68.8 19.5-196.4 19.5z"}),$b=function(e){return q.a.createElement("svg",qb({viewBox:"0 0 1600 200",filter:"url(#wave-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Wb,Kb)};function Yb(){return(Yb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Qb=q.a.createElement("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}),Xb=function(e){return q.a.createElement("svg",Yb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Qb)};function Jb(){return(Jb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zb=q.a.createElement("filter",{id:"wave-3-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),eh=q.a.createElement("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7C59.8 70.1-10 64.5-10 64.5v10s69.8 5.6 198.4 34.2c128.6 28.6 221.8 45.6 311.9 49.1s202.6-.3 418.2-41.1c156.9-29.7 337.2-67.4 495.1-67.4 127.6 0 196.4 19.5 196.4 19.5v-10s-68.8-19.5-196.4-19.5z"}),th=function(e){return q.a.createElement("svg",Jb({viewBox:"0 0 1600 200",filter:"url(#wave-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Zb,eh)};function nh(){return(nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ah=q.a.createElement("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}),rh=function(e){return q.a.createElement("svg",nh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ah)};function ih(){return(ih=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var lh=q.a.createElement("filter",{id:"wave-4-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),oh=q.a.createElement("path",{d:"M1368.6 135.4c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v10c90 56.1 248.1 20.6 362.8 8 114.4-12.3 171 18.4 209.2 43.1 38.2 24.8 87.3 21.4 106 19.3 18.6-2.1 109.8-2 185.5 25.1 53.2 19 81.1 33.5 174.2 33.6 93 .2 183.5-39.4 340.9-49.4 160-10.2 241.4 23.1 241.4 23.1v-10s-81.4-33.3-241.4-23.1z"}),sh=function(e){return q.a.createElement("svg",ih({viewBox:"0 0 1600 200",filter:"url(#wave-4-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),lh,oh)};function uh(){return(uh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ch=q.a.createElement("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}),fh=function(e){return q.a.createElement("svg",uh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ch)};function ph(){return(ph=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var dh=q.a.createElement("filter",{id:"wave-4-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),gh=q.a.createElement("path",{d:"M1368.6 102.3c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v10c90-56.1 248.1-20.6 362.8-8 114.4 12.3 171-18.4 209.2-43.1 38.2-24.8 87.3-21.4 106-19.3 18.6 2.1 109.8 2 185.5-25.1 53.2-19 81.1-33.5 174.2-33.6 93-.2 183.5 39.4 340.9 49.4 160 10.2 241.4-23.1 241.4-23.1v-10s-81.4 33.3-241.4 23.1z"}),mh={"wave-1":{default:{shape:bb,shadow:wb},inverted:{shape:Cb,shadow:Eb}},"wave-2":{default:{shape:Tb,shadow:Ib},inverted:{shape:Rb,shadow:Ub}},"wave-3":{default:{shape:Gb,shadow:$b},inverted:{shape:Xb,shadow:th}},"wave-4":{default:{shape:rh,shadow:sh},inverted:{shape:fh,shadow:function(e){return q.a.createElement("svg",ph({viewBox:"0 0 1600 200",filter:"url(#wave-4-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),dh,gh)}}},"curve-1":{default:{shape:ig,shadow:ug},inverted:{shape:pg,shadow:bg}},"curve-2":{default:{shape:yg,shadow:Cg},inverted:{shape:xg,shadow:Tg}},"curve-3":{default:{shape:Ng,shadow:Rg},inverted:{shape:Fg,shadow:Gg}},"slant-1":{default:{shape:Am,shadow:Lm},inverted:{shape:Hm,shadow:Wm}},"slant-2":{default:{shape:Ym,shadow:Zm},inverted:{shape:nb,shadow:lb}},"straight-1":{default:{shape:ub,shadow:db},inverted:{shape:ub,shadow:db}},"rounded-1":{default:{shape:Kg,shadow:Xg},inverted:{shape:em,shadow:rm}},"rounded-2":{default:{shape:om,shadow:fm},inverted:{shape:gm,shadow:vm}},"rounded-3":{default:{shape:km,shadow:_m},inverted:{shape:jm,shadow:Mm}}},bh=function(e){var t=mh[e.design][e.inverted?"inverted":"default"],n=t.shape,a=t.shadow,r=p()([e.className,"ugb-separator-wrapper"]);return wp.element.createElement("div",{className:r},e.shadow&&wp.element.createElement(a,{className:"ugb-separator__shadow",preserveAspectRatio:"none","aria-hidden":"true"}),wp.element.createElement(n,{className:"ugb-separator__layer-1",preserveAspectRatio:"none","aria-hidden":"true"}),e.children)};bh.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},bh.Save=function(e){return wp.element.createElement(bh,e)};function hh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vh=function(e){var t,n=p()([e.className,"ugb-img"],(hh(t={},"wp-image-".concat(e.imageId),e.imageId),hh(t,"ugb-img--shape",e.shape),hh(t,"ugb-image--shape-stretch",e.shapeStretch),hh(t,"ugb--shadow-".concat(e.shadow),!e.shape&&e.shadow),t));return wp.element.createElement("img",{className:n,src:e.src||void 0,alt:g()(e.alt||void 0),width:e.width||void 0,height:e.height||void 0})};vh.defaultProps={imageId:"",alt:"",src:"",size:"full",width:"",height:"",shape:"",shapeStretch:!1,shadow:""};var yh=n(19),wh=wp.element.createElement(l.Icon,{icon:function(){return cl(wp.element.createElement(ll,{width:"20",height:"20"}))}}),kh=wp.element.createElement(l.Icon,{icon:function(){return cl(wp.element.createElement(ul,{width:"20",height:"20"}))}});var Oh=Object(dt.compose)([Object(ne.withSelect)(function(e,t){var n=t.clientIds,a=e("core/block-editor"),r=a.getBlockRootClientId,i=a.getBlocksByClientId,l=(0,a.canInsertBlockType)("ugb/container",n&&n.length>0?r(n[0]):void 0),o=i(n),s=1===o.length&&o[0]&&"ugb/container"===o[0].name;return{isGroupable:l&&o.length&&!s,isUngroupable:s&&!!o[0].innerBlocks.length,blocksSelection:o,groupingBlockName:"ugb/container"}}),Object(ne.withDispatch)(function(e,t){var n=t.clientIds,a=t.onToggle,r=void 0===a?b.noop:a,i=t.blocksSelection,l=void 0===i?[]:i,o=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(l.length){var e=l.map(function(e){return Object(he.cloneBlock)(e)}),t=Object(he.createBlock)("ugb/container",{},e);o(n,t),r()}},onConvertFromGroup:function(){if(l.length){var e=l[0].innerBlocks;e.length&&(o(n,e),r())}}}})])(function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,a=e.isGroupable,r=void 0!==a&&a,l=e.isUngroupable,u=void 0!==l&&l;return Object(ne.select)("core/block-editor").getSelectedBlockClientIds?wp.element.createElement(i.Fragment,null,r&&wp.element.createElement(yh.PluginBlockSettingsMenuItem,{icon:wh,label:Object(s.__)("Group into Container",o.i18n),onClick:t}),u&&wp.element.createElement(yh.PluginBlockSettingsMenuItem,{icon:kh,label:Object(s.__)("Ungroup from Container",o.i18n),onClick:n})):null}),Ch=(Object(ne.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientIds;return t?{clientIds:t()}:{}})(Oh),Object(dt.withState)({openPopover:!1,changed:!1})(function(e){var t=e.blockName,n=e.openPopover,a=e.changed,r=e.setState,o=e.getJSONBlockAttributes,s=e.setJSONBlockAttributes;return wp.element.createElement(i.Fragment,null,wp.element.createElement(yh.PluginBlockSettingsMenuItem,{icon:"editor-code",label:"Get / Set Block Attributes",onClick:function(){r({openPopover:!0,changed:!1}),setTimeout(function(){return document.querySelector(".ugb-modal-get-block-attributes-button textarea").select()},100)}}),n&&wp.element.createElement(l.Modal,{title:"".concat(Object(b.startCase)(t)," Block Attributes"),focusOnMount:!0,className:"ugb-modal-get-block-attributes-button",onRequestClose:function(){if(a){var e=document.querySelector(".ugb-modal-get-block-attributes-button textarea").value;s(e)}r({openPopover:!1})}},wp.element.createElement("p",null,'Copy or modify the attributes of the block directly. Use only double quotes "'),wp.element.createElement("textarea",{onChange:function(){return r({changed:!0})}},o())))})),Sh=Object(dt.compose)([Object(ne.withSelect)(function(e,t){var n=t.clientId,a=e("core/block-editor").getBlockName;return{blockName:n&&a(n)?a(n).replace(/^\w+\//g,""):"",getJSONBlockAttributes:function(){var t=e("core/block-editor").getBlockName,a=e("core/blocks").getBlockType;if(!n)return{};var r=e("core/block-editor").getBlockAttributes(n),i=t(n).replace(/^\w+\//g,""),l=a(t(n)).attributes,o=Object.keys(r).reduce(function(e,t){return r[t]!==(l[t]?l[t].default:"")&&(e[t]=r[t]),e},{});return o.uniqueClass=void 0,JSON.stringify(Object(R.applyFilters)("stackable.".concat(i,".design.filtered-block-attributes"),o),null,4)}}}),Object(ne.withDispatch)(function(e,t){var n=t.clientId;return{setJSONBlockAttributes:function(e){if(n)try{!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(ne.select)("core/block-editor"),r=a.getBlockName,i=a.getSelectedBlockClientId,l=a.getBlockAttributes,o=a.hasMultiSelection,s=a.getMultiSelectedBlockClientIds,u=Object(ne.dispatch)("core/block-editor"),c=u.updateBlockAttributes,f=Object(ne.select)("core/blocks"),p=f.getBlockType;if(n||!o()){var d=n||i();if(d){var g=l(d),m=r(d).replace(/^\w+\//g,""),h=p(r(d)).attributes,v=Object.keys(h).reduce(function(e,t){return ye({},e,we({},t,h[t]?h[t].default:""))},{}),y=Object(R.applyFilters)("stackable.".concat(m,".design.filtered-block-attributes"),ye({},v,{},t),g),w=Object(R.applyFilters)("stackable.".concat(m,".design.no-text-attributes"),y,g);A(w),c(d,Object(b.omit)(w,["uniqueClass"]))}}else s().forEach(function(n){e(t,n)})}(JSON.parse(e),n)}catch(e){console.error(e)}}}})])(Ch);Object(ne.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientId;return t?{clientId:t()}:{}})(Sh);function _h(){return(_h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function xh(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Eh=function(e){var t=e.blockTag,n=e.className,a=e.backgroundAttrName,r=e.blockProps,l=e.showBackground,o=e.showVideoBackground,u=xh(e,["blockTag","className","backgroundAttrName","blockProps","showBackground","showVideoBackground"]),c=p()([n],{"ugb--has-background-overlay":l&&V(a,r.attributes)});return wp.element.createElement(t,_h({className:c},u),e.children,l&&o&&function(e,t){var n=ge(t.attributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e,t))},""),a=n("BackgroundMediaUrl"),r=n("TabletBackgroundMediaUrl"),l=n("MobileBackgroundMediaUrl"),o=p()(["ugb-video-background"],{"ugb--video-hide-tablet":r,"ugb--video-hide-mobile":l}),u=p()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-mobile":l}),c=p()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-tablet":!0});return wp.element.createElement(i.Fragment,null,Te(a)&&wp.element.createElement("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),Te(r)&&wp.element.createElement("video",{className:u,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:r}),Te(l)&&wp.element.createElement("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:l}))}(a,r))};Eh.defaultProps={className:"",backgroundAttrName:"%s",blockProps:{},showBackground:!0,showVideoBackground:!0,blockTag:"div"};var jh=function(e){return wp.element.createElement(l.Modal,{title:Object(s.__)("Stackable Welcome Guide",o.i18n),className:"ugb-modal-welcome-video",overlayClassName:"ugb-modal-welcome-video__overlay",shouldCloseOnClickOutside:!1,onRequestClose:e.onRequestClose},wp.element.createElement("p",null,Object(s.__)("Hello there 👋 I see you might be new to Stackable, we've made a short 3-minute video so you can make the most out of our unique blocks.",o.i18n)),wp.element.createElement("iframe",{title:Object(s.__)("Video Tutorial",o.i18n),width:"800",height:"413",src:"https://www.youtube.com/embed/UW0Rg96aATA",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),wp.element.createElement("p",null,wp.element.createElement(l.Button,{className:"button-primary",onClick:e.onRequestClose,"data-testid":"button-close"},Object(s.__)("Close it, I'm good",o.i18n))))};jh.defaultProps={onRequestClose:function(){}};function Ph(){return(Ph=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Th=q.a.createElement("path",{d:"M38 12H12v26h26V12z"}),Bh=function(e){return q.a.createElement("svg",Ph({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Th)};function Mh(){return(Mh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Nh=q.a.createElement("path",{d:"M12.5 12.5H0V0h12.5v12.5zM31.2 0H18.8v12.5h12.5V0zM50 0H37.5v12.5H50V0zM12.5 18.8H0v12.5h12.5V18.8zm18.7 0H18.8v12.5h12.5V18.8zm18.8 0H37.5v12.5H50V18.8zM12.5 37.5H0V50h12.5V37.5zm18.7 0H18.8V50h12.5V37.5zm18.8 0H37.5V50H50V37.5z"}),Ih=function(e){return q.a.createElement("svg",Mh({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Nh)};function Ah(){return(Ah=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Dh=q.a.createElement("path",{d:"M21.1 5.3H5.3v15.8h15.8V5.3zm23.6 0H28.9v15.8h15.8V5.3zM21.1 28.9H5.3v15.8h15.8V28.9zm23.6 0H28.9v15.8h15.8V28.9z"}),Rh=function(e){return q.a.createElement("svg",Ah({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Dh)},zh=void 0;function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(n,!0).forEach(function(t){Uh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vh=function(e){var t=Hh(Object(i.useState)([]),2),n=t[0],a=t[1],r=Hh(Object(i.useState)({}),2),l=r[0],u=r[1],c=Hh(Object(i.useState)(0),2),f=c[0],d=c[1],g=Hh(Object(i.useState)(0),2),m=g[0],h=g[1],v=Hh(Object(i.useState)(0),2),y=v[0],w=v[1],k=Hh(Object(i.useState)(""),2),O=k[0],C=k[1];return Object(i.useEffect)(function(){Yi().then(function(e){var t=e.reduce(function(e,t){if(!e[t]){if(Object(ne.select)("core/edit-post").getPreference("hiddenBlockTypes").includes(t))return e;if(!Object(ne.select)("core/blocks").getBlockType(t))return e;e[t]={count:0,name:t,label:t?Object(ne.select)("core/blocks").getBlockType(t).title:""}}return e},{});u(t)})},[]),Object(i.useEffect)(function(){Object.keys(l).length&&Ki({type:"block",search:e.search,mood:e.mood,colors:e.colors}).then(function(t){var n=Object.keys(l).reduce(function(e,t){return e[t]=Fh({},l[t]),e},{}),r=0,i=0,o=t.reduce(function(t,n){var a=n.block,l=n.type,o=n.plan;return"block"===l&&t[a]&&t[a].count++,e.forceBlock&&e.forceBlock!==n.block||(i++,"free"===o&&r++),t},Fh({},n));d(i),h(r),w(i-r),a(Object(b.orderBy)(o,["title"],["asc"]))})},[l,e.search,e.mood,e.colors]),wp.element.createElement("ul",{className:"ugb-block-list"},wp.element.createElement("li",null,wp.element.createElement("div",{className:""===O?"is-active":"","data-count":f,onClick:function(){C(""),e.onSelect({block:"",plan:""})},onKeyPress:function(e){13===e.keyCode&&zh.click()},role:"button",tabIndex:0,"aria-pressed":""===O?"true":"false"},Object(s.__)("All Block Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"all-count"},f))),f!==m&&wp.element.createElement("li",null,wp.element.createElement("div",{className:"free"===O?"is-active":"","data-count":m,onClick:function(){C("free"),e.onSelect({block:"",plan:"free"})},onKeyPress:function(e){13===e.keyCode&&zh.click()},role:"button",tabIndex:0,"aria-pressed":"free"===O?"true":"false"},Object(s.__)("Free Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"free-count"},m)),wp.element.createElement("div",{className:"premium"===O?"is-active":"","data-count":y,onClick:function(){C("premium"),e.onSelect({block:"",plan:"premium"})},onKeyPress:function(e){13===e.keyCode&&zh.click()},role:"button",tabIndex:0,"aria-pressed":"premium"===O?"true":"false"},Object(s.__)("Premium Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"premium-count"},y))),wp.element.createElement(Vo,null),n.map(function(t,n){var a=O===t.name||t.name===e.forceBlock,r=p()({"is-active":a,"is-disabled":e.forceBlock&&t.name!==e.forceBlock});return wp.element.createElement("li",{key:n},wp.element.createElement("div",{className:r,"data-count":t.count,onClick:function(){e.forceBlock||(C(t.name),e.onSelect({block:t.name,plan:""}))},onKeyPress:function(e){13===e.keyCode&&zh.click()},role:"button",tabIndex:0,"aria-pressed":a?"true":"false"},t.label,wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"".concat(t.name,"-count")},t.count)))}))};Vh.defaultProps={search:"",mood:"",colors:[],onSelect:function(){},forceBlock:""};var Gh=Vh;function qh(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Wh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Kh={red:{color:"#f44336",name:"red"},green:{color:"#4caf50",name:"green"},yellow:{color:"#ffeb3b",name:"yellow"},blue:{color:"#2196f3",name:"blue"},pink:{color:"#e91e63",name:"pink"},gray:{color:"#9e9e9e",name:"gray"},brown:{color:"#795548",name:"brown"},orange:{color:"#ff9800",name:"orange"},purple:{color:"#9c27b0",name:"purple"},black:{color:"#212121",name:"black"},white:{color:"#fff",name:"white"}},$h=function(e){var t=Wh(Object(i.useState)([]),2),n=t[0],a=t[1];return wp.element.createElement(l.BaseControl,{className:"ugb-modal-design-library__color-list",id:"design-colors"},wp.element.createElement("div",{className:"ugb-modal-design-library__color-list-wrapper"},Object.keys(e.colors).map(function(t){var r=Kh[t],i=r.color,o=r.name;return wp.element.createElement(l.ColorPalette,{key:t,value:n.includes(o)?i:"",colors:[{color:i,name:o}],onChange:function(t){var r;r=t?[].concat(qh(n),[o]):n.filter(function(e){return e!==o}),a(r),e.onSelect(r)},clearable:!1,disableCustomColors:!0})})))};$h.defaultProps={onSelect:function(){},colors:Kh};var Yh=$h;function Qh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Xh=function(e){var t=Qh(Object(i.useState)(e.search),2),n=t[0],a=t[1],r=Qh(Object(i.useState)(),2),u=r[0],c=r[1],f=Qh(Object(i.useState)(""),2),p=f[0],d=f[1],g=Qh(Object(i.useState)(""),2),m=g[0],b=g[1],h=Qh(Object(i.useState)([]),2),v=h[0],y=h[1],w=Qh(Object(i.useState)(3),2),k=w[0],O=w[1],C=Qh(Object(i.useState)([]),2),S=C[0],_=C[1],x=Qh(Object(i.useState)(!0),2),E=x[0],j=x[1],P=Qh(Object(i.useState)(!1),2),T=P[0],B=P[1],M=Qh(Se("stk__design_library_dev_mode",!1),2),N=M[0],I=M[1];Object(i.useEffect)(function(){return c(e.selectedBlock)},[e.selectedBlock]);var A=Qh(Object(i.useState)(n),2),D=A[0],R=A[1],z=Qh(Object(i.useState)(null),2),L=z[0],F=z[1];return Object(i.useEffect)(function(){L&&(clearTimeout(L),F(null)),F(setTimeout(function(){R(n)},500))},[n]),Object(i.useEffect)(function(){var e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()},[]),Object(i.useEffect)(function(){T&&(_([]),j(!0)),Ki({type:"block",block:u,plan:p,mood:m,colors:v,search:D,reset:T}).then(function(e){_(e)}).finally(function(){j(!1),B(!1)})},[u,m,v,p,D,T]),wp.element.createElement(l.Modal,{title:Object(s.__)("Stackable Design Library",o.i18n),className:"ugb-modal-design-library",onRequestClose:e.onClose},wp.element.createElement("div",{className:"ugb-modal-design-library__wrapper"},wp.element.createElement("aside",{className:"ugb-modal-design-library__sidebar"},wp.element.createElement(l.TextControl,{className:"ugb-modal-design-library__search",placeholder:Object(s.__)("Search designs...",o.i18n),value:n,onChange:function(e){return a(e)},"data-testid":"input-search"}),wp.element.createElement("div",{className:"ugb-modal-design-library__filters"},wp.element.createElement(Yh,{onSelect:function(e){y(e)}}),wp.element.createElement(sr,{controls:[{value:"",title:Object(s.__)("All",o.i18n)},{value:"light",title:Object(s.__)("Light",o.i18n)},{value:"dark",title:Object(s.__)("Dark",o.i18n)}],value:m,onChange:function(e){return b(e)}}),wp.element.createElement(Gh,{search:n,mood:m,colors:v,forceBlock:e.selectedBlock,onSelect:function(e){var t=e.block,n=e.plan;c(t),d(n)}}))),wp.element.createElement("aside",{className:"ugb-modal-design-library__topbar"},o.devMode&&wp.element.createElement(l.ToggleControl,{className:"ugb-modal-design-library__dev-mode",label:"Dev Mode",checked:N,onChange:function(e){Wi(e).then(function(){B(!0)}),I(e)}}),wp.element.createElement(l.Button,{icon:"image-rotate",label:Object(s.__)("Refresh Library",o.i18n),className:"ugb-modal-design-library__refresh",onClick:function(){return B(!0)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(Bh,{width:"18",height:"18"}),className:2===k?"is-active":"",label:Object(s.__)("Large preview",o.i18n),onClick:function(){return O(2)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(Rh,{width:"18",height:"18"}),className:3===k?"is-active":"",label:Object(s.__)("Medium preview",o.i18n),onClick:function(){return O(3)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(Ih,{width:"18",height:"18"}),className:4===k?"is-active":"",label:Object(s.__)("Small preview",o.i18n),onClick:function(){return O(4)}})),wp.element.createElement("div",{className:"ugb-modal-design-library__designs"},wp.element.createElement(Cl,{columns:k,onSelect:e.onSelect,isBusy:E,designs:e.selectedBlock?S.filter(function(t){return t.block===e.selectedBlock}):S}))))};Xh.defaultProps={search:"",selectedBlock:"",onClose:function(){},onSelect:function(){}};var Jh=Xh;function Zh(){return(Zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ev=q.a.createElement("path",{fill:"currentColor",d:"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"}),tv=function(e){return q.a.createElement("svg",Zh({"aria-hidden":"true","data-prefix":"fas","data-icon":"circle-notch",className:"spinner_svg__svg-inline--fa spinner_svg__fa-circle-notch spinner_svg__fa-w-16",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),ev)};function nv(){return(nv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function av(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var rv=function(){return wp.element.createElement(tv,{className:"ugb-icon-is-loading"})},iv=function(e){var t=av(Object(i.useState)(0),2),n=t[0],a=t[1],r=function(){a(n+1)};Object(i.useEffect)(function(){(window.FontAwesome?Promise.resolve(!0):new Promise(function(e,t){var n=240,a=setInterval(function(){window.FontAwesome?(clearInterval(a),e(!0)):n--<0&&(clearInterval(a),t(!1))},250)})).then(r)},[]);var l=Object(b.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return wp.element.createElement(i.RawHTML,l,e.value);if(!window.FontAwesome)return wp.element.createElement(rv,null);var o=e.value?e.value.replace(/-.*$/,""):e.prefix,s=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(o&&s){var u=xe(o,s);return u?wp.element.createElement(i.RawHTML,l,u):(function(e,t){var n=Ee(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var r=240,i=setInterval(function(){var l=Ee(e,t);window.FontAwesome?(clearInterval(i),n(l)):r--<0&&(clearInterval(i),a(!1))},250)})}(o,s).then(r),wp.element.createElement(rv,null))}var c=xe("far","smile");return wp.element.createElement(i.RawHTML,nv({},l,{className:"".concat(e.className," ugb-icon--faded")}),c)};iv.Content=function(e){var t=Object(b.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return wp.element.createElement(i.RawHTML,t,e.value);var n=e.value?e.value.replace(/-.*$/,""):e.prefix,a=e.value?e.value.replace(/^.*?-/,""):e.iconName,r=xe(n,a);return wp.element.createElement(i.RawHTML,t,r)},iv.defaultProps={prefix:"",iconName:"",value:""};var lv=iv;function ov(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sv=1,uv=function(e){var t=ov(Object(i.useState)("ugb-admin-setting-".concat(sv++)),1)[0],n=p()(["ugb-admin-setting"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"ugb-admin-setting--".concat(e.size),e.size));return wp.element.createElement("div",{className:n,id:t},wp.element.createElement("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:t},wp.element.createElement("span",{className:"ugb-admin-setting__label"},e.label),wp.element.createElement("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&wp.element.createElement("p",{className:"ugb-admin-setting__help"},e.help))};uv.defaultProps={label:""};var cv=uv,fv=function(e){return wp.element.createElement(cv,e,wp.element.createElement("input",{className:"ugb-admin-text-setting",type:e.type,value:e.value,placeholder:e.placeholder,onChange:function(t){return e.onChange(t.target.value)}}),e.children)};fv.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:function(){}};var pv=fv,dv=function(e){return wp.element.createElement(cv,e,wp.element.createElement("button",{className:"ugb-admin-toggle-setting__button",type:"button",role:"switch","aria-checked":!!e.value,onClick:function(){return e.onChange(!e.value)},style:{minWidth:e.width||void 0}},wp.element.createElement("span",null,e.disabled),wp.element.createElement("span",null,e.enabled)))};dv.defaultProps={label:"",value:!1,placeholder:"",onChange:function(){},disabled:Object(s.__)("Disabled",o.i18n),enabled:Object(s.__)("Enabled",o.i18n),width:""};var gv=dv;function mv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bv(e){return(bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hv(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function vv(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function yv(e){return(yv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kv(e,t){return(kv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ov=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=yv(t).apply(this,arguments))||"object"!==bv(a)&&"function"!=typeof a?wv(n):a).toggleBlock=e.toggleBlock.bind(wv(e)),e.enableAllBlocks=e.enableAllBlocks.bind(wv(e)),e.disableAllBlocks=e.disableAllBlocks.bind(wv(e)),e.ajaxTimeout=null,e.state={disabledBlocks:e.props.disabledBlocks||[],isSaving:!1},e}var n,r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kv(e,t)}(t,i["Component"]),n=t,(r=[{key:"componentDidUpdate",value:function(e,t){var n=this;this.state.disabledBlocks!==t.disabledBlocks&&(clearTimeout(this.ajaxTimeout),this.ajaxTimeout=setTimeout(function(){Object(a.send)("stackable_update_disable_blocks",{success:function(){n.setState({isSaving:!1})},error:function(e){n.setState({isSaving:!1}),alert(e)},data:{nonce:o.nonce,disabledBlocks:n.state.disabledBlocks}}),n.setState({isSaving:!0})},600))}},{key:"toggleBlock",value:function(e){this.state.disabledBlocks.includes(e)?this.setState({disabledBlocks:this.state.disabledBlocks.filter(function(t){return t!==e})}):this.setState({disabledBlocks:[].concat(hv(this.state.disabledBlocks),[e])})}},{key:"enableAllBlocks",value:function(){this.setState({disabledBlocks:[]})}},{key:"disableAllBlocks",value:function(){this.setState({disabledBlocks:Object.keys(this.props.blocks)})}},{key:"render",value:function(){var e=this,t=this.props.blocks;return wp.element.createElement("div",null,wp.element.createElement("div",{className:"s-settings-header"},this.state.isSaving&&wp.element.createElement(l.Spinner,null),wp.element.createElement("button",{onClick:this.enableAllBlocks,className:"button button-large button-link"},Object(s.__)("Enable All",o.i18n)),wp.element.createElement("button",{onClick:this.disableAllBlocks,className:"button button-large button-link"},Object(s.__)("Disable All",o.i18n))),wp.element.createElement("div",{className:"s-settings-grid"},Object.keys(t).map(function(n,a){var r=t[n];if(r.sDeprecated)return null;var i=e.state.disabledBlocks.includes(n),l=p()(["s-box","s-box-small"],{"s-is-disabled":i}),u=n.replace(/\w+\//,"");return wp.element.createElement("div",{key:a+1,className:l},wp.element.createElement("img",{src:"".concat(o.welcomeSrcUrl,"/images/block-").concat(u,".svg"),alt:"".concat(r.title," icon"),className:"s-block-icon"}),wp.element.createElement("h4",null,r.title),wp.element.createElement("p",{className:"s-block-description"},r.description),r.sDemoURL&&wp.element.createElement("p",{className:"s-demo-url"},wp.element.createElement("small",null,wp.element.createElement("a",{href:r.sDemoURL,target:"stackable_demo",title:Object(s.sprintf)(Object(s.__)("View %s Demo",o.i18n),r.title)},Object(s.__)("View Block Demo",o.i18n)))),wp.element.createElement("button",{className:"s-toggle-button",onClick:function(){return e.toggleBlock(n)}},wp.element.createElement("span",null,Object(s.__)("Disabled",o.i18n)),wp.element.createElement("span",null,Object(s.__)("Enabled",o.i18n))))})))}}])&&vv(n.prototype,r),u&&vv(n,u),t}(),Cv=null,Sv=function(){var e=mv(Object(i.useState)(!1),2),t=e[0],n=e[1],a=mv(Object(i.useState)(""),2),r=a[0],l=a[1];Object(i.useEffect)(function(){c.loadPromise.then(function(){(new c.models.Settings).fetch().then(function(e){n(!!e.stackable_global_force_typography),l(e.stackable_global_content_selector)})})},[]);return wp.element.createElement(i.Fragment,null,wp.element.createElement(pv,{label:Object(s.__)("Content Selector",o.i18n),help:Object(s.__)("The selector to the content area of your theme.",o.i18n),placeholder:".entry-content",value:r,onChange:function(e){clearTimeout(Cv),Cv=setTimeout(function(){new c.models.Settings({stackable_global_content_selector:e}).save()},500),l(e)}}),wp.element.createElement(gv,{label:Object(s.__)("Force Typography Styles",o.i18n),value:t,onChange:function(e){new c.models.Settings({stackable_global_force_typography:e}).save(),n(e)},disabled:Object(s.__)("Not forced",o.i18n),enabled:Object(s.__)("Force styles",o.i18n)}))},_v=function(e){var t=mv(Object(i.useState)(!1),2),n=t[0],a=t[1],r=mv(Object(i.useState)(!1),2),u=r[0],f=r[1],p=mv(Object(i.useState)(!1),2),d=p[0],g=p[1],m=mv(Object(i.useState)(!1),2),b=m[0],h=m[1];Object(i.useEffect)(function(){h(!0),c.loadPromise.then(function(){(new c.models.Settings).fetch().then(function(e){a(!!e.stackable_help_tooltip_disabled),f("1"===e.stackable_load_v1_styles),g("1"===e.stackable_show_pro_notices),h(!1)})})},[]);var v=function(e,t){h(!0),new c.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t)).save().then(function(){return h(!1)})};return wp.element.createElement("div",null,e.showProNoticesOption&&wp.element.createElement(l.CheckboxControl,{label:Object(s.__)('Show "Go premium" notices',o.i18n),checked:d,onChange:function(e){v("stackable_show_pro_notices",e?"1":""),g(e)}}),wp.element.createElement(l.CheckboxControl,{label:Object(s.__)("Don't show help video tooltips",o.i18n),checked:n,onChange:function(e){v("stackable_help_tooltip_disabled",e?"1":""),a(e)}}),wp.element.createElement(l.CheckboxControl,{label:Object(s.__)("Load version 1 block stylesheet for backward compatibility",o.i18n),checked:u,onChange:function(e){v("stackable_load_v1_styles",e?"1":""),f(e)}}),b&&wp.element.createElement("div",{className:"ugb--saving-wrapper"},wp.element.createElement(l.Spinner,null)))};_v.defaultProps={showProNoticesOption:!1},Object(r.a)(function(){Object(i.render)(wp.element.createElement(Ov,{blocks:u,disabledBlocks:o.disabledBlocks}),document.querySelector(".s-settings-wrapper")),Object(i.render)(wp.element.createElement(_v,{showProNoticesOption:o.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),Object(i.render)(wp.element.createElement(Sv,null),document.querySelector(".s-global-settings"))})}]);
38
  *
39
  * This source code is licensed under the MIT license found in the
40
  * LICENSE file in the root directory of this source tree.
41
+ */var a,r,i,l,o;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},a=function(e){null!==s?setTimeout(a,0,e):(s=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},l=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,g=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var h=d.now();t.unstable_now=function(){return d.now()-h}}var v=!1,y=null,w=-1,k=5,O=0;l=function(){return t.unstable_now()>=O},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,S=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();O=e+k;try{y(!0,e)?S.postMessage(null):(v=!1,y=null)}catch(e){throw S.postMessage(null),e}}else v=!1},a=function(e){y=e,v||(v=!0,S.postMessage(null))},r=function(e,n){w=g(function(){e(t.unstable_now())},n)},i=function(){m(w),w=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var a=Math.floor((n-1)/2),r=e[a];if(!(void 0!==r&&0<j(r,t)))break e;e[a]=t,e[n]=r,n=a}}function x(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length;a<r;){var i=2*(a+1)-1,l=e[i],o=i+1,s=e[o];if(void 0!==l&&0>j(l,n))void 0!==s&&0>j(s,l)?(e[a]=s,e[o]=n,a=o):(e[a]=l,e[i]=n,a=i);else{if(!(void 0!==s&&0>j(s,n)))break e;e[a]=s,e[o]=n,a=o}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],T=[],B=1,M=null,N=3,I=!1,A=!1,D=!1;function R(e){for(var t=x(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,_(P,t)}t=x(T)}}function z(e){if(D=!1,R(e),!A)if(null!==x(P))A=!0,a(L);else{var t=x(T);null!==t&&r(z,t.startTime-e)}}function L(e,n){A=!1,D&&(D=!1,i()),I=!0;var a=N;try{for(R(n),M=x(P);null!==M&&(!(M.expirationTime>n)||e&&!l());){var o=M.callback;if(null!==o){M.callback=null,N=M.priorityLevel;var s=o(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?M.callback=s:M===x(P)&&E(P),R(n)}else E(P);M=x(P)}if(null!==M)var u=!0;else{var c=x(T);null!==c&&r(z,c.startTime-n),u=!1}return u}finally{M=null,N=a,I=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=o;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();if("object"==typeof l&&null!==l){var s=l.delay;s="number"==typeof s&&0<s?o+s:o,l="number"==typeof l.timeout?l.timeout:F(e)}else l=F(e),s=o;return e={id:B++,callback:n,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>o?(e.sortIndex=s,_(T,e),null===x(P)&&e===x(T)&&(D?i():D=!0,r(z,s-o))):(e.sortIndex=l,_(P,e),A||I||(A=!0,a(L))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=x(P);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||l()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){A||I||(A=!0,a(L))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_Profiling=null},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t,n){"use strict";n.r(t);var a=n(20),r=n(11),i=n(3),l=n(4),o=n(1);Object(r.a)(function(){var e=document.querySelector(".s-news-box-content");e&&""===e.innerHTML&&(Object(i.render)(wp.element.createElement("div",null,wp.element.createElement(l.Spinner,null)),e),Object(a.send)("stackable_news_feed_ajax",{success:function(t){e.innerHTML=t},error:function(e){alert(e)},data:{nonce:o.nonceNews}}))});var s=n(0),u={"ugb/accordion":{title:Object(s.__)("Accordion",o.i18n),description:Object(s.__)("A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.",o.i18n),sDemoURL:"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/text":{title:Object(s.__)("Advanced Text",o.i18n),description:Object(s.__)("Start with the building block of all page layouts.",o.i18n),sDemoURL:"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/heading":{title:Object(s.__)("Advanced Heading",o.i18n),description:Object(s.__)("Introduce new sections of your content in style.",o.i18n),sDemoURL:"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blockquote":{title:Object(s.__)("Blockquote",o.i18n),description:Object(s.__)("Display a quote in style.",o.i18n),sDemoURL:"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blog-posts":{title:Object(s.__)("Blog Posts",o.i18n),description:Object(s.__)("Your latest blog posts. Use this to showcase a few of your posts in your landing pages.",o.i18n),sDemoURL:"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/button":{title:Object(s.__)("Button",o.i18n),description:Object(s.__)("Add a customizable button.",o.i18n),sDemoURL:"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/cta":{title:Object(s.__)("Call to Action",o.i18n),description:Object(s.__)("A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.",o.i18n),sDemoURL:"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/card":{title:Object(s.__)("Card",o.i18n),description:Object(s.__)("Describe a single subject in a small card. You can use this to describe your product, service or a person.",o.i18n),sDemoURL:"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/columns":{title:Object(s.__)("Columns",o.i18n),description:Object(s.__)("Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.",o.i18n),sDemoURL:"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/container":{title:Object(s.__)("Container",o.i18n),description:Object(s.__)("A styled container that you can add other blocks inside. Use this to create unique layouts.",o.i18n),sDemoURL:"https://wpstackable.com/container-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/count-up":{title:Object(s.__)("Count Up",o.i18n),description:Object(s.__)("Showcase your stats. Display how many customers you have or the number of downloads of your app.",o.i18n),sDemoURL:"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/design-library":{title:Object(s.__)("Design Library",o.i18n),description:Object(s.__)("Choose from over a hundred block designs from the Stackable Design Library.",o.i18n)},"ugb/divider":{title:Object(s.__)("Divider",o.i18n),description:Object(s.__)("Add a pause between your content.",o.i18n)},"ugb/expand":{title:Object(s.__)("Expand / Show More",o.i18n),description:Object(s.__)("Display a small snippet of text. Your readers can toggle it to show more information.",o.i18n),sDemoURL:"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature-grid":{title:Object(s.__)("Feature Grid",o.i18n),description:Object(s.__)("Display multiple product features or services. You can use Feature Grids one after another.",o.i18n),sDemoURL:"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature":{title:Object(s.__)("Feature",o.i18n),description:Object(s.__)("Display a product feature or a service in a large area.",o.i18n),sDemoURL:"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/header":{title:Object(s.__)("Header",o.i18n),description:Object(s.__)("A large header title area. Typically used at the very top of a page.",o.i18n),sDemoURL:"https://wpstackable.com/header-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon":{title:Object(s.__)("Icon",o.i18n),description:Object(s.__)("Pick an icon or upload your own SVG icon to decorate your content.",o.i18n),sDemoURL:"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon-list":{title:Object(s.__)("Icon List",o.i18n),description:Object(s.__)("An unordered list with icons. You can use this as a list of features or benefits.",o.i18n),sDemoURL:"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/image-box":{title:Object(s.__)("Image Box",o.i18n),description:Object(s.__)("Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.",o.i18n),sDemoURL:"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/notification":{title:Object(s.__)("Notification",o.i18n),description:Object(s.__)("Show a notice to your readers. People can dismiss the notice to permanently hide it.",o.i18n),sDemoURL:"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/number-box":{title:Object(s.__)("Number Box",o.i18n),description:Object(s.__)('Display steps or methods that your users will do in your service. For example, "Get started in just 3 easy steps: 1, 2 and 3!"',o.i18n),sDemoURL:"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/pricing-box":{title:Object(s.__)("Pricing Box",o.i18n),description:Object(s.__)("Display the different pricing tiers of your business.",o.i18n),sDemoURL:"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/separator":{title:Object(s.__)("Separator",o.i18n),description:Object(s.__)("A fancy separator to be placed between containers and content.",o.i18n),sDemoURL:"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/spacer":{title:Object(s.__)("Spacer",o.i18n),description:Object(s.__)("Sometimes you just need some space.",o.i18n)},"ugb/team-member":{title:Object(s.__)("Team Member",o.i18n),description:Object(s.__)("Display members of your team or your office. Use multiple Team Member blocks if you have a large team.",o.i18n),sDemoURL:"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/testimonial":{title:Object(s.__)("Testimonial",o.i18n),description:Object(s.__)("Showcase what your users say about your product or service.",o.i18n),sDemoURL:"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/video-popup":{title:Object(s.__)("Video Popup",o.i18n),description:Object(s.__)("Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.",o.i18n),sDemoURL:"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}},c=n(14),f=n(6),p=n.n(f),d=n(21),g=n.n(d),m=n(12);var b=n(5);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(P,h({design:a("Design",e.designDefault),size:a("Size","normal"),text:a("Text",""),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),icon:a("Icon"),iconPosition:a("IconPosition"),onChange:function(e){return t(v({},n("Text"),e))},url:a("Url"),newTab:a("NewTab"),noFollow:a("NoFollow"),onChangeUrl:function(e){return t(v({},n("Url"),e))},onChangeNewTab:function(e){return t(v({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(v({},n("NoFollow"),e))},onChangeIcon:function(e){return t(v({},n("Icon"),e))},isSelected:e.isSelected},e))};y.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(y.Content=function(e){var t=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a};return wp.element.createElement(P.Content,h({design:n("Design",e.designDefault),size:n("Size","normal"),text:n("Text"),icon:n("Icon"),newTab:n("NewTab"),url:n("Url"),noFollow:n("NoFollow"),hoverEffect:n("HoverEffect"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow"),iconPosition:n("IconPosition")},e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=1,j=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,a=C(t).apply(this,arguments),e=!a||"object"!==k(a)&&"function"!=typeof a?S(n):a,x(S(e),"hideUrlPopup",function(){document.body.removeEventListener("click",e.outsideClickHandler),e.setState({openPopup:!1})}),e.state={openPopup:!1},e.buttonInstanceId=E++,e.onButtonClickHandler=e.onButtonClickHandler.bind(S(e)),e.outsideClickHandler=e.outsideClickHandler.bind(S(e)),e.onKeyPressHandler=e.onKeyPressHandler.bind(S(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(t,i["Component"]),n=t,(a=[{key:"onButtonClickHandler",value:function(e){if(this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button"));else if(e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-url-input-popover")||e.target.closest(".ugb-icon-popover")||e.target.closest(".components-popover"))return;this.state.openPopup||document.body.addEventListener("click",this.outsideClickHandler),this.setState({openPopup:!0})}},{key:"outsideClickHandler",value:function(e){e.target.closest(".ugb-button-container-".concat(this.buttonInstanceId))||e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")?this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-svg-icon-placeholder__button")&&this.hideUrlPopup():this.hideUrlPopup()}},{key:"onKeyPressHandler",value:function(e){e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")||this.hideUrlPopup()}},{key:"render",value:function(){var e,t=this.props,n=t.iconButton,a=t.className,r=void 0===a?"":a,l=t.size,u=void 0===l?"normal":l,c=t.text,f=void 0===c?"":c,d=t.onChange,g=void 0===d?function(){}:d,b=t.design,h=void 0===b?"basic":b,v=t.shadow,y=void 0===v?0:v,w=t.iconPosition,k=void 0===w?"":w,O=t.hoverEffect,C=void 0===O?"":O,S=t.ghostToNormalEffect,_=void 0!==S&&S,E=t.url,j=void 0===E?"":E,P=t.newTab,T=void 0===P?"":P,B=t.noFollow,M=void 0===B?"":B,N=t.onChangeUrl,I=void 0===N?null:N,A=t.onChangeNewTab,D=void 0===A?null:A,R=t.onChangeNoFollow,z=void 0===R?null:R,L=t.onChangeIcon,F=void 0===L?null:L,U=t.icon,H=void 0===U?null:U,V=t.isSelected,G=void 0===V?null:V,q=p()([r,"ugb-button","ugb-button--size-".concat(u)],(x(e={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":_},"ugb--hover-effect-".concat(C),"link"!==h&&C),x(e,"ugb--shadow-".concat(y),"basic"===h&&y),x(e,"ugb-button--design-".concat(h),"basic"!==h),x(e,"ugb-button--has-icon",H),x(e,"ugb-button--icon-position-".concat(k),k),e)),W=p()(["ugb-button-container","ugb-button-container-".concat(this.buttonInstanceId),this.props.containerClassName]),K=(null===G||G)&&this.state.openPopup;return wp.element.createElement("div",{className:W,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},wp.element.createElement("a",{className:q},H&&"link"!==h&&wp.element.createElement(i.Fragment,null,!F&&wp.element.createElement(ku,{value:H}),F&&wp.element.createElement(ju,{value:H,onChange:F,isOpen:n?K:null})),!n&&wp.element.createElement(m.RichText,{tagName:"span",className:"link"===h?"":"ugb-button--inner",placeholder:Object(s.__)("Button text",o.i18n),value:f,onChange:g,withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0}),K&&wp.element.createElement(pt,{value:j,onChange:I,newTab:T,noFollow:M,onChangeNewTab:D,onChangeNoFollow:z,disableSuggestions:this.props.disableSuggestions})))}}])&&O(n.prototype,a),r&&O(n,r),t}();j.defaultProps={iconButton:!1,disableSuggestions:!1,containerClassName:"",className:"",size:"normal",text:"",onChange:function(){},design:"basic",shadow:0,iconPosition:"",hoverEffect:"",ghostToNormalEffect:!1,url:"",newTab:"",noFollow:"",onChangeUrl:null,onChangeNewTab:null,onChangeNoFollow:null,onChangeIcon:null,icon:null,isSelected:null},j.Content=function(e){var t,n=e.iconButton,a=e.className,r=void 0===a?"":a,i=e.size,l=void 0===i?"normal":i,o=e.url,s=void 0===o?"":o,u=e.icon,c=void 0===u?null:u,f=e.text,d=void 0===f?"":f,b=e.design,h=void 0===b?"basic":b,v=e.newTab,y=void 0!==v&&v,k=e.shadow,O=void 0===k?0:k,C=e.iconPosition,S=void 0!==C&&C,_=e.hoverEffect,E=void 0===_?"":_,j=e.noFollow,P=void 0!==j&&j,T=e.ghostToNormalEffect,B=void 0!==T&&T,M=e.target,N=void 0===M?"":M,I=e.role,A=void 0===I?"":I,D=e.title,R=void 0===D?"":D,z=p()([r,"ugb-button","ugb-button--size-".concat(l)],(x(t={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":B},"ugb--hover-effect-".concat(E),"link"!==h&&E),x(t,"ugb--shadow-".concat(O),"basic"===h&&O),x(t,"ugb-button--design-".concat(h),"basic"!==h),x(t,"ugb-button--has-icon",c),x(t,"ugb-button--icon-position-".concat(S),S),t)),L=[];y&&(L.push("noopener"),L.push("noreferrer")),P&&L.push("nofollow");var F={};return A&&(F.role=A),wp.element.createElement("div",{className:"ugb-button-container"},(d||n)&&wp.element.createElement("a",w({className:z,href:s,target:N||y?N||"_blank":void 0,rel:e.rel||L.join(" "),title:g()(R)},F),c&&"link"!==h&&wp.element.createElement(ku.Content,{value:c}),!n&&wp.element.createElement(m.RichText.Content,{tagName:"span",className:"link"===h?"":"ugb-button--inner",value:d})))};var P=j,T=[],B={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},M=function(e){return!e.match(/^(sans[-+]serif|serif|monospace|serif-alt)$/i)},N=function(e){if(!T.includes(e)){if(document&&M(e)){var t=document.createElement("link");t.setAttribute("href",function(e){var t=e.replace(/ /g,"+"),n=B[o.locale]?"&subset=".concat(B):"";return"https://fonts.googleapis.com/css?family=".concat(t,":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic").concat(n)}(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),document.querySelector("head").appendChild(t)}T.push(e)}},I=function(e){return M(e)?'"'.concat(e,'", Sans-serif'):e.match(/^serif$/i)?'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif':e.match(/^serif-alt$/i)?'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif':e.match(/^monospace$/i)?'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace':'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},A=function(e){Object.keys(e).filter(function(e){return e.match(/fontfamily/i)}).forEach(function(t){var n=e[t];n&&N(n)})};var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return Object(b.camelCase)(Object(s.sprintf)(e,t))},i=ge(n,r,""),l=a.importantSize,o=void 0!==l&&l,u=a.important,c=void 0===u||u,f=a.inherit,p=void 0===f||f,d=a.inheritMax,g=void 0===d?50:d,m=a.inheritMin,h={},v=i("FontSize"),y=i("TabletFontSize"),w=i("MobileFontSize");if("tablet"!==t&&"mobile"!==t)h={fontFamily:""!==i("FontFamily")?I(i("FontFamily")):void 0,fontSize:""!==v?de("".concat(v).concat(i("FontSizeUnit")||"px"),o):void 0,fontWeight:""!==i("FontWeight")?i("FontWeight"):void 0,textTransform:""!==i("TextTransform")?i("TextTransform"):void 0,letterSpacing:""!==i("LetterSpacing")?"".concat(i("LetterSpacing"),"px"):void 0,lineHeight:""!==i("LineHeight")?"".concat(i("LineHeight")).concat(i("LineHeightUnit")||"em"):void 0};else if("tablet"===t){if(h={lineHeight:""!==i("TabletLineHeight")?"".concat(i("TabletLineHeight")).concat(i("TabletLineHeightUnit")||"em"):void 0},p){var k=me(v,{min:m,max:g});k&&(h.fontSize="".concat(k).concat(i("FontSizeUnit")||"px"))}y&&(h.fontSize=i("TabletFontSize","%s".concat(i("TabletFontSizeUnit")||"px")))}else{if(h={lineHeight:""!==i("MobileLineHeight")?"".concat(i("MobileLineHeight")).concat(i("MobileLineHeightUnit")||"em"):void 0},p){var O=me(v,{min:m,max:g});O&&(h.fontSize="".concat(O).concat(i("FontSizeUnit")||"px"));var C=me(y,{min:m,max:g});C?h.fontSize="".concat(C).concat(i("TabletFontSizeUnit")||"px"):(O||y)&&(h.fontSize=void 0)}w&&(h.fontSize=i("MobileFontSize","%s".concat(i("MobileFontSizeUnit")||"px")))}return c?pe(h):h},R=n(7);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F={},U=function(){F=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(n,!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},function(e){var t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML='<div class="wp-block">'.concat(e.map(function(e){return"<".concat(e,"></").concat(e,">")}).join(),"</div>"),!document||!document.body)return{};document.body.appendChild(t);var n={};return e.forEach(function(e){var a=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(a))}),document.body.removeChild(t),n}(["h1","h2","h3","h4","h5","h6","p"]))};Object(R.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",function(e,t,n,a){return e[".ugb-default-font-size .wp-block ".concat(t)]=D("%s","desktop",a,{important:!0}),F={},e});var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(F).length&&!t||U(),F[e]||F.p||21};Object(r.a)(function(){U()});var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e,t))},a=ge(t,n);return"gradient"===a("BackgroundColorType")||a("BackgroundMediaUrl")||a("TabletBackgroundMediaUrl")||a("MobileBackgroundMediaUrl")};var G=n(2),q=n.n(G);function W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var K=q.a.createElement("circle",{cx:50,cy:50,r:50}),$=function(e){return q.a.createElement("svg",W({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),K)};function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Q=q.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),X=function(e){return q.a.createElement("svg",Y({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),Q)};function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Z=q.a.createElement("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"});var ee={circle:$,square:X,blob1:function(e){return q.a.createElement("svg",J({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),Z)}},te=function(e){var t=Object(R.applyFilters)("stackable.image.shape.svgs",ee);return t[e]?t[e]:null},ne=n(10),ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||ae(e):null};window._stackableCachedImageData={};var ie=function(e,t){var n=t("core").getMedia,a=e?n(e):null;return a&&void 0!==a.id&&(window._stackableCachedImageData[a.id]=a),a},le=function(e){return window._stackableCachedImageData[e]||null};var oe=n(13),se=n.n(oe);n(28),n(22);function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(n,!0).forEach(function(t){fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(function(n,a){return ce({},n,fe({},a,de(e[a],t)))},{})},de=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?"".concat(e," !important"):e},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,l=null!==t?t:function(e){return Object(b.lowerFirst)(e)},o=void 0===e[l(a)]?"":e[l(a)];return""!==o?r?Object(s.sprintf)(r.replace(/%$/,"%%"),o):o:i}},me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,a=void 0===n?Number.NEGATIVE_INFINITY:n,r=t.max,i=void 0===r?Number.POSITIVE_INFINITY:r;if(""!==e){var l=Object(b.clamp)(e,parseFloat(a),parseFloat(i));if(!isNaN(l))return parseFloat(l)!==parseFloat(e)?l:void 0}};var be={facebook:{label:Object(s.__)("Facebook",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg>'},twitter:{label:Object(s.__)("Twitter",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>'},instagram:{label:Object(s.__)("Instagram",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>'},pinterest:{label:Object(s.__)("Pinterest",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:Object(s.__)("LinkedIn",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg>'},youtube:{label:Object(s.__)("YouTube",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></svg>'},email:{label:Object(s.__)("Email",o.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}},he=n(16);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(n,!0).forEach(function(t){we(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=["uniqueClass"],Oe={};function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(i.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),a=Ce(n,2),r=a[0],l=a[1],o=function(t){try{var n=t instanceof Function?t(r):t;l(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}};return[r,o]},_e=function(){return void 0!==he.registerBlockCollection};var xe=function(e,t){var n=Ee(e,t);return n?n.html[0]:""},Ee=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},je=n(17),Pe=n.n(je);n(29);var Te=function(e){return e.match(/(mp4|webm|ogg)$/i)},Be="desktop",Me=function(){return Be},Ne=!1,Ie=function(){return Ne};function Ae(){return(Ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(n,!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a},r=Object.keys(be).reduce(function(e,r){var i;return Re({},e,(ze(i={},"".concat(r,"Url"),a("".concat(r,"Url"))),ze(i,"onChange".concat(Object(b.upperFirst)(r),"Url"),function(e){return t(ze({},n("".concat(r,"Url")),e))}),i))},{});return wp.element.createElement(Ke,Ae({design:a("Design",e.designDefault),size:a("Size","normal"),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),useSocialColors:a("UseSocialColors"),newTab:a("NewTab"),onChangeNewTab:function(e){return t(ze({},n("NewTab"),e))},isSelected:e.isSelected},r,e))};Le.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(Le.Content=function(e){var t=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a},a=Object.keys(be).reduce(function(e,t){return Re({},e,ze({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement(Ke.Content,Ae({design:n("Design",e.designDefault),size:n("Size","normal"),newTab:n("NewTab"),hoverEffect:n("HoverEffect"),useSocialColors:n("UseSocialColors"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow")},a,e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(n,!0).forEach(function(t){He(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ge=function(e){return wp.element.createElement(i.Fragment,null,Object.keys(be).map(function(t){var n=p()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return(!0===e["show".concat(Object(b.upperFirst)(t))]||e["".concat(t,"Url")]&&!1!==e["show".concat(Object(b.upperFirst)(t))])&&wp.element.createElement(P,Ve({key:t,iconButton:!0,className:n,rel:"noopener noreferrer nofollow",icon:be[t].icon,url:e["".concat(t,"Url")],onChangeUrl:function(n){var a=n;"email"===t&&a.match(/^[^:]+@./)&&(a="mailto:".concat(a)),e["onChange".concat(Object(b.upperFirst)(t),"Url")](a)},onChangeNoFollow:!1,disableSuggestions:!0},e))}))},qe=Object.keys(be).reduce(function(e,t){var n;return Ue({},e,(He(n={},"".concat(t,"Url"),""),He(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});Ge.defaultProps=Ue({useSocialColors:!0},qe),Ge.Content=function(e){return wp.element.createElement(i.Fragment,null,Object.keys(be).map(function(t){var n=p()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return!1!==e["show".concat(Object(b.upperFirst)(t))]&&wp.element.createElement(P.Content,Ve({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:be[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var We=Object.keys(be).reduce(function(e,t){var n;return Ue({},e,(He(n={},"".concat(t,"Url"),""),He(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});Ge.Content.defaultProps=Ue({useSocialColors:!0},We);var Ke=Ge;function $e(){return($e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ye=q.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Qe=q.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Xe=q.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),Je=function(e){return q.a.createElement("svg",$e({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Ye,Qe,Xe)};function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(n,!0).forEach(function(t){tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt=function(e){var t=e.imageID,n=e.imageURL,a=e.onRemove,r=e.className,i=e.allowedTypes,o=e.render,s=e.hasRemove,u=e.style,c=p()([r,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),f=et({},u,{backgroundImage:n&&!o?"url(".concat(n,")"):void 0});return wp.element.createElement(m.MediaUpload,{onSelect:function(t){var n=t.url,a=t.width,r=t.height,i=e.imageSize||"full";t.sizes&&t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChange(et({},t,{url:n,width:a,height:r}))},allowedTypes:i,value:t,render:function(e){return n&&o?wp.element.createElement("div",{className:c,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:f,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&s&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(l.Dashicon,{icon:"no"})),o):wp.element.createElement("div",{className:c,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:f,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&s&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(l.Dashicon,{icon:"no"})),!n&&wp.element.createElement(Je,null))}})};nt.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rt=function(e){return wp.element.createElement(l.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(m.URLInput,at({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(b.omit)(e,["label","help"]))))};rt.defaultProps={label:Object(s.__)("URL",o.i18n),help:null,value:"",onChange:function(){}};var it=rt;function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ut=Object(i.createElement)(function(e){var t=e.className,n=e.isPressed,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach(function(t){lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},ot(e,["className","isPressed"]),{className:p()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":"true",focusable:"false"});return Object(i.createElement)("svg",a)},{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(i.createElement)(function(e){return Object(i.createElement)("path",e)},{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"})),ct=[{id:"opensInNewTab",title:Object(s.__)("Opens in new tab",o.i18n)},{id:"noFollowLink",title:Object(s.__)("Nofollow link",o.i18n)}],ft=function(e){var t=e.value,n={url:t,opensInNewTab:e.newTab,noFollowLink:e.noFollow};if(!e.onChange&&!e.onChangeNewTab&&!e.onChangeNoFollow)return null;var a=p()(["ugb-url-input-popover"]),r=ct.filter(function(t){switch(t.id){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;default:return!0}});return wp.element.createElement(l.Popover,{className:a,focusOnMount:!1,position:e.position},wp.element.createElement(m.__experimentalLinkControl,{value:n,settings:r,showSuggestions:!e.disableSuggestions,onChange:function(t){var a={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow},r=Object(b.omitBy)(Object(b.omit)(t,"id","title","type"),function(e,t){return n[t]===e});Object(b.keys)(r).map(function(e){return a[e](r[e])})}},wp.element.createElement("form",null,wp.element.createElement("input",{placeholder:Object(s.__)("Search or type url",o.i18n),value:t}),wp.element.createElement(l.Button,{icon:ut,type:"submit"}))))};ft.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,onChangeNewTab:null,onChangeNoFollow:null};var pt=ft,dt=n(9);function gt(){return(gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=Object(s.__)("(current %s: %s)",o.i18n),vt=Object(dt.compose)([m.withColorContext,Object(dt.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.disableCustomColors,n=e.label,a=e.onChange,r=e.value,u=e.className,c=void 0===u?"":u,f=e.colors.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(n,!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{name:e.name||e.fallback||e.color||Object(s.__)("Untitled Color",o.i18n)})}),d=Object(m.getColorObjectByColorValue)(f,r),g=d&&d.name,b=Object(s.sprintf)(ht,n.toLowerCase(),g||r),h=wp.element.createElement(i.Fragment,null,n,r&&wp.element.createElement(l.ColorIndicator,{colorValue:r,"aria-label":b}));return wp.element.createElement(l.BaseControl,{className:p()([c,"editor-color-palette-control"]),id:"editor-color-palette-control",label:h},wp.element.createElement(l.ColorPalette,gt({className:"editor-color-palette-control__color-palette",value:r,onChange:function(e){var t=Object(m.getColorObjectByColorValue)(f,e);a(Object(R.applyFilters)("stackable.color-palette-control.change",e,t))}},{colors:f,disableCustomColors:t})))}),yt=n(8),wt=n.n(yt);function kt(e){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ot(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ct(e,t){return!t||"object"!==kt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(dt.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ct(this,St(n).apply(this,arguments))}var a,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_t(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidMount",value:function(){A(this.props.attributes)}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&Ot(a.prototype,r),l&&Ot(a,l),n}(),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t,"defaultProps",{attributes:{}}),n},"withGoogleFont");function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(){return(Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function jt(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(dt.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){var e,t,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,(e=!(a=Pt(n).apply(this,arguments))||"object"!==xt(a)&&"function"!=typeof a?Tt(t):a).setAttributes=e.setAttributes.bind(Tt(e)),e}var a,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidUpdate",value:function(e){Object(b.isEqual)(e.attributes,this.props.attributes)||Object(R.doAction)("stackable.setAttributes.after")}},{key:"setAttributes",value:function(e){var t=this.props.blockName,n=Object(R.applyFilters)("stackable.setAttributes",e,this.props);n=Object(R.applyFilters)("stackable.".concat(t,".setAttributes"),n,this.props),this.props.setAttributes(n)}},{key:"render",value:function(){return wp.element.createElement(e,Et({},this.props,{setAttributes:this.setAttributes}))}}])&&jt(a.prototype,r),l&&jt(a,l),n}(),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t,"propTypes",{setAttributes:wt.a.func.isRequired}),n},"withSetAttributeHook");function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function It(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function At(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Dt(e,t){return!t||"object"!==Mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rt(e){return(Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zt(e,t){return(zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(dt.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Dt(this,Rt(n).apply(this,arguments))}var a,r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zt(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=e.clientId,r="ugb-".concat(a.substring(0,7));void 0!==t.uniqueClass&&t.uniqueClass===r||n({uniqueClass:r})}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&At(a.prototype,r),l&&At(a,l),n}(),Lt(t,"defaultProps",{attributes:{},clientId:"",setAttributes:function(){}}),n},"withUniqueClass");Object(R.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",function(e){return[].concat(It(e),["uniqueClass"])}),Object(R.addFilter)("stackable.block.attributes","stackable/unique-class",function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(n,!0).forEach(function(t){Lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{uniqueClass:{type:"string",default:""}})});var Ft=function(e){return document.querySelector(".ugb-panel--".concat(e))},Ut=function(e){var t=e.closest(".ugb-inspector-panel-controls");if(!t)return null;var n=t.getAttribute("class").match(/ugb-panel-(\w+)/);if(n){var a=n[1];return document.querySelector(".ugb-tab--".concat(a))}return null},Ht=function(e){e&&(e.classList.contains("is-active")||e.click())},Vt=function(e){if(e){if(!e.classList.contains("is-opened")){var t=e.querySelector("button");t&&t.click()}Gt(e)}},Gt=function(e){var t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar"),a=e.getBoundingClientRect().top+2;if(a-=t?t.getBoundingClientRect().height:0,a-=n.getBoundingClientRect().top,!_e()){var r=document.querySelector(".edit-post-sidebar-header");a-=r?r.getBoundingClientRect().height-1:0}document.querySelector(".edit-post-sidebar").scrollTop+=a};function qt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $t=!1,Yt={".ugb-top-separator":"top-separator",".ugb-bottom-separator":"bottom-separator",".ugb-inner-block":"column-background",".ugb-block-title":"block-title",".ugb-block-description":"block-description",".ugb--has-block-background":"block-background"},Qt={},Xt=[".block-editor-rich-text__editable",".editor-rich-text__editable","svg","img","figure",".ugb-button",'[role="button"]',".ugb-block-content > * > *",".ugb-block-content > *",".ugb-content-wrapper",".ugb-top-separator",".ugb-bottom-separator",".ugb-inner-block",".ugb-main-block"],Jt=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(n,!0).forEach(function(t){Kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Qt[e],{},Yt)};Object(r.a)(function(){if(!$t&&($t=!0,Element.prototype.matches)){var e=Object(R.applyFilters)("stackable.click-open-inspector.listener-override",{});document.body.addEventListener("dblclick",function(t){var n,a,r=(n=t.target,(a=n.closest("[data-type]"))&&a.getAttribute("data-type").match(/^ugb\//i)?a.getAttribute("data-type").replace(/^ugb\//i,""):"");if(r){var i=Jt(r);if(i){var l=[];Object.keys(e).some(function(n){return!!t.target.closest(n)&&(l=e[n],!0)}),[].concat(qt(l),Xt).some(function(e){var n=t.target.closest(e);return!!n&&Object.keys(i).some(function(e){return!!n.matches(e)&&function(e){var t=Ft(e);if(t){var n=Ut(t);Ht(n),Vt(t)}if(!t){[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some(function(n){var a=document.querySelector(n);return Ht(a),(t=Ft(e))&&Vt(t),!!t})}return t}(i[e])})})}}})}});function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function en(){return(en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function tn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function nn(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function an(e){return(an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e){return Object(dt.createHigherOrderComponent)(function(t){var n,a;return a=n=function(n){function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),nn(this,an(a).apply(this,arguments))}var r,l,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rn(e,t)}(a,i["Component"]),r=a,(l=[{key:"render",value:function(){var n=this.props.className.match(/ugb--help-tip/),a=p()([this.props.className],ln({},"ugb--help-tip-".concat(e),!n));return wp.element.createElement(t,en({},this.props,{className:a}))}}])&&tn(r.prototype,l),o&&tn(r,o),a}(),ln(n,"defaultProps",{className:""}),a},"withHelpTip")};function sn(){return(sn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var un=function(e){return wp.element.createElement(l.SelectControl,sn({},e,{options:[{value:"",label:Object(s.__)("None",o.i18n)},{value:"normal",label:Object(s.__)("Normal",o.i18n)},{value:"multiply",label:Object(s.__)("Multiply",o.i18n)},{value:"screen",label:Object(s.__)("Screen",o.i18n)},{value:"overlay",label:Object(s.__)("Overlay",o.i18n)},{value:"darken",label:Object(s.__)("Darken",o.i18n)},{value:"lighten",label:Object(s.__)("Lighten",o.i18n)},{value:"color-dodge",label:Object(s.__)("Color Dodge",o.i18n)},{value:"color-burn",label:Object(s.__)("Color Burn",o.i18n)},{value:"hard-light",label:Object(s.__)("Hard Light",o.i18n)},{value:"soft-light",label:Object(s.__)("Soft Light",o.i18n)},{value:"difference",label:Object(s.__)("Difference",o.i18n)},{value:"exclusion",label:Object(s.__)("Exclusion",o.i18n)},{value:"hue",label:Object(s.__)("Hue",o.i18n)},{value:"saturation",label:Object(s.__)("Saturation",o.i18n)},{value:"color",label:Object(s.__)("Color",o.i18n)},{value:"luminosity",label:Object(s.__)("Luminosity",o.i18n)},{value:"initial",label:Object(s.__)("Initial",o.i18n)},{value:"inherit",label:Object(s.__)("Inherit",o.i18n)},{value:"unset",label:Object(s.__)("Unset",o.i18n)}]}))};un.defaultProps={label:Object(s.__)("Mix Blend Mode",o.i18n),help:Object(s.__)("Not supported in all browsers.",o.i18n)};var cn=Object(dt.compose)(on("background-blend-mode"))(un);function fn(){return(fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pn=q.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),dn=q.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),gn=q.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),mn=function(e){return q.a.createElement("svg",fn({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),pn,dn,gn)},bn=function(e){var t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=function(){e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return wp.element.createElement("div",{className:"ugb-image-control"},wp.element.createElement(l.BaseControl,{help:e.help},wp.element.createElement(ia,{label:e.label,screens:e.screens}),wp.element.createElement(m.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:function(a){return wp.element.createElement(i.Fragment,null,e.imageURL&&wp.element.createElement("div",{className:"ugb-image-preview-wrapper"},wp.element.createElement("button",{className:"ugb-image-preview-remove",onClick:n},wp.element.createElement(l.Dashicon,{icon:"no"})),"video"===t&&wp.element.createElement("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()}}),"image"===t&&wp.element.createElement("img",{className:"ugb-image-preview",src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},alt:Object(s.__)("preview",o.i18n)})),!e.imageURL&&wp.element.createElement("div",{className:"ugb-placeholder",onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},role:"button",tabIndex:0},wp.element.createElement(mn,null)))}})))};bn.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var hn=bn;function vn(){return(vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yn=function(e){return wp.element.createElement(l.TextareaControl,vn({},e,{help:wp.element.createElement(i.Fragment,null,wp.element.createElement(l.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(s.__)("Describe the purpose of the image",o.i18n)),Object(s.__)("Leave empty if the image is purely decorative.",o.i18n))}))};yn.defaultProps={label:Object(s.__)("Alt Text (Alternative Text)",o.i18n)};var wn=yn,kn=n(35),On=n.n(kn),Cn=n(36),Sn=n.n(Cn),_n=n(37),xn=n.n(_n),En=n(38),jn=n.n(En);function Pn(){return(Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Tn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Bn=function(e){return wp.element.createElement(i.Fragment,null,wp.element.createElement(ql,Pn({},e,{className:p()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(Tn(e.hasDefault?[{label:Object(s.__)("Default",o.i18n),value:"",image:On.a}]:[]),[{label:Object(s.__)("Square",o.i18n),value:"square",image:Sn.a},{label:Object(s.__)("Circle",o.i18n),value:"circle",image:xn.a},{label:Object(s.sprintf)(Object(s.__)("Blob %s",o.i18n),1),value:"blob1",image:jn.a}],Tn(Object(R.applyFilters)("stackable.image.control.shapes",[])))})),o.showProNotice&&wp.element.createElement(Qu,{type:"image"}))};Bn.defaultProps={className:"",label:Object(s.__)("Shape",o.i18n),selected:"",hasDefault:!0};var Mn=Bn,Nn=function(e){var t=e.imageData?re(e.imageData,e.imageSize||"full"):null,n=null!==e.isSquareImage?e.isSquareImage:!!t&&t.width===t.height;return wp.element.createElement(i.Fragment,null,e.onChangeShape&&wp.element.createElement(Mn,{selected:e.shape,onChange:e.onChangeShape}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Flip Shape Horizontally",o.i18n),checked:e.shapeFlipX,onChange:e.onChangeShapeFlipX}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Flip Shape Vertically",o.i18n),checked:e.shapeFlipY,onChange:e.onChangeShapeFlipY}),e.onChangeShapeStretch&&!["","square"].includes(e.shape)&&!n&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Stretch Shape Mask",o.i18n),checked:e.shapeStretch,onChange:e.onChangeShapeStretch}))};Nn.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var In=Object(dt.compose)([Object(ne.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(Nn);function An(){return(An=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Dn(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Rn=function(e){var t=e.imageSizes,n=e.value,a=e.className,r=Dn(e,["imageSizes","value","className"]),i=function(e){return Object(b.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}(t);return Object(b.isEmpty)(i)?null:wp.element.createElement(l.SelectControl,An({},r,{value:n||"large",options:i,className:p()(a,["ugb--help-tip-image-size"])}))};Rn.defaultProps={className:"",label:Object(s.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var zn=Object(dt.compose)([Object(ne.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(Rn),Ln=function(e){var t=e.label,n=e.setAttributes,a=e.enablePaddingTop,r=e.enablePaddingRight,l=e.enablePaddingBottom,o=e.enablePaddingLeft,s=e.attributes,u=s.columnPaddingTop,c=void 0===u?"":u,f=s.columnPaddingBottom,p=void 0===f?"":f,d=s.columnPaddingRight,g=void 0===d?"":d,m=s.columnPaddingLeft,b=void 0===m?"":m,h=s.columnPaddingUnit,v=void 0===h?"px":h,y=s.tabletColumnPaddingTop,w=void 0===y?"":y,k=s.tabletColumnPaddingBottom,O=void 0===k?"":k,C=s.tabletColumnPaddingRight,S=void 0===C?"":C,_=s.tabletColumnPaddingLeft,x=void 0===_?"":_,E=s.tabletColumnPaddingUnit,j=void 0===E?"px":E,P=s.mobileColumnPaddingTop,T=void 0===P?"":P,B=s.mobileColumnPaddingBottom,M=void 0===B?"":B,N=s.mobileColumnPaddingRight,I=void 0===N?"":N,A=s.mobileColumnPaddingLeft,D=void 0===A?"":A,R=s.mobileColumnPaddingUnit,z=void 0===R?"px":R;return wp.element.createElement(i.Fragment,null,wp.element.createElement(du,{label:t,className:"ugb--help-tip-advanced-column-paddings",defaultLocked:!0,min:[0,0,0],max:[500,30,100],step:1,valueDesktop:{top:c,right:g,bottom:p,left:b},valueDesktopUnit:v,onChangeDesktop:function(e){n({columnPaddingTop:e.top,columnPaddingRight:e.right,columnPaddingBottom:e.bottom,columnPaddingLeft:e.left})},onChangeDesktopUnit:function(e){return n({columnPaddingUnit:e})},valueTablet:{top:w,right:O,bottom:S,left:x},valueTabletUnit:j,onChangeTablet:function(e){n({tabletColumnPaddingTop:e.top,tabletColumnPaddingBottom:e.right,tabletColumnPaddingRight:e.bottom,tabletColumnPaddingLeft:e.left})},onChangeTabletUnit:function(e){return n({tabletColumnPaddingUnit:e})},valueMobile:{top:T,right:M,bottom:I,left:D},valueMobileUnit:z,onChangeMobile:function(e){n({mobileColumnPaddingTop:e.top,mobileColumnPaddingBottom:e.right,mobileColumnPaddingRight:e.bottom,mobileColumnPaddingLeft:e.left})},onChangeMobileUnit:function(e){return n({mobileColumnPaddingUnit:e})},enableTop:a,enableRight:r,enableBottom:l,enableLeft:o}))};Ln.defaultProps={setAttributes:function(){},label:Object(s.__)("Column Paddings",o.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};function Fn(){return(Fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Un=q.a.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7v2zM4 6v8h16V6H4z"}),Hn=function(e){return q.a.createElement("svg",Fn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Un)};function Vn(){return(Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gn=q.a.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm0 2v15h8V4H8z"}),qn=function(e){return q.a.createElement("svg",Vn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Gn)};function Wn(){return(Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Kn=q.a.createElement("path",{d:"M6 4v15h12V4H6zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z"}),$n=function(e){return q.a.createElement("svg",Wn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Kn)};function Yn(e){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Xn(e,t){return!t||"object"!==Yn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zn(e,t){return(Zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ea={desktop:wp.element.createElement(Hn,null),tablet:wp.element.createElement($n,null),mobile:wp.element.createElement(qn,null)},ta={desktop:Object(s.__)("Desktop",o.i18n),tablet:Object(s.__)("Tablet",o.i18n),mobile:Object(s.__)("Mobile",o.i18n)},na=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Xn(this,Jn(t).apply(this,arguments))).state={screen:Me(),isScreenPickerOpen:Ie(),isMouseOver:!1},e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zn(e,t)}(t,i["Component"]),n=t,(a=[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),function(e){Be=e}(e),Object(R.doAction)("stackable.responsive-toggle.screen.change",e),this.setState({isMouseOver:e})}},{key:"onOtherScreenChange",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e})}},{key:"onOtherScreenOpen",value:function(){this.setState({isScreenPickerOpen:!0})}},{key:"onOtherScreenClose",value:function(){this.setState({isScreenPickerOpen:!1})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(R.addAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e),this.onOtherScreenChange.bind(this)),Object(R.addAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e),this.onOtherScreenOpen.bind(this)),Object(R.addAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e),this.onOtherScreenClose.bind(this))}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(R.removeAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e)),Object(R.removeAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e)),Object(R.removeAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e))}},{key:"render",value:function(){var e=this;return wp.element.createElement("div",{className:"ugb-base-control-multi-label__responsive"},this.props.screens.length>1&&this.props.screens.map(function(t,n){return n>0&&!e.state.isScreenPickerOpen&&!e.state.isMouseOver?null:wp.element.createElement("div",{key:n},wp.element.createElement(l.Button,{className:e.state.screen===t?"is-active":"",onClick:function(){return e.onChangeScreen(t)},icon:ea[t],showTooltip:!1,label:ta[t],"data-screen":t,onMouseEnter:function(){return e.setState({isMouseOver:t})},onMouseLeave:function(){return e.setState({isMouseOver:!1})}}),e.state.isMouseOver===t&&wp.element.createElement(l.Popover,{focusOnMount:!1,position:"bottom center",className:"components-tooltip","aria-hidden":"true"},ta[t]))}))}}])&&Qn(n.prototype,a),r&&Qn(n,r),t}();na.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var aa=Object(dt.withInstanceId)(na),ra=function(e){return wp.element.createElement("div",{className:"ugb-base-control-multi-label"},wp.element.createElement("div",{className:"ugb-base-control-multi-label__label components-base-control__label"},e.label),wp.element.createElement(aa,{screens:e.screens,onChangeScreen:e.onChangeScreen}),wp.element.createElement("div",{className:"ugb-base-control-multi-label__units"},e.units.length>1&&e.units.map(function(t,n){return wp.element.createElement("button",{key:n,className:e.unit===t?"is-active":"",onClick:function(){return e.onChangeUnit(t)}},t)}),e.afterButton))};ra.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var ia=ra;function la(){return(la=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function oa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function sa(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var ua=!!l.__experimentalNumberControl,ca=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,r=sa(e,["allowReset","withInputField","isShiftStepEnabled"]),u=oa(Object(i.useState)(""===e.value||isNaN(e.value)?"":e.value),2),c=u[0],f=u[1],d=function(t){if(f(t),!isNaN(t)){var n=parseFloat(t);if(!isNaN(n))return void e.onChange(Object(b.clamp)(n,e.min,e.max))}e.onChange(e.resetFallbackValue)},g=p()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===c}),m=""===c,h=e.initialPosition||e.placeholder||"",v=function(e,t,n){var a=(e-t)/(n-t)*100;return"".concat(Object(b.clamp)(a,0,100),"%")}((m?h:c)||e.sliderMin||e.min||0,e.sliderMin||e.min||0,e.sliderMax||e.max||100);return wp.element.createElement("div",{className:g,style:{"--ugb-advanced-range-control--width":v}},wp.element.createElement(l.RangeControl,la({},r,{initialPosition:"",onChange:d,withInputField:!1,allowReset:!1,max:null!==e.sliderMax?e.sliderMax:e.max,min:null!==e.sliderMin?e.sliderMin:e.min})),n&&ua&&wp.element.createElement(l.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:a,max:e.max,min:e.min,onChange:d,onBlur:function(){if(!isNaN(c)){var t=parseFloat(c);if(!isNaN(t))return void f(Object(b.clamp)(t,e.min,e.max))}f(e.resetFallbackValue)},shiftStep:e.shiftStep,step:e.step,value:c,placeholder:null!==e.placeholder?e.placeholder:h}),t&&wp.element.createElement(l.Button,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:function(){f(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},Object(s.__)("Reset",o.i18n)))};ca.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,initialPosition:0,onChange:function(){}};var fa=ca;function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ma=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(n,!0).forEach(function(t){ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(b.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","placeholder","initialPosition"])),n=e.units.indexOf(e.unit)<0?0:e.units.indexOf(e.unit);Array.isArray(e.min)&&(t.min=e.min[n]),Array.isArray(e.max)&&(t.max=e.max[n]),Array.isArray(e.step)&&(t.step=e.step[n]),t.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,t.placeholder=e.placeholder;var a=e.placeholder;if(Array.isArray(a)||"object"!==pa(a))Array.isArray(a)&&"desktop"===e.screen?(t.placeholder=a[n]||"",t.initialPosition=a[n]||"",Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||"")):e.screen&&"desktop"!==e.screen&&(t.placeholder="",t.initialPosition="");else{var r=Me()||"desktop";a=void 0!==a[r]?a[r]:a[Object.keys(a)[0]],Array.isArray(a)?(t.placeholder=a[n]||"",t.initialPosition=a[n]||""):(t.placeholder=a||"",t.initialPosition=a||""),Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||""),t.initialPosition=function(e){return"string"==typeof e&&""!==e&&e.match(/^[\d.]+$/)?e.includes(".")?parseFloat(e):parseInt(e,10):e}(t.initialPosition)}var i=p()(["ugb-advanced-range-control",e.className]);return wp.element.createElement(l.BaseControl,{help:e.help,className:i},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(fa,t))};ma.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:""};var ba=ma,ha=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-select-control",e.className)},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(l.SelectControl,Object(b.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};ha.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var va=ha,ya=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-text-control",e.className)},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(l.TextControl,Object(b.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};ya.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var wa=n(39),ka=n.n(wa);function Oa(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _a(e,t){return(_a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ea=function(e){return!(!e.length||"object"!==xa(e[0].options))},ja=function(e,t){if(!t.length)return e;if(!Ea(t)){var n=t.filter(function(t){return t.value===e});return n.length?n[0].label:e}var a=t.map(function(t){return{title:t.title,options:t.options.filter(function(t){return t.value===e})}}).filter(function(e){return e.options.length>0});return a.length?a[0].options[0].label:e},Pa=function(e){return e.value},Ta=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},Ba=function(e){return e.options},Ma=function(){return!0},Na=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Ca(t).apply(this,arguments))||"object"!==xa(a)&&"function"!=typeof a?Sa(n):a).state={value:e.props.value,label:e.props.value?ja(e.props.value,e.props.options):e.props.value,suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(Sa(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(Sa(e)),e.onChange=e.onChange.bind(Sa(e)),e.onFocus=e.onFocus.bind(Sa(e)),e.autosuggestDiv=Object(i.createRef)(),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_a(e,t)}(t,i["Component"]),n=t,(a=[{key:"onChange",value:function(e,t){var n=t.newValue;this.props.onChange(n),this.setState({value:n,label:ja(n,this.props.options)})}},{key:"onFocus",value:function(){var e=this;this.props.highlightValueOnFocus&&setTimeout(function(){var t=e.autosuggestDiv.current.querySelector('[data-value="'.concat(e.state.value,'"]'));t&&t.scrollIntoView()},0)}},{key:"onSuggestionsFetchRequested",value:function(e){var t=e.value,n=e.reason;if("input-focused"!==n&&"suggestion-selected"!==n){var a=function(e,t){var n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;var a=new RegExp(n,"i");return Ea(t)?t.map(function(e){return{title:e.title,options:e.options.filter(function(e){return a.test(e.label)||a.test(e.value)})}}).filter(function(e){return e.options.length>0}):t.filter(function(e){return a.test(e.label)||a.test(e.value)})}(t,this.props.options);this.setState({suggestions:a,isEmpty:""!==t.trim()&&0===a.length})}else this.setState({suggestions:this.props.options,isEmpty:!1})}},{key:"onSuggestionsClearRequested",value:function(){this.setState({suggestions:[]})}},{key:"render",value:function(){var e=this,t=this.state,n=t.label,a=t.suggestions,r={placeholder:"",value:n,onChange:this.onChange,onFocus:this.onFocus,type:"search"};return wp.element.createElement(l.BaseControl,{help:this.props.help,className:p()("ugb-advanced-autosuggest-control",this.props.className)},wp.element.createElement(ia,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(ka.a,{multiSection:Ea(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:Pa,renderSuggestion:function(t){return wp.element.createElement("div",{className:"ugb-autosuggest-option","data-value":t.value,id:"ugb-autosuggest-option--".concat(t.id||Object(b.kebabCase)(t.value))},e.props.renderOption?e.props.renderOption(t):t.label)},renderSectionTitle:Ta,getSectionSuggestions:Ba,shouldRenderSuggestions:Ma,inputProps:r}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}])&&Oa(n.prototype,a),r&&Oa(n,r),t}();Na.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(s.__)("No matches found",o.i18n),renderOption:null,highlightValueOnFocus:!1};var Ia=Na;function Aa(){return(Aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Da=q.a.createElement("path",{d:"M3 15.1h14v2H3zM9.4 2.9h1.2v8.6l1.3-1.3 1.1.8-3 3-3-3 1.1-.8 1.3 1.3V2.9z"}),Ra=function(e){return q.a.createElement("svg",Aa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Da)};function za(){return(za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var La=q.a.createElement("path",{d:"M9 3h2v14H9zM1.6 10.6V9.4h3.9L4.2 8.1 5 7l3 3-3 3-.8-1.1 1.3-1.3H1.6zM18.4 9.4v1.2h-3.9l1.3 1.3L15 13l-3-3 3-3 .8 1.1-1.3 1.3h3.9z"}),Fa=function(e){return q.a.createElement("svg",za({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),La)};function Ua(){return(Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ha=q.a.createElement("path",{d:"M2.9 3h2v14h-2zM17.1 9.4v1.2H8.5l1.3 1.3L9 13l-3-3 3-3 .8 1.1-1.3 1.3h8.6z"}),Va=function(e){return q.a.createElement("svg",Ua({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ha)};function Ga(){return(Ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qa=q.a.createElement("path",{d:"M15.1 3h2v14h-2zM2.9 10.6V9.4h8.6l-1.3-1.3L11 7l3 3-3 3-.8-1.1 1.3-1.3H2.9z"}),Wa=function(e){return q.a.createElement("svg",Ga({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),qa)};function Ka(){return(Ka=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var $a=q.a.createElement("path",{d:"M3 16.4h14v2H3zM3 1.6h14v2H3zM10.6 12.8V7.2l1.3 1.3 1.1-.8-3-3-3 3 1.1.8 1.3-1.3v5.6l-1.3-1.3-1.1.8 3 3 3-3-1.1-.8z"}),Ya=function(e){return q.a.createElement("svg",Ka({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),$a)};function Qa(){return(Qa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Xa=q.a.createElement("path",{d:"M3 3h14v2H3zM10.6 17.1H9.4V8.4L8.1 9.7 7 9l3-3 3 3-1.1.8-1.3-1.3v8.6z"}),Ja=function(e){return q.a.createElement("svg",Qa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Xa)};function Za(){return(Za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var er=q.a.createElement("path",{d:"M3 9h14v2H3zM10.6 18.4H9.4v-3.9l-1.3 1.3L7 15l3-3 3 3-1.1.8-1.3-1.3v3.9zM9.4 1.6h1.2v3.9l1.3-1.3L13 5l-3 3-3-3 1.1-.8 1.3 1.3V1.6z"}),tr=function(e){return q.a.createElement("svg",Za({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),er)};function nr(){return(nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir=[{value:"flex-start",title:Object(s.__)("Align Left",o.i18n),icon:wp.element.createElement(Va,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(Fa,null)},{value:"flex-end",title:Object(s.__)("Align Right",o.i18n),icon:wp.element.createElement(Wa,null)}],lr=[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(Ja,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(tr,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(Ra,null)},{value:"stretch",title:Object(s.__)("Stretch",o.i18n),icon:wp.element.createElement(Ya,null)}],or={"flex-horizontal":ir,"flex-vertical":[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(Ja,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(tr,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(Ra,null)}],"flex-vertical-with-stretch":lr},sr=function(e){var t="string"==typeof e.controls?or[e.controls]:e.controls,n=p()({"ugb-toolbar--full-width":e.fullwidth,"ugb-toolbar--multiline":e.multiline});return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-toolbar-control",e.className)},wp.element.createElement(ia,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(l.ButtonGroup,{children:t.map(function(t,n){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(n,!0).forEach(function(t){rr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{onClick:function(){return e.onChange(t.value!==e.value?t.value:"")},isPrimary:e.value===t.value,isSmall:e.isSmall,children:t.icon?null:t.custom||wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)});return wp.element.createElement(l.Button,nr({key:n},a))}),className:n}))};sr.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1};var ur=sr;function cr(){return(cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fr=function(e){var t=e.placeholder,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10};return"string"==typeof t&&(t=[t,n(t)]),wp.element.createElement(ba,cr({},e,{placeholder:t,onChangeUnit:function(t){""!==e.value&&("em"===t||"rem"===t?e.onChange(n(e.value)):"px"===t&&e.onChange(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value))),e.onChangeUnit(t)}}))};fr.defaultProps={label:Object(s.__)("Font Size",o.i18n),value:"",onChange:function(){},unit:"px",onChangeUnit:function(){},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};var pr=fr;function dr(){return(dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var gr=n(40).map(function(e){return{label:e.family,value:e.family}}),mr=function(e){var t=Object(i.useMemo)(function(){return Object(R.applyFilters)("stackable.font-family-control.options",[{id:"system-fonts",title:Object(s.__)("System Fonts",o.i18n),options:[{label:Object(s.__)("Sans-Serif",o.i18n),value:"Sans-Serif"},{label:Object(s.__)("Serif",o.i18n),value:"Serif"},{label:Object(s.__)("Serif Alternative",o.i18n),value:"Serif-Alt"},{label:Object(s.__)("Monospace",o.i18n),value:"Monospace"}]},{id:"google-fonts",title:Object(s.__)("Google Fonts",o.i18n),options:gr}])},[]);return wp.element.createElement(Ia,dr({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){gr.some(function(e){return e.value===t&&(N(t),!0)}),e.onChange(t)}}))};mr.defaultProps={onChange:function(){},label:Object(s.__)("Font Family",o.i18n),value:""};var br=mr;function hr(){return(hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){yr(e,t,n[t])})}return e}function kr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Cr(e,t,n){return t&&Or(e.prototype,t),n&&Or(e,n),e}function Sr(e){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _r(e){return(_r="function"==typeof Symbol&&"symbol"===Sr(Symbol.iterator)?function(e){return Sr(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Sr(e)})(e)}function xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Er(e,t){return!t||"object"!==_r(t)&&"function"!=typeof t?xr(e):t}function jr(e){return(jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pr(e,t){return(Pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pr(e,t)}var Br=n(23),Mr=n(15),Nr=n.n(Mr);function Ir(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ar=function(){function e(){kr(this,e),yr(this,"refs",{})}return Cr(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Dr)}}]),e}();function Dr(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Rr(e,t){return Object.keys(e).reduce(function(n,a){return-1===t.indexOf(a)&&(n[a]=e[a]),n},{})}var zr={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Lr=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function Fr(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function Ur(e,t){e.style["".concat(Lr,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Hr(e,t){e.style["".concat(Lr,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function Vr(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Gr(e,t,n){return Math.max(e,Math.min(n,t))}function qr(e){return"px"===e.substr(-2)?parseFloat(e):0}function Wr(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Kr(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function $r(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var a={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?a:Yr(e.parentNode,t,a)}}function Qr(e){var t=e.lockOffset,n=e.width,a=e.height,r=t,i=t,l="px";if("string"==typeof t){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Nr()(null!==o,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=parseFloat(t),i=parseFloat(t),l=o[1]}return Nr()(isFinite(r)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===l&&(r=r*n/100,i=i*a/100),{x:r,y:i}}function Xr(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:Xr(e.parentNode):null}var Jr=27,Zr=32,ei=37,ti=38,ni=39,ai=40,ri={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ii(e){return null!=e.sortableHandle}var li=function(){function e(t,n){kr(this,e),this.container=t,this.onScrollCallback=n}return Cr(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,a=e.minTranslate,r=e.maxTranslate,i=e.width,l=e.height,o={x:0,y:0},s={x:1,y:1},u=10,c=10,f=this.container,p=f.scrollTop,d=f.scrollLeft,g=f.scrollHeight,m=f.scrollWidth,b=0===p,h=g-p-f.clientHeight==0,v=0===d,y=m-d-f.clientWidth==0;n.y>=r.y-l/2&&!h?(o.y=1,s.y=c*Math.abs((r.y-l/2-n.y)/l)):n.x>=r.x-i/2&&!y?(o.x=1,s.x=u*Math.abs((r.x-i/2-n.x)/i)):n.y<=a.y+l/2&&!b?(o.y=-1,s.y=c*Math.abs((n.y-l/2-a.y)/l)):n.x<=a.x+i/2&&!v&&(o.x=-1,s.x=u*Math.abs((n.x-i/2-a.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===o.x&&0===o.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:s.x*o.x,top:s.y*o.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}();var oi={axis:wt.a.oneOf(["x","y","xy"]),contentWindow:wt.a.any,disableAutoscroll:wt.a.bool,distance:wt.a.number,getContainer:wt.a.func,getHelperDimensions:wt.a.func,helperClass:wt.a.string,helperContainer:wt.a.oneOfType([wt.a.func,"undefined"==typeof HTMLElement?wt.a.any:wt.a.instanceOf(HTMLElement)]),hideSortableGhost:wt.a.bool,keyboardSortingTransitionDuration:wt.a.number,lockAxis:wt.a.string,lockOffset:wt.a.oneOfType([wt.a.number,wt.a.string,wt.a.arrayOf(wt.a.oneOfType([wt.a.number,wt.a.string]))]),lockToContainerEdges:wt.a.bool,onSortEnd:wt.a.func,onSortMove:wt.a.func,onSortOver:wt.a.func,onSortStart:wt.a.func,pressDelay:wt.a.number,pressThreshold:wt.a.number,keyCodes:wt.a.shape({lift:wt.a.arrayOf(wt.a.number),drop:wt.a.arrayOf(wt.a.number),cancel:wt.a.arrayOf(wt.a.number),up:wt.a.arrayOf(wt.a.number),down:wt.a.arrayOf(wt.a.number)}),shouldCancelStart:wt.a.func,transitionDuration:wt.a.number,updateBeforeSortStart:wt.a.func,useDragHandle:wt.a.bool,useWindowAsScrollContainer:wt.a.bool},si={lift:[Zr],drop:[Zr],cancel:[Jr],up:[ti,ei],down:[ai,ni]},ui={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:si,shouldCancelStart:function(e){return-1!==[ri.Input,ri.Textarea,ri.Select,ri.Option,ri.Button].indexOf(e.target.tagName)||!!Vr(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},ci=Object.keys(oi);var fi={index:wt.a.number.isRequired,collection:wt.a.oneOfType([wt.a.number,wt.a.string]),disabled:wt.a.bool},pi=Object.keys(fi);function di(){return(di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function gi(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var mi=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return kr(this,n),yr(xr(xr(t=Er(this,jr(n).call(this,e)))),"state",{}),yr(xr(xr(t)),"handleStart",function(e){var n=t.props,a=n.distance,r=n.shouldCancelStart;if(2!==e.button&&!r(e)){t.touched=!0,t.position=$r(e);var i=Vr(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var l=t.props.useDragHandle,o=i.sortableInfo,s=o.index,u=o.collection;if(o.disabled)return;if(l&&!Vr(e.target,ii))return;t.manager.active={collection:u,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==ri.Anchor||e.preventDefault(),a||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),yr(xr(xr(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),yr(xr(xr(t)),"handleMove",function(e){var n=t.props,a=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=$r(e),l={x:t.position.x-i.x,y:t.position.y-i.y},o=Math.abs(l.x)+Math.abs(l.y);t.delta=l,a||r&&!(o>=r)?a&&o>=a&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),yr(xr(xr(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),yr(xr(xr(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),yr(xr(xr(t)),"handlePress",function(e){try{var n=t.manager.getActive(),a=function(){if(n){var a=function(){var n,a,r,u,m,b,h=p.sortableInfo.index,v=(n=p,{bottom:qr((a=window.getComputedStyle(n)).marginBottom),left:qr(a.marginLeft),right:qr(a.marginRight),top:qr(a.marginTop)}),y=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:qr(t.gridColumnGap),y:qr(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),k=l({index:h,node:p,collection:d});if(t.node=p,t.margin=v,t.gridGap=y,t.width=k.width,t.height=k.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=w,t.index=h,t.newIndex=h,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=Yr(p,t.container),t.initialOffset=$r(g?wr({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((u="input, textarea, select, canvas, [contenteditable]",m=(r=p).querySelectorAll(u),Ir((b=r.cloneNode(!0)).querySelectorAll(u)).forEach(function(e,t){"file"!==e.type&&(e.value=m[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===ri.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)}),b)),Fr(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-v.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-v.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),s&&(t.sortableGhost=p,Fr(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var O=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,C=O.top,S=O.left,_=O.width,x=C+O.height,E=S+_;t.axis.x&&(t.minTranslate.x=S-t.boundingClientRect.left,t.maxTranslate.x=E-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=C-t.boundingClientRect.top,t.maxTranslate.y=x-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:w.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:w.left+w.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:w.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:w.top+w.height)-t.boundingClientRect.top-t.height/2);o&&o.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?p:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(zr.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),zr.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:h}),c&&c({node:p,index:h,collection:d,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},r=t.props,i=r.axis,l=r.getHelperDimensions,o=r.helperClass,s=r.hideSortableGhost,u=r.updateBeforeSortStart,c=r.onSortStart,f=r.useWindowAsScrollContainer,p=n.node,d=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(function(){var t=p.sortableInfo.index;return Promise.resolve(u({collection:d,index:t,node:p,isKeySorting:g},e)).then(function(){})},function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return m&&m.then?m.then(a):a()}}();return Promise.resolve(a&&a.then?a.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),yr(xr(xr(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),yr(xr(xr(t)),"handleSortEnd",function(e){var n=t.props,a=n.hideSortableGhost,r=n.onSortEnd,i=t.manager,l=i.active.collection,o=i.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(o?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(zr.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),zr.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),a&&t.sortableGhost&&Fr(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=s.length;u<c;u++){var f=s[u],p=f.node;f.edgeOffset=null,f.boundingClientRect=null,Ur(p,null),Hr(p,null),f.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof r&&r({collection:l,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:o,nodes:s},e),t.touched=!1}),yr(xr(xr(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var a=wr({},t.translate),r=0,i=0;return t.axis.x&&(a.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),r=t.translate.x-a.x),t.axis.y&&(a.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-a.y),t.translate=a,Ur(t.helper,t.translate),t.scrollContainer.scrollLeft+=r,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),yr(xr(xr(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),yr(xr(xr(t)),"handleKeyDown",function(e){var n=e.keyCode,a=t.props,r=a.shouldCancelStart,i=a.keyCodes,l=wr({},si,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!r(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),yr(xr(xr(t)),"keyLift",function(e){var n=e.target,a=Vr(n,function(e){return null!=e.sortableInfo}).sortableInfo,r=a.index,i=a.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:r,collection:i},t.handlePress(e)}),yr(xr(xr(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),a=n[n.length-1].node.sortableInfo.index,r=t.newIndex+e,i=t.newIndex;if(!(r<0||r>a)){t.prevIndex=i,t.newIndex=r;var l=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),o=n.find(function(e){return e.node.sortableInfo.index===l}),s=o.node,u=t.containerScrollDelta,c=o.boundingClientRect||Kr(s,u),f=o.translate||{x:0,y:0},p=c.top+f.y-u.top,d=c.left+f.x-u.left,g=i<r,m=g&&t.axis.x?s.offsetWidth-t.width:0,b=g&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:d+m,pageY:p+b,ignoreTransition:0===e})}}),yr(xr(xr(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),yr(xr(xr(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),yr(xr(xr(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,a=e.target,r=Vr(a,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?ii(a):a.sortableInfo)}),function(e){Nr()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=new Ar,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return Tr(n,G["Component"]),Cr(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var a=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof a?a():a,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Xr(e.container)||e.container,e.autoScroller=new li(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return zr[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return zr[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,a=t.lockOffset,r=t.lockToContainerEdges,i=t.transitionDuration,l=t.keyboardSortingTransitionDuration,o=void 0===l?i:l,s=this.manager.isKeySorting,u=e.ignoreTransition,c=$r(e),f={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,r){var p=function(e){var t=e.height,n=e.width,a=e.lockOffset,r=Array.isArray(a)?a:[a,a];Nr()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",a);var i=vr(r,2),l=i[0],o=i[1];return[Qr({height:t,lockOffset:l,width:n}),Qr({height:t,lockOffset:o,width:n})]}({height:this.height,lockOffset:a,width:this.width}),d=vr(p,2),g=d[0],m=d[1],b={x:this.width/2-g.x,y:this.height/2-g.y},h={x:this.width/2-m.x,y:this.height/2-m.y};f.x=Gr(this.minTranslate.x+b.x,this.maxTranslate.x-h.x,f.x),f.y=Gr(this.minTranslate.y+b.y,this.maxTranslate.y-h.y,f.y)}"x"===n?f.y=0:"y"===n&&(f.x=0),s&&o&&!u&&Hr(this.helper,o),Ur(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,a=e.onSortOver,r=this.containerScrollDelta,i=this.windowScrollDelta,l=this.manager.getOrderedRefs(),o=this.offsetEdge.left+this.translate.x+r.left,s=this.offsetEdge.top+this.translate.y+r.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var f=0,p=l.length;f<p;f++){var d=l[f].node,g=d.sortableInfo.index,m=d.offsetWidth,b=d.offsetHeight,h={height:this.height>b?b/2:this.height/2,width:this.width>m?m/2:this.width/2},v=u&&g>this.index&&g<=c,y=u&&g<this.index&&g>=c,w={x:0,y:0},k=l[f].edgeOffset;k||(k=Yr(d,this.container),l[f].edgeOffset=k,u&&(l[f].boundingClientRect=Kr(d,r)));var O=f<l.length-1&&l[f+1],C=f>0&&l[f-1];O&&!O.edgeOffset&&(O.edgeOffset=Yr(O.node,this.container),u&&(O.boundingClientRect=Kr(O.node,r))),g!==this.index?(t&&Hr(d,t),this.axis.x?this.axis.y?y||g<this.index&&(o+i.left-h.width<=k.left&&s+i.top<=k.top+h.height||s+i.top+h.height<=k.top)?(w.x=this.width+this.marginOffset.x,k.left+w.x>this.containerBoundingRect.width-h.width&&O&&(w.x=O.edgeOffset.left-k.left,w.y=O.edgeOffset.top-k.top),null===this.newIndex&&(this.newIndex=g)):(v||g>this.index&&(o+i.left+h.width>=k.left&&s+i.top+h.height>=k.top||s+i.top+h.height>=k.top+b))&&(w.x=-(this.width+this.marginOffset.x),k.left+w.x<this.containerBoundingRect.left+h.width&&C&&(w.x=C.edgeOffset.left-k.left,w.y=C.edgeOffset.top-k.top),this.newIndex=g):v||g>this.index&&o+i.left+h.width>=k.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=g):(y||g<this.index&&o+i.left<=k.left+h.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(v||g>this.index&&s+i.top+h.height>=k.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=g):(y||g<this.index&&s+i.top<=k.top+h.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),Ur(d,w),l[f].translate=w):n&&(this.sortableGhost=d,Fr(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var S=u?this.prevIndex:c;a&&this.newIndex!==S&&a({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:S,isKeySorting:u,nodes:l,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Nr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(Br.findDOMNode)(this):e(a.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(G.createElement)(e,hr({ref:t},Rr(this.props,ci)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(),yr(t,"displayName",Wr("sortableList",e)),yr(t,"defaultProps",ui),yr(t,"propTypes",oi),yr(t,"childContextTypes",{manager:wt.a.object.isRequired}),n}(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),bi=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return kr(this,n),Er(this,jr(n).apply(this,arguments))}return Tr(n,G["Component"]),Cr(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,a=e.index,r=Object(Br.findDOMNode)(this);r.sortableInfo={collection:t,disabled:n,index:a,manager:this.context.manager},this.node=r,this.ref={node:r},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Nr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(G.createElement)(e,hr({ref:t},Rr(this.props,pi)))}}]),n}(),yr(t,"displayName",Wr("sortableElement",e)),yr(t,"contextTypes",{manager:wt.a.object.isRequired}),yr(t,"propTypes",fi),yr(t,"defaultProps",{collection:0}),n}(function(e){var t=e.value,n=(e.key,e.index,gi(e,["value","key","index"]));return wp.element.createElement("div",di({className:"ugb-sort-control__item"},n),t)}),hi=!1,vi=function e(t){for(var n=t.values?t.values.splice(0,t.num):Object(b.range)(t.num).map(function(e){return e+1});n.length<t.num;)n.push(n.length+1);return wp.element.createElement(l.BaseControl,{help:t.help,className:p()(["ugb-sort-control",t.className,"ugb-sort-control--axis-".concat(t.axis)])},wp.element.createElement(ia,di({label:t.label},Object(b.omit)(t,Object.keys(e.defaultProps)),{afterButton:t.hasReset?wp.element.createElement(l.Button,{disabled:!t.values,onClick:function(){return t.onChange("",{oldIndex:0,newIndex:0})},isSmall:!0,isSecondary:!0},Object(s.__)("Reset")):null})),wp.element.createElement(mi,{onSortStart:function(){return hi=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,r=e.newIndex;hi=!1;var i=function(e,t,n){return e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e}(n,a,r);t.onChange(i,{oldIndex:a,newIndex:r})},axis:t.axis},n.map(function(e,n){return wp.element.createElement(bi,{key:n,index:n,value:e,onMouseEnter:function(){hi||t.onHover(n)},onMouseLeave:function(){hi||t.onHover(null)}})})))};vi.defaultProps={className:"",help:"",label:Object(s.__)("Column Arrangement",o.i18n),num:2,axis:"x",values:null,onChange:function(){},onHover:function(){},hasReset:!1};function yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yi(n,!0).forEach(function(t){ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oi={},Ci={};Object(R.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){Ci[e]=t}),Object(R.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===Ci[e]&&(Ci[e]=t)});var Si=function(e){var t=function(t){var n=Object(i.useMemo)(function(){return Object(ne.select)("core/block-editor").getSelectedBlockClientId()},[]),a=wi({},t,{onToggle:function(e,a){if(n&&t.withCaching){var r=(l=a.current,(o=l.closest("[data-ugb-tab]"))?o.getAttribute("data-ugb-tab"):""),i="".concat(n,"-").concat(r);Ci[n]=r,Oi[i]=e?t.title:null}var l,o;t.onToggle(e)}});if(n&&t.withCaching){var r=Ci[n]||"",l="".concat(n,"-").concat(r),o=Oi[l];o?a.initialOpen=o===t.title:null===o&&(a.initialOpen=!1)}return wp.element.createElement(i.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=wi({},e.defaultProps||{},{withCaching:!0}),t};function _i(e){return(_i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Pi(e){return(Pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bi(e,t){return(Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Mi=1,Ni=function(e){function t(e){var n,a,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(r=Pi(t).apply(this,arguments))||"object"!==_i(r)&&"function"!=typeof r?Ti(a):r).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(Ti(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(Ti(n)),n.instanceId=Mi++,n.panelRef=Object(i.createRef)(),n}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bi(e,t)}(t,i["Component"]),n=t,(a=[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.hasToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t]||(n=!0,0))}),n?(this.props.onChange&&this.props.onChange(!0),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(n,!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,Ei({},this.props.toggleAttributeName,!0))):e}},{key:"componentDidMount",value:function(){Object(R.addFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9)}},{key:"componentWillUnmount",value:function(){Object(R.removeFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId))}},{key:"onToggle",value:function(){if(this.setState({opened:!this.state.opened}),!this.state.opened&&this.panelRef.current){var e=this.panelRef.current.querySelector(".components-panel__body-title"),t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar");t&&e.getBoundingClientRect().top<t.getBoundingClientRect().bottom?Gt(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&Gt(this.panelRef.current)}this.props.onToggle(!this.state.opened,this.panelRef)}},{key:"onAdvancedToggle",value:function(){this.setState({showAdvanced:!this.state.showAdvanced})}},{key:"render",value:function(){var e=this,t=p()([this.props.className,"ugb-toggle-panel-body"],Ei({"ugb-toggle-panel-body--advanced":this.state.showAdvanced},"ugb-panel--".concat(this.props.id),this.props.id));return wp.element.createElement(l.PanelBody,{className:t,initialOpen:this.props.initialOpen,onToggle:this.onToggle,opened:this.state.opened,ref:this.panelRef,title:wp.element.createElement(i.Fragment,null,this.props.hasToggle&&this.props.toggleAttributeName&&wp.element.createElement("span",{className:"editor-panel-toggle-settings__panel-title"},wp.element.createElement(l.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:this.props.checked,onClick:function(t){t.stopPropagation(),t.preventDefault();var n=e.props.checked;n&&e.state.opened||n||e.state.opened||e.onToggle(),e.props.onChange&&e.props.onChange(!n)},"aria-describedby":this.props.title}),this.props.title),!(this.props.hasToggle&&this.props.toggleAttributeName)&&this.props.title)},this.props.children,this.state.showAdvanced&&this.props.advancedChildren,this.props.advancedChildren&&wp.element.createElement("button",{className:"ugb-panel-advanced-button",onClick:this.onAdvancedToggle},this.state.showAdvanced?Object(s.__)("Simple",o.i18n):Object(s.__)("Advanced",o.i18n)))}}])&&ji(n.prototype,a),r&&ji(n,r),t}();Ni.defaultProps={id:"",className:"",title:Object(s.__)("Settings",o.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!0,initialAdvanced:!1,advancedChildren:null,toggleOnSetAttributes:[],toggleAttributeName:"",onToggle:function(){}};var Ii=Si(Ni);function Ai(){return(Ai=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Di=function(e){var t=e.blockProps;return wp.element.createElement(Ii,Ai({title:Object(s.__)("Spacing",o.i18n)},e,{className:p()(["ugb--help-tip-spacing",e.className])}),Object(R.applyFilters)("stackable.panel-spacing-body.edit.before",null,t),e.children,Object(R.applyFilters)("stackable.panel-spacing-body.edit.after",null,t))};Di.defaultProps={className:"",blockProps:{}};var Ri=function(e){var t=p()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};Ri.defaultProps={tab:"layout"};function zi(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}function Li(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){zi(i,a,r,l,o,"next",e)}function o(e){zi(i,a,r,l,o,"throw",e)}l(void 0)})}}var Fi=null,Ui={},Hi=[],Vi=function(e){return e.replace(/^[\w-]+\//,"")},Gi=function(){var e=Li(regeneratorRuntime.mark(function e(){var t,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]&&a[0],Fi&&!t){e.next=9;break}return e.next=4,Pe()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:Fi=e.sent,t&&(Ui={},Hi=[]);case 9:return e.abrupt("return",Fi);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),qi=function(){var e=Li(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Vi(t),Ui[n]){e.next=8;break}return e.next=4,Pe()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:Ui[n]=e.sent;case 8:return e.abrupt("return",Ui[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Wi=function(){var e=Li(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Hi[t]){e.next=7;break}return e.next=3,Pe()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:Hi[t]=e.sent;case 7:return e.abrupt("return",Hi[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Ki=function(){var e=Li(regeneratorRuntime.mark(function e(){var t,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],e.next=3,Pe()({path:"/wp/v2/stk_design_library_dev_mode/",method:"POST",data:{devmode:t}});case 3:return n=e.sent,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();Object(r.a)(function(){});var $i=function(){var e=Li(regeneratorRuntime.mark(function e(t){var n,a,r,i,l,o,s,u,c,f,p,d,g,m,b,h,v,y;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,a=void 0===n?"":n,r=t.block,i=void 0===r?"":r,l=t.mood,o=void 0===l?"":l,s=t.plan,u=void 0===s?"":s,c=t.colors,f=void 0===c?[]:c,p=t.categories,d=void 0===p?[]:p,g=t.search,m=void 0===g?"":g,b=t.reset,h=void 0!==b&&b,e.t0=Object,e.next=4,Gi(h);case 4:return e.t1=e.sent,v=e.t0.values.call(e.t0,e.t1),a&&(v=v.filter(function(e){return e.type===a})),i&&(y=-1===i.indexOf("ugb/")?"ugb/".concat(i):i,v=v.filter(function(e){return e.block===y})),o&&(v=v.filter(function(e){return e.mood===o})),u&&(v=v.filter(function(e){return e.plan===u})),f&&f.length&&(v=v.filter(function(e){return e.colors.some(function(e){return f.includes(e)})})),d&&d.length&&(v=v.filter(function(e){return e.categories.some(function(e){return d.includes(e)})})),m&&m.toLowerCase().replace(/\s+/," ").trim().split(" ").forEach(function(e){v=v.filter(function(t){return["label","plan","block","tags","categories","colors"].some(function(n){return-1!==t[n].toString().toLowerCase().indexOf(e)})})}),e.abrupt("return",v);case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Yi=function(){var e=Li(regeneratorRuntime.mark(function e(t){var n,a,r,i,l,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Gi();case 2:if(n=e.sent,a=n[t],r=a.type,i=a.block,l=a.template,"block"!==r||!i){e.next=12;break}return e.next=8,qi(i);case 8:return o=e.sent,e.abrupt("return",o[t]);case 12:if(!l){e.next=16;break}return e.next=15,Wi(t);case 15:return e.abrupt("return",e.sent);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Qi=function(){var e=Li(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Object,e.next=3,Gi();case 3:return e.t1=e.sent,t=e.t0.values.call(e.t0,e.t1),e.abrupt("return",t.reduce(function(e,t){var n=t.block,a=t.type;return e.includes(n)||"block"!==a||e.push(n),e},[]));case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();function Xi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ji=function(e){var t=Xi(Object(i.useState)(!1),2),n=t[0],a=t[1],r=Xi(Object(i.useState)(""),2),u=r[0],c=r[1],f=Xi(Object(i.useState)([]),2),p=f[0],d=f[1],g=Xi(Object(i.useState)(!0),2),m=g[0],b=g[1],h=Xi(Object(i.useState)(""),2),v=h[0],y=h[1];return Object(i.useEffect)(function(){var t=!0;return $i({type:"block",block:e.block,search:u}).then(function(e){t&&d(e)}).finally(function(){t&&b(!1)}),function(){t=!1}},[e.block,u]),wp.element.createElement("div",null,wp.element.createElement(l.Button,{className:"ugb-design-library-control__open-library",label:Object(s.__)("Open Design Library",o.i18n),isSmall:!0,isLink:!0,onClick:function(){return a(!0)}},Object(s.__)("Open Design Library",o.i18n)),wp.element.createElement(l.TextControl,{placeholder:Object(s.__)("Search designs...",o.i18n),value:u,onChange:function(e){return c(e)}}),!o.isPro&&wp.element.createElement(ur,{controls:[{value:"",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("All",o.i18n),wp.element.createElement("span",null,p.length))},{value:"free",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("Free",o.i18n),wp.element.createElement("span",null,p.reduce(function(e,t){return e+("free"===t.plan?1:0)},0)))},{value:"premium",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("Premium",o.i18n),wp.element.createElement("span",null,p.reduce(function(e,t){return e+("free"!==t.plan?1:0)},0)))}],value:v,onChange:function(e){return y(e)}}),wp.element.createElement(Sl,{designs:p.filter(function(e){var t=e.plan;return!v||t===v}),isBusy:m,onSelect:e.onSelect}),n&&wp.element.createElement(Zh,{search:u,selectedBlock:e.block,onClose:function(){a(!1),c("")},onSelect:function(t){e.onSelect(t),a(!1)}}))};Ji.defaultProps={block:"",onSelect:function(){}};function Zi(){return(Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var el=q.a.createElement("path",{d:"M64.1 136L23 176.7c-1.9 1.8-1.9 4.8-.1 6.7.9 1 2.3 1.5 3.6 1.4l86.9.1L64.1 136z"}),tl=q.a.createElement("path",{d:"M177.9 128.4c0-4.5-1.8-8.9-5-12.1L71.4 14.7 26.6 59.5c-3.2 3.2-5 7.5-5 12.1 0 4.5 1.8 8.9 5 12.1l101.6 101.6v-.1l44.8-44.8c3.1-3.2 4.9-7.5 4.9-12z",opacity:.75}),nl=q.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM128.2 71.6H71.4v56.8h56.8zM128.2 185.1l44.7-44.7c3.1-3.1 4.9-7.4 5-11.8h-49.7v56.5z"}),al=q.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM172.9 14.7H86.1l49.4 49.6 40.9-41.2c1.9-2 1.8-5.2-.1-7.1-.9-.8-2.1-1.3-3.4-1.3z"}),rl=function(e){return q.a.createElement("svg",Zi({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),el,tl,nl,al)};function il(){return(il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ll=q.a.createElement("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.5c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.5 10.6h1.8l-1.8 1.8v-1.8zm3.1-1.2H4.5V7.7h4.8L7.6 9.4zm2.9-2.9h-6V5H12l-1.5 1.5zM3.3 15H1.5V5h1.7v10zm1.2-.8L13.7 5h1.8v.8L6.3 15H4.5v-.8zm11-4.8h-1.8l1.8-1.8v1.8zm-3.1 1.2h3.1v1.7h-4.8l1.7-1.7zm-2.9 2.9h6V15H8l1.5-1.5zM16.8 5h1.7v10h-1.7V5zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8zm17 16.4c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3v-1.3c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3zm-14.9-.7c0 .3-.2.5-.5.5s-.5-.2-.5-.5.3-.5.5-.5.5.2.5.5zm13.8 0c0 .3-.2.5-.5.5s-.5-.2-.5-.5.2-.5.5-.5.5.2.5.5zM2.6 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm13.8 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}),ol=function(e){return q.a.createElement("svg",il({xmlns:"http://www.w3.org/2000/svg"},e),ll)};function sl(){return(sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ul=q.a.createElement("path",{d:"M10.9 20h-9c-1 0-1.8-.8-1.8-1.8v-5.1c0-1 .8-1.8 1.8-1.8h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zm-9.1-7.4c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5v-5.1c0-.3-.2-.5-.5-.5h-9zM18.2 8.7h-9c-1 0-1.8-.8-1.8-1.8V1.8C7.4.8 8.2 0 9.2 0h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zM9.1 1.3c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V1.8c0-.3-.2-.5-.5-.5h-9z"}),cl=function(e){return q.a.createElement("svg",sl({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ul)},fl=function(e){return Object(i.cloneElement)(e,{fill:"url(#stackable-gradient)",className:"ugb-stackable-icon-gradient ".concat(e.props.className||"")})};Object(r.a)(function(){var e=document.createElement("DIV");document.querySelector("body").appendChild(e),Object(i.render)(wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ugb-stackable-gradient",height:"0",width:"0",style:{opacity:0}},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"stackable-gradient"},wp.element.createElement("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))),e)});var pl=function(){return wp.element.createElement(rl,{width:"20",height:"20"})};function dl(e){return(dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gl(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ml(e){return(ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hl(e,t){return(hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vl=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=ml(t).apply(this,arguments))||"object"!==dl(a)&&"function"!=typeof a?bl(n):a).state={isOpen:!1,slide:0},e.open=e.open.bind(bl(e)),e.close=e.close.bind(bl(e)),e.prev=e.prev.bind(bl(e)),e.next=e.next.bind(bl(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hl(e,t)}(t,i["Component"]),n=t,(a=[{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"next",value:function(){var e=this.state.slide>=4?0:this.state.slide+1;this.setState({slide:e})}},{key:"prev",value:function(){var e=this.state.slide<=0?4:this.state.slide-1;this.setState({slide:e})}},{key:"render",value:function(){var e=this.props.tag;return wp.element.createElement(e,null,wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=".concat(this.props.buttonUtmSource,"&utm_campaign=learnmore&utm_medium=gutenberg"),target:"_premium",onClick:this.open,className:this.props.buttonClassName},this.props.button),this.state.isOpen&&wp.element.createElement(l.Modal,{className:"ugb-pro-modal",onRequestClose:this.close},wp.element.createElement("img",{src:"https://da4bu55kgdxvv.cloudfront.net/premium-popup.jpg",alt:Object(s.__)("Premium features",o.i18n)}),wp.element.createElement("div",{className:"ugb-pro-modal__footer"},wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=editor-modal-popup&utm_campaign=upgrade&utm_medium=gutenberg",className:"button button-secondary",target:"_premium",title:Object(s.__)("Upgrade to Premium",o.i18n)},wp.element.createElement(pl,null),Object(s.__)("Upgrade to Premium",o.i18n)),wp.element.createElement("a",{href:"https://demo.wpstackable.com?utm_source=editor-modal-popup&utm_campaign=trydemo&utm_medium=gutenberg",target:"_premium",title:Object(s.__)("Try Premium Demo",o.i18n)},Object(s.__)("Try Premium Demo",o.i18n)))))}}])&&gl(n.prototype,a),r&&gl(n,r),t}();vl.defaultProps={button:Object(s.__)("Learn More",o.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var yl=vl;function wl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var kl=function(e){var t=e.designId,n=e.image,a=e.label,r=e.onClick,o=e.plan,s=e.isPro,u=wl(Object(i.useState)(!1),2),c=u[0],f=u[1],d=wl(Object(i.useState)(!1),2),g=d[0],m=d[1],b=p()(["ugb-design-library-item"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"ugb--is-busy":c},"ugb--is-".concat(o),!s&&"free"!==o));return wp.element.createElement("div",{className:b,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},c&&wp.element.createElement("span",{className:"ugb-design-library-item__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),!s&&"free"!==o&&wp.element.createElement("span",{className:"ugb-design-library-item__premium","data-testid":"premium-tag"},o),wp.element.createElement("button",{className:"ugb-design-library-item__image",onClick:function(){(s||"free"===o)&&(f(!0),Yi(t).then(function(e){f(!1),r(e)}))}},!s&&"free"!==o&&wp.element.createElement(l.Dashicon,{icon:"lock"}),wp.element.createElement("img",{src:n,alt:a,loading:"lazy"})),wp.element.createElement("footer",null,(s||"free"===o)&&wp.element.createElement("span",null,a),!s&&"free"!==o&&!g&&wp.element.createElement("span",null,a),!s&&"free"!==o&&g&&wp.element.createElement(yl,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(i.Fragment,null,wp.element.createElement(l.Dashicon,{icon:"external"}),e.premiumLabel)})))};kl.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:o.isPro,premiumLabel:Object(s.__)("Go Premium",o.i18n)};var Ol=kl;var Cl=function(e){var t=e.designs,n=e.isBusy,a=e.onSelect,r=p()(["ugb-design-library-items"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"ugb-design-library-items--columns-".concat(e.columns),!n&&e.columns));return wp.element.createElement("div",{className:r},(t||[]).map(function(e,t){return wp.element.createElement(Ol,{key:t,type:e.type,block:e.block,template:e.template,plan:e.plan,designId:e.id,image:e.image,label:e.label,onClick:function(e){a(e)}})}),n&&wp.element.createElement("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),!n&&!(t||[]).length&&wp.element.createElement("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},Object(s.__)("No designs found",o.i18n)))};Cl.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var Sl=Cl;n(132);function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(n,!0).forEach(function(t){El(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function El(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jl={},Pl=function(e){var t=function(t){var n,a=t.initialTab||jl[t.blockProps.clientId]||(n=t.blockProps,Oe[n.name]||(Oe[n.name]=Object(he.createBlock)(n.name).attributes),Object.keys(Oe[n.name]).every(function(e){return!!ke.includes(e)||Oe[n.name][e]===n.attributes[e]})?Object(b.first)(t.tabs)||"layout":"style");Object(R.doAction)("stackable.inspector.tab.initial",t.blockProps.clientId,a);var r=xl({},t,{initialTab:a,onClick:function(e){jl[t.blockProps.clientId]=e,Object(R.doAction)("stackable.inspector.tab.click",t.blockProps.clientId,e),t.onClick(e)}});return wp.element.createElement(i.Fragment,null,wp.element.createElement(e,r))};return t.defaultProps=xl({},e.defaultProps||{}),t};function Tl(e){return(Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bl(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ml(e){return(Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Il(e,t){return(Il=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Al=[{value:"layout",title:Object(s.__)("Layout",o.i18n),label:Object(s.__)("Layout Tab",o.i18n),icon:"admin-settings"},{value:"style",title:Object(s.__)("Style",o.i18n),label:Object(s.__)("Style Tab",o.i18n),icon:"admin-appearance"},{value:"advanced",title:Object(s.__)("Advanced",o.i18n),label:Object(s.__)("Advanced Tab",o.i18n),icon:"admin-tools"}],Dl=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Ml(t).apply(this,arguments))||"object"!==Tl(a)&&"function"!=typeof a?Nl(n):a).tabsToUse=e.props.tabs||["layout","style","advanced"],e.state={activeTab:e.props.initialTab?e.props.initialTab:e.tabsToUse[0]},e.onButtonPanelClick=e.onButtonPanelClick.bind(Nl(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(Nl(e)),e.select=e.select.bind(Nl(e)),e.containerDiv=Object(i.createRef)(),e.props.onTabFirstOpen(e.state.activeTab),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Il(e,t)}(t,i["Component"]),n=t,(a=[{key:"updateSidebarPanelTab",value:function(e){var t,n=this.containerDiv.current.closest(".components-panel");n&&(n.setAttribute("data-ugb-tab",e),null===(t=n.closest(".edit-post-sidebar"))||void 0===t||t.classList.add("ugb--has-panel-tabs"))}},{key:"componentDidMount",value:function(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&document.body.addEventListener("click",this.onButtonPanelClick)}},{key:"componentWillUnmount",value:function(){var e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&document.body.removeEventListener("click",this.onButtonPanelClick)}},{key:"onButtonPanelClick",value:function(e){var t,n=e.target.closest(".components-panel__body-toggle");n&&"layout"!==this.state.activeTab&&(t=n,[].forEach.call(document.querySelectorAll(".components-panel__body .components-panel__body-toggle"),function(e){0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&t!==e&&e.click()}),this.props.onClickPanel(n.closest(".components-panel__body")))}},{key:"select",value:function(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}},{key:"render",value:function(){var e=this,t=p()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return wp.element.createElement("div",{className:t,style:this.props.style,ref:this.containerDiv},wp.element.createElement("div",{className:"ugb-panel-tabs__wrapper"},Al.map(function(t,n){var a=t.value,r=t.title,i=t.label,o=t.icon;return e.tabsToUse.includes(a)?wp.element.createElement("button",{key:n,onClick:function(){return e.select(a)},className:p()(["edit-post-sidebar__panel-tab","ugb-tab--".concat(a)],{"is-active":e.state.activeTab===a}),"aria-label":i,"data-label":i},wp.element.createElement(l.Icon,{icon:o}),r):null})))}}])&&Bl(n.prototype,a),r&&Bl(n,r),t}();Dl.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};Pl(Dl);function Rl(){return(Rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var zl=function(e){var t=p()(["ugb-global-style-control__item"],{"ugb-global-style-control__item--large-preview":e.largePreview}),n=e.renderPreview&&e.renderPreview(Object(b.pick)(e,["label","value"]));return wp.element.createElement("div",{className:t},n&&wp.element.createElement("div",{className:"ugb-global-style-control__item-preview"},n),wp.element.createElement("div",{className:"ugb-global-style-control__item-label"},e.label),wp.element.createElement(l.Button,{className:"ugb-global-style-control__item-button",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.onEdit(e.value)},label:Object(s.__)("Edit Style",o.i18n),isTertiary:!0,icon:"edit"}))};zl.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var Ll=function(e){var t=e.options;if(e.value){var n=e.options.find(function(t){return t.value===e.value});n&&(t=e.options.filter(function(t){return t.value!==e.value})).unshift(n)}var a=p()(["ugb-global-style-control",e.className],{"ugb--has-value":e.value});return wp.element.createElement(Ia,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(zl,Rl({},t,{largePreview:e.largePreview,onEdit:e.onEdit,renderPreview:e.renderPreview}))}},e.value&&wp.element.createElement(l.Button,{icon:"edit",label:Object(s.__)("Edit Style",o.i18n),isSecondary:!0,onClick:function(){return e.onEdit(e.value)}}),e.value&&wp.element.createElement(l.Button,{icon:"editor-unlink",label:Object(s.__)("Unlink Style",o.i18n),isSecondary:!0,disabled:!e.value,onClick:e.onUnlink}))};Ll.defaultProps={className:"",label:Object(s.__)("Style",o.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};var Fl=function(e){var t=e.imageFile,n=e.imageHoverFile,a=e.imageWidth,r=void 0===a?"":a,i=e.imageHeight,l=void 0===i?"":i,s=e.label,u=t?t.match(/https?:/i)?t:o.srcUrl?"".concat(o.srcUrl,"/").concat(t):t:"",c=n?n.match(/https?:/i)?n:o.srcUrl?"".concat(o.srcUrl,"/").concat(n):n:null;return wp.element.createElement("span",{className:"ugb-design-panel-item"},c&&wp.element.createElement("img",{className:"ugb-design-panel-item__hover-image",src:c,alt:s,width:r,height:l}),u&&wp.element.createElement("img",{className:"ugb-design-panel-item__image",src:u,alt:s,width:r,height:l}),wp.element.createElement("span",{className:"design-label"},s))};function Ul(){return(Ul=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gl=function(e){var t=e.options.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(n,!0).forEach(function(t){Vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(Fl,{imageFile:e.image,imageHoverFile:e.hoverImage,imageWidth:e.imageWidth,imageHeight:e.imageHeight,isPro:e.isPro,label:e.label}),title:e.label,value:e.value})}),n=p()([e.className,"ugb-design-control-wrapper","components-base-control","ugb-design-control--columns-".concat(e.columns)]);return wp.element.createElement("div",{className:n},e.label&&wp.element.createElement("div",{className:"components-base-control__label"},e.label),wp.element.createElement(l.RadioControl,Ul({},Object(b.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Gl.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var ql=Gl,Wl=n(41),Kl=n.n(Wl),$l=n(42),Yl=n.n($l),Ql=n(43),Xl=n.n(Ql),Jl=n(44),Zl=n.n(Jl),eo=n(45),to=n.n(eo),no=n(46),ao=n.n(no),ro=n(47),io=n.n(ro),lo=n(48),oo=n.n(lo),so=n(49),uo=n.n(so),co=n(50),fo=n.n(co),po=n(51),go=n.n(po),mo=n(52),bo=n.n(mo),ho=n(53),vo=n.n(ho);function yo(){return(yo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var wo={"wave-1":{image:fo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),1),value:"wave-1"},"straight-1":{image:uo.a,label:Object(s.__)("Straight",o.i18n),value:"straight-1"},"wave-2":{image:go.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),2),value:"wave-2"},"wave-3":{image:bo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),3),value:"wave-3"},"wave-4":{image:vo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),4),value:"wave-4"},"slant-1":{image:io.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),1),value:"slant-1"},"slant-2":{image:oo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),2),value:"slant-2"},"curve-1":{image:Kl.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),1),value:"curve-1"},"curve-2":{image:Yl.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),2),value:"curve-2"},"curve-3":{image:Xl.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),3),value:"curve-3"},"rounded-1":{image:Zl.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),1),value:"rounded-1"},"rounded-2":{image:to.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),2),value:"rounded-2"},"rounded-3":{image:ao.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),3),value:"rounded-3"}},ko=function(e){var t=Object.keys(wo).filter(function(t){return!e.excludeDesigns.includes(t)}).map(function(e){return wo[e]});return wp.element.createElement(l.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:e.label,help:e.help},wp.element.createElement(ql,yo({options:Object(R.applyFilters)("stackable.separator.edit.layouts",t,e)},Object(b.omit)(e,["label","help"]))))};ko.defaultProps={label:"",help:"",excludeDesigns:[]};function Oo(){return(Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Co=q.a.createElement("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}),So=function(e){return q.a.createElement("svg",Oo({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Co)};function _o(){return(_o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var xo=Object(dt.withInstanceId)(Object(dt.withState)({openPopover:!1,clickedOnButton:!1})(function(e){var t=e.instanceId,n=e.openPopover,a=e.clickedOnButton,r=e.setState;return wp.element.createElement(l.BaseControl,_o({className:"ugb-icon-control ugb-icon-control-".concat(t)},Object(b.omit)(e,["onChange","value"])),wp.element.createElement("div",{className:"ugb-icon-control__wrapper"},wp.element.createElement("div",{className:"ugb-icon-control__button-wrapper"},wp.element.createElement(l.Button,{isSecondary:!0,className:"ugb-icon-control__icon-button",onClick:function(){r(a?{openPopover:!1,clickedOnButton:!1}:{openPopover:!0})}},e.value&&wp.element.createElement(ku,{value:e.value}),!e.value&&wp.element.createElement(So,{style:{opacity:.3}})),n&&wp.element.createElement(Ho,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-icon-control-".concat(t))?r({clickedOnButton:!0}):r({openPopover:!1,clickedOnButton:!1})},onClose:function(){return r({openPopover:!1})},returnSVGValue:e.returnSVGValue,onChange:e.onChange})),wp.element.createElement(l.Button,{onClick:function(){e.onReset?e.onReset():e.onChange(""),r({openPopover:!1})},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(s.__)("Reset",o.i18n))))}));xo.defaultProps={label:Object(s.__)("Icon",o.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var Eo=xo;function jo(){return(jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Po=q.a.createElement("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}),To=function(e){return q.a.createElement("svg",jo({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e),Po)};function Bo(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Mo(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}var No=function(){var e,t=(e=regeneratorRuntime.mark(function e(){var t,n,a,r,i=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"icon",n=i.length>1&&void 0!==i[1]?i[1]:o.fontAwesomeSearchProIcons,a='{ search(version: "latest", first: 50, query: "'.concat((t||"info").replace(/["'\\]/g,""),'") {\n\t\t\tid\n\t\t\tmembership {\n\t\t\t\tfree\n\t\t\t\t').concat(n?"pro":"","\n\t\t\t}\n\t\t} }"),e.next=5,fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:a})}).then(function(e){return e.json()});case 5:return r=e.sent,e.abrupt("return",r.data.search.reduce(function(e,t){return Io(t,n).forEach(function(t){e.push(t)}),e},[]));case 7:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){Mo(i,a,r,l,o,"next",e)}function o(e){Mo(i,a,r,l,o,"throw",e)}l(void 0)})});return function(){return t.apply(this,arguments)}}(),Io=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(Bo(e.membership.free),Bo(t?e.membership.pro.filter(function(t){return!e.membership.free.includes(t)}):[]));return n.map(function(t){return{className:"fa".concat(t[0]," fa-").concat(e.id),prefix:"fa".concat(t[0]),iconName:e.id}})},Ao=n(54);function Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ro=null,zo=null,Lo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,"$1".concat(t," ")):e.match(/(<svg)/)?e.replace(/(<svg)/,'$1 class="'.concat(t,'"')):e},Fo=function(e){for(var t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1"),n=0;n<2;n++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t},Uo=function(e){var t=Do(Object(i.useState)(""),2),n=t[0],a=t[1],r=Do(Object(i.useState)([]),2),u=r[0],c=r[1],f=Do(Object(i.useState)(!1),2),d=f[0],g=f[1],m=Do(Object(i.useState)(!1),2),b=m[0],h=m[1],v=e.returnSVGValue;Object(i.useEffect)(function(){var e=!0;return clearTimeout(Ro),Ro=setTimeout(function(){e&&(g(!0),No(n).then(function(t){e&&c(t)}).finally(function(){e&&g(!1)}))},500),function(){e=!1,clearTimeout(Ro)}},[n]),Object(i.useEffect)(function(){zo||(zo=wp.data.select("core/block-editor").getSettings().mediaUpload),b?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==zo&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:zo})},[b]);var y=p()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":o.isPro,"ugb-icon--has-upload":v,"ugb-icon--has-reset":e.allowReset});return wp.element.createElement(l.Popover,{className:"ugb-icon-popover",onClose:e.onClose,onClickOutside:e.onClickOutside,position:e.position,anchorRef:e.anchorRef},wp.element.createElement(l.PanelBody,null,wp.element.createElement(Ao.FileDrop,{onFrameDragEnter:function(){return h(!0)},onFrameDragLeave:function(){return h(!1)},onFrameDrop:function(){return h(!1)},onDrop:function(t){if(v&&t.length)if("image/svg+xml"===t[0].type){var n=new FileReader;n.onload=function(t){h(!1);var n=Fo(Lo(t.target.result));e.onChange(n),e.onClose()},n.readAsText(t[0])}else h(!1);else h(!1)}},wp.element.createElement("div",{className:y},wp.element.createElement(l.TextControl,{className:"ugb-icon-popover__input",value:n,onChange:a,placeholder:Object(s.__)("Type to search icon",o.i18n)}),o.isPro&&wp.element.createElement(l.Button,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:o.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:Object(s.__)("Icon Settings",o.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),v&&wp.element.createElement(l.Button,{onClick:function(t){t.preventDefault();var n=document.createElement("input");n.accept="image/svg+xml",n.type="file",n.onchange=function(t){var n=t.target.files;if(n.length){var a=new FileReader;a.onload=function(t){h(!1);var n=Fo(Lo(t.target.result));e.onChange(n),e.onClose()},a.readAsText(n[0])}else h(!1)},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},Object(s.__)("Upload SVG",o.i18n)),e.allowReset&&wp.element.createElement(l.Button,{onClick:function(){e.onChange(""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(s.__)("Clear icon",o.i18n))),wp.element.createElement("div",{className:"ugb-icon-popover__iconlist"},d&&wp.element.createElement(l.Spinner,null),!d&&u.map(function(t,n){var a=t.prefix,r=t.iconName,i="".concat(a,"-").concat(r);return wp.element.createElement("button",{key:n,className:"components-button ugb-prefix--".concat(a," ugb-icon--").concat(r),onClick:function(){e.returnSVGValue?e.onChange(Fo(xe(a,r))):e.onChange(i,a,r),e.onClose()}},wp.element.createElement(ov,{prefix:a,iconName:r}))}),!d&&!u.length&&wp.element.createElement("p",{className:"components-base-control__help"},Object(s.__)("No matches found",o.i18n))),v&&b&&wp.element.createElement("div",{className:"ugb-icon-popover__drop-indicator"},wp.element.createElement(To,{height:"40",width:"40"}),Object(s.__)("Drop your SVG here",o.i18n)))))};Uo.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var Ho=Uo,Vo=function(e){return wp.element.createElement(md,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(Kd,{label:e.label,className:p()([e.className,"ugb--help-tip-alignment-all"])}))};Vo.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(s.__)("Align",o.i18n)};var Go=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})};function qo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Wo=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=qo(t,2),a=n[0],r=n[1];t="linear-gradient(90deg, ".concat(a||"transparent",", ").concat(r||"transparent",")")}var u=p()(["components-circular-option-picker__option-wrapper","ugb-button-icon-popover-control-color-preview"],{"ugb-button-icon-popover-control-color-preview--transparent":!t||"transparent"===t});return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",{className:u},wp.element.createElement(l.Button,{className:"components-circular-option-picker__option",label:Object(s.__)("Selected color",o.i18n),style:{background:t},onClick:e.onClick,ref:e._ref}),e.children))};Wo.defaultProps={color:"",onClick:function(){},_ref:null};var Ko=Wo;function $o(){return($o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Yo=q.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Qo=q.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Xo=q.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),Jo=function(e){return q.a.createElement("svg",$o({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Yo,Qo,Xo)},Zo=function(e){return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",{className:"components-circular-option-picker__option-wrapper ugb-button-icon-popover-control-image-preview"},wp.element.createElement(l.Button,{className:"components-circular-option-picker__option",label:Object(s.__)("Selected image",o.i18n),style:{backgroundImage:e.imageUrl?"url(".concat(e.imageUrl,")"):void 0},onClick:e.onClick,ref:e._ref},!e.imageUrl&&wp.element.createElement(Jo,null)),e.children))};Zo.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var es=Zo;function ts(e){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function as(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rs(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function is(e){return(is=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ls(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function os(e,t){return(os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ss=1,us=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=is(t).apply(this,arguments))||"object"!==ts(a)&&"function"!=typeof a?ls(n):a).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(ls(e)),e.handleClose=e.handleClose.bind(ls(e)),e.handleMouseLeave=e.handleMouseLeave.bind(ls(e)),e.handleMouseEnter=e.handleMouseEnter.bind(ls(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(ls(e)),e.handleReset=e.handleReset.bind(ls(e)),e.buttonRef=Object(i.createRef)(),e.buttonRefColorPreview=Object(i.createRef)(),e.buttonRefImagePreview=Object(i.createRef)(),e.instanceId=ss++,e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&os(e,t)}(t,i["Component"]),n=t,(a=[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.onToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t]||(n=!0,0))}),n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(n,!0).forEach(function(t){as(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,as({},this.props.toggleAttributeName,!0)):e}},{key:"componentDidMount",value:function(){Object(R.addFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9),document.addEventListener("mousedown",this.handleOnClickOutside)}},{key:"componentWillUnmount",value:function(){Object(R.removeFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId)),document.removeEventListener("mousedown",this.handleOnClickOutside)}},{key:"handleOpen",value:function(){this.setState({open:!this.state.open})}},{key:"handleClose",value:function(){this.setState({open:!1})}},{key:"handleMouseLeave",value:function(){this.setState({isMouseOutside:!0})}},{key:"handleMouseEnter",value:function(){this.setState({isMouseOutside:!1})}},{key:"handleReset",value:function(){this.props.resetPopoverTitle||this.props.resetPopoverDescription?this.setState({showResetPopover:!0}):this.props.onReset()}},{key:"handleOnClickOutside",value:function(e){var t,n,a,r;(null===(t=window.wp)||void 0===t?void 0:null===(n=t.media)||void 0===n?void 0:null===(a=n.frame)||void 0===a?void 0:null===(r=a.el)||void 0===r?void 0:r.clientHeight)||this.state.isMouseOutside&&e.target.closest("button")!==this.buttonRef.current&&e.target.closest("button")!==this.buttonRefColorPreview.current&&e.target.closest("button")!==this.buttonRefImagePreview.current&&(e.target.closest(".ugb-button-icon-control__popover")||this.handleClose())}},{key:"render",value:function(){var e=this;return wp.element.createElement(l.BaseControl,{help:this.props.help,label:!this.props.onToggle&&wp.element.createElement("label",{htmlFor:"ugb-button-icon-control__edit-".concat(this.instanceId)},this.props.label),id:"ugb-button-icon-control",className:p()("ugb-button-icon-control",this.props.className)},this.props.onToggle&&wp.element.createElement(l.ToggleControl,{label:this.props.label,checked:this.props.checked,onChange:this.props.onToggle}),wp.element.createElement("div",{className:"ugb-button-icon-control__wrapper"},this.props.allowReset&&wp.element.createElement(i.Fragment,null,wp.element.createElement(l.Button,{onClick:this.handleReset,className:"ugb-button-icon-control__reset",label:Object(s.__)("Reset",o.i18n),icon:"image-rotate"}),this.state.showResetPopover&&wp.element.createElement(l.Popover,{onClickOutside:function(){return e.setState({showResetPopover:!1})},focusOnMount:!1,position:"bottom center"},wp.element.createElement("div",{className:"components-color-picker__body"},wp.element.createElement("h4",{className:"ugb-button-icon-control__text-title"},this.props.resetPopoverTitle),wp.element.createElement("p",{className:"components-base-control__help"},this.props.resetPopoverDescription),wp.element.createElement(l.ButtonGroup,null,wp.element.createElement(l.Button,{onClick:function(){e.setState({showResetPopover:!1}),e.props.onReset()},isDestructive:!0,isSecondary:!0,isSmall:!0},Object(s.__)("Reset",o.i18n)),wp.element.createElement(l.Button,{onClick:function(){return e.setState({showResetPopover:!1})},isSmall:!0},Object(s.__)("Cancel",o.i18n)))))),this.props.hasImagePreview&&wp.element.createElement(es,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(Ko,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),wp.element.createElement(l.Button,{onClick:this.handleOpen,className:"ugb-button-icon-control__edit",label:Object(s.__)("Edit",o.i18n),isSecondary:!0,icon:"edit",id:"ugb-button-icon-control__edit-".concat(this.instanceId),ref:this.buttonRef}),this.state.open&&wp.element.createElement(l.Popover,{className:"ugb-button-icon-control__popover",focusOnMount:"container",anchorRef:this.buttonRef.current,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter},wp.element.createElement(l.PanelBody,null,(void 0!==this.props.popoverLabel?this.props.popoverLabel:this.props.label)&&wp.element.createElement("h2",{className:"components-panel__body-title"},this.props.popoverLabel||this.props.label),this.props.children))))}}])&&rs(n.prototype,a),r&&rs(n,r),t}();us.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:function(){},checked:!1,onToggle:void 0,toggleOnSetAttributes:[],toggleAttributeName:"",colorPreview:null,imageUrlPreview:"",hasColorPreview:!1,hasImagePreview:!1};var cs=us,fs=function(e){var t=re(e.imageData,e.size||"full"),n=e.widthMax||1e3,a=0;e.imageData&&e.onChangeSize&&t&&(n=t.width,a=t.height);var r=!!t&&t.width===t.height;return wp.element.createElement(i.Fragment,null,e.onChangeImage&&wp.element.createElement(hn,{label:Object(s.__)("Image",o.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:"",width:"",height:""})},onChange:function(t){var n=t.url,a=t.width,r=t.height,i=e.size||"full";t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChangeImage({id:t.id,url:n,width:a,height:r})}}),e.onChangeShape&&wp.element.createElement(In,{isSquareImage:r,shape:e.shape,shapeFlipX:e.shapeFlipX,shapeFlipY:e.shapeFlipY,shapeStretch:e.shapeStretch,onChangeShape:e.onChangeShape,onChangeShapeFlipX:e.onChangeShapeFlipX,onChangeShapeFlipY:e.onChangeShapeFlipY,onChangeShapeStretch:e.onChangeShapeStretch}),wp.element.createElement(Go,null),e.onChangeAlt&&wp.element.createElement(wn,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(zn,{label:Object(s.__)("Image Size",o.i18n),value:e.size,onChange:function(t){var n=re(e.imageData,t||"full"),a="",r="",i=e.url;n&&(a=n.width,r=n.height,i=n.source_url),e.onChangeSize(t,i,a,r)}}),e.onChangeWidth&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,null,wp.element.createElement(ba,{label:Object(s.__)("Image Width",o.i18n),value:e.width,placeholder:e.placeholder,max:n,min:0,onChange:function(t){var r=a/n;e.onChangeWidth("number"==typeof t?t:"","number"==typeof t?parseInt(r*t,10):"")},allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(ba,{label:Object(s.__)("Image Width",o.i18n),value:e.tabletWidth,max:n,min:0,onChange:e.onChangeTabletWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(ba,{label:Object(s.__)("Image Width",o.i18n),value:e.mobileWidth,max:n,min:0,onChange:e.onChangeMobileWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"}))),e.onChangeSquare&&wp.element.createElement(i.Fragment,null,("number"==typeof e.width||e.width)&&wp.element.createElement(Od,null,wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Force square image",o.i18n),checked:e.square,onChange:e.onChangeSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.tabletWidth||e.tabletWidth)&&wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Force square image",o.i18n),checked:e.tabletSquare,onChange:e.onChangeTabletSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.mobileWidth||e.mobileWidth)&&wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Force square image",o.i18n),checked:e.mobileSquare,onChange:e.onChangeMobileSquare,className:"ugb--help-tip-image-square"}))),e.onChangeBorderRadius&&""===e.shape&&wp.element.createElement(ba,{label:Object(s.__)("Border Radius",o.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:100,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-border-radius"}),e.onChangeShadow&&""===e.shape&&wp.element.createElement(ba,{label:Object(s.__)("Shadow / Outline",o.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-shadow"}),e.onChangeBlendMode&&wp.element.createElement(cn,{label:Object(s.__)("Blend Mode",o.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};fs.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id,e.width,e.height},shape:"",onChangeShape:function(){},shapeStretch:"",onChangeShapeStretch:function(){},alt:"",onChangeAlt:function(){},size:"large",onChangeSize:function(){},widthMax:1e3,width:"",tabletWidth:"",mobileWidth:"",onChangeWidth:function(){},onChangeTabletWidth:function(){},onChangeMobileWidth:function(){},square:"",tabletSquare:"",mobileSquare:"",onChangeSquare:function(){},onChangeTabletSquare:function(){},onChangeMobileSquare:function(){},borderRadius:"",onChangeBorderRadius:function(){},shadow:"",onChangeShadow:function(){},blendMode:"",onChangeBlendMode:function(){}};var ps=Object(dt.compose)(Object(ne.withSelect)(function(e,t){var n=e("core").getMedia;return ie(t.id,e),{imageData:t.id?n(t.id):null}}))(fs);function ds(){return(ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ms=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(ps,ds({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id,l=e.width,o=e.height;t((gs(a={},n("Url"),r),gs(a,n("Id"),i),gs(a,n("Width"),l),gs(a,n("Height"),o),a))},alt:a("Alt"),onChangeAlt:function(e){return t(gs({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,r,i){var l;t((gs(l={},n("Size"),e),gs(l,n("Url"),a),gs(l,n("Width"),r),gs(l,n("Height"),i),l))},shape:a("Shape"),onChangeShape:function(e){return t(gs({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(gs({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(gs({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(gs({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(gs({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var r;t((gs(r={},n("Width"),e),gs(r,n("Height"),a),r))},onChangeTabletWidth:function(e){return t(gs({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(gs({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(gs({},n("Square"),e))},onChangeTabletSquare:function(e){return t(gs({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(gs({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(gs({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(gs({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(gs({},n("BlendMode"),e))}},e))};ms.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var bs=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeImage&&wp.element.createElement(hn,{label:Object(s.__)("Image",o.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:""})},onChange:function(t){var n=t.url,a=e.size||"full";t.sizes[a]&&(n=t.sizes[a].url),e.onChangeImage({id:t.id,url:n})}}),e.onChangeSize&&wp.element.createElement(zn,{label:Object(s.__)("Image Size",o.i18n),value:e.size,onChange:function(t){e.onChangeSize(t,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=le(e)||ie(e,ne.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""}(e.id,t||"full"))},className:"ugb--help-tip-image-size"}),e.onChangeBackgroundPosition&&wp.element.createElement(va,{label:Object(s.__)("Background Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"}),e.onChangeBackgroundRepeat&&wp.element.createElement(va,{label:Object(s.__)("Background Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"}),e.onChangeBackgroundSize&&wp.element.createElement(va,{label:Object(s.__)("Background Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"}),e.onChangeBackgroundSize&&"custom"===e.backgroundSize&&wp.element.createElement(ba,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%"],min:[0,0],max:[1e3,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0}))};bs.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id},size:"",onChangeSize:function(){},backgroundPosition:"",onChangeBackgroundPosition:function(){},backgroundRepeat:"",onChangeBackgroundRepeat:function(){},backgroundSize:"",onChangeBackgroundSize:function(){},backgroundCustomSizeUnit:"",onChangeBackgroundCustomSizeUnit:function(){},backgroundCustomSize:"",onChangeBackgroundCustomSize:function(){}};var hs=Object(dt.compose)(Object(ne.withSelect)(function(e,t){var n=e("core").getMedia;return ie(t.id,e),{imageData:t.id?n(t.id):null}}))(bs);function vs(){return(vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ws=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(hs,vs({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id;t((ys(a={},n("Url"),r),ys(a,n("Id"),i),a))},size:a("Size"),onChangeSize:function(e,a){var r;t((ys(r={},n("Size"),e),ys(r,n("Url"),a),r))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(ys({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(ys({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(ys({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(ys({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(ys({},n("BackgroundCustomSizeUnit"),e))}},e))};ws.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function ks(){return(ks=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Os=function(e){var t=Object(i.useMemo)(function(){return"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder(H(e.htmlTag,!0))):e.fontSize||e.placeholder||H(e.htmlTag,!0)},[e.htmlTag,e.fontSize]);return wp.element.createElement(i.Fragment,null,wp.element.createElement(cs,{label:e.label,popoverLabel:e.popoverLabel,onReset:e.onReset,allowReset:e.fontFamily||e.fontSize||e.tabletFontSize||e.mobileFontSize||e.fontWeight||e.textTransform||e.lineHeight||e.tabletLineHeight||e.mobileLineHeight||e.letterSpacing,resetPopoverTitle:e.resetPopoverTitle,resetPopoverDescription:e.resetPopoverDescription,className:e.className},e.onChangeFontFamily&&wp.element.createElement(br,{label:Object(s.__)("Font Family",o.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,className:"ugb--help-tip-typography-family"}),e.onChangeFontSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,null,wp.element.createElement(pr,ks({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(pr,ks({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletfontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(pr,ks({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobilefontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))),e.onChangeFontWeight&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Weight",o.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Normal",o.i18n),value:"normal"},{label:Object(s.__)("Bold",o.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,className:"ugb--help-tip-typography-weight"}),e.onChangeTextTransform&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Transform",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Uppercase",o.i18n),value:"uppercase"},{label:Object(s.__)("Lowercase",o.i18n),value:"lowercase"},{label:Object(s.__)("Capitalize",o.i18n),value:"capitalize"},{label:Object(s.__)("None",o.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,className:"ugb--help-tip-typography-transform"}),e.onChangeLineHeight&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,null,wp.element.createElement(ba,{label:Object(s.__)("Line-Height",o.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.lineHeight,onChange:e.onChangeLineHeight,unit:e.lineHeightUnit,onChangeUnit:e.onChangeLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(ba,{label:Object(s.__)("Line-Height",o.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.tabletLineHeight,onChange:e.onChangeTabletLineHeight,unit:e.tabletLineHeightUnit,onChangeUnit:e.onChangeTabletLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(ba,{label:Object(s.__)("Line-Height",o.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.mobileLineHeight,onChange:e.onChangeMobileLineHeight,unit:e.mobileLineHeightUnit,onChangeUnit:e.onChangeMobileLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"}))),e.onChangeLetterSpacing&&wp.element.createElement(ba,{label:Object(s.__)("Letter Spacing",o.i18n),min:-5,max:10,step:.1,allowReset:!0,onChange:e.onChangeLetterSpacing,value:e.letterSpacing,placeholder:"0",className:"ugb--help-tip-typography-letter-spacing"})),e.showSecondFontSize&&e.onChangeFontSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,null,wp.element.createElement(pr,ks({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(pr,ks({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletfontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(pr,ks({label:Object(s.__)("Size",o.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobilefontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))))};Os.defaultProps={label:Object(s.__)("Typography",o.i18n),popoverLabel:void 0,className:"ugb--help-tip-typography",showSecondFontSize:!0,fontFamily:"",fontSize:"",tabletFontSize:"",mobileFontSize:"",fontSizeUnit:"px",tabletFontSizeUnit:"px",mobileFontSizeUnit:"px",fontWeight:"",textTransform:"",lineHeight:"",tabletLineHeight:"",mobileLineHeight:"",lineHeightUnit:"em",tabletLineHeightUnit:"em",mobileLineHeightUnit:"em",letterSpacing:"",fontSizeProps:{},resetPopoverTitle:"",resetPopoverDescription:"",placeholder:"",htmlTag:"p",onReset:function(){},onChangeFontFamily:function(){},onChangeFontSize:function(){},onChangeTabletFontSize:function(){},onChangeMobileFontSize:function(){},onChangeFontSizeUnit:function(){},onChangeTabletFontSizeUnit:function(){},onChangeMobileFontSizeUnit:function(){},onChangeFontWeight:function(){},onChangeTextTransform:function(){},onChangeLineHeight:function(){},onChangeTabletLineHeight:function(){},onChangeMobileLineHeight:function(){},onChangeLineHeightUnit:function(){},onChangeTabletLineHeightUnit:function(){},onChangeMobileLineHeightUnit:function(){},onChangeLetterSpacing:function(){}};var Cs=Os;function Ss(){return(Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function _s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xs=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Cs,Ss({fontFamily:e.blockAttributes[n("FontFamily")]||"",fontSize:e.blockAttributes[n("FontSize")]||"",tabletFontSize:e.blockAttributes[n("TabletFontSize")]||"",mobileFontSize:e.blockAttributes[n("MobileFontSize")]||"",fontSizeUnit:e.blockAttributes[n("FontSizeUnit")]||"px",tabletFontSizeUnit:e.blockAttributes[n("TabletFontSizeUnit")]||"px",mobileFontSizeUnit:e.blockAttributes[n("MobileFontSizeUnit")]||"px",fontWeight:e.blockAttributes[n("FontWeight")]||"",textTransform:e.blockAttributes[n("TextTransform")]||"",letterSpacing:e.blockAttributes[n("LetterSpacing")]||"",lineHeight:e.blockAttributes[n("LineHeight")]||"",tabletLineHeight:e.blockAttributes[n("TabletLineHeight")]||"",mobileLineHeight:e.blockAttributes[n("MobileLineHeight")]||"",lineHeightUnit:e.blockAttributes[n("LineHeightUnit")]||"em",tabletLineHeightUnit:e.blockAttributes[n("TabletLineHeightUnit")]||"em",mobileLineHeightUnit:e.blockAttributes[n("MobileLineHeightUnit")]||"em",onChangeFontFamily:function(e){return t(_s({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(_s({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(_s({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(_s({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(_s({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(_s({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(_s({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(_s({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(_s({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(_s({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(_s({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(_s({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(_s({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(_s({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(_s({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(_s({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((_s(e={},n("FontFamily"),""),_s(e,n("FontSize"),""),_s(e,n("TabletFontSize"),""),_s(e,n("MobileFontSize"),""),_s(e,n("FontSizeUnit"),"px"),_s(e,n("TabletFontSizeUnit"),"px"),_s(e,n("MobileFontSizeUnit"),"px"),_s(e,n("FontWeight"),""),_s(e,n("TextTransform"),""),_s(e,n("LetterSpacing"),""),_s(e,n("LineHeight"),""),_s(e,n("TabletLineHeight"),""),_s(e,n("MobileLineHeight"),""),_s(e,n("LineHeightUnit"),"em"),_s(e,n("TabletLineHeightUnit"),"em"),_s(e,n("MobileLineHeightUnit"),"em"),e))}},e))};xs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Es=xs,js=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeBackgroundColorType&&wp.element.createElement(l.BaseControl,{id:"ugb-background-color-type",className:"ugb--help-tip-background-color-type"},wp.element.createElement(ur,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&wp.element.createElement(vt,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),e.labelBackgroundColor,1):e.labelBackgroundColor,value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColorOpacity&&"gradient"!==e.backgroundColorType&&!e.backgroundMediaURL&&!e.tabletBackgroundMediaURL&&!e.mobileBackgroundMediaURL&&wp.element.createElement(ba,{label:Object(s.__)("Background Color Opacity",o.i18n),value:e.backgroundColorOpacity,onChange:e.onChangeBackgroundColorOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-background-color-opacity"}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&wp.element.createElement(vt,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),e.labelBackgroundColor,2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&wp.element.createElement(cs,{label:Object(s.__)("Adv. Gradient Color Settings",o.i18n),onReset:e.onResetAdvancedGradient,allowReset:""!==e.backgroundGradientDirection&&90!==e.backgroundGradientDirection||""!==e.backgroundGradientLocation1&&0!==e.backgroundGradientLocation1||""!==e.backgroundGradientLocation2&&100!==e.backgroundGradientLocation2||e.backgroundGradientBlendMode},e.onChangeBackgroundGradientDirection&&wp.element.createElement(ba,{label:Object(s.__)("Gradient Direction (degrees)",o.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeBackgroundGradientLocation1&&wp.element.createElement(ba,{label:Object(s.sprintf)(Object(s.__)("Color %d Location",o.i18n),1),value:e.backgroundGradientLocation1,onChange:e.onChangeBackgroundGradientLocation1,min:0,max:100,step:1,allowReset:!0,placeholder:"0",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientLocation2&&wp.element.createElement(ba,{label:Object(s.sprintf)(Object(s.__)("Color %d Location",o.i18n),2),value:e.backgroundGradientLocation2,onChange:e.onChangeBackgroundGradientLocation2,min:0,max:100,step:1,allowReset:!0,placeholder:"100",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientBlendMode&&wp.element.createElement(cn,{label:Object(s.__)("Background Gradient Blend Mode",o.i18n),value:e.backgroundGradientBlendMode,onChange:e.onChangeBackgroundGradientBlendMode,className:"ugb--help-tip-background-blend-mode"})),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&e.onChangeBackgroundMedia&&wp.element.createElement(Go,null),e.onChangeBackgroundMedia&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,null,wp.element.createElement(hn,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",o.i18n):Object(s.__)("Background Image",o.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",o.i18n):"",onRemove:function(){return e.onChangeBackgroundMedia({url:"",id:""})},onChange:e.onChangeBackgroundMedia,imageID:e.backgroundMediaID,imageURL:e.backgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(hn,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",o.i18n):Object(s.__)("Background Image",o.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",o.i18n):"",onRemove:function(){return e.onChangeTabletBackgroundMedia({url:"",id:""})},onChange:e.onChangeTabletBackgroundMedia,imageID:e.tabletBackgroundMediaID,imageURL:e.tabletBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(hn,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",o.i18n):Object(s.__)("Background Image",o.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",o.i18n):"",onRemove:function(){return e.onChangeMobileBackgroundMedia({url:"",id:""})},onChange:e.onChangeMobileBackgroundMedia,imageID:e.mobileBackgroundMediaID,imageURL:e.mobileBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]}))),e.onChangeBackgroundTintStrength&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(ba,{label:Object(s.__)("Background Media Tint Strength",o.i18n),value:e.backgroundTintStrength,onChange:function(t){var n=void 0===t||""===t;""!==e.backgroundColor||n?"#000000"===e.backgroundColor&&n?e.onChangeBackgroundTintStrength(t,""):e.onChangeBackgroundTintStrength(t,e.backgroundColor):e.onChangeBackgroundTintStrength(t,"#000000")},min:0,max:10,step:1,allowReset:!0,placeholder:e.backgroundColor?"5":"0",className:"ugb--help-tip-background-tint"}),e.onChangeFixedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&!([e.backgroundMediaURL,e.tabletBackgroundMediaURL,e.mobileBackgroundMediaURL].filter(function(e){return e}).filter(Te).length>0)&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Fixed Background",o.i18n),checked:e.fixedBackground,onChange:e.onChangeFixedBackground,className:"ugb--help-tip-background-fixed"}),e.hasAdvancedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(cs,{label:Object(s.__)("Adv. Background Image Settings",o.i18n),onReset:e.onResetAdvancedBackground,allowReset:e.backgroundPosition||e.tabletBackgroundPosition||e.mobileBackgroundPosition||e.backgroundRepeat||e.tabletBackgroundRepeat||e.mobileBackgroundRepeat||e.backgroundSize||e.tabletBackgroundSize||e.mobileBackgroundSize||e.backgroundImageBlendMode},wp.element.createElement(Od,null,wp.element.createElement(va,{label:Object(s.__)("Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(va,{label:Object(s.__)("Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.tabletBackgroundPosition,onChange:e.onChangeTabletBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(va,{label:Object(s.__)("Image Position",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Top Left",o.i18n),value:"top left"},{label:Object(s.__)("Top Center",o.i18n),value:"top center"},{label:Object(s.__)("Top Right",o.i18n),value:"top right"},{label:Object(s.__)("Center Left",o.i18n),value:"center left"},{label:Object(s.__)("Center Center",o.i18n),value:"center center"},{label:Object(s.__)("Center Right",o.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",o.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",o.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",o.i18n),value:"bottom right"}],value:e.mobileBackgroundPosition,onChange:e.onChangeMobileBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(Od,null,wp.element.createElement(va,{label:Object(s.__)("Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(va,{label:Object(s.__)("Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.tabletBackgroundRepeat,onChange:e.onChangeTabletBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(va,{label:Object(s.__)("Image Repeat",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("No-Repeat",o.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",o.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",o.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",o.i18n),value:"repeat-y"}],value:e.mobileBackgroundRepeat,onChange:e.onChangeMobileBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(Od,null,wp.element.createElement(va,{label:Object(s.__)("Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(va,{label:Object(s.__)("Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.tabletBackgroundSize,onChange:e.onChangeTabletBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(va,{label:Object(s.__)("Image Size",o.i18n),options:[{label:Object(s.__)("Default",o.i18n),value:""},{label:Object(s.__)("Auto",o.i18n),value:"auto"},{label:Object(s.__)("Cover",o.i18n),value:"cover"},{label:Object(s.__)("Contain",o.i18n),value:"contain"},{label:Object(s.__)("Custom",o.i18n),value:"custom"}],value:e.mobileBackgroundSize,onChange:e.onChangeMobileBackgroundSize,className:"ugb--help-tip-background-image-size"})),"custom"===e.backgroundSize&&wp.element.createElement(Od,null,wp.element.createElement(ba,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0})),"custom"===e.tabletBackgroundSize&&wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(ba,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.tabletBackgroundCustomSizeUnit,onChangeUnit:e.onChangeTabletBackgroundCustomSizeUnit,value:e.tabletBackgroundCustomSize,onChange:e.onChangeTabletBackgroundCustomSize,allowReset:!0})),"custom"===e.mobileBackgroundSize&&wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(ba,{label:Object(s.__)("Custom Size",o.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.mobileBackgroundCustomSizeUnit,onChangeUnit:e.onChangeMobileBackgroundCustomSizeUnit,value:e.mobileBackgroundCustomSize,onChange:e.onChangeMobileBackgroundCustomSize,allowReset:!0})),e.onChangeBackgroundImageBlendMode&&wp.element.createElement(cn,{label:Object(s.__)("Image Blend Mode",o.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};js.defaultProps={backgroundColorType:"",backgroundColor:"",backgroundColorOpacity:"",backgroundColor2:"",backgroundMediaID:"",backgroundMediaURL:"",tabletBackgroundMediaID:"",tabletBackgroundMediaURL:"",mobileBackgroundMediaID:"",mobileBackgroundMediaURL:"",backgroundTintStrength:"",fixedBackground:"",onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColorOpacity:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundMedia:function(e){e.url,e.id},onChangeTabletBackgroundMedia:function(e){e.url,e.id},onChangeMobileBackgroundMedia:function(e){e.url,e.id},onChangeBackgroundTintStrength:function(){},onChangeFixedBackground:function(){},labelBackgroundColorType:Object(s.__)("Background Color Type",o.i18n),labelBackgroundColor:Object(s.__)("Background Color",o.i18n),hasAdvancedGradient:!0,backgroundGradientDirection:"",backgroundGradientBlendMode:"",backgroundGradientLocation1:0,backgroundGradientLocation2:100,onResetAdvancedGradient:function(){},onChangeBackgroundGradientDirection:function(){},onChangeBackgroundGradientBlendMode:function(){},onChangeBackgroundGradientLocation1:function(){},onChangeBackgroundGradientLocation2:function(){},hasAdvancedBackground:!0,backgroundMediaAllowVideo:!0,backgroundPosition:"",tabletBackgroundPosition:"",mobileBackgroundPosition:"",backgroundRepeat:"",tabletBackgroundRepeat:"",mobileBackgroundRepeat:"",backgroundSize:"",tabletBackgroundSize:"",mobileBackgroundSize:"",backgroundCustomSize:"",tabletBackgroundCustomSize:"",mobileBackgroundCustomSize:"",backgroundCustomSizeUnit:"%",tabletBackgroundCustomSizeUnit:"%",mobileBackgroundCustomSizeUnit:"%",backgroundImageBlendMode:"",onResetAdvancedBackground:function(){},onChangeBackgroundPosition:function(){},onChangeTabletBackgroundPosition:function(){},onChangeMobileBackgroundPosition:function(){},onChangeBackgroundRepeat:function(){},onChangeTabletBackgroundRepeat:function(){},onChangeMobileBackgroundRepeat:function(){},onChangeBackgroundSize:function(){},onChangeTabletBackgroundSize:function(){},onChangeMobileBackgroundSize:function(){},onChangeBackgroundCustomSize:function(){},onChangeTabletBackgroundCustomSize:function(){},onChangeMobileBackgroundCustomSize:function(){},onChangeBackgroundCustomSizeUnit:function(){},onChangeTabletBackgroundCustomSizeUnit:function(){},onChangeMobileBackgroundCustomSizeUnit:function(){},onChangeBackgroundImageBlendMode:function(){}};var Ps=js;function Ts(){return(Ts=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Bs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ms=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(Ps,Ts({backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColorOpacity:e.blockAttributes[n("BackgroundColorOpacity")],backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundMediaID:e.blockAttributes[n("BackgroundMediaID")]||"",backgroundMediaURL:e.blockAttributes[n("BackgroundMediaURL")]||"",tabletBackgroundMediaID:e.blockAttributes[n("TabletBackgroundMediaID")]||"",tabletBackgroundMediaURL:e.blockAttributes[n("TabletBackgroundMediaURL")]||"",mobileBackgroundMediaID:e.blockAttributes[n("MobileBackgroundMediaID")]||"",mobileBackgroundMediaURL:e.blockAttributes[n("MobileBackgroundMediaURL")]||"",backgroundTintStrength:e.blockAttributes[n("BackgroundTintStrength")],fixedBackground:e.blockAttributes[n("FixedBackground")]||"",onChangeBackgroundColorType:function(e){return t(Bs({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(Bs({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(Bs({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(Bs({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Bs(a={},n("BackgroundMediaURL"),r),Bs(a,n("BackgroundMediaID"),i),a))},onChangeTabletBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Bs(a={},n("TabletBackgroundMediaURL"),r),Bs(a,n("TabletBackgroundMediaID"),i),a))},onChangeMobileBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Bs(a={},n("MobileBackgroundMediaURL"),r),Bs(a,n("MobileBackgroundMediaID"),i),a))},onChangeBackgroundTintStrength:function(e,a){var r;t((Bs(r={},n("BackgroundTintStrength"),e),Bs(r,n("BackgroundColor"),a),r))},onChangeFixedBackground:function(e){return t(Bs({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(Bs({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(Bs({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(Bs({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(Bs({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((Bs(e={},n("BackgroundGradientDirection"),""),Bs(e,n("BackgroundGradientBlendMode"),""),Bs(e,n("BackgroundGradientLocation1"),""),Bs(e,n("BackgroundGradientLocation2"),""),e))},backgroundPosition:e.blockAttributes[n("BackgroundPosition")]||"",tabletBackgroundPosition:e.blockAttributes[n("TabletBackgroundPosition")]||"",mobileBackgroundPosition:e.blockAttributes[n("MobileBackgroundPosition")]||"",backgroundRepeat:e.blockAttributes[n("BackgroundRepeat")]||"",tabletBackgroundRepeat:e.blockAttributes[n("TabletBackgroundRepeat")]||"",mobileBackgroundRepeat:e.blockAttributes[n("MobileBackgroundRepeat")]||"",backgroundSize:e.blockAttributes[n("BackgroundSize")]||"",tabletBackgroundSize:e.blockAttributes[n("TabletBackgroundSize")]||"",mobileBackgroundSize:e.blockAttributes[n("MobileBackgroundSize")]||"",backgroundCustomSize:e.blockAttributes[n("BackgroundCustomSize")]||"",tabletBackgroundCustomSize:e.blockAttributes[n("TabletBackgroundCustomSize")]||"",mobileBackgroundCustomSize:e.blockAttributes[n("MobileBackgroundCustomSize")]||"",backgroundCustomSizeUnit:e.blockAttributes[n("BackgroundCustomSizeUnit")]||"%",tabletBackgroundCustomSizeUnit:e.blockAttributes[n("TabletBackgroundCustomSizeUnit")]||"%",mobileBackgroundCustomSizeUnit:e.blockAttributes[n("MobileBackgroundCustomSizeUnit")]||"%",backgroundImageBlendMode:e.blockAttributes[n("BackgroundImageBlendMode")]||"",onChangeBackgroundPosition:function(e){return t(Bs({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(Bs({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(Bs({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(Bs({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(Bs({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(Bs({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(Bs({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(Bs({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(Bs({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(Bs({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(Bs({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(Bs({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(Bs({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(Bs({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(Bs({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(Bs({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((Bs(e={},n("BackgroundPosition"),""),Bs(e,n("TabletBackgroundPosition"),""),Bs(e,n("MobileBackgroundPosition"),""),Bs(e,n("BackgroundRepeat"),""),Bs(e,n("TabletBackgroundRepeat"),""),Bs(e,n("MobileBackgroundRepeat"),""),Bs(e,n("BackgroundSize"),""),Bs(e,n("TabletBackgroundSize"),""),Bs(e,n("MobileBackgroundSize"),""),Bs(e,n("BackgroundCustomSize"),""),Bs(e,n("TabletBackgroundCustomSize"),""),Bs(e,n("MobileBackgroundCustomSize"),""),Bs(e,n("BackgroundCustomSizeUnit"),"%"),Bs(e,n("TabletBackgroundCustomSizeUnit"),"%"),Bs(e,n("MobileBackgroundCustomSizeUnit"),"%"),Bs(e,n("BackgroundImageBlendMode"),""),e))}},e))};Ms.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ns=n(55),Is=n.n(Ns),As=n(56),Ds=n.n(As),Rs=n(57),zs=n.n(Rs),Ls=n(58),Fs=n.n(Ls);function Us(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Hs=function(e){var t=e.design?e.design:"basic",n=e.size?e.size:"normal",a="basic"===t;return wp.element.createElement(i.Fragment,null,e.onChangeUrl&&wp.element.createElement(it,{label:Object(s.__)("Link / URL",o.i18n),value:e.url,onChange:e.onChangeUrl,placeholder:"http://"}),e.onChangeUrl&&e.onChangeNewTab&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Open link in new tab",o.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),e.onChangeUrl&&e.onChangeNoFollow&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Nofollow link",o.i18n),checked:e.noFollow,onChange:e.onChangeNoFollow}),e.onChangeUrl&&wp.element.createElement(Go,null),e.onChangeDesign&&wp.element.createElement(ql,{label:Object(s.__)("Design",o.i18n),selected:t,options:[{label:Object(s.__)("Basic",o.i18n),value:"basic",image:Is.a},{label:Object(s.__)("Ghost",o.i18n),value:"ghost",image:Ds.a},{label:Object(s.__)("Plain",o.i18n),value:"plain",image:Fs.a}].concat(Us(e.onChangeUseSocialColors?[]:[{label:Object(s.__)("Link",o.i18n),value:"link",image:zs.a}]),Us(Object(R.applyFilters)("stackable.button.edit.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(Go,null),e.onChangeUseSocialColors&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Use social colors",o.i18n),checked:e.useSocialColors,onChange:e.onChangeUseSocialColors}),(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(i.Fragment,null,e.onChangeBackgroundColorType&&a&&wp.element.createElement(l.BaseControl,{id:"button-color-type",className:"ugb--help-tip-button-color-type"},wp.element.createElement(ur,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&"link"!==t&&wp.element.createElement(vt,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),1):Object(s.__)("Button Color",o.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(vt,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(ba,{label:Object(s.__)("Gradient Direction (degrees)",o.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeTextColor&&a&&wp.element.createElement(vt,{label:Object(s.__)("Text Color",o.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(Go,null),e.onChangeHoverGhostToNormal&&"ghost"===t&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Change to Normal Button on Hover",o.i18n),checked:e.hoverGhostToNormal,onChange:e.onChangeHoverGhostToNormal,className:"ugb--help-tip-button-to-normal"}),e.onChangeHoverEffect&&"link"!==t&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Hover Effect",o.i18n),value:e.hoverEffect,onChange:e.onChangeHoverEffect,options:[{value:"",label:Object(s.__)("None",o.i18n)},{value:"lift",label:Object(s.__)("Lift",o.i18n)},{value:"scale",label:Object(s.__)("Scale",o.i18n)},{value:"lift-scale",label:Object(s.__)("Lift & Scale",o.i18n)},{value:"scale-more",label:Object(s.__)("Scale More",o.i18n)},{value:"lift-scale-more",label:Object(s.__)("Lift & Scale More",o.i18n)}],className:"ugb--help-tip-button-hover-effect"}),e.onChangeOpacity&&wp.element.createElement(ba,{label:Object(s.__)("Hover Opacity",o.i18n),value:e.hoverOpacity,onChange:e.onChangeHoverOpacity,min:0,max:1,step:.1,placeholder:"0.8",allowReset:!0,className:"ugb--help-tip-button-hover-opacity"}),e.hasHoverColors&&"link"!==t&&(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(cs,{label:Object(s.__)("Hover Colors",o.i18n),onReset:e.onResetHoverColors,allowReset:e.hoverBackgroundColor||e.hoverBackgroundColor2||e.hoverBackgroundGradientDirection||e.hoverTextColor,className:"ugb--help-tip-button-hover-color"},e.onChangeHoverBackgroundColor&&wp.element.createElement(vt,{label:e.onChangeHoverBackgroundColor&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),1):Object(s.__)("Button Color",o.i18n),value:e.hoverBackgroundColor,onChange:e.onChangeHoverBackgroundColor,className:"ugb--help-tip-button-hover-color"}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(vt,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",o.i18n),Object(s.__)("Button Color",o.i18n),2),value:e.hoverBackgroundColor2,onChange:e.onChangeHoverBackgroundColor2}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(ba,{label:Object(s.__)("Gradient Direction (degrees)",o.i18n),value:e.hoverBackgroundGradientDirection,onChange:e.onChangeHoverBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeHoverTextColor&&("ghost"===t&&e.hoverGhostToNormal||a)&&wp.element.createElement(vt,{label:Object(s.__)("Text Color",o.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(Go,null),e.hasTypography&&"link"!==t&&wp.element.createElement(Es,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,onChangeLineHeight:null,showSecondFontSize:!1,placeholder:e.placeholder}),e.onChangeSize&&(!e.onChangeDesign||"link"!==t)&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Button Size",o.i18n),value:n,options:[{value:"tiny",label:Object(s.__)("Tiny",o.i18n)},{value:"small",label:Object(s.__)("Small",o.i18n)},{value:"normal",label:Object(s.__)("Normal",o.i18n)},{value:"medium",label:Object(s.__)("Medium",o.i18n)},{value:"large",label:Object(s.__)("Large",o.i18n)}],onChange:e.onChangeSize,className:"ugb--help-tip-button-size"}),e.onChangeBorderRadius&&"link"!==t&&"plain"!==t&&wp.element.createElement(ba,{label:Object(s.__)("Border Radius",o.i18n),value:e.borderRadius,min:"0",max:"100",onChange:e.onChangeBorderRadius,allowReset:!0,placeholder:"4",className:"ugb--help-tip-button-border-radius"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(Ic,{label:Object(s.__)("Vertical Padding",o.i18n),top:e.paddingTop,bottom:e.paddingBottom,onChange:e.onChangePaddings,enableLeft:!1,enableRight:!1,placeholder:[8,8],className:"ugb--help-tip-button-vertical-padding"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(Ic,{label:Object(s.__)("Horizontal Padding",o.i18n),right:e.paddingRight,left:e.paddingLeft,onChange:e.onChangePaddings,enableTop:!1,enableBottom:!1,max:100,placeholder:[26,26],className:"ugb--help-tip-button-horizontal-padding"}),e.onChangeBorderWidth&&"ghost"===t&&wp.element.createElement(ba,{label:Object(s.__)("Border Width",o.i18n),value:e.borderWidth,min:"1",max:"6",onChange:e.onChangeBorderWidth,allowReset:!0,placeholder:"2"}),e.onChangeShadow&&(""===t||"basic"===t)&&wp.element.createElement(ba,{label:Object(s.__)("Shadow",o.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-button-shadow"}),e.onChangeOpacity&&wp.element.createElement(ba,{label:Object(s.__)("Opacity",o.i18n),value:e.opacity,onChange:e.onChangeOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0"}),"link"!==t&&wp.element.createElement(Go,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(Eo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(cs,{label:Object(s.__)("Adv. Icon Settings",o.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(ba,{label:Object(s.__)("Icon Size",o.i18n),value:e.iconSize,onChange:e.onChangeIconSize,min:5,max:100,step:1,allowReset:!0}),e.onChangeIconPosition&&wp.element.createElement(l.SelectControl,{label:Object(s.__)("Icon Position",o.i18n),value:e.iconPosition,options:[{value:"",label:Object(s.__)("Left",o.i18n)},{value:"right",label:Object(s.__)("Right",o.i18n)}],onChange:e.onChangeIconPosition}),e.onChangeIconSpacing&&wp.element.createElement(ba,{label:Object(s.__)("Icon Spacing",o.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};Hs.defaultProps={hasTypography:!0,attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},design:"",onChangeDesign:function(){},url:"",newTab:"",noFollow:"",onChangeUrl:function(){},onChangeNewTab:function(){},onChangeNoFollow:function(){},size:"",onChangeSize:function(){},opacity:"",textColor:"",backgroundColorType:"",backgroundColor:"",backgroundColor2:"",backgroundGradientDirection:"",onChangeOpacity:function(){},onChangeTextColor:function(){},onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundGradientDirection:function(){},hasHoverColors:!0,onResetHoverColors:function(){},hoverEffect:"",hoverOpacity:"",hoverTextColor:"",hoverBackgroundColor:"",hoverBackgroundColor2:"",hoverBackgroundGradientDirection:"",hoverGhostToNormal:!1,onChangeHoverEffect:function(){},onChangeHoverOpacity:function(){},onChangeHoverTextColor:function(){},onChangeHoverBackgroundColor:function(){},onChangeHoverBackgroundColor2:function(){},onChangeHoverBackgroundGradientDirection:function(){},onChangeHoverGhostToNormal:function(){},borderRadius:"",onChangeBorderRadius:function(){},borderWidth:"",onChangeBorderWidth:function(){},shadow:"",onChangeShadow:function(){},paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",onChangePaddings:function(){},hasAdvancedIcon:!0,onResetAdvancedIcon:function(){},icon:"",iconSize:"",iconPosition:"",iconSpacing:"",onChangeIcon:function(){},onChangeIconSize:function(){},onChangeIconPosition:function(){},onChangeIconSpacing:function(){},useSocialColors:!0,onChangeUseSocialColors:null};var Vs=Hs;function Gs(){return(Gs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function qs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ws=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(Vs,Gs({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(qs({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",onChangeUrl:function(e){return t(qs({},n("Url"),e))},onChangeNewTab:function(e){return t(qs({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(qs({},n("NoFollow"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(qs({},n("Size"),e))},opacity:e.blockAttributes[n("Opacity")]||"",textColor:e.blockAttributes[n("TextColor")]||"",backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundGradientDirection:a("BackgroundGradientDirection"),onChangeOpacity:function(e){return t(qs({},n("Opacity"),e))},onChangeTextColor:function(e){return t(qs({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(qs({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(qs({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(qs({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(qs({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((qs(e={},n("HoverBackgroundColor"),""),qs(e,n("HoverBackgroundColor2"),""),qs(e,n("HoverBackgroundGradientDirection"),""),qs(e,n("HoverTextColor"),""),e))},hoverEffect:e.blockAttributes[n("HoverEffect")]||"",hoverOpacity:e.blockAttributes[n("HoverOpacity")]||"",hoverTextColor:e.blockAttributes[n("HoverTextColor")]||"",hoverBackgroundColor:e.blockAttributes[n("HoverBackgroundColor")]||"",hoverBackgroundColor2:e.blockAttributes[n("HoverBackgroundColor2")]||"",hoverBackgroundGradientDirection:a("HoverBackgroundGradientDirection"),hoverGhostToNormal:e.blockAttributes[n("HoverGhostToNormal")]||"",onChangeHoverEffect:function(e){return t(qs({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(qs({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(qs({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(qs({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(qs({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(qs({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(qs({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(qs({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(qs({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(qs({},n("Shadow"),e))},paddingTop:a("PaddingTop"),paddingRight:a("PaddingRight"),paddingBottom:a("PaddingBottom"),paddingLeft:a("PaddingLeft"),onChangePaddings:function(e){var a={};void 0!==e.top&&(a[n("PaddingTop")]=""!==e.top?parseInt(e.top,10):""),void 0!==e.right&&(a[n("PaddingRight")]=""!==e.right?parseInt(e.right,10):""),void 0!==e.bottom&&(a[n("PaddingBottom")]=""!==e.bottom?parseInt(e.bottom,10):""),void 0!==e.left&&(a[n("PaddingLeft")]=""!==e.left?parseInt(e.left,10):""),t(a)},icon:e.blockAttributes[n("Icon")]||"",onChangeIcon:function(e){return t(qs({},n("Icon"),e))},onResetAdvancedIcon:function(){var e;t((qs(e={},n("IconSize"),""),qs(e,n("IconPosition"),""),qs(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(qs({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(qs({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(qs({},n("IconSpacing"),e))}},e))};Ws.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ks=Ws,$s=n(59),Ys=n.n($s),Qs=n(60),Xs=n.n(Qs),Js=n(61),Zs=n.n(Js);function eu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var tu=function(e){var t=e.design?e.design:"basic",n="shaped"===t||"outlined"===t;return wp.element.createElement(i.Fragment,null,e.onChangeIcon&&wp.element.createElement(Eo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(ql,{label:Object(s.__)("Design",o.i18n),selected:e.design,columns:3,options:[{label:Object(s.__)("Plain",o.i18n),value:"plain",image:Ys.a},{label:Object(s.__)("Shaped",o.i18n),value:"shaped",image:Xs.a},{label:Object(s.__)("Outlined",o.i18n),value:"outlined",image:Zs.a}].concat(eu(Object(R.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),o.showProNotice&&wp.element.createElement(Qu,{title:Object(s.__)("Say Hello to Gorgeous Icons 👋",o.i18n),description:Object(s.__)("Liven up your icons with gradient fills, multiple colors and background shapes. This feature is only available on Stackable Premium",o.i18n)}),o.showProNotice&&wp.element.createElement(l.BaseControl,{label:Object(s.__)("Icon Color Type",o.i18n),id:"icon-color-type"},wp.element.createElement(ur,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n),className:"ugb--is-premium",disabled:!0},{value:"multicolor",title:Object(s.__)("Multicolor",o.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(R.applyFilters)("stackable.icon-controls.edit.color",wp.element.createElement(i.Fragment,null,e.onChangeColor&&wp.element.createElement(vt,{label:Object(s.__)("Icon Color",o.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(Go,null),n&&e.onChangeBackgroundColor&&wp.element.createElement(i.Fragment,null,o.showProNotice&&e.onChangeBackgroundColorType&&"outlined"!==e.design&&wp.element.createElement(l.BaseControl,{label:Object(s.__)("Icon Shape / Outline Color",o.i18n),id:"icon-shape-color-type"},wp.element.createElement(ur,{controls:[{value:"",title:Object(s.__)("Single",o.i18n)},{value:"gradient",title:Object(s.__)("Gradient",o.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(R.applyFilters)("stackable.icon-controls.edit.background-color",wp.element.createElement(i.Fragment,null,e.onChangeBackgroundColor&&wp.element.createElement(vt,{label:Object(s.__)("Icon Shape / Outline Color",o.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(ba,{label:"shaped"===e.design?Object(s.__)("Icon Shape Border Radius",o.i18n):Object(s.__)("Outline Border Radius",o.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:50,step:1,allowReset:!0,placeholder:50}),e.onChangePadding&&wp.element.createElement(ba,{label:"shaped"===e.design?Object(s.__)("Icon Shape Padding",o.i18n):Object(s.__)("Outline Padding",o.i18n),value:e.padding,onChange:e.onChangePadding,min:0,max:150,step:1,allowReset:!0,placeholder:20}),"shaped"===t&&e.onChangeShadow&&wp.element.createElement(ba,{label:Object(s.__)("Shadow / Outline",o.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-general-shadow"}),"outlined"===t&&e.onChangeOutlineWidth&&wp.element.createElement(ba,{label:Object(s.__)("Outline Width",o.i18n),value:e.outlineWidth,onChange:e.onChangeOutlineWidth,min:0,max:10,step:1,allowReset:!0,placeholder:"3"}),e.onChangeBackgroundColorType&&wp.element.createElement(Go,null)),e.onChangeSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,null,wp.element.createElement(ba,{label:Object(s.__)("Icon Size",o.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(ba,{label:Object(s.__)("Icon Size",o.i18n),value:e.tabletSize,max:e.sizeMax,onChange:e.onChangeTabletSize,allowReset:!0,placeholder:e.size||50})),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(ba,{label:Object(s.__)("Icon Size",o.i18n),value:e.mobileSize,max:e.sizeMax,onChange:e.onChangeMobileSize,allowReset:!0,placeholder:e.tabletSize||e.size||50}))),e.onChangeOpacity&&wp.element.createElement(ba,{label:Object(s.__)("Icon Opacity",o.i18n),value:e.opacity,min:0,max:1,step:.1,onChange:e.onChangeOpacity,allowReset:!0,placeholder:"1.0"}),e.onChangeRotation&&wp.element.createElement(ba,{label:Object(s.__)("Icon Rotation",o.i18n),value:e.rotation,min:0,max:360,onChange:e.onChangeRotation,allowReset:!0,placeholder:"0"}),Object(R.applyFilters)("stackable.icon-controls.edit.after",null,e))};tu.defaultProps={icon:"",onChangeIcon:function(){},design:"",onChangeDesign:function(){},colorType:"",onChangeColorType:function(){},color:"",onChangeColor:function(){},color2:"",onChangeColor2:function(){},colorGradientDirection:"",onChangeColorGradientDirection:function(){},numPaths:"",color3:"",onChangeColor3:function(){},color4:"",onChangeColor4:function(){},color5:"",onChangeColor5:function(){},color6:"",onChangeColor6:function(){},color7:"",onChangeColor7:function(){},color8:"",onChangeColor8:function(){},color9:"",onChangeColor9:function(){},color10:"",onChangeColor10:function(){},multiOpacity1:"",onChangeMultiOpacity1:function(){},multiOpacity2:"",onChangeMultiOpacity2:function(){},multiOpacity3:"",onChangeMultiOpacity3:function(){},multiOpacity4:"",onChangeMultiOpacity4:function(){},multiOpacity5:"",onChangeMultiOpacity5:function(){},multiOpacity6:"",onChangeMultiOpacity6:function(){},multiOpacity7:"",onChangeMultiOpacity7:function(){},multiOpacity8:"",onChangeMultiOpacity8:function(){},multiOpacity9:"",onChangeMultiOpacity9:function(){},multiOpacity10:"",onChangeMultiOpacity10:function(){},borderRadius:"",onChangeBorderRadius:function(){},padding:"",onChangePadding:function(){},shadow:"",onChangeShadow:function(){},outlineWidth:"",onChangeOutlineWidth:function(){},backgroundColorType:"",onChangeBackgroundColorType:function(){},backgroundColor:"",onChangeBackgroundColor:function(){},backgroundColor2:"",onChangeBackgroundColor2:function(){},backgroundColorGradientDirection:"",onChangeBackgroundColorGradientDirection:function(){},size:"",tabletSize:"",mobileSize:"",sizeMax:300,onChangeSize:function(){},onChangeTabletSize:function(){},onChangeMobileSize:function(){},opacity:"",onChangeOpacity:function(){},rotation:"",onChangeRotation:function(){},showBackgroundShape:"",onChangeShowBackgroundShape:function(){},backgroundShape:"",onChangeBackgroundShape:function(){},backgroundShapeSize:"",onChangeBackgroundShapeSize:function(){},backgroundShapeColor:"",onChangeBackgroundShapeColor:function(){},backgroundShapeOffsetHorizontal:"",onChangeBackgroundShapeHorizontalOffset:function(){},backgroundShapeOffsetVertical:"",onChangeBackgroundShapeVerticalOffset:function(){}};var nu=tu;function au(){return(au=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ru(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iu=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(nu,au({icon:a("Icon"),onChangeIcon:function(e){return t(ru({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(ru({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(ru({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(ru({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(ru({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(ru({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(ru({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(ru({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(ru({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(ru({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(ru({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(ru({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(ru({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(ru({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(ru({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(ru({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(ru({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(ru({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(ru({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(ru({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(ru({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(ru({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(ru({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(ru({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(ru({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(ru({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(ru({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(ru({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(ru({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(ru({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(ru({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(ru({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(ru({},n("Size"),e))},onChangeTabletSize:function(e){return t(ru({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(ru({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(ru({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(ru({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(ru({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(ru({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(ru({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(ru({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(ru({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(ru({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(ru({},n("BackgroundShapeOffsetVertical"),e))}},e))};iu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var lu=function(e){return wp.element.createElement(i.Fragment,null,e.socialUrlFields&&wp.element.createElement(i.Fragment,null,Object.keys(be).map(function(t){return wp.element.createElement(l.TextControl,{key:t,className:"ugb-social-url-text-control",label:Object(s.sprintf)(Object(s._x)("%s Link","name",o.i18n),be[t].label),value:e["".concat(t,"Url")],onChange:e["onChange".concat(Object(b.upperFirst)(t),"Url")],placeholder:"http://"})})),e.onChangeNewTab&&wp.element.createElement(l.ToggleControl,{label:Object(s.__)("Open link in new tab",o.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),wp.element.createElement(Go,null),wp.element.createElement(Ks,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,useSocialColors:e.useSocialColors,onChangeUseSocialColors:e.onChangeUseSocialColors,onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,onChangeIcon:!1,hasTypography:!1}))};lu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var ou=lu;function su(){return(su=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function uu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cu=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(ou,su({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(uu({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(uu({},n("UseSocialColors"),e))}},e))};cu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function fu(){return(fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pu=function(e){var t=Object(b.pick)(e,["label","units","screens","defaultLocked","enableTop","enableRight","enableBottom","enableLeft","className","sliderMax","sliderMin"]),n=Array.isArray(e.min)?e.min:[e.min,e.min,e.min],a=Array.isArray(e.max)?e.max:[e.max,e.max,e.max],r=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return wp.element.createElement(i.Fragment,null,wp.element.createElement(Od,{screen:"desktop"},wp.element.createElement(Ic,fu({},t,{min:n[0],max:a[0],step:r[0],top:e.valueDesktop.top,right:e.valueDesktop.right,bottom:e.valueDesktop.bottom,left:e.valueDesktop.left,unit:e.valueDesktopUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeDesktopUnit(t)},placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(Od,{screen:"tablet"},wp.element.createElement(Ic,fu({},t,{min:n[1],max:a[1],step:r[1],top:e.valueTablet.top,right:e.valueTablet.right,bottom:e.valueTablet.bottom,left:e.valueTablet.left,unit:e.valueTabletUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeTabletUnit(t)}}))),wp.element.createElement(Od,{screen:"mobile"},wp.element.createElement(Ic,fu({},t,{min:n[2],max:a[2],step:r[2],top:e.valueMobile.top,right:e.valueMobile.right,bottom:e.valueMobile.bottom,left:e.valueMobile.left,unit:e.valueMobileUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeMobileUnit(t)}}))))};pu.defaultProps={label:Object(s.__)("Spacing",o.i18n),defaultLocked:!0,units:["px","em","%"],screens:["desktop","tablet","mobile"],min:0,max:500,step:1,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,valueDesktop:{},valueTablet:{},valueMobile:{},valueDesktopUnit:"",valueTabletUnit:"",valueMobileUnit:"",onChangeDesktop:function(){},onChangeTablet:function(){},onChangeMobile:function(){},onChangeDesktopUnit:function(){},onChangeTabletUnit:function(){},onChangeMobileUnit:function(){},placeholderTop:"60",placeholderLeft:"35",placeholderBottom:"60",placeholderRight:"35",className:"ugb--help-tip-advanced-column-paddings"};var du=pu;function gu(){return(gu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(n,!0).forEach(function(t){hu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vu=function(e,t){var n=te(t||"blob1");return n?wp.element.createElement("div",{className:"ugb-icon__bg-shape-wrapper"},e,wp.element.createElement(n,{className:"ugb-icon__bg-shape"})):e},yu=function(e){var t=Object(R.applyFilters)("stackable.svg-icon.extract-svg",e);return t.match(/^<svg(.*?)<\/svg>$/g)?t:t.match(/<svg/)?(t.match(/<svg.*?<\/svg>/g)||[t])[0]:t},wu=function(e){var t=bu({},e,{value:"string"==typeof e.value?yu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],hu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(ov,gu({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],hu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=vu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)};wu.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(wu.Content=function(e){var t=bu({},e,{value:"string"==typeof e.value?yu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],hu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(ov.Content,gu({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],hu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=vu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=bu({},wu.defaultProps);var ku=wu;function Ou(){return(Ou=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cu=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(ku,Ou({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))};Cu.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},Cu.Content=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(ku.Content,Ou({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))},Cu.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var Su=Cu;function _u(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Eu=Object(dt.withInstanceId)(function(e){var t=xu(Object(i.useState)(!1),2),n=t[0],a=t[1],r=xu(Object(i.useState)(!1),2),o=r[0],s=r[1],u=e.instanceId,c=e.isOpen,f=e.onChange,p=_u(e,["instanceId","isOpen","onChange"]);return Object(i.useEffect)(function(){e.onToggle(n)},[n]),wp.element.createElement("div",{className:"ugb-svg-icon-placeholder ugb-svg-icon-placeholder-".concat(u)},wp.element.createElement(l.Button,{className:"ugb-svg-icon-placeholder__button",onClick:function(){o?(a(!1),s(!1)):a(!0)}},wp.element.createElement(Su,p)),(null!==c&&c||null===c&&n)&&wp.element.createElement(Ho,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-svg-icon-placeholder-".concat(u))?s(!0):(a(!1),s(!1))},onClose:function(){return a(!1)},onChange:f}))});Eu.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var ju=Eu;function Pu(){return(Pu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Tu=q.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),Bu=q.a.createElement("path",{d:"M107 175.1l43.7-44.8c3.7-3.8 5.4-8.8 5.1-13.8 0-.4-.1-.8-.1-1.2H107v59.8z",fill:"#5fb3dd"}),Mu=q.a.createElement("path",{d:"M48.8.4L5.1 45.2C1.4 49-.3 54 0 59c0 .4.1.7.1 1.1h48.6V.4z",fill:"#e2735d"}),Nu=q.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),Iu=q.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),Au=q.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),Du=q.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),Ru=q.a.createElement("path",{className:"pro-icon_svg__st2",d:"M107 60.1v55.2h48.6c-.5-3.8-2.1-7.5-4.9-10.4L107 60.1z"}),zu=q.a.createElement("path",{d:"M48.8 115.3V60.1H.2c.5 3.8 2.1 7.5 4.9 10.4l43.7 44.8z",fill:"#ea75d4"}),Lu=q.a.createElement("path",{d:"M154.3 8.5c3.1-3.2.9-8.5-3.6-8.5H62.3l50.3 51.5 41.7-43z",fill:"#eabd59"}),Fu=q.a.createElement("path",{d:"M1.5 166.8C-1.7 170 .6 175 5 175h88.5l-50.3-51.4-41.7 43.2z",fill:"#49cbce"}),Uu=function(e){return q.a.createElement("svg",Pu({id:"pro-icon_svg__Layer_3",viewBox:"0 0 155.8 175.1",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},e),Tu,Bu,Mu,Nu,Iu,Au,Du,Ru,zu,Lu,Fu)},Hu={layout:{title:Object(s.__)("Say Hello to More Layouts 👋",o.i18n),description:Object(s.__)("Get more layouts for this block. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},design:{title:Object(s.__)("Say Hello to More Designs 👋",o.i18n),description:Object(s.__)("Get more pre-set sections / designs for this block. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},image:{title:Object(s.__)("Say Hello to More Shapes 👋",o.i18n),description:Object(s.__)("Get more cool shapes for your images. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},effect:{title:Object(s.__)("Say Hello to More Effects 👋",o.i18n),description:Object(s.__)("Get more flashy image & hover effects. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},advanced:{title:Object(s.__)("Say Hello to Fine-Grained Controls 👋",o.i18n),description:Object(s.__)("Get column spacing options, column colors and more. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)},postsBlock:{title:Object(s.__)("Say Hello to More Post Controls 👋",o.i18n),description:Object(s.__)("Get a load more button, more post options and Custom Post Types. This feature is only available on Stackable Premium.",o.i18n),button:Object(s.__)("Learn More",o.i18n)}},Vu=function(e){var t=p()(["ugb-design-control-pro-note",e.className]);return wp.element.createElement("div",{className:t},e.isDismissible&&wp.element.createElement(l.Button,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),wp.element.createElement(Uu,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||Hu[e.type].title),wp.element.createElement("p",null,e.description||Hu[e.type].description),e.showButton&&wp.element.createElement(yl,{button:e.button||Hu[e.type].button,buttonUtmSource:e.buttonUtmSource}),e.showHideNote&&wp.element.createElement("p",{className:"ugb-design-control-pro-note__notice"},Object(s.__)("You can hide premium hints in the settings",o.i18n)))};Vu.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var Gu=Vu;function qu(e){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wu(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ku(e){return(Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yu(e,t){return(Yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qu=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Ku(t).apply(this,arguments))||"object"!==qu(a)&&"function"!=typeof a?$u(n):a).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind($u(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yu(e,t)}(t,i["Component"]),n=t,(a=[{key:"onClick",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=p()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!this.state.isOpen});return wp.element.createElement("div",{className:"components-base-control"},wp.element.createElement("button",{className:"ugb-pro-control-more-dots",onClick:this.onClick},wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"})),wp.element.createElement("div",{className:e},wp.element.createElement(Gu,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}])&&Wu(n.prototype,a),r&&Wu(n,r),t}();function Xu(e){return(Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ju(n,!0).forEach(function(t){ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ju(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function nc(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ac(e){return(ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ic(e,t){return(ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lc=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this;var r=(e=!(a=ac(t).apply(this,arguments))||"object"!==Xu(a)&&"function"!=typeof a?rc(n):a).getEnabledValues(),i=!r.length||r.every(function(e){return e===r[0]}),l=r.every(function(e){return""===e});return e.state={locked:l?e.props.defaultLocked:i},e.onToggleLock=e.onToggleLock.bind(rc(e)),e.onChangeTop=e.onChangeTop.bind(rc(e)),e.onChangeRight=e.onChangeRight.bind(rc(e)),e.onChangeBottom=e.onChangeBottom.bind(rc(e)),e.onChangeLeft=e.onChangeLeft.bind(rc(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ic(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){return[].concat(tc(this.props.enableTop?[this.props.top]:[]),tc(this.props.enableRight?[this.props.right]:[]),tc(this.props.enableBottom?[this.props.bottom]:[]),tc(this.props.enableLeft?[this.props.left]:[]))}},{key:"getEnabledLocations",value:function(){return[].concat(tc(this.props.enableTop?["top"]:[]),tc(this.props.enableRight?["right"]:[]),tc(this.props.enableBottom?["bottom"]:[]),tc(this.props.enableLeft?["left"]:[]))}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(b.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeTop",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Zu({},this.getEnabledValues(),{top:n}))}},{key:"onChangeRight",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Zu({},this.getEnabledValues(),{right:n}))}},{key:"onChangeBottom",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Zu({},this.getEnabledValues(),{bottom:n}))}},{key:"onChangeLeft",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(Zu({},this.getEnabledValues(),{left:n}))}},{key:"render",value:function(){var e=this.props.instanceId,t="ugb-four-number-control-".concat(e,"__item-");return wp.element.createElement(l.BaseControl,{help:this.props.help,className:p()("ugb-four-number-control",this.props.className)},wp.element.createElement(ia,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-four-number-control__wrapper"},wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-top")},wp.element.createElement("input",{id:"".concat(t,"-top"),type:"number",onChange:this.onChangeTop,"aria-label":Object(s.__)("Top",o.i18n),value:this.props.top,placeholder:this.props.enableTop?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableTop}),wp.element.createElement("span",null,Object(s.__)("Top",o.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-right")},wp.element.createElement("input",{id:"".concat(t,"-right"),type:"number",onChange:this.onChangeRight,"aria-label":this.props.label,value:this.props.right,placeholder:this.props.enableRight?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableRight}),wp.element.createElement("span",null,Object(s.__)("Right",o.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-bottom")},wp.element.createElement("input",{id:"".concat(t,"-bottom"),type:"number",onChange:this.onChangeBottom,"aria-label":this.props.label,value:this.props.bottom,placeholder:this.props.enableBottom?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableBottom}),wp.element.createElement("span",null,Object(s.__)("Bottom",o.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-left")},wp.element.createElement("input",{id:"".concat(t,"-left"),type:"number",onChange:this.onChangeLeft,"aria-label":this.props.label,value:this.props.left,placeholder:this.props.enableLeft?"":Object(s.__)("auto",o.i18n),disabled:!this.props.enableLeft}),wp.element.createElement("span",null,Object(s.__)("Left",o.i18n))),wp.element.createElement(l.Button,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:wp.element.createElement(l.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}])&&nc(n.prototype,a),r&&nc(n,r),t}();lc.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0};Object(dt.withInstanceId)(lc);function oc(){return(oc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var sc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),uc=q.a.createElement("path",{d:"M4.4 15.7h11.2c.1 0 .2 0 .2.1l2 2c.2.2.1.6-.2.6H2.4c-.3 0-.4-.3-.2-.6l2-2s.1-.1.2-.1z",fill:"#555d63"}),cc=function(e){return q.a.createElement("svg",oc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),sc,uc)};function fc(){return(fc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),dc=q.a.createElement("path",{d:"M4.3 4.4v11.2c0 .1 0 .2-.1.2l-2 2c-.2.2-.6.1-.6-.2V2.4c0-.3.4-.4.6-.2l2 2s.1.1.1.2z",fill:"#555d63"}),gc=function(e){return q.a.createElement("svg",fc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),pc,dc)};function mc(){return(mc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var bc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),hc=q.a.createElement("path",{d:"M15.7 15.6V4.4c0-.1 0-.2.1-.2l2-2c.2-.2.6-.1.6.2v15.2c0 .3-.3.4-.6.2l-2-2s-.1-.1-.1-.2z",fill:"#555d63"}),vc=function(e){return q.a.createElement("svg",mc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),bc,hc)};function yc(){return(yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var wc=q.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),kc=q.a.createElement("path",{d:"M15.6 4.3H4.4c-.1 0-.2 0-.2-.1l-2-2c-.2-.2-.1-.6.2-.6h15.2c.3 0 .4.3.2.6l-2 2s-.1.1-.2.1z",fill:"#555d63"}),Oc=function(e){return q.a.createElement("svg",yc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),wc,kc)};function Cc(e){return(Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sc(){return(Sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function _c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(n,!0).forEach(function(t){jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pc(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Tc(e){return(Tc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mc(e,t){return(Mc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nc=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this;var r=(e=!(a=Tc(t).apply(this,arguments))||"object"!==Cc(a)&&"function"!=typeof a?Bc(n):a).getEnabledValues(),i=e.firstValue(),l=Object.values(r).every(function(e){return e===i}),o=Object.values(r).every(function(e){return""===e});return e.state={locked:o?e.props.defaultLocked:l},e.onToggleLock=e.onToggleLock.bind(Bc(e)),e.onChangeAll=e.onChangeAll.bind(Bc(e)),e.onChangeTop=e.onChangeTop.bind(Bc(e)),e.onChangeRight=e.onChangeRight.bind(Bc(e)),e.onChangeBottom=e.onChangeBottom.bind(Bc(e)),e.onChangeLeft=e.onChangeLeft.bind(Bc(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mc(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return Ec({},t,jc({},n,e.props[n]))},{})}},{key:"getEnabledLocations",value:function(){return[].concat(_c(this.props.enableTop?["top"]:[]),_c(this.props.enableRight?["right"]:[]),_c(this.props.enableBottom?["bottom"]:[]),_c(this.props.enableLeft?["left"]:[]))}},{key:"firstValue",value:function(){return this.getEnabledLocations().length?Object.values(this.getEnabledValues())[0]:""}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(b.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeAll",value:function(e){var t=e||0===e?e:"";this.props.onChange(this.filterOnlyEnabled({top:t,right:t,bottom:t,left:t}))}},{key:"onChangeTop",value:function(e){this.props.onChange(Ec({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(Ec({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(Ec({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(Ec({},this.getEnabledValues(),{left:e||0===e?e:""}))}},{key:"render",value:function(){var e=this.props,t=e.instanceId,n=e.units,a=e.unit,r="ugb-four-range-control-".concat(t,"__item-"),u={min:this.props.min,max:this.props.max,step:this.props.step,placeholder:this.props.placeholder,initialPosition:this.props.initialPosition,sliderMin:this.props.sliderMin,sliderMax:this.props.sliderMax},c=n.indexOf(a)<0?0:n.indexOf(a);Array.isArray(this.props.min)&&(u.min=this.props.min[c]),Array.isArray(this.props.max)&&(u.max=this.props.max[c]),Array.isArray(this.props.sliderMin)&&(u.sliderMin=this.props.sliderMin[c]),Array.isArray(this.props.sliderMax)&&(u.sliderMax=this.props.sliderMax[c]),Array.isArray(this.props.step)&&(u.step=this.props.step[c]),Array.isArray(this.props.placeholder)&&(u.placeholder=this.props.placeholder[c]),Array.isArray(this.props.initialPosition)&&(u.initialPosition=this.props.initialPosition[c]);var f=p()(["ugb-four-range-control__lock"],{"ugb--is-locked":this.state.locked}),d=wp.element.createElement(l.Button,{className:f,onClick:this.onToggleLock,icon:wp.element.createElement(l.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})});return wp.element.createElement(l.BaseControl,{help:this.props.help,className:p()("ugb-four-range-control",this.props.className,{"ugb--locked":this.state.locked})},wp.element.createElement(ia,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens,afterButton:d}),this.state.locked&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(ba,Sc({id:"".concat(r,"-all"),value:this.firstValue(),onChange:this.onChangeAll,allowReset:!0},u))),!this.state.locked&&wp.element.createElement(i.Fragment,null,this.props.enableTop&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Top",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(Oc,null))),wp.element.createElement(ba,Sc({id:"".concat(r,"-top"),value:this.props.top,onChange:this.onChangeTop,allowReset:!0},u,{placeholder:this.props.placeholderTop||u.placeholder}))),this.props.enableRight&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Right",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(vc,null))),wp.element.createElement(ba,Sc({id:"".concat(r,"-right"),value:this.props.right,onChange:this.onChangeRight,allowReset:!0},u,{placeholder:this.props.placeholderRight||u.placeholder}))),this.props.enableBottom&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Bottom",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(cc,null))),wp.element.createElement(ba,Sc({id:"".concat(r,"-bottom"),value:this.props.bottom,onChange:this.onChangeBottom,allowReset:!0},u,{placeholder:this.props.placeholderBottom||u.placeholder}))),this.props.enableLeft&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(l.Tooltip,{text:Object(s.__)("Left",o.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(gc,null))),wp.element.createElement(ba,Sc({id:"".concat(r,"-left"),value:this.props.left,onChange:this.onChangeLeft,allowReset:!0},u,{placeholder:this.props.placeholderLeft||u.placeholder})))))}}])&&Pc(n.prototype,a),r&&Pc(n,r),t}();Nc.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,min:0,max:50,sliderMin:null,sliderMax:null,step:1,placeholder:"",placeholderTop:"",placeholderRight:"",placeholderBottom:"",placeholderLeft:"",initialPosition:""};var Ic=Nc,Ac=n(62),Dc=n.n(Ac),Rc=n(63),zc=n.n(Rc),Lc=n(64),Fc=n.n(Lc),Uc=n(65),Hc=n.n(Uc),Vc=n(66),Gc=n.n(Vc),qc=n(67),Wc=n.n(qc),Kc=n(68),$c=n.n(Kc),Yc=n(69),Qc=n.n(Yc),Xc=n(70),Jc=n.n(Xc),Zc=n(71),ef=n.n(Zc),tf=n(72),nf=n.n(tf),af=n(73),rf=n.n(af),lf=n(74),of=n.n(lf),sf=n(75),uf=n.n(sf),cf=n(76),ff=n.n(cf),pf=n(77),df=n.n(pf),gf=n(78),mf=n.n(gf),bf=n(79),hf=n.n(bf),vf=n(80),yf=n.n(vf),wf=n(81),kf=n.n(wf),Of=n(82),Cf=n.n(Of),Sf=n(83),_f=n.n(Sf),xf=n(84),Ef=n.n(xf),jf=n(85),Pf=n.n(jf),Tf=n(86),Bf=n.n(Tf),Mf=n(87),Nf=n.n(Mf),If=n(88),Af=n.n(If),Df=n(89),Rf=n.n(Df),zf=n(90),Lf=n.n(zf),Ff=n(91),Uf=n.n(Ff);function Hf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Vf(){return(Vf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Gf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qf(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Wf(e,t,n){return t&&qf(e.prototype,t),n&&qf(e,n),e}function Kf(e){return(Kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yf(e,t){return!t||"object"!==Kf(t)&&"function"!=typeof t?$f(e):t}function Qf(e){return(Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xf(e,t){return(Xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xf(e,t)}function Zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ep=n(18),tp=n.n(ep),np=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.forEach(function(e){return e&&e.apply(void 0,n)})}};function ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ap(Object(n),!0).forEach(function(t){Zf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ip=function(e){function t(){var e,n;Gf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Zf($f(n=Yf(this,(e=Qf(t)).call.apply(e,[this].concat(r)))),"getRailProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return rp({},e,{onMouseDown:np(e.onMouseDown,a),onTouchStart:np(e.onTouchStart,r)})}),n}return Jf(t,G["Component"]),Wf(t,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,a=t.activeHandleID,r=(0,t.children)({getEventData:n,activeHandleID:a,getRailProps:e});return r&&q.a.Children.only(r)}}]),t}();ip.propTypes={};var lp=ip,op=function(e){function t(){return Gf(this,t),Yf(this,Qf(t).apply(this,arguments))}return Jf(t,G["Component"]),Wf(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,a=e.scale,r=e.count,i=t({getEventData:e.getEventData,activeHandleID:e.activeHandleID,ticks:(n||a.getTicks(r)).map(function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}})});return i&&q.a.Children.only(i)}}]),t}();op.propTypes={},op.defaultProps={count:10};var sp=op;function up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?up(Object(n),!0).forEach(function(t){Zf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fp=function(e){function t(){var e,n;Gf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Zf($f(n=Yf(this,(e=Qf(t)).call.apply(e,[this].concat(r)))),"getTrackProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return cp({},e,{onMouseDown:np(e.onMouseDown,a),onTouchStart:np(e.onTouchStart,r)})}),n}return Jf(t,G["Component"]),Wf(t,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,a=t.left,r=t.right,i=t.scale,l=t.handles,o=t.getEventData,s=t.activeHandleID,u=i.getDomain(),c=[],f=0;f<l.length+1;f++){var p=l[f-1],d=l[f];0===f&&!0===a?p={id:"$",value:u[0],percent:0}:f===l.length&&!0===r&&(d={id:"$",value:u[1],percent:100}),p&&d&&c.push({id:"".concat(p.id,"-").concat(d.id),source:p,target:d})}var g=n({getEventData:o,activeHandleID:s,tracks:c,getTrackProps:e});return g&&q.a.Children.only(g)}}]),t}();fp.propTypes={},fp.defaultProps={left:!0,right:!0};var pp=fp;function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){Zf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mp=function(e){function t(){var e,n;Gf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Zf($f(n=Yf(this,(e=Qf(t)).call.apply(e,[this].concat(r)))),"autofocus",function(e){e.target.focus()}),Zf($f(n),"getHandleProps",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.props,r=a.emitKeyboard,i=a.emitMouse,l=a.emitTouch;return gp({},t,{onKeyDown:np(t.onKeyDown,function(t){return r(t,e)}),onMouseDown:np(t.onMouseDown,n.autofocus,function(t){return i(t,e)}),onTouchStart:np(t.onTouchStart,function(t){return l(t,e)})})}),n}return Jf(t,G["Component"]),Wf(t,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,a=(0,t.children)({handles:t.handles,activeHandleID:n,getHandleProps:e});return a&&q.a.Children.only(a)}}]),t}();mp.propTypes={};var bp=mp;function hp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var vp="react-compound-slider:";function yp(e){return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function kp(e,t,n,a){var r=e.findIndex(function(e){return e.key===t});if(-1!==r){var i=e[r],l=i.key;return i.val===n?e:[].concat(hp(e.slice(0,r)),[{key:l,val:n}],hp(e.slice(r+1))).sort(yp(a))}return e}function Op(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function Cp(e){var t=e.type,n=void 0===t?"":t,a=e.touches;return!a||a.length>1||"touchend"===n.toLowerCase()&&a.length>0}function Sp(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function _p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=0;return{handles:e.map(function(e){var t=n.getValue(e);return e!==t&&(r+=1,tp()(!a,"".concat(vp," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t}).map(function(e,t){return{key:"$$-".concat(t),val:e}}).sort(yp(t)),changes:r}}var xp=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};var Ep,jp;1===(Ep=xp).length&&(jp=Ep,Ep=function(e,t){return xp(jp(e),t)});var Pp=Array.prototype,Tp=(Pp.slice,Pp.map,Math.sqrt(50)),Bp=Math.sqrt(10),Mp=Math.sqrt(2),Np=function(e,t,n){var a,r,i,l,o=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((a=t<e)&&(r=e,e=t,t=r),0===(l=function(e,t,n){var a=(t-e)/Math.max(0,n),r=Math.floor(Math.log(a)/Math.LN10),i=a/Math.pow(10,r);return r>=0?(i>=Tp?10:i>=Bp?5:i>=Mp?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(i>=Tp?10:i>=Bp?5:i>=Mp?2:1)}(e,t,n))||!isFinite(l))return[];if(l>0)for(e=Math.ceil(e/l),t=Math.floor(t/l),i=new Array(r=Math.ceil(t-e+1));++o<r;)i[o]=(e+o)*l;else for(e=Math.floor(e*l),t=Math.ceil(t*l),i=new Array(r=Math.ceil(e-t+1));++o<r;)i[o]=(e-o)/l;return a&&i.reverse(),i};var Ip=function(){function e(){Gf(this,e),this.domain=[0,1],this.range=[0,1],this.interpolator=null}return Wf(e,[{key:"createInterpolator",value:function(e,t){var n=e[0],a=e[1],r=t[0],i=t[1];return a<n?(n=this.deinterpolateValue(a,n),r=this.interpolateValue(i,r)):(n=this.deinterpolateValue(n,a),r=this.interpolateValue(r,i)),function(e){return r(n(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=e.map(function(e){return+e}),this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=e.map(function(e){return+e}),this}},{key:"getTicks",value:function(e){var t=this.domain;return Np(t[0],t[t.length-1],e||10)}}]),e}();function Ap(e,t,n){return Math.min(Math.max(e,t),n)}var Dp=function e(){var t=this;Gf(this,e),Zf(this,"setDomain",function(e){return t.domain=e.slice(),t}),Zf(this,"setRange",function(e){return t.range=e.slice(),t}),Zf(this,"setStep",function(e){return t.step=e,t}),Zf(this,"getValue",function(e){var n=Hf(t.domain,2),a=n[0],r=n[1],i=Hf(t.range,2),l=i[0],o=i[1],s=t.step,u=(Ap(e,a,r)-a)/(r-a);return Ap(s*Math.round(u*(o-l)/s)+l,l<o?l:o,o>l?o:l)}),this.step=1,this.domain=[0,1],this.range=[0,1]},Rp="undefined"!=typeof window&&"undefined"!=typeof document,zp=function(){},Lp=function(e,t,n,a){var r=a?e-t:e+t;return a?Math.max(n[0],r):Math.min(n[1],r)},Fp=function(e,t,n,a){var r=a?e+t:e-t;return a?Math.min(n[1],r):Math.max(n[0],r)},Up=function(e){function t(){var e,n;Gf(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Zf($f(n=Yf(this,(e=Qf(t)).call.apply(e,[this].concat(r)))),"state",{step:null,values:null,domain:null,handles:[],reversed:null,activeHandleID:null,valueToPerc:null,valueToStep:null,pixelToStep:null}),Zf($f(n),"slider",q.a.createRef()),Zf($f(n),"onKeyDown",function(e,t){var a=["ArrowRight","ArrowUp"],r=["ArrowDown","ArrowLeft"],i=$f(n),l=i.state.handles,o=i.props,s=o.step,u=o.reversed,c=o.vertical,f=o.domain,p=e.key||e.keyCode;if(a.concat(r).includes(p)){if(c){var d=[r,a];a=d[0],r=d[1]}e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault();var g=l.find(function(e){return e.key===t});if(g){var m=g.val,b=m;a.includes(p)?b=Lp(m,s,f,u):r.includes(p)&&(b=Fp(m,s,f,u));var h=l.map(function(e){return e.key===t?{key:e.key,val:b}:e});n.submitUpdate(h,!0)}}}),Zf($f(n),"onMouseDown",function(e,t){n.onStart(e,t,!1)}),Zf($f(n),"onTouchStart",function(e,t){Cp(e)||n.onStart(e,t,!0)}),Zf($f(n),"getEventData",function(e,t){var a,r=$f(n),i=r.state,l=i.pixelToStep,o=i.valueToPerc,s=r.props.vertical;return l.setDomain(Op(n.slider.current,s)),{value:a=t?l.getValue(Sp(s,e)):l.getValue(s?e.clientY:e.pageX),percent:o.getValue(a)}}),Zf($f(n),"onMouseMove",function(e){var t=$f(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;i.setDomain(Op(n.slider.current,s));var c=kp(r,l,i.getValue(s?e.clientY:e.pageX),u);n.submitUpdate(c)}),Zf($f(n),"onTouchMove",function(e){var t=$f(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;if(!Cp(e)){i.setDomain(Op(n.slider.current,s));var c=kp(r,l,i.getValue(Sp(s,e)),u);n.submitUpdate(c)}}),Zf($f(n),"onMouseUp",function(){var e=$f(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),Rp&&(document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onMouseUp))}),Zf($f(n),"onTouchEnd",function(){var e=$f(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),Rp&&(document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onTouchEnd))}),n}return Jf(t,G["PureComponent"]),Wf(t,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(Op(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Rp&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var a=this.state.handles,r=this.props.onSlideStart;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),a.find(function(e){return e.key===t})?(this.setState({activeHandleID:t}),r(a.map(function(e){return e.val}),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:null}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,a=this,r=this.state,i=r.handles,l=r.pixelToStep,o=this.props,s=o.vertical,u=o.reversed,c=this.slider;l.setDomain(Op(c.current,s)),n=t?l.getValue(Sp(s,e)):l.getValue(s?e.clientY:e.pageX);for(var f=null,p=1/0,d=0;d<i.length;d++){var g=i[d],m=g.key,b=g.val,h=Math.abs(b-n);h<p&&(f=m,p=h)}var v=kp(i,f,n,u);this.setState({activeHandleID:f},function(){a.submitUpdate(v,!0),t?a.addTouchEvents():a.addMouseEvents()})}},{key:"addMouseEvents",value:function(){Rp&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Rp&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e,t){var n=this.props,a=n.mode,r=n.step,i=n.onUpdate,l=n.onChange,o=n.reversed,s=this.state.valueToStep.getValue;this.setState(function(n){var u,c=n.handles;if("function"==typeof a)u=a(c,e,r,o,s),tp()(Array.isArray(u),"Custom mode function did not return an array.");else switch(a){case 1:u=function(e,t){return t}(0,e);break;case 2:u=function(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}(c,e);break;case 3:u=function e(t,n,a,r,i){for(var l=-1,o=!0,s=0;s<t.length;s++){var u=t[s],c=n[s];if(!c||c.key!==u.key)return t;c.val!==u.val&&(l=s,o=c.val-u.val>0)}if(-1===l)return t;for(var f=o?a:-a,p=0;p<n.length;p++){var d=n[p],g=n[p+1];if(g&&d.val===g.val){if(p===l){var m=g.val+f;if(i(m)===m){var b=e(n,kp(n,g.key,g.val+f,r),a,r,i);return b===n?t:b}return t}var h=d.val+f;if(i(h)===h){var v=e(n,kp(n,d.key,d.val+f,r),a,r,i);return v===n?t:v}return t}}return n}(c,e,r,o,s);break;default:u=e,tp()(!1,"".concat(vp," Invalid mode value."))}return i(u.map(function(e){return e.val})),t&&l(u.map(function(e){return e.val})),{handles:u}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,a=t.valueToPerc,r=t.activeHandleID,i=this.props,l=i.className,o=i.rootStyle,s=i.rootProps,u=i.component,c=i.disabled,f=i.flatten,p=n.map(function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:a.getValue(n)}}),d=q.a.Children.map(this.props.children,function(t){return!t||t.type.name!==lp.name&&t.type.name!==sp.name&&t.type.name!==pp.name&&t.type.name!==bp.name?t:q.a.cloneElement(t,{scale:a,handles:p,activeHandleID:r,getEventData:e.getEventData,emitKeyboard:c?zp:e.onKeyDown,emitMouse:c?zp:e.onMouseDown,emitTouch:c?zp:e.onTouchStart})});return f?q.a.createElement(G.Fragment,null,q.a.createElement(u,Vf({},s,{style:o,className:l,ref:this.slider})),d):q.a.createElement(u,Vf({},s,{style:o,className:l,ref:this.slider}),d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,a,r=e.step,i=e.values,l=e.domain,o=e.reversed,s=e.onUpdate,u=e.onChange,c=e.warnOnChanges,f=t.valueToPerc,p=t.valueToStep,d=t.pixelToStep,g={};if(f&&p&&d||(f=new Ip,p=new Dp,d=new Dp,g.valueToPerc=f,g.valueToStep=p,g.pixelToStep=d),null===t.step||null===t.domain||null===t.reversed||r!==t.step||l[0]!==t.domain[0]||l[1]!==t.domain[1]||o!==t.reversed){var m=Hf(l,2),b=m[0],h=m[1];p.setStep(r).setRange([b,h]).setDomain([b,h]),!0===o?(f.setDomain([b,h]).setRange([100,0]),d.setStep(r).setRange([h,b])):(f.setDomain([b,h]).setRange([0,100]),d.setStep(r).setRange([b,h])),tp()(h>b,"".concat(vp," Max must be greater than min (even if reversed). Max is ").concat(h,". Min is ").concat(b,"."));var v=_p(i||t.values,o,p,c),y=v.handles;(v.changes||void 0===i||i===t.values)&&(s(y.map(function(e){return e.val})),u(y.map(function(e){return e.val}))),g.step=r,g.values=i,g.domain=l,g.handles=y,g.reversed=o}else if(n=i,a=t.values,!(n===a||n.length===a.length&&n.reduce(function(e){return function(t,n,a){return t&&e[a]===n}}(a),!0))){var w=_p(i,o,p,c),k=w.handles;w.changes&&(s(k.map(function(e){return e.val})),u(k.map(function(e){return e.val}))),g.values=i,g.handles=k}return Object.keys(g).length?g:null}}]),t}();Up.propTypes={},Up.defaultProps={mode:1,step:.1,domain:[0,100],component:"div",rootProps:{},rootStyle:{},vertical:!1,reversed:!1,onChange:zp,onUpdate:zp,onSlideStart:zp,onSlideEnd:zp,disabled:!1,flatten:!1,warnOnChanges:!1};var Hp=Up;Hp.Rail=lp,Hp.Ticks=sp,Hp.Tracks=pp,Hp.Handles=bp;function Vp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Gp(){return(Gp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qp={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},Wp={position:"absolute",width:"100%",height:3,backgroundColor:"#e2e4e7",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},Kp=function(e){var t=e.getRailProps;return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",Gp({style:qp},t())),wp.element.createElement("div",{style:Wp}))},$p=function(e){var t=Vp(e.domain,2),n=t[0],a=t[1],r=e.handle,i=r.id,l=r.value,o=r.percent,s=e.disabled,u=void 0!==s&&s,c=e.getHandleProps;return wp.element.createElement("button",Gp({role:"slider","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":l,disabled:u,style:{left:"".concat(o,"%")}},c(i)))},Yp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if("left"===t)for(var n=e.length-1;n>=1;n--)if(e[n]<10){var a=10-e[n];e[n]=10,e[n-1]-=a}for(var r=0;r<e.length-1;r++)if(e[r]<10){var i=10-e[r];e[r]=10,e[r+1]-=i}if("right"===t)for(var l=e.length-1;l>=1;l--)if(e[l]<10){var o=10-e[l];e[l]=10,e[l-1]-=o}return e};function Qp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Xp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Jp={position:"relative",width:"100%"},Zp=[0,100],ed=function(e){var t=0;return[].concat(Xp(e),[100]).map(function(e){var n=e-t;return t+=n,n})},td=function(e){var t=0;return Xp(e).pop(),e.reduce(function(n,a,r){if(r===e.length-1)return n;var i=a+t;return t+=a,n.push(i),n},[])},nd=function(e){return wp.element.createElement(Hp,{className:"ugb-column-widths-control__columns-slider",rootStyle:Jp,mode:function(e,t){var n,a=e.map(function(e){return e.val}),r=t.map(function(e){return e.val});if(Object(b.isEqual)(a,r))return t;if((n=[0].concat(Xp(r),[100])).some(function(e,t){return 0!==t&&e-n[t-1]<10})){var i=Qp(function(e,t){var n,a=0;return t.some(function(t,r){return t!==e[r]&&(a=r,n=t>e[r]?"right":"left",!0)}),[a,n]}(a,r),2);i[0];(function(e,t,n){var a=ed(e),r=Yp(a,n);return td(r)})(r,0,i[1]).forEach(function(e,n){t[n].val=e})}return t},step:1,onUpdate:function(t){return e.onChange(ed(t))},domain:Zp,values:td(e.value)},wp.element.createElement(lp,null,function(e){var t=e.getRailProps;return wp.element.createElement(Kp,{getRailProps:t})}),wp.element.createElement(bp,null,function(e){var t=e.handles,n=e.getHandleProps;return wp.element.createElement("div",{className:"slider-handles"},t.map(function(e){return wp.element.createElement($p,{key:e.id,handle:e,domain:Zp,getHandleProps:n})}))}))};nd.defaultProps={onChange:function(){},value:[]};var ad=nd;function rd(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var id=function(e){return e.every(function(e){return!e})},ld=function(e){var t,n={gridTemplateColumns:(t=e.value,t.map(function(e){return(e/100*t.length).toFixed(2)+"fr"}).join(" ")),gridAutoFlow:id(e.value)?"column":void 0,justifyContent:id(e.value)?"space-around":void 0};return wp.element.createElement("div",{className:"ugb-column-widths-control__columns-input",style:n},e.value.map(function(t,n){return wp.element.createElement("input",{key:n,className:"components-column-widths-control__number",type:"number",value:t||"",onChange:function(t){var a=parseInt(t.target.value,10),r=rd(e.value);r[n]=isNaN(a)?"":a,e.onChange(r)},onBlur:function(){var t=Yp(e.value),a=100-t.reduce(function(e,t){return e+t},0);n<e.value.length-1?t[n+1]+=a:t[n-1]+=a,e.onChange(Yp(t))}})}))};ld.defaultProps={onChange:function(){},value:[]};var od=ld;function sd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ud={"2-1":[50,50],"2-2":[67,33],"2-3":[33,67],"3-1":[33,33,34],"3-2":[25,50,25],"3-3":[50,25,25],"3-4":[25,25,50],"4-1":[25,25,25,25],"4-2":[40,20,20,20],"4-3":[20,20,20,40],"5-1":[20,20,20,20,20],"6-1":[16,17,17,17,17,16]},cd={plain:{2:[{value:"2-1",image:Dc.a},{value:"2-2",image:zc.a},{value:"2-3",image:Fc.a}],3:[{value:"3-1",image:Hc.a},{value:"3-2",image:Gc.a},{value:"3-3",image:Wc.a},{value:"3-4",image:$c.a}],4:[{value:"4-1",image:Qc.a},{value:"4-2",image:Jc.a},{value:"4-3",image:ef.a}]},grid:{2:[{value:"2-1",image:nf.a},{value:"2-2",image:rf.a},{value:"2-3",image:of.a}],3:[{value:"3-1",image:uf.a},{value:"3-2",image:ff.a},{value:"3-3",image:df.a},{value:"3-4",image:mf.a}],4:[{value:"4-1",image:hf.a},{value:"4-2",image:yf.a},{value:"4-3",image:kf.a}]},uneven:{2:[{value:"2-1",image:Cf.a},{value:"2-2",image:_f.a},{value:"2-3",image:Ef.a}],3:[{value:"3-1",image:Pf.a},{value:"3-2",image:Bf.a},{value:"3-3",image:Nf.a},{value:"3-4",image:Af.a}],4:[{value:"4-1",image:Rf.a},{value:"4-2",image:Lf.a},{value:"4-3",image:Uf.a}]}},fd=function(e){return e.every(function(e){return!e})},pd=function(e){var t=sd(Object(i.useState)(-1),2),n=(t[0],t[1]),a=sd(Object(i.useState)(!0),2),r=(a[0],a[1]),o=sd(Object(i.useState)(""),2),u=o[0],c=o[1];Object(i.useEffect)(function(){c("")},[e.columns]);var f="grid"===e.design?"grid":"plain"===e.design?"plain":"uneven",d=cd[f],g=wp.element.createElement(l.Button,{className:"ugb-columns-width-control__reset",disabled:e.forceBlank?fd(e.values):Object(b.isEqual)(e.values,ud[u||"".concat(e.columns,"-1")]),onClick:function(){c(""),e.forceBlank?e.onChange(["","","","","",""]):e.onChange(ud[u||"".concat(e.columns,"-1")])},isSmall:!0,isSecondary:!0},Object(s.__)("Reset"));return wp.element.createElement(l.BaseControl,{help:e.help,className:p()(["ugb-columns-width-control","ugb--help-tip-column-width",e.className])},(e.hasIndividualControls||!e.hasIndividualControls&&d[e.columns])&&wp.element.createElement(ia,{label:e.label,afterButton:e.hasIndividualControls?g:null,screens:e.screens}),d[e.columns]&&wp.element.createElement(ql,{options:d[e.columns],onChange:function(t){n(-1),r(!0),c(t),e.onChange(ud[t])}}),e.hasIndividualControls&&wp.element.createElement(i.Fragment,null,wp.element.createElement(ad,{value:fd(e.values)?ud["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),wp.element.createElement(od,{value:fd(e.values)?e.forceBlank?e.values:ud["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),!1))};pd.defaultProps={columns:2,design:"plain",values:["",""],onChange:function(){},help:"",label:Object(s.__)("Column Widths",o.i18n),className:"",hasIndividualControls:!0,screens:["desktop"],forceBlank:!1};function dd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gd=function(e){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=ge(e.blockAttributes,t,""),a=e.screens;return wp.element.createElement(i.Fragment,null,a.includes("desktop")&&wp.element.createElement(Od,{screens:a},i.Children.toArray(e.children).map(function(a){return Object(i.cloneElement)(a,{value:n(),onChange:function(n){e.onChange?e.onChange(t(),n,""):e.setAttributes(dd({},t(),n))}})})),a.includes("tablet")&&wp.element.createElement(Od,{screens:a,screen:"tablet"},i.Children.toArray(e.children).map(function(a){return Object(i.cloneElement)(a,{value:n("Tablet"),placeholder:n("Tablet")||a.props.placeholder,onChange:function(n){e.onChange?e.onChange(t("Tablet"),n,"Tablet"):e.setAttributes(dd({},t("Tablet"),n))}})})),a.includes("mobile")&&wp.element.createElement(Od,{screens:a,screen:"mobile"},i.Children.toArray(e.children).map(function(a){return Object(i.cloneElement)(a,{value:n("Mobile"),placeholder:n("Mobile")||a.props.placeholder,onChange:function(n){e.onChange?e.onChange(t("Mobile"),n,"Mobile"):e.setAttributes(dd({},t("Mobile"),n))}})})))};gd.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},onChange:null,placeholder:"",screens:["desktop","tablet","mobile"]};var md=gd;function bd(e){return(bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hd(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function vd(e){return(vd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wd(e,t){return(wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kd=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=vd(t).apply(this,arguments))||"object"!==bd(a)&&"function"!=typeof a?yd(n):a).state={screen:Me()},e.onScreenChange=e.onScreenChange.bind(yd(e)),e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wd(e,t)}(t,i["Component"]),n=t,(a=[{key:"onScreenChange",value:function(e){this.setState({screen:e})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(R.addAction)("stackable.responsive-toggle.screen.change","stackable/when-responsive-screen-".concat(e),this.onScreenChange)}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(R.removeAction)("stackable.responsive-toggle.screen.change","stackable/when-responsive-screen-".concat(e))}},{key:"render",value:function(){var e=this,t=i.Children.toArray(this.props.children).map(function(t){return Object(i.cloneElement)(t,{screens:e.props.screens,screen:e.state.screen})}),n=this.state.screen===this.props.screen,a=!this.props.screens.includes(this.state.screen)&&!n&&"desktop"===this.props.screen;return wp.element.createElement(i.Fragment,null,(n||a)&&t)}}])&&hd(n.prototype,a),r&&hd(n,r),t}();kd.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};var Od=Object(dt.withInstanceId)(kd);function Cd(){return(Cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Sd=q.a.createElement("path",{d:"M26.6 40.2h-8.2V27.8H8.8v12.4H.6V9.8h8.2v11.3h9.5V9.8h8.2v30.4zM49.4 40.2h-8.3V24.1c0-2 0-3.7.1-5.4-.5.6-1.1 1.3-1.9 2l-3.4 2.8-4.3-5.2L42 9.8h7.4v30.4z"}),_d=function(e){return q.a.createElement("svg",Cd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Sd)};function xd(){return(xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ed=q.a.createElement("path",{d:"M24.1 39.6H18V27.2H6.6v12.4H.5V10.8h6.1v11.3H18V10.8h6.1v28.8zM49.5 39.6H29.4v-4.2l7.2-7.3c2.1-2.2 3.5-3.7 4.2-4.6.7-.8 1.1-1.6 1.4-2.4.3-.7.4-1.5.4-2.2 0-1.2-.3-2-1-2.6-.6-.6-1.5-.8-2.5-.8-1.1 0-2.2.3-3.2.8s-2.1 1.2-3.3 2.2l-3.3-3.9c1.4-1.2 2.6-2.1 3.5-2.6.9-.5 1.9-.9 3-1.2 1.1-.3 2.3-.4 3.7-.4 1.8 0 3.4.3 4.8 1s2.4 1.6 3.2 2.8 1.1 2.5 1.1 4.1c0 1.3-.2 2.6-.7 3.7-.5 1.2-1.2 2.4-2.2 3.6s-2.7 3-5.2 5.2l-3.7 3.5v.3h12.5v5z"}),jd=function(e){return q.a.createElement("svg",xd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Ed)};function Pd(){return(Pd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Td=q.a.createElement("path",{d:"M24 38.9h-4.6V26.4H6.6V39H2V11.1h4.6v11.4h12.8V11.1H24v27.8zM47.2 17.5c0 1.8-.5 3.2-1.5 4.4-1 1.2-2.5 2-4.3 2.4v.2c2.2.3 3.9 1 5 2.1s1.7 2.6 1.7 4.4c0 2.7-.9 4.7-2.8 6.2s-4.6 2.2-8.1 2.2c-3.1 0-5.7-.5-7.8-1.5v-4c1.2.6 2.4 1 3.8 1.4 1.3.3 2.6.5 3.8.5 2.2 0 3.8-.4 4.8-1.2 1.1-.8 1.6-2 1.6-3.7 0-1.5-.6-2.6-1.8-3.3-1.2-.7-3-1-5.6-1h-2.4V23H36c4.4 0 6.7-1.5 6.7-4.6 0-1.2-.4-2.1-1.2-2.8-.8-.6-1.9-1-3.4-1-1.1 0-2.1.1-3 .4-1 .3-2.1.9-3.5 1.7l-2.2-3.1c2.6-1.9 5.5-2.8 8.9-2.8 2.8 0 5 .6 6.6 1.8 1.5 1.1 2.3 2.8 2.3 4.9z"}),Bd=function(e){return q.a.createElement("svg",Pd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Td)};function Md(){return(Md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Nd=q.a.createElement("path",{d:"M23.5 37.9h-4.2V26.3H7.4v11.6H3.2V12.2h4.2v10.5h11.8V12.2h4.2v25.7zM46.8 32.3h-3.5v5.6h-4v-5.6H27.5v-3.2l11.7-17h4v16.7h3.5v3.5zm-7.5-3.5v-6.4c0-2.3.1-4.2.2-5.6h-.1c-.3.8-.8 1.7-1.5 2.8l-6.4 9.3h7.8z"}),Id=function(e){return q.a.createElement("svg",Md({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Nd)};function Ad(){return(Ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Dd=q.a.createElement("path",{d:"M24.2 36.2h-3.7V26H10v10.2H6.3V13.5H10v9.3h10.5v-9.3h3.7v22.7zM36.3 22c2.3 0 4.1.6 5.4 1.8 1.3 1.2 2 2.9 2 5 0 2.4-.8 4.3-2.3 5.7s-3.7 2-6.5 2c-2.5 0-4.5-.4-6-1.2V32c.8.5 1.8.8 2.9 1.1s2.1.4 3 .4c1.6 0 2.9-.4 3.8-1.1.9-.7 1.3-1.8 1.3-3.2 0-2.7-1.7-4.1-5.2-4.1-.5 0-1.1 0-1.8.1s-1.3.2-1.9.3l-1.6-1 .9-11.1h11.8v3.2h-8.6l-.5 5.8c.4-.1.8-.1 1.3-.2.6-.1 1.2-.2 2-.2z"}),Rd=function(e){return q.a.createElement("svg",Ad({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Dd)};function zd(){return(zd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ld=q.a.createElement("path",{d:"M24.1 35.2h-3.3V26h-9.4v9.2H8.1V14.8h3.3v8.3h9.4v-8.3h3.3v20.4zM28.1 26.5c0-8 3.2-11.9 9.7-11.9 1 0 1.9.1 2.6.2v2.7c-.7-.2-1.5-.3-2.4-.3-2.2 0-3.8.6-4.9 1.8-1.1 1.2-1.7 3-1.8 5.6h.2c.4-.8 1-1.3 1.8-1.7.8-.4 1.7-.6 2.8-.6 1.8 0 3.3.6 4.3 1.7s1.5 2.7 1.5 4.6c0 2.1-.6 3.8-1.8 5.1-1.2 1.2-2.8 1.9-4.9 1.9-1.5 0-2.7-.3-3.8-1.1-1.1-.7-1.9-1.7-2.5-3.1-.5-1.4-.8-3-.8-4.9zm7.1 6.2c1.1 0 2-.4 2.6-1.1.6-.7.9-1.8.9-3.1 0-1.2-.3-2.1-.9-2.8-.6-.7-1.4-1-2.6-1-.7 0-1.4.2-1.9.5-.6.3-1.1.7-1.4 1.2-.3.5-.5 1.1-.5 1.6 0 1.3.4 2.4 1.1 3.3.7 1 1.6 1.4 2.7 1.4z"}),Fd=function(e){return q.a.createElement("svg",zd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Ld)};function Ud(){return(Ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Hd=[{value:"h1",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),1),icon:wp.element.createElement(_d,null)},{value:"h2",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),2),icon:wp.element.createElement(jd,null)},{value:"h3",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),3),icon:wp.element.createElement(Bd,null)},{value:"h4",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),4),icon:wp.element.createElement(Id,null)},{value:"h5",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),5),icon:wp.element.createElement(Rd,null)},{value:"h6",title:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Heading",o.i18n),6),icon:wp.element.createElement(Fd,null)}],Vd=function(e){return wp.element.createElement(ur,Ud({},e,{className:"ugb-heading-buttons-control",controls:Hd}))};Vd.defaultProps={label:Object(s.sprintf)(Object(s._x)("%s HTML Tag","component"),Object(s.__)("Title",o.i18n)),value:Hd[0].value};function Gd(){return(Gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qd=[{value:"left",title:Object(s.__)("Align Left",o.i18n),icon:"editor-alignleft"},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:"editor-aligncenter"},{value:"right",title:Object(s.__)("Align Right",o.i18n),icon:"editor-alignright"},{value:"justify",title:Object(s.__)("Justified",o.i18n),icon:"editor-justify"}],Wd=function(e){var t=e.justified,n=e.className;return wp.element.createElement(ur,Gd({},Object(b.omit)(e,["justified"]),{className:p()([n,"ugb-align-buttons-control"]),controls:qd.filter(function(e){return!!t||"justify"!==e.value})}))};Wd.defaultProps={className:"",label:Object(s.__)("Align",o.i18n),value:qd[0].value,justified:!1};var Kd=Wd;function $d(){return($d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Yd(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Qd={Edit:function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Yd(e,["blockProps","render","mainClass","blockTag"]),l=t.blockName,o=t.attributes,s=o.anchor,u=void 0===s?"":s,c=o.design,f=o.blockTag,d=void 0===f?"div":f,g=p()([e.className],Object(R.applyFilters)("stackable.".concat(l,".main-block.classes"),{"ugb-main-block":a},t)),m=p()(["ugb-inner-block"],Object(R.applyFilters)("stackable.".concat(l,".main-block.inner-classes"),{},t)),b=""!==u?u:void 0,h=d||r||"div";return wp.element.createElement(h,$d({},i,{id:b,className:g}),t.styles,Object(R.applyFilters)("stackable.".concat(l,".edit.output.outer"),null,c,t),n&&wp.element.createElement("div",{className:m},Object(R.applyFilters)("stackable.".concat(l,".edit.output.before"),null,c,t),wp.element.createElement("div",{className:"ugb-block-content"},n(t)),Object(R.applyFilters)("stackable.".concat(l,".edit.output.after"),null,c,t)))}};Qd.Edit.defaultProps={styles:null,mainClass:!0},Qd.Save=function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Yd(e,["blockProps","render","mainClass","blockTag"]),l=t.blockName,o=t.attributes,s=o.anchor,u=void 0===s?"":s,c=o.design,f=o.blockTag,d=void 0===f?"div":f,g=p()([e.className],Object(R.applyFilters)("stackable.".concat(l,".main-block.classes"),{"ugb-main-block":a},t)),m=p()(["ugb-inner-block"],Object(R.applyFilters)("stackable.".concat(l,".main-block.inner-classes"),{},t)),b=""!==u?u:void 0,h=d||r||"div";return wp.element.createElement(h,$d({},i,{id:b,className:g}),t.styles,Object(R.applyFilters)("stackable.".concat(l,".save.output.outer"),null,c,t),n&&wp.element.createElement("div",{className:m},Object(R.applyFilters)("stackable.".concat(l,".save.output.before"),null,c,t),wp.element.createElement("div",{className:"ugb-block-content"},n(t)),Object(R.applyFilters)("stackable.".concat(l,".save.output.after"),null,c,t)))},Qd.Save.defaultProps={styles:null,mainClass:!0};var Xd=n(24);function Jd(e){return(Jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zd(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function eg(e){return(eg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ng(e,t){return(ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ag=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=eg(t).apply(this,arguments))||"object"!==Jd(a)&&"function"!=typeof a?tg(n):a).state={value:e.props.value},e.uniqueId=Object(b.uniqueId)("ugb-code-textarea-"),e.onChange=e.onChange.bind(tg(e)),e.debouncedOnChange=Object(b.debounce)(e.debouncedOnChange.bind(tg(e)),500,{leading:!0}),e.codeMirror=null,e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ng(e,t)}(t,i["Component"]),n=t,(a=[{key:"componentWillUnmount",value:function(){this.debouncedOnChange.cancel(),this.codeMirror&&this.codeMirror.codemirror.off("change",this.onChange)}},{key:"componentDidMount",value:function(){Xd.initialize&&(this.codeMirror=Object(Xd.initialize)(this.uniqueId,se()(Xd.defaultSettings,this.props.editorSettings)),this.codeMirror.codemirror.on("change",this.onChange))}},{key:"debouncedOnChange",value:function(e){this.props.onChange(e||this.state.value)}},{key:"onChange",value:function(e){var t=e.getValue?e.getValue():e;this.setState({value:t}),this.debouncedOnChange(t)}},{key:"render",value:function(){return wp.element.createElement("textarea",{className:"ugb-code-textarea",id:this.uniqueId,value:this.state.value,onChange:this.onChange})}}])&&Zd(n.prototype,a),r&&Zd(n,r),t}();ag.defaultProps={value:"",onChange:function(){},editorSettings:{}};function rg(){return(rg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ig=q.a.createElement("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}),lg=function(e){return q.a.createElement("svg",rg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ig)};function og(){return(og=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var sg=q.a.createElement("filter",{id:"curve-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),ug=q.a.createElement("path",{className:"curve-1-shadow_svg__st2",d:"M808 87.9c-334.7 0-631.8 37-818 94.1v10c186.2-57.1 483.3-94.1 818-94.1 325.3 0 615 34.9 802 89.3v-10c-187-54.3-476.7-89.3-802-89.3z"}),cg=function(e){return q.a.createElement("svg",og({viewBox:"0 0 1600 200",filter:"url(#curve-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),sg,ug)};function fg(){return(fg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pg=q.a.createElement("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}),dg=function(e){return q.a.createElement("svg",fg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),pg)};function gg(){return(gg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var mg=q.a.createElement("filter",{id:"curve-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),bg=q.a.createElement("path",{d:"M808 167.6c-334.7 0-631.8-37-818-94.1v10c186.2 57.1 483.3 94.1 818 94.1 325.3 0 615-34.9 802-89.3v-10c-187 54.4-476.7 89.3-802 89.3z"}),hg=function(e){return q.a.createElement("svg",gg({viewBox:"0 0 1600 200",filter:"url(#curve-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),mg,bg)};function vg(){return(vg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yg=q.a.createElement("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}),wg=function(e){return q.a.createElement("svg",vg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),yg)};function kg(){return(kg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Og=q.a.createElement("filter",{id:"curve-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Cg=q.a.createElement("path",{className:"curve-2-shadow_svg__st2",d:"M1138.3 36.2c246.1 0 412 130.1 458.4 171.4h13.3S1430.8 23.8 1138.3 23.8C884 23.8 172 156.9-10 197.9v9.7H2.2C201.7 163.7 889.3 36.2 1138.3 36.2z"}),Sg=function(e){return q.a.createElement("svg",kg({viewBox:"0 0 1600 200",filter:"url(#curve-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Og,Cg)};function _g(){return(_g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var xg=q.a.createElement("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}),Eg=function(e){return q.a.createElement("svg",_g({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),xg)};function jg(){return(jg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Pg=q.a.createElement("filter",{id:"curve-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Tg=q.a.createElement("path",{d:"M1604.2 13.7c3.3-3.1 5.2 152.3 5.7 193.7h.1S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v10c244.9 57.8 894 174.1 1148.3 174.1 262 0 433.1-147.5 465.9-178.2z"}),Bg=function(e){return q.a.createElement("svg",jg({viewBox:"0 0 1600 200",filter:"url(#curve-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Pg,Tg)};function Mg(){return(Mg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ng=q.a.createElement("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}),Ig=function(e){return q.a.createElement("svg",Mg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ng)};function Ag(){return(Ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Dg=q.a.createElement("filter",{id:"curve-3-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Rg=q.a.createElement("path",{className:"curve-3-shadow_svg__st1",d:"M876.1 171.1C456 171.1-6.7 13.4-6.7 13.4v13.7S456 184.8 876.1 184.8s730.3-155.1 730.3-155.1V16s-310.3 155.1-730.3 155.1z"}),zg=function(e){return q.a.createElement("svg",Ag({viewBox:"0 0 1600 200",filter:"url(#curve-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Dg,Rg)};function Lg(){return(Lg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Fg=q.a.createElement("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}),Ug=function(e){return q.a.createElement("svg",Lg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Fg)};function Hg(){return(Hg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vg=q.a.createElement("filter",{id:"curve-3-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Gg=q.a.createElement("path",{d:"M876.2 40.3C456.1 40.3-6.5 177.6-6.5 177.6v10S456.2 50.3 876.3 50.3s730.3 135.1 730.3 135.1v-10c0-.1-310.3-135.1-730.4-135.1z"}),qg=function(e){return q.a.createElement("svg",Hg({viewBox:"0 0 1600 200",filter:"url(#curve-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Vg,Gg)};function Wg(){return(Wg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Kg=q.a.createElement("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}),$g=function(e){return q.a.createElement("svg",Wg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Kg)};function Yg(){return(Yg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Qg=q.a.createElement("filter",{id:"rounded-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Xg=q.a.createElement("path",{className:"rounded-1-shadow_svg__st1",d:"M1491.2 20.7c48.1-3.8 90.6 32.5 94.4 80.6l8.5 107.7h8.8l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2v9.4L1491.2 20.7z"}),Jg=function(e){return q.a.createElement("svg",Yg({viewBox:"0 0 1600 200",filter:"url(#rounded-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Qg,Xg)};function Zg(){return(Zg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var em=q.a.createElement("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}),tm=function(e){return q.a.createElement("svg",Zg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),em)};function nm(){return(nm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var am=q.a.createElement("filter",{id:"rounded-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),rm=q.a.createElement("path",{d:"M1596.6 111.7l8.2-78-.2-36.4-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v10l1507.2 120.5c48.1 3.8 93.6-32.5 97.4-80.6z"}),im=function(e){return q.a.createElement("svg",nm({viewBox:"0 0 1600 200",filter:"url(#rounded-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),am,rm)};function lm(){return(lm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var om=q.a.createElement("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}),sm=function(e){return q.a.createElement("svg",lm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),om)};function um(){return(um=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var cm=q.a.createElement("filter",{id:"rounded-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),fm=q.a.createElement("path",{className:"rounded-2-shadow_svg__st2",d:"M1600 133.2c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2V210h9v-66.8c0-10.9 8.9-19.8 19.8-19.8h1542.4c10.9 0 19.8 8.9 19.8 19.8V210h9v-76.8z"}),pm=function(e){return q.a.createElement("svg",um({viewBox:"0 0 1600 200",filter:"url(#rounded-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),cm,fm)};function dm(){return(dm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var gm=q.a.createElement("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}),mm=function(e){return q.a.createElement("svg",dm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),gm)};function bm(){return(bm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var hm=q.a.createElement("filter",{id:"rounded-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),vm=q.a.createElement("path",{d:"M1600 128.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v10l10-.2c0 11 8.9 19.9 19.8 19.8h1560.4c10.9 0 19.8-8.9 19.8-19.8h9.5v-10h-9.5z"}),ym=function(e){return q.a.createElement("svg",bm({viewBox:"0 0 1600 200",filter:"url(#rounded-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),hm,vm)};function wm(){return(wm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var km=q.a.createElement("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}),Om=function(e){return q.a.createElement("svg",wm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),km)};function Cm(){return(Cm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Sm=q.a.createElement("filter",{id:"rounded-3-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),_m=q.a.createElement("path",{d:"M1472.3 99.9c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v10s449.8-106 489.8-115.5 90.8-9.7 121.1-8.2c30.3 1.6 734.2 39.7 783.9 42.3 49.8 2.6 69.9 6.8 87 18.1 10 6.6 138.2 89.2 138.2 89.2v-10s-128.2-82.6-138.2-89.2z"}),xm=function(e){return q.a.createElement("svg",Cm({viewBox:"0 0 1600 200",filter:"url(#rounded-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Sm,_m)};function Em(){return(Em=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var jm=q.a.createElement("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}),Pm=function(e){return q.a.createElement("svg",Em({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),jm)};function Tm(){return(Tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Bm=q.a.createElement("filter",{id:"rounded-3-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Mm=q.a.createElement("path",{d:"M1472.3 113.3c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v10s449.8 106 489.8 115.5 90.8 9.7 121.1 8.2c30.3-1.6 734.2-39.7 783.9-42.3 49.8-2.6 69.9-6.8 87-18.1 10-6.6 138.2-89.2 138.2-89.2v-10s-128.2 82.6-138.2 89.2z"}),Nm=function(e){return q.a.createElement("svg",Tm({viewBox:"0 0 1600 200",filter:"url(#rounded-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Bm,Mm)};function Im(){return(Im=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Am=q.a.createElement("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}),Dm=function(e){return q.a.createElement("svg",Im({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Am)};function Rm(){return(Rm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var zm=q.a.createElement("filter",{id:"slant-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Lm=q.a.createElement("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}),Fm=function(e){return q.a.createElement("svg",Rm({viewBox:"0 0 1600 200",filter:"url(#slant-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),zm,Lm)};function Um(){return(Um=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Hm=q.a.createElement("path",{d:"M1610 210H-10V.5l1620 183.4z"}),Vm=function(e){return q.a.createElement("svg",Um({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Hm)};function Gm(){return(Gm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qm=q.a.createElement("filter",{id:"slant-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Wm=q.a.createElement("path",{d:"M-10 .5v10l1620 183.4v-10z"}),Km=function(e){return q.a.createElement("svg",Gm({viewBox:"0 0 1600 200",filter:"url(#slant-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),qm,Wm)};function $m(){return($m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ym=q.a.createElement("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}),Qm=function(e){return q.a.createElement("svg",$m({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ym)};function Xm(){return(Xm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Jm=q.a.createElement("filter",{id:"slant-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Zm=q.a.createElement("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}),eb=function(e){return q.a.createElement("svg",Xm({viewBox:"0 0 1600 200",filter:"url(#slant-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Jm,Zm)};function tb(){return(tb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var nb=q.a.createElement("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}),ab=function(e){return q.a.createElement("svg",tb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),nb)};function rb(){return(rb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ib=q.a.createElement("filter",{id:"slant-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),lb=q.a.createElement("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}),ob=function(e){return q.a.createElement("svg",rb({viewBox:"0 0 1600 200",filter:"url(#slant-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ib,lb)};function sb(){return(sb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ub=q.a.createElement("path",{d:"M-10 210h1620V105.2H-10z"}),cb=function(e){return q.a.createElement("svg",sb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ub)};function fb(){return(fb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pb=q.a.createElement("filter",{id:"straight-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),db=q.a.createElement("path",{d:"M-10 121.6h1620v-16.4H-10z"}),gb=function(e){return q.a.createElement("svg",fb({viewBox:"0 0 1600 200",filter:"url(#straight-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),pb,db)};function mb(){return(mb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var bb=q.a.createElement("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}),hb=function(e){return q.a.createElement("svg",mb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),bb)};function vb(){return(vb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yb=q.a.createElement("filter",{id:"wave-1-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),wb=q.a.createElement("path",{className:"wave-1-shadow_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7v10s91.9 35.9 203.9 35.9 182.4-38.8 324.6-38.8c183.8 0 275.7 67.5 393.5 67.5 175.2 0 247-80.4 429.4-80.4 87.6 0 158 12.9 268.6 53.1v-10c-110.6-40.2-181-53.1-268.6-53.1z"}),kb=function(e){return q.a.createElement("svg",vb({viewBox:"0 0 1600 200",filter:"url(#wave-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),yb,wb)};function Ob(){return(Ob=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cb=q.a.createElement("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}),Sb=function(e){return q.a.createElement("svg",Ob({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Cb)};function _b(){return(_b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var xb=q.a.createElement("filter",{id:"wave-1-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Eb=q.a.createElement("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v10s91.9-35.9 203.9-35.9 182.4 38.8 324.6 38.8C702.3 148.5 794.2 81 912 81c175.2 0 247 80.4 429.4 80.4 87.6 0 158-12.9 268.6-53.1v-10c-110.6 40.2-181 53.1-268.6 53.1z"}),jb=function(e){return q.a.createElement("svg",_b({viewBox:"0 0 1600 200",filter:"url(#wave-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),xb,Eb)};function Pb(){return(Pb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Tb=q.a.createElement("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}),Bb=function(e){return q.a.createElement("svg",Pb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Tb)};function Mb(){return(Mb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Nb=q.a.createElement("filter",{id:"wave-2-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ib=q.a.createElement("path",{className:"wave-2-shadow_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3v10s77.1 31.5 171.6 3c69.7-21 174.7-62.6 294.4-73 115-10 163.1 3.4 274.1 23.8 111 20.4 199.6 39.5 275 27.9 76-11.7 175.1-60.1 223.1-73.9s115.2-25.2 204-8.5c91 17.1 124.8 34.2 177.8 24.2v-10c-53 10-86.8-7.1-177.8-24.2z"}),Ab=function(e){return q.a.createElement("svg",Mb({viewBox:"0 0 1600 200",filter:"url(#wave-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Nb,Ib)};function Db(){return(Db=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Rb=q.a.createElement("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}),zb=function(e){return q.a.createElement("svg",Db({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Rb)};function Lb(){return(Lb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Fb=q.a.createElement("filter",{id:"wave-2-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ub=q.a.createElement("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v10s77.1-31.5 171.6-3c69.7 21 174.7 62.6 294.4 73 115 10 163.1-3.4 274.1-23.8 111-20.4 199.6-39.5 275-27.9 76 11.7 175.1 60.1 223.1 73.9s115.2 25.2 204 8.5c91-17.1 124.8-34.2 177.8-24.2v-10c-53-10-86.8 7.1-177.8 24.2z"}),Hb=function(e){return q.a.createElement("svg",Lb({viewBox:"0 0 1600 200",filter:"url(#wave-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Fb,Ub)};function Vb(){return(Vb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gb=q.a.createElement("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}),qb=function(e){return q.a.createElement("svg",Vb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Gb)};function Wb(){return(Wb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Kb=q.a.createElement("filter",{id:"wave-3-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),$b=q.a.createElement("path",{className:"wave-3-shadow_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.5 102-10 136.2-10 136.2v10s69.9-5.7 198.5-34.3 221.7-45.7 311.8-49.1 202.6.3 418.2 41.1c156.9 29.7 337.2 67.4 495.1 67.4 127.6 0 196.4-19.4 196.4-19.4v-10s-68.8 19.5-196.4 19.5z"}),Yb=function(e){return q.a.createElement("svg",Wb({viewBox:"0 0 1600 200",filter:"url(#wave-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Kb,$b)};function Qb(){return(Qb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Xb=q.a.createElement("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}),Jb=function(e){return q.a.createElement("svg",Qb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Xb)};function Zb(){return(Zb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var eh=q.a.createElement("filter",{id:"wave-3-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),th=q.a.createElement("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7C59.8 70.1-10 64.5-10 64.5v10s69.8 5.6 198.4 34.2c128.6 28.6 221.8 45.6 311.9 49.1s202.6-.3 418.2-41.1c156.9-29.7 337.2-67.4 495.1-67.4 127.6 0 196.4 19.5 196.4 19.5v-10s-68.8-19.5-196.4-19.5z"}),nh=function(e){return q.a.createElement("svg",Zb({viewBox:"0 0 1600 200",filter:"url(#wave-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),eh,th)};function ah(){return(ah=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rh=q.a.createElement("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}),ih=function(e){return q.a.createElement("svg",ah({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),rh)};function lh(){return(lh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var oh=q.a.createElement("filter",{id:"wave-4-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),sh=q.a.createElement("path",{d:"M1368.6 135.4c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v10c90 56.1 248.1 20.6 362.8 8 114.4-12.3 171 18.4 209.2 43.1 38.2 24.8 87.3 21.4 106 19.3 18.6-2.1 109.8-2 185.5 25.1 53.2 19 81.1 33.5 174.2 33.6 93 .2 183.5-39.4 340.9-49.4 160-10.2 241.4 23.1 241.4 23.1v-10s-81.4-33.3-241.4-23.1z"}),uh=function(e){return q.a.createElement("svg",lh({viewBox:"0 0 1600 200",filter:"url(#wave-4-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),oh,sh)};function ch(){return(ch=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fh=q.a.createElement("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}),ph=function(e){return q.a.createElement("svg",ch({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),fh)};function dh(){return(dh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var gh=q.a.createElement("filter",{id:"wave-4-inverted-shadow_svg__a"},q.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),q.a.createElement("feComponentTransfer",null,q.a.createElement("feFuncA",{type:"linear",slope:.4})),q.a.createElement("feMerge",null,q.a.createElement("feMergeNode",null),q.a.createElement("feMergeNode",{in:"SourceGraphic"}))),mh=q.a.createElement("path",{d:"M1368.6 102.3c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v10c90-56.1 248.1-20.6 362.8-8 114.4 12.3 171-18.4 209.2-43.1 38.2-24.8 87.3-21.4 106-19.3 18.6 2.1 109.8 2 185.5-25.1 53.2-19 81.1-33.5 174.2-33.6 93-.2 183.5 39.4 340.9 49.4 160 10.2 241.4-23.1 241.4-23.1v-10s-81.4 33.3-241.4 23.1z"}),bh={"wave-1":{default:{shape:hb,shadow:kb},inverted:{shape:Sb,shadow:jb}},"wave-2":{default:{shape:Bb,shadow:Ab},inverted:{shape:zb,shadow:Hb}},"wave-3":{default:{shape:qb,shadow:Yb},inverted:{shape:Jb,shadow:nh}},"wave-4":{default:{shape:ih,shadow:uh},inverted:{shape:ph,shadow:function(e){return q.a.createElement("svg",dh({viewBox:"0 0 1600 200",filter:"url(#wave-4-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),gh,mh)}}},"curve-1":{default:{shape:lg,shadow:cg},inverted:{shape:dg,shadow:hg}},"curve-2":{default:{shape:wg,shadow:Sg},inverted:{shape:Eg,shadow:Bg}},"curve-3":{default:{shape:Ig,shadow:zg},inverted:{shape:Ug,shadow:qg}},"slant-1":{default:{shape:Dm,shadow:Fm},inverted:{shape:Vm,shadow:Km}},"slant-2":{default:{shape:Qm,shadow:eb},inverted:{shape:ab,shadow:ob}},"straight-1":{default:{shape:cb,shadow:gb},inverted:{shape:cb,shadow:gb}},"rounded-1":{default:{shape:$g,shadow:Jg},inverted:{shape:tm,shadow:im}},"rounded-2":{default:{shape:sm,shadow:pm},inverted:{shape:mm,shadow:ym}},"rounded-3":{default:{shape:Om,shadow:xm},inverted:{shape:Pm,shadow:Nm}}},hh=function(e){var t=bh[e.design][e.inverted?"inverted":"default"],n=t.shape,a=t.shadow,r=p()([e.className,"ugb-separator-wrapper"]);return wp.element.createElement("div",{className:r},e.shadow&&wp.element.createElement(a,{className:"ugb-separator__shadow",preserveAspectRatio:"none","aria-hidden":"true"}),wp.element.createElement(n,{className:"ugb-separator__layer-1",preserveAspectRatio:"none","aria-hidden":"true"}),e.children)};hh.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},hh.Save=function(e){return wp.element.createElement(hh,e)};function vh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yh=function(e){var t,n=p()([e.className,"ugb-img"],(vh(t={},"wp-image-".concat(e.imageId),e.imageId),vh(t,"ugb-img--shape",e.shape),vh(t,"ugb-image--shape-stretch",e.shapeStretch),vh(t,"ugb--shadow-".concat(e.shadow),!e.shape&&e.shadow),t));return wp.element.createElement("img",{className:n,src:e.src||void 0,alt:g()(e.alt||void 0),width:e.width||void 0,height:e.height||void 0})};yh.defaultProps={imageId:"",alt:"",src:"",size:"full",width:"",height:"",shape:"",shapeStretch:!1,shadow:""};var wh=n(19),kh=wp.element.createElement(l.Icon,{icon:function(){return fl(wp.element.createElement(ol,{width:"20",height:"20"}))}}),Oh=wp.element.createElement(l.Icon,{icon:function(){return fl(wp.element.createElement(cl,{width:"20",height:"20"}))}});var Ch=Object(dt.compose)([Object(ne.withSelect)(function(e,t){var n=t.clientIds,a=e("core/block-editor"),r=a.getBlockRootClientId,i=a.getBlocksByClientId,l=(0,a.canInsertBlockType)("ugb/container",n&&n.length>0?r(n[0]):void 0),o=i(n),s=1===o.length&&o[0]&&"ugb/container"===o[0].name;return{isGroupable:l&&o.length&&!s,isUngroupable:s&&!!o[0].innerBlocks.length,blocksSelection:o,groupingBlockName:"ugb/container"}}),Object(ne.withDispatch)(function(e,t){var n=t.clientIds,a=t.onToggle,r=void 0===a?b.noop:a,i=t.blocksSelection,l=void 0===i?[]:i,o=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(l.length){var e=l.map(function(e){return Object(he.cloneBlock)(e)}),t=Object(he.createBlock)("ugb/container",{},e);o(n,t),r()}},onConvertFromGroup:function(){if(l.length){var e=l[0].innerBlocks;e.length&&(o(n,e),r())}}}})])(function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,a=e.isGroupable,r=void 0!==a&&a,l=e.isUngroupable,u=void 0!==l&&l;return Object(ne.select)("core/block-editor").getSelectedBlockClientIds?wp.element.createElement(i.Fragment,null,r&&wp.element.createElement(wh.PluginBlockSettingsMenuItem,{icon:kh,label:Object(s.__)("Group into Container",o.i18n),onClick:t}),u&&wp.element.createElement(wh.PluginBlockSettingsMenuItem,{icon:Oh,label:Object(s.__)("Ungroup from Container",o.i18n),onClick:n})):null}),Sh=(Object(ne.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientIds;return t?{clientIds:t()}:{}})(Ch),Object(dt.withState)({openPopover:!1,changed:!1})(function(e){var t=e.blockName,n=e.openPopover,a=e.changed,r=e.setState,o=e.getJSONBlockAttributes,s=e.setJSONBlockAttributes;return wp.element.createElement(i.Fragment,null,wp.element.createElement(wh.PluginBlockSettingsMenuItem,{icon:"editor-code",label:"Get / Set Block Attributes",onClick:function(){r({openPopover:!0,changed:!1}),setTimeout(function(){return document.querySelector(".ugb-modal-get-block-attributes-button textarea").select()},100)}}),n&&wp.element.createElement(l.Modal,{title:"".concat(Object(b.startCase)(t)," Block Attributes"),focusOnMount:!0,className:"ugb-modal-get-block-attributes-button",onRequestClose:function(){if(a){var e=document.querySelector(".ugb-modal-get-block-attributes-button textarea").value;s(e)}r({openPopover:!1})}},wp.element.createElement("p",null,'Copy or modify the attributes of the block directly. Use only double quotes "'),wp.element.createElement("textarea",{onChange:function(){return r({changed:!0})}},o())))})),_h=Object(dt.compose)([Object(ne.withSelect)(function(e,t){var n=t.clientId,a=e("core/block-editor").getBlockName;return{blockName:n&&a(n)?a(n).replace(/^\w+\//g,""):"",getJSONBlockAttributes:function(){var t=e("core/block-editor").getBlockName,a=e("core/blocks").getBlockType;if(!n)return{};var r=e("core/block-editor").getBlockAttributes(n),i=t(n).replace(/^\w+\//g,""),l=a(t(n)).attributes,o=Object.keys(r).reduce(function(e,t){return r[t]!==(l[t]?l[t].default:"")&&(e[t]=r[t]),e},{});return o.uniqueClass=void 0,JSON.stringify(Object(R.applyFilters)("stackable.".concat(i,".design.filtered-block-attributes"),o),null,4)}}}),Object(ne.withDispatch)(function(e,t){var n=t.clientId;return{setJSONBlockAttributes:function(e){if(n)try{!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(ne.select)("core/block-editor"),r=a.getBlockName,i=a.getSelectedBlockClientId,l=a.getBlockAttributes,o=a.hasMultiSelection,s=a.getMultiSelectedBlockClientIds,u=Object(ne.dispatch)("core/block-editor"),c=u.updateBlockAttributes,f=Object(ne.select)("core/blocks"),p=f.getBlockType;if(n||!o()){var d=n||i();if(d){var g=l(d),m=r(d).replace(/^\w+\//g,""),h=p(r(d)).attributes,v=Object.keys(h).reduce(function(e,t){return ye({},e,we({},t,h[t]?h[t].default:""))},{}),y=Object(R.applyFilters)("stackable.".concat(m,".design.filtered-block-attributes"),ye({},v,{},t),g),w=Object(R.applyFilters)("stackable.".concat(m,".design.no-text-attributes"),y,g);A(w),c(d,Object(b.omit)(w,["uniqueClass"]))}}else s().forEach(function(n){e(t,n)})}(JSON.parse(e),n)}catch(e){console.error(e)}}}})])(Sh);Object(ne.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientId;return t?{clientId:t()}:{}})(_h);function xh(){return(xh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Eh(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var jh=function(e){var t=e.blockTag,n=e.className,a=e.backgroundAttrName,r=e.blockProps,l=e.showBackground,o=e.showVideoBackground,u=Eh(e,["blockTag","className","backgroundAttrName","blockProps","showBackground","showVideoBackground"]),c=p()([n],{"ugb--has-background-overlay":l&&V(a,r.attributes)});return wp.element.createElement(t,xh({className:c},u),e.children,l&&o&&function(e,t){var n=ge(t.attributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e,t))},""),a=n("BackgroundMediaUrl"),r=n("TabletBackgroundMediaUrl"),l=n("MobileBackgroundMediaUrl"),o=p()(["ugb-video-background"],{"ugb--video-hide-tablet":r,"ugb--video-hide-mobile":l}),u=p()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-mobile":l}),c=p()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-tablet":!0});return wp.element.createElement(i.Fragment,null,Te(a)&&wp.element.createElement("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),Te(r)&&wp.element.createElement("video",{className:u,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:r}),Te(l)&&wp.element.createElement("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:l}))}(a,r))};jh.defaultProps={className:"",backgroundAttrName:"%s",blockProps:{},showBackground:!0,showVideoBackground:!0,blockTag:"div"};var Ph=function(e){return wp.element.createElement(l.Modal,{title:Object(s.__)("Stackable Welcome Guide",o.i18n),className:"ugb-modal-welcome-video",overlayClassName:"ugb-modal-welcome-video__overlay",shouldCloseOnClickOutside:!1,onRequestClose:e.onRequestClose},wp.element.createElement("p",null,Object(s.__)("Hello there 👋 I see you might be new to Stackable, we've made a short 3-minute video so you can make the most out of our unique blocks.",o.i18n)),wp.element.createElement("iframe",{title:Object(s.__)("Video Tutorial",o.i18n),width:"800",height:"413",src:"https://www.youtube.com/embed/UW0Rg96aATA",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),wp.element.createElement("p",null,wp.element.createElement(l.Button,{className:"button-primary",onClick:e.onRequestClose,"data-testid":"button-close"},Object(s.__)("Close it, I'm good",o.i18n))))};Ph.defaultProps={onRequestClose:function(){}};function Th(){return(Th=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Bh=q.a.createElement("path",{d:"M38 12H12v26h26V12z"}),Mh=function(e){return q.a.createElement("svg",Th({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Bh)};function Nh(){return(Nh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ih=q.a.createElement("path",{d:"M12.5 12.5H0V0h12.5v12.5zM31.2 0H18.8v12.5h12.5V0zM50 0H37.5v12.5H50V0zM12.5 18.8H0v12.5h12.5V18.8zm18.7 0H18.8v12.5h12.5V18.8zm18.8 0H37.5v12.5H50V18.8zM12.5 37.5H0V50h12.5V37.5zm18.7 0H18.8V50h12.5V37.5zm18.8 0H37.5V50H50V37.5z"}),Ah=function(e){return q.a.createElement("svg",Nh({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Ih)};function Dh(){return(Dh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Rh=q.a.createElement("path",{d:"M21.1 5.3H5.3v15.8h15.8V5.3zm23.6 0H28.9v15.8h15.8V5.3zM21.1 28.9H5.3v15.8h15.8V28.9zm23.6 0H28.9v15.8h15.8V28.9z"}),zh=function(e){return q.a.createElement("svg",Dh({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Rh)},Lh=void 0;function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(n,!0).forEach(function(t){Hh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Gh=function(e){var t=Vh(Object(i.useState)([]),2),n=t[0],a=t[1],r=Vh(Object(i.useState)({}),2),l=r[0],u=r[1],c=Vh(Object(i.useState)(0),2),f=c[0],d=c[1],g=Vh(Object(i.useState)(0),2),m=g[0],h=g[1],v=Vh(Object(i.useState)(0),2),y=v[0],w=v[1],k=Vh(Object(i.useState)(""),2),O=k[0],C=k[1];return Object(i.useEffect)(function(){Qi().then(function(e){var t=e.reduce(function(e,t){if(!e[t]){if(Object(ne.select)("core/edit-post").getPreference("hiddenBlockTypes").includes(t))return e;if(!Object(ne.select)("core/blocks").getBlockType(t))return e;e[t]={count:0,name:t,label:t?Object(ne.select)("core/blocks").getBlockType(t).title:""}}return e},{});u(t)})},[]),Object(i.useEffect)(function(){Object.keys(l).length&&$i({type:"block",search:e.search,mood:e.mood,colors:e.colors}).then(function(t){var n=Object.keys(l).reduce(function(e,t){return e[t]=Uh({},l[t]),e},{}),r=0,i=0,o=t.reduce(function(t,n){var a=n.block,l=n.type,o=n.plan;return"block"===l&&t[a]&&t[a].count++,e.forceBlock&&e.forceBlock!==n.block||(i++,"free"===o&&r++),t},Uh({},n));d(i),h(r),w(i-r),a(Object(b.orderBy)(o,["title"],["asc"]))})},[l,e.search,e.mood,e.colors]),wp.element.createElement("ul",{className:"ugb-block-list"},wp.element.createElement("li",null,wp.element.createElement("div",{className:""===O?"is-active":"","data-count":f,onClick:function(){C(""),e.onSelect({block:"",plan:""})},onKeyPress:function(e){13===e.keyCode&&Lh.click()},role:"button",tabIndex:0,"aria-pressed":""===O?"true":"false"},Object(s.__)("All Block Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"all-count"},f))),f!==m&&wp.element.createElement("li",null,wp.element.createElement("div",{className:"free"===O?"is-active":"","data-count":m,onClick:function(){C("free"),e.onSelect({block:"",plan:"free"})},onKeyPress:function(e){13===e.keyCode&&Lh.click()},role:"button",tabIndex:0,"aria-pressed":"free"===O?"true":"false"},Object(s.__)("Free Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"free-count"},m)),wp.element.createElement("div",{className:"premium"===O?"is-active":"","data-count":y,onClick:function(){C("premium"),e.onSelect({block:"",plan:"premium"})},onKeyPress:function(e){13===e.keyCode&&Lh.click()},role:"button",tabIndex:0,"aria-pressed":"premium"===O?"true":"false"},Object(s.__)("Premium Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"premium-count"},y))),wp.element.createElement(Go,null),n.map(function(t,n){var a=O===t.name||t.name===e.forceBlock,r=p()({"is-active":a,"is-disabled":e.forceBlock&&t.name!==e.forceBlock});return wp.element.createElement("li",{key:n},wp.element.createElement("div",{className:r,"data-count":t.count,onClick:function(){e.forceBlock||(C(t.name),e.onSelect({block:t.name,plan:""}))},onKeyPress:function(e){13===e.keyCode&&Lh.click()},role:"button",tabIndex:0,"aria-pressed":a?"true":"false"},t.label,wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"".concat(t.name,"-count")},t.count)))}))};Gh.defaultProps={search:"",mood:"",colors:[],onSelect:function(){},forceBlock:""};var qh=Gh;function Wh(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Kh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var $h={red:{color:"#f44336",name:"red"},green:{color:"#4caf50",name:"green"},yellow:{color:"#ffeb3b",name:"yellow"},blue:{color:"#2196f3",name:"blue"},pink:{color:"#e91e63",name:"pink"},gray:{color:"#9e9e9e",name:"gray"},brown:{color:"#795548",name:"brown"},orange:{color:"#ff9800",name:"orange"},purple:{color:"#9c27b0",name:"purple"},black:{color:"#212121",name:"black"},white:{color:"#fff",name:"white"}},Yh=function(e){var t=Kh(Object(i.useState)([]),2),n=t[0],a=t[1];return wp.element.createElement(l.BaseControl,{className:"ugb-modal-design-library__color-list",id:"design-colors"},wp.element.createElement("div",{className:"ugb-modal-design-library__color-list-wrapper"},Object.keys(e.colors).map(function(t){var r=$h[t],i=r.color,o=r.name;return wp.element.createElement(l.ColorPalette,{key:t,value:n.includes(o)?i:"",colors:[{color:i,name:o}],onChange:function(t){var r;r=t?[].concat(Wh(n),[o]):n.filter(function(e){return e!==o}),a(r),e.onSelect(r)},clearable:!1,disableCustomColors:!0})})))};Yh.defaultProps={onSelect:function(){},colors:$h};var Qh=Yh;function Xh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Jh=function(e){var t=Xh(Object(i.useState)(e.search),2),n=t[0],a=t[1],r=Xh(Object(i.useState)(),2),u=r[0],c=r[1],f=Xh(Object(i.useState)(""),2),p=f[0],d=f[1],g=Xh(Object(i.useState)(""),2),m=g[0],b=g[1],h=Xh(Object(i.useState)([]),2),v=h[0],y=h[1],w=Xh(Object(i.useState)(3),2),k=w[0],O=w[1],C=Xh(Object(i.useState)([]),2),S=C[0],_=C[1],x=Xh(Object(i.useState)(!0),2),E=x[0],j=x[1],P=Xh(Object(i.useState)(!1),2),T=P[0],B=P[1],M=Xh(Se("stk__design_library_dev_mode",!1),2),N=M[0],I=M[1];Object(i.useEffect)(function(){return c(e.selectedBlock)},[e.selectedBlock]);var A=Xh(Object(i.useState)(n),2),D=A[0],R=A[1],z=Xh(Object(i.useState)(null),2),L=z[0],F=z[1];return Object(i.useEffect)(function(){L&&(clearTimeout(L),F(null)),F(setTimeout(function(){R(n)},500))},[n]),Object(i.useEffect)(function(){var e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()},[]),Object(i.useEffect)(function(){T&&(_([]),j(!0)),$i({type:"block",block:u,plan:p,mood:m,colors:v,search:D,reset:T}).then(function(e){_(e)}).finally(function(){j(!1),B(!1)})},[u,m,v,p,D,T]),wp.element.createElement(l.Modal,{title:Object(s.__)("Stackable Design Library",o.i18n),className:"ugb-modal-design-library",onRequestClose:e.onClose},wp.element.createElement("div",{className:"ugb-modal-design-library__wrapper"},wp.element.createElement("aside",{className:"ugb-modal-design-library__sidebar"},wp.element.createElement(l.TextControl,{className:"ugb-modal-design-library__search",placeholder:Object(s.__)("Search designs...",o.i18n),value:n,onChange:function(e){return a(e)},"data-testid":"input-search"}),wp.element.createElement("div",{className:"ugb-modal-design-library__filters"},wp.element.createElement(Qh,{onSelect:function(e){y(e)}}),wp.element.createElement(ur,{controls:[{value:"",title:Object(s.__)("All",o.i18n)},{value:"light",title:Object(s.__)("Light",o.i18n)},{value:"dark",title:Object(s.__)("Dark",o.i18n)}],value:m,onChange:function(e){return b(e)}}),wp.element.createElement(qh,{search:n,mood:m,colors:v,forceBlock:e.selectedBlock,onSelect:function(e){var t=e.block,n=e.plan;c(t),d(n)}}))),wp.element.createElement("aside",{className:"ugb-modal-design-library__topbar"},o.devMode&&wp.element.createElement(l.ToggleControl,{className:"ugb-modal-design-library__dev-mode",label:"Dev Mode",checked:N,onChange:function(e){Ki(e).then(function(){B(!0)}),I(e)}}),wp.element.createElement(l.Button,{icon:"image-rotate",label:Object(s.__)("Refresh Library",o.i18n),className:"ugb-modal-design-library__refresh",onClick:function(){return B(!0)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(Mh,{width:"18",height:"18"}),className:2===k?"is-active":"",label:Object(s.__)("Large preview",o.i18n),onClick:function(){return O(2)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(zh,{width:"18",height:"18"}),className:3===k?"is-active":"",label:Object(s.__)("Medium preview",o.i18n),onClick:function(){return O(3)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(Ah,{width:"18",height:"18"}),className:4===k?"is-active":"",label:Object(s.__)("Small preview",o.i18n),onClick:function(){return O(4)}})),wp.element.createElement("div",{className:"ugb-modal-design-library__designs"},wp.element.createElement(Sl,{columns:k,onSelect:e.onSelect,isBusy:E,designs:e.selectedBlock?S.filter(function(t){return t.block===e.selectedBlock}):S}))))};Jh.defaultProps={search:"",selectedBlock:"",onClose:function(){},onSelect:function(){}};var Zh=Jh;function ev(){return(ev=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var tv=q.a.createElement("path",{fill:"currentColor",d:"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"}),nv=function(e){return q.a.createElement("svg",ev({"aria-hidden":"true","data-prefix":"fas","data-icon":"circle-notch",className:"spinner_svg__svg-inline--fa spinner_svg__fa-circle-notch spinner_svg__fa-w-16",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),tv)};function av(){return(av=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function rv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var iv=function(){return wp.element.createElement(nv,{className:"ugb-icon-is-loading"})},lv=function(e){var t=rv(Object(i.useState)(0),2),n=t[0],a=t[1],r=function(){a(n+1)};Object(i.useEffect)(function(){(window.FontAwesome?Promise.resolve(!0):new Promise(function(e,t){var n=240,a=setInterval(function(){window.FontAwesome?(clearInterval(a),e(!0)):n--<0&&(clearInterval(a),t(!1))},250)})).then(r)},[]);var l=Object(b.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return wp.element.createElement(i.RawHTML,l,e.value);if(!window.FontAwesome)return wp.element.createElement(iv,null);var o=e.value?e.value.replace(/-.*$/,""):e.prefix,s=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(o&&s){var u=xe(o,s);return u?wp.element.createElement(i.RawHTML,l,u):(function(e,t){var n=Ee(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var r=240,i=setInterval(function(){var l=Ee(e,t);window.FontAwesome?(clearInterval(i),n(l)):r--<0&&(clearInterval(i),a(!1))},250)})}(o,s).then(r),wp.element.createElement(iv,null))}var c=xe("far","smile");return wp.element.createElement(i.RawHTML,av({},l,{className:"".concat(e.className," ugb-icon--faded")}),c)};lv.Content=function(e){var t=Object(b.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return wp.element.createElement(i.RawHTML,t,e.value);var n=e.value?e.value.replace(/-.*$/,""):e.prefix,a=e.value?e.value.replace(/^.*?-/,""):e.iconName,r=xe(n,a);return wp.element.createElement(i.RawHTML,t,r)},lv.defaultProps={prefix:"",iconName:"",value:""};var ov=lv;function sv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var uv=1,cv=function(e){var t=sv(Object(i.useState)("ugb-admin-setting-".concat(uv++)),1)[0],n=p()(["ugb-admin-setting"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"ugb-admin-setting--".concat(e.size),e.size));return wp.element.createElement("div",{className:n,id:t},wp.element.createElement("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:t},wp.element.createElement("span",{className:"ugb-admin-setting__label"},e.label),wp.element.createElement("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&wp.element.createElement("p",{className:"ugb-admin-setting__help"},e.help))};cv.defaultProps={label:""};var fv=cv,pv=function(e){return wp.element.createElement(fv,e,wp.element.createElement("input",{className:"ugb-admin-text-setting",type:e.type,value:e.value,placeholder:e.placeholder,onChange:function(t){return e.onChange(t.target.value)}}),e.children)};pv.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:function(){}};var dv=pv,gv=function(e){return wp.element.createElement(fv,e,wp.element.createElement("button",{className:"ugb-admin-toggle-setting__button",type:"button",role:"switch","aria-checked":!!e.value,onClick:function(){return e.onChange(!e.value)},style:{minWidth:e.width||void 0}},wp.element.createElement("span",null,e.disabled),wp.element.createElement("span",null,e.enabled)))};gv.defaultProps={label:"",value:!1,placeholder:"",onChange:function(){},disabled:Object(s.__)("Disabled",o.i18n),enabled:Object(s.__)("Enabled",o.i18n),width:""};var mv=gv;function bv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function hv(e){return(hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vv(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yv(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function wv(e){return(wv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ov(e,t){return(Ov=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Cv=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=wv(t).apply(this,arguments))||"object"!==hv(a)&&"function"!=typeof a?kv(n):a).toggleBlock=e.toggleBlock.bind(kv(e)),e.enableAllBlocks=e.enableAllBlocks.bind(kv(e)),e.disableAllBlocks=e.disableAllBlocks.bind(kv(e)),e.ajaxTimeout=null,e.state={disabledBlocks:e.props.disabledBlocks||[],isSaving:!1},e}var n,r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ov(e,t)}(t,i["Component"]),n=t,(r=[{key:"componentDidUpdate",value:function(e,t){var n=this;this.state.disabledBlocks!==t.disabledBlocks&&(clearTimeout(this.ajaxTimeout),this.ajaxTimeout=setTimeout(function(){Object(a.send)("stackable_update_disable_blocks",{success:function(){n.setState({isSaving:!1})},error:function(e){n.setState({isSaving:!1}),alert(e)},data:{nonce:o.nonce,disabledBlocks:n.state.disabledBlocks}}),n.setState({isSaving:!0})},600))}},{key:"toggleBlock",value:function(e){this.state.disabledBlocks.includes(e)?this.setState({disabledBlocks:this.state.disabledBlocks.filter(function(t){return t!==e})}):this.setState({disabledBlocks:[].concat(vv(this.state.disabledBlocks),[e])})}},{key:"enableAllBlocks",value:function(){this.setState({disabledBlocks:[]})}},{key:"disableAllBlocks",value:function(){this.setState({disabledBlocks:Object.keys(this.props.blocks)})}},{key:"render",value:function(){var e=this,t=this.props.blocks;return wp.element.createElement("div",null,wp.element.createElement("div",{className:"s-settings-header"},this.state.isSaving&&wp.element.createElement(l.Spinner,null),wp.element.createElement("button",{onClick:this.enableAllBlocks,className:"button button-large button-link"},Object(s.__)("Enable All",o.i18n)),wp.element.createElement("button",{onClick:this.disableAllBlocks,className:"button button-large button-link"},Object(s.__)("Disable All",o.i18n))),wp.element.createElement("div",{className:"s-settings-grid"},Object.keys(t).map(function(n,a){var r=t[n];if(r.sDeprecated)return null;var i=e.state.disabledBlocks.includes(n),l=p()(["s-box","s-box-small"],{"s-is-disabled":i}),u=n.replace(/\w+\//,"");return wp.element.createElement("div",{key:a+1,className:l},wp.element.createElement("img",{src:"".concat(o.welcomeSrcUrl,"/images/block-").concat(u,".svg"),alt:"".concat(r.title," icon"),className:"s-block-icon"}),wp.element.createElement("h4",null,r.title),wp.element.createElement("p",{className:"s-block-description"},r.description),r.sDemoURL&&wp.element.createElement("p",{className:"s-demo-url"},wp.element.createElement("small",null,wp.element.createElement("a",{href:r.sDemoURL,target:"stackable_demo",title:Object(s.sprintf)(Object(s.__)("View %s Demo",o.i18n),r.title)},Object(s.__)("View Block Demo",o.i18n)))),wp.element.createElement("button",{className:"s-toggle-button",onClick:function(){return e.toggleBlock(n)}},wp.element.createElement("span",null,Object(s.__)("Disabled",o.i18n)),wp.element.createElement("span",null,Object(s.__)("Enabled",o.i18n))))})))}}])&&yv(n.prototype,r),u&&yv(n,u),t}(),Sv=null,_v=function(){var e=bv(Object(i.useState)(!1),2),t=e[0],n=e[1],a=bv(Object(i.useState)(""),2),r=a[0],l=a[1];Object(i.useEffect)(function(){c.loadPromise.then(function(){(new c.models.Settings).fetch().then(function(e){n(!!e.stackable_global_force_typography),l(e.stackable_global_content_selector)})})},[]);return wp.element.createElement(i.Fragment,null,wp.element.createElement(dv,{label:Object(s.__)("Content Selector",o.i18n),help:Object(s.__)("The selector to the content area of your theme.",o.i18n),placeholder:".entry-content",value:r,onChange:function(e){clearTimeout(Sv),Sv=setTimeout(function(){new c.models.Settings({stackable_global_content_selector:e}).save()},500),l(e)}}),wp.element.createElement(mv,{label:Object(s.__)("Force Typography Styles",o.i18n),value:t,onChange:function(e){new c.models.Settings({stackable_global_force_typography:e}).save(),n(e)},disabled:Object(s.__)("Not forced",o.i18n),enabled:Object(s.__)("Force styles",o.i18n)}))},xv=function(e){var t=bv(Object(i.useState)(!1),2),n=t[0],a=t[1],r=bv(Object(i.useState)(!1),2),u=r[0],f=r[1],p=bv(Object(i.useState)(!1),2),d=p[0],g=p[1],m=bv(Object(i.useState)(!1),2),b=m[0],h=m[1];Object(i.useEffect)(function(){h(!0),c.loadPromise.then(function(){(new c.models.Settings).fetch().then(function(e){a(!!e.stackable_help_tooltip_disabled),f("1"===e.stackable_load_v1_styles),g("1"===e.stackable_show_pro_notices),h(!1)})})},[]);var v=function(e,t){h(!0),new c.models.Settings(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t)).save().then(function(){return h(!1)})};return wp.element.createElement("div",null,e.showProNoticesOption&&wp.element.createElement(l.CheckboxControl,{label:Object(s.__)('Show "Go premium" notices',o.i18n),checked:d,onChange:function(e){v("stackable_show_pro_notices",e?"1":""),g(e)}}),wp.element.createElement(l.CheckboxControl,{label:Object(s.__)("Don't show help video tooltips",o.i18n),checked:n,onChange:function(e){v("stackable_help_tooltip_disabled",e?"1":""),a(e)}}),wp.element.createElement(l.CheckboxControl,{label:Object(s.__)("Load version 1 block stylesheet for backward compatibility",o.i18n),checked:u,onChange:function(e){v("stackable_load_v1_styles",e?"1":""),f(e)}}),b&&wp.element.createElement("div",{className:"ugb--saving-wrapper"},wp.element.createElement(l.Spinner,null)))};xv.defaultProps={showProNoticesOption:!1},Object(r.a)(function(){Object(i.render)(wp.element.createElement(Cv,{blocks:u,disabledBlocks:o.disabledBlocks}),document.querySelector(".s-settings-wrapper")),Object(i.render)(wp.element.createElement(xv,{showProNoticesOption:o.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),Object(i.render)(wp.element.createElement(_v,null),document.querySelector(".s-global-settings"))})}]);
dist/editor_blocks.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";svg.ugb-stackable-icon-gradient{fill:url(#stackable-gradient)!important}.block-editor-block-list__block[data-type^="ugb/"]{margin-top:0!important;margin-bottom:0!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block{margin-top:35px;margin-bottom:35px;padding:0 35px}[data-type^="ugb/"]>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}.ugb--has-panel-tabs .ugb-panel-tabs~.editorskit-panel{display:none}.components-toolbar__control.ugb--is-premium{position:relative}.components-toolbar__control.ugb--is-premium:after{position:absolute;z-index:1;background:none;line-height:18px;padding:0 6px;border-radius:2px;left:0;right:0;text-transform:uppercase;background-size:100%;background-repeat:no-repeat;font-family:dashicons;content:"\f160";color:#888;font-size:20px;opacity:0}.components-toolbar__control.ugb--is-premium *,.components-toolbar__control.ugb--is-premium:after{transition:all .2s ease-in-out}.components-toolbar__control.ugb--is-premium:disabled{opacity:1}.components-toolbar__control.ugb--is-premium:disabled *{opacity:.3}.components-toolbar__control.ugb--is-premium:hover *{opacity:0}.components-toolbar__control.ugb--is-premium:hover:after{opacity:1}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-base-control__label,body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-toggle-control__label{cursor:help;border-bottom:1px solid transparent}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-base-control__label:hover,body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-toggle-control__label:hover{border-color:#8c33da;color:#8c33da;border-bottom-style:solid!important}body.ugb--help-tips-enabled .components-base-control[class*=ugb--help-tip-]:hover .components-base-control__label,body.ugb--help-tips-enabled .components-base-control[class*=ugb--help-tip-]:hover .components-toggle-control__label{border-color:#a683c5;border-bottom-style:dashed}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle{cursor:pointer}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle:after{content:"\f223";margin-left:10px;font-family:dashicons;font-size:20px;line-height:16px;text-shadow:0 0 1px #000;color:#fafafa}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle:hover{color:#8c33da!important}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle:hover:after{cursor:help;color:#b266f4;text-shadow:none}.ugb-help-tooltip-video{margin-left:-30px!important}.ugb-help-tooltip-video .components-popover__content{min-width:220px!important;width:220px!important}.ugb-help-tooltip-video .components-panel__body{padding:0 16px 16px}.ugb-help-tooltip-video video{width:100%;height:auto;position:relative;z-index:2;margin:0 -16px 8px;min-width:calc(100% + 32px);min-height:163.5px}.ugb-help-tooltip-video .ugb-help-tooltip-video__link{margin-top:5px;text-align:right;cursor:pointer}.ugb-help-tooltip-video .ugb-help-tooltip-video__link svg{vertical-align:bottom}.ugb-help-tooltip-video .components-spinner{position:absolute;left:calc(50% - 9px);text-align:center;top:82px;margin:0;z-index:1}.ugb-help-tooltip-video .ugb-help-tooltip-video__remove{background:none!important;border:none;position:absolute;top:10px;right:4px;cursor:pointer;z-index:9!important}.ugb-help-tooltip-video .ugb-help-tooltip-video__remove svg{max-width:none;stroke:rgba(0,0,0,.3);stroke-width:1px;fill:#fff}.ugb-help-tooltip-video .ugb-help-tooltip-video__remove:hover{color:#444}.ugb-help-tooltip-video h4{margin:0 0 8px;font-size:1em}.ugb-help-tooltip__checkbox{font-size:11px;margin:20px 0 -10px;color:#777;font-style:italic}.ugb-help-tooltip__checkbox .components-checkbox-control__input-container{margin-right:8px}[data-type="ugb/accordion"] .ugb-accordion__heading{outline:none}[data-type="ugb/accordion"] .ugb-accordion__heading svg{transform:rotate(180deg)!important}[data-type="ugb/accordion"] .ugb-accordion__heading>:first-child{flex:1}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__content{display:none}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__heading svg{transform:rotate(0deg)!important}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content .ugb-accordion__content-inner{padding-top:0}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content{overflow:visible}#editor .ugb-accordion.ugb-accordion--v2.ugb-accordion--design-plain .ugb-accordion__content .ugb-accordion__content-inner{padding-bottom:0}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__heading{z-index:0}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay .ugb-video-background,#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay:before{z-index:-1!important}.ugb-accordion__heading>div:empty{display:none}.ugb-blockquote{margin-left:0;margin-right:0}.ugb-blockquote__inspector__icon{flex-wrap:wrap}.ugb-blog-post__inspector-spinner>*{margin:0 auto 16px;display:block;float:none}.ugb-blog-posts__item:after{pointer-events:none}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-cta__item,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background) .ugb-cta__item{border-radius:0}.ugb-column>.ugb-inner-block>.ugb-block-content>.ugb-column__item{overflow:visible!important}[data-type="ugb/column"]>.block-editor-block-list__block-edit{height:100%}[data-type="ugb/column"]>.block-editor-block-list__block-edit>[data-block]{display:flex;flex-direction:column}.wp-block[data-type="ugb/column"],.wp-block[data-type="ugb/column"] .wp-block{max-width:none}[data-type="ugb/column"],[data-type="ugb/column"]>.ugb-column{height:100%}[data-type="ugb/column"]{transition:none!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-block]:first-child{margin-top:0!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender:not(:first-child){margin-bottom:-28px!important}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns .ugb-columns__item{align-items:stretch}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-gap:35px}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{display:flex!important;justify-content:stretch;align-items:stretch;height:100%}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.ugb-columns__item>.block-editor-inner-blocks{width:100%}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-gap:35px}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{display:flex;flex-direction:column}[data-type="ugb/columns"].has-child-selected [data-type="ugb/column"]:not(.has-child-selected):before,[data-type="ugb/columns"].is-selected [data-type="ugb/column"]:not(.has-child-selected):before{border:1px dashed rgba(123,134,162,.3)}[data-type="ugb/column"]:before{top:0!important;bottom:0!important;left:0!important;right:0!important}[data-type="ugb/columns"]:not(.is-selected):before{border:1px dashed rgba(243,73,87,.6)!important}[data-type="ugb/column"]{transition:all .3s ease-in-out!important}[data-type="ugb/column"][style*="transform: tra"]{transition:none!important}.ugb-columns--highlight-1>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:first-child,.ugb-columns--highlight-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(2),.ugb-columns--highlight-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(3),.ugb-columns--highlight-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(4),.ugb-columns--highlight-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(5),.ugb-columns--highlight-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(6),.ugb-columns--highlight-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(7),.ugb-columns--highlight-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(8){transform:translateY(-20px)!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background){padding-left:0!important;padding-right:0!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background)>.ugb-inner-block>.ugb-block-content>.ugb-container__wrapper{border-radius:0!important}[data-type="ugb/container"][data-align=center]{text-align:inherit}.ugb-container .block-editor-block-list__block{max-width:none!important}[data-align=full] .ugb-countup{border-radius:0!important;margin-top:0;margin-bottom:0}.ugb-design-library-block .components-placeholder__label svg{margin-right:8px}.ugb-design-library-block button.components-button{height:auto;font-weight:600;text-transform:uppercase;font-size:13px;padding:11px 20px;background:#fff}.ugb-insert-library-button svg{width:20px;height:20px}.ugb-insert-library-button{margin-left:10px;margin-right:10px}.ugb-expand__label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;border:none;box-shadow:none;white-space:nowrap;display:block}.ugb-expand__label:first-child{padding-top:0}.ugb-expand .ugb-expand__less-text p,.ugb-expand .ugb-expand__more-text p{font-size:inherit!important;color:inherit!important}.ugb-expand .ugb-block-content>a{display:inline-block}.ugb-feature.ugb-feature--design-basic .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder,.ugb-feature.ugb-feature--design-plain .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{height:250px}.ugb-feature-grid .ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{height:100px;width:100px;margin:0 auto;border-radius:100%}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-header__item,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background) .ugb-header__item{border-radius:0}.editor-styles-wrapper .ugb-heading .ugb-heading__subtitle,.editor-styles-wrapper .ugb-heading .ugb-heading__top-line{margin-bottom:16px}.editor-styles-wrapper .ugb-heading .ugb-heading__title{margin-bottom:8px}.ugb-icon-list ul{list-style:none!important}.ugb-icon-list ul li:before{cursor:pointer}.ugb-icon-list.ugb-icon-list li:last-child{margin-bottom:0!important}.ugb-icon-list__center-align li,.ugb-icon-list__right-align li{width:-webkit-fit-content!important;width:fit-content!important;width:-moz-fit-content!important;margin-left:auto!important}.ugb-icon-list__center-align li{margin-right:auto!important}.ugb-icon-list__left-align li{width:-webkit-fit-content!important;width:fit-content!important;width:-moz-fit-content!important;margin-right:auto!important}.ugb-image-box__image:hover{opacity:1!important}.ugb-image-box__arrow{pointer-events:all!important}[data-type="ugb/notification"] .ugb-notification.ugb-notification--dismissible{display:flex!important}[data-type="ugb/notification"] .ugb-notification__item>:last-child,[data-type="ugb/notification"] .ugb-notification__item>:last-child [role=textbox]{margin-bottom:0}[data-type="ugb/notification"] .ugb-svg-icon-placeholder__button{display:block;width:100%}.ugb-number-box .ugb-number-box__number[data-is-placeholder-visible=true]{transition:none;height:2.5em;width:2.5em;left:calc(50% - 1.25em)}.ugb-number-box .ugb-number-box__item>:not(.ugb-number-box__content){z-index:3!important}.ugb-number-box .ugb-number-box__item>.ugb-number-box__content{z-index:4!important}.ugb-pricing-box__price-line>:first-child{align-self:flex-start}.ugb-pricing-box__price-line>:last-child{align-self:flex-end}[data-type="ugb/separator"]{z-index:30!important}[data-type="ugb/separator"]~.wp-block.is-selected{z-index:31}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-inner{overflow:hidden}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-wrapper{overflow:visible}.ugb-team-member-setting__social,.ugb-team-member-setting__social .components-base-control__field{margin-bottom:8px!important}.ugb-team-member__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-team-member__image .ugb-image-upload-has-placeholder svg{top:50%;position:absolute;transform:translateY(-50%)}.ugb-testimonial__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-testimonial__image .ugb-image-upload-has-placeholder svg{top:50%;position:absolute;transform:translateY(-50%)}#editor [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup.ugb-main-block--inner-full.ugb--has-block-background .ugb-video-popup__wrapper,#editor [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup:not(.ugb--has-block-background) .ugb-video-popup__wrapper{border-radius:0;margin-left:-35px;margin-right:-35px;width:calc(100% + 70px)}.ugb-admin-setting{margin-bottom:16px}.ugb-admin-setting__label-wrapper{display:flex;align-items:center}.ugb-admin-setting__label{width:200px;display:inline-block;font-weight:700;color:#666;padding-right:15px;box-sizing:border-box}.ugb-admin-setting--small .ugb-admin-setting__label{width:130px}.ugb-admin-setting__field{flex:1}body .ugb-admin-setting .ugb-admin-setting__label-wrapper+.ugb-admin-setting__help{margin-left:200px;margin-bottom:24px!important;margin-top:8px!important}input.ugb-admin-text-setting{padding:.5em 1em;box-shadow:0 5px 30px -10px rgba(18,63,82,.1);border:1px solid rgba(0,0,0,.1);margin:0}input.ugb-admin-text-setting[type=text]{width:calc(100% - 300px)}.ugb-admin-toggle-setting__button{outline:0;display:block;height:26px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:1.5em auto 1em!important;padding:0!important;border:0!important;border-radius:26px;transition:all .4s ease;display:inline-block;background:#e4f5e4;outline:none;outline-offset:3px}.ugb-admin-toggle-setting__button:focus{outline:1px dashed #888}.ugb-admin-toggle-setting__button:after,.ugb-admin-toggle-setting__button:before{position:relative;display:block;content:"";width:26px;height:100%}.ugb-admin-toggle-setting__button:after{left:calc(100% - 26px);background:#3ca540;border-radius:50%;transition:all .2s ease;position:absolute;top:0;box-shadow:0 3px 10px -5px #000}.ugb-admin-toggle-setting__button:before{display:none}.ugb-admin-toggle-setting__button span{position:relative;display:flex;justify-content:center;align-items:center;z-index:2;color:rgba(0,0,0,.4);font-size:11px;line-height:26px;transition:padding .2s ease;padding:0 35px 0 15px}.ugb-admin-toggle-setting__button span:first-child{color:#7b7b7b}.ugb-admin-toggle-setting__button span:nth-child(2){color:#209e25}.ugb-admin-toggle-setting__button span:first-child{display:none}.ugb-admin-toggle-setting__button span:nth-child(2){display:block}.ugb-admin-toggle-setting__button[aria-checked=false]{background:#f0f0f0}.ugb-admin-toggle-setting__button[aria-checked=false]:after{left:0;background:#7b7b7b}.ugb-admin-toggle-setting__button[aria-checked=false] span{padding:0 15px 0 35px}.ugb-admin-toggle-setting__button[aria-checked=false] span:first-child{display:block}.ugb-admin-toggle-setting__button[aria-checked=false] span:nth-child(2){display:none}.ugb-advanced-autosuggest-control{margin-bottom:16px}.ugb-advanced-autosuggest-control__select>*{position:relative}.ugb-advanced-autosuggest-control__select input{width:100%}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-container{position:absolute;top:100%;max-height:272px;overflow-y:auto;z-index:2;background:#fff;width:100%;margin-top:5px;border-radius:6px}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-container:not(:empty){box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px rgba(176,181,193,.2),0 5px 30px -10px rgba(18,63,82,.3)}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-list,.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-list li{margin:0}.ugb-advanced-autosuggest-control__select .react-autosuggest__section-container:not(.react-autosuggest__section-container--first){border-top:1px solid #ddd}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestion{background:#fff;padding:8px 16px;cursor:pointer}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestion--highlighted{background:#f1f1f1}.ugb--autosuggest-empty{font-style:italic;font-size:.9em;color:#999}.ugb--autosuggest-group{background:#fff;padding:14px 16px 8px;font-weight:700;color:#aaa}.ugb-advanced-range-control{width:100%}.ugb-range-control.ugb-range-control--blank .components-range-control__track{width:var(--ugb-advanced-range-control--width)!important}.ugb-range-control.ugb-range-control--blank [class*=ThumbWrapper]{left:var(--ugb-advanced-range-control--width)!important}.ugb-range-control{display:flex}.ugb-range-control .components-range-control{flex:1}.ugb-range-control .components-input-control__container{position:relative;border-radius:2px;padding-top:0;box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:64px;margin-left:16px}.ugb-range-control .components-range-control__reset{height:30px;min-height:30px;margin-left:8px}.ugb-range-control .components-base-control,.ugb-range-control .components-base-control__field{margin-bottom:0}.ugb-advanced-toolbar-control .components-button-group{width:100%}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--full-width{display:flex;flex-wrap:nowrap}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--full-width>button,.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--full-width>button>svg{width:100%!important}.ugb-advanced-toolbar-control .components-button-group svg{height:20px!important;width:auto}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline{flex-wrap:wrap}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline>button{margin-top:-1px!important;margin-left:-1px!important}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline>button,.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline>button>svg{width:auto!important}.ugb-advanced-toolbar-control__text-button{align-self:center;width:100%}body.branch-5-4 .ugb-advanced-toolbar-control .components-button-group{border:1px solid #e2e4e7}.ugb-base-control-multi-label{display:grid;grid-template-columns:auto 1fr auto;margin-bottom:5px;align-items:center}.ugb-base-control-multi-label .ugb-base-control-multi-label__label{margin-bottom:0}.ugb-base-control-multi-label__units{top:0;right:0;display:flex}.ugb-base-control-multi-label__units button{border:0;font-size:10px;margin:0;font-weight:400;outline:none;color:#aaa;padding:0 4px;background:transparent;cursor:pointer;text-transform:uppercase}.ugb-base-control-multi-label__units button:hover{color:#333}.ugb-base-control-multi-label__units button.is-active{color:#333;text-decoration:underline}.ugb-base-control-multi-label__units .components-button{text-transform:none}.ugb-modal-get-block-attributes-button textarea{width:50vw;height:60vh;font-family:monospace}.ugb-button.ugb-button--icon-only .ugb-svg-icon-placeholder__button{display:block}.ugb-button.ugb-button--has-icon .ugb-svg-icon-placeholder__button{height:auto}.ugb-button svg{transition:initial!important}.ugb-button.ugb-button--has-icon .ugb-icon-inner-svg svg.ugb-custom-icon{fill:initial}.ugb-button-icon-control .components-popover__content{box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px rgba(176,181,193,.2),0 5px 30px -10px rgba(18,63,82,.3)}.ugb-button-icon-control .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.ugb-button-icon-control button{display:flex}.components-popover.ugb-button-icon-control__popover{z-index:100000}.components-popover.ugb-button-icon-control__popover .components-popover__content{width:290px}.ugb-button-icon-control__popover .components-panel__body-title{padding:15px!important;background:transparent!important}.ugb-button-icon-control__wrapper{display:flex;align-items:center}.ugb-button-icon-control__wrapper .ugb-button-icon-control__reset{padding:6px;margin:0 6px}.ugb-button-icon-control__wrapper .ugb-button-icon-control__reset svg{width:14px;height:14px}.ugb-button-icon-control__wrapper .ugb-button-icon-control__edit{padding:0 6px}.ugb-button-icon-control__wrapper .ugb-button-icon-control__edit svg{width:18px;height:18px;margin:0}.ugb-button-icon-control .components-toggle-control,.ugb-button-icon-control .components-toggle-control .components-base-control__field,.ugb-button-icon-control .components-toggle-control .components-toggle-control__label{margin-bottom:0!important}.ugb-button-icon-control__text-title{margin:0 0 1em!important}.ugb-button-icon-popover-control-color-preview,.ugb-button-icon-popover-control-image-preview{margin:0 12px 0 0;height:20px;width:20px}.ugb-button-icon-popover-control-color-preview .components-circular-option-picker__option,.ugb-button-icon-popover-control-image-preview .components-circular-option-picker__option{color:transparent!important}.ugb-button-icon-popover-control-color-preview .components-circular-option-picker__option{padding:0}.ugb-button-icon-popover-control-color-preview .components-circular-option-picker__option:focus:after{width:24px;height:24px}.ugb-button-icon-popover-control-color-preview.ugb-button-icon-popover-control-color-preview--transparent:before{background-size:63px!important;opacity:.5}.ugb-button-icon-popover-control-image-preview:before{background:transparent!important}.ugb-button-icon-popover-control-image-preview .components-circular-option-picker__option{padding:0;background-size:cover}.ugb-button-icon-popover-control-image-preview .components-circular-option-picker__option:after{display:none}.ugb-button-icon-popover-control-image-preview svg{height:100%;width:100%;fill:#d1d1d1}.ugb-code-textarea+.CodeMirror{height:500px;margin-left:-16px;margin-right:-16px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-bottom:16px}.ugb-columns-width-control__range{display:flex;align-items:center;margin-bottom:8px}.ugb-columns-width-control__range .ugb-columns-width-control__icon{height:20px;width:20px;flex-shrink:0;font-size:14px;margin-right:10px;font-weight:700;display:block;text-align:center}.ugb-columns-width-control__range .components-base-control.components-range-control,.ugb-columns-width-control__range .components-base-control__field{margin-bottom:0!important}.ugb-columns-width-control__range .components-range-control{flex:1}.ugb-columns-width-control .ugb-design-control-wrapper.components-base-control{margin-bottom:0}.ugb-columns-width-control .ugb-design-control{padding:0}.ugb-columns-width-control .ugb-design-control .components-radio-control__option{width:25%}.ugb-columns-width-control .ugb-design-control .components-base-control__field{margin-bottom:0!important;display:flex;justify-content:space-evenly}.ugb-columns-width-control .ugb-design-panel-item__image{display:block}.ugb-columns-width-control .ugb-columns-width-control__suffix{flex-shrink:0;font-size:14px;margin-left:5px;display:block;text-align:center}.ugb-columns-width-control .ugb-columns-width-control__reset{text-transform:none}.ugb-column-widths-control__columns-slider{height:20px;margin-top:20px}.ugb-column-widths-control__columns-slider [role=slider]{position:absolute;transform:translate(-50%,-50%);width:10px;height:10px;padding:0;border-radius:50%;background-color:#555d66;border:0;outline:0}.ugb-column-widths-control__columns-slider [role=slider]:focus{border:1px solid #555d66;background:#fff}.ugb-column-widths-control__columns-input{display:grid}.ugb-column-widths-control__columns-input input{min-width:40px!important;width:40px;padding:4px 2px!important;font-size:11px;margin:0 auto}.ugb-column-widths-control__columns-input input:not(:hover):not(:focus){border-color:#eee}.ugb-control-separator{height:1px!important;background:#ddd!important;margin:24px -16px!important;border:0!important;padding:0!important;width:calc(100% + 32px)!important;box-shadow:none!important}.components-panel__body-title+.ugb-control-separator{margin-top:0!important}.ugb-design-control{max-height:450px}.ugb-design-control input{opacity:0;height:0;width:0;margin:0;padding:0;position:fixed;top:0}.ugb-design-control .components-radio-control__option{display:inline-block;width:50%;text-align:center}.ugb-design-control label>span{padding:4px;display:block;border-radius:0}.ugb-design-control label>span>img{border-radius:4px}.ugb-design-control input:checked+label>span{box-shadow:inset 0 0 0 1px #1e1e1e}.ugb-design-control input+label>span:hover{background:#f0f0f0}.ugb-design-control .design-label svg{height:12px;margin:0 0 0 5px;fill:#ffad00}.ugb-design-control--columns-3 .ugb-design-control .components-radio-control__option{width:33.3%}.ugb-design-control--columns-4 .ugb-design-control .components-radio-control__option{width:25%}.ugb-design-library-control__open-library{margin:0 0 8px auto!important;display:block}.ugb-design-library-control__open-library__toolbar{font-size:11px;display:flex;justify-content:space-between;padding:0 8px}.ugb-design-library-items{page-break-inside:avoid;break-inside:avoid;column-count:1;column-gap:38px}.ugb-design-library-items.ugb-design-library-items--columns-2{column-count:2}.ugb-design-library-items.ugb-design-library-items--columns-3{column-count:3}.ugb-design-library-items.ugb-design-library-items--columns-4{column-count:4}.ugb-design-library-items .components-base-control__help{text-align:center;font-style:italic}.ugb-design-library-items .ugb-design-library-search__spinner{display:flex}.ugb-design-library-items .ugb-design-library-search__spinner .components-spinner{margin:0 auto}.ugb-modal-design-library__wrapper{overflow:hidden}.ugb-modal-design-library__designs{overflow:auto}.ugb-design-library-item{border-radius:0;box-shadow:0 2px 15px hsla(0,0%,60%,.3);overflow:hidden;transition:all .3s ease-in-out;position:relative;margin-bottom:38px;display:block;transform:translateZ(0);break-inside:avoid;width:100%;will-change:transform}.ugb-design-library-item:hover{transform:translateY(-4px) scale(1.03);box-shadow:0 6px 25px hsla(0,0%,60%,.3)}.ugb-design-library-item img{display:block;pointer-events:none;width:100%;height:auto;min-height:50px;background:#f1f1f1}.ugb-design-library-item footer{padding:8px 12px;font-size:11px;line-height:18px;display:flex;justify-content:space-between}.ugb-design-library-item.ugb--is-busy .ugb-design-library-item__spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) translateY(-10px)}.ugb-design-library-item.ugb--is-busy .components-spinner{margin:0}.ugb-design-library-item.ugb--is-busy img{opacity:.15}.ugb-design-library-item .ugb-design-library-item__image svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-40%);opacity:0;fill:#000;height:35px;width:35px}.ugb-design-library-item .ugb-design-library-item__image img,.ugb-design-library-item .ugb-design-library-item__image svg{transition:all .3s ease-in-out}.ugb-design-library-item[class*=ugb--is-premium]:hover .ugb-design-library-item__image img{opacity:.4;filter:blur(3px)}.ugb-design-library-item[class*=ugb--is-premium]:hover .ugb-design-library-item__image svg{transform:translate(-50%,-50%);opacity:1}.ugb-design-library-item__image{padding:0!important;border:0!important;text-align:start!important;width:100%!important;margin:0!important;outline:none!important;cursor:pointer;display:block}.ugb-design-library-item__premium{position:absolute;z-index:1;background:#f34957;font-size:10px;color:#fff;line-height:18px;padding:0 6px;border-radius:2px;top:5px;right:5px;text-transform:uppercase}.ugb-design-library-item__premium-link{cursor:pointer;display:flex}.ugb-design-library-item__premium-link svg{height:15px;margin-right:5px}.ugb-design-library-item__favorite{border:0;padding:0;cursor:pointer;outline:none;transition:all .3 ease-in-out}.ugb-design-library-item__favorite svg{fill:#bbb;height:14px;width:14px}.ugb-design-library-item__favorite.ugb--is-favorite:hover svg,.ugb-design-library-item__favorite.ugb--is-favorite svg,.ugb-design-library-item__favorite:hover svg{fill:#d30c5c}.ugb-design-control{max-height:40vh;overflow-y:auto}.ugb-design-control .components-base-control__label{margin-left:-16px;margin-right:-16px;margin-bottom:8px}.ugb-design-panel-item{position:relative}.ugb-design-panel-item .ugb-design-panel-item__image{mix-blend-mode:darken}.ugb-design-panel-item__hover-image{position:absolute;top:5px;left:5px;right:5px;width:calc(100% - 10px);opacity:0;transition:opacity .4s ease-in-out}.ugb-design-panel-item:hover .ugb-design-panel-item__hover-image{opacity:1}#editor .ugb--has-background-overlay.ugb--has-background-overlay .ugb-video-background,#editor .ugb--has-background-overlay.ugb--has-background-overlay:before{pointer-events:none}.ugb-icon-control svg .fa-secondary,.ugb-icon-popover svg .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.ugb-icon-is-loading{animation:icon-loading 1.3s linear infinite;height:12px!important;width:12px!important}@keyframes icon-loading{0%{opacity:.8;transform:rotate(0deg)}25%,75%{opacity:.4}50%{opacity:.8}to{opacity:.8;transform:rotate(1turn)}}.ugb-icon--faded{opacity:.4}.ugb-four-number-control__wrapper{display:grid;grid-gap:4px;grid-template-columns:1fr 1fr 1fr 1fr -webkit-min-content;grid-template-columns:1fr 1fr 1fr 1fr min-content;align-items:flex-start}.ugb-four-number-control__wrapper button{padding:6px!important}.ugb-four-number-control__wrapper button.ugb--is-locked,.ugb-four-number-control__wrapper button.ugb--is-locked:hover{background:#aaa!important;color:#fff!important}.ugb-four-number-control__label{display:flex;flex-direction:column;justify-content:center;align-items:center}.ugb-four-number-control__label span{font-size:9px;opacity:.8}.ugb-four-number-control__label input{margin:0;width:100%;padding-left:0!important;padding-right:0!important;text-align:center}.ugb-four-number-control__label input[disabled]{background:#e5e4e8;cursor:not-allowed}.ugb-four-range-control__range{display:flex;align-items:center}.ugb-four-range-control__range .ugb-four-range-control__icon{height:20px;width:20px;flex-shrink:0;margin-right:10px}.ugb-four-range-control__range .components-base-control.components-range-control,.ugb-four-range-control__range .components-base-control__field{margin-bottom:0!important}.ugb-four-range-control__range .components-range-control{flex:1}.ugb-four-range-control .ugb-four-range-control__lock{height:auto;color:#555d66;box-shadow:none!important;margin-left:5px}.ugb-four-range-control .ugb-four-range-control__lock svg{height:16px;width:16px}.ugb-four-range-control.ugb--locked .ugb-four-range-control__range{margin-bottom:8px}.ugb-four-range-control:not(.ugb--locked) .ugb-advanced-range-control{margin-bottom:0}.ugb-global-style-control__item{display:flex;align-items:center}.ugb-global-style-control__item-label{flex-grow:1}li[aria-selected=false] .ugb-global-style-control__item-button{visibility:hidden}.ugb-global-style-control__item-preview{margin-right:12px}.ugb-global-style-control__item--large-preview .ugb-global-style-control__item-preview{margin-right:0;margin-bottom:12px;width:100%}.ugb-global-style-control__item--large-preview.ugb-global-style-control__item{display:flex;flex-wrap:wrap}.ugb-global-style-control .ugb-advanced-autosuggest-control__select{display:flex}.ugb-global-style-control .ugb-advanced-autosuggest-control__select>*{margin-left:8px}.ugb-global-style-control .ugb-advanced-autosuggest-control__select .react-autosuggest__container{flex:1;margin-left:0}.ugb-global-style-control .ugb-advanced-autosuggest-control__select .react-autosuggest__container input{height:100%}.ugb-global-style-control.ugb--has-value .react-autosuggest__suggestions-list>:first-child{border-bottom:1px solid #ddd}.ugb-global-style-control .react-autosuggest__suggestions-container{min-width:248px}.ugb-icon-control .ugb-icon-control__icon-button{height:auto;padding:8px;margin-right:auto}.ugb-icon-control .ugb-icon-control__icon-button svg{width:30px;height:30px}.ugb-icon-control .ugb-icon-control__wrapper{display:flex;justify-content:space-between;margin-bottom:16px}.ugb-icon-popover .components-popover__content{overflow:hidden;width:300px}.ugb-icon-popover__iconlist{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;align-items:flex-start;margin-top:5px;height:200px;overflow:auto}.ugb-icon-popover__iconlist button{background:none;padding:5px;border-color:transparent;box-shadow:none;width:40px;height:40px}.ugb-icon-popover__iconlist button:hover{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff!important}.ugb-icon-popover__iconlist button:hover>div>svg{color:#000}.ugb-icon-popover__iconlist svg{width:30px!important;height:30px;margin:0;box-sizing:content-box;border-radius:4px}.ugb-icon-popover__iconlist button>div>svg{color:#444}.ugb-icon-popover__iconlist .components-base-control__help{font-style:italic}.ugb-icon-popover__label-container{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:16px}.ugb-icon-popover__label-container .components-base-control__field{margin-bottom:0}.ugb-icon-popover__label-container .ugb-icon-popover__input{flex:1;flex-basis:calc(100% - 50px)}.ugb-icon-popover__label-container .ugb-icon-popover__settings-button{height:30px;margin-left:8px}.ugb-icon-popover__label-container .components-range-control__reset,.ugb-icon-popover__label-container .components-range-control__upload{text-align:center;display:block}.ugb-icon-popover__label-container.ugb-icon--has-upload.ugb-icon--has-reset .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-upload.ugb-icon--has-reset .components-range-control__upload{flex-basis:calc(50% - 4px);margin-top:8px}.ugb-icon-popover__label-container.ugb-icon--has-settings .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-settings .components-range-control__upload{margin-top:8px}.ugb-icon-popover__label-container.ugb-icon--has-upload .components-range-control__reset,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-reset) .components-range-control__upload,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload) .components-range-control__reset{margin-left:8px}.ugb-icon-popover__label-container:not(.ugb-icon--has-settings).ugb-icon--has-upload:not(.ugb-icon--has-reset) .ugb-icon-popover__input,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload).ugb-icon--has-reset .ugb-icon-popover__input{flex-basis:50%}.ugb-icon-popover__label-container:not(.ugb-icon--has-settings).ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__reset,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings).ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__upload,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__reset,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__upload{height:30px}.ugb-icon-popover__label-container.ugb-icon--has-settings.ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-settings.ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__upload,.ugb-icon-popover__label-container.ugb-icon--has-settings:not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-settings:not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__upload{flex-basis:100%}.ugb-icon-popover__drop-area{font-size:12px;font-style:italic;color:#888;text-align:center;margin:0 0 24px;display:block;outline:none}.file-drop-dragging-over-frame>.ugb-icon-popover__iconlist{pointer-events:none}.ugb-icon-popover__drop-indicator{pointer-events:none;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.9);flex-direction:column;transition:background .3s ease-in-out}.ugb-icon-popover__drop-indicator svg{margin-bottom:8px;transform-origin:bottom;animation:ugb-icon-popover__drop-indicator 1.8s ease infinite}.file-drop-dragging-over-target>.ugb-icon-popover__drop-indicator{background:#fff;outline-offset:-10px;outline-style:dashed;outline-width:3px;outline-color:#11a0d2}@keyframes ugb-icon-popover__drop-indicator{10%{transform:translateY(0)}50%{transform:translateY(-8px)}60%{transform:translateY(0)}}.ugb-image-control .ugb-placeholder{height:150px;display:flex;justify-content:center;align-items:center;background:#f1f1f1;margin-bottom:12px;margin-top:.6rem}.ugb-image-control .ugb-placeholder svg{height:50px;fill:#ddd}.ugb-image-control .ugb-image-preview,.ugb-image-control .ugb-placeholder{border-radius:4px;cursor:pointer;transition:all .3s ease-in-out}.ugb-image-control .ugb-image-preview:hover,.ugb-image-control .ugb-placeholder:hover{background:#fafafa}.ugb-image-control .ugb-image-preview:focus,.ugb-image-control .ugb-placeholder:focus{background:#fafafa;box-shadow:0 0 0 2px rgba(30,140,190,.8)}.ugb-image-control .ugb-image-preview-wrapper{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;background:#f1f1f1;margin-top:.6rem;border-radius:4px}.ugb-image-control .ugb-image-preview-wrapper svg{stroke:rgba(0,0,0,.3);stroke-width:1px;fill:#fff}.ugb-image-control .ugb-image-preview{min-width:100px;flex:1 1 100px;margin:0;position:relative;z-index:2;-o-object-fit:contain;object-fit:contain;width:auto;height:auto}.ugb-image-control .ugb-image-preview-remove{background:none!important;color:#ddd;border:none;position:absolute;top:10px;right:4px;cursor:pointer;z-index:3}.ugb-image-shape-control .ugb-design-control{padding:8px;margin:0 40px;border:1px solid #efefef}.ugb-image-upload-placeholder{position:relative;cursor:copy;margin-left:auto;margin-right:auto}.ugb-image-upload-placeholder img{display:block}.ugb-image-upload-has-placeholder{background:#f1f1f1;display:flex;justify-content:center;align-items:center;height:150px;width:100%}.ugb-image-upload-has-placeholder svg{max-height:50px;fill:#ddd;max-width:40%;width:100%}.ugb-image-upload-has-placeholder:hover{background:#fafafa}.ugb-image-upload-has-placeholder:focus{background:#fafafa;box-shadow:0 0 0 2px rgba(30,140,190,.8)}.ugb-image-upload-has-image:hover{opacity:.8}.ugb-image-upload-remove{background:none!important;color:#ddd;border:none;position:absolute;top:10px;right:4px;cursor:pointer;display:none;z-index:9!important}.ugb-image-upload-remove svg{stroke:rgba(0,0,0,.3);stroke-width:1px;fill:#fff;max-width:none}.block-editor-block-list__block.is-selected .ugb-image-upload-remove,.block-editor-block-list__block:hover .ugb-image-upload-remove{display:block}.ugb-modal-design-library{width:100%;max-width:90%;height:90%;min-height:500px}.ugb-modal-design-library .components-modal__content{padding:0;display:flex;flex-direction:column}.ugb-modal-design-library .components-modal__header{margin:0}.ugb-modal-design-library .ugb-modal-design-library__wrapper{display:grid;grid-template-columns:300px auto;grid-template-rows:50px auto;flex:1}.ugb-modal-design-library .ugb-modal-design-library__sidebar{box-shadow:0 0 30px rgba(0,0,0,.1);background:#fff;grid-column:1/2;grid-row:1/3;display:flex;flex-direction:column;overflow:hidden}.ugb-modal-design-library .ugb-modal-design-library__sidebar .ugb-control-separator{margin:8px 0!important;width:100%!important}.ugb-modal-design-library .ugb-modal-design-library__topbar{display:flex;justify-content:flex-end;padding:0 24px;height:50px;align-items:center;grid-column:2/3;grid-row:1/2}.ugb-modal-design-library .ugb-modal-design-library__designs{padding:24px;grid-column:2/3;grid-row:2/3}.ugb-modal-design-library .ugb-modal-design-library__search{padding:24px;background:#f1f1f1}.ugb-modal-design-library .ugb-modal-design-library__search .components-base-control__field{margin:0}.ugb-modal-design-library .ugb-modal-design-library__topbar .is-pressed{background:#555;color:#fff}.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text.is-pressed,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text:hover,.ugb-modal-design-library .ugb-advanced-toolbar-control .ugb-toolbar--full-width{background:transparent}.ugb-modal-design-library .ugb-modal-design-library__filters{overflow-y:auto;padding:24px}.ugb-block-list li{margin:0}.ugb-block-list li>div{padding:6px 10px;cursor:pointer}.ugb-block-list li [aria-pressed=true]{font-weight:700}.ugb-block-list li .is-disabled{opacity:.3}.ugb-block-list .ugb-block-list__count{float:right}.ugb-block-list [data-count="0"]{opacity:.3}.ugb-modal-design-library__color-list-wrapper{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center}.ugb-modal-design-library__color-list{margin-bottom:8px!important}.ugb-modal-design-library__color-list .components-circular-option-picker{width:24px;flex:0;margin:0 10px 10px}.ugb-modal-design-library__color-list .components-circular-option-picker__option-wrapper{height:22px;width:22px;margin:0}.ugb-modal-design-library__color-list .components-circular-option-picker__option.is-pressed+svg{left:3px;top:3px;width:16px;height:16px}.ugb-modal-design-library__color-list .components-circular-option-picker__option:after{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)!important}.ugb-modal-design-library__color-list .components-circular-option-picker__option:focus:after{width:28px;height:28px;top:-3px;left:-3px}.ugb-modal-design-library__refresh{margin-right:10px}.ugb-modal-design-library__dev-mode .components-base-control__field{margin:2px 24px 0!important}.ugb-modal-welcome-video p{width:470px;margin:16px auto;text-align:center}.ugb-modal-welcome-video .components-modal__content{padding-bottom:20px}.ugb-modal-welcome-video .components-modal__header{margin-bottom:30px}.ugb-modal-welcome-video,.ugb-modal-welcome-video__overlay{animation-duration:.6s!important;transition-duration:.6s!important}.ugb-toggle-panel-form-toggle{margin-right:12px}.ugb-panel-advanced-button{text-transform:uppercase;font-size:9px;background:transparent;width:100%;display:block;border:0;outline:none;position:relative;cursor:pointer;padding-bottom:15px}.ugb-panel-advanced-button:after{content:"❯";position:absolute;transform:translateX(-50%) rotate(90deg);left:50%;bottom:0}.ugb-panel-advanced-button:hover{color:#999}.ugb-toggle-panel-body--advanced .ugb-panel-advanced-button{padding-bottom:0;padding-top:15px}.ugb-toggle-panel-body--advanced .ugb-panel-advanced-button:after{top:0;bottom:auto;transform:translate(-50%) rotate(-90deg)}.ugb-panel-tabs{position:-webkit-sticky;position:sticky;top:-1px;z-index:5}.ugb-panel-tabs .ugb-panel-tabs__wrapper{display:flex!important;flex-wrap:nowrap}.ugb-panel-tabs .ugb-panel-tabs__wrapper,.ugb-panel-tabs .ugb-panel-tabs__wrapper>button{transition:all .1s cubic-bezier(.2,.6,.4,1);background:#fff;box-shadow:none;border:0}.ugb-panel-tabs button{outline:none!important;display:flex;flex-direction:column;justify-content:center;align-items:center;height:80px;padding:0!important;flex:1;margin:0!important;cursor:pointer;color:#1e1e1e;border:0!important}.ugb-panel-tabs button svg{margin:5px;height:20px}.ugb-panel-tabs button.is-active{border-bottom:0;box-shadow:inset 0 0 0 1px #1e1e1e}.ugb-panel-tabs button:hover{background:#f0f0f0}.ugb-panel-tabs button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color,#007cba)}.ugb-panel-tabs{border-bottom:1px solid #e2e4e7!important}.edit-post-sidebar.ugb--has-panel-tabs{background-color:#f0f3f5}.edit-post-sidebar.ugb--has-panel-tabs .edit-post-settings-sidebar__panel-block .components-panel__body:last-child{margin-bottom:0}[data-ugb-tab]>*{padding-bottom:0!important}.ugb-inspector-panel-controls .components-panel__body .components-panel__body-title:not(:hover){background:#fff}.ugb-inspector-panel-controls .components-panel__body .components-panel__body-title+.components-toggle-control{margin-top:24px!important}.ugb-inspector-panel-controls .components-panel__body.is-opened .components-panel__body-title{margin-bottom:12px;border-bottom:1px solid #e1e1e1;position:-webkit-sticky;position:sticky;top:81px;z-index:4}.ugb-inspector-panel-controls .components-panel__body{background:#fafafa}.ugb-inspector-panel-controls .components-panel__body:first-child{border-top:0!important}[data-ugb-tab=advanced] .ugb-inspector-panel-controls:not(.ugb-panel-advanced),[data-ugb-tab=layout] .block-editor-block-inspector__advanced,[data-ugb-tab=layout] .ugb-inspector-panel-controls:not(.ugb-panel-layout),[data-ugb-tab=style] .block-editor-block-inspector__advanced,[data-ugb-tab=style] .ugb-inspector-panel-controls:not(.ugb-panel-style){display:none}.ugb-design-control-pro-note{position:relative;text-align:center;background:#fff;padding:16px;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.12);margin:16px 0;color:#1e1e1e}.ugb-design-control-pro-note h4{margin:0 0 4px;font-size:1em}.ugb-design-control-pro-note p{font-size:.9em;margin-bottom:16px}.ugb-design-control-pro-note a.button{color:#fff;border:0;text-transform:uppercase;display:inline-block;height:auto;width:100%;margin:0 auto;transition:all .3s ease-in-out;box-shadow:none;font-size:10px;letter-spacing:1px;line-height:1.2em;border-radius:25px;padding:10px 18px;background:linear-gradient(330deg,#b300be,#f00069);background-color:#b300be;transition-timing-function:cubic-bezier(.81,.37,.61,1);transition-duration:.2s}.ugb-design-control-pro-note a.button:hover{background:linear-gradient(90deg,#f00069 0,#f00069);color:#fff;transform:scale(1.02)}.ugb-design-control-pro-note .ugb-design-control-pro-note__close{position:absolute;top:0;right:0;color:#777}.ugb-design-control-pro-note svg.ugb-design-control-pro-note__logo{height:24px;width:24px;margin:0 0 12px}.ugb-design-control-pro-note.ugb-pro-note__small{display:grid;padding:0;grid-template-columns:30px 1fr -webkit-min-content;grid-template-columns:30px 1fr min-content;grid-gap:5px;align-items:center;margin-bottom:0}.ugb-design-control-pro-note.ugb-pro-note__small svg{margin:0;height:25px;width:25px}.ugb-design-control-pro-note.ugb-pro-note__small p{text-align:left;margin:0;font-size:10px}.ugb-design-control-pro-note.ugb-pro-note--fade *{transition:all .3s ease-in-out}.ugb-design-control-pro-note.ugb-pro-note--fade p{opacity:.8}.ugb-design-control-pro-note.ugb-pro-note--fade a,.ugb-design-control-pro-note.ugb-pro-note--fade svg{opacity:.7}.ugb-design-control-pro-note.ugb-pro-note--fade:hover a,.ugb-design-control-pro-note.ugb-pro-note--fade:hover p,.ugb-design-control-pro-note.ugb-pro-note--fade:hover svg{opacity:1}.ugb-design-control-pro-note .ugb-design-control-pro-note__notice{font-size:10px;line-height:1.4;max-width:140px;margin:16px auto 0;font-style:italic;color:#aaa}.ugb-pro-control-more-dots{display:flex;background:transparent;margin:0 auto;width:50px;justify-content:center;border-radius:25px;height:25px;align-items:center;cursor:pointer;transition:all .3s ease-in-out;border:none;outline:none}.ugb-pro-control-more-dots .ugb-pro-control-more-dots__dot{width:6px;height:6px;background:#aaa;border-radius:100%;margin:0 2px;transition:all .3s ease-in-out}.ugb-pro-control-more-dots:focus,.ugb-pro-control-more-dots:hover{background:#eee}.ugb-pro-control-more-dots:focus .ugb-pro-control-more-dots__dot,.ugb-pro-control-more-dots:hover .ugb-pro-control-more-dots__dot{background:#555}.ugb-pro-control-button__wrapper{max-height:800px;transition:all .3s ease-in-out;overflow:hidden;margin:0 -16px}.ugb-pro-control-button__wrapper.ugb-pro-control-button--hidden{max-height:0}.ugb-pro-control-button__wrapper .ugb-design-control-pro-note{margin-left:16px;margin-right:16px}.ugb-pro-modal{overflow:hidden!important;border:0!important;background:#000}.ugb-pro-modal .components-modal__header{position:absolute;top:0;right:10px;z-index:3;border:0;background:transparent}.ugb-pro-modal .components-modal__header .components-button svg{fill:#fff}.ugb-pro-modal .components-modal__header .components-button:hover{background-color:rgba(0,0,0,.4)!important}.ugb-pro-modal .components-modal__content{padding:0}.ugb-pro-modal .components-modal__content img{max-width:1000px;height:auto;width:auto!important}.ugb-pro-modal .ugb-pro-modal__footer{padding:30px;text-align:center;display:flex;justify-content:center;align-items:center}.ugb-pro-modal .ugb-pro-modal__footer *{margin:0 5px}.ugb-pro-modal .ugb-pro-modal__footer .button{color:#fff;background:linear-gradient(90deg,#ab5af1 -50%,#fb6874);border:0;height:auto;font-size:14px;font-weight:500;display:flex;align-items:center;margin:0 15px;border-radius:40px;padding:5px 25px}.ugb-pro-modal .ugb-pro-modal__footer .button svg{fill:#fff;margin:0 10px 0 0}.ugb-pro-modal .ugb-pro-modal__footer .button:hover{background:linear-gradient(90deg,#ab5af1 -50%,#fb6874 50%)}.ugb-pro-modal .ugb-pro-modal__footer a:not(.button){color:#fb6874;text-decoration:none}.ugb-pro-modal .ugb-pro-modal__footer a:not(.button):hover{color:#ab5af1}.ugb-pro-modal .ugb-pro-modal__footer .button-ghost{box-shadow:inset 0 0 0 2px #fb6874;background:none;color:#fb6874;font-weight:400;text-transform:none}.ugb-pro-modal .ugb-pro-modal__footer .button-ghost:hover{box-shadow:inset 0 0 0 2px #ab5af1;background:none;font-weight:400;color:#ab5af1}.ugb-base-control-multi-label__responsive{display:flex;margin-left:6px;align-items:center}.ugb-base-control-multi-label__responsive button{height:14px;width:14px;padding:5px!important;min-width:11px!important;box-sizing:content-box;border-radius:0!important;margin:0;border:1px solid transparent}.ugb-base-control-multi-label__responsive button svg{height:100%;width:100%}.ugb-base-control-multi-label__responsive button.is-active,.ugb-base-control-multi-label__responsive button:hover{border:1px solid #1e1e1e!important;box-shadow:none!important}.ugb-base-control-multi-label__responsive button.is-active:not([data-screen=desktop]){background:#007cba;background:var(--wp-admin-theme-color,#007cba);color:#fff;border-color:#007cba!important;border-color:var(--wp-admin-theme-color,#007cba)!important}.ugb-base-control-multi-label__responsive button[data-screen=desktop]:not(:hover){border-color:transparent!important}.ugb-base-control-multi-label__responsive button.is-active:not(:first-child){background:#ab5af1!important}.ugb-small-number-control .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.ugb-small-number-control input{width:80px}.ugb-social-url-text-control+.ugb-social-url-text-control{margin-top:-18px!important}.ugb-sort-control .ugb-sort-control__container{display:flex;flex-direction:row}.ugb-sort-control.ugb-sort-control--axis-y .ugb-sort-control__container{flex-direction:column;max-width:150px;margin:0 auto}.ugb-sort-control .ugb-sort-control__item{box-shadow:none}.ugb-sort-control__item{border-radius:4px;background:#fafafa;width:100%;text-align:center;padding:4px;border:1px solid #ddd;margin:2px;display:block;cursor:grab!important;box-shadow:0 5px 15px rgba(0,0,0,.05)}.ugb-sort-control__item:hover{background:#fff;box-shadow:inset 0 0 0 1px #ddd}.ugb-svg-icon-placeholder{line-height:1}.ugb-svg-icon-placeholder button{font-size:inherit;padding:0;color:inherit;outline:none!important;background:transparent!important;border:none!important;box-shadow:none!important;cursor:copy;display:inline-block;width:auto}.ugb-svg-icon-placeholder button svg{display:block}.ugb-svg-icon-placeholder__button{font-size:inherit!important;padding:inherit!important;display:flex!important;height:auto;overflow:visible}.ugb-svg-icon-placeholder__button:hover{color:inherit!important}.edit-post-sidebar .ugb-url-input-control__input input{width:100%;border-radius:4px!important;border:1px solid #8d96a0!important;flex:1!important}.ugb-url-input-popover{z-index:99989}.ugb-url-input-popover.is-from-top{margin-top:20px!important}.ugb-url-input-popover.is-from-bottom{margin-top:-20px!important}.ugb-url-input-popover .ugb-url-input-control__input input[type=text]{border-radius:4px;border:1px solid #8d96a0;flex:1}.ugb-url-input-popover .ugb-url-input-control__more-button{margin-left:5px}.ugb-url-input-popover .ugb-url-input-popover__input-wrapper{display:flex;align-items:center}.ugb-url-input-popover .ugb-url-input-control__icon{margin-right:10px}.ugb-url-input-popover.ugb--show-advanced .ugb-url-input-popover__input-wrapper{margin-bottom:16px}.ugb-url-input-popover .ugb-url-input-control__input.ugb-url-input-control__input--plain{flex:1;width:300px}.ugb-url-input-popover .ugb-url-input-control__input.ugb-url-input-control__input--plain .components-base-control__field{margin-bottom:0!important}.ugb-url-input-popover .ugb-url-input-control__more-button[aria-expanded=false].ugb--active:not(:hover){box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff}.stackable-components-toolbar{border-right:none!important}.stackable-components-toolbar .components-icon-button{justify-content:center}.stackable-components-toolbar .components-icon-button svg{margin:0!important}.components-stackable-highlight__popover .components-popover__content{overflow:hidden;padding:16px;width:280px}.ugb-component-inline-color-popover{padding:16px}.ugb-highlight-format__color-picker{margin-bottom:16px}.components-stackable-highlight-color__indicator{position:absolute;background:#000;height:3px;width:20px;left:auto;right:auto;top:50%;margin:9px 0 0}.ugb-advanced-toolbar-control .components-base-control__field{margin-bottom:24px}.ugb-bottom-separator .ugb-separator-wrapper,.ugb-top-separator .ugb-separator-wrapper{pointer-events:all}.ugb-panel-controls-separator{margin:0;background:#f0f3f5;text-transform:uppercase;font-size:8px;text-align:center;padding:14px 0;background:#fafafa;border-top:1px solid #f0f0f0;color:#00669b;color:var(--wp-admin-theme-color-darker-10,#00669b)}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet{display:block!important}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop.ugb-main-block,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile.ugb-main-block,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet.ugb-main-block{display:flex!important}.ugb-main-block,[class*=ugb-]+form[class*=-link],[class*=ugb-] form[class*=-link],form[class*=ugb-][class*=-link]{display:flex;justify-content:center;align-items:center}.ugb-main-block{margin-top:35px;margin-bottom:35px;padding:0}.ugb-main-block.alignfull{padding:0 35px}.ugb-block-content,.ugb-inner-block{margin:0;padding:0;width:100%;position:relative}.ugb--full-height{min-height:700px}.ugb--restrict-content-width .ugb-content-wrapper{max-width:var(--content-width);margin:0 auto}.ugb--shadow-0,.ugb-shadow-0{box-shadow:none!important}.ugb--shadow-1,.ugb-shadow-1{box-shadow:0 0 0 1px hsla(0,0%,47.1%,.1)!important}.ugb--shadow-2,.ugb-shadow-2{box-shadow:0 0 0 2px hsla(0,0%,47.1%,.1)!important}.ugb--shadow-3,.ugb-shadow-3{box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px rgba(176,181,193,.2)!important}.ugb--shadow-4,.ugb-shadow-4{box-shadow:0 2px 20px hsla(0,0%,60%,.2)!important}.ugb--shadow-5,.ugb-shadow-5{box-shadow:0 5px 30px -10px rgba(18,63,82,.3)!important}.ugb--shadow-6,.ugb-shadow-6{box-shadow:0 10px 30px rgba(0,0,0,.05)!important}.ugb--shadow-7,.ugb-shadow-7{box-shadow:7px 5px 30px rgba(72,73,121,.15)!important}.ugb--shadow-8,.ugb-shadow-8{box-shadow:0 10px 60px rgba(0,0,0,.1)!important}.ugb--shadow-9,.ugb-shadow-9{box-shadow:0 70px 130px -60px rgba(72,73,121,.38)!important}div[class^=wp-block-ugb-]{z-index:1}@supports (-webkit-touch-callout:inherit){[class*=ugb-]{background-attachment:scroll!important}}.ugb-block-content:after,.ugb-block-content:before{content:none!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background{margin-top:0;margin-bottom:0;padding-top:70px;padding-bottom:70px}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-full>.ugb-inner-block{width:100%}.ugb-bottom-block-separator-panel .ugb-design-control,.ugb-top-block-separator-panel .ugb-design-control{max-height:270px}.ugb-top-block-separator-panel .ugb-design-panel-item__image{transform:scaleY(-1)}.ugb-bottom-separator svg,.ugb-top-separator svg{transition:none!important}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title{margin:0 0 64px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title.ugb-block-title--with-subtitle{margin-bottom:16px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-description{margin:0 0 64px}.ugb-debugger-panel{padding:16px}.ugb-debugger-panel p{margin:0}.ugb-premium-notice-inspector-popup{margin-left:16px;margin-right:16px}.ugb-global-settings-color-picker__text-name{padding-top:0!important}.ugb-global-settings-color-picker__text-name .components-color-picker__controls{justify-content:space-between}.ugb-global-settings-color-picker__text-name .components-color-picker__inputs-wrapper{padding-top:0!important}.ugb-global-settings-color-picker__text-name input{width:211px}.ugb-global-settings-color-picker{margin-bottom:12px}.ugb-global-settings-color-picker__add-icon{min-width:30px!important;width:30px;height:30px;border-radius:50%}.ugb-global-settings-color-picker__add-icon svg{width:20px}.ugb-global-settings-color-picker__title{margin:0 0 1em!important}.ugb-global-settings-color-picker__reset-button{width:-webkit-max-content;width:max-content;margin-right:0!important;margin:auto auto 12px}.ugb-global-settings__color-picker-disabled-color{pointer-events:none}.ugb-global-settings__color-picker-disabled-color .components-circular-option-picker__option{display:flex;justify-content:center}.ugb-global-settings__color-picker-disabled-color .components-circular-option-picker__option svg{width:12px}.ugb-global-settings-typography-control>.components-base-control__field{margin-bottom:16px}.ugb-global-settings-typography-control>.components-base-control__field>.components-base-control__label{min-height:25px;width:calc(100% - 88px);margin-bottom:0!important;pointer-events:none}.ugb-global-settings-typography-control.ugb-global-settings-typography-control--with-description>.components-base-control__field{margin-bottom:32px}.ugb-global-typography-preview{position:relative}.ugb-global-typography-preview .block-editor-block-list__block,.ugb-global-typography-preview .block-editor-block-list__layout,.ugb-global-typography-preview .editor-styles-wrapper{margin:0!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;background:transparent!important}.ugb-global-typography-preview .block-editor-block-list__block:after,.ugb-global-typography-preview .block-editor-block-list__block:before,.ugb-global-typography-preview .block-editor-block-list__layout:after,.ugb-global-typography-preview .block-editor-block-list__layout:before,.ugb-global-typography-preview .editor-styles-wrapper:after,.ugb-global-typography-preview .editor-styles-wrapper:before{display:none!important}.ugb-global-typography-preview__label{margin:0!important;padding:0!important;line-height:1.4!important}.ugb-global-typography-preview__description{margin:0!important;padding:0!important;font-size:12px!important;position:absolute;top:100%;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ugb-deprecated-tester .ugb-deprecated-tester__load-button{display:flex;align-items:center;transition:all .3s ease-in-out;margin-top:5px}.ugb-deprecated-tester .ugb-deprecated-tester__load-button svg{margin-right:8px}.ugb-deprecated-tester.ugb-deprecated-tester--loading .ugb-deprecated-tester__load-button{opacity:.7}.ugb-deprecated-tester.ugb-deprecated-tester--loading .ugb-deprecated-tester__load-button svg{animation:deprecated-test-rotate 1s linear infinite}.ugb-deprecated-tester--row{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.ugb-deprecated-tester--row button{background:#fafafa;border-color:#ddd}.ugb-deprecated-tester--row.ugb--first{justify-content:flex-end}.ugb-deprecated-tester--row>:last-child{display:flex;justify-content:center;align-items:center}.ugb-deprecated-tester--row>:last-child button{display:inline-block;padding:4px;height:26px;width:26px;margin-left:8px}.ugb-deprecated-tester--row>:last-child svg{height:18px;width:18px}.ugb-deprecated-tester--row .ugb--green{color:#0da00d}.ugb-deprecated-tester--name{display:flex}.ugb-deprecated-tester--name button{padding:0;border:0!important;background:transparent!important;box-shadow:none!important}.ugb-deprecated-tester--name svg{display:inline-block;height:15px;width:15px;vertical-align:text-top;color:#ccc;margin-left:4px}.ugb-deprecated-tester--test-details{display:flex;justify-content:flex-start}.ugb-deprecated-tester--test-details .ugb--version{color:#777}.ugb-deprecated-tester--test-details .ugb--plan{background:#fb6874;color:#fff;padding:0 .5em;border-radius:3px;margin-left:.5em;font-size:.6em;text-transform:uppercase}.ugb-deprecated-tester--test-details .ugb--skipped-note{width:100%;font-style:italic}.ugb-deprecated-tester--test-details .components-icon-button{padding:2px;margin-left:4px}.ugb-deprecated-tester--test-details .components-icon-button svg{height:12px;width:12px}.ugb-deprecated-tester--test-details .components-clipboard-button{font-size:11px;margin-left:6px}.ugb-deprecated-tester--test-detail-wrapper{background:#fafafa;padding:6px;border:1px solid #ddd;border-radius:4px}.ugb-deprecated-tester--test-detail-wrapper>div>div{display:flex;flex-wrap:wrap}.ugb-deprecated-tester--test-detail-wrapper .ugb--failed,.ugb-deprecated-tester--test-detail-wrapper .ugb--passed,.ugb-deprecated-tester--test-detail-wrapper .ugb--skipped{padding:0 6px;border-radius:2px;display:inline-block;background:#a7e8a7;color:#0c7b0c;align-self:flex-end;margin:0 0 0 auto}.ugb-deprecated-tester--test-detail-wrapper .ugb--failed{background:#efd5d5;color:#a70d0d}.ugb-deprecated-tester--test-detail-wrapper .ugb--skipped{background:#eee;color:#666}@keyframes deprecated-test-rotate{0%{transform:rotate(0deg)}to{transform:rotate(-359deg)}}.ugb-html-validator .CodeMirror{height:300px}.ugb-html-validator .components-base-control__help{margin-top:0}.ugb-html-validator--invalid,.ugb-html-validator--valid{font-weight:700;text-transform:uppercase;color:#1fb51f}.ugb-html-validator--invalid{color:#e4174d}@media screen and (max-width:600px){.ugb-icon-list.ugb-icon-list--display-grid ul{grid-template-columns:1fr!important}.ugb-icon-list.ugb-icon-list ul{column-count:1!important}.ugb-main-block.alignfull{padding-right:17.5px;padding-left:17.5px}}@media screen and (min-width:1025px){.ugb--full-height{min-height:100vh}}@media screen and (max-width:768px){.ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr!important;grid-template-areas:inherit!important}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-columns:1fr!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:inherit!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit}#editor .ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-columns:1fr!important;grid-template-areas:inherit!important}#editor .ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.ugb-column{grid-area:inherit!important}#editor .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}#editor .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:1fr!important}#editor .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:inherit!important}#editor .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{grid-area:inherit}}@media screen and (min-width:768px) and (max-width:1025px){#editor .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout,.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr 1fr!important}}@media (min-width:600px){[data-type="ugb/column"].block-editor-block-contextual-toolbar{margin-bottom:0!important;margin-left:0!important}}@media screen and (min-width:960px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-center>.ugb-inner-block{max-width:var(--content-width)}}@media screen and (min-width:1280px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-wide>.ugb-inner-block{max-width:1200px}}
1
+ @charset "UTF-8";svg.ugb-stackable-icon-gradient{fill:url(#stackable-gradient)!important}.block-editor-block-list__block[data-type^="ugb/"]{margin-top:0!important;margin-bottom:0!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block{margin-top:35px;margin-bottom:35px;padding:0 35px}[data-type^="ugb/"]>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}.ugb--has-panel-tabs .ugb-panel-tabs~.editorskit-panel{display:none}.components-toolbar__control.ugb--is-premium{position:relative}.components-toolbar__control.ugb--is-premium:after{position:absolute;z-index:1;background:none;line-height:18px;padding:0 6px;border-radius:2px;left:0;right:0;text-transform:uppercase;background-size:100%;background-repeat:no-repeat;font-family:dashicons;content:"\f160";color:#888;font-size:20px;opacity:0}.components-toolbar__control.ugb--is-premium *,.components-toolbar__control.ugb--is-premium:after{transition:all .2s ease-in-out}.components-toolbar__control.ugb--is-premium:disabled{opacity:1}.components-toolbar__control.ugb--is-premium:disabled *{opacity:.3}.components-toolbar__control.ugb--is-premium:hover *{opacity:0}.components-toolbar__control.ugb--is-premium:hover:after{opacity:1}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-base-control__label,body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-toggle-control__label{cursor:help;border-bottom:1px solid transparent}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-base-control__label:hover,body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-base-control .components-toggle-control__label:hover{border-color:#8c33da;color:#8c33da;border-bottom-style:solid!important}body.ugb--help-tips-enabled .components-base-control[class*=ugb--help-tip-]:hover .components-base-control__label,body.ugb--help-tips-enabled .components-base-control[class*=ugb--help-tip-]:hover .components-toggle-control__label{border-color:#a683c5;border-bottom-style:dashed}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle{cursor:pointer}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle:after{content:"\f223";margin-left:10px;font-family:dashicons;font-size:20px;line-height:16px;text-shadow:0 0 1px #000;color:#fafafa}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle:hover{color:#8c33da!important}body.ugb--help-tips-enabled [class*=ugb--help-tip-].components-panel__body .components-panel__body-toggle:hover:after{cursor:help;color:#b266f4;text-shadow:none}.ugb-help-tooltip-video{margin-left:-30px!important}.ugb-help-tooltip-video .components-popover__content{min-width:220px!important;width:220px!important}.ugb-help-tooltip-video .components-panel__body{padding:0 16px 16px}.ugb-help-tooltip-video video{width:100%;height:auto;position:relative;z-index:2;margin:0 -16px 8px;min-width:calc(100% + 32px);min-height:163.5px}.ugb-help-tooltip-video .ugb-help-tooltip-video__link{margin-top:5px;text-align:right;cursor:pointer}.ugb-help-tooltip-video .ugb-help-tooltip-video__link svg{vertical-align:bottom}.ugb-help-tooltip-video .components-spinner{position:absolute;left:calc(50% - 9px);text-align:center;top:82px;margin:0;z-index:1}.ugb-help-tooltip-video .ugb-help-tooltip-video__remove{background:none!important;border:none;position:absolute;top:10px;right:4px;cursor:pointer;z-index:9!important}.ugb-help-tooltip-video .ugb-help-tooltip-video__remove svg{max-width:none;stroke:rgba(0,0,0,.3);stroke-width:1px;fill:#fff}.ugb-help-tooltip-video .ugb-help-tooltip-video__remove:hover{color:#444}.ugb-help-tooltip-video h4{margin:0 0 8px;font-size:1em}.ugb-help-tooltip__checkbox{font-size:11px;margin:20px 0 -10px;color:#777;font-style:italic}.ugb-help-tooltip__checkbox .components-checkbox-control__input-container{margin-right:8px}[data-type="ugb/accordion"] .ugb-accordion__heading{outline:none}[data-type="ugb/accordion"] .ugb-accordion__heading svg{transform:rotate(180deg)!important}[data-type="ugb/accordion"] .ugb-accordion__heading>:first-child{flex:1}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__content{display:none}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__heading svg{transform:rotate(0deg)!important}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content .ugb-accordion__content-inner{padding-top:0}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content{overflow:visible}#editor .ugb-accordion.ugb-accordion--v2.ugb-accordion--design-plain .ugb-accordion__content .ugb-accordion__content-inner{padding-bottom:0}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__heading{z-index:0}#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay .ugb-video-background,#editor .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay:before{z-index:-1!important}.ugb-accordion__heading>div:empty{display:none}.ugb-blockquote{margin-left:0;margin-right:0}.ugb-blockquote__inspector__icon{flex-wrap:wrap}.ugb-blog-post__inspector-spinner>*{margin:0 auto 16px;display:block;float:none}.ugb-blog-posts__item:after{pointer-events:none}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-cta__item,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background) .ugb-cta__item{border-radius:0}.ugb-column>.ugb-inner-block>.ugb-block-content>.ugb-column__item{overflow:visible!important}[data-type="ugb/column"]>.block-editor-block-list__block-edit{height:100%}[data-type="ugb/column"]>.block-editor-block-list__block-edit>[data-block]{display:flex;flex-direction:column}.wp-block[data-type="ugb/column"],.wp-block[data-type="ugb/column"] .wp-block{max-width:none}[data-type="ugb/column"],[data-type="ugb/column"]>.ugb-column{height:100%}[data-type="ugb/column"]{transition:none!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-block]:first-child{margin-top:0!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender:not(:first-child){margin-bottom:-28px!important}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns .ugb-columns__item{align-items:stretch}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-gap:35px}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{display:flex!important;justify-content:stretch;align-items:stretch;height:100%}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.ugb-columns__item>.block-editor-inner-blocks{width:100%}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-gap:35px}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{display:flex;flex-direction:column}[data-type="ugb/columns"].has-child-selected [data-type="ugb/column"]:not(.has-child-selected):before,[data-type="ugb/columns"].is-selected [data-type="ugb/column"]:not(.has-child-selected):before{border:1px dashed rgba(123,134,162,.3)}[data-type="ugb/column"]:before{top:0!important;bottom:0!important;left:0!important;right:0!important}[data-type="ugb/columns"]:not(.is-selected):before{border:1px dashed rgba(243,73,87,.6)!important}[data-type="ugb/column"]{transition:all .3s ease-in-out!important}[data-type="ugb/column"][style*="transform: tra"]{transition:none!important}.ugb-columns--highlight-1>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:first-child,.ugb-columns--highlight-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(2),.ugb-columns--highlight-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(3),.ugb-columns--highlight-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(4),.ugb-columns--highlight-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(5),.ugb-columns--highlight-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(6),.ugb-columns--highlight-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(7),.ugb-columns--highlight-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(8){transform:translateY(-20px)!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background){padding-left:0!important;padding-right:0!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background)>.ugb-inner-block>.ugb-block-content>.ugb-container__wrapper{border-radius:0!important}[data-type="ugb/container"][data-align=center]{text-align:inherit}.ugb-container .block-editor-block-list__block{max-width:none!important}[data-align=full] .ugb-countup{border-radius:0!important;margin-top:0;margin-bottom:0}.ugb-design-library-block .components-placeholder__label svg{margin-right:8px}.ugb-design-library-block button.components-button{height:auto;font-weight:600;text-transform:uppercase;font-size:13px;padding:11px 20px;background:#fff}.ugb-insert-library-button svg{width:20px;height:20px}.ugb-insert-library-button{margin-left:10px;margin-right:10px}.ugb-expand__label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;border:none;box-shadow:none;white-space:nowrap;display:block}.ugb-expand__label:first-child{padding-top:0}.ugb-expand .ugb-expand__less-text p,.ugb-expand .ugb-expand__more-text p{font-size:inherit!important;color:inherit!important}.ugb-expand .ugb-block-content>a{display:inline-block}.ugb-feature.ugb-feature--design-basic .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder,.ugb-feature.ugb-feature--design-plain .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{height:250px}.ugb-feature-grid .ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{height:100px;width:100px;margin:0 auto;border-radius:100%}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-header__item,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background) .ugb-header__item{border-radius:0}.editor-styles-wrapper .ugb-heading .ugb-heading__subtitle,.editor-styles-wrapper .ugb-heading .ugb-heading__top-line{margin-bottom:16px}.editor-styles-wrapper .ugb-heading .ugb-heading__title{margin-bottom:8px}.ugb-icon-list ul{list-style:none!important}.ugb-icon-list ul li:before{cursor:pointer}.ugb-icon-list.ugb-icon-list li:last-child{margin-bottom:0!important}.ugb-icon-list__center-align li,.ugb-icon-list__right-align li{width:-webkit-fit-content!important;width:fit-content!important;width:-moz-fit-content!important;margin-left:auto!important}.ugb-icon-list__center-align li{margin-right:auto!important}.ugb-icon-list__left-align li{width:-webkit-fit-content!important;width:fit-content!important;width:-moz-fit-content!important;margin-right:auto!important}.ugb-image-box__image:hover{opacity:1!important}.ugb-image-box__arrow{pointer-events:all!important}[data-type="ugb/notification"] .ugb-notification.ugb-notification--dismissible{display:flex!important}[data-type="ugb/notification"] .ugb-notification__item>:last-child,[data-type="ugb/notification"] .ugb-notification__item>:last-child [role=textbox]{margin-bottom:0}[data-type="ugb/notification"] .ugb-svg-icon-placeholder__button{display:block;width:100%}.ugb-number-box .ugb-number-box__number[data-is-placeholder-visible=true]{transition:none;height:2.5em;width:2.5em;left:calc(50% - 1.25em)}.ugb-number-box .ugb-number-box__item>:not(.ugb-number-box__content){z-index:3!important}.ugb-number-box .ugb-number-box__item>.ugb-number-box__content{z-index:4!important}.ugb-pricing-box__price-line>:first-child{align-self:flex-start}.ugb-pricing-box__price-line>:last-child{align-self:flex-end}[data-type="ugb/separator"]{z-index:30!important}[data-type="ugb/separator"]~.wp-block.is-selected{z-index:31}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-inner{overflow:hidden}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-wrapper{overflow:visible}.ugb-team-member-setting__social,.ugb-team-member-setting__social .components-base-control__field{margin-bottom:8px!important}.ugb-team-member__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-team-member__image .ugb-image-upload-has-placeholder svg{top:50%;position:absolute;transform:translateY(-50%)}.ugb-testimonial__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-testimonial__image .ugb-image-upload-has-placeholder svg{top:50%;position:absolute;transform:translateY(-50%)}#editor [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup.ugb-main-block--inner-full.ugb--has-block-background .ugb-video-popup__wrapper,#editor [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup:not(.ugb--has-block-background) .ugb-video-popup__wrapper{border-radius:0;margin-left:-35px;margin-right:-35px;width:calc(100% + 70px)}.ugb-admin-setting{margin-bottom:16px}.ugb-admin-setting__label-wrapper{display:flex;align-items:center}.ugb-admin-setting__label{width:200px;display:inline-block;font-weight:700;color:#666;padding-right:15px;box-sizing:border-box}.ugb-admin-setting--small .ugb-admin-setting__label{width:130px}.ugb-admin-setting__field{flex:1}body .ugb-admin-setting .ugb-admin-setting__label-wrapper+.ugb-admin-setting__help{margin-left:200px;margin-bottom:24px!important;margin-top:8px!important}input.ugb-admin-text-setting{padding:.5em 1em;box-shadow:0 5px 30px -10px rgba(18,63,82,.1);border:1px solid rgba(0,0,0,.1);margin:0}input.ugb-admin-text-setting[type=text]{width:calc(100% - 300px)}.ugb-admin-toggle-setting__button{outline:0;display:block;height:26px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:1.5em auto 1em!important;padding:0!important;border:0!important;border-radius:26px;transition:all .4s ease;display:inline-block;background:#e4f5e4;outline:none;outline-offset:3px}.ugb-admin-toggle-setting__button:focus{outline:1px dashed #888}.ugb-admin-toggle-setting__button:after,.ugb-admin-toggle-setting__button:before{position:relative;display:block;content:"";width:26px;height:100%}.ugb-admin-toggle-setting__button:after{left:calc(100% - 26px);background:#3ca540;border-radius:50%;transition:all .2s ease;position:absolute;top:0;box-shadow:0 3px 10px -5px #000}.ugb-admin-toggle-setting__button:before{display:none}.ugb-admin-toggle-setting__button span{position:relative;display:flex;justify-content:center;align-items:center;z-index:2;color:rgba(0,0,0,.4);font-size:11px;line-height:26px;transition:padding .2s ease;padding:0 35px 0 15px}.ugb-admin-toggle-setting__button span:first-child{color:#7b7b7b}.ugb-admin-toggle-setting__button span:nth-child(2){color:#209e25}.ugb-admin-toggle-setting__button span:first-child{display:none}.ugb-admin-toggle-setting__button span:nth-child(2){display:block}.ugb-admin-toggle-setting__button[aria-checked=false]{background:#f0f0f0}.ugb-admin-toggle-setting__button[aria-checked=false]:after{left:0;background:#7b7b7b}.ugb-admin-toggle-setting__button[aria-checked=false] span{padding:0 15px 0 35px}.ugb-admin-toggle-setting__button[aria-checked=false] span:first-child{display:block}.ugb-admin-toggle-setting__button[aria-checked=false] span:nth-child(2){display:none}.ugb-advanced-autosuggest-control{margin-bottom:16px}.ugb-advanced-autosuggest-control__select>*{position:relative}.ugb-advanced-autosuggest-control__select input{width:100%}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-container{position:absolute;top:100%;max-height:272px;overflow-y:auto;z-index:2;background:#fff;width:100%;margin-top:5px;border-radius:6px}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-container:not(:empty){box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px rgba(176,181,193,.2),0 5px 30px -10px rgba(18,63,82,.3)}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-list,.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestions-list li{margin:0}.ugb-advanced-autosuggest-control__select .react-autosuggest__section-container:not(.react-autosuggest__section-container--first){border-top:1px solid #ddd}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestion{background:#fff;padding:8px 16px;cursor:pointer}.ugb-advanced-autosuggest-control__select .react-autosuggest__suggestion--highlighted{background:#f1f1f1}.ugb--autosuggest-empty{font-style:italic;font-size:.9em;color:#999}.ugb--autosuggest-group{background:#fff;padding:14px 16px 8px;font-weight:700;color:#aaa}.ugb-advanced-range-control{width:100%}.ugb-range-control.ugb-range-control--blank .components-range-control__track{width:var(--ugb-advanced-range-control--width)!important}.ugb-range-control.ugb-range-control--blank [class*=ThumbWrapper]{left:var(--ugb-advanced-range-control--width)!important}.ugb-range-control{display:flex}.ugb-range-control .components-range-control{flex:1}.ugb-range-control .components-input-control__container{position:relative;border-radius:2px;padding-top:0;box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:64px;margin-left:16px}.ugb-range-control .components-range-control__reset{height:30px;min-height:30px;margin-left:8px}.ugb-range-control .components-base-control,.ugb-range-control .components-base-control__field{margin-bottom:0}.ugb-advanced-toolbar-control .components-button-group{width:100%}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--full-width{display:flex;flex-wrap:nowrap}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--full-width>button,.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--full-width>button>svg{width:100%!important}.ugb-advanced-toolbar-control .components-button-group svg{height:20px!important;width:auto}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline{flex-wrap:wrap}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline>button{margin-top:-1px!important;margin-left:-1px!important}.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline>button,.ugb-advanced-toolbar-control .components-button-group.ugb-toolbar--multiline>button>svg{width:auto!important}.ugb-advanced-toolbar-control__text-button{align-self:center;width:100%}body.branch-5-4 .ugb-advanced-toolbar-control .components-button-group{border:1px solid #e2e4e7}.ugb-base-control-multi-label{display:grid;grid-template-columns:auto 1fr auto;margin-bottom:5px;align-items:center}.ugb-base-control-multi-label .ugb-base-control-multi-label__label{margin-bottom:0}.ugb-base-control-multi-label__units{top:0;right:0;display:flex}.ugb-base-control-multi-label__units button{border:0;font-size:10px;margin:0;font-weight:400;outline:none;color:#aaa;padding:0 4px;background:transparent;cursor:pointer;text-transform:uppercase}.ugb-base-control-multi-label__units button:hover{color:#333}.ugb-base-control-multi-label__units button.is-active{color:#333;text-decoration:underline}.ugb-base-control-multi-label__units .components-button{text-transform:none}.ugb-modal-get-block-attributes-button textarea{width:50vw;height:60vh;font-family:monospace}.ugb-button-icon-control .components-popover__content{box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px rgba(176,181,193,.2),0 5px 30px -10px rgba(18,63,82,.3)}.ugb-button-icon-control .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.ugb-button-icon-control button{display:flex}.components-popover.ugb-button-icon-control__popover{z-index:100000}.components-popover.ugb-button-icon-control__popover .components-popover__content{width:290px}.ugb-button-icon-control__popover .components-panel__body-title{padding:15px!important;background:transparent!important}.ugb-button-icon-control__wrapper{display:flex;align-items:center}.ugb-button-icon-control__wrapper .ugb-button-icon-control__reset{padding:6px;margin:0 6px}.ugb-button-icon-control__wrapper .ugb-button-icon-control__reset svg{width:14px;height:14px}.ugb-button-icon-control__wrapper .ugb-button-icon-control__edit{padding:0 6px}.ugb-button-icon-control__wrapper .ugb-button-icon-control__edit svg{width:18px;height:18px;margin:0}.ugb-button-icon-control .components-toggle-control,.ugb-button-icon-control .components-toggle-control .components-base-control__field,.ugb-button-icon-control .components-toggle-control .components-toggle-control__label{margin-bottom:0!important}.ugb-button-icon-control__text-title{margin:0 0 1em!important}.ugb-button-icon-popover-control-color-preview,.ugb-button-icon-popover-control-image-preview{margin:0 12px 0 0;height:20px;width:20px}.ugb-button-icon-popover-control-color-preview .components-circular-option-picker__option,.ugb-button-icon-popover-control-image-preview .components-circular-option-picker__option{color:transparent!important}.ugb-button-icon-popover-control-color-preview .components-circular-option-picker__option{padding:0}.ugb-button-icon-popover-control-color-preview .components-circular-option-picker__option:focus:after{width:24px;height:24px}.ugb-button-icon-popover-control-color-preview.ugb-button-icon-popover-control-color-preview--transparent:before{background-size:63px!important;opacity:.5}.ugb-button-icon-popover-control-image-preview:before{background:transparent!important}.ugb-button-icon-popover-control-image-preview .components-circular-option-picker__option{padding:0;background-size:cover}.ugb-button-icon-popover-control-image-preview .components-circular-option-picker__option:after{display:none}.ugb-button-icon-popover-control-image-preview svg{height:100%;width:100%;fill:#d1d1d1}.ugb-button.ugb-button--icon-only .ugb-svg-icon-placeholder__button{display:block}.ugb-button.ugb-button--has-icon .ugb-svg-icon-placeholder__button{height:auto}.ugb-button svg{transition:initial!important}.ugb-button.ugb-button--has-icon .ugb-icon-inner-svg svg.ugb-custom-icon{fill:initial}.ugb-code-textarea+.CodeMirror{height:500px;margin-left:-16px;margin-right:-16px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-bottom:16px}.ugb-columns-width-control__range{display:flex;align-items:center;margin-bottom:8px}.ugb-columns-width-control__range .ugb-columns-width-control__icon{height:20px;width:20px;flex-shrink:0;font-size:14px;margin-right:10px;font-weight:700;display:block;text-align:center}.ugb-columns-width-control__range .components-base-control.components-range-control,.ugb-columns-width-control__range .components-base-control__field{margin-bottom:0!important}.ugb-columns-width-control__range .components-range-control{flex:1}.ugb-columns-width-control .ugb-design-control-wrapper.components-base-control{margin-bottom:0}.ugb-columns-width-control .ugb-design-control{padding:0}.ugb-columns-width-control .ugb-design-control .components-radio-control__option{width:25%}.ugb-columns-width-control .ugb-design-control .components-base-control__field{margin-bottom:0!important;display:flex;justify-content:space-evenly}.ugb-columns-width-control .ugb-design-panel-item__image{display:block}.ugb-columns-width-control .ugb-columns-width-control__suffix{flex-shrink:0;font-size:14px;margin-left:5px;display:block;text-align:center}.ugb-columns-width-control .ugb-columns-width-control__reset{text-transform:none}.ugb-column-widths-control__columns-slider{height:20px;margin-top:20px}.ugb-column-widths-control__columns-slider [role=slider]{position:absolute;transform:translate(-50%,-50%);width:10px;height:10px;padding:0;border-radius:50%;background-color:#555d66;border:0;outline:0}.ugb-column-widths-control__columns-slider [role=slider]:focus{border:1px solid #555d66;background:#fff}.ugb-column-widths-control__columns-input{display:grid}.ugb-column-widths-control__columns-input input{min-width:40px!important;width:40px;padding:4px 2px!important;font-size:11px;margin:0 auto}.ugb-column-widths-control__columns-input input:not(:hover):not(:focus){border-color:#eee}.ugb-control-separator{height:1px!important;background:#ddd!important;margin:24px -16px!important;border:0!important;padding:0!important;width:calc(100% + 32px)!important;box-shadow:none!important}.components-panel__body-title+.ugb-control-separator{margin-top:0!important}.ugb-design-control{max-height:450px}.ugb-design-control input{opacity:0;height:0;width:0;margin:0;padding:0;position:fixed;top:0}.ugb-design-control .components-radio-control__option{display:inline-block;width:50%;text-align:center}.ugb-design-control label>span{padding:4px;display:block;border-radius:0}.ugb-design-control label>span>img{border-radius:4px}.ugb-design-control input:checked+label>span{box-shadow:inset 0 0 0 1px #1e1e1e}.ugb-design-control input+label>span:hover{background:#f0f0f0}.ugb-design-control .design-label svg{height:12px;margin:0 0 0 5px;fill:#ffad00}.ugb-design-control--columns-3 .ugb-design-control .components-radio-control__option{width:33.3%}.ugb-design-control--columns-4 .ugb-design-control .components-radio-control__option{width:25%}.ugb-design-library-control__open-library{margin:0 0 8px auto!important;display:block}.ugb-design-library-control__open-library__toolbar{font-size:11px;display:flex;justify-content:space-between;padding:0 8px}.ugb-design-library-items{page-break-inside:avoid;break-inside:avoid;column-count:1;column-gap:38px}.ugb-design-library-items.ugb-design-library-items--columns-2{column-count:2}.ugb-design-library-items.ugb-design-library-items--columns-3{column-count:3}.ugb-design-library-items.ugb-design-library-items--columns-4{column-count:4}.ugb-design-library-items .components-base-control__help{text-align:center;font-style:italic}.ugb-design-library-items .ugb-design-library-search__spinner{display:flex}.ugb-design-library-items .ugb-design-library-search__spinner .components-spinner{margin:0 auto}.ugb-modal-design-library__wrapper{overflow:hidden}.ugb-modal-design-library__designs{overflow:auto}.ugb-design-library-item{border-radius:0;box-shadow:0 2px 15px hsla(0,0%,60%,.3);overflow:hidden;transition:all .3s ease-in-out;position:relative;margin-bottom:38px;display:block;transform:translateZ(0);break-inside:avoid;width:100%;will-change:transform}.ugb-design-library-item:hover{transform:translateY(-4px) scale(1.03);box-shadow:0 6px 25px hsla(0,0%,60%,.3)}.ugb-design-library-item img{display:block;pointer-events:none;width:100%;height:auto;min-height:50px;background:#f1f1f1}.ugb-design-library-item footer{padding:8px 12px;font-size:11px;line-height:18px;display:flex;justify-content:space-between}.ugb-design-library-item.ugb--is-busy .ugb-design-library-item__spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) translateY(-10px)}.ugb-design-library-item.ugb--is-busy .components-spinner{margin:0}.ugb-design-library-item.ugb--is-busy img{opacity:.15}.ugb-design-library-item .ugb-design-library-item__image svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-40%);opacity:0;fill:#000;height:35px;width:35px}.ugb-design-library-item .ugb-design-library-item__image img,.ugb-design-library-item .ugb-design-library-item__image svg{transition:all .3s ease-in-out}.ugb-design-library-item[class*=ugb--is-premium]:hover .ugb-design-library-item__image img{opacity:.4;filter:blur(3px)}.ugb-design-library-item[class*=ugb--is-premium]:hover .ugb-design-library-item__image svg{transform:translate(-50%,-50%);opacity:1}.ugb-design-library-item__image{padding:0!important;border:0!important;text-align:start!important;width:100%!important;margin:0!important;outline:none!important;cursor:pointer;display:block}.ugb-design-library-item__premium{position:absolute;z-index:1;background:#f34957;font-size:10px;color:#fff;line-height:18px;padding:0 6px;border-radius:2px;top:5px;right:5px;text-transform:uppercase}.ugb-design-library-item__premium-link{cursor:pointer;display:flex}.ugb-design-library-item__premium-link svg{height:15px;margin-right:5px}.ugb-design-library-item__favorite{border:0;padding:0;cursor:pointer;outline:none;transition:all .3 ease-in-out}.ugb-design-library-item__favorite svg{fill:#bbb;height:14px;width:14px}.ugb-design-library-item__favorite.ugb--is-favorite:hover svg,.ugb-design-library-item__favorite.ugb--is-favorite svg,.ugb-design-library-item__favorite:hover svg{fill:#d30c5c}.ugb-design-control{max-height:40vh;overflow-y:auto}.ugb-design-control .components-base-control__label{margin-left:-16px;margin-right:-16px;margin-bottom:8px}.ugb-design-panel-item{position:relative}.ugb-design-panel-item .ugb-design-panel-item__image{mix-blend-mode:darken}.ugb-design-panel-item__hover-image{position:absolute;top:5px;left:5px;right:5px;width:calc(100% - 10px);opacity:0;transition:opacity .4s ease-in-out}.ugb-design-panel-item:hover .ugb-design-panel-item__hover-image{opacity:1}#editor .ugb--has-background-overlay.ugb--has-background-overlay .ugb-video-background,#editor .ugb--has-background-overlay.ugb--has-background-overlay:before{pointer-events:none}.ugb-icon-control svg .fa-secondary,.ugb-icon-popover svg .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.ugb-icon-is-loading{animation:icon-loading 1.3s linear infinite;height:12px!important;width:12px!important}@keyframes icon-loading{0%{opacity:.8;transform:rotate(0deg)}25%,75%{opacity:.4}50%{opacity:.8}to{opacity:.8;transform:rotate(1turn)}}.ugb-icon--faded{opacity:.4}.ugb-four-number-control__wrapper{display:grid;grid-gap:4px;grid-template-columns:1fr 1fr 1fr 1fr -webkit-min-content;grid-template-columns:1fr 1fr 1fr 1fr min-content;align-items:flex-start}.ugb-four-number-control__wrapper button{padding:6px!important}.ugb-four-number-control__wrapper button.ugb--is-locked,.ugb-four-number-control__wrapper button.ugb--is-locked:hover{background:#aaa!important;color:#fff!important}.ugb-four-number-control__label{display:flex;flex-direction:column;justify-content:center;align-items:center}.ugb-four-number-control__label span{font-size:9px;opacity:.8}.ugb-four-number-control__label input{margin:0;width:100%;padding-left:0!important;padding-right:0!important;text-align:center}.ugb-four-number-control__label input[disabled]{background:#e5e4e8;cursor:not-allowed}.ugb-four-range-control__range{display:flex;align-items:center}.ugb-four-range-control__range .ugb-four-range-control__icon{height:20px;width:20px;flex-shrink:0;margin-right:10px}.ugb-four-range-control__range .components-base-control.components-range-control,.ugb-four-range-control__range .components-base-control__field{margin-bottom:0!important}.ugb-four-range-control__range .components-range-control{flex:1}.ugb-four-range-control .ugb-four-range-control__lock{height:auto;color:#555d66;box-shadow:none!important;margin-left:5px}.ugb-four-range-control .ugb-four-range-control__lock svg{height:16px;width:16px}.ugb-four-range-control.ugb--locked .ugb-four-range-control__range{margin-bottom:8px}.ugb-four-range-control:not(.ugb--locked) .ugb-advanced-range-control{margin-bottom:0}.ugb-global-style-control__item{display:flex;align-items:center}.ugb-global-style-control__item-label{flex-grow:1}li[aria-selected=false] .ugb-global-style-control__item-button{visibility:hidden}.ugb-global-style-control__item-preview{margin-right:12px}.ugb-global-style-control__item--large-preview .ugb-global-style-control__item-preview{margin-right:0;margin-bottom:12px;width:100%}.ugb-global-style-control__item--large-preview.ugb-global-style-control__item{display:flex;flex-wrap:wrap}.ugb-global-style-control .ugb-advanced-autosuggest-control__select{display:flex}.ugb-global-style-control .ugb-advanced-autosuggest-control__select>*{margin-left:8px}.ugb-global-style-control .ugb-advanced-autosuggest-control__select .react-autosuggest__container{flex:1;margin-left:0}.ugb-global-style-control .ugb-advanced-autosuggest-control__select .react-autosuggest__container input{height:100%}.ugb-global-style-control.ugb--has-value .react-autosuggest__suggestions-list>:first-child{border-bottom:1px solid #ddd}.ugb-global-style-control .react-autosuggest__suggestions-container{min-width:248px}.ugb-icon-control .ugb-icon-control__icon-button{height:auto;padding:8px;margin-right:auto}.ugb-icon-control .ugb-icon-control__icon-button svg{width:30px;height:30px}.ugb-icon-control .ugb-icon-control__wrapper{display:flex;justify-content:space-between;margin-bottom:16px}.ugb-icon-popover .components-popover__content{overflow:hidden;width:300px}.ugb-icon-popover__iconlist{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;align-items:flex-start;margin-top:5px;height:200px;overflow:auto}.ugb-icon-popover__iconlist button{background:none;padding:5px;border-color:transparent;box-shadow:none;width:40px;height:40px}.ugb-icon-popover__iconlist button:hover{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff!important}.ugb-icon-popover__iconlist button:hover>div>svg{color:#000}.ugb-icon-popover__iconlist svg{width:30px!important;height:30px;margin:0;box-sizing:content-box;border-radius:4px}.ugb-icon-popover__iconlist button>div>svg{color:#444}.ugb-icon-popover__iconlist .components-base-control__help{font-style:italic}.ugb-icon-popover__label-container{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:16px}.ugb-icon-popover__label-container .components-base-control__field{margin-bottom:0}.ugb-icon-popover__label-container .ugb-icon-popover__input{flex:1;flex-basis:calc(100% - 50px)}.ugb-icon-popover__label-container .ugb-icon-popover__settings-button{height:30px;margin-left:8px}.ugb-icon-popover__label-container .components-range-control__reset,.ugb-icon-popover__label-container .components-range-control__upload{text-align:center;display:block}.ugb-icon-popover__label-container.ugb-icon--has-upload.ugb-icon--has-reset .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-upload.ugb-icon--has-reset .components-range-control__upload{flex-basis:calc(50% - 4px);margin-top:8px}.ugb-icon-popover__label-container.ugb-icon--has-settings .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-settings .components-range-control__upload{margin-top:8px}.ugb-icon-popover__label-container.ugb-icon--has-upload .components-range-control__reset,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-reset) .components-range-control__upload,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload) .components-range-control__reset{margin-left:8px}.ugb-icon-popover__label-container:not(.ugb-icon--has-settings).ugb-icon--has-upload:not(.ugb-icon--has-reset) .ugb-icon-popover__input,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload).ugb-icon--has-reset .ugb-icon-popover__input{flex-basis:50%}.ugb-icon-popover__label-container:not(.ugb-icon--has-settings).ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__reset,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings).ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__upload,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__reset,.ugb-icon-popover__label-container:not(.ugb-icon--has-settings):not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__upload{height:30px}.ugb-icon-popover__label-container.ugb-icon--has-settings.ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-settings.ugb-icon--has-upload:not(.ugb-icon--has-reset) .components-range-control__upload,.ugb-icon-popover__label-container.ugb-icon--has-settings:not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__reset,.ugb-icon-popover__label-container.ugb-icon--has-settings:not(.ugb-icon--has-upload).ugb-icon--has-reset .components-range-control__upload{flex-basis:100%}.ugb-icon-popover__drop-area{font-size:12px;font-style:italic;color:#888;text-align:center;margin:0 0 24px;display:block;outline:none}.file-drop-dragging-over-frame>.ugb-icon-popover__iconlist{pointer-events:none}.ugb-icon-popover__drop-indicator{pointer-events:none;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.9);flex-direction:column;transition:background .3s ease-in-out}.ugb-icon-popover__drop-indicator svg{margin-bottom:8px;transform-origin:bottom;animation:ugb-icon-popover__drop-indicator 1.8s ease infinite}.file-drop-dragging-over-target>.ugb-icon-popover__drop-indicator{background:#fff;outline-offset:-10px;outline-style:dashed;outline-width:3px;outline-color:#11a0d2}@keyframes ugb-icon-popover__drop-indicator{10%{transform:translateY(0)}50%{transform:translateY(-8px)}60%{transform:translateY(0)}}.ugb-image-control .ugb-placeholder{height:150px;display:flex;justify-content:center;align-items:center;background:#f1f1f1;margin-bottom:12px;margin-top:.6rem}.ugb-image-control .ugb-placeholder svg{height:50px;fill:#ddd}.ugb-image-control .ugb-image-preview,.ugb-image-control .ugb-placeholder{border-radius:4px;cursor:pointer;transition:all .3s ease-in-out}.ugb-image-control .ugb-image-preview:hover,.ugb-image-control .ugb-placeholder:hover{background:#fafafa}.ugb-image-control .ugb-image-preview:focus,.ugb-image-control .ugb-placeholder:focus{background:#fafafa;box-shadow:0 0 0 2px rgba(30,140,190,.8)}.ugb-image-control .ugb-image-preview-wrapper{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;background:#f1f1f1;margin-top:.6rem;border-radius:4px}.ugb-image-control .ugb-image-preview-wrapper svg{stroke:rgba(0,0,0,.3);stroke-width:1px;fill:#fff}.ugb-image-control .ugb-image-preview{min-width:100px;flex:1 1 100px;margin:0;position:relative;z-index:2;-o-object-fit:contain;object-fit:contain;width:auto;height:auto}.ugb-image-control .ugb-image-preview-remove{background:none!important;color:#ddd;border:none;position:absolute;top:10px;right:4px;cursor:pointer;z-index:3}.ugb-image-shape-control .ugb-design-control{padding:8px;margin:0 40px;border:1px solid #efefef}.ugb-image-upload-placeholder{position:relative;cursor:copy;margin-left:auto;margin-right:auto}.ugb-image-upload-placeholder img{display:block}.ugb-image-upload-has-placeholder{background:#f1f1f1;display:flex;justify-content:center;align-items:center;height:150px;width:100%}.ugb-image-upload-has-placeholder svg{max-height:50px;fill:#ddd;max-width:40%;width:100%}.ugb-image-upload-has-placeholder:hover{background:#fafafa}.ugb-image-upload-has-placeholder:focus{background:#fafafa;box-shadow:0 0 0 2px rgba(30,140,190,.8)}.ugb-image-upload-has-image:hover{opacity:.8}.ugb-image-upload-remove{background:none!important;color:#ddd;border:none;position:absolute;top:10px;right:4px;cursor:pointer;display:none;z-index:9!important}.ugb-image-upload-remove svg{stroke:rgba(0,0,0,.3);stroke-width:1px;fill:#fff;max-width:none}.block-editor-block-list__block.is-selected .ugb-image-upload-remove,.block-editor-block-list__block:hover .ugb-image-upload-remove{display:block}.ugb-modal-design-library{width:100%;max-width:90%;height:90%;min-height:500px}.ugb-modal-design-library .components-modal__content{padding:0;display:flex;flex-direction:column}.ugb-modal-design-library .components-modal__header{margin:0}.ugb-modal-design-library .ugb-modal-design-library__wrapper{display:grid;grid-template-columns:300px auto;grid-template-rows:50px auto;flex:1}.ugb-modal-design-library .ugb-modal-design-library__sidebar{box-shadow:0 0 30px rgba(0,0,0,.1);background:#fff;grid-column:1/2;grid-row:1/3;display:flex;flex-direction:column;overflow:hidden}.ugb-modal-design-library .ugb-modal-design-library__sidebar .ugb-control-separator{margin:8px 0!important;width:100%!important}.ugb-modal-design-library .ugb-modal-design-library__topbar{display:flex;justify-content:flex-end;padding:0 24px;height:50px;align-items:center;grid-column:2/3;grid-row:1/2}.ugb-modal-design-library .ugb-modal-design-library__designs{padding:24px;grid-column:2/3;grid-row:2/3}.ugb-modal-design-library .ugb-modal-design-library__search{padding:24px;background:#f1f1f1}.ugb-modal-design-library .ugb-modal-design-library__search .components-base-control__field{margin:0}.ugb-modal-design-library .ugb-modal-design-library__topbar .is-pressed{background:#555;color:#fff}.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text.is-pressed,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text:hover,.ugb-modal-design-library .ugb-advanced-toolbar-control .ugb-toolbar--full-width{background:transparent}.ugb-modal-design-library .ugb-modal-design-library__filters{overflow-y:auto;padding:24px}.ugb-block-list li{margin:0}.ugb-block-list li>div{padding:6px 10px;cursor:pointer}.ugb-block-list li [aria-pressed=true]{font-weight:700}.ugb-block-list li .is-disabled{opacity:.3}.ugb-block-list .ugb-block-list__count{float:right}.ugb-block-list [data-count="0"]{opacity:.3}.ugb-modal-design-library__color-list-wrapper{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center}.ugb-modal-design-library__color-list{margin-bottom:8px!important}.ugb-modal-design-library__color-list .components-circular-option-picker{width:24px;flex:0;margin:0 10px 10px}.ugb-modal-design-library__color-list .components-circular-option-picker__option-wrapper{height:22px;width:22px;margin:0}.ugb-modal-design-library__color-list .components-circular-option-picker__option.is-pressed+svg{left:3px;top:3px;width:16px;height:16px}.ugb-modal-design-library__color-list .components-circular-option-picker__option:after{box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)!important}.ugb-modal-design-library__color-list .components-circular-option-picker__option:focus:after{width:28px;height:28px;top:-3px;left:-3px}.ugb-modal-design-library__refresh{margin-right:10px}.ugb-modal-design-library__dev-mode .components-base-control__field{margin:2px 24px 0!important}.ugb-modal-welcome-video p{width:470px;margin:16px auto;text-align:center}.ugb-modal-welcome-video .components-modal__content{padding-bottom:20px}.ugb-modal-welcome-video .components-modal__header{margin-bottom:30px}.ugb-modal-welcome-video,.ugb-modal-welcome-video__overlay{animation-duration:.6s!important;transition-duration:.6s!important}.ugb-toggle-panel-form-toggle{margin-right:12px}.ugb-panel-advanced-button{text-transform:uppercase;font-size:9px;background:transparent;width:100%;display:block;border:0;outline:none;position:relative;cursor:pointer;padding-bottom:15px}.ugb-panel-advanced-button:after{content:"❯";position:absolute;transform:translateX(-50%) rotate(90deg);left:50%;bottom:0}.ugb-panel-advanced-button:hover{color:#999}.ugb-toggle-panel-body--advanced .ugb-panel-advanced-button{padding-bottom:0;padding-top:15px}.ugb-toggle-panel-body--advanced .ugb-panel-advanced-button:after{top:0;bottom:auto;transform:translate(-50%) rotate(-90deg)}.ugb-panel-tabs{position:-webkit-sticky;position:sticky;top:-1px;z-index:5}.ugb-panel-tabs .ugb-panel-tabs__wrapper{display:flex!important;flex-wrap:nowrap}.ugb-panel-tabs .ugb-panel-tabs__wrapper,.ugb-panel-tabs .ugb-panel-tabs__wrapper>button{transition:all .1s cubic-bezier(.2,.6,.4,1);background:#fff;box-shadow:none;border:0}.ugb-panel-tabs button{outline:none!important;display:flex;flex-direction:column;justify-content:center;align-items:center;height:80px;padding:0!important;flex:1;margin:0!important;cursor:pointer;color:#1e1e1e;border:0!important}.ugb-panel-tabs button svg{margin:5px;height:20px}.ugb-panel-tabs button.is-active{border-bottom:0;box-shadow:inset 0 0 0 1px #1e1e1e}.ugb-panel-tabs button:hover{background:#f0f0f0}.ugb-panel-tabs button:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color,#007cba)}.ugb-panel-tabs{border-bottom:1px solid #e2e4e7!important}.edit-post-sidebar.ugb--has-panel-tabs{background-color:#f0f3f5}.edit-post-sidebar.ugb--has-panel-tabs .edit-post-settings-sidebar__panel-block .components-panel__body:last-child{margin-bottom:0}[data-ugb-tab]>*{padding-bottom:0!important}.ugb-inspector-panel-controls .components-panel__body .components-panel__body-title:not(:hover){background:#fff}.ugb-inspector-panel-controls .components-panel__body .components-panel__body-title+.components-toggle-control{margin-top:24px!important}.ugb-inspector-panel-controls .components-panel__body.is-opened .components-panel__body-title{margin-bottom:12px;border-bottom:1px solid #e1e1e1;position:-webkit-sticky;position:sticky;top:81px;z-index:4}.ugb-inspector-panel-controls .components-panel__body{background:#fafafa}.ugb-inspector-panel-controls .components-panel__body:first-child{border-top:0!important}[data-ugb-tab=advanced] .ugb-inspector-panel-controls:not(.ugb-panel-advanced),[data-ugb-tab=layout] .block-editor-block-inspector__advanced,[data-ugb-tab=layout] .ugb-inspector-panel-controls:not(.ugb-panel-layout),[data-ugb-tab=style] .block-editor-block-inspector__advanced,[data-ugb-tab=style] .ugb-inspector-panel-controls:not(.ugb-panel-style){display:none}.ugb-design-control-pro-note{position:relative;text-align:center;background:#fff;padding:16px;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.12);margin:16px 0;color:#1e1e1e}.ugb-design-control-pro-note h4{margin:0 0 4px;font-size:1em}.ugb-design-control-pro-note p{font-size:.9em;margin-bottom:16px}.ugb-design-control-pro-note a.button{color:#fff;border:0;text-transform:uppercase;display:inline-block;height:auto;width:100%;margin:0 auto;transition:all .3s ease-in-out;box-shadow:none;font-size:10px;letter-spacing:1px;line-height:1.2em;border-radius:25px;padding:10px 18px;background:linear-gradient(330deg,#b300be,#f00069);background-color:#b300be;transition-timing-function:cubic-bezier(.81,.37,.61,1);transition-duration:.2s}.ugb-design-control-pro-note a.button:hover{background:linear-gradient(90deg,#f00069 0,#f00069);color:#fff;transform:scale(1.02)}.ugb-design-control-pro-note .ugb-design-control-pro-note__close{position:absolute;top:0;right:0;color:#777}.ugb-design-control-pro-note svg.ugb-design-control-pro-note__logo{height:24px;width:24px;margin:0 0 12px}.ugb-design-control-pro-note.ugb-pro-note__small{display:grid;padding:0;grid-template-columns:30px 1fr -webkit-min-content;grid-template-columns:30px 1fr min-content;grid-gap:5px;align-items:center;margin-bottom:0}.ugb-design-control-pro-note.ugb-pro-note__small svg{margin:0;height:25px;width:25px}.ugb-design-control-pro-note.ugb-pro-note__small p{text-align:left;margin:0;font-size:10px}.ugb-design-control-pro-note.ugb-pro-note--fade *{transition:all .3s ease-in-out}.ugb-design-control-pro-note.ugb-pro-note--fade p{opacity:.8}.ugb-design-control-pro-note.ugb-pro-note--fade a,.ugb-design-control-pro-note.ugb-pro-note--fade svg{opacity:.7}.ugb-design-control-pro-note.ugb-pro-note--fade:hover a,.ugb-design-control-pro-note.ugb-pro-note--fade:hover p,.ugb-design-control-pro-note.ugb-pro-note--fade:hover svg{opacity:1}.ugb-design-control-pro-note .ugb-design-control-pro-note__notice{font-size:10px;line-height:1.4;max-width:140px;margin:16px auto 0;font-style:italic;color:#aaa}.ugb-pro-control-more-dots{display:flex;background:transparent;margin:0 auto;width:50px;justify-content:center;border-radius:25px;height:25px;align-items:center;cursor:pointer;transition:all .3s ease-in-out;border:none;outline:none}.ugb-pro-control-more-dots .ugb-pro-control-more-dots__dot{width:6px;height:6px;background:#aaa;border-radius:100%;margin:0 2px;transition:all .3s ease-in-out}.ugb-pro-control-more-dots:focus,.ugb-pro-control-more-dots:hover{background:#eee}.ugb-pro-control-more-dots:focus .ugb-pro-control-more-dots__dot,.ugb-pro-control-more-dots:hover .ugb-pro-control-more-dots__dot{background:#555}.ugb-pro-control-button__wrapper{max-height:800px;transition:all .3s ease-in-out;overflow:hidden;margin:0 -16px}.ugb-pro-control-button__wrapper.ugb-pro-control-button--hidden{max-height:0}.ugb-pro-control-button__wrapper .ugb-design-control-pro-note{margin-left:16px;margin-right:16px}.ugb-pro-modal{overflow:hidden!important;border:0!important;background:#000}.ugb-pro-modal .components-modal__header{position:absolute;top:0;right:10px;z-index:3;border:0;background:transparent}.ugb-pro-modal .components-modal__header .components-button svg{fill:#fff}.ugb-pro-modal .components-modal__header .components-button:hover{background-color:rgba(0,0,0,.4)!important}.ugb-pro-modal .components-modal__content{padding:0}.ugb-pro-modal .components-modal__content img{max-width:1000px;height:auto;width:auto!important}.ugb-pro-modal .ugb-pro-modal__footer{padding:30px;text-align:center;display:flex;justify-content:center;align-items:center}.ugb-pro-modal .ugb-pro-modal__footer *{margin:0 5px}.ugb-pro-modal .ugb-pro-modal__footer .button{color:#fff;background:linear-gradient(90deg,#ab5af1 -50%,#fb6874);border:0;height:auto;font-size:14px;font-weight:500;display:flex;align-items:center;margin:0 15px;border-radius:40px;padding:5px 25px}.ugb-pro-modal .ugb-pro-modal__footer .button svg{fill:#fff;margin:0 10px 0 0}.ugb-pro-modal .ugb-pro-modal__footer .button:hover{background:linear-gradient(90deg,#ab5af1 -50%,#fb6874 50%)}.ugb-pro-modal .ugb-pro-modal__footer a:not(.button){color:#fb6874;text-decoration:none}.ugb-pro-modal .ugb-pro-modal__footer a:not(.button):hover{color:#ab5af1}.ugb-pro-modal .ugb-pro-modal__footer .button-ghost{box-shadow:inset 0 0 0 2px #fb6874;background:none;color:#fb6874;font-weight:400;text-transform:none}.ugb-pro-modal .ugb-pro-modal__footer .button-ghost:hover{box-shadow:inset 0 0 0 2px #ab5af1;background:none;font-weight:400;color:#ab5af1}.ugb-base-control-multi-label__responsive{display:flex;margin-left:6px;align-items:center}.ugb-base-control-multi-label__responsive button{height:14px;width:14px;padding:5px!important;min-width:11px!important;box-sizing:content-box;border-radius:0!important;margin:0;border:1px solid transparent}.ugb-base-control-multi-label__responsive button svg{height:100%;width:100%}.ugb-base-control-multi-label__responsive button.is-active,.ugb-base-control-multi-label__responsive button:hover{border:1px solid #1e1e1e!important;box-shadow:none!important}.ugb-base-control-multi-label__responsive button.is-active:not([data-screen=desktop]){background:#007cba;background:var(--wp-admin-theme-color,#007cba);color:#fff;border-color:#007cba!important;border-color:var(--wp-admin-theme-color,#007cba)!important}.ugb-base-control-multi-label__responsive button[data-screen=desktop]:not(:hover){border-color:transparent!important}.ugb-base-control-multi-label__responsive button.is-active:not(:first-child){background:#ab5af1!important}.ugb-small-number-control .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.ugb-small-number-control input{width:80px}.ugb-social-url-text-control+.ugb-social-url-text-control{margin-top:-18px!important}.ugb-sort-control .ugb-sort-control__container{display:flex;flex-direction:row}.ugb-sort-control.ugb-sort-control--axis-y .ugb-sort-control__container{flex-direction:column;max-width:150px;margin:0 auto}.ugb-sort-control .ugb-sort-control__item{box-shadow:none}.ugb-sort-control__item{border-radius:4px;background:#fafafa;width:100%;text-align:center;padding:4px;border:1px solid #ddd;margin:2px;display:block;cursor:grab!important;box-shadow:0 5px 15px rgba(0,0,0,.05)}.ugb-sort-control__item:hover{background:#fff;box-shadow:inset 0 0 0 1px #ddd}.ugb-svg-icon-placeholder{line-height:1}.ugb-svg-icon-placeholder button{font-size:inherit;padding:0;color:inherit;outline:none!important;background:transparent!important;border:none!important;box-shadow:none!important;cursor:copy;display:inline-block;width:auto}.ugb-svg-icon-placeholder button svg{display:block}.ugb-svg-icon-placeholder__button{font-size:inherit!important;padding:inherit!important;display:flex!important;height:auto;overflow:visible}.ugb-svg-icon-placeholder__button:hover{color:inherit!important}.edit-post-sidebar .ugb-url-input-control__input input{width:100%;border-radius:4px!important;border:1px solid #8d96a0!important;flex:1!important}.ugb-url-input-popover{z-index:99989}.ugb-url-input-popover.is-from-top{margin-top:20px!important}.ugb-url-input-popover.is-from-bottom{margin-top:-20px!important}.ugb-url-input-popover .ugb-url-input-control__input input[type=text]{border-radius:4px;border:1px solid #8d96a0;flex:1}.ugb-url-input-popover .ugb-url-input-control__more-button{margin-left:5px}.ugb-url-input-popover .ugb-url-input-popover__input-wrapper{display:flex;align-items:center}.ugb-url-input-popover .ugb-url-input-control__icon{margin-right:10px}.ugb-url-input-popover.ugb--show-advanced .ugb-url-input-popover__input-wrapper{margin-bottom:16px}.ugb-url-input-popover .ugb-url-input-control__input.ugb-url-input-control__input--plain{flex:1;width:300px}.ugb-url-input-popover .ugb-url-input-control__input.ugb-url-input-control__input--plain .components-base-control__field{margin-bottom:0!important}.ugb-url-input-popover .ugb-url-input-control__more-button[aria-expanded=false].ugb--active:not(:hover){box-shadow:inset 0 0 0 1px #6c7781,inset 0 0 0 2px #fff}.stackable-components-toolbar{border-right:none!important}.stackable-components-toolbar .components-icon-button{justify-content:center}.stackable-components-toolbar .components-icon-button svg{margin:0!important}.components-stackable-highlight__popover .components-popover__content{overflow:hidden;padding:16px;width:280px}.ugb-component-inline-color-popover{padding:16px}.ugb-highlight-format__color-picker{margin-bottom:16px}.components-stackable-highlight-color__indicator{position:absolute;background:#000;height:3px;width:20px;left:auto;right:auto;top:50%;margin:9px 0 0}.ugb-advanced-toolbar-control .components-base-control__field{margin-bottom:24px}.ugb-bottom-separator .ugb-separator-wrapper,.ugb-top-separator .ugb-separator-wrapper{pointer-events:all}.ugb-panel-controls-separator{margin:0;background:#f0f3f5;text-transform:uppercase;font-size:8px;text-align:center;padding:14px 0;background:#fafafa;border-top:1px solid #f0f0f0;color:#00669b;color:var(--wp-admin-theme-color-darker-10,#00669b)}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet{display:block!important}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop.ugb-main-block,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile.ugb-main-block,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet.ugb-main-block{display:flex!important}.ugb-main-block,[class*=ugb-]+form[class*=-link],[class*=ugb-] form[class*=-link],form[class*=ugb-][class*=-link]{display:flex;justify-content:center;align-items:center}.ugb-main-block{margin-top:35px;margin-bottom:35px;padding:0}.ugb-main-block.alignfull{padding:0 35px}.ugb-block-content,.ugb-inner-block{margin:0;padding:0;width:100%;position:relative}.ugb--full-height{min-height:700px}.ugb--restrict-content-width .ugb-content-wrapper{max-width:var(--content-width);margin:0 auto}.ugb--shadow-0,.ugb-shadow-0{box-shadow:none!important}.ugb--shadow-1,.ugb-shadow-1{box-shadow:0 0 0 1px hsla(0,0%,47.1%,.1)!important}.ugb--shadow-2,.ugb-shadow-2{box-shadow:0 0 0 2px hsla(0,0%,47.1%,.1)!important}.ugb--shadow-3,.ugb-shadow-3{box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px rgba(176,181,193,.2)!important}.ugb--shadow-4,.ugb-shadow-4{box-shadow:0 2px 20px hsla(0,0%,60%,.2)!important}.ugb--shadow-5,.ugb-shadow-5{box-shadow:0 5px 30px -10px rgba(18,63,82,.3)!important}.ugb--shadow-6,.ugb-shadow-6{box-shadow:0 10px 30px rgba(0,0,0,.05)!important}.ugb--shadow-7,.ugb-shadow-7{box-shadow:7px 5px 30px rgba(72,73,121,.15)!important}.ugb--shadow-8,.ugb-shadow-8{box-shadow:0 10px 60px rgba(0,0,0,.1)!important}.ugb--shadow-9,.ugb-shadow-9{box-shadow:0 70px 130px -60px rgba(72,73,121,.38)!important}div[class^=wp-block-ugb-]{z-index:1}@supports (-webkit-touch-callout:inherit){[class*=ugb-]{background-attachment:scroll!important}}.ugb-block-content:after,.ugb-block-content:before{content:none!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background{margin-top:0;margin-bottom:0;padding-top:70px;padding-bottom:70px}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-full>.ugb-inner-block{width:100%}.ugb-bottom-block-separator-panel .ugb-design-control,.ugb-top-block-separator-panel .ugb-design-control{max-height:270px}.ugb-top-block-separator-panel .ugb-design-panel-item__image{transform:scaleY(-1)}.ugb-bottom-separator svg,.ugb-top-separator svg{transition:none!important}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title{margin:0 0 64px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title.ugb-block-title--with-subtitle{margin-bottom:16px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-description{margin:0 0 64px}.ugb-debugger-panel{padding:16px}.ugb-debugger-panel p{margin:0}.ugb-premium-notice-inspector-popup{margin-left:16px;margin-right:16px}.ugb-global-settings-color-picker__text-name{padding-top:0!important}.ugb-global-settings-color-picker__text-name .components-color-picker__controls{justify-content:space-between}.ugb-global-settings-color-picker__text-name .components-color-picker__inputs-wrapper{padding-top:0!important}.ugb-global-settings-color-picker__text-name input{width:211px}.ugb-global-settings-color-picker{margin-bottom:12px}.ugb-global-settings-color-picker__add-icon{min-width:30px!important;width:30px;height:30px;border-radius:50%}.ugb-global-settings-color-picker__add-icon svg{width:20px}.ugb-global-settings-color-picker__title{margin:0 0 1em!important}.ugb-global-settings-color-picker__reset-button{width:-webkit-max-content;width:max-content;margin-right:0!important;margin:auto auto 12px}.ugb-global-settings__color-picker-disabled-color{pointer-events:none}.ugb-global-settings__color-picker-disabled-color .components-circular-option-picker__option{display:flex;justify-content:center}.ugb-global-settings__color-picker-disabled-color .components-circular-option-picker__option svg{width:12px}.ugb-global-settings-typography-control>.components-base-control__field{margin-bottom:16px}.ugb-global-settings-typography-control>.components-base-control__field>.components-base-control__label{min-height:25px;width:calc(100% - 88px);margin-bottom:0!important;pointer-events:none}.ugb-global-settings-typography-control.ugb-global-settings-typography-control--with-description>.components-base-control__field{margin-bottom:32px}.ugb-global-typography-preview{position:relative}.ugb-global-typography-preview .block-editor-block-list__block,.ugb-global-typography-preview .block-editor-block-list__layout,.ugb-global-typography-preview .editor-styles-wrapper{margin:0!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;background:transparent!important}.ugb-global-typography-preview .block-editor-block-list__block:after,.ugb-global-typography-preview .block-editor-block-list__block:before,.ugb-global-typography-preview .block-editor-block-list__layout:after,.ugb-global-typography-preview .block-editor-block-list__layout:before,.ugb-global-typography-preview .editor-styles-wrapper:after,.ugb-global-typography-preview .editor-styles-wrapper:before{display:none!important}.ugb-global-typography-preview__label{margin:0!important;padding:0!important;line-height:1.4!important}.ugb-global-typography-preview__description{margin:0!important;padding:0!important;font-size:12px!important;position:absolute;top:100%;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ugb-deprecated-tester .ugb-deprecated-tester__load-button{display:flex;align-items:center;transition:all .3s ease-in-out;margin-top:5px}.ugb-deprecated-tester .ugb-deprecated-tester__load-button svg{margin-right:8px}.ugb-deprecated-tester.ugb-deprecated-tester--loading .ugb-deprecated-tester__load-button{opacity:.7}.ugb-deprecated-tester.ugb-deprecated-tester--loading .ugb-deprecated-tester__load-button svg{animation:deprecated-test-rotate 1s linear infinite}.ugb-deprecated-tester--row{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.ugb-deprecated-tester--row button{background:#fafafa;border-color:#ddd}.ugb-deprecated-tester--row.ugb--first{justify-content:flex-end}.ugb-deprecated-tester--row>:last-child{display:flex;justify-content:center;align-items:center}.ugb-deprecated-tester--row>:last-child button{display:inline-block;padding:4px;height:26px;width:26px;margin-left:8px}.ugb-deprecated-tester--row>:last-child svg{height:18px;width:18px}.ugb-deprecated-tester--row .ugb--green{color:#0da00d}.ugb-deprecated-tester--name{display:flex}.ugb-deprecated-tester--name button{padding:0;border:0!important;background:transparent!important;box-shadow:none!important}.ugb-deprecated-tester--name svg{display:inline-block;height:15px;width:15px;vertical-align:text-top;color:#ccc;margin-left:4px}.ugb-deprecated-tester--test-details{display:flex;justify-content:flex-start}.ugb-deprecated-tester--test-details .ugb--version{color:#777}.ugb-deprecated-tester--test-details .ugb--plan{background:#fb6874;color:#fff;padding:0 .5em;border-radius:3px;margin-left:.5em;font-size:.6em;text-transform:uppercase}.ugb-deprecated-tester--test-details .ugb--skipped-note{width:100%;font-style:italic}.ugb-deprecated-tester--test-details .components-icon-button{padding:2px;margin-left:4px}.ugb-deprecated-tester--test-details .components-icon-button svg{height:12px;width:12px}.ugb-deprecated-tester--test-details .components-clipboard-button{font-size:11px;margin-left:6px}.ugb-deprecated-tester--test-detail-wrapper{background:#fafafa;padding:6px;border:1px solid #ddd;border-radius:4px}.ugb-deprecated-tester--test-detail-wrapper>div>div{display:flex;flex-wrap:wrap}.ugb-deprecated-tester--test-detail-wrapper .ugb--failed,.ugb-deprecated-tester--test-detail-wrapper .ugb--passed,.ugb-deprecated-tester--test-detail-wrapper .ugb--skipped{padding:0 6px;border-radius:2px;display:inline-block;background:#a7e8a7;color:#0c7b0c;align-self:flex-end;margin:0 0 0 auto}.ugb-deprecated-tester--test-detail-wrapper .ugb--failed{background:#efd5d5;color:#a70d0d}.ugb-deprecated-tester--test-detail-wrapper .ugb--skipped{background:#eee;color:#666}@keyframes deprecated-test-rotate{0%{transform:rotate(0deg)}to{transform:rotate(-359deg)}}.ugb-html-validator .CodeMirror{height:300px}.ugb-html-validator .components-base-control__help{margin-top:0}.ugb-html-validator--invalid,.ugb-html-validator--valid{font-weight:700;text-transform:uppercase;color:#1fb51f}.ugb-html-validator--invalid{color:#e4174d}@media screen and (max-width:600px){.ugb-icon-list.ugb-icon-list--display-grid ul{grid-template-columns:1fr!important}.ugb-icon-list.ugb-icon-list ul{column-count:1!important}.ugb-main-block.alignfull{padding-right:17.5px;padding-left:17.5px}}@media screen and (min-width:1025px){.ugb--full-height{min-height:100vh}}@media screen and (max-width:768px){.ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr!important;grid-template-areas:inherit!important}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-columns:1fr!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:inherit!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit}#editor .ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-columns:1fr!important;grid-template-areas:inherit!important}#editor .ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.ugb-column{grid-area:inherit!important}#editor .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}#editor .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:1fr!important}#editor .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:inherit!important}#editor .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{grid-area:inherit}}@media screen and (min-width:768px) and (max-width:1025px){#editor .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout,.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr 1fr!important}}@media (min-width:600px){[data-type="ugb/column"].block-editor-block-contextual-toolbar{margin-bottom:0!important;margin-left:0!important}}@media screen and (min-width:960px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-center>.ugb-inner-block{max-width:var(--content-width)}}@media screen and (min-width:1280px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-wide>.ugb-inner-block{max-width:1200px}}
dist/editor_blocks.js CHANGED
@@ -1,2 +1,2 @@
1
- var editor_blocks=function(e){function t(t){for(var a,o,l=t[0],c=t[1],s=t[2],b=0,p=[];b<l.length;b++)o=l[b],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&p.push(i[o][0]),i[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,s||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,l=1;l<n.length;l++){var c=n[l];0!==i[c]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},i={0:0},r=[];function o(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var l=window.webpackJsonp_name_=window.webpackJsonp_name_||[],c=l.push.bind(l);l.push=t,l=l.slice();for(var s=0;s<l.length;s++)t(l[s]);var u=c;return r.push([383,1]),n()}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=stackable},function(e,t,n){"use strict";var a=n(1),i=[],r={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},o=function(e){return!e.match(/^(sans[-+]serif|serif|monospace|serif-alt)$/i)},l=function(e){if(!i.includes(e)){if(document&&o(e)){var t=document.createElement("link");t.setAttribute("href",function(e){var t=e.replace(/ /g,"+"),n=r[a.locale]?"&subset=".concat(r):"";return"https://fonts.googleapis.com/css?family=".concat(t,":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic").concat(n)}(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),document.querySelector("head").appendChild(t)}i.push(e)}},c=function(e){return o(e)?'"'.concat(e,'", Sans-serif'):e.match(/^serif$/i)?'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif':e.match(/^serif-alt$/i)?'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif':e.match(/^monospace$/i)?'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace':'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},s=function(e){Object.keys(e).filter(function(e){return e.match(/fontfamily/i)}).forEach(function(t){var n=e[t];n&&l(n)})},u=n(7),b=n(0);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(u.camelCase)(Object(b.sprintf)(e,t,n))},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return a.length?n.reduce(function(n,i){return m({},n,{},a.reduce(function(n,a,r){var o=m({},t);return void 0!==o.selector&&(o.selector=Object(b.sprintf)(o.selector,r+1)),n[Object(u.camelCase)(Object(b.sprintf)(e,i,a))]=o,n},{}))},{}):n.reduce(function(n,a,i){var r=m({},t);return void 0!==r.selector&&(r.selector=Object(b.sprintf)(r.selector,i+1)),n[Object(u.camelCase)(Object(b.sprintf)(e,a))]=r,n},{})},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(e,t,["","Tablet","Mobile"])},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Object(u.omit)(e,t.map(function(e){return Object(u.camelCase)(Object(b.sprintf)(n,e))}))},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.length?Object(u.pick)(e,t.map(function(e){return Object(u.camelCase)(Object(b.sprintf)(n,e))})):e},O=function(e){return Object.keys(h(e))};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(n,!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},f(e,{type:"string",default:""},["FontFamily","FontWeight","TextTransform"]),{},f(e,{type:"number",default:""},["LetterSpacing","FontSize","TabletFontSize","MobileFontSize","LineHeight","TabletLineHeight","MobileLineHeight"]),{},f(e,{type:"string",default:"px"},["FontSizeUnit","TabletFontSizeUnit","MobileFontSizeUnit"]),{},f(e,{type:"string",default:"em"},["LineHeightUnit","TabletLineHeightUnit","MobileLineHeightUnit"]))},k=j,C=function(e){return Object.keys(j(e))},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},r=pt(n,i,""),o=a.importantSize,l=void 0!==o&&o,s=a.important,p=void 0===s||s,m=a.inherit,g=void 0===m||m,d=a.inheritMax,f=void 0===d?50:d,h=a.inheritMin,v={},y=r("FontSize"),O=r("TabletFontSize"),w=r("MobileFontSize");if("tablet"!==t&&"mobile"!==t)v={fontFamily:""!==r("FontFamily")?c(r("FontFamily")):void 0,fontSize:""!==y?bt("".concat(y).concat(r("FontSizeUnit")||"px"),l):void 0,fontWeight:""!==r("FontWeight")?r("FontWeight"):void 0,textTransform:""!==r("TextTransform")?r("TextTransform"):void 0,letterSpacing:""!==r("LetterSpacing")?"".concat(r("LetterSpacing"),"px"):void 0,lineHeight:""!==r("LineHeight")?"".concat(r("LineHeight")).concat(r("LineHeightUnit")||"em"):void 0};else if("tablet"===t){if(v={lineHeight:""!==r("TabletLineHeight")?"".concat(r("TabletLineHeight")).concat(r("TabletLineHeightUnit")||"em"):void 0},g){var _=mt(y,{min:h,max:f});_&&(v.fontSize="".concat(_).concat(r("FontSizeUnit")||"px"))}O&&(v.fontSize=r("TabletFontSize","%s".concat(r("TabletFontSizeUnit")||"px")))}else{if(v={lineHeight:""!==r("MobileLineHeight")?"".concat(r("MobileLineHeight")).concat(r("MobileLineHeightUnit")||"em"):void 0},g){var j=mt(y,{min:h,max:f});j&&(v.fontSize="".concat(j).concat(r("FontSizeUnit")||"px"));var k=mt(O,{min:h,max:f});k?v.fontSize="".concat(k).concat(r("TabletFontSizeUnit")||"px"):(j||O)&&(v.fontSize=void 0)}w&&(v.fontSize=r("MobileFontSize","%s".concat(r("MobileFontSizeUnit")||"px")))}return p?ut(v):v},E=n(18),S=n(5);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={},P=function(){A=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(n,!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},function(e){var t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML='<div class="wp-block">'.concat(e.map(function(e){return"<".concat(e,"></").concat(e,">")}).join(),"</div>"),!document||!document.body)return{};document.body.appendChild(t);var n={};return e.forEach(function(e){var a=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(a))}),document.body.removeChild(t),n}(["h1","h2","h3","h4","h5","h6","p"]))};Object(S.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",function(e,t,n,a){return e[".ugb-default-font-size .wp-block ".concat(t)]=x("%s","desktop",a,{important:!0}),A={},e});var N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(A).length&&!t||P(),A[e]||A.p||21};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(E.a)(function(){P()});var F=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(n,!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},f(e,{type:"string",default:""},["BackgroundColorType","BackgroundColor","BackgroundColor2","BackgroundMediaId","BackgroundMediaUrl","TabletBackgroundMediaId","TabletBackgroundMediaUrl","MobileBackgroundMediaId","MobileBackgroundMediaUrl","BackgroundGradientBlendMode","BackgroundPosition","TabletBackgroundPosition","MobileBackgroundPosition","BackgroundRepeat","TabletBackgroundRepeat","MobileBackgroundRepeat","BackgroundSize","TabletBackgroundSize","MobileBackgroundSize","BackgroundImageBlendMode"]),{},f(e,{type:"number",default:""},["BackgroundColorOpacity","BackgroundTintStrength","BackgroundGradientDirection","BackgroundCustomSize","TabletBackgroundCustomSize","MobileBackgroundCustomSize","BackgroundGradientLocation1","BackgroundGradientLocation2"]),{},f(e,{type:"boolean",default:""},["FixedBackground"]),{},f(e,{type:"string",default:"%"},["BackgroundCustomSizeUnit","TabletBackgroundCustomSizeUnit","MobileBackgroundCustomSizeUnit"]))},D=F,I=function(e){return Object.keys(F(e))};function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(n,!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},r=pt(n,i),o=a.importantBackgroundColor,l=void 0!==o&&o,c=a.importantBackgroundPosition,s=void 0!==c&&c,p=a.importantBackgroundSize,m=void 0!==p&&p,g=a.importantBackgroundRepeat,d=void 0!==g&&g,f=r("BackgroundCustomSize")?r("BackgroundCustomSize")+(r("BackgroundCustomSizeUnit")||"%"):void 0,h=r("TabletBackgroundCustomSize")?r("TabletBackgroundCustomSize")+(r("TabletBackgroundCustomSizeUnit")||"%"):void 0,v=r("MobileBackgroundCustomSize")?r("MobileBackgroundCustomSize")+(r("MobileBackgroundCustomSizeUnit")||"%"):void 0,y=bt(r("BackgroundColor"),l);return r("BackgroundColorType")||void 0===n[i("BackgroundColorOpacity")]||""===n[i("BackgroundColorOpacity")]||r("BackgroundMediaURL")||r("TabletBackgroundMediaURL")||r("MobileBackgroundMediaURL")||(y=bt("".concat(nn(r("BackgroundColor")||"#ffffff",r("BackgroundColorOpacity")||0)),l)),"tablet"!==t&&"mobile"!==t?{backgroundColor:y,backgroundAttachment:r("FixedBackground")?"fixed":void 0,backgroundImage:r("BackgroundMediaURL","url(%s)"),backgroundPosition:bt(r("BackgroundPosition"),s),backgroundRepeat:bt(r("BackgroundRepeat"),d),backgroundSize:r("BackgroundSize")?bt("custom"!==r("BackgroundSize")?r("BackgroundSize"):f,m):void 0,backgroundBlendMode:r("BackgroundImageBlendMode")}:"tablet"===t?{backgroundImage:r("TabletBackgroundMediaURL","url(%s)"),backgroundPosition:bt(r("TabletBackgroundPosition"),s),backgroundRepeat:bt(r("TabletBackgroundRepeat"),d),backgroundSize:r("TabletBackgroundSize")?bt("custom"!==r("TabletBackgroundSize")?r("TabletBackgroundSize"):h,m):void 0}:{backgroundImage:r("MobileBackgroundMediaURL","url(%s)"),backgroundPosition:bt(r("MobileBackgroundPosition"),s),backgroundRepeat:bt(r("MobileBackgroundRepeat"),d),backgroundSize:r("MobileBackgroundSize")?bt("custom"!==r("MobileBackgroundSize")?r("MobileBackgroundSize"):v,m):void 0}},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},r=pt(n,i),o=a.importantBackgroundColor,l=void 0!==o&&o,c=parseInt(r("BackgroundTintStrength","",5)||0,10)/10,s="gradient"===r("BackgroundColorType"),p=nn(r("BackgroundColor2")||"#ffffff",0),m=nn(r("BackgroundColor")||"#ffffff",0),g="".concat(r("BackgroundGradientLocation1")||"0","%"),d="".concat(r("BackgroundGradientLocation2")||"100","%");return"tablet"!==t&&"mobile"!==t?{backgroundColor:bt(!s&&r("BackgroundColor")?r("BackgroundColor"):void 0,l),backgroundImage:bt(s?"linear-gradient(".concat(r("BackgroundGradientDirection","%sdeg","90deg"),", ").concat(r("BackgroundColor")||p," ").concat(g,", ").concat(r("BackgroundColor2")||m," ").concat(d,")"):void 0,l),opacity:r("BackgroundMediaURL")?c:void 0,mixBlendMode:s?r("BackgroundGradientBlendMode"):void 0}:"tablet"===t?{opacity:r("TabletBackgroundMediaURL")?c:void 0}:{opacity:r("MobileBackgroundMediaURL")?c:void 0}},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},a=pt(t,n);return"gradient"===a("BackgroundColorType")||a("BackgroundMediaUrl")||a("TabletBackgroundMediaUrl")||a("MobileBackgroundMediaUrl")},V=function(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return U(n={},".".concat(i),L({},H(a,"desktop",r,o))),U(n,".".concat(i,":before"),L({},W(a,"desktop",r,o))),U(n,"tablet",(U(e={},".".concat(i),L({},H(a,"tablet",r,o))),U(e,".".concat(i,":before"),L({},W(a,"tablet",r,o))),e)),U(n,"mobile",(U(t={},".".concat(i),L({},H(a,"mobile",r,o))),U(t,".".concat(i,":before"),L({},W(a,"mobile",r,o))),t)),n},q=H,K=n(8),Y=n.n(K),X=n(6),$=function(e,t){var n=pt(t.attributes,function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},""),a=n("BackgroundMediaUrl"),i=n("TabletBackgroundMediaUrl"),r=n("MobileBackgroundMediaUrl"),o=Y()(["ugb-video-background"],{"ugb--video-hide-tablet":i,"ugb--video-hide-mobile":r}),l=Y()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-mobile":r}),c=Y()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-tablet":!0});return wp.element.createElement(X.Fragment,null,Qt(a)&&wp.element.createElement("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),Qt(i)&&wp.element.createElement("video",{className:l,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:i}),Qt(r)&&wp.element.createElement("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:r}))};function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(n,!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selector,a=void 0===n?".ugb-img":n,i=t.exclude,r=void 0===i?[]:i;return v(Z({},f(e,{type:"string",default:"",source:"attribute",selector:a,attribute:"src"},["Url"]),{},f(e,{type:"string",default:"",source:"attribute",selector:a,attribute:"alt"},["Alt"]),{},f(e,{type:"string",default:""},["Shape","Size","BlendMode","BackgroundPosition"]),{},f(e,{type:"number",default:""},["Id","Width","Height","TabletWidth","MobileWidth","BorderRadius","Shadow"]),{},f(e,{type:"boolean",default:""},["ShapeStretch","ShapeFlipX","ShapeFlipY","Square","TabletSquare","MobileSquare"]),{},f(e,{type:"string",default:"large"},["Size"])),r,e)},te=ee,ne=n(4),ae=n.n(ne);function ie(){return(ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var re=ae.a.createElement("circle",{cx:50,cy:50,r:50}),oe=function(e){return ae.a.createElement("svg",ie({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),re)};function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ce=ae.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),se=function(e){return ae.a.createElement("svg",le({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),ce)};function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var be=ae.a.createElement("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"}),pe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object(X.renderToString)(e).replace(/viewbox/,"viewBox").replace(/preserveaspectratio/,"preserveAspectRatio");return t?n.replace(/#/g,"%23"):n};function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(n,!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe={circle:oe,square:se,blob1:function(e){return ae.a.createElement("svg",ue({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),be)}},he=function(e){var t=Object(S.applyFilters)("stackable.image.shape.svgs",fe);return t[e]?t[e]:null},ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},i=pt(n,a),r=i("Shape"),o=function(e,t){return i(t)&&i(e)?i(e,"%spx"):"auto"};return"tablet"!==t&&"mobile"!==t?{borderRadius:r?void 0:i("BorderRadius","%spx"),width:i("Width","%spx"),height:i("Width")?bt(o("Width","Square")):void 0}:"tablet"===t?{width:i("TabletWidth","%spx"),height:i("TabletWidth")?bt(o("TabletWidth","TabletSquare")):void 0}:{width:i("MobileWidth","%spx"),height:i("MobileWidth")?bt(o("MobileWidth","MobileSquare")):void 0}},ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},a=pt(t,n),i=a("Shape");if(!i)return{};var r=a("ShapeStretch"),o=a("ShapeFlipX"),l=a("ShapeFlipY"),c=he(i),s=wp.element.createElement(c,{preserveAspectRatio:!["","square"].includes(i)&&r?"none":void 0,transform:o||l?"scale(".concat(o?-1:1,",").concat(l?-1:1,")"):void 0}),p=btoa(pe(s));return{"-webkit-mask-image":"url('data:image/svg+xml;base64,".concat(p,"')"),"mask-image":"url('data:image/svg+xml;base64,".concat(p,"')")}},Oe=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.inherit,o=void 0===r||r,l=(de(e={},".".concat(n),ge({},ye(t,a,i))),de(e,"tabletOnly",de({},".".concat(n),ge({},ve(t,"tablet",a,i)))),de(e,"mobile",de({},".".concat(n),ge({},ve(t,"mobile",a,i)))),e);return o?l[".".concat(n)]=ge({},l[".".concat(n)],{},ve(t,"desktop",a,i)):l.desktopTablet=de({},".".concat(n),ge({},ve(t,"desktop",a,i))),l},we=n(13),_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||_e(e):null};window._stackableCachedImageData={};var ke=function(e,t){var n=t("core").getMedia,a=e?n(e):null;return a&&void 0!==a.id&&(window._stackableCachedImageData[a.id]=a),a},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=xe(e)||ke(e,we.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""},xe=function(e){return window._stackableCachedImageData[e]||null};function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(n,!0).forEach(function(t){Be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.exclude,a=void 0===n?[]:n;return v(Se({},f(e,{type:"string",default:""},["Url","BackgroundPosition","BackgroundRepeat","BackgroundSize"]),{},f(e,{type:"number",default:""},["Id","BackgroundCustomSize"]),{},f(e,{type:"string",default:"large"},["Size"]),{},f(e,{type:"string",default:"px"},["BackgroundCustomSizeUnit"])),a,e)},Ae=Te,Pe=function(e){return Object.keys(Te(e))};function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(n,!0).forEach(function(t){Re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},i=pt(n,a);return"tablet"!==t&&"mobile"!==t?{backgroundImage:i("Url","url(%s)"),backgroundPosition:bt(i("BackgroundPosition")),backgroundRepeat:bt(i("BackgroundRepeat")),backgroundSize:bt("custom"!==i("BackgroundSize")?i("BackgroundSize"):i("BackgroundCustomSize")?i("BackgroundCustomSize")+i("BackgroundCustomSizeUnit","%s","px"):void 0)}:{}},De=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Re(e={},".".concat(n),Me({},Fe(t,"desktop",a,i))),Re(e,"tablet",Re({},".".concat(n),Me({},Fe(t,"tablet",a,i)))),Re(e,"mobile",Re({},".".concat(n),Me({},Fe(t,"mobile",a,i)))),e};function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(n,!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selector,i=void 0===n?".ugb-button":n,r=t.defaultText,o=void 0===r?Object(b.__)("Button text",a.i18n):r,l=t.exclude,c=void 0===l?[]:l,s=t.include,u=void 0===s?[]:s;return y(v(ze({},k(e),{},f(e,{type:"string",source:"html",selector:"".concat(i," span"),default:o},["Text"]),{},f(e,{type:"string",source:"attribute",selector:i,attribute:"href",default:""},["Url"]),{},f(e,{type:"boolean",source:"attribute",selector:i,attribute:"target",default:""},["NewTab"]),{},f(e,{type:"string",default:""},["Design","Size","Icon","IconPosition","TextColor","BackgroundColorType","BackgroundColor","BackgroundColor2","HoverEffect","HoverTextColor","HoverBackgroundColor","HoverBackgroundColor2"]),{},f(e,{type:"number",default:""},["Opacity","HoverOpacity","PaddingTop","PaddingRight","PaddingBottom","PaddingLeft","BorderRadius","BorderWidth","Shadow","IconSize","IconSpacing","BackgroundGradientDirection","HoverBackgroundGradientDirection"]),{},f(e,{type:"boolean",default:""},["HoverGhostToNormal","NoFollow"])),c,e),u,e)},He=Ue,We=function(e){return Object.keys(Ue(e))},Ge=n(14),Ve=n.n(Ge);function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(n,!0).forEach(function(t){Ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xe=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=function(e){return Object(u.camelCase)(Object(b.sprintf)(t,e))},o=pt(a,r,""),l=[];l.push((Ye(e={},".".concat(n," .ugb-button--inner"),Ke({},x(t,"desktop",a))),Ye(e,"tablet",Ye({},".".concat(n," .ugb-button--inner"),Ke({},x(t,"tablet",a)))),Ye(e,"mobile",Ye({},".".concat(n," .ugb-button--inner"),Ke({},x(t,"mobile",a)))),e));var c=o("BackgroundColor2"),s=o("BackgroundColor"),p=!1;if(""===o("Design")||"basic"===o("Design")){var m;l.push((Ye(m={},".".concat(n),{backgroundColor:""!==o("BackgroundColor")?o("BackgroundColor"):void 0,backgroundImage:"gradient"===o("BackgroundColorType")?"linear-gradient(".concat(""!==a[r("BackgroundGradientDirection")]?o("BackgroundGradientDirection","%sdeg","90deg"):"90deg",", ").concat(o("BackgroundColor")||c,", ").concat(o("BackgroundColor2")||s,")"):void 0,paddingTop:""!==o("PaddingTop")?"".concat(o("PaddingTop"),"px"):void 0,paddingRight:""!==o("PaddingRight")?"".concat(o("PaddingRight"),"px"):void 0,paddingBottom:""!==o("PaddingBottom")?"".concat(o("PaddingBottom"),"px"):void 0,paddingLeft:""!==o("PaddingLeft")?"".concat(o("PaddingLeft"),"px"):void 0}),Ye(m,".".concat(n," .ugb-button--inner, .").concat(n," svg:not(.ugb-custom-icon)"),{color:bt(st(o("TextColor"),o("BackgroundColor")))}),Ye(m,".".concat(n,":hover .ugb-button--inner, .").concat(n,":hover svg:not(.ugb-custom-icon)"),{color:bt(st(o("HoverTextColor"),o("HoverBackgroundColor")))}),Ye(m,".".concat(n,":hover"),{backgroundColor:""!==o("HoverBackgroundColor")?o("HoverBackgroundColor"):void 0}),m)),p=""!==o("HoverBackgroundColor");var g="gradient"===o("BackgroundColorType")&&(o("HoverBackgroundColor")||o("HoverBackgroundColor2")||o("HoverBackgroundGradientDirection"));l.push(Ye({},".".concat(n,":before"),{content:g?'""':void 0,backgroundImage:g?"linear-gradient(".concat(o("HoverBackgroundGradientDirection","%sdeg")||o("BackgroundGradientDirection","%sdeg","90deg"),", ").concat(o("HoverBackgroundColor")||o("BackgroundColor")||c,", ").concat(o("HoverBackgroundColor2")||o("BackgroundColor2")||s,")"):void 0})),p=p||g||""!==o("HoverTextColor")}if("ghost"===o("Design")){var d,f;if(l.push((Ye(d={},".".concat(n),{borderColor:""!==o("BackgroundColor")?bt(o("BackgroundColor")):void 0,borderWidth:""!==o("BorderWidth")?"".concat(o("BorderWidth"),"px"):void 0,paddingTop:""!==o("PaddingTop")?"".concat(o("PaddingTop"),"px"):void 0,paddingRight:""!==o("PaddingRight")?"".concat(o("PaddingRight"),"px"):void 0,paddingBottom:""!==o("PaddingBottom")?"".concat(o("PaddingBottom"),"px"):void 0,paddingLeft:""!==o("PaddingLeft")?"".concat(o("PaddingLeft"),"px"):void 0}),Ye(d,".".concat(n," .ugb-button--inner"),{color:""!==o("BackgroundColor")?bt(o("BackgroundColor")):void 0}),Ye(d,".".concat(n,":hover"),{borderColor:""!==o("HoverBackgroundColor")?bt(o("HoverBackgroundColor")):void 0}),Ye(d,".".concat(n,":hover .ugb-button--inner"),{color:""!==o("HoverBackgroundColor")?bt(o("HoverBackgroundColor")):""!==o("BackgroundColor")?bt(o("BackgroundColor")):void 0}),d)),""!==o("Icon")||i)l.push((Ye(f={},".".concat(n,".ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)"),{color:""!==o("BackgroundColor")?o("BackgroundColor"):void 0}),Ye(f,".".concat(n,".ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)"),{color:""!==o("HoverBackgroundColor")?o("HoverBackgroundColor"):""!==o("BackgroundColor")?o("BackgroundColor"):void 0}),f));p=""!==o("HoverBackgroundColor");var h,v=o("HoverGhostToNormal");if(v)l.push((Ye(h={},".".concat(n,":before"),{content:'""',backgroundImage:"linear-gradient(".concat(o("HoverBackgroundGradientDirection","%sdeg","90deg"),", ").concat(o("HoverBackgroundColor")||o("BackgroundColor"),", ").concat(o("HoverBackgroundColor2")||o("HoverBackgroundColor")||o("BackgroundColor"),")"),top:""!==o("BorderWidth")?"-".concat(o("BorderWidth"),"px"):void 0,right:""!==o("BorderWidth")?"-".concat(o("BorderWidth"),"px"):void 0,bottom:""!==o("BorderWidth")?"-".concat(o("BorderWidth"),"px"):void 0,left:""!==o("BorderWidth")?"-".concat(o("BorderWidth"),"px"):void 0}),Ye(h,".".concat(n,":hover"),{backgroundColor:bt(""!==o("HoverBackgroundColor")?o("HoverBackgroundColor"):o("BackgroundColor"))}),Ye(h,".".concat(n,":hover .ugb-button--inner"),{color:bt(st(o("HoverTextColor"),o("HoverBackgroundColor")||o("BackgroundColor")))}),h)),(""!==o("Icon")||i)&&l.push(Ye({},".".concat(n,".ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)"),{color:bt(st(o("HoverTextColor"),o("HoverBackgroundColor")||o("BackgroundColor")))})),p=!0}if("plain"===o("Design")){var y,O;if(l.push((Ye(y={},".".concat(n," .ugb-button--inner"),{color:""!==o("BackgroundColor")?bt(o("BackgroundColor")):void 0}),Ye(y,".".concat(n,":hover .ugb-button--inner"),{color:""!==o("HoverBackgroundColor")?bt(o("HoverBackgroundColor")):void 0}),y)),""!==o("Icon")||i)l.push((Ye(O={},".".concat(n,".ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)"),{color:""!==o("BackgroundColor")?o("BackgroundColor"):void 0}),Ye(O,".".concat(n,".ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)"),{color:""!==o("HoverBackgroundColor")?o("HoverBackgroundColor"):void 0}),O));p=""!==o("HoverBackgroundColor")}if("link"!==o("Design")){var w,_=""!==a[r("IconSpacing")]&&void 0!==a[r("IconSpacing")]?"".concat(o("IconSpacing","%spx",16)):void 0,j=a[r("BorderRadius")];l.push((Ye(w={},".".concat(n),{opacity:""!==o("Opacity")?o("Opacity"):void 0,borderRadius:""!==j&&void 0!==j?bt("".concat(j,"px")):void 0}),Ye(w,".".concat(n,":before"),{borderRadius:""!==j&&void 0!==j?bt("".concat(j,"px")):void 0}),Ye(w,".".concat(n,":hover"),{opacity:""!==o("HoverOpacity")?o("HoverOpacity"):p?1:void 0}),Ye(w,".".concat(n,".ugb-button--has-icon.ugb-button--has-icon svg"),{marginLeft:(""!==o("Icon")||i)&&"right"===o("IconPosition")?_:void 0,marginRight:(""!==o("Icon")||i)&&"right"!==o("IconPosition")?_:void 0,width:""!==o("IconSize")||i?"".concat(o("IconSize"),"px"):void 0,height:""!==o("IconSize")||i?"".concat(o("IconSize"),"px"):void 0}),w))}return Ve.a.all(l)},$e=n(59),Je=n.n($e),Ze=n(27),Qe=n.n(Ze);function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(n,!0).forEach(function(t){nt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var it=function(e){try{var t=Object(S.applyFilters)("stackable.util.is-dark-color",e);if(!t.match(/^#/)){if(!(t.indexOf("var(")>-1))return Je()(t);var n=t.match(/--(.*?(?=,))/g);t=n?window.getComputedStyle(document.documentElement).getPropertyValue(n[0])||"#fff":window.getComputedStyle(document.documentElement).getPropertyValue(t.replace("var(","").replace(")",""))||"#fff"}if(t.match(/^rgb/)){var a=Qe()(t);a.splice(3,1),t=function(e,t,n){return"#"+[e,t,n].map(function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}).join("")}.apply(void 0,at(a))}return 3===(t=t.replace(/#/g,"")).length&&(t=t.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")),Je()("#".concat(t))}catch(e){return!1}},rt=function(e){return"left"===e||"flex-start"===e?0:"auto"},ot=function(e){return"right"===e||"flex-end"===e?0:"auto"},lt=function(e){return"left"===e?"flex-start":"right"===e?"flex-end":e},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=""!==e?e:void 0;return!n&&t&&it(t)?"#ffffff":n},st=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#ffffff",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#222222",i=""!==e?e:void 0;return!i&&t?it(t)?n:a:i},ut=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(function(n,a){return tt({},n,nt({},a,bt(e[a],t)))},{})},bt=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?"".concat(e," !important"):e},pt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,o=null!==t?t:function(e){return Object(u.lowerFirst)(e)},l=void 0===e[o(a)]?"":e[o(a)];return""!==l?i?Object(b.sprintf)(i.replace(/%$/,"%%"),l):l:r}},mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,a=void 0===n?Number.NEGATIVE_INFINITY:n,i=t.max,r=void 0===i?Number.POSITIVE_INFINITY:i;if(""!==e){var o=Object(u.clamp)(e,parseFloat(a),parseFloat(r));if(!isNaN(o))return parseFloat(o)!==parseFloat(e)?o:void 0}},gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"marginBottom",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"%spx",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o="boolean"==typeof r?{important:r}:r,l=o.important,c=void 0!==l&&l,s=o.inherit,u=void 0===s||s,p=o.inheritTabletMax,m=o.inheritTabletMin,g=o.inheritMobileMax,d=o.inheritMobileMin,f=pt(i);if(u){var h,v=f(Object(b.sprintf)(t,""),a),y=f(Object(b.sprintf)(t,"Tablet"),a),O=f(Object(b.sprintf)(t,"Mobile"),a),w=mt(f(Object(b.sprintf)(t,"")),{min:m,max:p}),_=mt(f(Object(b.sprintf)(t,"")),{min:d,max:g});return[(h={},nt(h,e,nt({},n,bt(v,c))),nt(h,"tabletOnly",nt({},e,nt({},n,bt(y||w&&Object(b.sprintf)(a,w),c)))),nt(h,"mobile",nt({},e,nt({},n,bt(O||_&&Object(b.sprintf)(a,_),c)))),h)]}return[{desktopOnly:nt({},e,nt({},n,bt(f(Object(b.sprintf)(t,""),a),c))),tabletOnly:nt({},e,nt({},n,bt(f(Object(b.sprintf)(t,"Tablet"),a),c))),mobile:nt({},e,nt({},n,bt(f(Object(b.sprintf)(t,"Mobile"),a),c)))}]},dt=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=pt(a),r=i("contentAlign"),o=i("TabletContentAlign"),l=i("MobileContentAlign"),c=i(Object(b.sprintf)(n,"")),s=i(Object(b.sprintf)(n,"Tablet")),u=i(Object(b.sprintf)(n,"Mobile"));return[(t={},nt(t,e,ut({marginLeft:c||r?rt(c||r):void 0,marginRight:c||r?ot(c||r):void 0})),nt(t,"tablet",nt({},e,ut({marginLeft:s||o?rt(s||o):void 0,marginRight:s||o?ot(s||o):void 0}))),nt(t,"mobile",nt({},e,ut({marginLeft:u||l?rt(u||l):void 0,marginRight:u||l?ot(u||l):void 0}))),t)]};function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(n,!0).forEach(function(t){vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selector,a=void 0===n?".ugb-button-%s":n,i=t.exclude,r=void 0===i?[]:i,o=t.include,l=void 0===o?[]:o,c=Object.keys(Ct).reduce(function(n,i){return ht({},n,{},f(e,{type:"string",source:"attribute",selector:Object(b.sprintf)(a,i),attribute:"href",default:t["".concat(i,"Default")]?t["".concat(i,"Default")]:""},["".concat(Object(u.upperFirst)(i),"Url")]))},{});return y(v(ht({},He(e,{exclude:["Text","Url","NoFollow","Icon","IconPosition","NewTab"]}),{},f(e,{type:"boolean",default:""},["NewTab"]),{},f(e,{type:"boolean",default:!0},["UseSocialColors"]),{},c),r,e),l,e)},Ot=yt;function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(n,!0).forEach(function(t){jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){return Object(u.camelCase)(Object(b.sprintf)(n,e))},o=pt(i,r,""),l=[];if(l.push(_t({},Xe(n,a,i,!0))),!o("UseSocialColors"))return Ve.a.all(l);""!==o("Design")&&"basic"!==o("Design")||l.push((jt(e={},".".concat(a),{backgroundColor:void 0,backgroundImage:void 0}),jt(e,".".concat(a," .ugb-button--inner, .").concat(a," svg"),{color:void 0}),jt(e,".".concat(a,":hover .ugb-button--inner, .").concat(a,":hover svg"),{color:void 0}),jt(e,".".concat(a,":hover"),{backgroundColor:void 0}),jt(e,".".concat(a,":before"),{content:void 0,backgroundImage:void 0}),e));if("ghost"===o("Design")){var c;l.push((jt(c={},".".concat(a),{borderColor:void 0}),jt(c,".".concat(a," .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon svg"),{color:void 0}),jt(c,".".concat(a,":hover"),{borderColor:void 0}),jt(c,".".concat(a,":hover .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon:hover svg"),{color:void 0}),c));var s,p=o("HoverGhostToNormal");if(p)l.push((jt(s={},".".concat(a,":before"),{content:void 0,backgroundImage:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}),jt(s,".".concat(a,":hover .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon:hover svg"),{color:void 0}),s))}"plain"===o("Design")&&l.push((jt(t={},".".concat(a," .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon svg"),{color:void 0}),jt(t,".".concat(a,":hover .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon:hover svg"),{color:void 0}),t));return Ve.a.all(l)},Ct={facebook:{label:Object(b.__)("Facebook",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg>'},twitter:{label:Object(b.__)("Twitter",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>'},instagram:{label:Object(b.__)("Instagram",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>'},pinterest:{label:Object(b.__)("Pinterest",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:Object(b.__)("LinkedIn",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg>'},youtube:{label:Object(b.__)("YouTube",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></svg>'},email:{label:Object(b.__)("Email",a.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}},xt=n(17);function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(n,!0).forEach(function(t){Bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tt=["uniqueClass"],At={};function Pt(e){return At[e.name]||(At[e.name]=Object(xt.createBlock)(e.name).attributes),Object.keys(At[e.name]).every(function(t){return!!Tt.includes(t)||At[e.name][t]===e.attributes[t]})}var Nt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(we.select)("core/block-editor"),i=a.getBlockName,r=a.getSelectedBlockClientId,o=a.getBlockAttributes,l=a.hasMultiSelection,c=a.getMultiSelectedBlockClientIds,b=Object(we.dispatch)("core/block-editor"),p=b.updateBlockAttributes,m=Object(we.select)("core/blocks"),g=m.getBlockType;if(n||!l()){var d=n||r();if(d){var f=o(d),h=i(d).replace(/^\w+\//g,""),v=g(i(d)).attributes,y=Object.keys(v).reduce(function(e,t){return St({},e,Bt({},t,v[t]?v[t].default:""))},{}),O=Object(S.applyFilters)("stackable.".concat(h,".design.filtered-block-attributes"),St({},y,{},t),f),w=Object(S.applyFilters)("stackable.".concat(h,".design.no-text-attributes"),O,f);s(w),p(d,Object(u.omit)(w,["uniqueClass"]))}}else c().forEach(function(n){e(t,n)})};function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(X.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),a=Mt(n,2),i=a[0],r=a[1],o=function(t){try{var n=t instanceof Function?t(i):t;r(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}};return[i,o]},Ft=function(){return void 0!==xt.registerBlockCollection},Dt=function(){return Ft()};function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(n,!0).forEach(function(t){Lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selector,a=void 0===n?".ugb-icon":n,i=t.defaultIcon,r=void 0===i?"fas-cogs":i,o=t.exclude,l=void 0===o?[]:o,c=t.include,s=void 0===c?[]:c;return y(v(zt({},f(e,{type:"string",source:"html",selector:"".concat(a),default:r},["Icon"]),{},f(e,{type:"string",default:""},["Design","ColorType","Color","Color2","BackgroundColorType","BackgroundColor","BackgroundColor2","BackgroundShape","BackgroundShapeColor","Color3","Color4","Color5","Color5","Color6","Color7","Color8","Color9","Color10"]),{},f(e,{type:"number",default:""},["ColorGradientDirection","OutlineWidth","BackgroundColorGradientDirection","Size","TabletSize","MobileSize","BorderRadius","Shadow","Opacity","Padding","Rotation","BackgroundShapeOpacity","BackgroundShapeSize","BackgroundShapeOffsetHorizontal","BackgroundShapeOffsetVertical","MultiOpacity1","MultiOpacity2","MultiOpacity3","MultiOpacity4","MultiOpacity5","MultiOpacity6","MultiOpacity7","MultiOpacity8","MultiOpacity9","MultiOpacity10"]),{},f(e,{type:"boolean",default:""},["ShowBackgroundShape"])),l,e),s,e)},Ht=Ut,Wt=function(e){return Object.keys(Ut(e))};function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(e){return Object(u.camelCase)(Object(b.sprintf)(t,e))},r=pt(a,i),o=[],l=mt(r("Size"),{max:200}),c=mt(r("Size"),{max:200});return o.push((Gt(e={},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg"),{width:bt(r("Size","%spx")),height:bt(r("Size","%spx"))}),Gt(e,"tabletOnly",Gt({},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg"),{width:bt(r("TabletSize","%spx")||l&&"".concat(l,"px")),height:bt(r("TabletSize","%spx")||c&&"".concat(c,"px"))})),Gt(e,"mobile",Gt({},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg"),{width:bt(r("MobileSize","%spx")||l&&"".concat(l,"px")),height:bt(r("MobileSize","%spx")||c&&"".concat(c,"px"))})),Gt(e,".".concat(n," .ugb-icon-inner-svg"),{color:bt(r("Color")),transform:bt(r("Rotation","rotate(%sdeg)"))}),Gt(e,".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg *"),{color:bt(r("Color")),fill:bt(r("Color"))}),Gt(e,".".concat(n),{opacity:bt(r("Opacity"))}),e)),"shaped"!==r("Design")&&"outlined"!==r("Design")||o.push(Gt({},".".concat(n," .ugb-icon__design-wrapper"),{borderRadius:bt(r("BorderRadius","%s%","100%")),padding:bt(r("Padding","%spx"))})),"shaped"===r("Design")&&o.push(Gt({},".".concat(n," .ugb-icon__design-wrapper"),{background:bt(r("BackgroundColor"))})),"outlined"===r("Design")&&o.push(Gt({},".".concat(n," .ugb-icon__design-wrapper"),{borderColor:bt(r("BackgroundColor")),borderWidth:bt(r("OutlineWidth","%spx"))})),Ve.a.all(Object(S.applyFilters)("stackable.icon-style-set.styles",o,r,n,a))},qt=function(e){return"string"!=typeof e?0:Object(u.range)(10).reduce(function(t,n){var a=n+1;return new RegExp("(<(circle|ellipse|line|polygon|polyline|rect|shape|path)[^>]*(/>|>[sS]*?</\\w+>)[ \t\r\n\v\f]*){".concat(a,"}"),"gm").test(e)?a:t},0)},Kt=function(e,t){var n=Yt(e,t);return n?n.html[0]:""},Yt=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},Xt=function(){return!!window.FontAwesome},$t=function(){return window.FontAwesome?Promise.resolve(!0):new Promise(function(e,t){var n=240,a=setInterval(function(){window.FontAwesome?(clearInterval(a),e(!0)):n--<0&&(clearInterval(a),t(!1))},250)})},Jt=function(e,t){var n=Yt(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var i=240,r=setInterval(function(){var o=Yt(e,t);window.FontAwesome?(clearInterval(r),n(o)):i--<0&&(clearInterval(r),a(!1))},250)})};n(24),n(417);n.d(t,"lb",function(){return Zt}),n.d(t,"rb",function(){return Qt}),n.d(t,"W",function(){return en}),n.d(t,"K",function(){return tn}),n.d(t,"Y",function(){return nn}),n.d(t,"hb",function(){return an}),n.d(t,"h",function(){return rn}),n.d(t,"kb",function(){return on}),n.d(t,"U",function(){return cn}),n.d(t,"nb",function(){return sn}),n.d(t,"ab",function(){return bn}),n.d(t,"mb",function(){return pn}),n.d(t,"ib",function(){return mn}),n.d(t,"db",function(){return l}),n.d(t,"R",function(){return c}),n.d(t,"eb",function(){return s}),n.d(t,"P",function(){return d}),n.d(t,"i",function(){return f}),n.d(t,"B",function(){return h}),n.d(t,"A",function(){return O}),n.d(t,"H",function(){return k}),n.d(t,"I",function(){return x}),n.d(t,"G",function(){return C}),n.d(t,"Q",function(){return N}),n.d(t,"k",function(){return D}),n.d(t,"j",function(){return I}),n.d(t,"n",function(){return q}),n.d(t,"l",function(){return W}),n.d(t,"m",function(){return V}),n.d(t,"X",function(){return G}),n.d(t,"J",function(){return $}),n.d(t,"u",function(){return te}),n.d(t,"z",function(){return Oe}),n.d(t,"y",function(){return ye}),n.d(t,"V",function(){return he}),n.d(t,"S",function(){return je}),n.d(t,"f",function(){return ke}),n.d(t,"T",function(){return Ce}),n.d(t,"w",function(){return Ae}),n.d(t,"v",function(){return Pe}),n.d(t,"x",function(){return De}),n.d(t,"p",function(){return He}),n.d(t,"o",function(){return We}),n.d(t,"q",function(){return Xe}),n.d(t,"Z",function(){return it}),n.d(t,"fb",function(){return rt}),n.d(t,"gb",function(){return ot}),n.d(t,"cb",function(){return lt}),n.d(t,"tb",function(){return ct}),n.d(t,"ub",function(){return st}),n.d(t,"d",function(){return ut}),n.d(t,"c",function(){return bt}),n.d(t,"b",function(){return pt}),n.d(t,"g",function(){return mt}),n.d(t,"D",function(){return gt}),n.d(t,"C",function(){return dt}),n.d(t,"E",function(){return Ot}),n.d(t,"F",function(){return kt}),n.d(t,"a",function(){return Ct}),n.d(t,"bb",function(){return Pt}),n.d(t,"e",function(){return Nt}),n.d(t,"qb",function(){return pe}),n.d(t,"sb",function(){return Rt}),n.d(t,"ob",function(){return Ft}),n.d(t,"pb",function(){return Dt}),n.d(t,"s",function(){return Ht}),n.d(t,"r",function(){return Wt}),n.d(t,"t",function(){return Vt}),n.d(t,"jb",function(){return qt}),n.d(t,"M",function(){return Kt}),n.d(t,"O",function(){return Xt}),n.d(t,"L",function(){return $t}),n.d(t,"N",function(){return Jt});var Zt=function(e,t){return Array.from({length:t-e},function(t,n){return n+e})},Qt=function(e){return e.match(/(mp4|webm|ogg)$/i)},en=function(e){var t="";return(t=(e.match(/youtube\.com\/watch\?v=([^\&\?\/]+)/i)||[])[1])||(t=(e.match(/youtube\.com\/embed\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtube\.com\/v\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtu\.be\/([^\&\?\/]+)/i)||[])[1]),t?{type:"youtube",id:t}:((t=(e.match(/vimeo\.com\/(\w*\/)*(\d+)/i)||[])[2])||(t=(e.match(/^\d+$/i)||[])[0]),t?{type:"vimeo",id:t}:{type:"youtube",id:e})},tn=function e(t){return"short"===t?Object(b.__)("Description for this block. You can use this space for describing your block.",a.i18n):"medium"===t?"".concat(e()," ").concat(e("short")):"long"===t?"".concat(e("medium")," ").concat(e()," ").concat(e("short")):Object(b.__)("Description for this block. Use this space for describing your block. Any text will do.",a.i18n)},nn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(S.applyFilters)("stackable.util.hex-to-rgba",null,e,t);if(n)return n;var a=Object(S.applyFilters)("stackable.util.hex-to-rgba.hex",e,t);if(a.indexOf("var(")>-1){var i=a.match(/--(.*?(?=,))/g);a=i?window.getComputedStyle(document.documentElement).getPropertyValue(i[0])||"#fff":window.getComputedStyle(document.documentElement).getPropertyValue(a.replace("var(","").replace(")",""))||"#fff"}(a=a.replace(/#/,"")).length<=4&&(a=a.replace(/#?(.)(.)(.)/,"$1$1$2$2$3$3"));var r=Qe()("#".concat(a,"ff"));return r[3]=null!==t?t:1,"rgba(".concat(r.join(", "),")")},an=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.replace(/\/\*.*?\*\//g,"").replace(/\n\s*\n/g,"").replace(/[\n\r \t]/g," ").replace(/ +/g," ").replace(/ ?([,:;{}]) ?/g,"$1").replace(/[^\}\{]+\{\}/g,"").replace(/[^\}\{]+\{\}/g,"").replace(/;}/g,"}").trim();return t?n.replace(/\s?\!important/g,"").replace(/([;\}])/g," !important$1").replace(/\} !important\}/g,"}}").trim():n},rn=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(e||"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/(.*)?\n/g,"").replace(/([^}]+)({)/g,function(e,i,r){if(i.match(/@\w+/g))return i.replace(/(@\w+[^{]+{\s*)([^{]+)/g,function(e,a,i){var o=on(i,t,n);return"".concat(a," ").concat(o," ").concat(r)});var o=on(i,t,n);return(a?"#editor ":"")+"".concat(o," ").concat(r)}).trim()},on=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e.trim().replace(/[\n\s\t]+/g," ").split(",").map(function(e){var i="";return i=n&&t?e.includes(n)?e:n&&!t?".".concat(n," ").concat(e.trim()):".".concat(n," ").concat(e.trim()).replace(new RegExp("(.".concat(n,") (.").concat(t,"(#|:|\\[|\\.|\\s|$))"),"g"),"$1$2"):e,a?"".concat(a," ").concat(i):i}).join(", ")},ln="desktop",cn=function(){return ln},sn=function(e){return ln=e},un=!1,bn=function(){return un},pn=function(e){return un=e},mn=function(e,t,n){return e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e}},function(e,t,n){"use strict";var a=n(22),i=n(2),r=n(7),o=n(8),l=n.n(o),c=n(6),s=n(0);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(n,!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){var t=e.setAttributes,n=function(t){return Object(r.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.blockAttributes[n(t)];return 0===i?i:i||a},o=Object.keys(i.a).reduce(function(e,i){var o;return p({},e,(m(o={},"".concat(i,"Url"),a("".concat(i,"Url"))),m(o,"onChange".concat(Object(r.upperFirst)(i),"Url"),function(e){return t(m({},n("".concat(i,"Url")),e))}),o))},{});return wp.element.createElement(j,u({design:a("Design",e.designDefault),size:a("Size","normal"),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),useSocialColors:a("UseSocialColors"),newTab:a("NewTab"),onChangeNewTab:function(e){return t(m({},n("NewTab"),e))},isSelected:e.isSelected},o,e))};g.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(g.Content=function(e){var t=function(t){return Object(r.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.blockAttributes[t(n)];return 0===i?i:i||a},a=Object.keys(i.a).reduce(function(e,t){return p({},e,m({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement(j.Content,u({design:n("Design",e.designDefault),size:n("Size","normal"),newTab:n("NewTab"),hoverEffect:n("HoverEffect"),useSocialColors:n("UseSocialColors"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow")},a,e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};var d=g;function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var O=function(e){return wp.element.createElement(c.Fragment,null,Object.keys(i.a).map(function(t){var n=l()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return(!0===e["show".concat(Object(r.upperFirst)(t))]||e["".concat(t,"Url")]&&!1!==e["show".concat(Object(r.upperFirst)(t))])&&wp.element.createElement(a.c,y({key:t,iconButton:!0,className:n,rel:"noopener noreferrer nofollow",icon:i.a[t].icon,url:e["".concat(t,"Url")],onChangeUrl:function(n){var a=n;"email"===t&&a.match(/^[^:]+@./)&&(a="mailto:".concat(a)),e["onChange".concat(Object(r.upperFirst)(t),"Url")](a)},onChangeNoFollow:!1,disableSuggestions:!0},e))}))},w=Object.keys(i.a).reduce(function(e,t){var n;return h({},e,(v(n={},"".concat(t,"Url"),""),v(n,"show".concat(Object(r.upperFirst)(t)),null),n))},{});O.defaultProps=h({useSocialColors:!0},w),O.Content=function(e){return wp.element.createElement(c.Fragment,null,Object.keys(i.a).map(function(t){var n=l()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return!1!==e["show".concat(Object(r.upperFirst)(t))]&&wp.element.createElement(a.c.Content,y({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:i.a[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var _=Object.keys(i.a).reduce(function(e,t){var n;return h({},e,(v(n={},"".concat(t,"Url"),""),v(n,"show".concat(Object(r.upperFirst)(t)),null),n))},{});O.Content.defaultProps=h({useSocialColors:!0},_);var j=O,k=n(4),C=n.n(k);function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var E=C.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),S=C.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),B=C.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),T=function(e){return C.a.createElement("svg",x({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),E,S,B)},A=n(11),P=n(9);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(n,!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=function(e){var t=e.imageID,n=e.imageURL,a=e.onRemove,i=e.className,r=e.allowedTypes,o=e.render,c=e.hasRemove,s=e.style,u=l()([i,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),b=M({},s,{backgroundImage:n&&!o?"url(".concat(n,")"):void 0});return wp.element.createElement(P.MediaUpload,{onSelect:function(t){var n=t.url,a=t.width,i=t.height,r=e.imageSize||"full";t.sizes&&t.sizes[r]&&(n=t.sizes[r].url,a=t.sizes[r].width,i=t.sizes[r].height),e.onChange(M({},t,{url:n,width:a,height:i}))},allowedTypes:r,value:t,render:function(e){return n&&o?wp.element.createElement("div",{className:u,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:b,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&c&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(A.Dashicon,{icon:"no"})),o):wp.element.createElement("div",{className:u,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:b,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&c&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(A.Dashicon,{icon:"no"})),!n&&wp.element.createElement(T,null))}})};F.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};var D=F,I=n(1);function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var L=function(e){return wp.element.createElement(A.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(P.URLInput,z({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(r.omit)(e,["label","help"]))))};L.defaultProps={label:Object(s.__)("URL",I.i18n),help:null,value:"",onChange:function(){}};var U=L,H=n(418),W=[{id:"opensInNewTab",title:Object(s.__)("Opens in new tab",I.i18n)},{id:"noFollowLink",title:Object(s.__)("Nofollow link",I.i18n)}],G=function(e){var t=e.value,n={url:t,opensInNewTab:e.newTab,noFollowLink:e.noFollow};if(!e.onChange&&!e.onChangeNewTab&&!e.onChangeNoFollow)return null;var a=l()(["ugb-url-input-popover"]),i=W.filter(function(t){switch(t.id){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;default:return!0}});return wp.element.createElement(A.Popover,{className:a,focusOnMount:!1,position:e.position},wp.element.createElement(P.__experimentalLinkControl,{value:n,settings:i,showSuggestions:!e.disableSuggestions,onChange:function(t){var a={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow},i=Object(r.omitBy)(Object(r.omit)(t,"id","title","type"),function(e,t){return n[t]===e});Object(r.keys)(i).map(function(e){return a[e](i[e])})}},wp.element.createElement("form",null,wp.element.createElement("input",{placeholder:Object(s.__)("Search or type url",I.i18n),value:t}),wp.element.createElement(A.Button,{icon:H.a,type:"submit"}))))};G.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,onChangeNewTab:null,onChangeNoFollow:null};var V=G,q=n(12),K=n(5);function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J=Object(s.__)("(current %s: %s)",I.i18n),Z=Object(q.compose)([P.withColorContext,Object(q.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.disableCustomColors,n=e.label,a=e.onChange,i=e.value,r=e.className,o=void 0===r?"":r,u=e.colors.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(n,!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{name:e.name||e.fallback||e.color||Object(s.__)("Untitled Color",I.i18n)})}),b=Object(P.getColorObjectByColorValue)(u,i),p=b&&b.name,m=Object(s.sprintf)(J,n.toLowerCase(),p||i),g=wp.element.createElement(c.Fragment,null,n,i&&wp.element.createElement(A.ColorIndicator,{colorValue:i,"aria-label":m}));return wp.element.createElement(A.BaseControl,{className:l()([o,"editor-color-palette-control"]),id:"editor-color-palette-control",label:g},wp.element.createElement(A.ColorPalette,Y({className:"editor-color-palette-control__color-palette",value:i,onChange:function(e){var t=Object(P.getColorObjectByColorValue)(u,e);a(Object(K.applyFilters)("stackable.color-palette-control.change",e,t))}},{colors:u,disableCustomColors:t})))}),Q=n(10);function ee(){return(ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var te=function(e){return wp.element.createElement(A.SelectControl,ee({},e,{options:[{value:"",label:Object(s.__)("None",I.i18n)},{value:"normal",label:Object(s.__)("Normal",I.i18n)},{value:"multiply",label:Object(s.__)("Multiply",I.i18n)},{value:"screen",label:Object(s.__)("Screen",I.i18n)},{value:"overlay",label:Object(s.__)("Overlay",I.i18n)},{value:"darken",label:Object(s.__)("Darken",I.i18n)},{value:"lighten",label:Object(s.__)("Lighten",I.i18n)},{value:"color-dodge",label:Object(s.__)("Color Dodge",I.i18n)},{value:"color-burn",label:Object(s.__)("Color Burn",I.i18n)},{value:"hard-light",label:Object(s.__)("Hard Light",I.i18n)},{value:"soft-light",label:Object(s.__)("Soft Light",I.i18n)},{value:"difference",label:Object(s.__)("Difference",I.i18n)},{value:"exclusion",label:Object(s.__)("Exclusion",I.i18n)},{value:"hue",label:Object(s.__)("Hue",I.i18n)},{value:"saturation",label:Object(s.__)("Saturation",I.i18n)},{value:"color",label:Object(s.__)("Color",I.i18n)},{value:"luminosity",label:Object(s.__)("Luminosity",I.i18n)},{value:"initial",label:Object(s.__)("Initial",I.i18n)},{value:"inherit",label:Object(s.__)("Inherit",I.i18n)},{value:"unset",label:Object(s.__)("Unset",I.i18n)}]}))};te.defaultProps={label:Object(s.__)("Mix Blend Mode",I.i18n),help:Object(s.__)("Not supported in all browsers.",I.i18n)};var ne=Object(q.compose)(Object(Q.e)("background-blend-mode"))(te);function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ie=C.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),re=C.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),oe=C.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),le=function(e){return C.a.createElement("svg",ae({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),ie,re,oe)},ce=function(e){var t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=function(){e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return wp.element.createElement("div",{className:"ugb-image-control"},wp.element.createElement(A.BaseControl,{help:e.help},wp.element.createElement(Qe,{label:e.label,screens:e.screens}),wp.element.createElement(P.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:function(a){return wp.element.createElement(c.Fragment,null,e.imageURL&&wp.element.createElement("div",{className:"ugb-image-preview-wrapper"},wp.element.createElement("button",{className:"ugb-image-preview-remove",onClick:n},wp.element.createElement(A.Dashicon,{icon:"no"})),"video"===t&&wp.element.createElement("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()}}),"image"===t&&wp.element.createElement("img",{className:"ugb-image-preview",src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},alt:Object(s.__)("preview",I.i18n)})),!e.imageURL&&wp.element.createElement("div",{className:"ugb-placeholder",onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},role:"button",tabIndex:0},wp.element.createElement(le,null)))}})))};ce.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var se=ce;function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var be=function(e){return wp.element.createElement(A.TextareaControl,ue({},e,{help:wp.element.createElement(c.Fragment,null,wp.element.createElement(A.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(s.__)("Describe the purpose of the image",I.i18n)),Object(s.__)("Leave empty if the image is purely decorative.",I.i18n))}))};be.defaultProps={label:Object(s.__)("Alt Text (Alternative Text)",I.i18n)};var pe=be,me=n(83),ge=n.n(me),de=n(84),fe=n.n(de),he=n(85),ve=n.n(he),ye=n(86),Oe=n.n(ye);function we(){return(we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function _e(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var je=function(e){return wp.element.createElement(c.Fragment,null,wp.element.createElement(Ha,we({},e,{className:l()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(_e(e.hasDefault?[{label:Object(s.__)("Default",I.i18n),value:"",image:ge.a}]:[]),[{label:Object(s.__)("Square",I.i18n),value:"square",image:fe.a},{label:Object(s.__)("Circle",I.i18n),value:"circle",image:ve.a},{label:Object(s.sprintf)(Object(s.__)("Blob %s",I.i18n),1),value:"blob1",image:Oe.a}],_e(Object(K.applyFilters)("stackable.image.control.shapes",[])))})),I.showProNotice&&wp.element.createElement(el,{type:"image"}))};je.defaultProps={className:"",label:Object(s.__)("Shape",I.i18n),selected:"",hasDefault:!0};var ke=je,Ce=n(13),xe=function(e){var t=e.imageData?Object(i.S)(e.imageData,e.imageSize||"full"):null,n=null!==e.isSquareImage?e.isSquareImage:!!t&&t.width===t.height;return wp.element.createElement(c.Fragment,null,e.onChangeShape&&wp.element.createElement(ke,{selected:e.shape,onChange:e.onChangeShape}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(A.ToggleControl,{label:Object(s.__)("Flip Shape Horizontally",I.i18n),checked:e.shapeFlipX,onChange:e.onChangeShapeFlipX}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(A.ToggleControl,{label:Object(s.__)("Flip Shape Vertically",I.i18n),checked:e.shapeFlipY,onChange:e.onChangeShapeFlipY}),e.onChangeShapeStretch&&!["","square"].includes(e.shape)&&!n&&wp.element.createElement(A.ToggleControl,{label:Object(s.__)("Stretch Shape Mask",I.i18n),checked:e.shapeStretch,onChange:e.onChangeShapeStretch}))};xe.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var Ee=Object(q.compose)([Object(Ce.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(xe);function Se(){return(Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function Be(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Te=function(e){var t=e.imageSizes,n=e.value,a=e.className,i=Be(e,["imageSizes","value","className"]),o=function(e){return Object(r.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}(t);return Object(r.isEmpty)(o)?null:wp.element.createElement(A.SelectControl,Se({},i,{value:n||"large",options:o,className:l()(a,["ugb--help-tip-image-size"])}))};Te.defaultProps={className:"",label:Object(s.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var Ae=Object(q.compose)([Object(Ce.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(Te),Pe=function(e){var t=e.label,n=e.setAttributes,a=e.enablePaddingTop,i=e.enablePaddingRight,r=e.enablePaddingBottom,o=e.enablePaddingLeft,l=e.attributes,s=l.columnPaddingTop,u=void 0===s?"":s,b=l.columnPaddingBottom,p=void 0===b?"":b,m=l.columnPaddingRight,g=void 0===m?"":m,d=l.columnPaddingLeft,f=void 0===d?"":d,h=l.columnPaddingUnit,v=void 0===h?"px":h,y=l.tabletColumnPaddingTop,O=void 0===y?"":y,w=l.tabletColumnPaddingBottom,_=void 0===w?"":w,j=l.tabletColumnPaddingRight,k=void 0===j?"":j,C=l.tabletColumnPaddingLeft,x=void 0===C?"":C,E=l.tabletColumnPaddingUnit,S=void 0===E?"px":E,B=l.mobileColumnPaddingTop,T=void 0===B?"":B,A=l.mobileColumnPaddingBottom,P=void 0===A?"":A,N=l.mobileColumnPaddingRight,M=void 0===N?"":N,R=l.mobileColumnPaddingLeft,F=void 0===R?"":R,D=l.mobileColumnPaddingUnit,I=void 0===D?"px":D;return wp.element.createElement(c.Fragment,null,wp.element.createElement(ho,{label:t,className:"ugb--help-tip-advanced-column-paddings",defaultLocked:!0,min:[0,0,0],max:[500,30,100],step:1,valueDesktop:{top:u,right:g,bottom:p,left:f},valueDesktopUnit:v,onChangeDesktop:function(e){n({columnPaddingTop:e.top,columnPaddingRight:e.right,columnPaddingBottom:e.bottom,columnPaddingLeft:e.left})},onChangeDesktopUnit:function(e){return n({columnPaddingUnit:e})},valueTablet:{top:O,right:_,bottom:k,left:x},valueTabletUnit:S,onChangeTablet:function(e){n({tabletColumnPaddingTop:e.top,tabletColumnPaddingBottom:e.right,tabletColumnPaddingRight:e.bottom,tabletColumnPaddingLeft:e.left})},onChangeTabletUnit:function(e){return n({tabletColumnPaddingUnit:e})},valueMobile:{top:T,right:P,bottom:M,left:F},valueMobileUnit:I,onChangeMobile:function(e){n({mobileColumnPaddingTop:e.top,mobileColumnPaddingBottom:e.right,mobileColumnPaddingRight:e.bottom,mobileColumnPaddingLeft:e.left})},onChangeMobileUnit:function(e){return n({mobileColumnPaddingUnit:e})},enableTop:a,enableRight:i,enableBottom:r,enableLeft:o}))};Pe.defaultProps={setAttributes:function(){},label:Object(s.__)("Column Paddings",I.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};var Ne=Pe;function Me(){return(Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Re=C.a.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7v2zM4 6v8h16V6H4z"}),Fe=function(e){return C.a.createElement("svg",Me({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Re)};function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ie=C.a.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm0 2v15h8V4H8z"}),ze=function(e){return C.a.createElement("svg",De({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Ie)};function Le(){return(Le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ue=C.a.createElement("path",{d:"M6 4v15h12V4H6zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z"}),He=function(e){return C.a.createElement("svg",Le({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Ue)};function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ve(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ye={desktop:wp.element.createElement(Fe,null),tablet:wp.element.createElement(He,null),mobile:wp.element.createElement(ze,null)},Xe={desktop:Object(s.__)("Desktop",I.i18n),tablet:Object(s.__)("Tablet",I.i18n),mobile:Object(s.__)("Mobile",I.i18n)},$e=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Ve(this,qe(t).apply(this,arguments))).state={screen:Object(i.U)(),isScreenPickerOpen:Object(i.ab)(),isMouseOver:!1},e}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}(t,c["Component"]),n=t,(a=[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),Object(i.nb)(e),Object(K.doAction)("stackable.responsive-toggle.screen.change",e),this.setState({isMouseOver:e})}},{key:"onOtherScreenChange",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e})}},{key:"onOtherScreenOpen",value:function(){this.setState({isScreenPickerOpen:!0})}},{key:"onOtherScreenClose",value:function(){this.setState({isScreenPickerOpen:!1})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(K.addAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e),this.onOtherScreenChange.bind(this)),Object(K.addAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e),this.onOtherScreenOpen.bind(this)),Object(K.addAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e),this.onOtherScreenClose.bind(this))}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(K.removeAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e)),Object(K.removeAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e)),Object(K.removeAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e))}},{key:"render",value:function(){var e=this;return wp.element.createElement("div",{className:"ugb-base-control-multi-label__responsive"},this.props.screens.length>1&&this.props.screens.map(function(t,n){return n>0&&!e.state.isScreenPickerOpen&&!e.state.isMouseOver?null:wp.element.createElement("div",{key:n},wp.element.createElement(A.Button,{className:e.state.screen===t?"is-active":"",onClick:function(){return e.onChangeScreen(t)},icon:Ye[t],showTooltip:!1,label:Xe[t],"data-screen":t,onMouseEnter:function(){return e.setState({isMouseOver:t})},onMouseLeave:function(){return e.setState({isMouseOver:!1})}}),e.state.isMouseOver===t&&wp.element.createElement(A.Popover,{focusOnMount:!1,position:"bottom center",className:"components-tooltip","aria-hidden":"true"},Xe[t]))}))}}])&&Ge(n.prototype,a),r&&Ge(n,r),t}();$e.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var Je=Object(q.withInstanceId)($e),Ze=function(e){return wp.element.createElement("div",{className:"ugb-base-control-multi-label"},wp.element.createElement("div",{className:"ugb-base-control-multi-label__label components-base-control__label"},e.label),wp.element.createElement(Je,{screens:e.screens,onChangeScreen:e.onChangeScreen}),wp.element.createElement("div",{className:"ugb-base-control-multi-label__units"},e.units.length>1&&e.units.map(function(t,n){return wp.element.createElement("button",{key:n,className:e.unit===t?"is-active":"",onClick:function(){return e.onChangeUnit(t)}},t)}),e.afterButton))};Ze.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var Qe=Ze;function et(){return(et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function nt(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var at=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,i=nt(e,["allowReset","withInputField","isShiftStepEnabled"]),o=tt(Object(c.useState)(""===e.value||isNaN(e.value)?"":e.value),2),u=o[0],b=o[1],p=function(t){if(b(t),!isNaN(t)){var n=parseFloat(t);if(!isNaN(n))return void e.onChange(Object(r.clamp)(n,e.min,e.max))}e.onChange(e.resetFallbackValue)},m=l()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===u}),g=""===u,d=e.initialPosition||e.placeholder||"",f=function(e,t,n){var a=(e-t)/(n-t)*100;return"".concat(Object(r.clamp)(a,0,100),"%")}((g?d:u)||e.sliderMin||e.min||0,e.sliderMin||e.min||0,e.sliderMax||e.max||100);return wp.element.createElement("div",{className:m,style:{"--ugb-advanced-range-control--width":f}},wp.element.createElement(A.RangeControl,et({},i,{initialPosition:"",onChange:p,withInputField:!1,allowReset:!1,max:e.sliderMax||e.max,min:e.sliderMin||e.min})),n&&wp.element.createElement(A.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:a,max:e.max,min:e.min,onChange:p,onBlur:function(){if(!isNaN(u)){var t=parseFloat(u);if(!isNaN(t))return void b(Object(r.clamp)(t,e.min,e.max))}b(e.resetFallbackValue)},shiftStep:e.shiftStep,step:e.step,value:u,placeholder:null!==e.placeholder?e.placeholder:d}),t&&wp.element.createElement(A.Button,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:function(){b(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},Object(s.__)("Reset",I.i18n)))};at.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,initialPosition:0,onChange:function(){}};var it=at;function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(n,!0).forEach(function(t){lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(r.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","placeholder","initialPosition"])),n=e.units.indexOf(e.unit)<0?0:e.units.indexOf(e.unit);Array.isArray(e.min)&&(t.min=e.min[n]),Array.isArray(e.max)&&(t.max=e.max[n]),Array.isArray(e.step)&&(t.step=e.step[n]),t.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,t.placeholder=e.placeholder;var a,o=e.placeholder;if(Array.isArray(o)||"object"!==rt(o))Array.isArray(o)&&"desktop"===e.screen?(t.placeholder=o[n]||"",t.initialPosition=o[n]||"",Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||"")):e.screen&&"desktop"!==e.screen&&(t.placeholder="",t.initialPosition="");else{var c=Object(i.U)()||"desktop";o=void 0!==o[c]?o[c]:o[Object.keys(o)[0]],Array.isArray(o)?(t.placeholder=o[n]||"",t.initialPosition=o[n]||""):(t.placeholder=o||"",t.initialPosition=o||""),Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||""),t.initialPosition="string"==typeof(a=t.initialPosition)&&""!==a&&a.match(/^[\d.]+$/)?a.includes(".")?parseFloat(a):parseInt(a,10):a}var s=l()(["ugb-advanced-range-control",e.className]);return wp.element.createElement(A.BaseControl,{help:e.help,className:s},wp.element.createElement(Qe,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(it,t))};ct.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:""};var st=ct,ut=function(e){return wp.element.createElement(A.BaseControl,{help:e.help,className:l()("ugb-advanced-select-control",e.className)},wp.element.createElement(Qe,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(A.SelectControl,Object(r.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};ut.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var bt=ut,pt=function(e){return wp.element.createElement(A.BaseControl,{help:e.help,className:l()("ugb-advanced-text-control",e.className)},wp.element.createElement(Qe,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(A.TextControl,Object(r.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};pt.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var mt=n(87),gt=n.n(mt);function dt(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ot=function(e){return!(!e.length||"object"!==yt(e[0].options))},wt=function(e,t){if(!t.length)return e;if(!Ot(t)){var n=t.filter(function(t){return t.value===e});return n.length?n[0].label:e}var a=t.map(function(t){return{title:t.title,options:t.options.filter(function(t){return t.value===e})}}).filter(function(e){return e.options.length>0});return a.length?a[0].options[0].label:e},_t=function(e){return e.value},jt=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},kt=function(e){return e.options},Ct=function(){return!0},xt=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=ft(t).apply(this,arguments))||"object"!==yt(a)&&"function"!=typeof a?ht(n):a).state={value:e.props.value,label:e.props.value?wt(e.props.value,e.props.options):e.props.value,suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(ht(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(ht(e)),e.onChange=e.onChange.bind(ht(e)),e.onFocus=e.onFocus.bind(ht(e)),e.autosuggestDiv=Object(c.createRef)(),e}var n,a,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(t,c["Component"]),n=t,(a=[{key:"onChange",value:function(e,t){var n=t.newValue;this.props.onChange(n),this.setState({value:n,label:wt(n,this.props.options)})}},{key:"onFocus",value:function(){var e=this;this.props.highlightValueOnFocus&&setTimeout(function(){var t=e.autosuggestDiv.current.querySelector('[data-value="'.concat(e.state.value,'"]'));t&&t.scrollIntoView()},0)}},{key:"onSuggestionsFetchRequested",value:function(e){var t=e.value,n=e.reason;if("input-focused"!==n&&"suggestion-selected"!==n){var a=function(e,t){var n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;var a=new RegExp(n,"i");return Ot(t)?t.map(function(e){return{title:e.title,options:e.options.filter(function(e){return a.test(e.label)||a.test(e.value)})}}).filter(function(e){return e.options.length>0}):t.filter(function(e){return a.test(e.label)||a.test(e.value)})}(t,this.props.options);this.setState({suggestions:a,isEmpty:""!==t.trim()&&0===a.length})}else this.setState({suggestions:this.props.options,isEmpty:!1})}},{key:"onSuggestionsClearRequested",value:function(){this.setState({suggestions:[]})}},{key:"render",value:function(){var e=this,t=this.state,n=t.label,a=t.suggestions,i={placeholder:"",value:n,onChange:this.onChange,onFocus:this.onFocus,type:"search"};return wp.element.createElement(A.BaseControl,{help:this.props.help,className:l()("ugb-advanced-autosuggest-control",this.props.className)},wp.element.createElement(Qe,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(gt.a,{multiSection:Ot(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:_t,renderSuggestion:function(t){return wp.element.createElement("div",{className:"ugb-autosuggest-option","data-value":t.value,id:"ugb-autosuggest-option--".concat(t.id||Object(r.kebabCase)(t.value))},e.props.renderOption?e.props.renderOption(t):t.label)},renderSectionTitle:jt,getSectionSuggestions:kt,shouldRenderSuggestions:Ct,inputProps:i}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}])&&dt(n.prototype,a),i&&dt(n,i),t}();xt.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(s.__)("No matches found",I.i18n),renderOption:null,highlightValueOnFocus:!1};var Et=xt;function St(){return(St=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Bt=C.a.createElement("path",{d:"M3 15.1h14v2H3zM9.4 2.9h1.2v8.6l1.3-1.3 1.1.8-3 3-3-3 1.1-.8 1.3 1.3V2.9z"}),Tt=function(e){return C.a.createElement("svg",St({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Bt)};function At(){return(At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Pt=C.a.createElement("path",{d:"M9 3h2v14H9zM1.6 10.6V9.4h3.9L4.2 8.1 5 7l3 3-3 3-.8-1.1 1.3-1.3H1.6zM18.4 9.4v1.2h-3.9l1.3 1.3L15 13l-3-3 3-3 .8 1.1-1.3 1.3h3.9z"}),Nt=function(e){return C.a.createElement("svg",At({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Pt)};function Mt(){return(Mt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Rt=C.a.createElement("path",{d:"M2.9 3h2v14h-2zM17.1 9.4v1.2H8.5l1.3 1.3L9 13l-3-3 3-3 .8 1.1-1.3 1.3h8.6z"}),Ft=function(e){return C.a.createElement("svg",Mt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Rt)};function Dt(){return(Dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var It=C.a.createElement("path",{d:"M15.1 3h2v14h-2zM2.9 10.6V9.4h8.6l-1.3-1.3L11 7l3 3-3 3-.8-1.1 1.3-1.3H2.9z"}),zt=function(e){return C.a.createElement("svg",Dt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),It)};function Lt(){return(Lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ut=C.a.createElement("path",{d:"M3 16.4h14v2H3zM3 1.6h14v2H3zM10.6 12.8V7.2l1.3 1.3 1.1-.8-3-3-3 3 1.1.8 1.3-1.3v5.6l-1.3-1.3-1.1.8 3 3 3-3-1.1-.8z"}),Ht=function(e){return C.a.createElement("svg",Lt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ut)};function Wt(){return(Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gt=C.a.createElement("path",{d:"M3 3h14v2H3zM10.6 17.1H9.4V8.4L8.1 9.7 7 9l3-3 3 3-1.1.8-1.3-1.3v8.6z"}),Vt=function(e){return C.a.createElement("svg",Wt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Gt)};function qt(){return(qt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Kt=C.a.createElement("path",{d:"M3 9h14v2H3zM10.6 18.4H9.4v-3.9l-1.3 1.3L7 15l3-3 3 3-1.1.8-1.3-1.3v3.9zM9.4 1.6h1.2v3.9l1.3-1.3L13 5l-3 3-3-3 1.1-.8 1.3 1.3V1.6z"}),Yt=function(e){return C.a.createElement("svg",qt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Kt)};function Xt(){return(Xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zt=[{value:"flex-start",title:Object(s.__)("Align Left",I.i18n),icon:wp.element.createElement(Ft,null)},{value:"center",title:Object(s.__)("Align Center",I.i18n),icon:wp.element.createElement(Nt,null)},{value:"flex-end",title:Object(s.__)("Align Right",I.i18n),icon:wp.element.createElement(zt,null)}],Qt=[{value:"flex-start",title:Object(s.__)("Align Top",I.i18n),icon:wp.element.createElement(Vt,null)},{value:"center",title:Object(s.__)("Align Center",I.i18n),icon:wp.element.createElement(Yt,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",I.i18n),icon:wp.element.createElement(Tt,null)},{value:"stretch",title:Object(s.__)("Stretch",I.i18n),icon:wp.element.createElement(Ht,null)}],en={"flex-horizontal":Zt,"flex-vertical":[{value:"flex-start",title:Object(s.__)("Align Top",I.i18n),icon:wp.element.createElement(Vt,null)},{value:"center",title:Object(s.__)("Align Center",I.i18n),icon:wp.element.createElement(Yt,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",I.i18n),icon:wp.element.createElement(Tt,null)}],"flex-vertical-with-stretch":Qt},tn=function(e){var t="string"==typeof e.controls?en[e.controls]:e.controls,n=l()({"ugb-toolbar--full-width":e.fullwidth,"ugb-toolbar--multiline":e.multiline});return wp.element.createElement(A.BaseControl,{help:e.help,className:l()("ugb-advanced-toolbar-control",e.className)},wp.element.createElement(Qe,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(A.ButtonGroup,{children:t.map(function(t,n){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(n,!0).forEach(function(t){Jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{onClick:function(){return e.onChange(t.value!==e.value?t.value:"")},isPrimary:e.value===t.value,isSmall:e.isSmall,children:t.icon?null:t.custom||wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)});return wp.element.createElement(A.Button,Xt({key:n},a))}),className:n}))};tn.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1};var nn=tn;function an(){return(an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rn=function(e){var t=e.placeholder,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10};return"string"==typeof t&&(t=[t,n(t)]),wp.element.createElement(st,an({},e,{placeholder:t,onChangeUnit:function(t){""!==e.value&&("em"===t||"rem"===t?e.onChange(n(e.value)):"px"===t&&e.onChange(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value))),e.onChangeUnit(t)}}))};rn.defaultProps={label:Object(s.__)("Font Size",I.i18n),value:"",onChange:function(){},unit:"px",onChangeUnit:function(){},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};var on=rn;function ln(){return(ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var cn=n(88).map(function(e){return{label:e.family,value:e.family}}),sn=function(e){var t=Object(c.useMemo)(function(){return Object(K.applyFilters)("stackable.font-family-control.options",[{id:"system-fonts",title:Object(s.__)("System Fonts",I.i18n),options:[{label:Object(s.__)("Sans-Serif",I.i18n),value:"Sans-Serif"},{label:Object(s.__)("Serif",I.i18n),value:"Serif"},{label:Object(s.__)("Serif Alternative",I.i18n),value:"Serif-Alt"},{label:Object(s.__)("Monospace",I.i18n),value:"Monospace"}]},{id:"google-fonts",title:Object(s.__)("Google Fonts",I.i18n),options:cn}])},[]);return wp.element.createElement(Et,ln({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){cn.some(function(e){return e.value===t&&(Object(i.db)(t),!0)}),e.onChange(t)}}))};sn.defaultProps={onChange:function(){},label:Object(s.__)("Font Family",I.i18n),value:""};var un=sn,bn=n(68);function pn(){return(pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function mn(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var gn=Object(bn.a)(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),dn=Object(bn.b)(function(e){var t=e.value,n=(e.key,e.index,mn(e,["value","key","index"]));return wp.element.createElement("div",pn({className:"ugb-sort-control__item"},n),t)}),fn=!1,hn=function e(t){for(var n=t.values?t.values.splice(0,t.num):Object(r.range)(t.num).map(function(e){return e+1});n.length<t.num;)n.push(n.length+1);return wp.element.createElement(A.BaseControl,{help:t.help,className:l()(["ugb-sort-control",t.className,"ugb-sort-control--axis-".concat(t.axis)])},wp.element.createElement(Qe,pn({label:t.label},Object(r.omit)(t,Object.keys(e.defaultProps)),{afterButton:t.hasReset?wp.element.createElement(A.Button,{disabled:!t.values,onClick:function(){return t.onChange("",{oldIndex:0,newIndex:0})},isSmall:!0,isSecondary:!0},Object(s.__)("Reset")):null})),wp.element.createElement(gn,{onSortStart:function(){return fn=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,i=e.newIndex;fn=!1;var r=function(e,t,n){return e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e}(n,a,i);t.onChange(r,{oldIndex:a,newIndex:i})},axis:t.axis},n.map(function(e,n){return wp.element.createElement(dn,{key:n,index:n,value:e,onMouseEnter:function(){fn||t.onHover(n)},onMouseLeave:function(){fn||t.onHover(null)}})})))};hn.defaultProps={className:"",help:"",label:Object(s.__)("Column Arrangement",I.i18n),num:2,axis:"x",values:null,onChange:function(){},onHover:function(){},hasReset:!1};function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(n,!0).forEach(function(t){On(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn={},_n={};Object(K.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){_n[e]=t}),Object(K.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===_n[e]&&(_n[e]=t)});var jn=function(e){var t=function(t){var n=Object(c.useMemo)(function(){return Object(Ce.select)("core/block-editor").getSelectedBlockClientId()},[]),a=yn({},t,{onToggle:function(e,a){if(n&&t.withCaching){var i=(o=a.current,(l=o.closest("[data-ugb-tab]"))?l.getAttribute("data-ugb-tab"):""),r="".concat(n,"-").concat(i);_n[n]=i,wn[r]=e?t.title:null}var o,l;t.onToggle(e)}});if(n&&t.withCaching){var i=_n[n]||"",r="".concat(n,"-").concat(i),o=wn[r];o?a.initialOpen=o===t.title:null===o&&(a.initialOpen=!1)}return wp.element.createElement(c.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=yn({},e.defaultProps||{},{withCaching:!0}),t},kn=n(41);function Cn(e){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pn=1,Nn=function(e){function t(e){var n,a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(i=Bn(t).apply(this,arguments))||"object"!==Cn(i)&&"function"!=typeof i?Tn(a):i).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(Tn(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(Tn(n)),n.instanceId=Pn++,n.panelRef=Object(c.createRef)(),n}var n,a,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(t,c["Component"]),n=t,(a=[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.hasToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t]||(n=!0,0))}),n?(this.props.onChange&&this.props.onChange(!0),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(n,!0).forEach(function(t){En(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,En({},this.props.toggleAttributeName,!0))):e}},{key:"componentDidMount",value:function(){Object(K.addFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9)}},{key:"componentWillUnmount",value:function(){Object(K.removeFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId))}},{key:"onToggle",value:function(){if(this.setState({opened:!this.state.opened}),!this.state.opened&&this.panelRef.current){var e=this.panelRef.current.querySelector(".components-panel__body-title"),t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar");t&&e.getBoundingClientRect().top<t.getBoundingClientRect().bottom?Object(kn.b)(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&Object(kn.b)(this.panelRef.current)}this.props.onToggle(!this.state.opened,this.panelRef)}},{key:"onAdvancedToggle",value:function(){this.setState({showAdvanced:!this.state.showAdvanced})}},{key:"render",value:function(){var e=this,t=l()([this.props.className,"ugb-toggle-panel-body"],En({"ugb-toggle-panel-body--advanced":this.state.showAdvanced},"ugb-panel--".concat(this.props.id),this.props.id));return wp.element.createElement(A.PanelBody,{className:t,initialOpen:this.props.initialOpen,onToggle:this.onToggle,opened:this.state.opened,ref:this.panelRef,title:wp.element.createElement(c.Fragment,null,this.props.hasToggle&&this.props.toggleAttributeName&&wp.element.createElement("span",{className:"editor-panel-toggle-settings__panel-title"},wp.element.createElement(A.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:this.props.checked,onClick:function(t){t.stopPropagation(),t.preventDefault();var n=e.props.checked;n&&e.state.opened||n||e.state.opened||e.onToggle(),e.props.onChange&&e.props.onChange(!n)},"aria-describedby":this.props.title}),this.props.title),!(this.props.hasToggle&&this.props.toggleAttributeName)&&this.props.title)},this.props.children,this.state.showAdvanced&&this.props.advancedChildren,this.props.advancedChildren&&wp.element.createElement("button",{className:"ugb-panel-advanced-button",onClick:this.onAdvancedToggle},this.state.showAdvanced?Object(s.__)("Simple",I.i18n):Object(s.__)("Advanced",I.i18n)))}}])&&Sn(n.prototype,a),i&&Sn(n,i),t}();Nn.defaultProps={id:"",className:"",title:Object(s.__)("Settings",I.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!0,initialAdvanced:!1,advancedChildren:null,toggleOnSetAttributes:[],toggleAttributeName:"",onToggle:function(){}};var Mn=jn(Nn);function Rn(){return(Rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Fn=function(e){var t=e.blockProps;return wp.element.createElement(Mn,Rn({title:Object(s.__)("Spacing",I.i18n)},e,{className:l()(["ugb--help-tip-spacing",e.className])}),Object(K.applyFilters)("stackable.panel-spacing-body.edit.before",null,t),e.children,Object(K.applyFilters)("stackable.panel-spacing-body.edit.after",null,t))};Fn.defaultProps={className:"",blockProps:{}};var Dn=Fn,In=function(e){var t=l()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};In.defaultProps={tab:"layout"};var zn=In,Ln=n(18),Un=n(24),Hn=n.n(Un);function Wn(e,t,n,a,i,r,o){try{var l=e[r](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(a,i)}function Gn(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Wn(r,a,i,o,l,"next",e)}function l(e){Wn(r,a,i,o,l,"throw",e)}o(void 0)})}}var Vn=null,qn={},Kn=[],Yn=function(e){return e.replace(/^[\w-]+\//,"")},Xn=function(){var e=Gn(regeneratorRuntime.mark(function e(){var t,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]&&a[0],Vn&&!t){e.next=9;break}return e.next=4,Hn()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:Vn=e.sent,t&&(qn={},Kn=[]);case 9:return e.abrupt("return",Vn);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),$n=function(){var e=Gn(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Yn(t),qn[n]){e.next=8;break}return e.next=4,Hn()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:qn[n]=e.sent;case 8:return e.abrupt("return",qn[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Jn=function(){var e=Gn(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Kn[t]){e.next=7;break}return e.next=3,Hn()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:Kn[t]=e.sent;case 7:return e.abrupt("return",Kn[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Zn=function(){var e=Gn(regeneratorRuntime.mark(function e(){var t,n,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],e.next=3,Hn()({path:"/wp/v2/stk_design_library_dev_mode/",method:"POST",data:{devmode:t}});case 3:return n=e.sent,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();Object(Ln.a)(function(){});var Qn=function(){var e=Gn(regeneratorRuntime.mark(function e(t){var n,a,i,r,o,l,c,s,u,b,p,m,g,d,f,h,v,y;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,a=void 0===n?"":n,i=t.block,r=void 0===i?"":i,o=t.mood,l=void 0===o?"":o,c=t.plan,s=void 0===c?"":c,u=t.colors,b=void 0===u?[]:u,p=t.categories,m=void 0===p?[]:p,g=t.search,d=void 0===g?"":g,f=t.reset,h=void 0!==f&&f,e.t0=Object,e.next=4,Xn(h);case 4:return e.t1=e.sent,v=e.t0.values.call(e.t0,e.t1),a&&(v=v.filter(function(e){return e.type===a})),r&&(y=-1===r.indexOf("ugb/")?"ugb/".concat(r):r,v=v.filter(function(e){return e.block===y})),l&&(v=v.filter(function(e){return e.mood===l})),s&&(v=v.filter(function(e){return e.plan===s})),b&&b.length&&(v=v.filter(function(e){return e.colors.some(function(e){return b.includes(e)})})),m&&m.length&&(v=v.filter(function(e){return e.categories.some(function(e){return m.includes(e)})})),d&&d.toLowerCase().replace(/\s+/," ").trim().split(" ").forEach(function(e){v=v.filter(function(t){return["label","plan","block","tags","categories","colors"].some(function(n){return-1!==t[n].toString().toLowerCase().indexOf(e)})})}),e.abrupt("return",v);case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ea=function(){var e=Gn(regeneratorRuntime.mark(function e(t){var n,a,i,r,o,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xn();case 2:if(n=e.sent,a=n[t],i=a.type,r=a.block,o=a.template,"block"!==i||!r){e.next=12;break}return e.next=8,$n(r);case 8:return l=e.sent,e.abrupt("return",l[t]);case 12:if(!o){e.next=16;break}return e.next=15,Jn(t);case 15:return e.abrupt("return",e.sent);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ta=function(){var e=Gn(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Object,e.next=3,Xn();case 3:return e.t1=e.sent,t=e.t0.values.call(e.t0,e.t1),e.abrupt("return",t.reduce(function(e,t){var n=t.block,a=t.type;return e.includes(n)||"block"!==a||e.push(n),e},[]));case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();function na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var aa=function(e){var t=na(Object(c.useState)(!1),2),n=t[0],a=t[1],i=na(Object(c.useState)(""),2),r=i[0],o=i[1],l=na(Object(c.useState)([]),2),u=l[0],b=l[1],p=na(Object(c.useState)(!0),2),m=p[0],g=p[1],d=na(Object(c.useState)(""),2),f=d[0],h=d[1];return Object(c.useEffect)(function(){var t=!0;return Qn({type:"block",block:e.block,search:r}).then(function(e){t&&b(e)}).finally(function(){t&&g(!1)}),function(){t=!1}},[e.block,r]),wp.element.createElement("div",null,wp.element.createElement(A.Button,{className:"ugb-design-library-control__open-library",label:Object(s.__)("Open Design Library",I.i18n),isSmall:!0,isLink:!0,onClick:function(){return a(!0)}},Object(s.__)("Open Design Library",I.i18n)),wp.element.createElement(A.TextControl,{placeholder:Object(s.__)("Search designs...",I.i18n),value:r,onChange:function(e){return o(e)}}),!I.isPro&&wp.element.createElement(nn,{controls:[{value:"",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("All",I.i18n),wp.element.createElement("span",null,u.length))},{value:"free",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("Free",I.i18n),wp.element.createElement("span",null,u.reduce(function(e,t){return e+("free"===t.plan?1:0)},0)))},{value:"premium",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(s.__)("Premium",I.i18n),wp.element.createElement("span",null,u.reduce(function(e,t){return e+("free"!==t.plan?1:0)},0)))}],value:f,onChange:function(e){return h(e)}}),wp.element.createElement(ha,{designs:u.filter(function(e){var t=e.plan;return!f||t===f}),isBusy:m,onSelect:e.onSelect}),n&&wp.element.createElement(vg,{search:r,selectedBlock:e.block,onClose:function(){a(!1),o("")},onSelect:function(t){e.onSelect(t),a(!1)}}))};aa.defaultProps={block:"",onSelect:function(){}};var ia=aa,ra=n(15);function oa(e){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function la(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ca(e){return(ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ua(e,t){return(ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ba=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=ca(t).apply(this,arguments))||"object"!==oa(a)&&"function"!=typeof a?sa(n):a).state={isOpen:!1,slide:0},e.open=e.open.bind(sa(e)),e.close=e.close.bind(sa(e)),e.prev=e.prev.bind(sa(e)),e.next=e.next.bind(sa(e)),e}var n,a,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ua(e,t)}(t,c["Component"]),n=t,(a=[{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"next",value:function(){var e=this.state.slide>=4?0:this.state.slide+1;this.setState({slide:e})}},{key:"prev",value:function(){var e=this.state.slide<=0?4:this.state.slide-1;this.setState({slide:e})}},{key:"render",value:function(){var e=this.props.tag;return wp.element.createElement(e,null,wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=".concat(this.props.buttonUtmSource,"&utm_campaign=learnmore&utm_medium=gutenberg"),target:"_premium",onClick:this.open,className:this.props.buttonClassName},this.props.button),this.state.isOpen&&wp.element.createElement(A.Modal,{className:"ugb-pro-modal",onRequestClose:this.close},wp.element.createElement("img",{src:"https://da4bu55kgdxvv.cloudfront.net/premium-popup.jpg",alt:Object(s.__)("Premium features",I.i18n)}),wp.element.createElement("div",{className:"ugb-pro-modal__footer"},wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=editor-modal-popup&utm_campaign=upgrade&utm_medium=gutenberg",className:"button button-secondary",target:"_premium",title:Object(s.__)("Upgrade to Premium",I.i18n)},wp.element.createElement(ra.w,null),Object(s.__)("Upgrade to Premium",I.i18n)),wp.element.createElement("a",{href:"https://demo.wpstackable.com?utm_source=editor-modal-popup&utm_campaign=trydemo&utm_medium=gutenberg",target:"_premium",title:Object(s.__)("Try Premium Demo",I.i18n)},Object(s.__)("Try Premium Demo",I.i18n)))))}}])&&la(n.prototype,a),i&&la(n,i),t}();ba.defaultProps={button:Object(s.__)("Learn More",I.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var pa=ba;function ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ga=function(e){var t,n,a,i=e.designId,r=e.image,o=e.label,s=e.onClick,u=e.plan,b=e.isPro,p=ma(Object(c.useState)(!1),2),m=p[0],g=p[1],d=ma(Object(c.useState)(!1),2),f=d[0],h=d[1],v=l()(["ugb-design-library-item"],(t={"ugb--is-busy":m},n="ugb--is-".concat(u),a=!b&&"free"!==u,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t));return wp.element.createElement("div",{className:v,onMouseEnter:function(){return h(!0)},onMouseLeave:function(){return h(!1)}},m&&wp.element.createElement("span",{className:"ugb-design-library-item__spinner","data-testid":"spinner"},wp.element.createElement(A.Spinner,null)),!b&&"free"!==u&&wp.element.createElement("span",{className:"ugb-design-library-item__premium","data-testid":"premium-tag"},u),wp.element.createElement("button",{className:"ugb-design-library-item__image",onClick:function(){(b||"free"===u)&&(g(!0),ea(i).then(function(e){g(!1),s(e)}))}},!b&&"free"!==u&&wp.element.createElement(A.Dashicon,{icon:"lock"}),wp.element.createElement("img",{src:r,alt:o,loading:"lazy"})),wp.element.createElement("footer",null,(b||"free"===u)&&wp.element.createElement("span",null,o),!b&&"free"!==u&&!f&&wp.element.createElement("span",null,o),!b&&"free"!==u&&f&&wp.element.createElement(pa,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(c.Fragment,null,wp.element.createElement(A.Dashicon,{icon:"external"}),e.premiumLabel)})))};ga.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:I.isPro,premiumLabel:Object(s.__)("Go Premium",I.i18n)};var da=ga;var fa=function(e){var t,n,a,i=e.designs,r=e.isBusy,o=e.onSelect,c=l()(["ugb-design-library-items"],(t={},n="ugb-design-library-items--columns-".concat(e.columns),a=!r&&e.columns,n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t));return wp.element.createElement("div",{className:c},(i||[]).map(function(e,t){return wp.element.createElement(da,{key:t,type:e.type,block:e.block,template:e.template,plan:e.plan,designId:e.id,image:e.image,label:e.label,onClick:function(e){o(e)}})}),r&&wp.element.createElement("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},wp.element.createElement(A.Spinner,null)),!r&&!(i||[]).length&&wp.element.createElement("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},Object(s.__)("No designs found",I.i18n)))};fa.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var ha=fa;n(341);function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(n,!0).forEach(function(t){Oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wa={},_a=function(e){var t=function(t){var n=t.initialTab||wa[t.blockProps.clientId]||(Object(i.bb)(t.blockProps)?"layout":"style");Object(K.doAction)("stackable.inspector.tab.initial",t.blockProps.clientId,n);var a=ya({},t,{initialTab:n,onClick:function(e){wa[t.blockProps.clientId]=e,Object(K.doAction)("stackable.inspector.tab.click",t.blockProps.clientId,e),t.onClick(e)}});return wp.element.createElement(c.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=ya({},e.defaultProps||{}),t};function ja(e){return(ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ka(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(e,t){return(Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Sa=[{value:"layout",title:Object(s.__)("Layout",I.i18n),label:Object(s.__)("Layout Tab",I.i18n),icon:"admin-settings"},{value:"style",title:Object(s.__)("Style",I.i18n),label:Object(s.__)("Style Tab",I.i18n),icon:"admin-appearance"},{value:"advanced",title:Object(s.__)("Advanced",I.i18n),label:Object(s.__)("Advanced Tab",I.i18n),icon:"admin-tools"}],Ba=function(e){function t(){var e,n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,(e=!(a=Ca(t).apply(this,arguments))||"object"!==ja(a)&&"function"!=typeof a?xa(n):a).tabsToUse=e.props.tabs||["layout","style","advanced"],e.state={activeTab:e.props.initialTab?e.props.initialTab:e.tabsToUse[0]},e.onButtonPanelClick=e.onButtonPanelClick.bind(xa(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(xa(e)),e.select=e.select.bind(xa(e)),e.containerDiv=Object(c.createRef)(),e.props.onTabFirstOpen(e.state.activeTab),e}var n,a,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ea(e,t)}(t,c["Component"]),n=t,(a=[{key:"updateSidebarPanelTab",value:function(e){var t,n=this.containerDiv.current.closest(".components-panel");n&&(n.setAttribute("data-ugb-tab",e),null===(t=n.closest(".edit-post-sidebar"))||void 0===t||t.classList.add("ugb--has-panel-tabs"))}},{key:"componentDidMount",value:function(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&document.body.addEventListener("click",this.onButtonPanelClick)}},{key:"componentWillUnmount",value:function(){var e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&document.body.removeEventListener("click",this.onButtonPanelClick)}},{key:"onButtonPanelClick",value:function(e){var t,n=e.target.closest(".components-panel__body-toggle");n&&"layout"!==this.state.activeTab&&(t=n,[].forEach.call(document.querySelectorAll(".components-panel__body .components-panel__body-toggle"),function(e){0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&t!==e&&e.click()}),this.props.onClickPanel(n.closest(".components-panel__body")))}},{key:"select",value:function(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}},{key:"render",value:function(){var e=this,t=l()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return wp.element.createElement("div",{className:t,style:this.props.style,ref:this.containerDiv},wp.element.createElement("div",{className:"ugb-panel-tabs__wrapper"},Sa.map(function(t,n){var a=t.value,i=t.title,r=t.label,o=t.icon;return e.tabsToUse.includes(a)?wp.element.createElement("button",{key:n,onClick:function(){return e.select(a)},className:l()(["edit-post-sidebar__panel-tab","ugb-tab--".concat(a)],{"is-active":e.state.activeTab===a}),"aria-label":r,"data-label":r},wp.element.createElement(A.Icon,{icon:o}),i):null})))}}])&&ka(n.prototype,a),i&&ka(n,i),t}();Ba.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};var Ta=_a(Ba),Aa=n(35);function Pa(){return(Pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Na=function(e){var t=l()(["ugb-global-style-control__item"],{"ugb-global-style-control__item--large-preview":e.largePreview}),n=e.renderPreview&&e.renderPreview(Object(r.pick)(e,["label","value"]));return wp.element.createElement("div",{className:t},n&&wp.element.createElement("div",{className:"ugb-global-style-control__item-preview"},n),wp.element.createElement("div",{className:"ugb-global-style-control__item-label"},e.label),wp.element.createElement(A.Button,{className:"ugb-global-style-control__item-button",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.onEdit(e.value)},label:Object(s.__)("Edit Style",I.i18n),isTertiary:!0,icon:"edit"}))};Na.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var Ma=function(e){var t=e.options;if(e.value){var n=e.options.find(function(t){return t.value===e.value});n&&(t=e.options.filter(function(t){return t.value!==e.value})).unshift(n)}var a=l()(["ugb-global-style-control",e.className],{"ugb--has-value":e.value});return wp.element.createElement(Et,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(Na,Pa({},t,{largePreview:e.largePreview,onEdit:e.onEdit,renderPreview:e.renderPreview}))}},e.value&&wp.element.createElement(A.Button,{icon:"edit",label:Object(s.__)("Edit Style",I.i18n),isSecondary:!0,onClick:function(){return e.onEdit(e.value)}}),e.value&&wp.element.createElement(A.Button,{icon:"editor-unlink",label:Object(s.__)("Unlink Style",I.i18n),isSecondary:!0,disabled:!e.value,onClick:e.onUnlink}))};Ma.defaultProps={className:"",label:Object(s.__)("Style",I.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Fa=function(e){var t=e.options,n=e.selected,a=e.title,i=void 0===a?Object(s.__)("Layout",I.i18n):a,o=e.selectedOptionInTitle,c=void 0===o||o,u=e.help,b=void 0===u?"":u,p=e.className,m=void 0===p?"":p,g=e.initialOpen,d=void 0===g||g,f=t?t.find(function(e){return e.value===n}):null,h=f?"".concat(i," – ").concat(f.label):i,v=l()(["ugb-design-panel-body",m]);return wp.element.createElement(Mn,Ra({title:c?wp.element.createElement("span",null,h):i,className:v,initialOpen:d},Object(r.omit)(e,["help"])),b&&wp.element.createElement("p",{className:"components-base-control__help"},b),t&&wp.element.createElement(Ha,Object(r.omit)(e,["help","title"])),e.children)};var Da=function(e){var t=e.imageFile,n=e.imageHoverFile,a=e.imageWidth,i=void 0===a?"":a,r=e.imageHeight,o=void 0===r?"":r,l=e.label,c=t?t.match(/https?:/i)?t:I.srcUrl?"".concat(I.srcUrl,"/").concat(t):t:"",s=n?n.match(/https?:/i)?n:I.srcUrl?"".concat(I.srcUrl,"/").concat(n):n:null;return wp.element.createElement("span",{className:"ugb-design-panel-item"},s&&wp.element.createElement("img",{className:"ugb-design-panel-item__hover-image",src:s,alt:l,width:i,height:o}),c&&wp.element.createElement("img",{className:"ugb-design-panel-item__image",src:c,alt:l,width:i,height:o}),wp.element.createElement("span",{className:"design-label"},l))};function Ia(){return(Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function La(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ua=function(e){var t=e.options.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?za(n,!0).forEach(function(t){La(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):za(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(Da,{imageFile:e.image,imageHoverFile:e.hoverImage,imageWidth:e.imageWidth,imageHeight:e.imageHeight,isPro:e.isPro,label:e.label}),title:e.label,value:e.value})}),n=l()([e.className,"ugb-design-control-wrapper","components-base-control","ugb-design-control--columns-".concat(e.columns)]);return wp.element.createElement("div",{className:n},e.label&&wp.element.createElement("div",{className:"components-base-control__label"},e.label),wp.element.createElement(A.RadioControl,Ia({},Object(r.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Ua.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var Ha=Ua,Wa=n(89),Ga=n.n(Wa),Va=n(90),qa=n.n(Va),Ka=n(91),Ya=n.n(Ka),Xa=n(92),$a=n.n(Xa),Ja=n(93),Za=n.n(Ja),Qa=n(94),ei=n.n(Qa),ti=n(95),ni=n.n(ti),ai=n(96),ii=n.n(ai),ri=n(97),oi=n.n(ri),li=n(98),ci=n.n(li),si=n(99),ui=n.n(si),bi=n(100),pi=n.n(bi),mi=n(101),gi=n.n(mi);function di(){return(di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var fi={"wave-1":{image:ci.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),1),value:"wave-1"},"straight-1":{image:oi.a,label:Object(s.__)("Straight",I.i18n),value:"straight-1"},"wave-2":{image:ui.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),2),value:"wave-2"},"wave-3":{image:pi.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),3),value:"wave-3"},"wave-4":{image:gi.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),4),value:"wave-4"},"slant-1":{image:ni.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Slant",I.i18n),1),value:"slant-1"},"slant-2":{image:ii.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Slant",I.i18n),2),value:"slant-2"},"curve-1":{image:Ga.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Curve",I.i18n),1),value:"curve-1"},"curve-2":{image:qa.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Curve",I.i18n),2),value:"curve-2"},"curve-3":{image:Ya.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Curve",I.i18n),3),value:"curve-3"},"rounded-1":{image:$a.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Rounded",I.i18n),1),value:"rounded-1"},"rounded-2":{image:Za.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Rounded",I.i18n),2),value:"rounded-2"},"rounded-3":{image:ei.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Rounded",I.i18n),3),value:"rounded-3"}},hi=function(e){var t=Object.keys(fi).filter(function(t){return!e.excludeDesigns.includes(t)}).map(function(e){return fi[e]});return wp.element.createElement(A.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:e.label,help:e.help},wp.element.createElement(Ha,di({options:Object(K.applyFilters)("stackable.separator.edit.layouts",t,e)},Object(r.omit)(e,["label","help"]))))};hi.defaultProps={label:"",help:"",excludeDesigns:[]};var vi=hi;function yi(){return(yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Oi=C.a.createElement("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}),wi=function(e){return C.a.createElement("svg",yi({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Oi)};function _i(){return(_i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ji=Object(q.withInstanceId)(Object(q.withState)({openPopover:!1,clickedOnButton:!1})(function(e){var t=e.instanceId,n=e.openPopover,a=e.clickedOnButton,i=e.setState;return wp.element.createElement(A.BaseControl,_i({className:"ugb-icon-control ugb-icon-control-".concat(t)},Object(r.omit)(e,["onChange","value"])),wp.element.createElement("div",{className:"ugb-icon-control__wrapper"},wp.element.createElement("div",{className:"ugb-icon-control__button-wrapper"},wp.element.createElement(A.Button,{isSecondary:!0,className:"ugb-icon-control__icon-button",onClick:function(){i(a?{openPopover:!1,clickedOnButton:!1}:{openPopover:!0})}},e.value&&wp.element.createElement(Co,{value:e.value}),!e.value&&wp.element.createElement(wi,{style:{opacity:.3}})),n&&wp.element.createElement(zi,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-icon-control-".concat(t))?i({clickedOnButton:!0}):i({openPopover:!1,clickedOnButton:!1})},onClose:function(){return i({openPopover:!1})},returnSVGValue:e.returnSVGValue,onChange:e.onChange})),wp.element.createElement(A.Button,{onClick:function(){e.onReset?e.onReset():e.onChange(""),i({openPopover:!1})},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(s.__)("Reset",I.i18n))))}));ji.defaultProps={label:Object(s.__)("Icon",I.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var ki=ji;function Ci(){return(Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var xi=C.a.createElement("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}),Ei=function(e){return C.a.createElement("svg",Ci({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e),xi)};function Si(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Bi(e,t,n,a,i,r,o){try{var l=e[r](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(a,i)}var Ti=function(){var e,t=(e=regeneratorRuntime.mark(function e(){var t,n,a,i,r=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"icon",n=r.length>1&&void 0!==r[1]?r[1]:I.fontAwesomeSearchProIcons,a='{ search(version: "latest", first: 50, query: "'.concat((t||"info").replace(/["'\\]/g,""),'") {\n\t\t\tid\n\t\t\tmembership {\n\t\t\t\tfree\n\t\t\t\t').concat(n?"pro":"","\n\t\t\t}\n\t\t} }"),e.next=5,fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:a})}).then(function(e){return e.json()});case 5:return i=e.sent,e.abrupt("return",i.data.search.reduce(function(e,t){return Ai(t,n).forEach(function(t){e.push(t)}),e},[]));case 7:case"end":return e.stop()}},e)}),function(){var t=this,n=arguments;return new Promise(function(a,i){var r=e.apply(t,n);function o(e){Bi(r,a,i,o,l,"next",e)}function l(e){Bi(r,a,i,o,l,"throw",e)}o(void 0)})});return function(){return t.apply(this,arguments)}}(),Ai=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(Si(e.membership.free),Si(t?e.membership.pro.filter(function(t){return!e.membership.free.includes(t)}):[]));return n.map(function(t){return{className:"fa".concat(t[0]," fa-").concat(e.id),prefix:"fa".concat(t[0]),iconName:e.id}})},Pi=n(102);function Ni(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Mi=null,Ri=null,Fi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,"$1".concat(t," ")):e.match(/(<svg)/)?e.replace(/(<svg)/,'$1 class="'.concat(t,'"')):e},Di=function(e){for(var t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1"),n=0;n<2;n++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t},Ii=function(e){var t=Ni(Object(c.useState)(""),2),n=t[0],a=t[1],r=Ni(Object(c.useState)([]),2),o=r[0],u=r[1],b=Ni(Object(c.useState)(!1),2),p=b[0],m=b[1],g=Ni(Object(c.useState)(!1),2),d=g[0],f=g[1],h=e.returnSVGValue;Object(c.useEffect)(function(){var e=!0;return clearTimeout(Mi),Mi=setTimeout(function(){e&&(m(!0),Ti(n).then(function(t){e&&u(t)}).finally(function(){e&&m(!1)}))},500),function(){e=!1,clearTimeout(Mi)}},[n]),Object(c.useEffect)(function(){Ri||(Ri=wp.data.select("core/block-editor").getSettings().mediaUpload),d?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==Ri&&wp.data.dispatch("cor