Stackable – Page Builder Gutenberg Blocks - Version 2.13.4

Version Description

  • Fixed: Issue with styling duplicated blocks
  • Fixed: Accordion block migration error
  • Fixed: Google Fonts possible enqueueing issue
Download this release

Release Info

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

Code changes from version 2.13.3 to 2.13.4

Files changed (2) hide show
  1. dist/admin_welcome.js +1 -1
  2. dist/editor_blocks.js +0 -1
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,O=5,k=0;l=function(){return t.unstable_now()>=k},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"):O=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,_=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();k=e+O;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(e){throw _.postMessage(null),e}}else v=!1},a=function(e){y=e,v||(v=!0,_.postMessage(null))},r=function(e,n){w=g(function(){e(t.unstable_now())},n)},i=function(){m(w),w=-1}}function S(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,S(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,S(T,e),null===x(P)&&e===x(T)&&(D?i():D=!0,r(z,s-o))):(e.sortIndex=l,S(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 O(e){return(O="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 k(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 _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return(S=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"!==O(a)&&"function"!=typeof a?_(n):a,x(_(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(_(e)),e.outsideClickHandler=e.outsideClickHandler.bind(_(e)),e.onKeyPressHandler=e.onKeyPressHandler.bind(_(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&&S(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,O=void 0===w?"":w,k=t.hoverEffect,C=void 0===k?"":k,_=t.ghostToNormalEffect,S=void 0!==_&&_,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,W=p()([r,"ugb-button","ugb-button--size-".concat(u)],(x(e={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":S},"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(O),O),e)),q=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:q,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},wp.element.createElement("a",{className:W},H&&"link"!==h&&wp.element.createElement(i.Fragment,null,!F&&wp.element.createElement(Gu,{value:H}),F&&wp.element.createElement(Xu,{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(dt,{value:j,onChange:I,newTab:T,noFollow:M,onChangeNewTab:D,onChangeNoFollow:z,disableSuggestions:this.props.disableSuggestions})))}}])&&k(n.prototype,a),r&&k(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,O=e.shadow,k=void 0===O?0:O,C=e.iconPosition,_=void 0!==C&&C,S=e.hoverEffect,E=void 0===S?"":S,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(k),"basic"===h&&k),x(t,"ugb-button--design-".concat(h),"basic"!==h),x(t,"ugb-button--has-icon",c),x(t,"ugb-button--icon-position-".concat(_),_),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(Gu.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 O=me(v,{min:m,max:g});O&&(h.fontSize="".concat(O).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 k=me(v,{min:m,max:g});k&&(h.fontSize="".concat(k).concat(i("FontSizeUnit")||"px"));var C=me(y,{min:m,max:g});C?h.fontSize="".concat(C).concat(i("TabletFontSizeUnit")||"px"):(k||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(13),W=n.n(G);var q=n(2),K=n.n(q);function $(){return($=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Y=K.a.createElement("circle",{cx:50,cy:50,r:50}),Q=function(e){return K.a.createElement("svg",$({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),Y)};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 J=K.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),Z=function(e){return K.a.createElement("svg",X({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),J)};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=K.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 ne={circle:Q,square:Z,blob1:function(e){return K.a.createElement("svg",ee({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),te)}},ae=function(e){var t=Object(R.applyFilters)("stackable.image.shape.svgs",ne);return t[e]?t[e]:null},re=n(10),ie=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||""}},le=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]||ie(e):null};window._stackableCachedImageData={};var oe=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},se=function(e){return window._stackableCachedImageData[e]||null};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 Oe=["uniqueClass"],ke={};var Ce=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(re.select)("core/block-editor"),r=a.getBlockName,i=a.getSelectedBlockClientId,l=a.getBlockAttributes,o=a.hasMultiSelection,s=a.getMultiSelectedBlockClientIds,u=Object(re.dispatch)("core/block-editor"),c=u.updateBlockAttributes,f=Object(re.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)})};function _e(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=_e(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]},xe=function(){return void 0!==he.registerBlockCollection};var Ee=function(e,t){var n=je(e,t);return n?n.html[0]:""},je=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},Pe=n(17),Te=n.n(Pe);n(29);var Be=function(e){return e.match(/(mp4|webm|ogg)$/i)},Me="desktop",Ne=function(){return Me},Ie=!1,Ae=function(){return Ie};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)}function Re(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?Re(n,!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(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 Fe=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 ze({},e,(Le(i={},"".concat(r,"Url"),a("".concat(r,"Url"))),Le(i,"onChange".concat(Object(b.upperFirst)(r),"Url"),function(e){return t(Le({},n("".concat(r,"Url")),e))}),i))},{});return wp.element.createElement($e,De({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(Le({},n("NewTab"),e))},isSelected:e.isSelected},r,e))};Fe.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(Fe.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 ze({},e,Le({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement($e.Content,De({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 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 He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(n,!0).forEach(function(t){Ve(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 Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 We=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,Ge({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 He({},e,(Ve(n={},"".concat(t,"Url"),""),Ve(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});We.defaultProps=He({useSocialColors:!0},qe),We.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,Ge({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:be[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var Ke=Object.keys(be).reduce(function(e,t){var n;return He({},e,(Ve(n={},"".concat(t,"Url"),""),Ve(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});We.Content.defaultProps=He({useSocialColors:!0},Ke);var $e=We;function Ye(){return(Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Qe=K.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Xe=K.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Je=K.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"}),Ze=function(e){return K.a.createElement("svg",Ye({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Qe,Xe,Je)};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}var at=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=tt({},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(tt({},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(Ze,null))}})};at.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};function rt(){return(rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=function(e){return wp.element.createElement(l.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(m.URLInput,rt({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(b.omit)(e,["label","help"]))))};it.defaultProps={label:Object(s.__)("URL",o.i18n),help:null,value:"",onChange:function(){}};var lt=it;function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(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 ut(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 ct=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?ut(Object(n),!0).forEach(function(t){ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},st(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"})),ft=[{id:"opensInNewTab",title:Object(s.__)("Opens in new tab",o.i18n)},{id:"noFollowLink",title:Object(s.__)("Nofollow link",o.i18n)}],pt=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=ft.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:ct,type:"submit"}))))};pt.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,onChangeNewTab:null,onChangeNoFollow:null};var dt=pt,gt=n(9);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)}function bt(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=Object(s.__)("(current %s: %s)",o.i18n),yt=Object(gt.compose)([m.withColorContext,Object(gt.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?bt(n,!0).forEach(function(t){ht(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(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)(vt,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,mt({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})))}),wt=n(8),Ot=n.n(wt);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 Ct(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 _t(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 xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(gt.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),_t(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&&xt(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)}}])&&Ct(a.prototype,r),l&&Ct(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 Et(e){return(Et="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 jt(){return(jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Pt(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 Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(gt.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=Tt(n).apply(this,arguments))||"object"!==Et(a)&&"function"!=typeof a?Bt(t):a).setAttributes=e.setAttributes.bind(Bt(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&&Mt(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,jt({},this.props,{setAttributes:this.setAttributes}))}}])&&Pt(a.prototype,r),l&&Pt(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:Ot.a.func.isRequired}),n},"withSetAttributeHook");function Nt(e){return(Nt="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 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 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")}()}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 Rt(e,t){return!t||"object"!==Nt(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 zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lt(e,t){return(Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(gt.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),Rt(this,zt(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&&Lt(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.clientId,a="ugb-".concat(n.substring(0,7));t.uniqueClass?t.uniqueClass!==a&&document.querySelectorAll(".ugb-".concat(t.uniqueClass)).length>1&&(this.props.attributes.uniqueClass=a):this.props.attributes.uniqueClass=a}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&Dt(a.prototype,r),l&&Dt(a,l),n}(),Ft(t,"defaultProps",{attributes:{},clientId:"",setAttributes:function(){}}),n},"withUniqueClass");Object(R.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",function(e){return[].concat(At(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?It(n,!0).forEach(function(t){Ft(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}({},e,{uniqueClass:{type:"string",default:""}})});var Ut=function(e){return document.querySelector(".ugb-panel--".concat(e))},Ht=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},Vt=function(e){e&&(e.classList.contains("is-active")||e.click())},Gt=function(e){if(e){if(!e.classList.contains("is-opened")){var t=e.querySelector("button");t&&t.click()}Wt(e)}},Wt=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,!xe()){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 Kt(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 Yt=!1,Qt={".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"},Xt={},Jt=[".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"],Zt=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(n,!0).forEach(function(t){$t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Xt[e],{},Qt)};Object(r.a)(function(){if(!Yt&&(Yt=!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=Zt(r);if(i){var l=[];Object.keys(e).some(function(n){return!!t.target.closest(n)&&(l=e[n],!0)}),[].concat(qt(l),Jt).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=Ut(e);if(t){var n=Ht(t);Vt(n),Gt(t)}if(!t){[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some(function(n){var a=document.querySelector(n);return Vt(a),(t=Ut(e))&&Gt(t),!!t})}return t}(i[e])})})}}})}});function en(e){return(en="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 tn(){return(tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 nn(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 an(e,t){return!t||"object"!==en(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 rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ln(e,t){return(ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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 sn=function(e){return Object(gt.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),an(this,rn(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&&ln(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],on({},"ugb--help-tip-".concat(e),!n));return wp.element.createElement(t,tn({},this.props,{className:a}))}}])&&nn(r.prototype,l),o&&nn(r,o),a}(),on(n,"defaultProps",{className:""}),a},"withHelpTip")};function un(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 cn(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){un(i,a,r,l,o,"next",e)}function o(e){un(i,a,r,l,o,"throw",e)}l(void 0)})}}var fn=null,pn={},dn=[],gn=function(e){return e.replace(/^[\w-]+\//,"")},mn=function(){var e=cn(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],fn&&!t){e.next=9;break}return e.next=4,Te()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:fn=e.sent,t&&(pn={},dn=[]);case 9:return e.abrupt("return",fn);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),bn=function(){var e=cn(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=gn(t),pn[n]){e.next=8;break}return e.next=4,Te()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:pn[n]=e.sent;case 8:return e.abrupt("return",pn[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),hn=function(){var e=cn(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(dn[t]){e.next=7;break}return e.next=3,Te()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:dn[t]=e.sent;case 7:return e.abrupt("return",dn[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),vn=function(){var e=cn(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,Te()({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 yn=function(){var e=cn(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,mn(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)}}(),wn=function(){var e=cn(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,mn();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,bn(i);case 8:return o=e.sent,e.abrupt("return",o[t]);case 12:if(!l){e.next=16;break}return e.next=15,hn(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)}}(),On=function(){var e=cn(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,mn();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)}}(),kn=n(35),Cn=n.n(kn);function _n(){return(_n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Sn(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 xn=function(e){var t=e.image,n=e.label,a=e.className,r=Sn(e,["image","label","className"]),i=t?t.match(/https?:/i)?t:o.srcUrl?"".concat(o.srcUrl,"/").concat(t):t:"",u="free"!==r.plan,c=u&&!o.isPro&&o.showProNotice;if(u&&!o.isPro&&!o.showProNotice)return null;var f=p()(["ugb-design-layout-selector__item",a],{"is-premium":r.plan&&!o.isPro&&"free"!==r.plan,"is-locked":c}),d=c?"div":"button";return wp.element.createElement(d,_n({className:f},r),wp.element.createElement("div",{className:"ugb-design-layout-selector__wrapper"},c&&wp.element.createElement(l.Icon,{className:"ugb-design-layout-selector__lock",icon:"lock"}),c&&wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=design-library-learn-more&utm_campaign=learnmore&utm_medium=gutenberg",className:"ugb-design-layout-selector__item-premium-button ugb-shadow-4 button button-secondary",target:"_premium",title:Object(s.__)("Learn More",o.i18n)},Object(s.__)("Learn More",o.i18n)),wp.element.createElement("img",{className:"ugb-design-layout-selector__image",src:i,alt:n})),wp.element.createElement("div",{className:"ugb-design-layout-selector__label"},n))};xn.defaultProps={name:"",label:"",className:""};var En=xn;function jn(){return(jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Pn(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 Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(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 Mn={image:Cn.a,plan:"free",label:"Basic",id:"basic"},Nn=function(e){var t=e.name,n=Bn(Object(i.useState)([]),2),a=n[0],r=n[1],u=Bn(Object(i.useState)([]),2),c=u[0],f=u[1],d=Bn(Object(i.useState)(!1),2),g=d[0],m=d[1],b=Bn(Object(i.useState)(!0),2),h=b[0],v=b[1];Object(i.useEffect)(function(){var t=e.name.split("/")[1],n=Object(R.applyFilters)("stackable.".concat(t,".edit.layouts"),[]).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pn(n,!0).forEach(function(t){Tn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{plan:e.premium?"premium":"free"})});r(n.length?n:[Mn]),yn({type:"block",block:t}).then(function(t){var a;f(t),v(!1),!t.length&&n.length<=1&&e.setAttributes({design:(null===(a=n[0])||void 0===a?void 0:a.value)||Mn.id})})},[]);var y=wp.element.createElement(i.Fragment,null,wp.element.createElement(l.Icon,{icon:"admin-settings"}),Object(s.__)("Pick a layout or design",o.i18n)),w=!!a.length&&wp.element.createElement("div",{className:"ugb-design-layout-selector__layout-items"},(a.filter(function(e){return!Object(R.applyFilters)("stackable.".concat(t,".edit.inspector.layout.excludeDesigns"),[]).includes(e.value)})||[]).map(function(t){return wp.element.createElement(En,jn({className:"ugb-design-layout-selector__layout-item",onClick:function(){t.premium&&!o.isPro||(0,e.setAttributes)({design:t.value})},key:t.label},t))})),O=p()("ugb-design-layout-selector__design-library",{"is-busy":h}),k=!!c.length&&wp.element.createElement("div",{className:O},wp.element.createElement("div",{className:"components-placeholder__fieldset ugb-design-layout-selector__design-container"},h&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__design-items"},(c||[]).map(function(t){var n={image:t.image,plan:t.plan,label:t.label};return wp.element.createElement(En,jn({className:"ugb-design-layout-selector__design-item",onClick:function(){(o.isPro||"free"===t.plan)&&(m(!0),wn(t.id).then(function(t){m(!1),Ce(t.attributes,e.clientId)}).catch(function(){m(!1)}))},key:t.label},n))})))),C=p()("ugb-design-layout-selector",{"is-busy":g});return wp.element.createElement(l.Placeholder,{className:C,label:y},g&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__content"},!!a.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(s.__)("Select a variation to start with.",o.i18n)),w,!!c.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},!!a.length&&Object(s.__)("Or pick from our Design Library.",o.i18n),!a.length&&Object(s.__)("Select a design from our library to start with.",o.i18n)),k),wp.element.createElement("div",{className:"ugb-design-layout-selector__close-button"},wp.element.createElement(l.ButtonGroup,null,wp.element.createElement(l.Button,{isLink:!0,isLarge:!0,onClick:function(){if(a.length){var t=a.find(function(e){return!!o.isPro||!e.premium});(0,e.setAttributes)({design:t.value})}}},Object(s.__)("Skip",o.i18n))),!o.isPro&&o.showProNotice&&(!!a.length&&a.some(function(e){return"premium"===e.plan})||!!c.length&&c.some(function(e){return"premium"===e.plan}))&&wp.element.createElement("p",{className:"ugb-design-layout-selector__notice"},Object(s.__)("You can hide premium hints in the settings",o.i18n))))};Nn.defaultProps={name:""};var In=Nn;function An(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 Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rn=["ugb/column","ugb/columns"];Object(gt.createHigherOrderComponent)(function(e){var t=function(t){var n=void 0!==t.attributes.design&&""===t.attributes.design;return Object(i.useMemo)(function(){return!Rn.includes(t.name)},[])&&n?wp.element.createElement(In,t):wp.element.createElement(e,t)};return t.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(n,!0).forEach(function(t){Dn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.defaultProps||{},{attributes:{}}),t},"withDesignLayoutSelector");function zn(){return(zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ln=function(e){return wp.element.createElement(l.SelectControl,zn({},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)}]}))};Ln.defaultProps={label:Object(s.__)("Mix Blend Mode",o.i18n),help:Object(s.__)("Not supported in all browsers.",o.i18n)};var Fn=Object(gt.compose)(sn("background-blend-mode"))(Ln);function Un(){return(Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Hn=K.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Vn=K.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Gn=K.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"}),Wn=function(e){return K.a.createElement("svg",Un({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Hn,Vn,Gn)},qn=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(Aa,{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(Wn,null)))}})))};qn.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var Kn=qn;function $n(){return($n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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,$n({},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 Qn=Yn,Xn=n(36),Jn=n.n(Xn),Zn=n(37),ea=n.n(Zn),ta=n(38),na=n.n(ta),aa=n(39),ra=n.n(aa);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 la(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 oa=function(e){return wp.element.createElement(i.Fragment,null,wp.element.createElement(so,ia({},e,{className:p()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(la(e.hasDefault?[{label:Object(s.__)("Default",o.i18n),value:"",image:Jn.a}]:[]),[{label:Object(s.__)("Square",o.i18n),value:"square",image:ea.a},{label:Object(s.__)("Circle",o.i18n),value:"circle",image:na.a},{label:Object(s.sprintf)(Object(s.__)("Blob %s",o.i18n),1),value:"blob1",image:ra.a}],la(Object(R.applyFilters)("stackable.image.control.shapes",[])))})),o.showProNotice&&wp.element.createElement(yc,{type:"image"}))};oa.defaultProps={className:"",label:Object(s.__)("Shape",o.i18n),selected:"",hasDefault:!0};var sa=oa,ua=function(e){var t=e.imageData?le(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(sa,{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}))};ua.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var ca=Object(gt.compose)([Object(re.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(ua);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)}function pa(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 da=function(e){var t=e.imageSizes,n=e.value,a=e.className,r=pa(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,fa({},r,{value:n||"large",options:i,className:p()(a,["ugb--help-tip-image-size"])}))};da.defaultProps={className:"",label:Object(s.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var ga=Object(gt.compose)([Object(re.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(da),ma=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,O=s.tabletColumnPaddingBottom,k=void 0===O?"":O,C=s.tabletColumnPaddingRight,_=void 0===C?"":C,S=s.tabletColumnPaddingLeft,x=void 0===S?"":S,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:k,bottom:_,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}))};ma.defaultProps={setAttributes:function(){},label:Object(s.__)("Column Paddings",o.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};function ba(){return(ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),va=function(e){return K.a.createElement("svg",ba({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),ha)};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 wa=K.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"}),Oa=function(e){return K.a.createElement("svg",ya({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),wa)};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 Ca=K.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"}),_a=function(e){return K.a.createElement("svg",ka({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Ca)};function Sa(e){return(Sa="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 xa(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 Ea(e,t){return!t||"object"!==Sa(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 ja(e){return(ja=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ta={desktop:wp.element.createElement(va,null),tablet:wp.element.createElement(_a,null),mobile:wp.element.createElement(Oa,null)},Ba={desktop:Object(s.__)("Desktop",o.i18n),tablet:Object(s.__)("Tablet",o.i18n),mobile:Object(s.__)("Mobile",o.i18n)},Ma=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=Ea(this,ja(t).apply(this,arguments))).state={screen:Ne(),isScreenPickerOpen:Ae(),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&&Pa(e,t)}(t,i["Component"]),n=t,(a=[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),function(e){Me=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:Ta[t],showTooltip:!1,label:Ba[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"},Ba[t]))}))}}])&&xa(n.prototype,a),r&&xa(n,r),t}();Ma.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var Na=Object(gt.withInstanceId)(Ma),Ia=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(Na,{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))};Ia.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var Aa=Ia;function Da(){return(Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ra(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 za(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 La=!!l.__experimentalNumberControl,Fa=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,r=za(e,["allowReset","withInputField","isShiftStepEnabled"]),u=Ra(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,Da({},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&&La&&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)))};Fa.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 Ua=Fa;function Ha(e){return(Ha="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 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 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 Wa=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(n,!0).forEach(function(t){Ga(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}({},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"!==Ha(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=Ne()||"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(Aa,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(Ua,t))};Wa.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:"",min:0,max:100};var qa=Wa,Ka=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-select-control",e.className)},wp.element.createElement(Aa,{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"])))};Ka.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var $a=Ka,Ya=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-text-control",e.className)},wp.element.createElement(Aa,{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 Qa=n(40),Xa=n.n(Qa);function Ja(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 Za(e){return(Za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nr(e){return(nr="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 ar=function(e){return!(!e.length||"object"!==nr(e[0].options))},rr=function(e,t){if(!t.length)return e;if(!ar(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},ir=function(e){return e.value},lr=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},or=function(e){return e.options},sr=function(){return!0},ur=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=Za(t).apply(this,arguments))||"object"!==nr(a)&&"function"!=typeof a?er(n):a).state={value:e.props.value,label:e.props.value?rr(e.props.value,e.props.options):e.props.value,suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(er(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(er(e)),e.onChange=e.onChange.bind(er(e)),e.onFocus=e.onFocus.bind(er(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&&tr(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:rr(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 ar(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(Aa,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(Xa.a,{multiSection:ar(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:ir,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:lr,getSectionSuggestions:or,shouldRenderSuggestions:sr,inputProps:r}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}])&&Ja(n.prototype,a),r&&Ja(n,r),t}();ur.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(s.__)("No matches found",o.i18n),renderOption:null,highlightValueOnFocus:!1};var cr=ur;function fr(){return(fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 pr=K.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"}),dr=function(e){return K.a.createElement("svg",fr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),pr)};function gr(){return(gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 mr=K.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"}),br=function(e){return K.a.createElement("svg",gr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),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)}var vr=K.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"}),yr=function(e){return K.a.createElement("svg",hr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),vr)};function wr(){return(wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Or=K.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"}),kr=function(e){return K.a.createElement("svg",wr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Or)};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 _r=K.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"}),Sr=function(e){return K.a.createElement("svg",Cr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),_r)};function xr(){return(xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),jr=function(e){return K.a.createElement("svg",xr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Er)};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 Tr=K.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"}),Br=function(e){return K.a.createElement("svg",Pr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Tr)};function Mr(){return(Mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ar=[{value:"flex-start",title:Object(s.__)("Align Left",o.i18n),icon:wp.element.createElement(yr,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(br,null)},{value:"flex-end",title:Object(s.__)("Align Right",o.i18n),icon:wp.element.createElement(kr,null)}],Dr=[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(jr,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(Br,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(dr,null)},{value:"stretch",title:Object(s.__)("Stretch",o.i18n),icon:wp.element.createElement(Sr,null)}],Rr={"flex-horizontal":Ar,"flex-vertical":[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(jr,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(Br,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(dr,null)}],"flex-vertical-with-stretch":Dr},zr=function(e){var t="string"==typeof e.controls?Rr[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(Aa,{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){Ir(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(){e.isToggleOnly&&t.value===e.value||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,Mr({key:n},a))}),className:n}))};zr.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1};var Lr=zr;function Fr(){return(Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ur=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(qa,Fr({},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)}}))};Ur.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 Hr=Ur;function Vr(){return(Vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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(41).map(function(e){return{label:e.family,value:e.family}}),Wr=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(cr,Vr({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){Gr.some(function(e){return e.value===t&&(N(t),!0)}),e.onChange(t)}}))};Wr.defaultProps={onChange:function(){},label:Object(s.__)("Font Family",o.i18n),value:""};var qr=Wr;function Kr(){return(Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 $r(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 Qr(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 Xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(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 Zr(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),e}function ei(e){return(ei="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 ti(e){return(ti="function"==typeof Symbol&&"symbol"===ei(Symbol.iterator)?function(e){return ei(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ei(e)})(e)}function ni(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t){return!t||"object"!==ti(t)&&"function"!=typeof t?ni(e):t}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ii(e,t){return(ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function li(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&&ii(e,t)}var oi=n(23),si=n(15),ui=n.n(si);function ci(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 fi=function(){function e(){Xr(this,e),Yr(this,"refs",{})}return Zr(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(pi)}}]),e}();function pi(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function di(e,t){return Object.keys(e).reduce(function(n,a){return-1===t.indexOf(a)&&(n[a]=e[a]),n},{})}var gi={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},mi=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 bi(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function hi(e,t){e.style["".concat(mi,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function vi(e,t){e.style["".concat(mi,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function yi(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function wi(e,t,n){return Math.max(e,Math.min(n,t))}function Oi(e){return"px"===e.substr(-2)?parseFloat(e):0}function ki(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Ci(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function _i(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 Si(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:Si(e.parentNode,t,a)}}function xi(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);ui()(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 ui()(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 Ei(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:Ei(e.parentNode):null}var ji=27,Pi=32,Ti=37,Bi=38,Mi=39,Ni=40,Ii={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ai(e){return null!=e.sortableHandle}var Di=function(){function e(t,n){Xr(this,e),this.container=t,this.onScrollCallback=n}return Zr(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 Ri={axis:Ot.a.oneOf(["x","y","xy"]),contentWindow:Ot.a.any,disableAutoscroll:Ot.a.bool,distance:Ot.a.number,getContainer:Ot.a.func,getHelperDimensions:Ot.a.func,helperClass:Ot.a.string,helperContainer:Ot.a.oneOfType([Ot.a.func,"undefined"==typeof HTMLElement?Ot.a.any:Ot.a.instanceOf(HTMLElement)]),hideSortableGhost:Ot.a.bool,keyboardSortingTransitionDuration:Ot.a.number,lockAxis:Ot.a.string,lockOffset:Ot.a.oneOfType([Ot.a.number,Ot.a.string,Ot.a.arrayOf(Ot.a.oneOfType([Ot.a.number,Ot.a.string]))]),lockToContainerEdges:Ot.a.bool,onSortEnd:Ot.a.func,onSortMove:Ot.a.func,onSortOver:Ot.a.func,onSortStart:Ot.a.func,pressDelay:Ot.a.number,pressThreshold:Ot.a.number,keyCodes:Ot.a.shape({lift:Ot.a.arrayOf(Ot.a.number),drop:Ot.a.arrayOf(Ot.a.number),cancel:Ot.a.arrayOf(Ot.a.number),up:Ot.a.arrayOf(Ot.a.number),down:Ot.a.arrayOf(Ot.a.number)}),shouldCancelStart:Ot.a.func,transitionDuration:Ot.a.number,updateBeforeSortStart:Ot.a.func,useDragHandle:Ot.a.bool,useWindowAsScrollContainer:Ot.a.bool},zi={lift:[Pi],drop:[Pi],cancel:[ji],up:[Bi,Ti],down:[Ni,Mi]},Li={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:zi,shouldCancelStart:function(e){return-1!==[Ii.Input,Ii.Textarea,Ii.Select,Ii.Option,Ii.Button].indexOf(e.target.tagName)||!!yi(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},Fi=Object.keys(Ri);var Ui={index:Ot.a.number.isRequired,collection:Ot.a.oneOfType([Ot.a.number,Ot.a.string]),disabled:Ot.a.bool},Hi=Object.keys(Ui);function Vi(){return(Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Wi=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 Xr(this,n),Yr(ni(ni(t=ai(this,ri(n).call(this,e)))),"state",{}),Yr(ni(ni(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=_i(e);var i=yi(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&&!yi(e.target,Ai))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!==Ii.Anchor||e.preventDefault(),a||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),Yr(ni(ni(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),Yr(ni(ni(t)),"handleMove",function(e){var n=t.props,a=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=_i(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(ni(ni(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),Yr(ni(ni(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),Yr(ni(ni(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:Oi((a=window.getComputedStyle(n)).marginBottom),left:Oi(a.marginLeft),right:Oi(a.marginRight),top:Oi(a.marginTop)}),y=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Oi(t.gridColumnGap),y:Oi(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),O=l({index:h,node:p,collection:d});if(t.node=p,t.margin=v,t.gridGap=y,t.width=O.width,t.height=O.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=Si(p,t.container),t.initialOffset=_i(g?Qr({},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),ci((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===Ii.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)}),b)),bi(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,bi(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var k=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,C=k.top,_=k.left,S=k.width,x=C+k.height,E=_+S;t.axis.x&&(t.minTranslate.x=_-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)):(gi.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),gi.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(ni(ni(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(ni(ni(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)):(gi.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),gi.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),a&&t.sortableGhost&&bi(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,hi(p,null),vi(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(ni(ni(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var a=Qr({},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,hi(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(ni(ni(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),Yr(ni(ni(t)),"handleKeyDown",function(e){var n=e.keyCode,a=t.props,r=a.shouldCancelStart,i=a.keyCodes,l=Qr({},zi,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(ni(ni(t)),"keyLift",function(e){var n=e.target,a=yi(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(ni(ni(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||Ci(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(ni(ni(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),Yr(ni(ni(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),Yr(ni(ni(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,a=e.target,r=yi(a,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?Ai(a):a.sortableInfo)}),function(e){ui()(!(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 fi,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return li(n,q["Component"]),Zr(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:Ei(e.container)||e.container,e.autoScroller=new Di(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return gi[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 gi[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=_i(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];ui()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",a);var i=$r(r,2),l=i[0],o=i[1];return[xi({height:t,lockOffset:l,width:n}),xi({height:t,lockOffset:o,width:n})]}({height:this.height,lockOffset:a,width:this.width}),d=$r(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=wi(this.minTranslate.x+b.x,this.maxTranslate.x-h.x,f.x),f.y=wi(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&&vi(this.helper,o),hi(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},O=l[f].edgeOffset;O||(O=Si(d,this.container),l[f].edgeOffset=O,u&&(l[f].boundingClientRect=Ci(d,r)));var k=f<l.length-1&&l[f+1],C=f>0&&l[f-1];k&&!k.edgeOffset&&(k.edgeOffset=Si(k.node,this.container),u&&(k.boundingClientRect=Ci(k.node,r))),g!==this.index?(t&&vi(d,t),this.axis.x?this.axis.y?y||g<this.index&&(o+i.left-h.width<=O.left&&s+i.top<=O.top+h.height||s+i.top+h.height<=O.top)?(w.x=this.width+this.marginOffset.x,O.left+w.x>this.containerBoundingRect.width-h.width&&k&&(w.x=k.edgeOffset.left-O.left,w.y=k.edgeOffset.top-O.top),null===this.newIndex&&(this.newIndex=g)):(v||g>this.index&&(o+i.left+h.width>=O.left&&s+i.top+h.height>=O.top||s+i.top+h.height>=O.top+b))&&(w.x=-(this.width+this.marginOffset.x),O.left+w.x<this.containerBoundingRect.left+h.width&&C&&(w.x=C.edgeOffset.left-O.left,w.y=C.edgeOffset.top-O.top),this.newIndex=g):v||g>this.index&&o+i.left+h.width>=O.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=g):(y||g<this.index&&o+i.left<=O.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>=O.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=g):(y||g<this.index&&s+i.top<=O.top+h.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),hi(d,w),l[f].translate=w):n&&(this.sortableGhost=d,bi(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var _=u?this.prevIndex:c;a&&this.newIndex!==_&&a({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:_,isKeySorting:u,nodes:l,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return ui()(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(oi.findDOMNode)(this):e(a.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(q.createElement)(e,Kr({ref:t},di(this.props,Fi)))}},{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",ki("sortableList",e)),Yr(t,"defaultProps",Li),Yr(t,"propTypes",Ri),Yr(t,"childContextTypes",{manager:Ot.a.object.isRequired}),n}(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),qi=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 Xr(this,n),ai(this,ri(n).apply(this,arguments))}return li(n,q["Component"]),Zr(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(oi.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 ui()(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(q.createElement)(e,Kr({ref:t},di(this.props,Hi)))}}]),n}(),Yr(t,"displayName",ki("sortableElement",e)),Yr(t,"contextTypes",{manager:Ot.a.object.isRequired}),Yr(t,"propTypes",Ui),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",Vi({className:"ugb-sort-control__item"},n),t)}),Ki=!1,$i=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(Aa,Vi({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(Wi,{onSortStart:function(){return Ki=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,r=e.newIndex;Ki=!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(qi,{key:n,index:n,value:e,onMouseEnter:function(){Ki||t.onHover(n)},onMouseLeave:function(){Ki||t.onHover(null)}})})))};$i.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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(n,!0).forEach(function(t){Xi(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 Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ji={},Zi={};Object(R.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){Zi[e]=t}),Object(R.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===Zi[e]&&(Zi[e]=t)});var el=function(e){var t=function(t){var n=Object(i.useMemo)(function(){return Object(re.select)("core/block-editor").getSelectedBlockClientId()},[]),a=Qi({},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);Zi[n]=r,Ji[i]=e?t.title:null}var l,o;t.onToggle(e)}});if(n&&t.withCaching){var r=Zi[n]||"",l="".concat(n,"-").concat(r),o=Ji[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=Qi({},e.defaultProps||{},{withCaching:!0}),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 nl(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 al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(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 il(e){return(il=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ll(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ol(e,t){return(ol=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sl=1,ul=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=il(t).apply(this,arguments))||"object"!==tl(r)&&"function"!=typeof r?ll(a):r).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(ll(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(ll(n)),n.instanceId=sl++,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&&ol(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?nl(n,!0).forEach(function(t){al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,al({},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?Wt(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&Wt(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"],al({"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)))}}])&&rl(n.prototype,a),r&&rl(n,r),t}();ul.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 cl=el(ul);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)}var pl=function(e){var t=e.blockProps;return wp.element.createElement(cl,fl({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))};pl.defaultProps={className:"",blockProps:{}};var dl=function(e){var t=p()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};dl.defaultProps={tab:"layout"};function gl(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 ml=function(e){var t=gl(Object(i.useState)(!1),2),n=t[0],a=t[1],r=gl(Object(i.useState)(""),2),u=r[0],c=r[1],f=gl(Object(i.useState)([]),2),p=f[0],d=f[1],g=gl(Object(i.useState)(!0),2),m=g[0],b=g[1],h=gl(Object(i.useState)(""),2),v=h[0],y=h[1];return Object(i.useEffect)(function(){var t=!0;return yn({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.__)("E.g. light, dark, red, minimalist...",o.i18n),value:u,onChange:function(e){return c(e)}}),!o.isPro&&wp.element.createElement(Lr,{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(Ul,{designs:p.filter(function(e){var t=e.plan;return!v||t===v}),isBusy:m,onSelect:e.onSelect}),n&&wp.element.createElement(wv,{search:u,selectedBlock:e.block,onClose:function(){a(!1),c("")},onSelect:function(t){e.onSelect(t),a(!1)}}))};ml.defaultProps={block:"",onSelect:function(){}};function bl(){return(bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 hl=K.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"}),vl=K.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}),yl=K.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"}),wl=K.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"}),Ol=function(e){return K.a.createElement("svg",bl({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),hl,vl,yl,wl)};function kl(){return(kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Cl=K.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"}),_l=function(e){return K.a.createElement("svg",kl({xmlns:"http://www.w3.org/2000/svg"},e),Cl)};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 xl=K.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"}),El=function(e){return K.a.createElement("svg",Sl({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),xl)},jl=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(e){var t=e.className;return wp.element.createElement(Ol,{className:t,width:"20",height:"20"})};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=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).state={isOpen:!1,slide:0},e.open=e.open.bind(Nl(e)),e.close=e.close.bind(Nl(e)),e.prev=e.prev.bind(Nl(e)),e.next=e.next.bind(Nl(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&&Il(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)))))}}])&&Bl(n.prototype,a),r&&Bl(n,r),t}();Al.defaultProps={button:Object(s.__)("Learn More",o.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var Dl=Al;function Rl(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 zl=function(e){var t=e.designId,n=e.image,a=e.label,r=e.onClick,o=e.plan,s=e.isPro,u=Rl(Object(i.useState)(!1),2),c=u[0],f=u[1],d=Rl(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),wn(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(Dl,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(i.Fragment,null,e.premiumLabel)})))};zl.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:o.isPro,premiumLabel:Object(s.__)("Go Premium",o.i18n)};var Ll=zl;var Fl=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(Ll,{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)))};Fl.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var Ul=Fl;n(133);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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(n,!0).forEach(function(t){Gl(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}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wl={},ql=function(e){var t=function(t){var n,a=t.initialTab||Wl[t.blockProps.clientId]||(n=t.blockProps,ke[n.name]||(ke[n.name]=Object(he.createBlock)(n.name).attributes),Object.keys(ke[n.name]).every(function(e){return!!Oe.includes(e)||ke[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=Vl({},t,{initialTab:a,onClick:function(e){Wl[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=Vl({},e.defaultProps||{}),t};function Kl(e){return(Kl="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 $l(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 Yl(e){return(Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xl(e,t){return(Xl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jl=[{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"}],Zl=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=Yl(t).apply(this,arguments))||"object"!==Kl(a)&&"function"!=typeof a?Ql(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(Ql(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(Ql(e)),e.select=e.select.bind(Ql(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&&Xl(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"},Jl.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})))}}])&&$l(n.prototype,a),r&&$l(n,r),t}();Zl.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};ql(Zl);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 to=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"}))};to.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var no=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(cr,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(to,eo({},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}))};no.defaultProps={className:"",label:Object(s.__)("Style",o.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};var ao=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 ro(){return(ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 io(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 lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oo=function(e){var t=e.options.filter(function(e){return!e.premium||o.isPro}).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(n,!0).forEach(function(t){lo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(ao,{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,ro({},Object(b.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};oo.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var so=oo,uo=n(42),co=n.n(uo),fo=n(43),po=n.n(fo),go=n(44),mo=n.n(go),bo=n(45),ho=n.n(bo),vo=n(46),yo=n.n(vo),wo=n(47),Oo=n.n(wo),ko=n(48),Co=n.n(ko),_o=n(49),So=n.n(_o),xo=n(50),Eo=n.n(xo),jo=n(51),Po=n.n(jo),To=n(52),Bo=n.n(To),Mo=n(53),No=n.n(Mo),Io=n(54),Ao=n.n(Io);function Do(){return(Do=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ro(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 zo=[{image:Po.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),1),value:"wave-1"},{image:Eo.a,label:Object(s.__)("Straight",o.i18n),value:"straight-1"},{image:Bo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),2),value:"wave-2"},{image:No.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),3),value:"wave-3"},{image:Ao.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),4),value:"wave-4"},{image:Co.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),1),value:"slant-1"},{image:So.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),2),value:"slant-2"},{image:co.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),1),value:"curve-1"},{image:po.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),2),value:"curve-2"},{image:mo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),3),value:"curve-3"},{image:ho.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),1),value:"rounded-1"},{image:yo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),2),value:"rounded-2"},{image:Oo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),3),value:"rounded-3"}];Object(R.addFilter)("stackable.separator.edit.layouts","default",function(e){return Object(b.uniqBy)([].concat(Ro(e),zo),"value")});var Lo=function(e){var t=(Object(R.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter(function(t){return-1===Object(b.findIndex)(e.excludeDesigns,function(e){return e===t.value})});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(so,Do({options:t},Object(b.omit)(e,["label","help"]))))};Lo.defaultProps={label:"",help:"",excludeDesigns:[]};function Fo(){return(Fo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Uo=K.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"}),Ho=function(e){return K.a.createElement("svg",Fo({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Uo)};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 Go=Object(gt.withInstanceId)(Object(gt.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,Vo({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(Gu,{value:e.value}),!e.value&&wp.element.createElement(Ho,{style:{opacity:.3}})),n&&wp.element.createElement(ls,{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))))}));Go.defaultProps={label:Object(s.__)("Icon",o.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var Wo=Go;function qo(){return(qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ko=K.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"}),$o=function(e){return K.a.createElement("svg",qo({"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),Ko)};function Yo(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 Qo(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 Xo=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 Jo(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){Qo(i,a,r,l,o,"next",e)}function o(e){Qo(i,a,r,l,o,"throw",e)}l(void 0)})});return function(){return t.apply(this,arguments)}}(),Jo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(Yo(e.membership.free),Yo(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}})},Zo=n(55);function es(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 ts=null,ns=null,as=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},rs=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},is=function(e){var t=es(Object(i.useState)(""),2),n=t[0],a=t[1],r=es(Object(i.useState)([]),2),u=r[0],c=r[1],f=es(Object(i.useState)(!1),2),d=f[0],g=f[1],m=es(Object(i.useState)(!1),2),b=m[0],h=m[1],v=e.returnSVGValue;Object(i.useEffect)(function(){var e=!0;return clearTimeout(ts),ts=setTimeout(function(){e&&(g(!0),Xo(n).then(function(t){e&&c(t)}).finally(function(){e&&g(!1)}))},500),function(){e=!1,clearTimeout(ts)}},[n]),Object(i.useEffect)(function(){ns||(ns=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!==ns&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:ns})},[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(Zo.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=rs(as(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=rs(as(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(rs(Ee(a,r))):e.onChange(i,a,r),e.onClose()}},wp.element.createElement(jv,{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($o,{height:"40",width:"40"}),Object(s.__)("Drop your SVG here",o.i18n)))))};is.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var ls=is,os=function(e){return wp.element.createElement(zd,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(yg,{label:e.label,className:p()([e.className,"ugb--help-tip-alignment-all"])}))};os.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(s.__)("Align",o.i18n)};var ss=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})};function us(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 cs=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=us(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))};cs.defaultProps={color:"",onClick:function(){},_ref:null};var fs=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)}var ds=K.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),gs=K.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),ms=K.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"}),bs=function(e){return K.a.createElement("svg",ps({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),ds,gs,ms)},hs=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(bs,null)),e.children))};hs.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var vs=hs;function ys(e){return(ys="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 ws(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 Os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ks(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 Cs(e){return(Cs=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 Ss(e,t){return(Ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xs=1,Es=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=Cs(t).apply(this,arguments))||"object"!==ys(a)&&"function"!=typeof a?_s(n):a).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(_s(e)),e.handleClose=e.handleClose.bind(_s(e)),e.handleMouseLeave=e.handleMouseLeave.bind(_s(e)),e.handleMouseEnter=e.handleMouseEnter.bind(_s(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(_s(e)),e.handleReset=e.handleReset.bind(_s(e)),e.buttonRef=Object(i.createRef)(),e.buttonRefColorPreview=Object(i.createRef)(),e.buttonRefImagePreview=Object(i.createRef)(),e.instanceId=xs++,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&&Ss(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?ws(n,!0).forEach(function(t){Os(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,Os({},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(vs,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(fs,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),this.props.renderCustomPreview&&this.props.renderCustomPreview(),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))))}}])&&ks(n.prototype,a),r&&ks(n,r),t}();Es.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,renderCustomPreview:null};var js=Es,Ps=function(e){var t=le(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(Kn,{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(ca,{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(ss,null),e.onChangeAlt&&wp.element.createElement(Qn,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(ga,{label:Object(s.__)("Image Size",o.i18n),value:e.size,onChange:function(t){var n=le(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(Wd,null,wp.element.createElement(qa,{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(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(Wd,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(Wd,{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(Wd,{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(qa,{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(qa,{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(Fn,{label:Object(s.__)("Blend Mode",o.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};Ps.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 Ts=Object(gt.compose)(Object(re.withSelect)(function(e,t){var n=e("core").getMedia;return oe(t.id,e),{imageData:t.id?n(t.id):null}}))(Ps);function Bs(){return(Bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ns=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(Ts,Bs({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id,l=e.width,o=e.height;t((Ms(a={},n("Url"),r),Ms(a,n("Id"),i),Ms(a,n("Width"),l),Ms(a,n("Height"),o),a))},alt:a("Alt"),onChangeAlt:function(e){return t(Ms({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,r,i){var l;t((Ms(l={},n("Size"),e),Ms(l,n("Url"),a),Ms(l,n("Width"),r),Ms(l,n("Height"),i),l))},shape:a("Shape"),onChangeShape:function(e){return t(Ms({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(Ms({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(Ms({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(Ms({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(Ms({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var r;t((Ms(r={},n("Width"),e),Ms(r,n("Height"),a),r))},onChangeTabletWidth:function(e){return t(Ms({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(Ms({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(Ms({},n("Square"),e))},onChangeTabletSquare:function(e){return t(Ms({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(Ms({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(Ms({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(Ms({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(Ms({},n("BlendMode"),e))}},e))};Ns.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Is=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeImage&&wp.element.createElement(Kn,{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(ga,{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=se(e)||oe(e,re.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($a,{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($a,{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($a,{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(qa,{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}))};Is.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 As=Object(gt.compose)(Object(re.withSelect)(function(e,t){var n=e("core").getMedia;return oe(t.id,e),{imageData:t.id?n(t.id):null}}))(Is);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 Rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zs=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(As,Ds({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id;t((Rs(a={},n("Url"),r),Rs(a,n("Id"),i),a))},size:a("Size"),onChangeSize:function(e,a){var r;t((Rs(r={},n("Size"),e),Rs(r,n("Url"),a),r))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(Rs({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(Rs({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(Rs({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(Rs({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(Rs({},n("BackgroundCustomSizeUnit"),e))}},e))};zs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function Ls(){return(Ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Fs=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(js,{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(qr,{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(Wd,null,wp.element.createElement(Hr,Ls({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(Wd,{screen:"tablet"},wp.element.createElement(Hr,Ls({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(Wd,{screen:"mobile"},wp.element.createElement(Hr,Ls({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(Wd,null,wp.element.createElement(qa,{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(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(qa,{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(Wd,null,wp.element.createElement(Hr,Ls({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(Wd,{screen:"tablet"},wp.element.createElement(Hr,Ls({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(Wd,{screen:"mobile"},wp.element.createElement(Hr,Ls({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"})))))};Fs.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 Us=Fs;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 Gs=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Us,Hs({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(Vs({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(Vs({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(Vs({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(Vs({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(Vs({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(Vs({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(Vs({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(Vs({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(Vs({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(Vs({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(Vs({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(Vs({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(Vs({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(Vs({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(Vs({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(Vs({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((Vs(e={},n("FontFamily"),""),Vs(e,n("FontSize"),""),Vs(e,n("TabletFontSize"),""),Vs(e,n("MobileFontSize"),""),Vs(e,n("FontSizeUnit"),"px"),Vs(e,n("TabletFontSizeUnit"),"px"),Vs(e,n("MobileFontSizeUnit"),"px"),Vs(e,n("FontWeight"),""),Vs(e,n("TextTransform"),""),Vs(e,n("LetterSpacing"),""),Vs(e,n("LineHeight"),""),Vs(e,n("TabletLineHeight"),""),Vs(e,n("MobileLineHeight"),""),Vs(e,n("LineHeightUnit"),"em"),Vs(e,n("TabletLineHeightUnit"),"em"),Vs(e,n("MobileLineHeightUnit"),"em"),e))}},e))};Gs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ws=Gs,qs=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(Lr,{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(yt,{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(qa,{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(yt,{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(js,{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(qa,{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(qa,{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(qa,{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(Fn,{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(ss,null),e.onChangeBackgroundMedia&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Wd,null,wp.element.createElement(Kn,{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(Wd,{screen:"tablet"},wp.element.createElement(Kn,{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(Wd,{screen:"mobile"},wp.element.createElement(Kn,{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(qa,{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(Be).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(js,{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(Wd,null,wp.element.createElement($a,{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(Wd,{screen:"tablet"},wp.element.createElement($a,{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(Wd,{screen:"mobile"},wp.element.createElement($a,{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(Wd,null,wp.element.createElement($a,{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(Wd,{screen:"tablet"},wp.element.createElement($a,{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(Wd,{screen:"mobile"},wp.element.createElement($a,{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(Wd,null,wp.element.createElement($a,{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(Wd,{screen:"tablet"},wp.element.createElement($a,{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(Wd,{screen:"mobile"},wp.element.createElement($a,{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(Wd,null,wp.element.createElement(qa,{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(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(Fn,{label:Object(s.__)("Image Blend Mode",o.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};qs.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 Ks=qs;function $s(){return($s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Qs=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(Ks,$s({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(Ys({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(Ys({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(Ys({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(Ys({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ys(a={},n("BackgroundMediaURL"),r),Ys(a,n("BackgroundMediaID"),i),a))},onChangeTabletBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ys(a={},n("TabletBackgroundMediaURL"),r),Ys(a,n("TabletBackgroundMediaID"),i),a))},onChangeMobileBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ys(a={},n("MobileBackgroundMediaURL"),r),Ys(a,n("MobileBackgroundMediaID"),i),a))},onChangeBackgroundTintStrength:function(e,a){var r;t((Ys(r={},n("BackgroundTintStrength"),e),Ys(r,n("BackgroundColor"),a),r))},onChangeFixedBackground:function(e){return t(Ys({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(Ys({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(Ys({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(Ys({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(Ys({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((Ys(e={},n("BackgroundGradientDirection"),""),Ys(e,n("BackgroundGradientBlendMode"),""),Ys(e,n("BackgroundGradientLocation1"),""),Ys(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(Ys({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(Ys({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(Ys({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(Ys({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(Ys({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(Ys({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(Ys({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(Ys({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(Ys({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(Ys({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(Ys({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(Ys({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(Ys({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(Ys({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(Ys({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(Ys({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((Ys(e={},n("BackgroundPosition"),""),Ys(e,n("TabletBackgroundPosition"),""),Ys(e,n("MobileBackgroundPosition"),""),Ys(e,n("BackgroundRepeat"),""),Ys(e,n("TabletBackgroundRepeat"),""),Ys(e,n("MobileBackgroundRepeat"),""),Ys(e,n("BackgroundSize"),""),Ys(e,n("TabletBackgroundSize"),""),Ys(e,n("MobileBackgroundSize"),""),Ys(e,n("BackgroundCustomSize"),""),Ys(e,n("TabletBackgroundCustomSize"),""),Ys(e,n("MobileBackgroundCustomSize"),""),Ys(e,n("BackgroundCustomSizeUnit"),"%"),Ys(e,n("TabletBackgroundCustomSizeUnit"),"%"),Ys(e,n("MobileBackgroundCustomSizeUnit"),"%"),Ys(e,n("BackgroundImageBlendMode"),""),e))}},e))};Qs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Xs=n(56),Js=n.n(Xs),Zs=n(57),eu=n.n(Zs),tu=n(58),nu=n.n(tu),au=n(59),ru=n.n(au);function iu(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 lu=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(lt,{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(ss,null),e.onChangeDesign&&wp.element.createElement(so,{label:Object(s.__)("Design",o.i18n),selected:t,options:[{label:Object(s.__)("Basic",o.i18n),value:"basic",image:Js.a},{label:Object(s.__)("Ghost",o.i18n),value:"ghost",image:eu.a},{label:Object(s.__)("Plain",o.i18n),value:"plain",image:ru.a}].concat(iu(e.onChangeUseSocialColors?[]:[{label:Object(s.__)("Link",o.i18n),value:"link",image:nu.a}]),iu(Object(R.applyFilters)("stackable.button-controls.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(ss,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(Lr,{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(yt,{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(yt,{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(qa,{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(yt,{label:Object(s.__)("Text Color",o.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(ss,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(qa,{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(js,{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(yt,{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(yt,{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(qa,{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(yt,{label:Object(s.__)("Text Color",o.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(ss,null),e.hasTypography&&"link"!==t&&wp.element.createElement(Ws,{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(qa,{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(af,{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(af,{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(qa,{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(qa,{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(qa,{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(ss,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(Wo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(js,{label:Object(s.__)("Adv. Icon Settings",o.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(qa,{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(qa,{label:Object(s.__)("Icon Spacing",o.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};lu.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 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))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(ou,su({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(uu({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",onChangeUrl:function(e){return t(uu({},n("Url"),e))},onChangeNewTab:function(e){return t(uu({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(uu({},n("NoFollow"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(uu({},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(uu({},n("Opacity"),e))},onChangeTextColor:function(e){return t(uu({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(uu({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(uu({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(uu({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(uu({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((uu(e={},n("HoverBackgroundColor"),""),uu(e,n("HoverBackgroundColor2"),""),uu(e,n("HoverBackgroundGradientDirection"),""),uu(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(uu({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(uu({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(uu({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(uu({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(uu({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(uu({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(uu({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(uu({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(uu({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(uu({},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(uu({},n("Icon"),e))},onResetAdvancedIcon:function(){var e;t((uu(e={},n("IconSize"),""),uu(e,n("IconPosition"),""),uu(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(uu({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(uu({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(uu({},n("IconSpacing"),e))}},e))};cu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var fu=cu,pu=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeBorderType&&wp.element.createElement(Lr,{label:Object(s.__)("Borders",o.i18n),controls:[{value:"",title:Object(s.__)("None",o.i18n)},{value:"solid",title:Object(s.__)("Solid",o.i18n)},{value:"dashed",title:Object(s.__)("Dashed",o.i18n)},{value:"dotted",title:Object(s.__)("Dotted",o.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&wp.element.createElement(Du,{label:Object(s.__)("Border Width"),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeBorderWidth({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):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTabletBorderWidth({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):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobileBorderWidth({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):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&wp.element.createElement(yt,{value:e.borderColor,onChange:function(t){e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:Object(s.__)("Border Color",o.i18n)}))};pu.defaultProps={onResetBorder:function(){},borderType:"",onChangeBorderType:function(){},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:function(){},onChangeTabletBorderWidth:function(){},onChangeMobileBorderWidth:function(){},borderColor:"",onChangeBorderColor:function(){}};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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bu=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(du,gu({borderType:a("BorderType"),onChangeBorderType:function(e){return t(mu({},n("BorderType"),e))},onResetBorder:function(){t(mu({},n("BorderType"),""))},borderWidthTop:a("BorderWidthTop"),borderWidthRight:a("BorderWidthRight"),borderWidthBottom:a("BorderWidthBottom"),borderWidthLeft:a("BorderWidthLeft"),tabletBorderWidthTop:a("TabletBorderWidthTop"),tabletBorderWidthRight:a("TabletBorderWidthRight"),tabletBorderWidthBottom:a("TabletBorderWidthBottom"),tabletBorderWidthLeft:a("TabletBorderWidthLeft"),mobileBorderWidthTop:a("MobileBorderWidthTop"),mobileBorderWidthRight:a("MobileBorderWidthRight"),mobileBorderWidthBottom:a("MobileBorderWidthBottom"),mobileBorderWidthLeft:a("MobileBorderWidthLeft"),onChangeBorderWidth:function(e){var a,r=e.top,i=e.right,l=e.bottom,o=e.left,s=e.borderType,u=(mu(a={},n("BorderWidthTop"),r),mu(a,n("BorderWidthRight"),i),mu(a,n("BorderWidthBottom"),l),mu(a,n("BorderWidthLeft"),o),a);s&&(u[n("BorderType")]=s),t(u)},onChangeTabletBorderWidth:function(e){var a,r=e.top,i=e.right,l=e.bottom,o=e.left;t((mu(a={},n("TabletBorderWidthTop"),r),mu(a,n("TabletBorderWidthRight"),i),mu(a,n("TabletBorderWidthBottom"),l),mu(a,n("TabletBorderWidthLeft"),o),a))},onChangeMobileBorderWidth:function(e){var a,r=e.top,i=e.right,l=e.bottom,o=e.left;t((mu(a={},n("MobileBorderWidthTop"),r),mu(a,n("MobileBorderWidthRight"),i),mu(a,n("MobileBorderWidthBottom"),l),mu(a,n("MobileBorderWidthLeft"),o),a))},borderColor:a("BorderColor"),onChangeBorderColor:function(e){var a=e.color,r=e.borderType,i=mu({},n("BorderColor"),a);r&&(i[n("BorderType")]=r),t(i)}},e))};bu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var hu=n(60),vu=n.n(hu),yu=n(61),wu=n.n(yu),Ou=n(62),ku=n.n(Ou);function Cu(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 _u=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(Wo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(so,{label:Object(s.__)("Design",o.i18n),selected:e.design,columns:3,options:[{label:Object(s.__)("Plain",o.i18n),value:"plain",image:vu.a},{label:Object(s.__)("Shaped",o.i18n),value:"shaped",image:wu.a},{label:Object(s.__)("Outlined",o.i18n),value:"outlined",image:ku.a}].concat(Cu(Object(R.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),o.showProNotice&&wp.element.createElement(yc,{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(Lr,{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(yt,{label:Object(s.__)("Icon Color",o.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(ss,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(Lr,{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(yt,{label:Object(s.__)("Icon Shape / Outline Color",o.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(qa,{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(qa,{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(qa,{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(qa,{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(ss,null)),e.onChangeSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Wd,null,wp.element.createElement(qa,{label:Object(s.__)("Icon Size",o.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(qa,{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(qa,{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))};_u.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 Su=_u;function xu(){return(xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Eu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ju=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(Su,xu({icon:a("Icon"),onChangeIcon:function(e){return t(Eu({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(Eu({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(Eu({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(Eu({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(Eu({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(Eu({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(Eu({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(Eu({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(Eu({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(Eu({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(Eu({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(Eu({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(Eu({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(Eu({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(Eu({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(Eu({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(Eu({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(Eu({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(Eu({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(Eu({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(Eu({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(Eu({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(Eu({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(Eu({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(Eu({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(Eu({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(Eu({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(Eu({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(Eu({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(Eu({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(Eu({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(Eu({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(Eu({},n("Size"),e))},onChangeTabletSize:function(e){return t(Eu({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(Eu({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(Eu({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(Eu({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(Eu({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(Eu({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(Eu({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(Eu({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(Eu({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(Eu({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(Eu({},n("BackgroundShapeOffsetVertical"),e))}},e))};ju.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Pu=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(ss,null),wp.element.createElement(fu,{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}))};Pu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var Tu=Pu;function Bu(){return(Bu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nu=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Tu,Bu({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(Mu({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(Mu({},n("UseSocialColors"),e))}},e))};Nu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function Iu(){return(Iu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Au=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(Wd,{screen:"desktop"},wp.element.createElement(af,Iu({},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)},placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(Wd,{screen:"tablet"},wp.element.createElement(af,Iu({},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(Wd,{screen:"mobile"},wp.element.createElement(af,Iu({},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)}}))))};Au.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",placeholder:"",className:"ugb--help-tip-advanced-column-paddings"};var Du=Au;function Ru(){return(Ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 zu(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zu(n,!0).forEach(function(t){Fu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zu(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fu(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,t){var n=ae(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},Hu=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},Vu=function(e){var t=Lu({},e,{value:"string"==typeof e.value?Hu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],Fu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(jv,Ru({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],Fu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=Uu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)};Vu.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(Vu.Content=function(e){var t=Lu({},e,{value:"string"==typeof e.value?Hu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],Fu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(jv.Content,Ru({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],Fu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=Uu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=Lu({},Vu.defaultProps);var Gu=Vu;function Wu(){return(Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 qu=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Gu,Wu({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))};qu.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},qu.Content=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Gu.Content,Wu({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))},qu.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var Ku=qu;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 Yu(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 Qu=Object(gt.withInstanceId)(function(e){var t=Yu(Object(i.useState)(!1),2),n=t[0],a=t[1],r=Yu(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(Ku,p)),(null!==c&&c||null===c&&n)&&wp.element.createElement(ls,{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}))});Qu.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var Xu=Qu;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 Zu=K.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),ec=K.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"}),tc=K.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"}),nc=K.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),ac=K.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),rc=K.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),ic=K.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),lc=K.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"}),oc=K.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"}),sc=K.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"}),uc=K.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"}),cc=function(e){return K.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),Zu,ec,tc,nc,ac,rc,ic,lc,oc,sc,uc)},fc={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)}},pc=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(cc,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||fc[e.type].title),wp.element.createElement("p",null,e.description||fc[e.type].description),e.showButton&&wp.element.createElement(Dl,{button:e.button||fc[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)))};pc.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var dc=pc;function gc(e){return(gc="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 mc(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 bc(e){return(bc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(e,t){return(vc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yc=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=bc(t).apply(this,arguments))||"object"!==gc(a)&&"function"!=typeof a?hc(n):a).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind(hc(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&&vc(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(dc,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}])&&mc(n.prototype,a),r&&mc(n,r),t}();function wc(e){return(wc="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 Oc(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 kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(n,!0).forEach(function(t){Cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 Sc(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 xc(e){return(xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jc(e,t){return(jc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pc=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=xc(t).apply(this,arguments))||"object"!==wc(a)&&"function"!=typeof a?Ec(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(Ec(e)),e.onChangeTop=e.onChangeTop.bind(Ec(e)),e.onChangeRight=e.onChangeRight.bind(Ec(e)),e.onChangeBottom=e.onChangeBottom.bind(Ec(e)),e.onChangeLeft=e.onChangeLeft.bind(Ec(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&&jc(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){return[].concat(_c(this.props.enableTop?[this.props.top]:[]),_c(this.props.enableRight?[this.props.right]:[]),_c(this.props.enableBottom?[this.props.bottom]:[]),_c(this.props.enableLeft?[this.props.left]:[]))}},{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:"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(kc({},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(kc({},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(kc({},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(kc({},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(Aa,{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"})})))}}])&&Sc(n.prototype,a),r&&Sc(n,r),t}();Pc.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(gt.withInstanceId)(Pc);function Tc(){return(Tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Mc=K.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"}),Nc=function(e){return K.a.createElement("svg",Tc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Bc,Mc)};function Ic(){return(Ic=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ac=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Dc=K.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"}),Rc=function(e){return K.a.createElement("svg",Ic({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ac,Dc)};function zc(){return(zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Lc=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Fc=K.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"}),Uc=function(e){return K.a.createElement("svg",zc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Lc,Fc)};function Hc(){return(Hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Vc=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Gc=K.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"}),Wc=function(e){return K.a.createElement("svg",Hc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Vc,Gc)};function qc(e){return(qc="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 Kc(){return(Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Yc(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 Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(n,!0).forEach(function(t){Xc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xc(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 Zc(e){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ef(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tf(e,t){return(tf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nf=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=Zc(t).apply(this,arguments))||"object"!==qc(a)&&"function"!=typeof a?ef(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(ef(e)),e.onChangeAll=e.onChangeAll.bind(ef(e)),e.onChangeTop=e.onChangeTop.bind(ef(e)),e.onChangeRight=e.onChangeRight.bind(ef(e)),e.onChangeBottom=e.onChangeBottom.bind(ef(e)),e.onChangeLeft=e.onChangeLeft.bind(ef(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&&tf(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return Qc({},t,Xc({},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(Qc({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(Qc({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(Qc({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(Qc({},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(Aa,{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(qa,Kc({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(Wc,null))),wp.element.createElement(qa,Kc({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(Uc,null))),wp.element.createElement(qa,Kc({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(Nc,null))),wp.element.createElement(qa,Kc({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(Rc,null))),wp.element.createElement(qa,Kc({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}();nf.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 af=nf,rf=n(63),lf=n.n(rf),of=n(64),sf=n.n(of),uf=n(65),cf=n.n(uf),ff=n(66),pf=n.n(ff),df=n(67),gf=n.n(df),mf=n(68),bf=n.n(mf),hf=n(69),vf=n.n(hf),yf=n(70),wf=n.n(yf),Of=n(71),kf=n.n(Of),Cf=n(72),_f=n.n(Cf),Sf=n(73),xf=n.n(Sf),Ef=n(74),jf=n.n(Ef),Pf=n(75),Tf=n.n(Pf),Bf=n(76),Mf=n.n(Bf),Nf=n(77),If=n.n(Nf),Af=n(78),Df=n.n(Af),Rf=n(79),zf=n.n(Rf),Lf=n(80),Ff=n.n(Lf),Uf=n(81),Hf=n.n(Uf),Vf=n(82),Gf=n.n(Vf),Wf=n(83),qf=n.n(Wf),Kf=n(84),$f=n.n(Kf),Yf=n(85),Qf=n.n(Yf),Xf=n(86),Jf=n.n(Xf),Zf=n(87),ep=n.n(Zf),tp=n(88),np=n.n(tp),ap=n(89),rp=n.n(ap),ip=n(90),lp=n.n(ip),op=n(91),sp=n.n(op),up=n(92),cp=n.n(up);function fp(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 pp(){return(pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gp(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 mp(e,t,n){return t&&gp(e.prototype,t),n&&gp(e,n),e}function bp(e){return(bp="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 hp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vp(e,t){return!t||"object"!==bp(t)&&"function"!=typeof t?hp(e):t}function yp(e){return(yp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Op(e,t){return(Op=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kp(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&&Op(e,t)}function Cp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _p=n(18),Sp=n.n(_p),xp=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 Ep(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 jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach(function(t){Cp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Pp=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(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 jp({},e,{onMouseDown:xp(e.onMouseDown,a),onTouchStart:xp(e.onTouchStart,r)})}),n}return kp(t,q["Component"]),mp(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&&K.a.Children.only(r)}}]),t}();Pp.propTypes={};var Tp=Pp,Bp=function(e){function t(){return dp(this,t),vp(this,yp(t).apply(this,arguments))}return kp(t,q["Component"]),mp(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&&K.a.Children.only(i)}}]),t}();Bp.propTypes={},Bp.defaultProps={count:10};var Mp=Bp;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 Ip(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){Cp(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 Ap=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(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 Ip({},e,{onMouseDown:xp(e.onMouseDown,a),onTouchStart:xp(e.onTouchStart,r)})}),n}return kp(t,q["Component"]),mp(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&&K.a.Children.only(g)}}]),t}();Ap.propTypes={},Ap.defaultProps={left:!0,right:!0};var Dp=Ap;function Rp(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 zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(n),!0).forEach(function(t){Cp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lp=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(t)).call.apply(e,[this].concat(r)))),"autofocus",function(e){e.target.focus()}),Cp(hp(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 zp({},t,{onKeyDown:xp(t.onKeyDown,function(t){return r(t,e)}),onMouseDown:xp(t.onMouseDown,n.autofocus,function(t){return i(t,e)}),onTouchStart:xp(t.onTouchStart,function(t){return l(t,e)})})}),n}return kp(t,q["Component"]),mp(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&&K.a.Children.only(a)}}]),t}();Lp.propTypes={};var Fp=Lp;function Up(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 Gp(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(Up(e.slice(0,r)),[{key:l,val:n}],Up(e.slice(r+1))).sort(Vp(a))}return e}function Wp(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function qp(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 Kp(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,Sp()(!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 Yp=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};var Qp,Xp;1===(Qp=Yp).length&&(Xp=Qp,Qp=function(e,t){return Yp(Xp(e),t)});var Jp=Array.prototype,Zp=(Jp.slice,Jp.map,Math.sqrt(50)),ed=Math.sqrt(10),td=Math.sqrt(2),nd=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>=Zp?10:i>=ed?5:i>=td?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(i>=Zp?10:i>=ed?5:i>=td?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 ad=function(){function e(){dp(this,e),this.domain=[0,1],this.range=[0,1],this.interpolator=null}return mp(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 nd(t[0],t[t.length-1],e||10)}}]),e}();function rd(e,t,n){return Math.min(Math.max(e,t),n)}var id=function e(){var t=this;dp(this,e),Cp(this,"setDomain",function(e){return t.domain=e.slice(),t}),Cp(this,"setRange",function(e){return t.range=e.slice(),t}),Cp(this,"setStep",function(e){return t.step=e,t}),Cp(this,"getValue",function(e){var n=fp(t.domain,2),a=n[0],r=n[1],i=fp(t.range,2),l=i[0],o=i[1],s=t.step,u=(rd(e,a,r)-a)/(r-a);return rd(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]},ld="undefined"!=typeof window&&"undefined"!=typeof document,od=function(){},sd=function(e,t,n,a){var r=a?e-t:e+t;return a?Math.max(n[0],r):Math.min(n[1],r)},ud=function(e,t,n,a){var r=a?e+t:e-t;return a?Math.min(n[1],r):Math.max(n[0],r)},cd=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(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}),Cp(hp(n),"slider",K.a.createRef()),Cp(hp(n),"onKeyDown",function(e,t){var a=["ArrowRight","ArrowUp"],r=["ArrowDown","ArrowLeft"],i=hp(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=sd(m,s,f,u):r.includes(p)&&(b=ud(m,s,f,u));var h=l.map(function(e){return e.key===t?{key:e.key,val:b}:e});n.submitUpdate(h,!0)}}}),Cp(hp(n),"onMouseDown",function(e,t){n.onStart(e,t,!1)}),Cp(hp(n),"onTouchStart",function(e,t){qp(e)||n.onStart(e,t,!0)}),Cp(hp(n),"getEventData",function(e,t){var a,r=hp(n),i=r.state,l=i.pixelToStep,o=i.valueToPerc,s=r.props.vertical;return l.setDomain(Wp(n.slider.current,s)),{value:a=t?l.getValue(Kp(s,e)):l.getValue(s?e.clientY:e.pageX),percent:o.getValue(a)}}),Cp(hp(n),"onMouseMove",function(e){var t=hp(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;i.setDomain(Wp(n.slider.current,s));var c=Gp(r,l,i.getValue(s?e.clientY:e.pageX),u);n.submitUpdate(c)}),Cp(hp(n),"onTouchMove",function(e){var t=hp(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;if(!qp(e)){i.setDomain(Wp(n.slider.current,s));var c=Gp(r,l,i.getValue(Kp(s,e)),u);n.submitUpdate(c)}}),Cp(hp(n),"onMouseUp",function(){var e=hp(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}),ld&&(document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onMouseUp))}),Cp(hp(n),"onTouchEnd",function(){var e=hp(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}),ld&&(document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onTouchEnd))}),n}return kp(t,q["PureComponent"]),mp(t,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(Wp(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){ld&&(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(Wp(c.current,s)),n=t?l.getValue(Kp(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=Gp(i,f,n,u);this.setState({activeHandleID:f},function(){a.submitUpdate(v,!0),t?a.addTouchEvents():a.addMouseEvents()})}},{key:"addMouseEvents",value:function(){ld&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){ld&&(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),Sp()(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,Gp(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,Gp(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,Sp()(!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=K.a.Children.map(this.props.children,function(t){return!t||t.type.name!==Tp.name&&t.type.name!==Mp.name&&t.type.name!==Dp.name&&t.type.name!==Fp.name?t:K.a.cloneElement(t,{scale:a,handles:p,activeHandleID:r,getEventData:e.getEventData,emitKeyboard:c?od:e.onKeyDown,emitMouse:c?od:e.onMouseDown,emitTouch:c?od:e.onTouchStart})});return f?K.a.createElement(q.Fragment,null,K.a.createElement(u,pp({},s,{style:o,className:l,ref:this.slider})),d):K.a.createElement(u,pp({},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 ad,p=new id,d=new id,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=fp(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])),Sp()(h>b,"".concat(Hp," 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),O=w.handles;w.changes&&(s(O.map(function(e){return e.val})),u(O.map(function(e){return e.val}))),g.values=i,g.handles=O}return Object.keys(g).length?g:null}}]),t}();cd.propTypes={},cd.defaultProps={mode:1,step:.1,domain:[0,100],component:"div",rootProps:{},rootStyle:{},vertical:!1,reversed:!1,onChange:od,onUpdate:od,onSlideStart:od,onSlideEnd:od,disabled:!1,flatten:!1,warnOnChanges:!1};var fd=cd;fd.Rail=Tp,fd.Ticks=Mp,fd.Tracks=Dp,fd.Handles=Fp;function pd(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 dd(){return(dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},md={position:"absolute",width:"100%",height:3,backgroundColor:"#e2e4e7",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},bd=function(e){var t=e.getRailProps;return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",dd({style:gd},t())),wp.element.createElement("div",{style:md}))},hd=function(e){var t=pd(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",dd({role:"slider","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":l,disabled:u,style:{left:"".concat(o,"%")}},c(i)))},vd=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 yd(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 wd(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 Od={position:"relative",width:"100%"},kd=[0,100],Cd=function(e){var t=0;return[].concat(wd(e),[100]).map(function(e){var n=e-t;return t+=n,n})},_d=function(e){var t=0;return wd(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},[])},Sd=function(e){return wp.element.createElement(fd,{className:"ugb-column-widths-control__columns-slider",rootStyle:Od,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(wd(r),[100])).some(function(e,t){return 0!==t&&e-n[t-1]<10})){var i=yd(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=Cd(e),r=vd(a,n);return _d(r)})(r,0,i[1]).forEach(function(e,n){t[n].val=e})}return t},step:1,onUpdate:function(t){return e.onChange(Cd(t))},domain:kd,values:_d(e.value)},wp.element.createElement(Tp,null,function(e){var t=e.getRailProps;return wp.element.createElement(bd,{getRailProps:t})}),wp.element.createElement(Fp,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(hd,{key:e.id,handle:e,domain:kd,getHandleProps:n})}))}))};Sd.defaultProps={onChange:function(){},value:[]};var xd=Sd;function Ed(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 jd=function(e){return e.every(function(e){return!e})},Pd=function(e){var t,n={gridTemplateColumns:(t=e.value,t.map(function(e){return(e/100*t.length).toFixed(2)+"fr"}).join(" ")),gridAutoFlow:jd(e.value)?"column":void 0,justifyContent:jd(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=Ed(e.value);r[n]=isNaN(a)?"":a,e.onChange(r)},onBlur:function(){var t=vd(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(vd(t))}})}))};Pd.defaultProps={onChange:function(){},value:[]};var Td=Pd;function Bd(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 Md={"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]},Nd={plain:{2:[{value:"2-1",image:lf.a},{value:"2-2",image:sf.a},{value:"2-3",image:cf.a}],3:[{value:"3-1",image:pf.a},{value:"3-2",image:gf.a},{value:"3-3",image:bf.a},{value:"3-4",image:vf.a}],4:[{value:"4-1",image:wf.a},{value:"4-2",image:kf.a},{value:"4-3",image:_f.a}]},grid:{2:[{value:"2-1",image:xf.a},{value:"2-2",image:jf.a},{value:"2-3",image:Tf.a}],3:[{value:"3-1",image:Mf.a},{value:"3-2",image:If.a},{value:"3-3",image:Df.a},{value:"3-4",image:zf.a}],4:[{value:"4-1",image:Ff.a},{value:"4-2",image:Hf.a},{value:"4-3",image:Gf.a}]},uneven:{2:[{value:"2-1",image:qf.a},{value:"2-2",image:$f.a},{value:"2-3",image:Qf.a}],3:[{value:"3-1",image:Jf.a},{value:"3-2",image:ep.a},{value:"3-3",image:np.a},{value:"3-4",image:rp.a}],4:[{value:"4-1",image:lp.a},{value:"4-2",image:sp.a},{value:"4-3",image:cp.a}]}},Id=function(e){return e.every(function(e){return!e})},Ad=function(e){var t=Bd(Object(i.useState)(-1),2),n=(t[0],t[1]),a=Bd(Object(i.useState)(!0),2),r=(a[0],a[1]),o=Bd(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=Nd[f],g=wp.element.createElement(l.Button,{className:"ugb-columns-width-control__reset",disabled:e.forceBlank?Id(e.values):Object(b.isEqual)(e.values,Md[u||"".concat(e.columns,"-1")]),onClick:function(){c(""),e.forceBlank?e.onChange(["","","","","",""]):e.onChange(Md[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(Aa,{label:e.label,afterButton:e.hasIndividualControls?g:null,screens:e.screens}),d[e.columns]&&wp.element.createElement(so,{options:d[e.columns],onChange:function(t){n(-1),r(!0),c(t),e.onChange(Md[t])}}),e.hasIndividualControls&&wp.element.createElement(i.Fragment,null,wp.element.createElement(xd,{value:Id(e.values)?Md["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),wp.element.createElement(Td,{value:Id(e.values)?e.forceBlank?e.values:Md["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),!1))};Ad.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 Rd=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(Wd,{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(Wd,{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(Wd,{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))}})})))};Rd.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},onChange:null,placeholder:"",screens:["desktop","tablet","mobile"]};var zd=Rd;function Ld(e){return(Ld="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 Fd(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 Ud(e){return(Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vd(e,t){return(Vd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gd=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=Ud(t).apply(this,arguments))||"object"!==Ld(a)&&"function"!=typeof a?Hd(n):a).state={screen:Ne()},e.onScreenChange=e.onScreenChange.bind(Hd(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&&Vd(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)}}])&&Fd(n.prototype,a),r&&Fd(n,r),t}();Gd.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};var Wd=Object(gt.withInstanceId)(Gd);function qd(){return(qd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Kd=K.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 K.a.createElement("svg",qd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Kd)};function Yd(){return(Yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),Xd=function(e){return K.a.createElement("svg",Yd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Qd)};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 Zd=K.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"}),eg=function(e){return K.a.createElement("svg",Jd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Zd)};function tg(){return(tg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),ag=function(e){return K.a.createElement("svg",tg({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),ng)};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=K.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"}),lg=function(e){return K.a.createElement("svg",rg({viewBox:"0 0 50 50",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=K.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"}),ug=function(e){return K.a.createElement("svg",og({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),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=K.a.createElement("path",{d:"M15.2 10.8H24c6.2 0 10.8 2.1 10.8 8.6 0 6.2-4.6 9-10.6 9h-4v10.2h-4.9V10.8zm8.6 13.7c4.2 0 6.1-1.7 6.1-5.1 0-3.5-2.2-4.6-6.3-4.6h-3.4v9.7h3.6z"}),pg=function(e){return K.a.createElement("svg",cg({viewBox:"0 0 50 50",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=[{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(Xd,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(eg,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(ag,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(lg,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(ug,null)},{value:"p",title:Object(s.sprintf)(Object(s._x)("%s","Nth Title",o.i18n),Object(s.__)("Paragraph",o.i18n)),icon:wp.element.createElement(pg,null)}],mg=function(e){return wp.element.createElement(Lr,dg({},e,{className:"ugb-heading-buttons-control",controls:gg}))};mg.defaultProps={label:Object(s.sprintf)(Object(s._x)("%s HTML Tag","component"),Object(s.__)("Title",o.i18n)),value:gg[0].value};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 hg=[{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"}],vg=function(e){var t=e.justified,n=e.className;return wp.element.createElement(Lr,bg({},Object(b.omit)(e,["justified"]),{className:p()([n,"ugb-align-buttons-control"]),controls:hg.filter(function(e){return!!t||"justify"!==e.value})}))};vg.defaultProps={className:"",label:Object(s.__)("Align",o.i18n),value:hg[0].value,justified:!1};var yg=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)}function Og(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 kg={Edit:function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Og(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,wg({},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)))}};kg.Edit.defaultProps={styles:null,mainClass:!0},kg.Save=function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Og(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,wg({},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)))},kg.Save.defaultProps={styles:null,mainClass:!0};var Cg=n(24);function _g(e){return(_g="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 Sg(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 xg(e){return(xg=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 jg(e,t){return(jg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pg=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=xg(t).apply(this,arguments))||"object"!==_g(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&&jg(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(){Cg.initialize&&(this.codeMirror=Object(Cg.initialize)(this.uniqueId,W()(Cg.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})}}])&&Sg(n.prototype,a),r&&Sg(n,r),t}();Pg.defaultProps={value:"",onChange:function(){},editorSettings:{}};function Tg(){return(Tg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Bg=K.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"}),Mg=function(e){return K.a.createElement("svg",Tg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Bg)};function Ng(){return(Ng=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"curve-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ag=K.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"}),Dg=function(e){return K.a.createElement("svg",Ng({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),Ig,Ag)};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 zg=K.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"}),Lg=function(e){return K.a.createElement("svg",Rg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),zg)};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 Ug=K.a.createElement("filter",{id:"curve-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Hg=K.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"}),Vg=function(e){return K.a.createElement("svg",Fg({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),Ug,Hg)};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 Wg=K.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"}),qg=function(e){return K.a.createElement("svg",Gg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Wg)};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 $g=K.a.createElement("filter",{id:"curve-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Yg=K.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"}),Qg=function(e){return K.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),$g,Yg)};function Xg(){return(Xg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),Zg=function(e){return K.a.createElement("svg",Xg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Jg)};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 tm=K.a.createElement("filter",{id:"curve-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),nm=K.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"}),am=function(e){return K.a.createElement("svg",em({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),tm,nm)};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 im=K.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"}),lm=function(e){return K.a.createElement("svg",rm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),im)};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 sm=K.a.createElement("filter",{id:"curve-3-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),um=K.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"}),cm=function(e){return K.a.createElement("svg",om({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),sm,um)};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 pm=K.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"}),dm=function(e){return K.a.createElement("svg",fm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),pm)};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 mm=K.a.createElement("filter",{id:"curve-3-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),bm=K.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"}),hm=function(e){return K.a.createElement("svg",gm({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),mm,bm)};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 ym=K.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"}),wm=function(e){return K.a.createElement("svg",vm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ym)};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 km=K.a.createElement("filter",{id:"rounded-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Cm=K.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"}),_m=function(e){return K.a.createElement("svg",Om({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),km,Cm)};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 xm=K.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 K.a.createElement("svg",Sm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),xm)};function jm(){return(jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Pm=K.a.createElement("filter",{id:"rounded-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Tm=K.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"}),Bm=function(e){return K.a.createElement("svg",jm({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),Pm,Tm)};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 Nm=K.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"}),Im=function(e){return K.a.createElement("svg",Mm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Nm)};function Am(){return(Am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"rounded-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Rm=K.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"}),zm=function(e){return K.a.createElement("svg",Am({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),Dm,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 Fm=K.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"}),Um=function(e){return K.a.createElement("svg",Lm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Fm)};function Hm(){return(Hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Vm=K.a.createElement("filter",{id:"rounded-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Gm=K.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"}),Wm=function(e){return K.a.createElement("svg",Hm({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),Vm,Gm)};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 Km=K.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"}),$m=function(e){return K.a.createElement("svg",qm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Km)};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 Qm=K.a.createElement("filter",{id:"rounded-3-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Xm=K.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"}),Jm=function(e){return K.a.createElement("svg",Ym({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),Qm,Xm)};function Zm(){return(Zm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 eb=K.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"}),tb=function(e){return K.a.createElement("svg",Zm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),eb)};function nb(){return(nb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ab=K.a.createElement("filter",{id:"rounded-3-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),rb=K.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"}),ib=function(e){return K.a.createElement("svg",nb({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),ab,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 ob=K.a.createElement("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}),sb=function(e){return K.a.createElement("svg",lb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ob)};function ub(){return(ub=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"slant-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),fb=K.a.createElement("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}),pb=function(e){return K.a.createElement("svg",ub({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),cb,fb)};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 gb=K.a.createElement("path",{d:"M1610 210H-10V.5l1620 183.4z"}),mb=function(e){return K.a.createElement("svg",db({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),gb)};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 hb=K.a.createElement("filter",{id:"slant-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),vb=K.a.createElement("path",{d:"M-10 .5v10l1620 183.4v-10z"}),yb=function(e){return K.a.createElement("svg",bb({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),hb,vb)};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 Ob=K.a.createElement("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}),kb=function(e){return K.a.createElement("svg",wb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ob)};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 _b=K.a.createElement("filter",{id:"slant-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Sb=K.a.createElement("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}),xb=function(e){return K.a.createElement("svg",Cb({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),_b,Sb)};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 jb=K.a.createElement("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}),Pb=function(e){return K.a.createElement("svg",Eb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),jb)};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 Bb=K.a.createElement("filter",{id:"slant-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Mb=K.a.createElement("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}),Nb=function(e){return K.a.createElement("svg",Tb({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),Bb,Mb)};function Ib(){return(Ib=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ab=K.a.createElement("path",{d:"M-10 210h1620V105.2H-10z"}),Db=function(e){return K.a.createElement("svg",Ib({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ab)};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 zb=K.a.createElement("filter",{id:"straight-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Lb=K.a.createElement("path",{d:"M-10 121.6h1620v-16.4H-10z"}),Fb=function(e){return K.a.createElement("svg",Rb({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),zb,Lb)};function Ub(){return(Ub=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Hb=K.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"}),Vb=function(e){return K.a.createElement("svg",Ub({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Hb)};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 Wb=K.a.createElement("filter",{id:"wave-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),qb=K.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 K.a.createElement("svg",Gb({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),Wb,qb)};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 Yb=K.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"}),Qb=function(e){return K.a.createElement("svg",$b({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Yb)};function Xb(){return(Xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Jb=K.a.createElement("filter",{id:"wave-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Zb=K.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"}),eh=function(e){return K.a.createElement("svg",Xb({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),Jb,Zb)};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 nh=K.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"}),ah=function(e){return K.a.createElement("svg",th({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),nh)};function rh(){return(rh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"wave-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),lh=K.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"}),oh=function(e){return K.a.createElement("svg",rh({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),ih,lh)};function sh(){return(sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 uh=K.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"}),ch=function(e){return K.a.createElement("svg",sh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),uh)};function fh(){return(fh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ph=K.a.createElement("filter",{id:"wave-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),dh=K.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"}),gh=function(e){return K.a.createElement("svg",fh({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),ph,dh)};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 bh=K.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"}),hh=function(e){return K.a.createElement("svg",mh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),bh)};function vh(){return(vh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 yh=K.a.createElement("filter",{id:"wave-3-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),wh=K.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"}),Oh=function(e){return K.a.createElement("svg",vh({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),yh,wh)};function kh(){return(kh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),_h=function(e){return K.a.createElement("svg",kh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ch)};function Sh(){return(Sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 xh=K.a.createElement("filter",{id:"wave-3-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Eh=K.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"}),jh=function(e){return K.a.createElement("svg",Sh({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),xh,Eh)};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=K.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"}),Bh=function(e){return K.a.createElement("svg",Ph({viewBox:"0 0 1600 200",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=K.a.createElement("filter",{id:"wave-4-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ih=K.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"}),Ah=function(e){return K.a.createElement("svg",Mh({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),Nh,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=K.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"}),zh=function(e){return K.a.createElement("svg",Dh({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 Fh=K.a.createElement("filter",{id:"wave-4-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Uh=K.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"}),Hh={"wave-1":{default:{shape:Vb,shadow:Kb},inverted:{shape:Qb,shadow:eh}},"wave-2":{default:{shape:ah,shadow:oh},inverted:{shape:ch,shadow:gh}},"wave-3":{default:{shape:hh,shadow:Oh},inverted:{shape:_h,shadow:jh}},"wave-4":{default:{shape:Bh,shadow:Ah},inverted:{shape:zh,shadow:function(e){return K.a.createElement("svg",Lh({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),Fh,Uh)}}},"curve-1":{default:{shape:Mg,shadow:Dg},inverted:{shape:Lg,shadow:Vg}},"curve-2":{default:{shape:qg,shadow:Qg},inverted:{shape:Zg,shadow:am}},"curve-3":{default:{shape:lm,shadow:cm},inverted:{shape:dm,shadow:hm}},"slant-1":{default:{shape:sb,shadow:pb},inverted:{shape:mb,shadow:yb}},"slant-2":{default:{shape:kb,shadow:xb},inverted:{shape:Pb,shadow:Nb}},"straight-1":{default:{shape:Db,shadow:Fb},inverted:{shape:Db,shadow:Fb}},"rounded-1":{default:{shape:wm,shadow:_m},inverted:{shape:Em,shadow:Bm}},"rounded-2":{default:{shape:Im,shadow:zm},inverted:{shape:Um,shadow:Wm}},"rounded-3":{default:{shape:$m,shadow:Jm},inverted:{shape:tb,shadow:ib}}},Vh=function(e){var t=Hh[e.design||"wave-1"][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)};Vh.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},Vh.Save=function(e){return wp.element.createElement(Vh,e)};function Gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wh=function(e){var t,n=p()([e.className,"ugb-img"],(Gh(t={},"wp-image-".concat(e.imageId),e.imageId),Gh(t,"ugb-img--shape",e.shape),Gh(t,"ugb-image--shape-stretch",e.shapeStretch),Gh(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})};Wh.defaultProps={imageId:"",alt:"",src:"",size:"full",width:"",height:"",shape:"",shapeStretch:!1,shadow:""};var qh=n(19),Kh=wp.element.createElement(l.Icon,{icon:function(){return jl(wp.element.createElement(_l,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}}),$h=wp.element.createElement(l.Icon,{icon:function(){return jl(wp.element.createElement(El,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}});var Yh=Object(gt.compose)([Object(re.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(re.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(re.select)("core/block-editor").getSelectedBlockClientIds?wp.element.createElement(i.Fragment,null,r&&wp.element.createElement(qh.PluginBlockSettingsMenuItem,{icon:Kh,label:Object(s.__)("Group into Container",o.i18n),onClick:t}),u&&wp.element.createElement(qh.PluginBlockSettingsMenuItem,{icon:$h,label:Object(s.__)("Ungroup from Container",o.i18n),onClick:n})):null}),Qh=(Object(re.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientIds;return t?{clientIds:t()}:{}})(Yh),Object(gt.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(qh.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())))})),Xh=Object(gt.compose)([Object(re.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(re.withDispatch)(function(e,t){var n=t.clientId;return{setJSONBlockAttributes:function(e){if(n)try{var t=JSON.parse(e);Ce(t,n)}catch(e){console.error(e)}}}})])(Qh);Object(re.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientId;return t?{clientId:t()}:{}})(Xh);function Jh(){return(Jh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Zh(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 ev=function(e){var t=e.blockTag,n=e.className,a=e.backgroundAttrName,r=e.blockProps,l=e.showBackground,o=e.showVideoBackground,u=Zh(e,["blockTag","className","backgroundAttrName","blockProps","showBackground","showVideoBackground"]),c=p()([n],{"ugb--has-background-overlay":l&&V(a,r.attributes)});return wp.element.createElement(t,Jh({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,Be(a)&&wp.element.createElement("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),Be(r)&&wp.element.createElement("video",{className:u,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:r}),Be(l)&&wp.element.createElement("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:l}))}(a,r))};ev.defaultProps={className:"",backgroundAttrName:"%s",blockProps:{},showBackground:!0,showVideoBackground:!0,blockTag:"div"};var tv=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))))};tv.defaultProps={onRequestClose:function(){}};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)}var av=K.a.createElement("path",{d:"M38 12H12v26h26V12z"}),rv=function(e){return K.a.createElement("svg",nv({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),av)};function iv(){return(iv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 lv=K.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"}),ov=function(e){return K.a.createElement("svg",iv({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),lv)};function sv(){return(sv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 uv=K.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"}),cv=function(e){return K.a.createElement("svg",sv({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),uv)},fv=void 0;function pv(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 dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pv(n,!0).forEach(function(t){gv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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")}()}var bv=function(e){var t=mv(Object(i.useState)([]),2),n=t[0],a=t[1],r=mv(Object(i.useState)({}),2),l=r[0],u=r[1],c=mv(Object(i.useState)({}),2),f=c[0],d=c[1],g=mv(Object(i.useState)(0),2),m=g[0],h=g[1],v=mv(Object(i.useState)(0),2),y=v[0],w=v[1],O=mv(Object(i.useState)(0),2),k=O[0],C=O[1],_=mv(Object(i.useState)(""),2),S=_[0],x=_[1],E=e.viewBy;Object(i.useEffect)(function(){On().then(function(e){var t=e.reduce(function(e,t){if(!e[t]){if(Object(re.select)("core/edit-post").getPreference("hiddenBlockTypes").includes(t))return e;if(!Object(re.select)("core/blocks").getBlockType(t))return e;e[t]={count:0,name:t,label:t?Object(re.select)("core/blocks").getBlockType(t).title:""}}return e},{});d(t)})},[]),Object(i.useEffect)(function(){Object.keys(f).length&&yn({type:"block",search:e.search,mood:e.mood,colors:e.colors}).then(function(t){var n=Object.keys(f).reduce(function(e,t){return e[t]=dv({},f[t]),e},{}),r=Object.keys(l).reduce(function(e,t){return void 0!==e[t]&&(e[t].num=0),e},{}),i=0,o=0,s=t.reduce(function(t,n){var a=n.block,l=n.type,s=n.plan,u=n.categories;if("block"===l&&t[a]&&t[a].count++,e.forceBlock&&e.forceBlock!==n.block||(o++,"free"===s&&i++),u&&3===u.length){var c=Object(b.last)(u);void 0===r[c]&&(r[c]={label:Object(b.startCase)(Object(b.last)(u)),num:0,isPremium:"free"!==s}),r[c].num++}return t},dv({},n));u(r),h(o),w(i),C(o-i),a(Object(b.orderBy)(s,["title"],["asc"]))})},[f,e.search,e.mood]);var j=Object(i.useMemo)(function(){var e=Object.keys(l);return o.isPro||e.sort(function(e,t){return!l[e].isPremium&&l[t].isPremium?-1:l[e].isPremium&&!l[t].isPremium?1:0}),e},[JSON.stringify(l)]),P=!0;return wp.element.createElement("ul",{className:"ugb-block-list"},wp.element.createElement(Lr,{controls:[{value:"ui-kits",title:Object(s.__)("UI Kits",o.i18n)},{value:"block-designs",title:Object(s.__)("Block Designs",o.i18n)}],value:E,onChange:e.onChangeViewBy,isSmall:!0,fullwidth:!1,isToggleOnly:!0}),"ui-kits"===E&&j.reduce(function(t,n,a){var r=(""===S&&0===a||S===n)&&!e.forceBlock,i=p()({"is-active":r,"is-disabled":e.forceBlock}),s=l[n].label,u=l[n].num;return!o.isPro&&P&&l[n].isPremium&&(t.push(wp.element.createElement(ss,null)),P=!1),t.push(wp.element.createElement("li",{key:a},wp.element.createElement("div",{className:i,"data-count":u,onClick:function(){e.forceBlock||(x(n),e.onSelect({block:"",plan:"",categories:[n]}))},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":r?"true":"false"},s,wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"".concat(s,"-count")},u)))),t},[]),"block-designs"===E&&wp.element.createElement("li",null,wp.element.createElement("div",{className:""===S?"is-active":"","data-count":m,onClick:function(){x(""),e.onSelect({block:"",plan:"",categories:[]})},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":""===S?"true":"false"},Object(s.__)("All Block Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"all-count"},m))),"block-designs"===E&&m!==y&&wp.element.createElement("li",null,wp.element.createElement("div",{className:"free"===S?"is-active":"","data-count":y,onClick:function(){x("free"),e.onSelect({block:"",plan:"free",categories:[]})},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":"free"===S?"true":"false"},Object(s.__)("Free Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"free-count"},y)),wp.element.createElement("div",{className:"premium"===S?"is-active":"","data-count":k,onClick:function(){x("premium"),e.onSelect({block:"",plan:"premium",categories:[]})},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":"premium"===S?"true":"false"},Object(s.__)("Premium Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"premium-count"},k))),"block-designs"===E&&wp.element.createElement(ss,null),"block-designs"===E&&n.map(function(t,n){var a=S===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||(x(t.name),e.onSelect({block:t.name,plan:"",categories:[]}))},onKeyPress:function(e){13===e.keyCode&&fv.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)))}))};bv.defaultProps={search:"",mood:"",colors:[],categories:[],onSelect:function(){},forceBlock:"",viewBy:"",onChangeViewBy:function(){}};var hv=bv;function vv(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 yv=function(e){var t=vv(Object(i.useState)(e.search),2),n=t[0],a=t[1],r=vv(Object(i.useState)(),2),u=r[0],c=r[1],f=vv(Object(i.useState)(""),2),p=f[0],d=f[1],g=vv(Object(i.useState)([]),2),m=g[0],h=g[1],v=vv(Object(i.useState)(3),2),y=v[0],w=v[1],O=vv(Object(i.useState)([]),2),k=O[0],C=O[1],_=vv(Object(i.useState)(!0),2),S=_[0],x=_[1],E=vv(Object(i.useState)(!1),2),j=E[0],P=E[1],T=vv(Object(i.useState)(e.selectedBlock?"block-designs":"ui-kits"),2),B=T[0],M=T[1],N=vv(Se("stk__design_library_dev_mode",!1),2),I=N[0],A=N[1],D=vv(Object(i.useState)(""),2),R=D[0],z=D[1];Object(i.useEffect)(function(){return c(e.selectedBlock)},[e.selectedBlock]);var L=vv(Object(i.useState)(n),2),F=L[0],U=L[1],H=vv(Object(i.useState)(null),2),V=H[0],G=H[1];Object(i.useEffect)(function(){V&&(clearTimeout(V),G(null)),G(setTimeout(function(){U(n)},500))},[n]),Object(i.useEffect)(function(){var e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()},[]),Object(i.useEffect)(function(){j&&(C([]),x(!0)),yn({type:"block",block:u,plan:p,categories:m,search:F,reset:j}).then(function(e){C(e),R||e.some(function(e){return o.isPro||"free"!==e.plan?!!o.isPro&&(z(Object(b.last)(e.categories)),!0):(z(Object(b.last)(e.categories)),!0)})}).finally(function(){x(!1),P(!1)})},[u,p,m,F,j]);var W=Object(i.useMemo)(function(){var t=e.selectedBlock?k.filter(function(t){return t.block===e.selectedBlock}):k;return"ui-kits"===B&&0===m.length&&(t=t.filter(function(e){return e.categories.includes(R)})),t},[e.selectedBlock,k,B,m.length,R]);return 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.__)("E.g. light, dark, red, minimalist...",o.i18n),value:n,onChange:function(e){return a(e)},"data-testid":"input-search",type:"search"}),wp.element.createElement("div",{className:"ugb-modal-design-library__filters"},wp.element.createElement(hv,{search:n,categories:m,forceBlock:e.selectedBlock,viewBy:B,onSelect:function(e){var t=e.block,n=e.plan,a=e.categories;c(t),d(n),h(a)},onChangeViewBy:M}))),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:I,onChange:function(e){vn(e).then(function(){P(!0)}),A(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 P(!0)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(rv,{width:"18",height:"18"}),className:2===y?"is-active":"",label:Object(s.__)("Large preview",o.i18n),onClick:function(){return w(2)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(cv,{width:"18",height:"18"}),className:3===y?"is-active":"",label:Object(s.__)("Medium preview",o.i18n),onClick:function(){return w(3)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(ov,{width:"18",height:"18"}),className:4===y?"is-active":"",label:Object(s.__)("Small preview",o.i18n),onClick:function(){return w(4)}})),wp.element.createElement("div",{className:"ugb-modal-design-library__designs"},wp.element.createElement(Ul,{columns:y,onSelect:e.onSelect,isBusy:S,designs:W}))))};yv.defaultProps={search:"",selectedBlock:"",onClose:function(){},onSelect:function(){}};var wv=yv;function Ov(){return(Ov=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 kv=K.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"}),Cv=function(e){return K.a.createElement("svg",Ov({"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),kv)};function _v(){return(_v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 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 xv=function(){return wp.element.createElement(Cv,{className:"ugb-icon-is-loading"})},Ev=function(e){var t=Sv(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(xv,null);var o=e.value?e.value.replace(/-.*$/,""):e.prefix,s=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(o&&s){var u=Ee(o,s);return u?wp.element.createElement(i.RawHTML,l,u):(function(e,t){var n=je(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var r=240,i=setInterval(function(){var l=je(e,t);window.FontAwesome?(clearInterval(i),n(l)):r--<0&&(clearInterval(i),a(!1))},250)})}(o,s).then(r),wp.element.createElement(xv,null))}var c=Ee("far","smile");return wp.element.createElement(i.RawHTML,_v({},l,{className:"".concat(e.className," ugb-icon--faded")}),c)};Ev.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=Ee(n,a);return wp.element.createElement(i.RawHTML,t,r)},Ev.defaultProps={prefix:"",iconName:"",value:""};var jv=Ev;function Pv(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 Tv=1,Bv=function(e){var t=Pv(Object(i.useState)("ugb-admin-setting-".concat(Tv++)),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))};Bv.defaultProps={label:""};var Mv=Bv,Nv=function(e){return wp.element.createElement(Mv,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)};Nv.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:function(){}};var Iv=Nv,Av=function(e){return wp.element.createElement(Mv,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)))};Av.defaultProps={label:"",value:!1,placeholder:"",onChange:function(){},disabled:Object(s.__)("Disabled",o.i18n),enabled:Object(s.__)("Enabled",o.i18n),width:""};var Dv=Av;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")}()}function zv(e){return(zv="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 Lv(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 Fv(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 Uv(e){return(Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vv(e,t){return(Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gv=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=Uv(t).apply(this,arguments))||"object"!==zv(a)&&"function"!=typeof a?Hv(n):a).toggleBlock=e.toggleBlock.bind(Hv(e)),e.enableAllBlocks=e.enableAllBlocks.bind(Hv(e)),e.disableAllBlocks=e.disableAllBlocks.bind(Hv(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&&Vv(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(Lv(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))))})))}}])&&Fv(n.prototype,r),u&&Fv(n,u),t}(),Wv=null,qv=function(){var e=Rv(Object(i.useState)(!1),2),t=e[0],n=e[1],a=Rv(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(Iv,{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(Wv),Wv=setTimeout(function(){new c.models.Settings({stackable_global_content_selector:e}).save()},500),l(e)}}),wp.element.createElement(Dv,{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)}))},Kv=function(e){var t=Rv(Object(i.useState)(!1),2),n=t[0],a=t[1],r=Rv(Object(i.useState)(!1),2),u=r[0],f=r[1],p=Rv(Object(i.useState)(!1),2),d=p[0],g=p[1],m=Rv(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)))};Kv.defaultProps={showProNoticesOption:!1},Object(r.a)(function(){Object(i.render)(wp.element.createElement(Gv,{blocks:u,disabledBlocks:o.disabledBlocks}),document.querySelector(".s-settings-wrapper")),Object(i.render)(wp.element.createElement(Kv,{showProNoticesOption:o.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),Object(i.render)(wp.element.createElement(qv,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,O=5,k=0;l=function(){return t.unstable_now()>=k},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"):O=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,_=C.port2;C.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();k=e+O;try{y(!0,e)?_.postMessage(null):(v=!1,y=null)}catch(e){throw _.postMessage(null),e}}else v=!1},a=function(e){y=e,v||(v=!0,_.postMessage(null))},r=function(e,n){w=g(function(){e(t.unstable_now())},n)},i=function(){m(w),w=-1}}function S(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,S(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,S(T,e),null===x(P)&&e===x(T)&&(D?i():D=!0,r(z,s-o))):(e.sortIndex=l,S(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 O(e){return(O="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 k(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 _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return(S=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"!==O(a)&&"function"!=typeof a?_(n):a,x(_(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(_(e)),e.outsideClickHandler=e.outsideClickHandler.bind(_(e)),e.onKeyPressHandler=e.onKeyPressHandler.bind(_(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&&S(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,O=void 0===w?"":w,k=t.hoverEffect,C=void 0===k?"":k,_=t.ghostToNormalEffect,S=void 0!==_&&_,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,W=p()([r,"ugb-button","ugb-button--size-".concat(u)],(x(e={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":S},"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(O),O),e)),q=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:q,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},wp.element.createElement("a",{className:W},H&&"link"!==h&&wp.element.createElement(i.Fragment,null,!F&&wp.element.createElement(Gu,{value:H}),F&&wp.element.createElement(Xu,{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(dt,{value:j,onChange:I,newTab:T,noFollow:M,onChangeNewTab:D,onChangeNoFollow:z,disableSuggestions:this.props.disableSuggestions})))}}])&&k(n.prototype,a),r&&k(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,O=e.shadow,k=void 0===O?0:O,C=e.iconPosition,_=void 0!==C&&C,S=e.hoverEffect,E=void 0===S?"":S,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(k),"basic"===h&&k),x(t,"ugb-button--design-".concat(h),"basic"!==h),x(t,"ugb-button--has-icon",c),x(t,"ugb-button--icon-position-".concat(_),_),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(Gu.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 O=me(v,{min:m,max:g});O&&(h.fontSize="".concat(O).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 k=me(v,{min:m,max:g});k&&(h.fontSize="".concat(k).concat(i("FontSizeUnit")||"px"));var C=me(y,{min:m,max:g});C?h.fontSize="".concat(C).concat(i("TabletFontSizeUnit")||"px"):(k||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(13),W=n.n(G);var q=n(2),K=n.n(q);function $(){return($=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Y=K.a.createElement("circle",{cx:50,cy:50,r:50}),Q=function(e){return K.a.createElement("svg",$({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),Y)};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 J=K.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),Z=function(e){return K.a.createElement("svg",X({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),J)};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=K.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 ne={circle:Q,square:Z,blob1:function(e){return K.a.createElement("svg",ee({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),te)}},ae=function(e){var t=Object(R.applyFilters)("stackable.image.shape.svgs",ne);return t[e]?t[e]:null},re=n(10),ie=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||""}},le=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]||ie(e):null};window._stackableCachedImageData={};var oe=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},se=function(e){return window._stackableCachedImageData[e]||null};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 Oe=["uniqueClass"],ke={};var Ce=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(re.select)("core/block-editor"),r=a.getBlockName,i=a.getSelectedBlockClientId,l=a.getBlockAttributes,o=a.hasMultiSelection,s=a.getMultiSelectedBlockClientIds,u=Object(re.dispatch)("core/block-editor"),c=u.updateBlockAttributes,f=Object(re.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)})};function _e(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=_e(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]},xe=function(){return void 0!==he.registerBlockCollection};var Ee=function(e,t){var n=je(e,t);return n?n.html[0]:""},je=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},Pe=n(17),Te=n.n(Pe);n(29);var Be=function(e){return e.match(/(mp4|webm|ogg)$/i)},Me="desktop",Ne=function(){return Me},Ie=!1,Ae=function(){return Ie};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)}function Re(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?Re(n,!0).forEach(function(t){Le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(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 Fe=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 ze({},e,(Le(i={},"".concat(r,"Url"),a("".concat(r,"Url"))),Le(i,"onChange".concat(Object(b.upperFirst)(r),"Url"),function(e){return t(Le({},n("".concat(r,"Url")),e))}),i))},{});return wp.element.createElement($e,De({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(Le({},n("NewTab"),e))},isSelected:e.isSelected},r,e))};Fe.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(Fe.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 ze({},e,Le({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement($e.Content,De({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 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 He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(n,!0).forEach(function(t){Ve(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 Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 We=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,Ge({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 He({},e,(Ve(n={},"".concat(t,"Url"),""),Ve(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});We.defaultProps=He({useSocialColors:!0},qe),We.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,Ge({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:be[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var Ke=Object.keys(be).reduce(function(e,t){var n;return He({},e,(Ve(n={},"".concat(t,"Url"),""),Ve(n,"show".concat(Object(b.upperFirst)(t)),null),n))},{});We.Content.defaultProps=He({useSocialColors:!0},Ke);var $e=We;function Ye(){return(Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Qe=K.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Xe=K.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Je=K.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"}),Ze=function(e){return K.a.createElement("svg",Ye({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Qe,Xe,Je)};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}var at=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=tt({},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(tt({},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(Ze,null))}})};at.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};function rt(){return(rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=function(e){return wp.element.createElement(l.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(m.URLInput,rt({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(b.omit)(e,["label","help"]))))};it.defaultProps={label:Object(s.__)("URL",o.i18n),help:null,value:"",onChange:function(){}};var lt=it;function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(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 ut(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 ct=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?ut(Object(n),!0).forEach(function(t){ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},st(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"})),ft=[{id:"opensInNewTab",title:Object(s.__)("Opens in new tab",o.i18n)},{id:"noFollowLink",title:Object(s.__)("Nofollow link",o.i18n)}],pt=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=ft.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:ct,type:"submit"}))))};pt.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,onChangeNewTab:null,onChangeNoFollow:null};var dt=pt,gt=n(9);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)}function bt(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=Object(s.__)("(current %s: %s)",o.i18n),yt=Object(gt.compose)([m.withColorContext,Object(gt.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?bt(n,!0).forEach(function(t){ht(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(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)(vt,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,mt({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})))}),wt=n(8),Ot=n.n(wt);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 Ct(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 _t(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 xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(gt.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),_t(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&&xt(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)}}])&&Ct(a.prototype,r),l&&Ct(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 Et(e){return(Et="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 jt(){return(jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Pt(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 Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object(gt.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=Tt(n).apply(this,arguments))||"object"!==Et(a)&&"function"!=typeof a?Bt(t):a).setAttributes=e.setAttributes.bind(Bt(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&&Mt(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,jt({},this.props,{setAttributes:this.setAttributes}))}}])&&Pt(a.prototype,r),l&&Pt(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:Ot.a.func.isRequired}),n},"withSetAttributeHook");function Nt(e){return(Nt="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 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 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")}()}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 Rt(e,t){return!t||"object"!==Nt(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 zt(e){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lt(e,t){return(Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(gt.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),Rt(this,zt(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&&Lt(e,t)}(n,i["Component"]),a=n,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.clientId,a="ugb-".concat(n.substring(0,7));t.uniqueClass?t.uniqueClass!==a&&document.querySelectorAll(".".concat(t.uniqueClass)).length>1&&(this.props.attributes.uniqueClass=a):this.props.attributes.uniqueClass=a}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&Dt(a.prototype,r),l&&Dt(a,l),n}(),Ft(t,"defaultProps",{attributes:{},clientId:"",setAttributes:function(){}}),n},"withUniqueClass");Object(R.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",function(e){return[].concat(At(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?It(n,!0).forEach(function(t){Ft(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}({},e,{uniqueClass:{type:"string",default:""}})});var Ut=function(e){return document.querySelector(".ugb-panel--".concat(e))},Ht=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},Vt=function(e){e&&(e.classList.contains("is-active")||e.click())},Gt=function(e){if(e){if(!e.classList.contains("is-opened")){var t=e.querySelector("button");t&&t.click()}Wt(e)}},Wt=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,!xe()){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 Kt(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 Yt=!1,Qt={".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"},Xt={},Jt=[".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"],Zt=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(n,!0).forEach(function(t){$t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Xt[e],{},Qt)};Object(r.a)(function(){if(!Yt&&(Yt=!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=Zt(r);if(i){var l=[];Object.keys(e).some(function(n){return!!t.target.closest(n)&&(l=e[n],!0)}),[].concat(qt(l),Jt).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=Ut(e);if(t){var n=Ht(t);Vt(n),Gt(t)}if(!t){[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some(function(n){var a=document.querySelector(n);return Vt(a),(t=Ut(e))&&Gt(t),!!t})}return t}(i[e])})})}}})}});function en(e){return(en="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 tn(){return(tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 nn(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 an(e,t){return!t||"object"!==en(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 rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ln(e,t){return(ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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 sn=function(e){return Object(gt.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),an(this,rn(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&&ln(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],on({},"ugb--help-tip-".concat(e),!n));return wp.element.createElement(t,tn({},this.props,{className:a}))}}])&&nn(r.prototype,l),o&&nn(r,o),a}(),on(n,"defaultProps",{className:""}),a},"withHelpTip")};function un(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 cn(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var i=e.apply(t,n);function l(e){un(i,a,r,l,o,"next",e)}function o(e){un(i,a,r,l,o,"throw",e)}l(void 0)})}}var fn=null,pn={},dn=[],gn=function(e){return e.replace(/^[\w-]+\//,"")},mn=function(){var e=cn(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],fn&&!t){e.next=9;break}return e.next=4,Te()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:fn=e.sent,t&&(pn={},dn=[]);case 9:return e.abrupt("return",fn);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),bn=function(){var e=cn(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=gn(t),pn[n]){e.next=8;break}return e.next=4,Te()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:pn[n]=e.sent;case 8:return e.abrupt("return",pn[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),hn=function(){var e=cn(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(dn[t]){e.next=7;break}return e.next=3,Te()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:dn[t]=e.sent;case 7:return e.abrupt("return",dn[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),vn=function(){var e=cn(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,Te()({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 yn=function(){var e=cn(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,mn(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)}}(),wn=function(){var e=cn(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,mn();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,bn(i);case 8:return o=e.sent,e.abrupt("return",o[t]);case 12:if(!l){e.next=16;break}return e.next=15,hn(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)}}(),On=function(){var e=cn(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,mn();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)}}(),kn=n(35),Cn=n.n(kn);function _n(){return(_n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Sn(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 xn=function(e){var t=e.image,n=e.label,a=e.className,r=Sn(e,["image","label","className"]),i=t?t.match(/https?:/i)?t:o.srcUrl?"".concat(o.srcUrl,"/").concat(t):t:"",u="free"!==r.plan,c=u&&!o.isPro&&o.showProNotice;if(u&&!o.isPro&&!o.showProNotice)return null;var f=p()(["ugb-design-layout-selector__item",a],{"is-premium":r.plan&&!o.isPro&&"free"!==r.plan,"is-locked":c}),d=c?"div":"button";return wp.element.createElement(d,_n({className:f},r),wp.element.createElement("div",{className:"ugb-design-layout-selector__wrapper"},c&&wp.element.createElement(l.Icon,{className:"ugb-design-layout-selector__lock",icon:"lock"}),c&&wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=design-library-learn-more&utm_campaign=learnmore&utm_medium=gutenberg",className:"ugb-design-layout-selector__item-premium-button ugb-shadow-4 button button-secondary",target:"_premium",title:Object(s.__)("Learn More",o.i18n)},Object(s.__)("Learn More",o.i18n)),wp.element.createElement("img",{className:"ugb-design-layout-selector__image",src:i,alt:n})),wp.element.createElement("div",{className:"ugb-design-layout-selector__label"},n))};xn.defaultProps={name:"",label:"",className:""};var En=xn;function jn(){return(jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Pn(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 Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(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 Mn={image:Cn.a,plan:"free",label:"Basic",id:"basic"},Nn=function(e){var t=e.name,n=Bn(Object(i.useState)([]),2),a=n[0],r=n[1],u=Bn(Object(i.useState)([]),2),c=u[0],f=u[1],d=Bn(Object(i.useState)(!1),2),g=d[0],m=d[1],b=Bn(Object(i.useState)(!0),2),h=b[0],v=b[1];Object(i.useEffect)(function(){var t=e.name.split("/")[1],n=Object(R.applyFilters)("stackable.".concat(t,".edit.layouts"),[]).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pn(n,!0).forEach(function(t){Tn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{plan:e.premium?"premium":"free"})});r(n.length?n:[Mn]),yn({type:"block",block:t}).then(function(t){var a;f(t),v(!1),!t.length&&n.length<=1&&e.setAttributes({design:(null===(a=n[0])||void 0===a?void 0:a.value)||Mn.id})})},[]);var y=wp.element.createElement(i.Fragment,null,wp.element.createElement(l.Icon,{icon:"admin-settings"}),Object(s.__)("Pick a layout or design",o.i18n)),w=!!a.length&&wp.element.createElement("div",{className:"ugb-design-layout-selector__layout-items"},(a.filter(function(e){return!Object(R.applyFilters)("stackable.".concat(t,".edit.inspector.layout.excludeDesigns"),[]).includes(e.value)})||[]).map(function(t){return wp.element.createElement(En,jn({className:"ugb-design-layout-selector__layout-item",onClick:function(){t.premium&&!o.isPro||(0,e.setAttributes)({design:t.value})},key:t.label},t))})),O=p()("ugb-design-layout-selector__design-library",{"is-busy":h}),k=!!c.length&&wp.element.createElement("div",{className:O},wp.element.createElement("div",{className:"components-placeholder__fieldset ugb-design-layout-selector__design-container"},h&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__design-items"},(c||[]).map(function(t){var n={image:t.image,plan:t.plan,label:t.label};return wp.element.createElement(En,jn({className:"ugb-design-layout-selector__design-item",onClick:function(){(o.isPro||"free"===t.plan)&&(m(!0),wn(t.id).then(function(t){m(!1),Ce(t.attributes,e.clientId)}).catch(function(){m(!1)}))},key:t.label},n))})))),C=p()("ugb-design-layout-selector",{"is-busy":g});return wp.element.createElement(l.Placeholder,{className:C,label:y},g&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(l.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__content"},!!a.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(s.__)("Select a variation to start with.",o.i18n)),w,!!c.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},!!a.length&&Object(s.__)("Or pick from our Design Library.",o.i18n),!a.length&&Object(s.__)("Select a design from our library to start with.",o.i18n)),k),wp.element.createElement("div",{className:"ugb-design-layout-selector__close-button"},wp.element.createElement(l.ButtonGroup,null,wp.element.createElement(l.Button,{isLink:!0,isLarge:!0,onClick:function(){if(a.length){var t=a.find(function(e){return!!o.isPro||!e.premium});(0,e.setAttributes)({design:t.value})}}},Object(s.__)("Skip",o.i18n))),!o.isPro&&o.showProNotice&&(!!a.length&&a.some(function(e){return"premium"===e.plan})||!!c.length&&c.some(function(e){return"premium"===e.plan}))&&wp.element.createElement("p",{className:"ugb-design-layout-selector__notice"},Object(s.__)("You can hide premium hints in the settings",o.i18n))))};Nn.defaultProps={name:""};var In=Nn;function An(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 Dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rn=["ugb/column","ugb/columns"];Object(gt.createHigherOrderComponent)(function(e){var t=function(t){var n=void 0!==t.attributes.design&&""===t.attributes.design;return Object(i.useMemo)(function(){return!Rn.includes(t.name)},[])&&n?wp.element.createElement(In,t):wp.element.createElement(e,t)};return t.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(n,!0).forEach(function(t){Dn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.defaultProps||{},{attributes:{}}),t},"withDesignLayoutSelector");function zn(){return(zn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ln=function(e){return wp.element.createElement(l.SelectControl,zn({},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)}]}))};Ln.defaultProps={label:Object(s.__)("Mix Blend Mode",o.i18n),help:Object(s.__)("Not supported in all browsers.",o.i18n)};var Fn=Object(gt.compose)(sn("background-blend-mode"))(Ln);function Un(){return(Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Hn=K.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Vn=K.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Gn=K.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"}),Wn=function(e){return K.a.createElement("svg",Un({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Hn,Vn,Gn)},qn=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(Aa,{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(Wn,null)))}})))};qn.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var Kn=qn;function $n(){return($n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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,$n({},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 Qn=Yn,Xn=n(36),Jn=n.n(Xn),Zn=n(37),ea=n.n(Zn),ta=n(38),na=n.n(ta),aa=n(39),ra=n.n(aa);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 la(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 oa=function(e){return wp.element.createElement(i.Fragment,null,wp.element.createElement(so,ia({},e,{className:p()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(la(e.hasDefault?[{label:Object(s.__)("Default",o.i18n),value:"",image:Jn.a}]:[]),[{label:Object(s.__)("Square",o.i18n),value:"square",image:ea.a},{label:Object(s.__)("Circle",o.i18n),value:"circle",image:na.a},{label:Object(s.sprintf)(Object(s.__)("Blob %s",o.i18n),1),value:"blob1",image:ra.a}],la(Object(R.applyFilters)("stackable.image.control.shapes",[])))})),o.showProNotice&&wp.element.createElement(yc,{type:"image"}))};oa.defaultProps={className:"",label:Object(s.__)("Shape",o.i18n),selected:"",hasDefault:!0};var sa=oa,ua=function(e){var t=e.imageData?le(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(sa,{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}))};ua.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var ca=Object(gt.compose)([Object(re.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(ua);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)}function pa(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 da=function(e){var t=e.imageSizes,n=e.value,a=e.className,r=pa(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,fa({},r,{value:n||"large",options:i,className:p()(a,["ugb--help-tip-image-size"])}))};da.defaultProps={className:"",label:Object(s.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var ga=Object(gt.compose)([Object(re.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(da),ma=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,O=s.tabletColumnPaddingBottom,k=void 0===O?"":O,C=s.tabletColumnPaddingRight,_=void 0===C?"":C,S=s.tabletColumnPaddingLeft,x=void 0===S?"":S,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:k,bottom:_,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}))};ma.defaultProps={setAttributes:function(){},label:Object(s.__)("Column Paddings",o.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};function ba(){return(ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),va=function(e){return K.a.createElement("svg",ba({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),ha)};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 wa=K.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"}),Oa=function(e){return K.a.createElement("svg",ya({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),wa)};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 Ca=K.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"}),_a=function(e){return K.a.createElement("svg",ka({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Ca)};function Sa(e){return(Sa="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 xa(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 Ea(e,t){return!t||"object"!==Sa(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 ja(e){return(ja=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ta={desktop:wp.element.createElement(va,null),tablet:wp.element.createElement(_a,null),mobile:wp.element.createElement(Oa,null)},Ba={desktop:Object(s.__)("Desktop",o.i18n),tablet:Object(s.__)("Tablet",o.i18n),mobile:Object(s.__)("Mobile",o.i18n)},Ma=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=Ea(this,ja(t).apply(this,arguments))).state={screen:Ne(),isScreenPickerOpen:Ae(),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&&Pa(e,t)}(t,i["Component"]),n=t,(a=[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),function(e){Me=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:Ta[t],showTooltip:!1,label:Ba[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"},Ba[t]))}))}}])&&xa(n.prototype,a),r&&xa(n,r),t}();Ma.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var Na=Object(gt.withInstanceId)(Ma),Ia=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(Na,{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))};Ia.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var Aa=Ia;function Da(){return(Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ra(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 za(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 La=!!l.__experimentalNumberControl,Fa=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,r=za(e,["allowReset","withInputField","isShiftStepEnabled"]),u=Ra(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,Da({},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&&La&&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)))};Fa.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 Ua=Fa;function Ha(e){return(Ha="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 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 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 Wa=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(n,!0).forEach(function(t){Ga(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}({},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"!==Ha(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=Ne()||"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(Aa,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(Ua,t))};Wa.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:"",min:0,max:100};var qa=Wa,Ka=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-select-control",e.className)},wp.element.createElement(Aa,{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"])))};Ka.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var $a=Ka,Ya=function(e){return wp.element.createElement(l.BaseControl,{help:e.help,className:p()("ugb-advanced-text-control",e.className)},wp.element.createElement(Aa,{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 Qa=n(40),Xa=n.n(Qa);function Ja(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 Za(e){return(Za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nr(e){return(nr="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 ar=function(e){return!(!e.length||"object"!==nr(e[0].options))},rr=function(e,t){if(!t.length)return e;if(!ar(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},ir=function(e){return e.value},lr=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},or=function(e){return e.options},sr=function(){return!0},ur=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=Za(t).apply(this,arguments))||"object"!==nr(a)&&"function"!=typeof a?er(n):a).state={value:e.props.value,label:e.props.value?rr(e.props.value,e.props.options):e.props.value,suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(er(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(er(e)),e.onChange=e.onChange.bind(er(e)),e.onFocus=e.onFocus.bind(er(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&&tr(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:rr(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 ar(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(Aa,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(Xa.a,{multiSection:ar(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:ir,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:lr,getSectionSuggestions:or,shouldRenderSuggestions:sr,inputProps:r}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}])&&Ja(n.prototype,a),r&&Ja(n,r),t}();ur.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(s.__)("No matches found",o.i18n),renderOption:null,highlightValueOnFocus:!1};var cr=ur;function fr(){return(fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 pr=K.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"}),dr=function(e){return K.a.createElement("svg",fr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),pr)};function gr(){return(gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 mr=K.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"}),br=function(e){return K.a.createElement("svg",gr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),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)}var vr=K.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"}),yr=function(e){return K.a.createElement("svg",hr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),vr)};function wr(){return(wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Or=K.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"}),kr=function(e){return K.a.createElement("svg",wr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Or)};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 _r=K.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"}),Sr=function(e){return K.a.createElement("svg",Cr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),_r)};function xr(){return(xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),jr=function(e){return K.a.createElement("svg",xr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Er)};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 Tr=K.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"}),Br=function(e){return K.a.createElement("svg",Pr({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Tr)};function Mr(){return(Mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ar=[{value:"flex-start",title:Object(s.__)("Align Left",o.i18n),icon:wp.element.createElement(yr,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(br,null)},{value:"flex-end",title:Object(s.__)("Align Right",o.i18n),icon:wp.element.createElement(kr,null)}],Dr=[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(jr,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(Br,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(dr,null)},{value:"stretch",title:Object(s.__)("Stretch",o.i18n),icon:wp.element.createElement(Sr,null)}],Rr={"flex-horizontal":Ar,"flex-vertical":[{value:"flex-start",title:Object(s.__)("Align Top",o.i18n),icon:wp.element.createElement(jr,null)},{value:"center",title:Object(s.__)("Align Center",o.i18n),icon:wp.element.createElement(Br,null)},{value:"flex-end",title:Object(s.__)("Align Bottom",o.i18n),icon:wp.element.createElement(dr,null)}],"flex-vertical-with-stretch":Dr},zr=function(e){var t="string"==typeof e.controls?Rr[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(Aa,{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){Ir(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(){e.isToggleOnly&&t.value===e.value||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,Mr({key:n},a))}),className:n}))};zr.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1};var Lr=zr;function Fr(){return(Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ur=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(qa,Fr({},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)}}))};Ur.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 Hr=Ur;function Vr(){return(Vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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(41).map(function(e){return{label:e.family,value:e.family}}),Wr=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(cr,Vr({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){Gr.some(function(e){return e.value===t&&(N(t),!0)}),e.onChange(t)}}))};Wr.defaultProps={onChange:function(){},label:Object(s.__)("Font Family",o.i18n),value:""};var qr=Wr;function Kr(){return(Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 $r(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 Qr(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 Xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(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 Zr(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),e}function ei(e){return(ei="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 ti(e){return(ti="function"==typeof Symbol&&"symbol"===ei(Symbol.iterator)?function(e){return ei(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ei(e)})(e)}function ni(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ai(e,t){return!t||"object"!==ti(t)&&"function"!=typeof t?ni(e):t}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ii(e,t){return(ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function li(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&&ii(e,t)}var oi=n(23),si=n(15),ui=n.n(si);function ci(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 fi=function(){function e(){Xr(this,e),Yr(this,"refs",{})}return Zr(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(pi)}}]),e}();function pi(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function di(e,t){return Object.keys(e).reduce(function(n,a){return-1===t.indexOf(a)&&(n[a]=e[a]),n},{})}var gi={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},mi=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 bi(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function hi(e,t){e.style["".concat(mi,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function vi(e,t){e.style["".concat(mi,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function yi(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function wi(e,t,n){return Math.max(e,Math.min(n,t))}function Oi(e){return"px"===e.substr(-2)?parseFloat(e):0}function ki(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Ci(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function _i(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 Si(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:Si(e.parentNode,t,a)}}function xi(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);ui()(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 ui()(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 Ei(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:Ei(e.parentNode):null}var ji=27,Pi=32,Ti=37,Bi=38,Mi=39,Ni=40,Ii={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ai(e){return null!=e.sortableHandle}var Di=function(){function e(t,n){Xr(this,e),this.container=t,this.onScrollCallback=n}return Zr(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 Ri={axis:Ot.a.oneOf(["x","y","xy"]),contentWindow:Ot.a.any,disableAutoscroll:Ot.a.bool,distance:Ot.a.number,getContainer:Ot.a.func,getHelperDimensions:Ot.a.func,helperClass:Ot.a.string,helperContainer:Ot.a.oneOfType([Ot.a.func,"undefined"==typeof HTMLElement?Ot.a.any:Ot.a.instanceOf(HTMLElement)]),hideSortableGhost:Ot.a.bool,keyboardSortingTransitionDuration:Ot.a.number,lockAxis:Ot.a.string,lockOffset:Ot.a.oneOfType([Ot.a.number,Ot.a.string,Ot.a.arrayOf(Ot.a.oneOfType([Ot.a.number,Ot.a.string]))]),lockToContainerEdges:Ot.a.bool,onSortEnd:Ot.a.func,onSortMove:Ot.a.func,onSortOver:Ot.a.func,onSortStart:Ot.a.func,pressDelay:Ot.a.number,pressThreshold:Ot.a.number,keyCodes:Ot.a.shape({lift:Ot.a.arrayOf(Ot.a.number),drop:Ot.a.arrayOf(Ot.a.number),cancel:Ot.a.arrayOf(Ot.a.number),up:Ot.a.arrayOf(Ot.a.number),down:Ot.a.arrayOf(Ot.a.number)}),shouldCancelStart:Ot.a.func,transitionDuration:Ot.a.number,updateBeforeSortStart:Ot.a.func,useDragHandle:Ot.a.bool,useWindowAsScrollContainer:Ot.a.bool},zi={lift:[Pi],drop:[Pi],cancel:[ji],up:[Bi,Ti],down:[Ni,Mi]},Li={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:zi,shouldCancelStart:function(e){return-1!==[Ii.Input,Ii.Textarea,Ii.Select,Ii.Option,Ii.Button].indexOf(e.target.tagName)||!!yi(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},Fi=Object.keys(Ri);var Ui={index:Ot.a.number.isRequired,collection:Ot.a.oneOfType([Ot.a.number,Ot.a.string]),disabled:Ot.a.bool},Hi=Object.keys(Ui);function Vi(){return(Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Wi=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 Xr(this,n),Yr(ni(ni(t=ai(this,ri(n).call(this,e)))),"state",{}),Yr(ni(ni(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=_i(e);var i=yi(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&&!yi(e.target,Ai))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!==Ii.Anchor||e.preventDefault(),a||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),Yr(ni(ni(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),Yr(ni(ni(t)),"handleMove",function(e){var n=t.props,a=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=_i(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(ni(ni(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),Yr(ni(ni(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),Yr(ni(ni(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:Oi((a=window.getComputedStyle(n)).marginBottom),left:Oi(a.marginLeft),right:Oi(a.marginRight),top:Oi(a.marginTop)}),y=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Oi(t.gridColumnGap),y:Oi(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),O=l({index:h,node:p,collection:d});if(t.node=p,t.margin=v,t.gridGap=y,t.width=O.width,t.height=O.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=Si(p,t.container),t.initialOffset=_i(g?Qr({},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),ci((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===Ii.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)}),b)),bi(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,bi(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var k=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,C=k.top,_=k.left,S=k.width,x=C+k.height,E=_+S;t.axis.x&&(t.minTranslate.x=_-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)):(gi.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),gi.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(ni(ni(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(ni(ni(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)):(gi.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),gi.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),a&&t.sortableGhost&&bi(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,hi(p,null),vi(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(ni(ni(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var a=Qr({},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,hi(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(ni(ni(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),Yr(ni(ni(t)),"handleKeyDown",function(e){var n=e.keyCode,a=t.props,r=a.shouldCancelStart,i=a.keyCodes,l=Qr({},zi,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(ni(ni(t)),"keyLift",function(e){var n=e.target,a=yi(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(ni(ni(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||Ci(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(ni(ni(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),Yr(ni(ni(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),Yr(ni(ni(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,a=e.target,r=yi(a,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?Ai(a):a.sortableInfo)}),function(e){ui()(!(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 fi,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return li(n,q["Component"]),Zr(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:Ei(e.container)||e.container,e.autoScroller=new Di(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return gi[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 gi[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=_i(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];ui()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",a);var i=$r(r,2),l=i[0],o=i[1];return[xi({height:t,lockOffset:l,width:n}),xi({height:t,lockOffset:o,width:n})]}({height:this.height,lockOffset:a,width:this.width}),d=$r(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=wi(this.minTranslate.x+b.x,this.maxTranslate.x-h.x,f.x),f.y=wi(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&&vi(this.helper,o),hi(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},O=l[f].edgeOffset;O||(O=Si(d,this.container),l[f].edgeOffset=O,u&&(l[f].boundingClientRect=Ci(d,r)));var k=f<l.length-1&&l[f+1],C=f>0&&l[f-1];k&&!k.edgeOffset&&(k.edgeOffset=Si(k.node,this.container),u&&(k.boundingClientRect=Ci(k.node,r))),g!==this.index?(t&&vi(d,t),this.axis.x?this.axis.y?y||g<this.index&&(o+i.left-h.width<=O.left&&s+i.top<=O.top+h.height||s+i.top+h.height<=O.top)?(w.x=this.width+this.marginOffset.x,O.left+w.x>this.containerBoundingRect.width-h.width&&k&&(w.x=k.edgeOffset.left-O.left,w.y=k.edgeOffset.top-O.top),null===this.newIndex&&(this.newIndex=g)):(v||g>this.index&&(o+i.left+h.width>=O.left&&s+i.top+h.height>=O.top||s+i.top+h.height>=O.top+b))&&(w.x=-(this.width+this.marginOffset.x),O.left+w.x<this.containerBoundingRect.left+h.width&&C&&(w.x=C.edgeOffset.left-O.left,w.y=C.edgeOffset.top-O.top),this.newIndex=g):v||g>this.index&&o+i.left+h.width>=O.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=g):(y||g<this.index&&o+i.left<=O.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>=O.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=g):(y||g<this.index&&s+i.top<=O.top+h.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),hi(d,w),l[f].translate=w):n&&(this.sortableGhost=d,bi(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var _=u?this.prevIndex:c;a&&this.newIndex!==_&&a({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:_,isKeySorting:u,nodes:l,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return ui()(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(oi.findDOMNode)(this):e(a.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(q.createElement)(e,Kr({ref:t},di(this.props,Fi)))}},{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",ki("sortableList",e)),Yr(t,"defaultProps",Li),Yr(t,"propTypes",Ri),Yr(t,"childContextTypes",{manager:Ot.a.object.isRequired}),n}(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),qi=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 Xr(this,n),ai(this,ri(n).apply(this,arguments))}return li(n,q["Component"]),Zr(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(oi.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 ui()(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(q.createElement)(e,Kr({ref:t},di(this.props,Hi)))}}]),n}(),Yr(t,"displayName",ki("sortableElement",e)),Yr(t,"contextTypes",{manager:Ot.a.object.isRequired}),Yr(t,"propTypes",Ui),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",Vi({className:"ugb-sort-control__item"},n),t)}),Ki=!1,$i=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(Aa,Vi({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(Wi,{onSortStart:function(){return Ki=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,r=e.newIndex;Ki=!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(qi,{key:n,index:n,value:e,onMouseEnter:function(){Ki||t.onHover(n)},onMouseLeave:function(){Ki||t.onHover(null)}})})))};$i.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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(n,!0).forEach(function(t){Xi(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 Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ji={},Zi={};Object(R.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){Zi[e]=t}),Object(R.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===Zi[e]&&(Zi[e]=t)});var el=function(e){var t=function(t){var n=Object(i.useMemo)(function(){return Object(re.select)("core/block-editor").getSelectedBlockClientId()},[]),a=Qi({},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);Zi[n]=r,Ji[i]=e?t.title:null}var l,o;t.onToggle(e)}});if(n&&t.withCaching){var r=Zi[n]||"",l="".concat(n,"-").concat(r),o=Ji[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=Qi({},e.defaultProps||{},{withCaching:!0}),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 nl(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 al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(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 il(e){return(il=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ll(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ol(e,t){return(ol=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sl=1,ul=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=il(t).apply(this,arguments))||"object"!==tl(r)&&"function"!=typeof r?ll(a):r).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(ll(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(ll(n)),n.instanceId=sl++,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&&ol(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?nl(n,!0).forEach(function(t){al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,al({},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?Wt(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&Wt(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"],al({"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)))}}])&&rl(n.prototype,a),r&&rl(n,r),t}();ul.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 cl=el(ul);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)}var pl=function(e){var t=e.blockProps;return wp.element.createElement(cl,fl({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))};pl.defaultProps={className:"",blockProps:{}};var dl=function(e){var t=p()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};dl.defaultProps={tab:"layout"};function gl(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 ml=function(e){var t=gl(Object(i.useState)(!1),2),n=t[0],a=t[1],r=gl(Object(i.useState)(""),2),u=r[0],c=r[1],f=gl(Object(i.useState)([]),2),p=f[0],d=f[1],g=gl(Object(i.useState)(!0),2),m=g[0],b=g[1],h=gl(Object(i.useState)(""),2),v=h[0],y=h[1];return Object(i.useEffect)(function(){var t=!0;return yn({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.__)("E.g. light, dark, red, minimalist...",o.i18n),value:u,onChange:function(e){return c(e)}}),!o.isPro&&wp.element.createElement(Lr,{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(Ul,{designs:p.filter(function(e){var t=e.plan;return!v||t===v}),isBusy:m,onSelect:e.onSelect}),n&&wp.element.createElement(wv,{search:u,selectedBlock:e.block,onClose:function(){a(!1),c("")},onSelect:function(t){e.onSelect(t),a(!1)}}))};ml.defaultProps={block:"",onSelect:function(){}};function bl(){return(bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 hl=K.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"}),vl=K.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}),yl=K.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"}),wl=K.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"}),Ol=function(e){return K.a.createElement("svg",bl({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),hl,vl,yl,wl)};function kl(){return(kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Cl=K.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"}),_l=function(e){return K.a.createElement("svg",kl({xmlns:"http://www.w3.org/2000/svg"},e),Cl)};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 xl=K.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"}),El=function(e){return K.a.createElement("svg",Sl({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),xl)},jl=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(e){var t=e.className;return wp.element.createElement(Ol,{className:t,width:"20",height:"20"})};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=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).state={isOpen:!1,slide:0},e.open=e.open.bind(Nl(e)),e.close=e.close.bind(Nl(e)),e.prev=e.prev.bind(Nl(e)),e.next=e.next.bind(Nl(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&&Il(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)))))}}])&&Bl(n.prototype,a),r&&Bl(n,r),t}();Al.defaultProps={button:Object(s.__)("Learn More",o.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var Dl=Al;function Rl(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 zl=function(e){var t=e.designId,n=e.image,a=e.label,r=e.onClick,o=e.plan,s=e.isPro,u=Rl(Object(i.useState)(!1),2),c=u[0],f=u[1],d=Rl(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),wn(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(Dl,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(i.Fragment,null,e.premiumLabel)})))};zl.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:o.isPro,premiumLabel:Object(s.__)("Go Premium",o.i18n)};var Ll=zl;var Fl=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(Ll,{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)))};Fl.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var Ul=Fl;n(133);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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(n,!0).forEach(function(t){Gl(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}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wl={},ql=function(e){var t=function(t){var n,a=t.initialTab||Wl[t.blockProps.clientId]||(n=t.blockProps,ke[n.name]||(ke[n.name]=Object(he.createBlock)(n.name).attributes),Object.keys(ke[n.name]).every(function(e){return!!Oe.includes(e)||ke[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=Vl({},t,{initialTab:a,onClick:function(e){Wl[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=Vl({},e.defaultProps||{}),t};function Kl(e){return(Kl="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 $l(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 Yl(e){return(Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xl(e,t){return(Xl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jl=[{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"}],Zl=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=Yl(t).apply(this,arguments))||"object"!==Kl(a)&&"function"!=typeof a?Ql(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(Ql(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(Ql(e)),e.select=e.select.bind(Ql(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&&Xl(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"},Jl.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})))}}])&&$l(n.prototype,a),r&&$l(n,r),t}();Zl.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};ql(Zl);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 to=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"}))};to.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var no=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(cr,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(to,eo({},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}))};no.defaultProps={className:"",label:Object(s.__)("Style",o.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};var ao=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 ro(){return(ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 io(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 lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oo=function(e){var t=e.options.filter(function(e){return!e.premium||o.isPro}).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(n,!0).forEach(function(t){lo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(ao,{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,ro({},Object(b.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};oo.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var so=oo,uo=n(42),co=n.n(uo),fo=n(43),po=n.n(fo),go=n(44),mo=n.n(go),bo=n(45),ho=n.n(bo),vo=n(46),yo=n.n(vo),wo=n(47),Oo=n.n(wo),ko=n(48),Co=n.n(ko),_o=n(49),So=n.n(_o),xo=n(50),Eo=n.n(xo),jo=n(51),Po=n.n(jo),To=n(52),Bo=n.n(To),Mo=n(53),No=n.n(Mo),Io=n(54),Ao=n.n(Io);function Do(){return(Do=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ro(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 zo=[{image:Po.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),1),value:"wave-1"},{image:Eo.a,label:Object(s.__)("Straight",o.i18n),value:"straight-1"},{image:Bo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),2),value:"wave-2"},{image:No.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),3),value:"wave-3"},{image:Ao.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Wave",o.i18n),4),value:"wave-4"},{image:Co.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),1),value:"slant-1"},{image:So.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Slant",o.i18n),2),value:"slant-2"},{image:co.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),1),value:"curve-1"},{image:po.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),2),value:"curve-2"},{image:mo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Curve",o.i18n),3),value:"curve-3"},{image:ho.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),1),value:"rounded-1"},{image:yo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),2),value:"rounded-2"},{image:Oo.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",o.i18n),Object(s.__)("Rounded",o.i18n),3),value:"rounded-3"}];Object(R.addFilter)("stackable.separator.edit.layouts","default",function(e){return Object(b.uniqBy)([].concat(Ro(e),zo),"value")});var Lo=function(e){var t=(Object(R.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter(function(t){return-1===Object(b.findIndex)(e.excludeDesigns,function(e){return e===t.value})});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(so,Do({options:t},Object(b.omit)(e,["label","help"]))))};Lo.defaultProps={label:"",help:"",excludeDesigns:[]};function Fo(){return(Fo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Uo=K.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"}),Ho=function(e){return K.a.createElement("svg",Fo({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Uo)};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 Go=Object(gt.withInstanceId)(Object(gt.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,Vo({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(Gu,{value:e.value}),!e.value&&wp.element.createElement(Ho,{style:{opacity:.3}})),n&&wp.element.createElement(ls,{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))))}));Go.defaultProps={label:Object(s.__)("Icon",o.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var Wo=Go;function qo(){return(qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ko=K.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"}),$o=function(e){return K.a.createElement("svg",qo({"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),Ko)};function Yo(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 Qo(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 Xo=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 Jo(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){Qo(i,a,r,l,o,"next",e)}function o(e){Qo(i,a,r,l,o,"throw",e)}l(void 0)})});return function(){return t.apply(this,arguments)}}(),Jo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(Yo(e.membership.free),Yo(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}})},Zo=n(55);function es(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 ts=null,ns=null,as=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},rs=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},is=function(e){var t=es(Object(i.useState)(""),2),n=t[0],a=t[1],r=es(Object(i.useState)([]),2),u=r[0],c=r[1],f=es(Object(i.useState)(!1),2),d=f[0],g=f[1],m=es(Object(i.useState)(!1),2),b=m[0],h=m[1],v=e.returnSVGValue;Object(i.useEffect)(function(){var e=!0;return clearTimeout(ts),ts=setTimeout(function(){e&&(g(!0),Xo(n).then(function(t){e&&c(t)}).finally(function(){e&&g(!1)}))},500),function(){e=!1,clearTimeout(ts)}},[n]),Object(i.useEffect)(function(){ns||(ns=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!==ns&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:ns})},[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(Zo.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=rs(as(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=rs(as(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(rs(Ee(a,r))):e.onChange(i,a,r),e.onClose()}},wp.element.createElement(jv,{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($o,{height:"40",width:"40"}),Object(s.__)("Drop your SVG here",o.i18n)))))};is.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var ls=is,os=function(e){return wp.element.createElement(zd,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(yg,{label:e.label,className:p()([e.className,"ugb--help-tip-alignment-all"])}))};os.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(s.__)("Align",o.i18n)};var ss=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})};function us(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 cs=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=us(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))};cs.defaultProps={color:"",onClick:function(){},_ref:null};var fs=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)}var ds=K.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),gs=K.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),ms=K.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"}),bs=function(e){return K.a.createElement("svg",ps({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),ds,gs,ms)},hs=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(bs,null)),e.children))};hs.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var vs=hs;function ys(e){return(ys="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 ws(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 Os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ks(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 Cs(e){return(Cs=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 Ss(e,t){return(Ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xs=1,Es=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=Cs(t).apply(this,arguments))||"object"!==ys(a)&&"function"!=typeof a?_s(n):a).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(_s(e)),e.handleClose=e.handleClose.bind(_s(e)),e.handleMouseLeave=e.handleMouseLeave.bind(_s(e)),e.handleMouseEnter=e.handleMouseEnter.bind(_s(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(_s(e)),e.handleReset=e.handleReset.bind(_s(e)),e.buttonRef=Object(i.createRef)(),e.buttonRefColorPreview=Object(i.createRef)(),e.buttonRefImagePreview=Object(i.createRef)(),e.instanceId=xs++,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&&Ss(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?ws(n,!0).forEach(function(t){Os(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,Os({},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(vs,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(fs,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),this.props.renderCustomPreview&&this.props.renderCustomPreview(),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))))}}])&&ks(n.prototype,a),r&&ks(n,r),t}();Es.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,renderCustomPreview:null};var js=Es,Ps=function(e){var t=le(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(Kn,{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(ca,{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(ss,null),e.onChangeAlt&&wp.element.createElement(Qn,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(ga,{label:Object(s.__)("Image Size",o.i18n),value:e.size,onChange:function(t){var n=le(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(Wd,null,wp.element.createElement(qa,{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(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(Wd,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(Wd,{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(Wd,{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(qa,{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(qa,{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(Fn,{label:Object(s.__)("Blend Mode",o.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};Ps.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 Ts=Object(gt.compose)(Object(re.withSelect)(function(e,t){var n=e("core").getMedia;return oe(t.id,e),{imageData:t.id?n(t.id):null}}))(Ps);function Bs(){return(Bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ns=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(Ts,Bs({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id,l=e.width,o=e.height;t((Ms(a={},n("Url"),r),Ms(a,n("Id"),i),Ms(a,n("Width"),l),Ms(a,n("Height"),o),a))},alt:a("Alt"),onChangeAlt:function(e){return t(Ms({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,r,i){var l;t((Ms(l={},n("Size"),e),Ms(l,n("Url"),a),Ms(l,n("Width"),r),Ms(l,n("Height"),i),l))},shape:a("Shape"),onChangeShape:function(e){return t(Ms({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(Ms({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(Ms({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(Ms({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(Ms({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var r;t((Ms(r={},n("Width"),e),Ms(r,n("Height"),a),r))},onChangeTabletWidth:function(e){return t(Ms({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(Ms({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(Ms({},n("Square"),e))},onChangeTabletSquare:function(e){return t(Ms({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(Ms({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(Ms({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(Ms({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(Ms({},n("BlendMode"),e))}},e))};Ns.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Is=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeImage&&wp.element.createElement(Kn,{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(ga,{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=se(e)||oe(e,re.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($a,{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($a,{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($a,{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(qa,{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}))};Is.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 As=Object(gt.compose)(Object(re.withSelect)(function(e,t){var n=e("core").getMedia;return oe(t.id,e),{imageData:t.id?n(t.id):null}}))(Is);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 Rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zs=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(As,Ds({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,r=e.url,i=e.id;t((Rs(a={},n("Url"),r),Rs(a,n("Id"),i),a))},size:a("Size"),onChangeSize:function(e,a){var r;t((Rs(r={},n("Size"),e),Rs(r,n("Url"),a),r))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(Rs({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(Rs({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(Rs({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(Rs({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(Rs({},n("BackgroundCustomSizeUnit"),e))}},e))};zs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function Ls(){return(Ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Fs=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(js,{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(qr,{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(Wd,null,wp.element.createElement(Hr,Ls({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(Wd,{screen:"tablet"},wp.element.createElement(Hr,Ls({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(Wd,{screen:"mobile"},wp.element.createElement(Hr,Ls({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(Wd,null,wp.element.createElement(qa,{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(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(qa,{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(Wd,null,wp.element.createElement(Hr,Ls({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(Wd,{screen:"tablet"},wp.element.createElement(Hr,Ls({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(Wd,{screen:"mobile"},wp.element.createElement(Hr,Ls({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"})))))};Fs.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 Us=Fs;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 Gs=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Us,Hs({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(Vs({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(Vs({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(Vs({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(Vs({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(Vs({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(Vs({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(Vs({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(Vs({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(Vs({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(Vs({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(Vs({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(Vs({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(Vs({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(Vs({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(Vs({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(Vs({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((Vs(e={},n("FontFamily"),""),Vs(e,n("FontSize"),""),Vs(e,n("TabletFontSize"),""),Vs(e,n("MobileFontSize"),""),Vs(e,n("FontSizeUnit"),"px"),Vs(e,n("TabletFontSizeUnit"),"px"),Vs(e,n("MobileFontSizeUnit"),"px"),Vs(e,n("FontWeight"),""),Vs(e,n("TextTransform"),""),Vs(e,n("LetterSpacing"),""),Vs(e,n("LineHeight"),""),Vs(e,n("TabletLineHeight"),""),Vs(e,n("MobileLineHeight"),""),Vs(e,n("LineHeightUnit"),"em"),Vs(e,n("TabletLineHeightUnit"),"em"),Vs(e,n("MobileLineHeightUnit"),"em"),e))}},e))};Gs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ws=Gs,qs=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(Lr,{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(yt,{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(qa,{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(yt,{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(js,{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(qa,{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(qa,{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(qa,{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(Fn,{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(ss,null),e.onChangeBackgroundMedia&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Wd,null,wp.element.createElement(Kn,{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(Wd,{screen:"tablet"},wp.element.createElement(Kn,{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(Wd,{screen:"mobile"},wp.element.createElement(Kn,{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(qa,{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(Be).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(js,{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(Wd,null,wp.element.createElement($a,{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(Wd,{screen:"tablet"},wp.element.createElement($a,{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(Wd,{screen:"mobile"},wp.element.createElement($a,{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(Wd,null,wp.element.createElement($a,{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(Wd,{screen:"tablet"},wp.element.createElement($a,{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(Wd,{screen:"mobile"},wp.element.createElement($a,{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(Wd,null,wp.element.createElement($a,{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(Wd,{screen:"tablet"},wp.element.createElement($a,{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(Wd,{screen:"mobile"},wp.element.createElement($a,{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(Wd,null,wp.element.createElement(qa,{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(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(Fn,{label:Object(s.__)("Image Blend Mode",o.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};qs.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 Ks=qs;function $s(){return($s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Qs=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(Ks,$s({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(Ys({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(Ys({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(Ys({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(Ys({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ys(a={},n("BackgroundMediaURL"),r),Ys(a,n("BackgroundMediaID"),i),a))},onChangeTabletBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ys(a={},n("TabletBackgroundMediaURL"),r),Ys(a,n("TabletBackgroundMediaID"),i),a))},onChangeMobileBackgroundMedia:function(e){var a,r=e.url,i=e.id;t((Ys(a={},n("MobileBackgroundMediaURL"),r),Ys(a,n("MobileBackgroundMediaID"),i),a))},onChangeBackgroundTintStrength:function(e,a){var r;t((Ys(r={},n("BackgroundTintStrength"),e),Ys(r,n("BackgroundColor"),a),r))},onChangeFixedBackground:function(e){return t(Ys({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(Ys({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(Ys({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(Ys({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(Ys({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((Ys(e={},n("BackgroundGradientDirection"),""),Ys(e,n("BackgroundGradientBlendMode"),""),Ys(e,n("BackgroundGradientLocation1"),""),Ys(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(Ys({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(Ys({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(Ys({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(Ys({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(Ys({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(Ys({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(Ys({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(Ys({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(Ys({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(Ys({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(Ys({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(Ys({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(Ys({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(Ys({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(Ys({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(Ys({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((Ys(e={},n("BackgroundPosition"),""),Ys(e,n("TabletBackgroundPosition"),""),Ys(e,n("MobileBackgroundPosition"),""),Ys(e,n("BackgroundRepeat"),""),Ys(e,n("TabletBackgroundRepeat"),""),Ys(e,n("MobileBackgroundRepeat"),""),Ys(e,n("BackgroundSize"),""),Ys(e,n("TabletBackgroundSize"),""),Ys(e,n("MobileBackgroundSize"),""),Ys(e,n("BackgroundCustomSize"),""),Ys(e,n("TabletBackgroundCustomSize"),""),Ys(e,n("MobileBackgroundCustomSize"),""),Ys(e,n("BackgroundCustomSizeUnit"),"%"),Ys(e,n("TabletBackgroundCustomSizeUnit"),"%"),Ys(e,n("MobileBackgroundCustomSizeUnit"),"%"),Ys(e,n("BackgroundImageBlendMode"),""),e))}},e))};Qs.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Xs=n(56),Js=n.n(Xs),Zs=n(57),eu=n.n(Zs),tu=n(58),nu=n.n(tu),au=n(59),ru=n.n(au);function iu(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 lu=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(lt,{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(ss,null),e.onChangeDesign&&wp.element.createElement(so,{label:Object(s.__)("Design",o.i18n),selected:t,options:[{label:Object(s.__)("Basic",o.i18n),value:"basic",image:Js.a},{label:Object(s.__)("Ghost",o.i18n),value:"ghost",image:eu.a},{label:Object(s.__)("Plain",o.i18n),value:"plain",image:ru.a}].concat(iu(e.onChangeUseSocialColors?[]:[{label:Object(s.__)("Link",o.i18n),value:"link",image:nu.a}]),iu(Object(R.applyFilters)("stackable.button-controls.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(ss,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(Lr,{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(yt,{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(yt,{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(qa,{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(yt,{label:Object(s.__)("Text Color",o.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(ss,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(qa,{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(js,{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(yt,{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(yt,{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(qa,{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(yt,{label:Object(s.__)("Text Color",o.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(ss,null),e.hasTypography&&"link"!==t&&wp.element.createElement(Ws,{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(qa,{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(af,{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(af,{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(qa,{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(qa,{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(qa,{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(ss,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(Wo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(js,{label:Object(s.__)("Adv. Icon Settings",o.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(qa,{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(qa,{label:Object(s.__)("Icon Spacing",o.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};lu.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 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))},a=ge(e.blockAttributes,n,"");return wp.element.createElement(ou,su({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(uu({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",onChangeUrl:function(e){return t(uu({},n("Url"),e))},onChangeNewTab:function(e){return t(uu({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(uu({},n("NoFollow"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(uu({},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(uu({},n("Opacity"),e))},onChangeTextColor:function(e){return t(uu({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(uu({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(uu({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(uu({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(uu({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((uu(e={},n("HoverBackgroundColor"),""),uu(e,n("HoverBackgroundColor2"),""),uu(e,n("HoverBackgroundGradientDirection"),""),uu(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(uu({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(uu({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(uu({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(uu({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(uu({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(uu({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(uu({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(uu({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(uu({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(uu({},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(uu({},n("Icon"),e))},onResetAdvancedIcon:function(){var e;t((uu(e={},n("IconSize"),""),uu(e,n("IconPosition"),""),uu(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(uu({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(uu({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(uu({},n("IconSpacing"),e))}},e))};cu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var fu=cu,pu=function(e){return wp.element.createElement(i.Fragment,null,e.onChangeBorderType&&wp.element.createElement(Lr,{label:Object(s.__)("Borders",o.i18n),controls:[{value:"",title:Object(s.__)("None",o.i18n)},{value:"solid",title:Object(s.__)("Solid",o.i18n)},{value:"dashed",title:Object(s.__)("Dashed",o.i18n)},{value:"dotted",title:Object(s.__)("Dotted",o.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&wp.element.createElement(Du,{label:Object(s.__)("Border Width"),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeBorderWidth({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):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTabletBorderWidth({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):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobileBorderWidth({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):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&wp.element.createElement(yt,{value:e.borderColor,onChange:function(t){e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:Object(s.__)("Border Color",o.i18n)}))};pu.defaultProps={onResetBorder:function(){},borderType:"",onChangeBorderType:function(){},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:function(){},onChangeTabletBorderWidth:function(){},onChangeMobileBorderWidth:function(){},borderColor:"",onChangeBorderColor:function(){}};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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bu=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(du,gu({borderType:a("BorderType"),onChangeBorderType:function(e){return t(mu({},n("BorderType"),e))},onResetBorder:function(){t(mu({},n("BorderType"),""))},borderWidthTop:a("BorderWidthTop"),borderWidthRight:a("BorderWidthRight"),borderWidthBottom:a("BorderWidthBottom"),borderWidthLeft:a("BorderWidthLeft"),tabletBorderWidthTop:a("TabletBorderWidthTop"),tabletBorderWidthRight:a("TabletBorderWidthRight"),tabletBorderWidthBottom:a("TabletBorderWidthBottom"),tabletBorderWidthLeft:a("TabletBorderWidthLeft"),mobileBorderWidthTop:a("MobileBorderWidthTop"),mobileBorderWidthRight:a("MobileBorderWidthRight"),mobileBorderWidthBottom:a("MobileBorderWidthBottom"),mobileBorderWidthLeft:a("MobileBorderWidthLeft"),onChangeBorderWidth:function(e){var a,r=e.top,i=e.right,l=e.bottom,o=e.left,s=e.borderType,u=(mu(a={},n("BorderWidthTop"),r),mu(a,n("BorderWidthRight"),i),mu(a,n("BorderWidthBottom"),l),mu(a,n("BorderWidthLeft"),o),a);s&&(u[n("BorderType")]=s),t(u)},onChangeTabletBorderWidth:function(e){var a,r=e.top,i=e.right,l=e.bottom,o=e.left;t((mu(a={},n("TabletBorderWidthTop"),r),mu(a,n("TabletBorderWidthRight"),i),mu(a,n("TabletBorderWidthBottom"),l),mu(a,n("TabletBorderWidthLeft"),o),a))},onChangeMobileBorderWidth:function(e){var a,r=e.top,i=e.right,l=e.bottom,o=e.left;t((mu(a={},n("MobileBorderWidthTop"),r),mu(a,n("MobileBorderWidthRight"),i),mu(a,n("MobileBorderWidthBottom"),l),mu(a,n("MobileBorderWidthLeft"),o),a))},borderColor:a("BorderColor"),onChangeBorderColor:function(e){var a=e.color,r=e.borderType,i=mu({},n("BorderColor"),a);r&&(i[n("BorderType")]=r),t(i)}},e))};bu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var hu=n(60),vu=n.n(hu),yu=n(61),wu=n.n(yu),Ou=n(62),ku=n.n(Ou);function Cu(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 _u=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(Wo,{label:Object(s.__)("Icon",o.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(so,{label:Object(s.__)("Design",o.i18n),selected:e.design,columns:3,options:[{label:Object(s.__)("Plain",o.i18n),value:"plain",image:vu.a},{label:Object(s.__)("Shaped",o.i18n),value:"shaped",image:wu.a},{label:Object(s.__)("Outlined",o.i18n),value:"outlined",image:ku.a}].concat(Cu(Object(R.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),o.showProNotice&&wp.element.createElement(yc,{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(Lr,{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(yt,{label:Object(s.__)("Icon Color",o.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(ss,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(Lr,{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(yt,{label:Object(s.__)("Icon Shape / Outline Color",o.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(qa,{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(qa,{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(qa,{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(qa,{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(ss,null)),e.onChangeSize&&wp.element.createElement(i.Fragment,null,wp.element.createElement(Wd,null,wp.element.createElement(qa,{label:Object(s.__)("Icon Size",o.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(Wd,{screen:"tablet"},wp.element.createElement(qa,{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(Wd,{screen:"mobile"},wp.element.createElement(qa,{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(qa,{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(qa,{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))};_u.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 Su=_u;function xu(){return(xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Eu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ju=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(Su,xu({icon:a("Icon"),onChangeIcon:function(e){return t(Eu({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(Eu({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(Eu({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(Eu({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(Eu({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(Eu({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(Eu({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(Eu({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(Eu({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(Eu({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(Eu({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(Eu({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(Eu({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(Eu({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(Eu({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(Eu({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(Eu({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(Eu({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(Eu({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(Eu({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(Eu({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(Eu({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(Eu({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(Eu({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(Eu({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(Eu({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(Eu({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(Eu({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(Eu({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(Eu({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(Eu({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(Eu({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(Eu({},n("Size"),e))},onChangeTabletSize:function(e){return t(Eu({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(Eu({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(Eu({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(Eu({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(Eu({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(Eu({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(Eu({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(Eu({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(Eu({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(Eu({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(Eu({},n("BackgroundShapeOffsetVertical"),e))}},e))};ju.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Pu=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(ss,null),wp.element.createElement(fu,{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}))};Pu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var Tu=Pu;function Bu(){return(Bu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nu=function(e){var t=e.setAttributes,n=function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Tu,Bu({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(Mu({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(Mu({},n("UseSocialColors"),e))}},e))};Nu.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};function Iu(){return(Iu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Au=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(Wd,{screen:"desktop"},wp.element.createElement(af,Iu({},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)},placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(Wd,{screen:"tablet"},wp.element.createElement(af,Iu({},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(Wd,{screen:"mobile"},wp.element.createElement(af,Iu({},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)}}))))};Au.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",placeholder:"",className:"ugb--help-tip-advanced-column-paddings"};var Du=Au;function Ru(){return(Ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 zu(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zu(n,!0).forEach(function(t){Fu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zu(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fu(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,t){var n=ae(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},Hu=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},Vu=function(e){var t=Lu({},e,{value:"string"==typeof e.value?Hu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],Fu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(jv,Ru({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],Fu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=Uu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)};Vu.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(Vu.Content=function(e){var t=Lu({},e,{value:"string"==typeof e.value?Hu(e.value):e.value}),n=p()(["ugb-icon-inner-svg",e.className],Fu({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(jv.Content,Ru({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var r=p()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],Fu({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:r},a)}return e.showBackgroundShape&&(a=Uu(a,e.backgroundShape)),a=Object(R.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=Lu({},Vu.defaultProps);var Gu=Vu;function Wu(){return(Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 qu=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Gu,Wu({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))};qu.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},qu.Content=function(e){var t=ge(e.blockAttributes,function(t){return Object(b.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Gu.Content,Wu({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))},qu.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var Ku=qu;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 Yu(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 Qu=Object(gt.withInstanceId)(function(e){var t=Yu(Object(i.useState)(!1),2),n=t[0],a=t[1],r=Yu(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(Ku,p)),(null!==c&&c||null===c&&n)&&wp.element.createElement(ls,{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}))});Qu.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var Xu=Qu;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 Zu=K.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),ec=K.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"}),tc=K.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"}),nc=K.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),ac=K.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),rc=K.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),ic=K.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),lc=K.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"}),oc=K.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"}),sc=K.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"}),uc=K.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"}),cc=function(e){return K.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),Zu,ec,tc,nc,ac,rc,ic,lc,oc,sc,uc)},fc={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)}},pc=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(cc,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||fc[e.type].title),wp.element.createElement("p",null,e.description||fc[e.type].description),e.showButton&&wp.element.createElement(Dl,{button:e.button||fc[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)))};pc.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var dc=pc;function gc(e){return(gc="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 mc(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 bc(e){return(bc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(e,t){return(vc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yc=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=bc(t).apply(this,arguments))||"object"!==gc(a)&&"function"!=typeof a?hc(n):a).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind(hc(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&&vc(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(dc,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}])&&mc(n.prototype,a),r&&mc(n,r),t}();function wc(e){return(wc="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 Oc(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 kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(n,!0).forEach(function(t){Cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 Sc(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 xc(e){return(xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jc(e,t){return(jc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pc=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=xc(t).apply(this,arguments))||"object"!==wc(a)&&"function"!=typeof a?Ec(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(Ec(e)),e.onChangeTop=e.onChangeTop.bind(Ec(e)),e.onChangeRight=e.onChangeRight.bind(Ec(e)),e.onChangeBottom=e.onChangeBottom.bind(Ec(e)),e.onChangeLeft=e.onChangeLeft.bind(Ec(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&&jc(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){return[].concat(_c(this.props.enableTop?[this.props.top]:[]),_c(this.props.enableRight?[this.props.right]:[]),_c(this.props.enableBottom?[this.props.bottom]:[]),_c(this.props.enableLeft?[this.props.left]:[]))}},{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:"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(kc({},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(kc({},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(kc({},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(kc({},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(Aa,{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"})})))}}])&&Sc(n.prototype,a),r&&Sc(n,r),t}();Pc.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(gt.withInstanceId)(Pc);function Tc(){return(Tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Mc=K.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"}),Nc=function(e){return K.a.createElement("svg",Tc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Bc,Mc)};function Ic(){return(Ic=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ac=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Dc=K.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"}),Rc=function(e){return K.a.createElement("svg",Ic({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ac,Dc)};function zc(){return(zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Lc=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Fc=K.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"}),Uc=function(e){return K.a.createElement("svg",zc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Lc,Fc)};function Hc(){return(Hc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Vc=K.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Gc=K.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"}),Wc=function(e){return K.a.createElement("svg",Hc({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Vc,Gc)};function qc(e){return(qc="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 Kc(){return(Kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Yc(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 Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(n,!0).forEach(function(t){Xc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xc(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 Zc(e){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ef(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tf(e,t){return(tf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nf=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=Zc(t).apply(this,arguments))||"object"!==qc(a)&&"function"!=typeof a?ef(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(ef(e)),e.onChangeAll=e.onChangeAll.bind(ef(e)),e.onChangeTop=e.onChangeTop.bind(ef(e)),e.onChangeRight=e.onChangeRight.bind(ef(e)),e.onChangeBottom=e.onChangeBottom.bind(ef(e)),e.onChangeLeft=e.onChangeLeft.bind(ef(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&&tf(e,t)}(t,i["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return Qc({},t,Xc({},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(Qc({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(Qc({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(Qc({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(Qc({},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(Aa,{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(qa,Kc({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(Wc,null))),wp.element.createElement(qa,Kc({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(Uc,null))),wp.element.createElement(qa,Kc({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(Nc,null))),wp.element.createElement(qa,Kc({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(Rc,null))),wp.element.createElement(qa,Kc({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}();nf.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 af=nf,rf=n(63),lf=n.n(rf),of=n(64),sf=n.n(of),uf=n(65),cf=n.n(uf),ff=n(66),pf=n.n(ff),df=n(67),gf=n.n(df),mf=n(68),bf=n.n(mf),hf=n(69),vf=n.n(hf),yf=n(70),wf=n.n(yf),Of=n(71),kf=n.n(Of),Cf=n(72),_f=n.n(Cf),Sf=n(73),xf=n.n(Sf),Ef=n(74),jf=n.n(Ef),Pf=n(75),Tf=n.n(Pf),Bf=n(76),Mf=n.n(Bf),Nf=n(77),If=n.n(Nf),Af=n(78),Df=n.n(Af),Rf=n(79),zf=n.n(Rf),Lf=n(80),Ff=n.n(Lf),Uf=n(81),Hf=n.n(Uf),Vf=n(82),Gf=n.n(Vf),Wf=n(83),qf=n.n(Wf),Kf=n(84),$f=n.n(Kf),Yf=n(85),Qf=n.n(Yf),Xf=n(86),Jf=n.n(Xf),Zf=n(87),ep=n.n(Zf),tp=n(88),np=n.n(tp),ap=n(89),rp=n.n(ap),ip=n(90),lp=n.n(ip),op=n(91),sp=n.n(op),up=n(92),cp=n.n(up);function fp(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 pp(){return(pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gp(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 mp(e,t,n){return t&&gp(e.prototype,t),n&&gp(e,n),e}function bp(e){return(bp="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 hp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vp(e,t){return!t||"object"!==bp(t)&&"function"!=typeof t?hp(e):t}function yp(e){return(yp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Op(e,t){return(Op=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kp(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&&Op(e,t)}function Cp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _p=n(18),Sp=n.n(_p),xp=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 Ep(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 jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach(function(t){Cp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Pp=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(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 jp({},e,{onMouseDown:xp(e.onMouseDown,a),onTouchStart:xp(e.onTouchStart,r)})}),n}return kp(t,q["Component"]),mp(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&&K.a.Children.only(r)}}]),t}();Pp.propTypes={};var Tp=Pp,Bp=function(e){function t(){return dp(this,t),vp(this,yp(t).apply(this,arguments))}return kp(t,q["Component"]),mp(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&&K.a.Children.only(i)}}]),t}();Bp.propTypes={},Bp.defaultProps={count:10};var Mp=Bp;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 Ip(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){Cp(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 Ap=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(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 Ip({},e,{onMouseDown:xp(e.onMouseDown,a),onTouchStart:xp(e.onTouchStart,r)})}),n}return kp(t,q["Component"]),mp(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&&K.a.Children.only(g)}}]),t}();Ap.propTypes={},Ap.defaultProps={left:!0,right:!0};var Dp=Ap;function Rp(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 zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(n),!0).forEach(function(t){Cp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lp=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(t)).call.apply(e,[this].concat(r)))),"autofocus",function(e){e.target.focus()}),Cp(hp(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 zp({},t,{onKeyDown:xp(t.onKeyDown,function(t){return r(t,e)}),onMouseDown:xp(t.onMouseDown,n.autofocus,function(t){return i(t,e)}),onTouchStart:xp(t.onTouchStart,function(t){return l(t,e)})})}),n}return kp(t,q["Component"]),mp(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&&K.a.Children.only(a)}}]),t}();Lp.propTypes={};var Fp=Lp;function Up(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 Gp(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(Up(e.slice(0,r)),[{key:l,val:n}],Up(e.slice(r+1))).sort(Vp(a))}return e}function Wp(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function qp(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 Kp(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,Sp()(!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 Yp=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};var Qp,Xp;1===(Qp=Yp).length&&(Xp=Qp,Qp=function(e,t){return Yp(Xp(e),t)});var Jp=Array.prototype,Zp=(Jp.slice,Jp.map,Math.sqrt(50)),ed=Math.sqrt(10),td=Math.sqrt(2),nd=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>=Zp?10:i>=ed?5:i>=td?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(i>=Zp?10:i>=ed?5:i>=td?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 ad=function(){function e(){dp(this,e),this.domain=[0,1],this.range=[0,1],this.interpolator=null}return mp(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 nd(t[0],t[t.length-1],e||10)}}]),e}();function rd(e,t,n){return Math.min(Math.max(e,t),n)}var id=function e(){var t=this;dp(this,e),Cp(this,"setDomain",function(e){return t.domain=e.slice(),t}),Cp(this,"setRange",function(e){return t.range=e.slice(),t}),Cp(this,"setStep",function(e){return t.step=e,t}),Cp(this,"getValue",function(e){var n=fp(t.domain,2),a=n[0],r=n[1],i=fp(t.range,2),l=i[0],o=i[1],s=t.step,u=(rd(e,a,r)-a)/(r-a);return rd(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]},ld="undefined"!=typeof window&&"undefined"!=typeof document,od=function(){},sd=function(e,t,n,a){var r=a?e-t:e+t;return a?Math.max(n[0],r):Math.min(n[1],r)},ud=function(e,t,n,a){var r=a?e+t:e-t;return a?Math.min(n[1],r):Math.max(n[0],r)},cd=function(e){function t(){var e,n;dp(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return Cp(hp(n=vp(this,(e=yp(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}),Cp(hp(n),"slider",K.a.createRef()),Cp(hp(n),"onKeyDown",function(e,t){var a=["ArrowRight","ArrowUp"],r=["ArrowDown","ArrowLeft"],i=hp(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=sd(m,s,f,u):r.includes(p)&&(b=ud(m,s,f,u));var h=l.map(function(e){return e.key===t?{key:e.key,val:b}:e});n.submitUpdate(h,!0)}}}),Cp(hp(n),"onMouseDown",function(e,t){n.onStart(e,t,!1)}),Cp(hp(n),"onTouchStart",function(e,t){qp(e)||n.onStart(e,t,!0)}),Cp(hp(n),"getEventData",function(e,t){var a,r=hp(n),i=r.state,l=i.pixelToStep,o=i.valueToPerc,s=r.props.vertical;return l.setDomain(Wp(n.slider.current,s)),{value:a=t?l.getValue(Kp(s,e)):l.getValue(s?e.clientY:e.pageX),percent:o.getValue(a)}}),Cp(hp(n),"onMouseMove",function(e){var t=hp(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;i.setDomain(Wp(n.slider.current,s));var c=Gp(r,l,i.getValue(s?e.clientY:e.pageX),u);n.submitUpdate(c)}),Cp(hp(n),"onTouchMove",function(e){var t=hp(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;if(!qp(e)){i.setDomain(Wp(n.slider.current,s));var c=Gp(r,l,i.getValue(Kp(s,e)),u);n.submitUpdate(c)}}),Cp(hp(n),"onMouseUp",function(){var e=hp(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}),ld&&(document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onMouseUp))}),Cp(hp(n),"onTouchEnd",function(){var e=hp(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}),ld&&(document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onTouchEnd))}),n}return kp(t,q["PureComponent"]),mp(t,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(Wp(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){ld&&(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(Wp(c.current,s)),n=t?l.getValue(Kp(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=Gp(i,f,n,u);this.setState({activeHandleID:f},function(){a.submitUpdate(v,!0),t?a.addTouchEvents():a.addMouseEvents()})}},{key:"addMouseEvents",value:function(){ld&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){ld&&(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),Sp()(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,Gp(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,Gp(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,Sp()(!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=K.a.Children.map(this.props.children,function(t){return!t||t.type.name!==Tp.name&&t.type.name!==Mp.name&&t.type.name!==Dp.name&&t.type.name!==Fp.name?t:K.a.cloneElement(t,{scale:a,handles:p,activeHandleID:r,getEventData:e.getEventData,emitKeyboard:c?od:e.onKeyDown,emitMouse:c?od:e.onMouseDown,emitTouch:c?od:e.onTouchStart})});return f?K.a.createElement(q.Fragment,null,K.a.createElement(u,pp({},s,{style:o,className:l,ref:this.slider})),d):K.a.createElement(u,pp({},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 ad,p=new id,d=new id,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=fp(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])),Sp()(h>b,"".concat(Hp," 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),O=w.handles;w.changes&&(s(O.map(function(e){return e.val})),u(O.map(function(e){return e.val}))),g.values=i,g.handles=O}return Object.keys(g).length?g:null}}]),t}();cd.propTypes={},cd.defaultProps={mode:1,step:.1,domain:[0,100],component:"div",rootProps:{},rootStyle:{},vertical:!1,reversed:!1,onChange:od,onUpdate:od,onSlideStart:od,onSlideEnd:od,disabled:!1,flatten:!1,warnOnChanges:!1};var fd=cd;fd.Rail=Tp,fd.Ticks=Mp,fd.Tracks=Dp,fd.Handles=Fp;function pd(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 dd(){return(dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},md={position:"absolute",width:"100%",height:3,backgroundColor:"#e2e4e7",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},bd=function(e){var t=e.getRailProps;return wp.element.createElement(i.Fragment,null,wp.element.createElement("div",dd({style:gd},t())),wp.element.createElement("div",{style:md}))},hd=function(e){var t=pd(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",dd({role:"slider","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":l,disabled:u,style:{left:"".concat(o,"%")}},c(i)))},vd=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 yd(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 wd(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 Od={position:"relative",width:"100%"},kd=[0,100],Cd=function(e){var t=0;return[].concat(wd(e),[100]).map(function(e){var n=e-t;return t+=n,n})},_d=function(e){var t=0;return wd(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},[])},Sd=function(e){return wp.element.createElement(fd,{className:"ugb-column-widths-control__columns-slider",rootStyle:Od,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(wd(r),[100])).some(function(e,t){return 0!==t&&e-n[t-1]<10})){var i=yd(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=Cd(e),r=vd(a,n);return _d(r)})(r,0,i[1]).forEach(function(e,n){t[n].val=e})}return t},step:1,onUpdate:function(t){return e.onChange(Cd(t))},domain:kd,values:_d(e.value)},wp.element.createElement(Tp,null,function(e){var t=e.getRailProps;return wp.element.createElement(bd,{getRailProps:t})}),wp.element.createElement(Fp,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(hd,{key:e.id,handle:e,domain:kd,getHandleProps:n})}))}))};Sd.defaultProps={onChange:function(){},value:[]};var xd=Sd;function Ed(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 jd=function(e){return e.every(function(e){return!e})},Pd=function(e){var t,n={gridTemplateColumns:(t=e.value,t.map(function(e){return(e/100*t.length).toFixed(2)+"fr"}).join(" ")),gridAutoFlow:jd(e.value)?"column":void 0,justifyContent:jd(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=Ed(e.value);r[n]=isNaN(a)?"":a,e.onChange(r)},onBlur:function(){var t=vd(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(vd(t))}})}))};Pd.defaultProps={onChange:function(){},value:[]};var Td=Pd;function Bd(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 Md={"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]},Nd={plain:{2:[{value:"2-1",image:lf.a},{value:"2-2",image:sf.a},{value:"2-3",image:cf.a}],3:[{value:"3-1",image:pf.a},{value:"3-2",image:gf.a},{value:"3-3",image:bf.a},{value:"3-4",image:vf.a}],4:[{value:"4-1",image:wf.a},{value:"4-2",image:kf.a},{value:"4-3",image:_f.a}]},grid:{2:[{value:"2-1",image:xf.a},{value:"2-2",image:jf.a},{value:"2-3",image:Tf.a}],3:[{value:"3-1",image:Mf.a},{value:"3-2",image:If.a},{value:"3-3",image:Df.a},{value:"3-4",image:zf.a}],4:[{value:"4-1",image:Ff.a},{value:"4-2",image:Hf.a},{value:"4-3",image:Gf.a}]},uneven:{2:[{value:"2-1",image:qf.a},{value:"2-2",image:$f.a},{value:"2-3",image:Qf.a}],3:[{value:"3-1",image:Jf.a},{value:"3-2",image:ep.a},{value:"3-3",image:np.a},{value:"3-4",image:rp.a}],4:[{value:"4-1",image:lp.a},{value:"4-2",image:sp.a},{value:"4-3",image:cp.a}]}},Id=function(e){return e.every(function(e){return!e})},Ad=function(e){var t=Bd(Object(i.useState)(-1),2),n=(t[0],t[1]),a=Bd(Object(i.useState)(!0),2),r=(a[0],a[1]),o=Bd(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=Nd[f],g=wp.element.createElement(l.Button,{className:"ugb-columns-width-control__reset",disabled:e.forceBlank?Id(e.values):Object(b.isEqual)(e.values,Md[u||"".concat(e.columns,"-1")]),onClick:function(){c(""),e.forceBlank?e.onChange(["","","","","",""]):e.onChange(Md[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(Aa,{label:e.label,afterButton:e.hasIndividualControls?g:null,screens:e.screens}),d[e.columns]&&wp.element.createElement(so,{options:d[e.columns],onChange:function(t){n(-1),r(!0),c(t),e.onChange(Md[t])}}),e.hasIndividualControls&&wp.element.createElement(i.Fragment,null,wp.element.createElement(xd,{value:Id(e.values)?Md["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),wp.element.createElement(Td,{value:Id(e.values)?e.forceBlank?e.values:Md["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),!1))};Ad.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 Rd=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(Wd,{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(Wd,{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(Wd,{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))}})})))};Rd.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},onChange:null,placeholder:"",screens:["desktop","tablet","mobile"]};var zd=Rd;function Ld(e){return(Ld="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 Fd(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 Ud(e){return(Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vd(e,t){return(Vd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gd=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=Ud(t).apply(this,arguments))||"object"!==Ld(a)&&"function"!=typeof a?Hd(n):a).state={screen:Ne()},e.onScreenChange=e.onScreenChange.bind(Hd(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&&Vd(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)}}])&&Fd(n.prototype,a),r&&Fd(n,r),t}();Gd.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};var Wd=Object(gt.withInstanceId)(Gd);function qd(){return(qd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Kd=K.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 K.a.createElement("svg",qd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Kd)};function Yd(){return(Yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),Xd=function(e){return K.a.createElement("svg",Yd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Qd)};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 Zd=K.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"}),eg=function(e){return K.a.createElement("svg",Jd({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Zd)};function tg(){return(tg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),ag=function(e){return K.a.createElement("svg",tg({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),ng)};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=K.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"}),lg=function(e){return K.a.createElement("svg",rg({viewBox:"0 0 50 50",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=K.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"}),ug=function(e){return K.a.createElement("svg",og({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),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=K.a.createElement("path",{d:"M15.2 10.8H24c6.2 0 10.8 2.1 10.8 8.6 0 6.2-4.6 9-10.6 9h-4v10.2h-4.9V10.8zm8.6 13.7c4.2 0 6.1-1.7 6.1-5.1 0-3.5-2.2-4.6-6.3-4.6h-3.4v9.7h3.6z"}),pg=function(e){return K.a.createElement("svg",cg({viewBox:"0 0 50 50",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=[{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(Xd,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(eg,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(ag,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(lg,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(ug,null)},{value:"p",title:Object(s.sprintf)(Object(s._x)("%s","Nth Title",o.i18n),Object(s.__)("Paragraph",o.i18n)),icon:wp.element.createElement(pg,null)}],mg=function(e){return wp.element.createElement(Lr,dg({},e,{className:"ugb-heading-buttons-control",controls:gg}))};mg.defaultProps={label:Object(s.sprintf)(Object(s._x)("%s HTML Tag","component"),Object(s.__)("Title",o.i18n)),value:gg[0].value};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 hg=[{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"}],vg=function(e){var t=e.justified,n=e.className;return wp.element.createElement(Lr,bg({},Object(b.omit)(e,["justified"]),{className:p()([n,"ugb-align-buttons-control"]),controls:hg.filter(function(e){return!!t||"justify"!==e.value})}))};vg.defaultProps={className:"",label:Object(s.__)("Align",o.i18n),value:hg[0].value,justified:!1};var yg=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)}function Og(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 kg={Edit:function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Og(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,wg({},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)))}};kg.Edit.defaultProps={styles:null,mainClass:!0},kg.Save=function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Og(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,wg({},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)))},kg.Save.defaultProps={styles:null,mainClass:!0};var Cg=n(24);function _g(e){return(_g="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 Sg(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 xg(e){return(xg=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 jg(e,t){return(jg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pg=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=xg(t).apply(this,arguments))||"object"!==_g(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&&jg(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(){Cg.initialize&&(this.codeMirror=Object(Cg.initialize)(this.uniqueId,W()(Cg.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})}}])&&Sg(n.prototype,a),r&&Sg(n,r),t}();Pg.defaultProps={value:"",onChange:function(){},editorSettings:{}};function Tg(){return(Tg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Bg=K.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"}),Mg=function(e){return K.a.createElement("svg",Tg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Bg)};function Ng(){return(Ng=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"curve-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ag=K.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"}),Dg=function(e){return K.a.createElement("svg",Ng({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),Ig,Ag)};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 zg=K.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"}),Lg=function(e){return K.a.createElement("svg",Rg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),zg)};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 Ug=K.a.createElement("filter",{id:"curve-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Hg=K.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"}),Vg=function(e){return K.a.createElement("svg",Fg({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),Ug,Hg)};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 Wg=K.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"}),qg=function(e){return K.a.createElement("svg",Gg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Wg)};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 $g=K.a.createElement("filter",{id:"curve-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Yg=K.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"}),Qg=function(e){return K.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),$g,Yg)};function Xg(){return(Xg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),Zg=function(e){return K.a.createElement("svg",Xg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Jg)};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 tm=K.a.createElement("filter",{id:"curve-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),nm=K.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"}),am=function(e){return K.a.createElement("svg",em({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),tm,nm)};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 im=K.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"}),lm=function(e){return K.a.createElement("svg",rm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),im)};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 sm=K.a.createElement("filter",{id:"curve-3-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),um=K.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"}),cm=function(e){return K.a.createElement("svg",om({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),sm,um)};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 pm=K.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"}),dm=function(e){return K.a.createElement("svg",fm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),pm)};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 mm=K.a.createElement("filter",{id:"curve-3-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),bm=K.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"}),hm=function(e){return K.a.createElement("svg",gm({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),mm,bm)};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 ym=K.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"}),wm=function(e){return K.a.createElement("svg",vm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ym)};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 km=K.a.createElement("filter",{id:"rounded-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Cm=K.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"}),_m=function(e){return K.a.createElement("svg",Om({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),km,Cm)};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 xm=K.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 K.a.createElement("svg",Sm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),xm)};function jm(){return(jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Pm=K.a.createElement("filter",{id:"rounded-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Tm=K.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"}),Bm=function(e){return K.a.createElement("svg",jm({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),Pm,Tm)};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 Nm=K.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"}),Im=function(e){return K.a.createElement("svg",Mm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Nm)};function Am(){return(Am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"rounded-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Rm=K.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"}),zm=function(e){return K.a.createElement("svg",Am({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),Dm,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 Fm=K.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"}),Um=function(e){return K.a.createElement("svg",Lm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Fm)};function Hm(){return(Hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Vm=K.a.createElement("filter",{id:"rounded-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Gm=K.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"}),Wm=function(e){return K.a.createElement("svg",Hm({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),Vm,Gm)};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 Km=K.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"}),$m=function(e){return K.a.createElement("svg",qm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Km)};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 Qm=K.a.createElement("filter",{id:"rounded-3-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Xm=K.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"}),Jm=function(e){return K.a.createElement("svg",Ym({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),Qm,Xm)};function Zm(){return(Zm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 eb=K.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"}),tb=function(e){return K.a.createElement("svg",Zm({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),eb)};function nb(){return(nb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ab=K.a.createElement("filter",{id:"rounded-3-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),rb=K.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"}),ib=function(e){return K.a.createElement("svg",nb({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),ab,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 ob=K.a.createElement("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}),sb=function(e){return K.a.createElement("svg",lb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ob)};function ub(){return(ub=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"slant-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),fb=K.a.createElement("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}),pb=function(e){return K.a.createElement("svg",ub({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),cb,fb)};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 gb=K.a.createElement("path",{d:"M1610 210H-10V.5l1620 183.4z"}),mb=function(e){return K.a.createElement("svg",db({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),gb)};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 hb=K.a.createElement("filter",{id:"slant-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),vb=K.a.createElement("path",{d:"M-10 .5v10l1620 183.4v-10z"}),yb=function(e){return K.a.createElement("svg",bb({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),hb,vb)};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 Ob=K.a.createElement("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}),kb=function(e){return K.a.createElement("svg",wb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ob)};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 _b=K.a.createElement("filter",{id:"slant-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Sb=K.a.createElement("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}),xb=function(e){return K.a.createElement("svg",Cb({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),_b,Sb)};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 jb=K.a.createElement("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}),Pb=function(e){return K.a.createElement("svg",Eb({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),jb)};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 Bb=K.a.createElement("filter",{id:"slant-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Mb=K.a.createElement("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}),Nb=function(e){return K.a.createElement("svg",Tb({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),Bb,Mb)};function Ib(){return(Ib=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ab=K.a.createElement("path",{d:"M-10 210h1620V105.2H-10z"}),Db=function(e){return K.a.createElement("svg",Ib({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ab)};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 zb=K.a.createElement("filter",{id:"straight-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Lb=K.a.createElement("path",{d:"M-10 121.6h1620v-16.4H-10z"}),Fb=function(e){return K.a.createElement("svg",Rb({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),zb,Lb)};function Ub(){return(Ub=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Hb=K.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"}),Vb=function(e){return K.a.createElement("svg",Ub({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Hb)};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 Wb=K.a.createElement("filter",{id:"wave-1-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),qb=K.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 K.a.createElement("svg",Gb({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),Wb,qb)};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 Yb=K.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"}),Qb=function(e){return K.a.createElement("svg",$b({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Yb)};function Xb(){return(Xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Jb=K.a.createElement("filter",{id:"wave-1-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Zb=K.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"}),eh=function(e){return K.a.createElement("svg",Xb({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),Jb,Zb)};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 nh=K.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"}),ah=function(e){return K.a.createElement("svg",th({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),nh)};function rh(){return(rh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.a.createElement("filter",{id:"wave-2-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),lh=K.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"}),oh=function(e){return K.a.createElement("svg",rh({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),ih,lh)};function sh(){return(sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 uh=K.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"}),ch=function(e){return K.a.createElement("svg",sh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),uh)};function fh(){return(fh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ph=K.a.createElement("filter",{id:"wave-2-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),dh=K.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"}),gh=function(e){return K.a.createElement("svg",fh({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),ph,dh)};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 bh=K.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"}),hh=function(e){return K.a.createElement("svg",mh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),bh)};function vh(){return(vh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 yh=K.a.createElement("filter",{id:"wave-3-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),wh=K.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"}),Oh=function(e){return K.a.createElement("svg",vh({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),yh,wh)};function kh(){return(kh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=K.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"}),_h=function(e){return K.a.createElement("svg",kh({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ch)};function Sh(){return(Sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 xh=K.a.createElement("filter",{id:"wave-3-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Eh=K.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"}),jh=function(e){return K.a.createElement("svg",Sh({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),xh,Eh)};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=K.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"}),Bh=function(e){return K.a.createElement("svg",Ph({viewBox:"0 0 1600 200",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=K.a.createElement("filter",{id:"wave-4-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ih=K.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"}),Ah=function(e){return K.a.createElement("svg",Mh({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),Nh,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=K.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"}),zh=function(e){return K.a.createElement("svg",Dh({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 Fh=K.a.createElement("filter",{id:"wave-4-inverted-shadow_svg__a"},K.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),K.a.createElement("feComponentTransfer",null,K.a.createElement("feFuncA",{type:"linear",slope:.4})),K.a.createElement("feMerge",null,K.a.createElement("feMergeNode",null),K.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Uh=K.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"}),Hh={"wave-1":{default:{shape:Vb,shadow:Kb},inverted:{shape:Qb,shadow:eh}},"wave-2":{default:{shape:ah,shadow:oh},inverted:{shape:ch,shadow:gh}},"wave-3":{default:{shape:hh,shadow:Oh},inverted:{shape:_h,shadow:jh}},"wave-4":{default:{shape:Bh,shadow:Ah},inverted:{shape:zh,shadow:function(e){return K.a.createElement("svg",Lh({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),Fh,Uh)}}},"curve-1":{default:{shape:Mg,shadow:Dg},inverted:{shape:Lg,shadow:Vg}},"curve-2":{default:{shape:qg,shadow:Qg},inverted:{shape:Zg,shadow:am}},"curve-3":{default:{shape:lm,shadow:cm},inverted:{shape:dm,shadow:hm}},"slant-1":{default:{shape:sb,shadow:pb},inverted:{shape:mb,shadow:yb}},"slant-2":{default:{shape:kb,shadow:xb},inverted:{shape:Pb,shadow:Nb}},"straight-1":{default:{shape:Db,shadow:Fb},inverted:{shape:Db,shadow:Fb}},"rounded-1":{default:{shape:wm,shadow:_m},inverted:{shape:Em,shadow:Bm}},"rounded-2":{default:{shape:Im,shadow:zm},inverted:{shape:Um,shadow:Wm}},"rounded-3":{default:{shape:$m,shadow:Jm},inverted:{shape:tb,shadow:ib}}},Vh=function(e){var t=Hh[e.design||"wave-1"][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)};Vh.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},Vh.Save=function(e){return wp.element.createElement(Vh,e)};function Gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wh=function(e){var t,n=p()([e.className,"ugb-img"],(Gh(t={},"wp-image-".concat(e.imageId),e.imageId),Gh(t,"ugb-img--shape",e.shape),Gh(t,"ugb-image--shape-stretch",e.shapeStretch),Gh(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})};Wh.defaultProps={imageId:"",alt:"",src:"",size:"full",width:"",height:"",shape:"",shapeStretch:!1,shadow:""};var qh=n(19),Kh=wp.element.createElement(l.Icon,{icon:function(){return jl(wp.element.createElement(_l,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}}),$h=wp.element.createElement(l.Icon,{icon:function(){return jl(wp.element.createElement(El,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}});var Yh=Object(gt.compose)([Object(re.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(re.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(re.select)("core/block-editor").getSelectedBlockClientIds?wp.element.createElement(i.Fragment,null,r&&wp.element.createElement(qh.PluginBlockSettingsMenuItem,{icon:Kh,label:Object(s.__)("Group into Container",o.i18n),onClick:t}),u&&wp.element.createElement(qh.PluginBlockSettingsMenuItem,{icon:$h,label:Object(s.__)("Ungroup from Container",o.i18n),onClick:n})):null}),Qh=(Object(re.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientIds;return t?{clientIds:t()}:{}})(Yh),Object(gt.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(qh.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())))})),Xh=Object(gt.compose)([Object(re.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(re.withDispatch)(function(e,t){var n=t.clientId;return{setJSONBlockAttributes:function(e){if(n)try{var t=JSON.parse(e);Ce(t,n)}catch(e){console.error(e)}}}})])(Qh);Object(re.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientId;return t?{clientId:t()}:{}})(Xh);function Jh(){return(Jh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Zh(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 ev=function(e){var t=e.blockTag,n=e.className,a=e.backgroundAttrName,r=e.blockProps,l=e.showBackground,o=e.showVideoBackground,u=Zh(e,["blockTag","className","backgroundAttrName","blockProps","showBackground","showVideoBackground"]),c=p()([n],{"ugb--has-background-overlay":l&&V(a,r.attributes)});return wp.element.createElement(t,Jh({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,Be(a)&&wp.element.createElement("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),Be(r)&&wp.element.createElement("video",{className:u,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:r}),Be(l)&&wp.element.createElement("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:l}))}(a,r))};ev.defaultProps={className:"",backgroundAttrName:"%s",blockProps:{},showBackground:!0,showVideoBackground:!0,blockTag:"div"};var tv=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))))};tv.defaultProps={onRequestClose:function(){}};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)}var av=K.a.createElement("path",{d:"M38 12H12v26h26V12z"}),rv=function(e){return K.a.createElement("svg",nv({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),av)};function iv(){return(iv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 lv=K.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"}),ov=function(e){return K.a.createElement("svg",iv({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),lv)};function sv(){return(sv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 uv=K.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"}),cv=function(e){return K.a.createElement("svg",sv({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),uv)},fv=void 0;function pv(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 dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pv(n,!0).forEach(function(t){gv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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")}()}var bv=function(e){var t=mv(Object(i.useState)([]),2),n=t[0],a=t[1],r=mv(Object(i.useState)({}),2),l=r[0],u=r[1],c=mv(Object(i.useState)({}),2),f=c[0],d=c[1],g=mv(Object(i.useState)(0),2),m=g[0],h=g[1],v=mv(Object(i.useState)(0),2),y=v[0],w=v[1],O=mv(Object(i.useState)(0),2),k=O[0],C=O[1],_=mv(Object(i.useState)(""),2),S=_[0],x=_[1],E=e.viewBy;Object(i.useEffect)(function(){On().then(function(e){var t=e.reduce(function(e,t){if(!e[t]){if(Object(re.select)("core/edit-post").getPreference("hiddenBlockTypes").includes(t))return e;if(!Object(re.select)("core/blocks").getBlockType(t))return e;e[t]={count:0,name:t,label:t?Object(re.select)("core/blocks").getBlockType(t).title:""}}return e},{});d(t)})},[]),Object(i.useEffect)(function(){Object.keys(f).length&&yn({type:"block",search:e.search,mood:e.mood,colors:e.colors}).then(function(t){var n=Object.keys(f).reduce(function(e,t){return e[t]=dv({},f[t]),e},{}),r=Object.keys(l).reduce(function(e,t){return void 0!==e[t]&&(e[t].num=0),e},{}),i=0,o=0,s=t.reduce(function(t,n){var a=n.block,l=n.type,s=n.plan,u=n.categories;if("block"===l&&t[a]&&t[a].count++,e.forceBlock&&e.forceBlock!==n.block||(o++,"free"===s&&i++),u&&3===u.length){var c=Object(b.last)(u);void 0===r[c]&&(r[c]={label:Object(b.startCase)(Object(b.last)(u)),num:0,isPremium:"free"!==s}),r[c].num++}return t},dv({},n));u(r),h(o),w(i),C(o-i),a(Object(b.orderBy)(s,["title"],["asc"]))})},[f,e.search,e.mood]);var j=Object(i.useMemo)(function(){var e=Object.keys(l);return o.isPro||e.sort(function(e,t){return!l[e].isPremium&&l[t].isPremium?-1:l[e].isPremium&&!l[t].isPremium?1:0}),e},[JSON.stringify(l)]),P=!0;return wp.element.createElement("ul",{className:"ugb-block-list"},wp.element.createElement(Lr,{controls:[{value:"ui-kits",title:Object(s.__)("UI Kits",o.i18n)},{value:"block-designs",title:Object(s.__)("Block Designs",o.i18n)}],value:E,onChange:e.onChangeViewBy,isSmall:!0,fullwidth:!1,isToggleOnly:!0}),"ui-kits"===E&&j.reduce(function(t,n,a){var r=(""===S&&0===a||S===n)&&!e.forceBlock,i=p()({"is-active":r,"is-disabled":e.forceBlock}),s=l[n].label,u=l[n].num;return!o.isPro&&P&&l[n].isPremium&&(t.push(wp.element.createElement(ss,null)),P=!1),t.push(wp.element.createElement("li",{key:a},wp.element.createElement("div",{className:i,"data-count":u,onClick:function(){e.forceBlock||(x(n),e.onSelect({block:"",plan:"",categories:[n]}))},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":r?"true":"false"},s,wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"".concat(s,"-count")},u)))),t},[]),"block-designs"===E&&wp.element.createElement("li",null,wp.element.createElement("div",{className:""===S?"is-active":"","data-count":m,onClick:function(){x(""),e.onSelect({block:"",plan:"",categories:[]})},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":""===S?"true":"false"},Object(s.__)("All Block Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"all-count"},m))),"block-designs"===E&&m!==y&&wp.element.createElement("li",null,wp.element.createElement("div",{className:"free"===S?"is-active":"","data-count":y,onClick:function(){x("free"),e.onSelect({block:"",plan:"free",categories:[]})},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":"free"===S?"true":"false"},Object(s.__)("Free Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"free-count"},y)),wp.element.createElement("div",{className:"premium"===S?"is-active":"","data-count":k,onClick:function(){x("premium"),e.onSelect({block:"",plan:"premium",categories:[]})},onKeyPress:function(e){13===e.keyCode&&fv.click()},role:"button",tabIndex:0,"aria-pressed":"premium"===S?"true":"false"},Object(s.__)("Premium Designs",o.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"premium-count"},k))),"block-designs"===E&&wp.element.createElement(ss,null),"block-designs"===E&&n.map(function(t,n){var a=S===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||(x(t.name),e.onSelect({block:t.name,plan:"",categories:[]}))},onKeyPress:function(e){13===e.keyCode&&fv.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)))}))};bv.defaultProps={search:"",mood:"",colors:[],categories:[],onSelect:function(){},forceBlock:"",viewBy:"",onChangeViewBy:function(){}};var hv=bv;function vv(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 yv=function(e){var t=vv(Object(i.useState)(e.search),2),n=t[0],a=t[1],r=vv(Object(i.useState)(),2),u=r[0],c=r[1],f=vv(Object(i.useState)(""),2),p=f[0],d=f[1],g=vv(Object(i.useState)([]),2),m=g[0],h=g[1],v=vv(Object(i.useState)(3),2),y=v[0],w=v[1],O=vv(Object(i.useState)([]),2),k=O[0],C=O[1],_=vv(Object(i.useState)(!0),2),S=_[0],x=_[1],E=vv(Object(i.useState)(!1),2),j=E[0],P=E[1],T=vv(Object(i.useState)(e.selectedBlock?"block-designs":"ui-kits"),2),B=T[0],M=T[1],N=vv(Se("stk__design_library_dev_mode",!1),2),I=N[0],A=N[1],D=vv(Object(i.useState)(""),2),R=D[0],z=D[1];Object(i.useEffect)(function(){return c(e.selectedBlock)},[e.selectedBlock]);var L=vv(Object(i.useState)(n),2),F=L[0],U=L[1],H=vv(Object(i.useState)(null),2),V=H[0],G=H[1];Object(i.useEffect)(function(){V&&(clearTimeout(V),G(null)),G(setTimeout(function(){U(n)},500))},[n]),Object(i.useEffect)(function(){var e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()},[]),Object(i.useEffect)(function(){j&&(C([]),x(!0)),yn({type:"block",block:u,plan:p,categories:m,search:F,reset:j}).then(function(e){C(e),R||e.some(function(e){return o.isPro||"free"!==e.plan?!!o.isPro&&(z(Object(b.last)(e.categories)),!0):(z(Object(b.last)(e.categories)),!0)})}).finally(function(){x(!1),P(!1)})},[u,p,m,F,j]);var W=Object(i.useMemo)(function(){var t=e.selectedBlock?k.filter(function(t){return t.block===e.selectedBlock}):k;return"ui-kits"===B&&0===m.length&&(t=t.filter(function(e){return e.categories.includes(R)})),t},[e.selectedBlock,k,B,m.length,R]);return 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.__)("E.g. light, dark, red, minimalist...",o.i18n),value:n,onChange:function(e){return a(e)},"data-testid":"input-search",type:"search"}),wp.element.createElement("div",{className:"ugb-modal-design-library__filters"},wp.element.createElement(hv,{search:n,categories:m,forceBlock:e.selectedBlock,viewBy:B,onSelect:function(e){var t=e.block,n=e.plan,a=e.categories;c(t),d(n),h(a)},onChangeViewBy:M}))),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:I,onChange:function(e){vn(e).then(function(){P(!0)}),A(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 P(!0)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(rv,{width:"18",height:"18"}),className:2===y?"is-active":"",label:Object(s.__)("Large preview",o.i18n),onClick:function(){return w(2)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(cv,{width:"18",height:"18"}),className:3===y?"is-active":"",label:Object(s.__)("Medium preview",o.i18n),onClick:function(){return w(3)}}),wp.element.createElement(l.Button,{icon:wp.element.createElement(ov,{width:"18",height:"18"}),className:4===y?"is-active":"",label:Object(s.__)("Small preview",o.i18n),onClick:function(){return w(4)}})),wp.element.createElement("div",{className:"ugb-modal-design-library__designs"},wp.element.createElement(Ul,{columns:y,onSelect:e.onSelect,isBusy:S,designs:W}))))};yv.defaultProps={search:"",selectedBlock:"",onClose:function(){},onSelect:function(){}};var wv=yv;function Ov(){return(Ov=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 kv=K.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"}),Cv=function(e){return K.a.createElement("svg",Ov({"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),kv)};function _v(){return(_v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 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 xv=function(){return wp.element.createElement(Cv,{className:"ugb-icon-is-loading"})},Ev=function(e){var t=Sv(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(xv,null);var o=e.value?e.value.replace(/-.*$/,""):e.prefix,s=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(o&&s){var u=Ee(o,s);return u?wp.element.createElement(i.RawHTML,l,u):(function(e,t){var n=je(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var r=240,i=setInterval(function(){var l=je(e,t);window.FontAwesome?(clearInterval(i),n(l)):r--<0&&(clearInterval(i),a(!1))},250)})}(o,s).then(r),wp.element.createElement(xv,null))}var c=Ee("far","smile");return wp.element.createElement(i.RawHTML,_v({},l,{className:"".concat(e.className," ugb-icon--faded")}),c)};Ev.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=Ee(n,a);return wp.element.createElement(i.RawHTML,t,r)},Ev.defaultProps={prefix:"",iconName:"",value:""};var jv=Ev;function Pv(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 Tv=1,Bv=function(e){var t=Pv(Object(i.useState)("ugb-admin-setting-".concat(Tv++)),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))};Bv.defaultProps={label:""};var Mv=Bv,Nv=function(e){return wp.element.createElement(Mv,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)};Nv.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:function(){}};var Iv=Nv,Av=function(e){return wp.element.createElement(Mv,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)))};Av.defaultProps={label:"",value:!1,placeholder:"",onChange:function(){},disabled:Object(s.__)("Disabled",o.i18n),enabled:Object(s.__)("Enabled",o.i18n),width:""};var Dv=Av;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")}()}function zv(e){return(zv="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 Lv(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 Fv(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 Uv(e){return(Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vv(e,t){return(Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gv=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=Uv(t).apply(this,arguments))||"object"!==zv(a)&&"function"!=typeof a?Hv(n):a).toggleBlock=e.toggleBlock.bind(Hv(e)),e.enableAllBlocks=e.enableAllBlocks.bind(Hv(e)),e.disableAllBlocks=e.disableAllBlocks.bind(Hv(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&&Vv(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(Lv(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))))})))}}])&&Fv(n.prototype,r),u&&Fv(n,u),t}(),Wv=null,qv=function(){var e=Rv(Object(i.useState)(!1),2),t=e[0],n=e[1],a=Rv(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(Iv,{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(Wv),Wv=setTimeout(function(){new c.models.Settings({stackable_global_content_selector:e}).save()},500),l(e)}}),wp.element.createElement(Dv,{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)}))},Kv=function(e){var t=Rv(Object(i.useState)(!1),2),n=t[0],a=t[1],r=Rv(Object(i.useState)(!1),2),u=r[0],f=r[1],p=Rv(Object(i.useState)(!1),2),d=p[0],g=p[1],m=Rv(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)))};Kv.defaultProps={showProNoticesOption:!1},Object(r.a)(function(){Object(i.render)(wp.element.createElement(Gv,{blocks:u,disabledBlocks:o.disabledBlocks}),document.querySelector(".s-settings-wrapper")),Object(i.render)(wp.element.createElement(Kv,{showProNoticesOption:o.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),Object(i.render)(wp.element.createElement(qv,null),document.querySelector(".s-global-settings"))})}]);
dist/editor_blocks.js CHANGED
@@ -1,2 +1,2 @@
1
- var editor_blocks=function(e){function t(t){for(var a,r,l=t[0],c=t[1],s=t[2],b=0,p=[];b<l.length;b++)r=l[b],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&p.push(i[r][0]),i[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(u&&u(t);p.length;)p.shift()();return o.push.apply(o,s||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,l=1;l<n.length;l++){var c=n[l];0!==i[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},i={0:0},o=[];function r(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,r),n.l=!0,n.exports}r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.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 o.push([455,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=[],o={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"},r=function(e){return!e.match(/^(sans[-+]serif|serif|monospace|serif-alt)$/i)},l=function(e){if(!i.includes(e)){if(document&&r(e)){var t=document.createElement("link");t.setAttribute("href",function(e){var t=e.replace(/ /g,"+"),n=o[a.locale]?"&subset=".concat(o):"";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 r(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,o){var r=m({},t);return void 0!==r.selector&&(r.selector=Object(b.sprintf)(r.selector,o+1)),n[Object(u.camelCase)(Object(b.sprintf)(e,i,a))]=r,n},{}))},{}):n.reduce(function(n,a,i){var o=m({},t);return void 0!==o.selector&&(o.selector=Object(b.sprintf)(o.selector,i+1)),n[Object(u.camelCase)(Object(b.sprintf)(e,a))]=o,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))},o=yt(n,i,""),r=a.importantSize,l=void 0!==r&&r,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=o("FontSize"),O=o("TabletFontSize"),w=o("MobileFontSize");if("tablet"!==t&&"mobile"!==t)v={fontFamily:""!==o("FontFamily")?c(o("FontFamily")):void 0,fontSize:""!==y?vt("".concat(y).concat(o("FontSizeUnit")||"px"),l):void 0,fontWeight:""!==o("FontWeight")?o("FontWeight"):void 0,textTransform:""!==o("TextTransform")?o("TextTransform"):void 0,letterSpacing:""!==o("LetterSpacing")?"".concat(o("LetterSpacing"),"px"):void 0,lineHeight:""!==o("LineHeight")?"".concat(o("LineHeight")).concat(o("LineHeightUnit")||"em"):void 0};else if("tablet"===t){if(v={lineHeight:""!==o("TabletLineHeight")?"".concat(o("TabletLineHeight")).concat(o("TabletLineHeightUnit")||"em"):void 0},g){var _=Ot(y,{min:h,max:f});_&&(v.fontSize="".concat(_).concat(o("FontSizeUnit")||"px"))}O&&(v.fontSize=o("TabletFontSize","%s".concat(o("TabletFontSizeUnit")||"px")))}else{if(v={lineHeight:""!==o("MobileLineHeight")?"".concat(o("MobileLineHeight")).concat(o("MobileLineHeightUnit")||"em"):void 0},g){var j=Ot(y,{min:h,max:f});j&&(v.fontSize="".concat(j).concat(o("FontSizeUnit")||"px"));var k=Ot(O,{min:h,max:f});k?v.fontSize="".concat(k).concat(o("TabletFontSizeUnit")||"px"):(j||O)&&(v.fontSize=void 0)}w&&(v.fontSize=o("MobileFontSize","%s".concat(o("MobileFontSizeUnit")||"px")))}return p?ht(v):v},E=n(18),S=n(4);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 P={},A=function(){P=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}),P={},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(P).length&&!t||A(),P[e]||P.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(){A()});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))},o=yt(n,i),r=a.importantBackgroundColor,l=void 0!==r&&r,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=o("BackgroundCustomSize")?o("BackgroundCustomSize")+(o("BackgroundCustomSizeUnit")||"%"):void 0,h=o("TabletBackgroundCustomSize")?o("TabletBackgroundCustomSize")+(o("TabletBackgroundCustomSizeUnit")||"%"):void 0,v=o("MobileBackgroundCustomSize")?o("MobileBackgroundCustomSize")+(o("MobileBackgroundCustomSizeUnit")||"%"):void 0,y=vt(o("BackgroundColor"),l);return o("BackgroundColorType")||void 0===n[i("BackgroundColorOpacity")]||""===n[i("BackgroundColorOpacity")]||o("BackgroundMediaURL")||o("TabletBackgroundMediaURL")||o("MobileBackgroundMediaURL")||(y=vt("".concat(un(o("BackgroundColor")||"#ffffff",o("BackgroundColorOpacity")||0)),l)),"tablet"!==t&&"mobile"!==t?{backgroundColor:y,backgroundAttachment:o("FixedBackground")?"fixed":void 0,backgroundImage:o("BackgroundMediaURL","url(%s)"),backgroundPosition:vt(o("BackgroundPosition"),s),backgroundRepeat:vt(o("BackgroundRepeat"),d),backgroundSize:o("BackgroundSize")?vt("custom"!==o("BackgroundSize")?o("BackgroundSize"):f,m):void 0,backgroundBlendMode:o("BackgroundImageBlendMode")}:"tablet"===t?{backgroundImage:o("TabletBackgroundMediaURL","url(%s)"),backgroundPosition:vt(o("TabletBackgroundPosition"),s),backgroundRepeat:vt(o("TabletBackgroundRepeat"),d),backgroundSize:o("TabletBackgroundSize")?vt("custom"!==o("TabletBackgroundSize")?o("TabletBackgroundSize"):h,m):void 0}:{backgroundImage:o("MobileBackgroundMediaURL","url(%s)"),backgroundPosition:vt(o("MobileBackgroundPosition"),s),backgroundRepeat:vt(o("MobileBackgroundRepeat"),d),backgroundSize:o("MobileBackgroundSize")?vt("custom"!==o("MobileBackgroundSize")?o("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))},o=yt(n,i),r=a.importantBackgroundColor,l=void 0!==r&&r,c=parseInt(o("BackgroundTintStrength","",5)||0,10)/10,s="gradient"===o("BackgroundColorType"),p=un(o("BackgroundColor2")||"#ffffff",0),m=un(o("BackgroundColor")||"#ffffff",0),g="".concat(o("BackgroundGradientLocation1")||"0","%"),d="".concat(o("BackgroundGradientLocation2")||"100","%");return"tablet"!==t&&"mobile"!==t?{backgroundColor:vt(!s&&o("BackgroundColor")?o("BackgroundColor"):void 0,l),backgroundImage:vt(s?"linear-gradient(".concat(o("BackgroundGradientDirection","%sdeg","90deg"),", ").concat(o("BackgroundColor")||p," ").concat(g,", ").concat(o("BackgroundColor2")||m," ").concat(d,")"):void 0,l),opacity:o("BackgroundMediaURL")?c:void 0,mixBlendMode:s?o("BackgroundGradientBlendMode"):void 0}:"tablet"===t?{opacity:o("TabletBackgroundMediaURL")?c:void 0}:{opacity:o("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=yt(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]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return U(n={},".".concat(i),L({},H(a,"desktop",o,r))),U(n,".".concat(i,":before"),L({},W(a,"desktop",o,r))),U(n,"tablet",(U(e={},".".concat(i),L({},H(a,"tablet",o,r))),U(e,".".concat(i,":before"),L({},W(a,"tablet",o,r))),e)),U(n,"mobile",(U(t={},".".concat(i),L({},H(a,"mobile",o,r))),U(t,".".concat(i,":before"),L({},W(a,"mobile",o,r))),t)),n},q=H,K=n(8),J=n.n(K),Y=n(6),X=function(e,t){var n=yt(t.attributes,function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},""),a=n("BackgroundMediaUrl"),i=n("TabletBackgroundMediaUrl"),o=n("MobileBackgroundMediaUrl"),r=J()(["ugb-video-background"],{"ugb--video-hide-tablet":i,"ugb--video-hide-mobile":o}),l=J()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-mobile":o}),c=J()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-tablet":!0});return wp.element.createElement(Y.Fragment,null,ln(a)&&wp.element.createElement("video",{className:r,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),ln(i)&&wp.element.createElement("video",{className:l,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:i}),ln(o)&&wp.element.createElement("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:o}))};function $(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?$(n,!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(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.exclude,a=void 0===n?[]:n,i=t.include,o=void 0===i?[]:i;return y(v(Z({},f(e,{type:"string",default:""},["BorderType","BorderColor"]),{},f(e,{type:"number",default:""},["BorderWidthTop","BorderWidthRight","BorderWidthBottom","BorderWidthLeft","TabletBorderWidthTop","TabletBorderWidthRight","TabletBorderWidthBottom","TabletBorderWidthLeft","MobileBorderWidthTop","MobileBorderWidthRight","MobileBorderWidthBottom","MobileBorderWidthLeft"])),a,e),o,e)},te=ee,ne=n(14),ae=n.n(ne);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var 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=function(e){return Object(u.camelCase)(Object(b.sprintf)(t,e))},o=yt(a,i),r=[];return o("BorderType")?(r.push((ie(e={},n,ht({borderStyle:o("BorderType"),borderColor:o("BorderColor")||"#000000",borderTopWidth:o("BorderWidthTop","%spx")||"1px",borderRightWidth:o("BorderWidthRight","%spx")||"1px",borderBottomWidth:o("BorderWidthBottom","%spx")||"1px",borderLeftWidth:o("BorderWidthLeft","%spx")||"1px"})),ie(e,"tablet",ie({},n,ht({borderTopWidth:o("TabletBorderWidthTop","%spx"),borderRightWidth:o("TabletBorderWidthRight","%spx"),borderBottomWidth:o("TabletBorderWidthBottom","%spx"),borderLeftWidth:o("TabletBorderWidthLeft","%spx")}))),ie(e,"mobile",ie({},n,ht({borderTopWidth:o("MobileBorderWidthTop","%spx"),borderRightWidth:o("MobileBorderWidthRight","%spx"),borderBottomWidth:o("MobileBorderWidthBottom","%spx"),borderLeftWidth:o("MobileBorderWidthLeft","%spx")}))),e)),ae.a.all(r)):r};function re(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 le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(n,!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=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,o=void 0===i?[]:i;return v(le({},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"])),o,e)},ue=se,be=n(5),pe=n.n(be);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 ge=pe.a.createElement("circle",{cx:50,cy:50,r:50}),de=function(e){return pe.a.createElement("svg",me({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),ge)};function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 he=pe.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),ve=function(e){return pe.a.createElement("svg",fe({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),he)};function ye(){return(ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Oe=pe.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"}),we=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object(Y.renderToString)(e).replace(/viewbox/,"viewBox").replace(/preserveaspectratio/,"preserveAspectRatio");return t?n.replace(/#/g,"%23"):n};function _e(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 je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(n,!0).forEach(function(t){ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce={circle:de,square:ve,blob1:function(e){return pe.a.createElement("svg",ye({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),Oe)}},xe=function(e){var t=Object(S.applyFilters)("stackable.image.shape.svgs",Ce);return t[e]?t[e]:null},Ee=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=yt(n,a),o=i("Shape"),r=function(e,t){return i(t)&&i(e)?i(e,"%spx"):"auto"};return"tablet"!==t&&"mobile"!==t?{borderRadius:o?void 0:i("BorderRadius","%spx"),width:i("Width","%spx"),height:i("Width")?vt(r("Width","Square")):void 0}:"tablet"===t?{width:i("TabletWidth","%spx"),height:i("TabletWidth")?vt(r("TabletWidth","TabletSquare")):void 0}:{width:i("MobileWidth","%spx"),height:i("MobileWidth")?vt(r("MobileWidth","MobileSquare")):void 0}},Se=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]:{},a=n.parentAttrNameTemplate,i=function(t){return Object(u.camelCase)(Object(b.sprintf)(e,t))},o=yt(t,i),r=function(e){if(a){var n=yt(t,function(e){return Object(u.camelCase)(Object(b.sprintf)(a,e))});return void 0!==o(e)?o(e):n(e)}return o(e)},l=r("Shape");if(!l)return{};var c=r("ShapeStretch"),s=r("ShapeFlipX"),p=r("ShapeFlipY"),m=xe(l),g=wp.element.createElement(m,{preserveAspectRatio:!["","square"].includes(l)&&c?"none":void 0,transform:s||p?"scale(".concat(s?-1:1,",").concat(p?-1:1,")"):void 0}),d=btoa(we(g));return{"-webkit-mask-image":"url('data:image/svg+xml;base64,".concat(d,"')"),"mask-image":"url('data:image/svg+xml;base64,".concat(d,"')")}},Be=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]:{},o=i.inherit,r=void 0===o||o,l=(ke(e={},".".concat(n),je({},Se(t,a,i))),ke(e,"tabletOnly",ke({},".".concat(n),je({},Ee(t,"tablet",a,i)))),ke(e,"mobile",ke({},".".concat(n),je({},Ee(t,"mobile",a,i)))),e);return r?l[".".concat(n)]=je({},l[".".concat(n)],{},Ee(t,"desktop",a,i)):l.desktopTablet=ke({},".".concat(n),je({},Ee(t,"desktop",a,i))),l},Te=n(13),Pe=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||""}},Ae=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]||Pe(e):null};window._stackableCachedImageData={};var Ne=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},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=Re(e)||Ne(e,Te.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""},Re=function(e){return window._stackableCachedImageData[e]||null};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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(n,!0).forEach(function(t){Ie(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 Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.exclude,a=void 0===n?[]:n;return v(De({},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)},Le=ze,Ue=function(e){return Object.keys(ze(e))};function He(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 We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(n,!0).forEach(function(t){Ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var 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=yt(n,a);return"tablet"!==t&&"mobile"!==t?{backgroundImage:i("Url","url(%s)"),backgroundPosition:vt(i("BackgroundPosition")),backgroundRepeat:vt(i("BackgroundRepeat")),backgroundSize:vt("custom"!==i("BackgroundSize")?i("BackgroundSize"):i("BackgroundCustomSize")?i("BackgroundCustomSize")+i("BackgroundCustomSizeUnit","%s","px"):void 0)}:{}},qe=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 Ge(e={},".".concat(n),We({},Ve(t,"desktop",a,i))),Ge(e,"tablet",Ge({},".".concat(n),We({},Ve(t,"tablet",a,i)))),Ge(e,"mobile",Ge({},".".concat(n),We({},Ve(t,"mobile",a,i)))),e};function Ke(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(n,!0).forEach(function(t){Ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selector,i=void 0===n?".ugb-button":n,o=t.defaultText,r=void 0===o?Object(b.__)("Button text",a.i18n):o,l=t.exclude,c=void 0===l?[]:l,s=t.include,u=void 0===s?[]:s;return y(v(Je({},k(e),{},f(e,{type:"string",source:"html",selector:"".concat(i," span"),default:r},["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)},$e=Xe,Ze=function(e){return Object.keys(Xe(e))};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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(n,!0).forEach(function(t){tt(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 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(){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],o=function(e){return Object(u.camelCase)(Object(b.sprintf)(t,e))},r=yt(a,o,""),l=[];l.push((tt(e={},".".concat(n," .ugb-button--inner"),et({},x(t,"desktop",a))),tt(e,"tablet",tt({},".".concat(n," .ugb-button--inner"),et({},x(t,"tablet",a)))),tt(e,"mobile",tt({},".".concat(n," .ugb-button--inner"),et({},x(t,"mobile",a)))),e));var c=r("BackgroundColor2"),s=r("BackgroundColor"),p=!1;if(""===r("Design")||"basic"===r("Design")){var m;l.push((tt(m={},".".concat(n),{backgroundColor:""!==r("BackgroundColor")?r("BackgroundColor"):void 0,backgroundImage:"gradient"===r("BackgroundColorType")?"linear-gradient(".concat(""!==a[o("BackgroundGradientDirection")]?r("BackgroundGradientDirection","%sdeg","90deg"):"90deg",", ").concat(r("BackgroundColor")||c,", ").concat(r("BackgroundColor2")||s,")"):void 0,paddingTop:""!==r("PaddingTop")?"".concat(r("PaddingTop"),"px"):void 0,paddingRight:""!==r("PaddingRight")?"".concat(r("PaddingRight"),"px"):void 0,paddingBottom:""!==r("PaddingBottom")?"".concat(r("PaddingBottom"),"px"):void 0,paddingLeft:""!==r("PaddingLeft")?"".concat(r("PaddingLeft"),"px"):void 0}),tt(m,".".concat(n," .ugb-button--inner, .").concat(n," svg:not(.ugb-custom-icon)"),{color:vt(ft(r("TextColor"),r("BackgroundColor")))}),tt(m,".".concat(n,":hover .ugb-button--inner, .").concat(n,":hover svg:not(.ugb-custom-icon)"),{color:vt(ft(r("HoverTextColor"),r("HoverBackgroundColor")))}),tt(m,".".concat(n,":hover"),{backgroundColor:""!==r("HoverBackgroundColor")?r("HoverBackgroundColor"):void 0}),m)),p=""!==r("HoverBackgroundColor");var g="gradient"===r("BackgroundColorType")&&(r("HoverBackgroundColor")||r("HoverBackgroundColor2")||r("HoverBackgroundGradientDirection"));l.push(tt({},".".concat(n,":before"),{content:g?'""':void 0,backgroundImage:g?"linear-gradient(".concat(r("HoverBackgroundGradientDirection","%sdeg")||r("BackgroundGradientDirection","%sdeg","90deg"),", ").concat(r("HoverBackgroundColor")||r("BackgroundColor")||c,", ").concat(r("HoverBackgroundColor2")||r("BackgroundColor2")||s,")"):void 0})),p=p||g||""!==r("HoverTextColor")}if("ghost"===r("Design")){var d,f;if(l.push((tt(d={},".".concat(n),{borderColor:""!==r("BackgroundColor")?vt(r("BackgroundColor")):void 0,borderWidth:""!==r("BorderWidth")?"".concat(r("BorderWidth"),"px"):void 0,paddingTop:""!==r("PaddingTop")?"".concat(r("PaddingTop"),"px"):void 0,paddingRight:""!==r("PaddingRight")?"".concat(r("PaddingRight"),"px"):void 0,paddingBottom:""!==r("PaddingBottom")?"".concat(r("PaddingBottom"),"px"):void 0,paddingLeft:""!==r("PaddingLeft")?"".concat(r("PaddingLeft"),"px"):void 0}),tt(d,".".concat(n," .ugb-button--inner"),{color:""!==r("BackgroundColor")?vt(r("BackgroundColor")):void 0}),tt(d,".".concat(n,":hover"),{borderColor:""!==r("HoverBackgroundColor")?vt(r("HoverBackgroundColor")):void 0}),tt(d,".".concat(n,":hover .ugb-button--inner"),{color:""!==r("HoverBackgroundColor")?vt(r("HoverBackgroundColor")):""!==r("BackgroundColor")?vt(r("BackgroundColor")):void 0}),d)),""!==r("Icon")||i)l.push((tt(f={},".".concat(n,".ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)"),{color:""!==r("BackgroundColor")?r("BackgroundColor"):void 0}),tt(f,".".concat(n,".ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)"),{color:""!==r("HoverBackgroundColor")?r("HoverBackgroundColor"):""!==r("BackgroundColor")?r("BackgroundColor"):void 0}),f));p=""!==r("HoverBackgroundColor");var h,v=r("HoverGhostToNormal");if(v)l.push((tt(h={},".".concat(n,":before"),{content:'""',backgroundImage:"linear-gradient(".concat(r("HoverBackgroundGradientDirection","%sdeg","90deg"),", ").concat(r("HoverBackgroundColor")||r("BackgroundColor"),", ").concat(r("HoverBackgroundColor2")||r("HoverBackgroundColor")||r("BackgroundColor"),")"),top:""!==r("BorderWidth")?"-".concat(r("BorderWidth"),"px"):void 0,right:""!==r("BorderWidth")?"-".concat(r("BorderWidth"),"px"):void 0,bottom:""!==r("BorderWidth")?"-".concat(r("BorderWidth"),"px"):void 0,left:""!==r("BorderWidth")?"-".concat(r("BorderWidth"),"px"):void 0}),tt(h,".".concat(n,":hover"),{backgroundColor:vt(""!==r("HoverBackgroundColor")?r("HoverBackgroundColor"):r("BackgroundColor"))}),tt(h,".".concat(n,":hover .ugb-button--inner"),{color:vt(ft(r("HoverTextColor"),r("HoverBackgroundColor")||r("BackgroundColor")))}),h)),(""!==r("Icon")||i)&&l.push(tt({},".".concat(n,".ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)"),{color:vt(ft(r("HoverTextColor"),r("HoverBackgroundColor")||r("BackgroundColor")))})),p=!0}if("plain"===r("Design")){var y,O;if(l.push((tt(y={},".".concat(n," .ugb-button--inner"),{color:""!==r("BackgroundColor")?vt(r("BackgroundColor")):void 0}),tt(y,".".concat(n,":hover .ugb-button--inner"),{color:""!==r("HoverBackgroundColor")?vt(r("HoverBackgroundColor")):void 0}),y)),""!==r("Icon")||i)l.push((tt(O={},".".concat(n,".ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)"),{color:""!==r("BackgroundColor")?r("BackgroundColor"):void 0}),tt(O,".".concat(n,".ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)"),{color:""!==r("HoverBackgroundColor")?r("HoverBackgroundColor"):void 0}),O));p=""!==r("HoverBackgroundColor")}if("link"!==r("Design")){var w,_=""!==a[o("IconSpacing")]&&void 0!==a[o("IconSpacing")]?"".concat(r("IconSpacing","%spx",16)):void 0,j=a[o("BorderRadius")];l.push((tt(w={},".".concat(n),{opacity:""!==r("Opacity")?r("Opacity"):void 0,borderRadius:""!==j&&void 0!==j?vt("".concat(j,"px")):void 0}),tt(w,".".concat(n,":before"),{borderRadius:""!==j&&void 0!==j?vt("".concat(j,"px")):void 0}),tt(w,".".concat(n,":hover"),{opacity:""!==r("HoverOpacity")?r("HoverOpacity"):p?1:void 0}),tt(w,".".concat(n,".ugb-button--has-icon.ugb-button--has-icon svg"),{marginLeft:(""!==r("Icon")||i)&&"right"===r("IconPosition")?_:void 0,marginRight:(""!==r("Icon")||i)&&"right"!==r("IconPosition")?_:void 0,width:""!==r("IconSize")||i?"".concat(r("IconSize"),"px"):void 0,height:""!==r("IconSize")||i?"".concat(r("IconSize"),"px"):void 0}),w))}return ae.a.all(l)},at=n(60),it=n.n(at),ot=n(28),rt=n.n(ot);function lt(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 ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(n,!0).forEach(function(t){st(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(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 bt=function(e){try{var t=Object(S.applyFilters)("stackable.util.is-dark-color",e);if(!t.match(/^#/)){if(!(t.indexOf("var(")>-1))return it()(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=rt()(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,ut(a))}return 3===(t=t.replace(/#/g,"")).length&&(t=t.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")),it()("#".concat(t))}catch(e){return!1}},pt=function(e){return"left"===e||"flex-start"===e?0:"auto"},mt=function(e){return"right"===e||"flex-end"===e?0:"auto"},gt=function(e){return"left"===e?"flex-start":"right"===e?"flex-end":e},dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=""!==e?e:void 0;return!n&&t&&bt(t)?"#ffffff":n},ft=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?bt(t)?n:a:i},ht=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(function(n,a){return ct({},n,st({},a,vt(e[a],t)))},{})},vt=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},yt=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]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,r=null!==t?t:function(e){return Object(u.lowerFirst)(e)},l=void 0===e[r(a)]?"":e[r(a)];return""!==l?i?Object(b.sprintf)(i.replace(/%$/,"%%"),l):l:o}},Ot=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,o=void 0===i?Number.POSITIVE_INFINITY:i;if(""!==e){var r=Object(u.clamp)(e,parseFloat(a),parseFloat(o));if(!isNaN(r))return parseFloat(r)!==parseFloat(e)?r:void 0}},wt=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]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r="boolean"==typeof o?{important:o}:o,l=r.important,c=void 0!==l&&l,s=r.inherit,u=void 0===s||s,p=r.inheritTabletMax,m=r.inheritTabletMin,g=r.inheritMobileMax,d=r.inheritMobileMin,f=yt(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=Ot(f(Object(b.sprintf)(t,"")),{min:m,max:p}),_=Ot(f(Object(b.sprintf)(t,"")),{min:d,max:g});return[(h={},st(h,e,st({},n,vt(v,c))),st(h,"tabletOnly",st({},e,st({},n,vt(y||w&&Object(b.sprintf)(a,w),c)))),st(h,"mobile",st({},e,st({},n,vt(O||_&&Object(b.sprintf)(a,_),c)))),h)]}return[{desktopOnly:st({},e,st({},n,vt(f(Object(b.sprintf)(t,""),a),c))),tabletOnly:st({},e,st({},n,vt(f(Object(b.sprintf)(t,"Tablet"),a),c))),mobile:st({},e,st({},n,vt(f(Object(b.sprintf)(t,"Mobile"),a),c)))}]},_t=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=yt(a),o=i("contentAlign"),r=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={},st(t,e,ht({marginLeft:c||o?pt(c||o):void 0,marginRight:c||o?mt(c||o):void 0})),st(t,"tablet",st({},e,ht({marginLeft:s||r?pt(s||r):void 0,marginRight:s||r?mt(s||r):void 0}))),st(t,"mobile",st({},e,ht({marginLeft:u||l?pt(u||l):void 0,marginRight:u||l?mt(u||l):void 0}))),t)]};function jt(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(n,!0).forEach(function(t){Ct(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt=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,o=void 0===i?[]:i,r=t.include,l=void 0===r?[]:r,c=Object.keys(At).reduce(function(n,i){return kt({},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(kt({},$e(e,{exclude:["Text","Url","NoFollow","Icon","IconPosition","NewTab"]}),{},f(e,{type:"boolean",default:""},["NewTab"]),{},f(e,{type:"boolean",default:!0},["UseSocialColors"]),{},c),o,e),l,e)},Et=xt;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}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(n,!0).forEach(function(t){Tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(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 Pt=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]:{},o=function(e){return Object(u.camelCase)(Object(b.sprintf)(n,e))},r=yt(i,o,""),l=[];if(l.push(Bt({},nt(n,a,i,!0))),!r("UseSocialColors"))return ae.a.all(l);""!==r("Design")&&"basic"!==r("Design")||l.push((Tt(e={},".".concat(a),{backgroundColor:void 0,backgroundImage:void 0}),Tt(e,".".concat(a," .ugb-button--inner, .").concat(a," svg"),{color:void 0}),Tt(e,".".concat(a,":hover .ugb-button--inner, .").concat(a,":hover svg"),{color:void 0}),Tt(e,".".concat(a,":hover"),{backgroundColor:void 0}),Tt(e,".".concat(a,":before"),{content:void 0,backgroundImage:void 0}),e));if("ghost"===r("Design")){var c;l.push((Tt(c={},".".concat(a),{borderColor:void 0}),Tt(c,".".concat(a," .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon svg"),{color:void 0}),Tt(c,".".concat(a,":hover"),{borderColor:void 0}),Tt(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=r("HoverGhostToNormal");if(p)l.push((Tt(s={},".".concat(a,":before"),{content:void 0,backgroundImage:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}),Tt(s,".".concat(a,":hover .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon:hover svg"),{color:void 0}),s))}"plain"===r("Design")&&l.push((Tt(t={},".".concat(a," .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon svg"),{color:void 0}),Tt(t,".".concat(a,":hover .ugb-button--inner, .").concat(a,".ugb-button--has-icon.ugb-button--has-icon:hover svg"),{color:void 0}),t));return ae.a.all(l)},At={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>'}},Nt=n(17);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 Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(n,!0).forEach(function(t){Ft(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}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dt=["uniqueClass"],It={};function zt(e){return It[e.name]||(It[e.name]=Object(Nt.createBlock)(e.name).attributes),Object.keys(It[e.name]).every(function(t){return!!Dt.includes(t)||It[e.name][t]===e.attributes[t]})}var Lt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(Te.select)("core/block-editor"),i=a.getBlockName,o=a.getSelectedBlockClientId,r=a.getBlockAttributes,l=a.hasMultiSelection,c=a.getMultiSelectedBlockClientIds,b=Object(Te.dispatch)("core/block-editor"),p=b.updateBlockAttributes,m=Object(Te.select)("core/blocks"),g=m.getBlockType;if(n||!l()){var d=n||o();if(d){var f=r(d),h=i(d).replace(/^\w+\//g,""),v=g(i(d)).attributes,y=Object.keys(v).reduce(function(e,t){return Rt({},e,Ft({},t,v[t]?v[t].default:""))},{}),O=Object(S.applyFilters)("stackable.".concat(h,".design.filtered-block-attributes"),Rt({},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 Ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(Y.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),a=Ut(n,2),i=a[0],o=a[1],r=function(t){try{var n=t instanceof Function?t(i):t;o(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}};return[i,r]},Wt=function(){return void 0!==Nt.registerBlockCollection},Gt=function(){return Wt()};function Vt(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 qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(n,!0).forEach(function(t){Kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}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 Jt=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,o=void 0===i?"fas-cogs":i,r=t.exclude,l=void 0===r?[]:r,c=t.include,s=void 0===c?[]:c;return y(v(qt({},f(e,{type:"string",source:"html",selector:"".concat(a),default:o},["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)},Yt=Jt,Xt=function(e){return Object.keys(Jt(e))};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 Zt=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))},o=yt(a,i),r=[],l=Ot(o("Size"),{max:200}),c=Ot(o("Size"),{max:200});return r.push(($t(e={},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg"),{width:vt(o("Size","%spx")),height:vt(o("Size","%spx"))}),$t(e,"tabletOnly",$t({},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg"),{width:vt(o("TabletSize","%spx")||l&&"".concat(l,"px")),height:vt(o("TabletSize","%spx")||c&&"".concat(c,"px"))})),$t(e,"mobile",$t({},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg"),{width:vt(o("MobileSize","%spx")||l&&"".concat(l,"px")),height:vt(o("MobileSize","%spx")||c&&"".concat(c,"px"))})),$t(e,".".concat(n," .ugb-icon-inner-svg"),{color:vt(o("Color")),transform:vt(o("Rotation","rotate(%sdeg)"))}),$t(e,"saveOnly",$t({},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg *"),{color:vt(o("Color")),fill:vt(o("Color"))})),$t(e,"editor",$t({},".".concat(n," .ugb-icon-inner-svg, .").concat(n," .ugb-icon-inner-svg svg path, .").concat(n," .ugb-icon-inner-svg svg g, .").concat(n," .ugb-icon-inner-svg svg shape, .").concat(n," .ugb-icon-inner-svg svg circle, .").concat(n," .ugb-icon-inner-svg svg path, .").concat(n," .ugb-icon-inner-svg svg rect, .").concat(n," .ugb-icon-inner-svg svg polygon, .").concat(n," .ugb-icon-inner-svg svg ellipse"),{color:vt(o("Color")),fill:vt(o("Color"))})),$t(e,".".concat(n),{opacity:vt(o("Opacity"))}),e)),"shaped"!==o("Design")&&"outlined"!==o("Design")||r.push($t({},".".concat(n," .ugb-icon__design-wrapper"),{borderRadius:vt(o("BorderRadius","%s%","100%")),padding:vt(o("Padding","%spx"))})),"shaped"===o("Design")&&r.push($t({},".".concat(n," .ugb-icon__design-wrapper"),{background:vt(o("BackgroundColor"))})),"outlined"===o("Design")&&r.push($t({},".".concat(n," .ugb-icon__design-wrapper"),{borderColor:vt(o("BackgroundColor")),borderWidth:vt(o("OutlineWidth","%spx"))})),ae.a.all(Object(S.applyFilters)("stackable.icon-style-set.styles",r,o,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)},en=function(e,t){var n=tn(e,t);return n?n.html[0]:""},tn=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},nn=function(){return!!window.FontAwesome},an=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)})},on=function(e,t){var n=tn(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var i=240,o=setInterval(function(){var r=tn(e,t);window.FontAwesome?(clearInterval(o),n(r)):i--<0&&(clearInterval(o),a(!1))},250)})};n(25),n(489);n.d(t,"nb",function(){return rn}),n.d(t,"tb",function(){return ln}),n.d(t,"Y",function(){return cn}),n.d(t,"M",function(){return sn}),n.d(t,"ab",function(){return un}),n.d(t,"jb",function(){return bn}),n.d(t,"h",function(){return pn}),n.d(t,"mb",function(){return gn}),n.d(t,"W",function(){return fn}),n.d(t,"pb",function(){return hn}),n.d(t,"cb",function(){return yn}),n.d(t,"ob",function(){return On}),n.d(t,"kb",function(){return wn}),n.d(t,"fb",function(){return l}),n.d(t,"T",function(){return c}),n.d(t,"gb",function(){return s}),n.d(t,"R",function(){return d}),n.d(t,"i",function(){return f}),n.d(t,"D",function(){return h}),n.d(t,"C",function(){return O}),n.d(t,"J",function(){return k}),n.d(t,"K",function(){return x}),n.d(t,"I",function(){return C}),n.d(t,"S",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,"Z",function(){return G}),n.d(t,"L",function(){return X}),n.d(t,"o",function(){return te}),n.d(t,"p",function(){return oe}),n.d(t,"w",function(){return ue}),n.d(t,"B",function(){return Be}),n.d(t,"A",function(){return Se}),n.d(t,"X",function(){return xe}),n.d(t,"U",function(){return Ae}),n.d(t,"f",function(){return Ne}),n.d(t,"V",function(){return Me}),n.d(t,"y",function(){return Le}),n.d(t,"x",function(){return Ue}),n.d(t,"z",function(){return qe}),n.d(t,"r",function(){return $e}),n.d(t,"q",function(){return Ze}),n.d(t,"s",function(){return nt}),n.d(t,"bb",function(){return bt}),n.d(t,"hb",function(){return pt}),n.d(t,"ib",function(){return mt}),n.d(t,"eb",function(){return gt}),n.d(t,"vb",function(){return dt}),n.d(t,"wb",function(){return ft}),n.d(t,"d",function(){return ht}),n.d(t,"c",function(){return vt}),n.d(t,"b",function(){return yt}),n.d(t,"g",function(){return Ot}),n.d(t,"F",function(){return wt}),n.d(t,"E",function(){return _t}),n.d(t,"G",function(){return Et}),n.d(t,"H",function(){return Pt}),n.d(t,"a",function(){return At}),n.d(t,"db",function(){return zt}),n.d(t,"e",function(){return Lt}),n.d(t,"sb",function(){return we}),n.d(t,"ub",function(){return Ht}),n.d(t,"qb",function(){return Wt}),n.d(t,"rb",function(){return Gt}),n.d(t,"u",function(){return Yt}),n.d(t,"t",function(){return Xt}),n.d(t,"v",function(){return Zt}),n.d(t,"lb",function(){return Qt}),n.d(t,"O",function(){return en}),n.d(t,"Q",function(){return nn}),n.d(t,"N",function(){return an}),n.d(t,"P",function(){return on});var rn=function(e,t){return Array.from({length:t-e},function(t,n){return n+e})},ln=function(e){return e.match(/(mp4|webm|ogg)$/i)},cn=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})},sn=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)},un=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 o=rt()("#".concat(a,"ff"));return o[3]=null!==t?t:1,"rgba(".concat(o.join(", "),")")},bn=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},pn=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,o){if(i.match(/@\w+/g))return i.replace(/(@\w+[^{]+{\s*)([^{]+)/g,function(e,a,i){var r=gn(i,t,n);return"".concat(a," ").concat(r," ").concat(o)});var r=gn(i,t,n);return(a?"#editor ":"")+"".concat(r," ").concat(o)}).trim()},mn={},gn=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]:"",i="".concat(e,"-").concat(t,"-").concat(n,"-").concat(a);if(mn[i])return mn[i];var o=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(", ");return mn[i]=o,o},dn="desktop",fn=function(){return dn},hn=function(e){return dn=e},vn=!1,yn=function(){return vn},On=function(e){return vn=e},wn=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),o=n(7),r=n(8),l=n.n(r),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(o.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},r=Object.keys(i.a).reduce(function(e,i){var r;return p({},e,(m(r={},"".concat(i,"Url"),a("".concat(i,"Url"))),m(r,"onChange".concat(Object(o.upperFirst)(i),"Url"),function(e){return t(m({},n("".concat(i,"Url")),e))}),r))},{});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},r,e))};g.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(g.Content=function(e){var t=function(t){return Object(o.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(o.upperFirst)(t))]||e["".concat(t,"Url")]&&!1!==e["show".concat(Object(o.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(o.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(o.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(o.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(o.upperFirst)(t)),null),n))},{});O.Content.defaultProps=h({useSocialColors:!0},_);var j=O,k=n(5),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)},P=n(11),A=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,o=e.allowedTypes,r=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&&!r?"url(".concat(n,")"):void 0});return wp.element.createElement(A.MediaUpload,{onSelect:function(t){var n=t.url,a=t.width,i=t.height,o=e.imageSize||"full";t.sizes&&t.sizes[o]&&(n=t.sizes[o].url,a=t.sizes[o].width,i=t.sizes[o].height),e.onChange(M({},t,{url:n,width:a,height:i}))},allowedTypes:o,value:t,render:function(e){return n&&r?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(P.Dashicon,{icon:"no"})),r):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(P.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(P.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(A.URLInput,z({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(o.omit)(e,["label","help"]))))};L.defaultProps={label:Object(s.__)("URL",I.i18n),help:null,value:"",onChange:function(){}};var U=L,H=n(490),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(P.Popover,{className:a,focusOnMount:!1,position:e.position},wp.element.createElement(A.__experimentalLinkControl,{value:n,settings:i,showSuggestions:!e.disableSuggestions,onChange:function(t){var a={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow},i=Object(o.omitBy)(Object(o.omit)(t,"id","title","type"),function(e,t){return n[t]===e});Object(o.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(P.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(4);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)}function Y(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 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 $=Object(s.__)("(current %s: %s)",I.i18n),Z=Object(q.compose)([A.withColorContext,Object(q.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.disableCustomColors,n=e.label,a=e.onChange,i=e.value,o=e.className,r=void 0===o?"":o,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?Y(n,!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(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(A.getColorObjectByColorValue)(u,i),p=b&&b.name,m=Object(s.sprintf)($,n.toLowerCase(),p||i),g=wp.element.createElement(c.Fragment,null,n,i&&wp.element.createElement(P.ColorIndicator,{colorValue:i,"aria-label":m}));return wp.element.createElement(P.BaseControl,{className:l()([r,"editor-color-palette-control"]),id:"editor-color-palette-control",label:g},wp.element.createElement(P.ColorPalette,J({className:"editor-color-palette-control__color-palette",value:i,onChange:function(e){var t=Object(A.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(P.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"}),oe=C.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),re=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,oe,re)},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(P.BaseControl,{help:e.help},wp.element.createElement(Qe,{label:e.label,screens:e.screens}),wp.element.createElement(A.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(P.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(P.TextareaControl,ue({},e,{help:wp.element.createElement(c.Fragment,null,wp.element.createElement(P.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(86),ge=n.n(me),de=n(87),fe=n.n(de),he=n(88),ve=n.n(he),ye=n(89),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(Sa,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(Kr,{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.U)(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(P.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(P.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(P.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={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[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"]),r=function(e){return Object(o.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}(t);return Object(o.isEmpty)(r)?null:wp.element.createElement(P.SelectControl,Se({},i,{value:n||"large",options:r,className:l()(a,["ugb--help-tip-image-size"])}))};Te.defaultProps={className:"",label:Object(s.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var Pe=Object(q.compose)([Object(Ce.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(Te),Ae=function(e){var t=e.label,n=e.setAttributes,a=e.enablePaddingTop,i=e.enablePaddingRight,o=e.enablePaddingBottom,r=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,P=l.mobileColumnPaddingBottom,A=void 0===P?"":P,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(ur,{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:A,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:o,enableLeft:r}))};Ae.defaultProps={setAttributes:function(){},label:Object(s.__)("Column Paddings",I.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};var Ne=Ae;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 Je={desktop:wp.element.createElement(Fe,null),tablet:wp.element.createElement(He,null),mobile:wp.element.createElement(ze,null)},Ye={desktop:Object(s.__)("Desktop",I.i18n),tablet:Object(s.__)("Tablet",I.i18n),mobile:Object(s.__)("Mobile",I.i18n)},Xe=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.W)(),isScreenPickerOpen:Object(i.cb)(),isMouseOver:!1},e}var n,a,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&&Ke(e,t)}(t,c["Component"]),n=t,(a=[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),Object(i.pb)(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(P.Button,{className:e.state.screen===t?"is-active":"",onClick:function(){return e.onChangeScreen(t)},icon:Je[t],showTooltip:!1,label:Ye[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(P.Popover,{focusOnMount:!1,position:"bottom center",className:"components-tooltip","aria-hidden":"true"},Ye[t]))}))}}])&&Ge(n.prototype,a),o&&Ge(n,o),t}();Xe.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var $e=Object(q.withInstanceId)(Xe),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($e,{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,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}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={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var at=!!P.__experimentalNumberControl,it=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,i=nt(e,["allowReset","withInputField","isShiftStepEnabled"]),r=tt(Object(c.useState)(""===e.value||isNaN(e.value)?"":e.value),2),u=r[0],b=r[1],p=function(t){if(b(t),!isNaN(t)){var n=parseFloat(t);if(!isNaN(n))return void e.onChange(Object(o.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(o.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(P.RangeControl,et({},i,{initialPosition:"",onChange:p,withInputField:!1,allowReset:!1,max:null!==e.sliderMax?e.sliderMax:e.max,min:null!==e.sliderMin?e.sliderMin:e.min})),n&&at&&wp.element.createElement(P.__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(o.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(P.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)))};it.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 ot=it;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 lt(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 ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(n,!0).forEach(function(t){ct(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(o.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,r=e.placeholder;if(Array.isArray(r)||"object"!==rt(r))Array.isArray(r)&&"desktop"===e.screen?(t.placeholder=r[n]||"",t.initialPosition=r[n]||"",Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||"")):e.screen&&"desktop"!==e.screen&&(t.placeholder="",t.initialPosition="");else{var c=Object(i.W)()||"desktop";r=void 0!==r[c]?r[c]:r[Object.keys(r)[0]],Array.isArray(r)?(t.placeholder=r[n]||"",t.initialPosition=r[n]||""):(t.placeholder=r||"",t.initialPosition=r||""),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(P.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(ot,t))};st.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:"",min:0,max:100};var ut=st,bt=function(e){return wp.element.createElement(P.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(P.SelectControl,Object(o.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};bt.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var pt=bt,mt=function(e){return wp.element.createElement(P.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(P.TextControl,Object(o.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};mt.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var gt=n(90),dt=n.n(gt);function ft(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 ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e,t){return(yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ot(e){return(Ot="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 wt=function(e){return!(!e.length||"object"!==Ot(e[0].options))},_t=function(e,t){if(!t.length)return e;if(!wt(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},jt=function(e){return e.value},kt=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},Ct=function(e){return e.options},xt=function(){return!0},Et=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=ht(t).apply(this,arguments))||"object"!==Ot(a)&&"function"!=typeof a?vt(n):a).state={value:e.props.value,label:e.props.value?_t(e.props.value,e.props.options):e.props.value,suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(vt(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(vt(e)),e.onChange=e.onChange.bind(vt(e)),e.onFocus=e.onFocus.bind(vt(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&&yt(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:_t(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 wt(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(P.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(dt.a,{multiSection:wt(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:jt,renderSuggestion:function(t){return wp.element.createElement("div",{className:"ugb-autosuggest-option","data-value":t.value,id:"ugb-autosuggest-option--".concat(t.id||Object(o.kebabCase)(t.value))},e.props.renderOption?e.props.renderOption(t):t.label)},renderSectionTitle:kt,getSectionSuggestions:Ct,shouldRenderSuggestions:xt,inputProps:i}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}])&&ft(n.prototype,a),i&&ft(n,i),t}();Et.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(s.__)("No matches found",I.i18n),renderOption:null,highlightValueOnFocus:!1};var St=Et;function Bt(){return(Bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Tt=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"}),Pt=function(e){return C.a.createElement("svg",Bt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Tt)};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 Nt=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"}),Mt=function(e){return C.a.createElement("svg",At({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Nt)};function Rt(){return(Rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ft=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"}),Dt=function(e){return C.a.createElement("svg",Rt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ft)};function It(){return(It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 zt=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"}),Lt=function(e){return C.a.createElement("svg",It({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),zt)};function Ut(){return(Ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Ht=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"}),Wt=function(e){return C.a.createElement("svg",Ut({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ht)};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)}var Vt=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"}),qt=function(e){return C.a.createElement("svg",Gt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Vt)};function Kt(){return(Kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Jt=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",Kt({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Jt)};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 Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qt=[{value:"flex-start",title:Object(s.__)("Align Left",I.i18n),icon:wp.element.createElement(Dt,null)},{value:"center",title:Object(s.__)("Align Center",I.i18n),icon:wp.element.createElement(Mt,null)},{value:"flex-end",title:Object(s.__)("Align Right",I.i18n),icon:wp.element.createElement(Lt,null)}],en=[{value:"flex-start",title:Object(s.__)("Align Top",I.i18n),icon:wp.element.createElement(qt,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(Pt,null)},{value:"stretch",title:Object(s.__)("Stretch",I.i18n),icon:wp.element.createElement(Wt,null)}],tn={"flex-horizontal":Qt,"flex-vertical":[{value:"flex-start",title:Object(s.__)("Align Top",I.i18n),icon:wp.element.createElement(qt,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(Pt,null)}],"flex-vertical-with-stretch":en},nn=function(e){var t="string"==typeof e.controls?tn[e.controls]:e.controls,n=l()({"ugb-toolbar--full-width":e.fullwidth,"ugb-toolbar--multiline":e.multiline});return wp.element.createElement(P.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(P.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){Zt(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(){e.isToggleOnly&&t.value===e.value||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(P.Button,Xt({key:n},a))}),className:n}))};nn.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1};var an=nn;function on(){return(on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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(ut,on({},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 ln=rn;function cn(){return(cn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 sn=n(91).map(function(e){return{label:e.family,value:e.family}}),un=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:sn}])},[]);return wp.element.createElement(St,cn({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){sn.some(function(e){return e.value===t&&(Object(i.fb)(t),!0)}),e.onChange(t)}}))};un.defaultProps={onChange:function(){},label:Object(s.__)("Font Family",I.i18n),value:""};var bn=un,pn=n(70);function mn(){return(mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 gn(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var dn=Object(pn.a)(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),fn=Object(pn.b)(function(e){var t=e.value,n=(e.key,e.index,gn(e,["value","key","index"]));return wp.element.createElement("div",mn({className:"ugb-sort-control__item"},n),t)}),hn=!1,vn=function e(t){for(var n=t.values?t.values.splice(0,t.num):Object(o.range)(t.num).map(function(e){return e+1});n.length<t.num;)n.push(n.length+1);return wp.element.createElement(P.BaseControl,{help:t.help,className:l()(["ugb-sort-control",t.className,"ugb-sort-control--axis-".concat(t.axis)])},wp.element.createElement(Qe,mn({label:t.label},Object(o.omit)(t,Object.keys(e.defaultProps)),{afterButton:t.hasReset?wp.element.createElement(P.Button,{disabled:!t.values,onClick:function(){return t.onChange("",{oldIndex:0,newIndex:0})},isSmall:!0,isSecondary:!0},Object(s.__)("Reset")):null})),wp.element.createElement(dn,{onSortStart:function(){return hn=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,i=e.newIndex;hn=!1;var o=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(o,{oldIndex:a,newIndex:i})},axis:t.axis},n.map(function(e,n){return wp.element.createElement(fn,{key:n,index:n,value:e,onMouseEnter:function(){hn||t.onHover(n)},onMouseLeave:function(){hn||t.onHover(null)}})})))};vn.defaultProps={className:"",help:"",label:Object(s.__)("Column Arrangement",I.i18n),num:2,axis:"x",values:null,onChange:function(){},onHover:function(){},hasReset:!1};function yn(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 On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(n,!0).forEach(function(t){wn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _n={},jn={};Object(K.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){jn[e]=t}),Object(K.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===jn[e]&&(jn[e]=t)});var kn=function(e){var t=function(t){var n=Object(c.useMemo)(function(){return Object(Ce.select)("core/block-editor").getSelectedBlockClientId()},[]),a=On({},t,{onToggle:function(e,a){if(n&&t.withCaching){var i=(r=a.current,(l=r.closest("[data-ugb-tab]"))?l.getAttribute("data-ugb-tab"):""),o="".concat(n,"-").concat(i);jn[n]=i,_n[o]=e?t.title:null}var r,l;t.onToggle(e)}});if(n&&t.withCaching){var i=jn[n]||"",o="".concat(n,"-").concat(i),r=_n[o];r?a.initialOpen=r===t.title:null===r&&(a.initialOpen=!1)}return wp.element.createElement(c.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=On({},e.defaultProps||{},{withCaching:!0}),t},Cn=n(42);function xn(e){return(xn="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(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 Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(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 Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pn(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 Nn=1,Mn=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=Tn(t).apply(this,arguments))||"object"!==xn(i)&&"function"!=typeof i?Pn(a):i).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(Pn(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(Pn(n)),n.instanceId=Nn++,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?En(n,!0).forEach(function(t){Sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,Sn({},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(Cn.b)(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&Object(Cn.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"],Sn({"ugb-toggle-panel-body--advanced":this.state.showAdvanced},"ugb-panel--".concat(this.props.id),this.props.id));return wp.element.createElement(P.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(P.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)))}}])&&Bn(n.prototype,a),i&&Bn(n,i),t}();Mn.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 Rn=kn(Mn);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 Dn=function(e){var t=e.blockProps;return wp.element.createElement(Rn,Fn({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))};Dn.defaultProps={className:"",blockProps:{}};var In=Dn,zn=function(e){var t=l()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};zn.defaultProps={tab:"layout"};var Ln=zn,Un=n(24);function Hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Wn=function(e){var t=Hn(Object(c.useState)(!1),2),n=t[0],a=t[1],i=Hn(Object(c.useState)(""),2),o=i[0],r=i[1],l=Hn(Object(c.useState)([]),2),u=l[0],b=l[1],p=Hn(Object(c.useState)(!0),2),m=p[0],g=p[1],d=Hn(Object(c.useState)(""),2),f=d[0],h=d[1];return Object(c.useEffect)(function(){var t=!0;return Object(Un.c)({type:"block",block:e.block,search:o}).then(function(e){t&&b(e)}).finally(function(){t&&g(!1)}),function(){t=!1}},[e.block,o]),wp.element.createElement("div",null,wp.element.createElement(P.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(P.TextControl,{placeholder:Object(s.__)("E.g. light, dark, red, minimalist...",I.i18n),value:o,onChange:function(e){return r(e)}}),!I.isPro&&wp.element.createElement(an,{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(aa,{designs:u.filter(function(e){var t=e.plan;return!f||t===f}),isBusy:m,onSelect:e.onSelect}),n&&wp.element.createElement(sg,{search:o,selectedBlock:e.block,onClose:function(){a(!1),r("")},onSelect:function(t){e.onSelect(t),a(!1)}}))};Wn.defaultProps={block:"",onSelect:function(){}};var Gn=Wn,Vn=n(15);function qn(e){return(qn="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 Kn(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 Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $n=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=Jn(t).apply(this,arguments))||"object"!==qn(a)&&"function"!=typeof a?Yn(n):a).state={isOpen:!1,slide:0},e.open=e.open.bind(Yn(e)),e.close=e.close.bind(Yn(e)),e.prev=e.prev.bind(Yn(e)),e.next=e.next.bind(Yn(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&&Xn(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(P.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(Vn.x,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)))))}}])&&Kn(n.prototype,a),i&&Kn(n,i),t}();$n.defaultProps={button:Object(s.__)("Learn More",I.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var Zn=$n;function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ea=function(e){var t,n,a,i=e.designId,o=e.image,r=e.label,s=e.onClick,u=e.plan,b=e.isPro,p=Qn(Object(c.useState)(!1),2),m=p[0],g=p[1],d=Qn(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(P.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),Object(Un.b)(i).then(function(e){g(!1),s(e)}))}},!b&&"free"!==u&&wp.element.createElement(P.Dashicon,{icon:"lock"}),wp.element.createElement("img",{src:o,alt:r,loading:"lazy"})),wp.element.createElement("footer",null,(b||"free"===u)&&wp.element.createElement("span",null,r),!b&&"free"!==u&&!f&&wp.element.createElement("span",null,r),!b&&"free"!==u&&f&&wp.element.createElement(Zn,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(c.Fragment,null,e.premiumLabel)})))};ea.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:I.isPro,premiumLabel:Object(s.__)("Go Premium",I.i18n)};var ta=ea;var na=function(e){var t,n,a,i=e.designs,o=e.isBusy,r=e.onSelect,c=l()(["ugb-design-library-items"],(t={},n="ugb-design-library-items--columns-".concat(e.columns),a=!o&&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(ta,{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){r(e)}})}),o&&wp.element.createElement("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},wp.element.createElement(P.Spinner,null)),!o&&!(i||[]).length&&wp.element.createElement("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},Object(s.__)("No designs found",I.i18n)))};na.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var aa=na;n(413);function ia(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 oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(n,!0).forEach(function(t){ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var la={},ca=function(e){var t=function(t){var n=t.initialTab||la[t.blockProps.clientId]||(Object(i.db)(t.blockProps)?Object(o.first)(t.tabs)||"layout":"style");Object(K.doAction)("stackable.inspector.tab.initial",t.blockProps.clientId,n);var a=oa({},t,{initialTab:n,onClick:function(e){la[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=oa({},e.defaultProps||{}),t};function sa(e){return(sa="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 ua(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 ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ma(e,t){return(ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ga=[{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"}],da=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=ba(t).apply(this,arguments))||"object"!==sa(a)&&"function"!=typeof a?pa(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(pa(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(pa(e)),e.select=e.select.bind(pa(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&&ma(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"},ga.map(function(t,n){var a=t.value,i=t.title,o=t.label,r=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":o,"data-label":o},wp.element.createElement(P.Icon,{icon:r}),i):null})))}}])&&ua(n.prototype,a),i&&ua(n,i),t}();da.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};var fa=ca(da),ha=n(36);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 ya=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(o.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(P.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"}))};ya.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var Oa=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(St,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(ya,va({},t,{largePreview:e.largePreview,onEdit:e.onEdit,renderPreview:e.renderPreview}))}},e.value&&wp.element.createElement(P.Button,{icon:"edit",label:Object(s.__)("Edit Style",I.i18n),isSecondary:!0,onClick:function(){return e.onEdit(e.value)}}),e.value&&wp.element.createElement(P.Button,{icon:"editor-unlink",label:Object(s.__)("Unlink Style",I.i18n),isSecondary:!0,disabled:!e.value,onClick:e.onUnlink}))};Oa.defaultProps={className:"",label:Object(s.__)("Style",I.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};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 _a=function(e){var t=e.options,n=e.selected,a=e.title,i=void 0===a?Object(s.__)("Layout",I.i18n):a,r=e.selectedOptionInTitle,c=void 0===r||r,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(Rn,wa({title:c?wp.element.createElement("span",null,h):i,className:v,initialOpen:d},Object(o.omit)(e,["help"])),b&&wp.element.createElement("p",{className:"components-base-control__help"},b),t&&wp.element.createElement(Sa,Object(o.omit)(e,["help","title"])),e.children)};var ja=function(e){var t=e.imageFile,n=e.imageHoverFile,a=e.imageWidth,i=void 0===a?"":a,o=e.imageHeight,r=void 0===o?"":o,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:r}),c&&wp.element.createElement("img",{className:"ugb-design-panel-item__image",src:c,alt:l,width:i,height:r}),wp.element.createElement("span",{className:"design-label"},l))};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)}function Ca(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 xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ea=function(e){var t=e.options.filter(function(e){return!e.premium||I.isPro}).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(n,!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(ja,{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(P.RadioControl,ka({},Object(o.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Ea.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var Sa=Ea,Ba=n(92),Ta=n.n(Ba),Pa=n(93),Aa=n.n(Pa),Na=n(94),Ma=n.n(Na),Ra=n(95),Fa=n.n(Ra),Da=n(96),Ia=n.n(Da),za=n(97),La=n.n(za),Ua=n(98),Ha=n.n(Ua),Wa=n(99),Ga=n.n(Wa),Va=n(100),qa=n.n(Va),Ka=n(101),Ja=n.n(Ka),Ya=n(102),Xa=n.n(Ya),$a=n(103),Za=n.n($a),Qa=n(104),ei=n.n(Qa);function ti(){return(ti=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ni(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 ai=[{image:Ja.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),1),value:"wave-1"},{image:qa.a,label:Object(s.__)("Straight",I.i18n),value:"straight-1"},{image:Xa.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),2),value:"wave-2"},{image:Za.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),3),value:"wave-3"},{image:ei.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Wave",I.i18n),4),value:"wave-4"},{image:Ha.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Slant",I.i18n),1),value:"slant-1"},{image:Ga.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Slant",I.i18n),2),value:"slant-2"},{image:Ta.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Curve",I.i18n),1),value:"curve-1"},{image:Aa.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Curve",I.i18n),2),value:"curve-2"},{image:Ma.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Curve",I.i18n),3),value:"curve-3"},{image:Fa.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Rounded",I.i18n),1),value:"rounded-1"},{image:Ia.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Rounded",I.i18n),2),value:"rounded-2"},{image:La.a,label:Object(s.sprintf)(Object(s._x)("%s %d","Nth Title",I.i18n),Object(s.__)("Rounded",I.i18n),3),value:"rounded-3"}];Object(K.addFilter)("stackable.separator.edit.layouts","default",function(e){return Object(o.uniqBy)([].concat(ni(e),ai),"value")});var ii=function(e){var t=(Object(K.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter(function(t){return-1===Object(o.findIndex)(e.excludeDesigns,function(e){return e===t.value})});return wp.element.createElement(P.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:e.label,help:e.help},wp.element.createElement(Sa,ti({options:t},Object(o.omit)(e,["label","help"]))))};ii.defaultProps={label:"",help:"",excludeDesigns:[]};var oi=ii;function ri(){return(ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 li=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"}),ci=function(e){return C.a.createElement("svg",ri({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),li)};function si(){return(si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ui=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(P.BaseControl,si({className:"ugb-icon-control ugb-icon-control-".concat(t)},Object(o.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(P.Button,{isSecondary:!0,className:"ugb-icon-control__icon-button",onClick:function(){i(a?{openPopover:!1,clickedOnButton:!1}:{openPopover:!0})}},e.value&&wp.element.createElement(vr,{value:e.value}),!e.value&&wp.element.createElement(ci,{style:{opacity:.3}})),n&&wp.element.createElement(xi,{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(P.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))))}));ui.defaultProps={label:Object(s.__)("Icon",I.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var bi=ui;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)}var mi=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"}),gi=function(e){return C.a.createElement("svg",pi({"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),mi)};function di(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 fi(e,t,n,a,i,o,r){try{var l=e[o](r),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(a,i)}var hi=function(){var e,t=(e=regeneratorRuntime.mark(function e(){var t,n,a,i,o=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"icon",n=o.length>1&&void 0!==o[1]?o[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 vi(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 o=e.apply(t,n);function r(e){fi(o,a,i,r,l,"next",e)}function l(e){fi(o,a,i,r,l,"throw",e)}r(void 0)})});return function(){return t.apply(this,arguments)}}(),vi=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(di(e.membership.free),di(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}})},yi=n(105);function Oi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var wi=null,_i=null,ji=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},ki=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},Ci=function(e){var t=Oi(Object(c.useState)(""),2),n=t[0],a=t[1],o=Oi(Object(c.useState)([]),2),r=o[0],u=o[1],b=Oi(Object(c.useState)(!1),2),p=b[0],m=b[1],g=Oi(Object(c.useState)(!1),2),d=g[0],f=g[1],h=e.returnSVGValue;Object(c.useEffect)(function(){var e=!0;return clearTimeout(wi),wi=setTimeout(function(){e&&(m(!0),hi(n).then(function(t){e&&u(t)}).finally(function(){e&&m(!1)}))},500),function(){e=!1,clearTimeout(wi)}},[n]),Object(c.useEffect)(function(){_i||(_i=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!==_i&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:_i})},[d]);var v=l()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":I.isPro,"ugb-icon--has-upload":h,"ugb-icon--has-reset":e.allowReset});return wp.element.createElement(P.Popover,{className:"ugb-icon-popover",onClose:e.onClose,onClickOutside:e.onClickOutside,position:e.position,anchorRef:e.anchorRef},wp.element.createElement(P.PanelBody,null,wp.element.createElement(yi.FileDrop,{onFrameDragEnter:function(){return f(!0)},onFrameDragLeave:function(){return f(!1)},onFrameDrop:function(){return f(!1)},onDrop:function(t){if(h&&t.length)if("image/svg+xml"===t[0].type){var n=new FileReader;n.onload=function(t){f(!1);var n=ki(ji(t.target.result));e.onChange(n),e.onClose()},n.readAsText(t[0])}else f(!1);else f(!1)}},wp.element.createElement("div",{className:v},wp.element.createElement(P.TextControl,{className:"ugb-icon-popover__input",value:n,onChange:a,placeholder:Object(s.__)("Type to search icon",I.i18n)}),I.isPro&&wp.element.createElement(P.Button,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:I.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:Object(s.__)("Icon Settings",I.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),h&&wp.element.createElement(P.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){f(!1);var n=ki(ji(t.target.result));e.onChange(n),e.onClose()},a.readAsText(n[0])}else f(!1)},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},Object(s.__)("Upload SVG",I.i18n)),e.allowReset&&wp.element.createElement(P.Button,{onClick:function(){e.onChange(""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(s.__)("Clear icon",I.i18n))),wp.element.createElement("div",{className:"ugb-icon-popover__iconlist"},p&&wp.element.createElement(P.Spinner,null),!p&&r.map(function(t,n){var a=t.prefix,o=t.iconName,r="".concat(a,"-").concat(o);return wp.element.createElement("button",{key:n,className:"components-button ugb-prefix--".concat(a," ugb-icon--").concat(o),onClick:function(){e.returnSVGValue?e.onChange(ki(Object(i.O)(a,o))):e.onChange(r,a,o),e.onClose()}},wp.element.createElement(hg,{prefix:a,iconName:o}))}),!p&&!r.length&&wp.element.createElement("p",{className:"components-base-control__help"},Object(s.__)("No matches found",I.i18n))),h&&d&&wp.element.createElement("div",{className:"ugb-icon-popover__drop-indicator"},wp.element.createElement(gi,{height:"40",width:"40"}),Object(s.__)("Drop your SVG here",I.i18n)))))};Ci.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var xi=Ci,Ei=function(e){return wp.element.createElement(ps,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(Js,{label:e.label,className:l()([e.className,"ugb--help-tip-alignment-all"])}))};Ei.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(s.__)("Align",I.i18n)};var Si=Ei,Bi=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})};function Ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Pi=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=Ti(t,2),a=n[0],i=n[1];t="linear-gradient(90deg, ".concat(a||"transparent",", ").concat(i||"transparent",")")}var o=l()(["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(c.Fragment,null,wp.element.createElement("div",{className:o},wp.element.createElement(P.Button,{className:"components-circular-option-picker__option",label:Object(s.__)("Selected color",I.i18n),style:{background:t},onClick:e.onClick,ref:e._ref}),e.children))};Pi.defaultProps={color:"",onClick:function(){},_ref:null};var Ai=Pi;function Ni(){return(Ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Mi=C.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Ri=C.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Fi=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"}),Di=function(e){return C.a.createElement("svg",Ni({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Mi,Ri,Fi)},Ii=function(e){return wp.element.createElement(c.Fragment,null,wp.element.createElement("div",{className:"components-circular-option-picker__option-wrapper ugb-button-icon-popover-control-image-preview"},wp.element.createElement(P.Button,{className:"components-circular-option-picker__option",label:Object(s.__)("Selected image",I.i18n),style:{backgroundImage:e.imageUrl?"url(".concat(e.imageUrl,")"):void 0},onClick:e.onClick,ref:e._ref},!e.imageUrl&&wp.element.createElement(Di,null)),e.children))};Ii.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var zi=Ii;function Li(e){return(Li="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 Ui(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 Hi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(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 Gi(e){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qi(e,t){return(qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ki=1,Ji=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=Gi(t).apply(this,arguments))||"object"!==Li(a)&&"function"!=typeof a?Vi(n):a).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(Vi(e)),e.handleClose=e.handleClose.bind(Vi(e)),e.handleMouseLeave=e.handleMouseLeave.bind(Vi(e)),e.handleMouseEnter=e.handleMouseEnter.bind(Vi(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(Vi(e)),e.handleReset=e.handleReset.bind(Vi(e)),e.buttonRef=Object(c.createRef)(),e.buttonRefColorPreview=Object(c.createRef)(),e.buttonRefImagePreview=Object(c.createRef)(),e.instanceId=Ki++,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&&qi(e,t)}(t,c["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?Ui(n,!0).forEach(function(t){Hi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,Hi({},this.props.toggleAttributeName,!0)):e}},{key:"componentDidMount",value:function(){Object(K.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(K.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,i;(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===(i=a.el)||void 0===i?void 0:i.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(P.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:l()("ugb-button-icon-control",this.props.className)},this.props.onToggle&&wp.element.createElement(P.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(c.Fragment,null,wp.element.createElement(P.Button,{onClick:this.handleReset,className:"ugb-button-icon-control__reset",label:Object(s.__)("Reset",I.i18n),icon:"image-rotate"}),this.state.showResetPopover&&wp.element.createElement(P.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(P.ButtonGroup,null,wp.element.createElement(P.Button,{onClick:function(){e.setState({showResetPopover:!1}),e.props.onReset()},isDestructive:!0,isSecondary:!0,isSmall:!0},Object(s.__)("Reset",I.i18n)),wp.element.createElement(P.Button,{onClick:function(){return e.setState({showResetPopover:!1})},isSmall:!0},Object(s.__)("Cancel",I.i18n)))))),this.props.hasImagePreview&&wp.element.createElement(zi,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(Ai,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),this.props.renderCustomPreview&&this.props.renderCustomPreview(),wp.element.createElement(P.Button,{onClick:this.handleOpen,className:"ugb-button-icon-control__edit",label:Object(s.__)("Edit",I.i18n),isSecondary:!0,icon:"edit",id:"ugb-button-icon-control__edit-".concat(this.instanceId),ref:this.buttonRef}),this.state.open&&wp.element.createElement(P.Popover,{className:"ugb-button-icon-control__popover",focusOnMount:"container",anchorRef:this.buttonRef.current,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter},wp.element.createElement(P.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))))}}])&&Wi(n.prototype,a),i&&Wi(n,i),t}();Ji.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,renderCustomPreview:null};var Yi=Ji,Xi=function(e){var t=Object(i.U)(e.imageData,e.size||"full"),n=e.widthMax||1e3,a=0;e.imageData&&e.onChangeSize&&t&&(n=t.width,a=t.height);var o=!!t&&t.width===t.height;return wp.element.createElement(c.Fragment,null,e.onChangeImage&&wp.element.createElement(se,{label:Object(s.__)("Image",I.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,i=t.height,o=e.size||"full";t.sizes[o]&&(n=t.sizes[o].url,a=t.sizes[o].width,i=t.sizes[o].height),e.onChangeImage({id:t.id,url:n,width:a,height:i})}}),e.onChangeShape&&wp.element.createElement(Ee,{isSquareImage:o,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(Bi,null),e.onChangeAlt&&wp.element.createElement(pe,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(Pe,{label:Object(s.__)("Image Size",I.i18n),value:e.size,onChange:function(t){var n=Object(i.U)(e.imageData,t||"full"),a="",o="",r=e.url;n&&(a=n.width,o=n.height,r=n.source_url),e.onChangeSize(t,r,a,o)}}),e.onChangeWidth&&wp.element.createElement(c.Fragment,null,wp.element.createElement(ys,null,wp.element.createElement(ut,{label:Object(s.__)("Image Width",I.i18n),value:e.width,placeholder:e.placeholder,max:n,min:0,onChange:function(t){var i=a/n;e.onChangeWidth("number"==typeof t?t:"","number"==typeof t?parseInt(i*t,10):"")},allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(ut,{label:Object(s.__)("Image Width",I.i18n),value:e.tabletWidth,max:n,min:0,onChange:e.onChangeTabletWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(ut,{label:Object(s.__)("Image Width",I.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(c.Fragment,null,("number"==typeof e.width||e.width)&&wp.element.createElement(ys,null,wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Force square image",I.i18n),checked:e.square,onChange:e.onChangeSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.tabletWidth||e.tabletWidth)&&wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Force square image",I.i18n),checked:e.tabletSquare,onChange:e.onChangeTabletSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.mobileWidth||e.mobileWidth)&&wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Force square image",I.i18n),checked:e.mobileSquare,onChange:e.onChangeMobileSquare,className:"ugb--help-tip-image-square"}))),e.onChangeBorderRadius&&""===e.shape&&wp.element.createElement(ut,{label:Object(s.__)("Border Radius",I.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(ut,{label:Object(s.__)("Shadow / Outline",I.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(ne,{label:Object(s.__)("Blend Mode",I.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};Xi.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 $i=Object(q.compose)(Object(Ce.withSelect)(function(e,t){var n=e("core").getMedia;return Object(i.f)(t.id,e),{imageData:t.id?n(t.id):null}}))(Xi);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)}function Qi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eo=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=Object(i.b)(e.blockAttributes,n,"");return wp.element.createElement($i,Zi({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,i=e.url,o=e.id,r=e.width,l=e.height;t((Qi(a={},n("Url"),i),Qi(a,n("Id"),o),Qi(a,n("Width"),r),Qi(a,n("Height"),l),a))},alt:a("Alt"),onChangeAlt:function(e){return t(Qi({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,i,o){var r;t((Qi(r={},n("Size"),e),Qi(r,n("Url"),a),Qi(r,n("Width"),i),Qi(r,n("Height"),o),r))},shape:a("Shape"),onChangeShape:function(e){return t(Qi({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(Qi({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(Qi({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(Qi({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(Qi({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var i;t((Qi(i={},n("Width"),e),Qi(i,n("Height"),a),i))},onChangeTabletWidth:function(e){return t(Qi({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(Qi({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(Qi({},n("Square"),e))},onChangeTabletSquare:function(e){return t(Qi({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(Qi({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(Qi({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(Qi({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(Qi({},n("BlendMode"),e))}},e))};eo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var to=eo,no=function(e){return wp.element.createElement(c.Fragment,null,e.onChangeImage&&wp.element.createElement(se,{label:Object(s.__)("Image",I.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(Pe,{label:Object(s.__)("Image Size",I.i18n),value:e.size,onChange:function(t){e.onChangeSize(t,Object(i.V)(e.id,t||"full"))},className:"ugb--help-tip-image-size"}),e.onChangeBackgroundPosition&&wp.element.createElement(pt,{label:Object(s.__)("Background Image Position",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Top Left",I.i18n),value:"top left"},{label:Object(s.__)("Top Center",I.i18n),value:"top center"},{label:Object(s.__)("Top Right",I.i18n),value:"top right"},{label:Object(s.__)("Center Left",I.i18n),value:"center left"},{label:Object(s.__)("Center Center",I.i18n),value:"center center"},{label:Object(s.__)("Center Right",I.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",I.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",I.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",I.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"}),e.onChangeBackgroundRepeat&&wp.element.createElement(pt,{label:Object(s.__)("Background Image Repeat",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("No-Repeat",I.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",I.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",I.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",I.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"}),e.onChangeBackgroundSize&&wp.element.createElement(pt,{label:Object(s.__)("Background Image Size",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Auto",I.i18n),value:"auto"},{label:Object(s.__)("Cover",I.i18n),value:"cover"},{label:Object(s.__)("Contain",I.i18n),value:"contain"},{label:Object(s.__)("Custom",I.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"}),e.onChangeBackgroundSize&&"custom"===e.backgroundSize&&wp.element.createElement(ut,{label:Object(s.__)("Custom Size",I.i18n),units:["px","%"],min:[0,0],max:[1e3,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0}))};no.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 ao=Object(q.compose)(Object(Ce.withSelect)(function(e,t){var n=e("core").getMedia;return Object(i.f)(t.id,e),{imageData:t.id?n(t.id):null}}))(no);function io(){return(io=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ro=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=Object(i.b)(e.blockAttributes,n,"");return wp.element.createElement(ao,io({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,i=e.url,o=e.id;t((oo(a={},n("Url"),i),oo(a,n("Id"),o),a))},size:a("Size"),onChangeSize:function(e,a){var i;t((oo(i={},n("Size"),e),oo(i,n("Url"),a),i))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(oo({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(oo({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(oo({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(oo({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(oo({},n("BackgroundCustomSizeUnit"),e))}},e))};ro.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var lo=ro;function co(){return(co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 so=function(e){var t=Object(c.useMemo)(function(){return"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder(Object(i.S)(e.htmlTag,!0))):e.fontSize||e.placeholder||Object(i.S)(e.htmlTag,!0)},[e.htmlTag,e.fontSize]);return wp.element.createElement(c.Fragment,null,wp.element.createElement(Yi,{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(bn,{label:Object(s.__)("Font Family",I.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,className:"ugb--help-tip-typography-family"}),e.onChangeFontSize&&wp.element.createElement(c.Fragment,null,wp.element.createElement(ys,null,wp.element.createElement(ln,co({label:Object(s.__)("Size",I.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(ys,{screen:"tablet"},wp.element.createElement(ln,co({label:Object(s.__)("Size",I.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(ys,{screen:"mobile"},wp.element.createElement(ln,co({label:Object(s.__)("Size",I.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(P.SelectControl,{label:Object(s.__)("Weight",I.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",I.i18n),value:""},{label:Object(s.__)("Normal",I.i18n),value:"normal"},{label:Object(s.__)("Bold",I.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,className:"ugb--help-tip-typography-weight"}),e.onChangeTextTransform&&wp.element.createElement(P.SelectControl,{label:Object(s.__)("Transform",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Uppercase",I.i18n),value:"uppercase"},{label:Object(s.__)("Lowercase",I.i18n),value:"lowercase"},{label:Object(s.__)("Capitalize",I.i18n),value:"capitalize"},{label:Object(s.__)("None",I.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,className:"ugb--help-tip-typography-transform"}),e.onChangeLineHeight&&wp.element.createElement(c.Fragment,null,wp.element.createElement(ys,null,wp.element.createElement(ut,{label:Object(s.__)("Line-Height",I.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(ys,{screen:"tablet"},wp.element.createElement(ut,{label:Object(s.__)("Line-Height",I.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(ys,{screen:"mobile"},wp.element.createElement(ut,{label:Object(s.__)("Line-Height",I.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(ut,{label:Object(s.__)("Letter Spacing",I.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(c.Fragment,null,wp.element.createElement(ys,null,wp.element.createElement(ln,co({label:Object(s.__)("Size",I.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(ys,{screen:"tablet"},wp.element.createElement(ln,co({label:Object(s.__)("Size",I.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(ys,{screen:"mobile"},wp.element.createElement(ln,co({label:Object(s.__)("Size",I.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobilefontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))))};so.defaultProps={label:Object(s.__)("Typography",I.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 uo=so;function bo(){return(bo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mo=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(uo,bo({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(po({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(po({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(po({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(po({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(po({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(po({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(po({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(po({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(po({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(po({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(po({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(po({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(po({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(po({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(po({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(po({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((po(e={},n("FontFamily"),""),po(e,n("FontSize"),""),po(e,n("TabletFontSize"),""),po(e,n("MobileFontSize"),""),po(e,n("FontSizeUnit"),"px"),po(e,n("TabletFontSizeUnit"),"px"),po(e,n("MobileFontSizeUnit"),"px"),po(e,n("FontWeight"),""),po(e,n("TextTransform"),""),po(e,n("LetterSpacing"),""),po(e,n("LineHeight"),""),po(e,n("TabletLineHeight"),""),po(e,n("MobileLineHeight"),""),po(e,n("LineHeightUnit"),"em"),po(e,n("TabletLineHeightUnit"),"em"),po(e,n("MobileLineHeightUnit"),"em"),e))}},e))};mo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var go=mo,fo=function(e){return wp.element.createElement(c.Fragment,null,e.onChangeBackgroundColorType&&wp.element.createElement(P.BaseControl,{id:"ugb-background-color-type",className:"ugb--help-tip-background-color-type"},wp.element.createElement(an,{controls:[{value:"",title:Object(s.__)("Single",I.i18n)},{value:"gradient",title:Object(s.__)("Gradient",I.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&wp.element.createElement(Z,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",I.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(ut,{label:Object(s.__)("Background Color Opacity",I.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(Z,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",I.i18n),e.labelBackgroundColor,2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&wp.element.createElement(Yi,{label:Object(s.__)("Adv. Gradient Color Settings",I.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(ut,{label:Object(s.__)("Gradient Direction (degrees)",I.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(ut,{label:Object(s.sprintf)(Object(s.__)("Color %d Location",I.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(ut,{label:Object(s.sprintf)(Object(s.__)("Color %d Location",I.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(ne,{label:Object(s.__)("Background Gradient Blend Mode",I.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(Bi,null),e.onChangeBackgroundMedia&&wp.element.createElement(c.Fragment,null,wp.element.createElement(ys,null,wp.element.createElement(se,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",I.i18n):Object(s.__)("Background Image",I.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",I.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(ys,{screen:"tablet"},wp.element.createElement(se,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",I.i18n):Object(s.__)("Background Image",I.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",I.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(ys,{screen:"mobile"},wp.element.createElement(se,{label:e.backgroundMediaAllowVideo?Object(s.__)("Background Image or Video",I.i18n):Object(s.__)("Background Image",I.i18n),help:e.backgroundMediaAllowVideo?Object(s.__)("Use .mp4 format for videos",I.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(ut,{label:Object(s.__)("Background Media Tint Strength",I.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(i.tb).length>0)&&wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Fixed Background",I.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(Yi,{label:Object(s.__)("Adv. Background Image Settings",I.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(ys,null,wp.element.createElement(pt,{label:Object(s.__)("Image Position",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Top Left",I.i18n),value:"top left"},{label:Object(s.__)("Top Center",I.i18n),value:"top center"},{label:Object(s.__)("Top Right",I.i18n),value:"top right"},{label:Object(s.__)("Center Left",I.i18n),value:"center left"},{label:Object(s.__)("Center Center",I.i18n),value:"center center"},{label:Object(s.__)("Center Right",I.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",I.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",I.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",I.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(pt,{label:Object(s.__)("Image Position",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Top Left",I.i18n),value:"top left"},{label:Object(s.__)("Top Center",I.i18n),value:"top center"},{label:Object(s.__)("Top Right",I.i18n),value:"top right"},{label:Object(s.__)("Center Left",I.i18n),value:"center left"},{label:Object(s.__)("Center Center",I.i18n),value:"center center"},{label:Object(s.__)("Center Right",I.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",I.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",I.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",I.i18n),value:"bottom right"}],value:e.tabletBackgroundPosition,onChange:e.onChangeTabletBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(pt,{label:Object(s.__)("Image Position",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Top Left",I.i18n),value:"top left"},{label:Object(s.__)("Top Center",I.i18n),value:"top center"},{label:Object(s.__)("Top Right",I.i18n),value:"top right"},{label:Object(s.__)("Center Left",I.i18n),value:"center left"},{label:Object(s.__)("Center Center",I.i18n),value:"center center"},{label:Object(s.__)("Center Right",I.i18n),value:"center right"},{label:Object(s.__)("Bottom Left",I.i18n),value:"bottom left"},{label:Object(s.__)("Bottom Center",I.i18n),value:"bottom center"},{label:Object(s.__)("Bottom Right",I.i18n),value:"bottom right"}],value:e.mobileBackgroundPosition,onChange:e.onChangeMobileBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(ys,null,wp.element.createElement(pt,{label:Object(s.__)("Image Repeat",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("No-Repeat",I.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",I.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",I.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",I.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(pt,{label:Object(s.__)("Image Repeat",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("No-Repeat",I.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",I.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",I.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",I.i18n),value:"repeat-y"}],value:e.tabletBackgroundRepeat,onChange:e.onChangeTabletBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(pt,{label:Object(s.__)("Image Repeat",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("No-Repeat",I.i18n),value:"no-repeat"},{label:Object(s.__)("Repeat",I.i18n),value:"repeat"},{label:Object(s.__)("Repeat-X",I.i18n),value:"repeat-x"},{label:Object(s.__)("Repeat-Y",I.i18n),value:"repeat-y"}],value:e.mobileBackgroundRepeat,onChange:e.onChangeMobileBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(ys,null,wp.element.createElement(pt,{label:Object(s.__)("Image Size",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Auto",I.i18n),value:"auto"},{label:Object(s.__)("Cover",I.i18n),value:"cover"},{label:Object(s.__)("Contain",I.i18n),value:"contain"},{label:Object(s.__)("Custom",I.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(pt,{label:Object(s.__)("Image Size",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Auto",I.i18n),value:"auto"},{label:Object(s.__)("Cover",I.i18n),value:"cover"},{label:Object(s.__)("Contain",I.i18n),value:"contain"},{label:Object(s.__)("Custom",I.i18n),value:"custom"}],value:e.tabletBackgroundSize,onChange:e.onChangeTabletBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(pt,{label:Object(s.__)("Image Size",I.i18n),options:[{label:Object(s.__)("Default",I.i18n),value:""},{label:Object(s.__)("Auto",I.i18n),value:"auto"},{label:Object(s.__)("Cover",I.i18n),value:"cover"},{label:Object(s.__)("Contain",I.i18n),value:"contain"},{label:Object(s.__)("Custom",I.i18n),value:"custom"}],value:e.mobileBackgroundSize,onChange:e.onChangeMobileBackgroundSize,className:"ugb--help-tip-background-image-size"})),"custom"===e.backgroundSize&&wp.element.createElement(ys,null,wp.element.createElement(ut,{label:Object(s.__)("Custom Size",I.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(ys,{screen:"tablet"},wp.element.createElement(ut,{label:Object(s.__)("Custom Size",I.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(ys,{screen:"mobile"},wp.element.createElement(ut,{label:Object(s.__)("Custom Size",I.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(ne,{label:Object(s.__)("Image Blend Mode",I.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};fo.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",I.i18n),labelBackgroundColor:Object(s.__)("Background Color",I.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 ho=fo;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)}function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo=function(e){var t=e.setAttributes,n=function(t){return Object(o.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};return wp.element.createElement(ho,vo({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(yo({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(yo({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(yo({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(yo({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,i=e.url,o=e.id;t((yo(a={},n("BackgroundMediaURL"),i),yo(a,n("BackgroundMediaID"),o),a))},onChangeTabletBackgroundMedia:function(e){var a,i=e.url,o=e.id;t((yo(a={},n("TabletBackgroundMediaURL"),i),yo(a,n("TabletBackgroundMediaID"),o),a))},onChangeMobileBackgroundMedia:function(e){var a,i=e.url,o=e.id;t((yo(a={},n("MobileBackgroundMediaURL"),i),yo(a,n("MobileBackgroundMediaID"),o),a))},onChangeBackgroundTintStrength:function(e,a){var i;t((yo(i={},n("BackgroundTintStrength"),e),yo(i,n("BackgroundColor"),a),i))},onChangeFixedBackground:function(e){return t(yo({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(yo({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(yo({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(yo({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(yo({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((yo(e={},n("BackgroundGradientDirection"),""),yo(e,n("BackgroundGradientBlendMode"),""),yo(e,n("BackgroundGradientLocation1"),""),yo(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(yo({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(yo({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(yo({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(yo({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(yo({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(yo({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(yo({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(yo({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(yo({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(yo({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(yo({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(yo({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(yo({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(yo({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(yo({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(yo({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((yo(e={},n("BackgroundPosition"),""),yo(e,n("TabletBackgroundPosition"),""),yo(e,n("MobileBackgroundPosition"),""),yo(e,n("BackgroundRepeat"),""),yo(e,n("TabletBackgroundRepeat"),""),yo(e,n("MobileBackgroundRepeat"),""),yo(e,n("BackgroundSize"),""),yo(e,n("TabletBackgroundSize"),""),yo(e,n("MobileBackgroundSize"),""),yo(e,n("BackgroundCustomSize"),""),yo(e,n("TabletBackgroundCustomSize"),""),yo(e,n("MobileBackgroundCustomSize"),""),yo(e,n("BackgroundCustomSizeUnit"),"%"),yo(e,n("TabletBackgroundCustomSizeUnit"),"%"),yo(e,n("MobileBackgroundCustomSizeUnit"),"%"),yo(e,n("BackgroundImageBlendMode"),""),e))}},e))};Oo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var wo=Oo,_o=n(106),jo=n.n(_o),ko=n(107),Co=n.n(ko),xo=n(108),Eo=n.n(xo),So=n(109),Bo=n.n(So);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")}()}var Po=function(e){var t=e.design?e.design:"basic",n=e.size?e.size:"normal",a="basic"===t;return wp.element.createElement(c.Fragment,null,e.onChangeUrl&&wp.element.createElement(U,{label:Object(s.__)("Link / URL",I.i18n),value:e.url,onChange:e.onChangeUrl,placeholder:"http://"}),e.onChangeUrl&&e.onChangeNewTab&&wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Open link in new tab",I.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),e.onChangeUrl&&e.onChangeNoFollow&&wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Nofollow link",I.i18n),checked:e.noFollow,onChange:e.onChangeNoFollow}),e.onChangeUrl&&wp.element.createElement(Bi,null),e.onChangeDesign&&wp.element.createElement(Sa,{label:Object(s.__)("Design",I.i18n),selected:t,options:[{label:Object(s.__)("Basic",I.i18n),value:"basic",image:jo.a},{label:Object(s.__)("Ghost",I.i18n),value:"ghost",image:Co.a},{label:Object(s.__)("Plain",I.i18n),value:"plain",image:Bo.a}].concat(To(e.onChangeUseSocialColors?[]:[{label:Object(s.__)("Link",I.i18n),value:"link",image:Eo.a}]),To(Object(K.applyFilters)("stackable.button-controls.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(Bi,null),e.onChangeUseSocialColors&&wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Use social colors",I.i18n),checked:e.useSocialColors,onChange:e.onChangeUseSocialColors}),(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(c.Fragment,null,e.onChangeBackgroundColorType&&a&&wp.element.createElement(P.BaseControl,{id:"button-color-type",className:"ugb--help-tip-button-color-type"},wp.element.createElement(an,{controls:[{value:"",title:Object(s.__)("Single",I.i18n)},{value:"gradient",title:Object(s.__)("Gradient",I.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&"link"!==t&&wp.element.createElement(Z,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",I.i18n),Object(s.__)("Button Color",I.i18n),1):Object(s.__)("Button Color",I.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(Z,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",I.i18n),Object(s.__)("Button Color",I.i18n),2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(ut,{label:Object(s.__)("Gradient Direction (degrees)",I.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(Z,{label:Object(s.__)("Text Color",I.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(Bi,null),e.onChangeHoverGhostToNormal&&"ghost"===t&&wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Change to Normal Button on Hover",I.i18n),checked:e.hoverGhostToNormal,onChange:e.onChangeHoverGhostToNormal,className:"ugb--help-tip-button-to-normal"}),e.onChangeHoverEffect&&"link"!==t&&wp.element.createElement(P.SelectControl,{label:Object(s.__)("Hover Effect",I.i18n),value:e.hoverEffect,onChange:e.onChangeHoverEffect,options:[{value:"",label:Object(s.__)("None",I.i18n)},{value:"lift",label:Object(s.__)("Lift",I.i18n)},{value:"scale",label:Object(s.__)("Scale",I.i18n)},{value:"lift-scale",label:Object(s.__)("Lift & Scale",I.i18n)},{value:"scale-more",label:Object(s.__)("Scale More",I.i18n)},{value:"lift-scale-more",label:Object(s.__)("Lift & Scale More",I.i18n)}],className:"ugb--help-tip-button-hover-effect"}),e.onChangeOpacity&&wp.element.createElement(ut,{label:Object(s.__)("Hover Opacity",I.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(Yi,{label:Object(s.__)("Hover Colors",I.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(Z,{label:e.onChangeHoverBackgroundColor&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)?Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",I.i18n),Object(s.__)("Button Color",I.i18n),1):Object(s.__)("Button Color",I.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(Z,{label:Object(s.sprintf)(Object(s._x)("%s #%d","Panel title",I.i18n),Object(s.__)("Button Color",I.i18n),2),value:e.hoverBackgroundColor2,onChange:e.onChangeHoverBackgroundColor2}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(ut,{label:Object(s.__)("Gradient Direction (degrees)",I.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(Z,{label:Object(s.__)("Text Color",I.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(Bi,null),e.hasTypography&&"link"!==t&&wp.element.createElement(go,{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(P.SelectControl,{label:Object(s.__)("Button Size",I.i18n),value:n,options:[{value:"tiny",label:Object(s.__)("Tiny",I.i18n)},{value:"small",label:Object(s.__)("Small",I.i18n)},{value:"normal",label:Object(s.__)("Normal",I.i18n)},{value:"medium",label:Object(s.__)("Medium",I.i18n)},{value:"large",label:Object(s.__)("Large",I.i18n)}],onChange:e.onChangeSize,className:"ugb--help-tip-button-size"}),e.onChangeBorderRadius&&"link"!==t&&"plain"!==t&&wp.element.createElement(ut,{label:Object(s.__)("Border Radius",I.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(Pl,{label:Object(s.__)("Vertical Padding",I.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(Pl,{label:Object(s.__)("Horizontal Padding",I.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(ut,{label:Object(s.__)("Border Width",I.i18n),value:e.borderWidth,min:"1",max:"6",onChange:e.onChangeBorderWidth,allowReset:!0,placeholder:"2"}),e.onChangeShadow&&(""===t||"basic"===t)&&wp.element.createElement(ut,{label:Object(s.__)("Shadow",I.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(ut,{label:Object(s.__)("Opacity",I.i18n),value:e.opacity,onChange:e.onChangeOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0"}),"link"!==t&&wp.element.createElement(Bi,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(bi,{label:Object(s.__)("Icon",I.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(Yi,{label:Object(s.__)("Adv. Icon Settings",I.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(ut,{label:Object(s.__)("Icon Size",I.i18n),value:e.iconSize,onChange:e.onChangeIconSize,min:5,max:100,step:1,allowReset:!0}),e.onChangeIconPosition&&wp.element.createElement(P.SelectControl,{label:Object(s.__)("Icon Position",I.i18n),value:e.iconPosition,options:[{value:"",label:Object(s.__)("Left",I.i18n)},{value:"right",label:Object(s.__)("Right",I.i18n)}],onChange:e.onChangeIconPosition}),e.onChangeIconSpacing&&wp.element.createElement(ut,{label:Object(s.__)("Icon Spacing",I.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};Po.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 Ao=Po;function No(){return(No=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ro=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=Object(i.b)(e.blockAttributes,n,"");return wp.element.createElement(Ao,No({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(Mo({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",onChangeUrl:function(e){return t(Mo({},n("Url"),e))},onChangeNewTab:function(e){return t(Mo({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(Mo({},n("NoFollow"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(Mo({},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(Mo({},n("Opacity"),e))},onChangeTextColor:function(e){return t(Mo({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(Mo({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(Mo({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(Mo({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(Mo({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((Mo(e={},n("HoverBackgroundColor"),""),Mo(e,n("HoverBackgroundColor2"),""),Mo(e,n("HoverBackgroundGradientDirection"),""),Mo(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(Mo({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(Mo({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(Mo({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(Mo({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(Mo({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(Mo({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(Mo({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(Mo({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(Mo({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(Mo({},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(Mo({},n("Icon"),e))},onResetAdvancedIcon:function(){var e;t((Mo(e={},n("IconSize"),""),Mo(e,n("IconPosition"),""),Mo(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(Mo({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(Mo({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(Mo({},n("IconSpacing"),e))}},e))};Ro.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Fo=Ro,Do=function(e){return wp.element.createElement(c.Fragment,null,e.onChangeBorderType&&wp.element.createElement(an,{label:Object(s.__)("Borders",I.i18n),controls:[{value:"",title:Object(s.__)("None",I.i18n)},{value:"solid",title:Object(s.__)("Solid",I.i18n)},{value:"dashed",title:Object(s.__)("Dashed",I.i18n)},{value:"dotted",title:Object(s.__)("Dotted",I.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&wp.element.createElement(ur,{label:Object(s.__)("Border Width"),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:function(t){var n=t.top,a=t.right,i=t.bottom,o=t.left;e.onChangeBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:i||0===i?parseInt(i,10):"",left:o||0===o?parseInt(o,10):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:function(t){var n=t.top,a=t.right,i=t.bottom,o=t.left;e.onChangeTabletBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:i||0===i?parseInt(i,10):"",left:o||0===o?parseInt(o,10):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:function(t){var n=t.top,a=t.right,i=t.bottom,o=t.left;e.onChangeMobileBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:i||0===i?parseInt(i,10):"",left:o||0===o?parseInt(o,10):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&wp.element.createElement(Z,{value:e.borderColor,onChange:function(t){e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:Object(s.__)("Border Color",I.i18n)}))};Do.defaultProps={onResetBorder:function(){},borderType:"",onChangeBorderType:function(){},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:function(){},onChangeTabletBorderWidth:function(){},onChangeMobileBorderWidth:function(){},borderColor:"",onChangeBorderColor:function(){}};var Io=Do;function zo(){return(zo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=Object(i.b)(e.blockAttributes,n,"");return wp.element.createElement(Io,zo({borderType:a("BorderType"),onChangeBorderType:function(e){return t(Lo({},n("BorderType"),e))},onResetBorder:function(){t(Lo({},n("BorderType"),""))},borderWidthTop:a("BorderWidthTop"),borderWidthRight:a("BorderWidthRight"),borderWidthBottom:a("BorderWidthBottom"),borderWidthLeft:a("BorderWidthLeft"),tabletBorderWidthTop:a("TabletBorderWidthTop"),tabletBorderWidthRight:a("TabletBorderWidthRight"),tabletBorderWidthBottom:a("TabletBorderWidthBottom"),tabletBorderWidthLeft:a("TabletBorderWidthLeft"),mobileBorderWidthTop:a("MobileBorderWidthTop"),mobileBorderWidthRight:a("MobileBorderWidthRight"),mobileBorderWidthBottom:a("MobileBorderWidthBottom"),mobileBorderWidthLeft:a("MobileBorderWidthLeft"),onChangeBorderWidth:function(e){var a,i=e.top,o=e.right,r=e.bottom,l=e.left,c=e.borderType,s=(Lo(a={},n("BorderWidthTop"),i),Lo(a,n("BorderWidthRight"),o),Lo(a,n("BorderWidthBottom"),r),Lo(a,n("BorderWidthLeft"),l),a);c&&(s[n("BorderType")]=c),t(s)},onChangeTabletBorderWidth:function(e){var a,i=e.top,o=e.right,r=e.bottom,l=e.left;t((Lo(a={},n("TabletBorderWidthTop"),i),Lo(a,n("TabletBorderWidthRight"),o),Lo(a,n("TabletBorderWidthBottom"),r),Lo(a,n("TabletBorderWidthLeft"),l),a))},onChangeMobileBorderWidth:function(e){var a,i=e.top,o=e.right,r=e.bottom,l=e.left;t((Lo(a={},n("MobileBorderWidthTop"),i),Lo(a,n("MobileBorderWidthRight"),o),Lo(a,n("MobileBorderWidthBottom"),r),Lo(a,n("MobileBorderWidthLeft"),l),a))},borderColor:a("BorderColor"),onChangeBorderColor:function(e){var a=e.color,i=e.borderType,o=Lo({},n("BorderColor"),a);i&&(o[n("BorderType")]=i),t(o)}},e))};Uo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ho=Uo,Wo=n(110),Go=n.n(Wo),Vo=n(111),qo=n.n(Vo),Ko=n(112),Jo=n.n(Ko);function Yo(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 Xo=function(e){var t=e.design?e.design:"basic",n="shaped"===t||"outlined"===t;return wp.element.createElement(c.Fragment,null,e.onChangeIcon&&wp.element.createElement(bi,{label:Object(s.__)("Icon",I.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(Sa,{label:Object(s.__)("Design",I.i18n),selected:e.design,columns:3,options:[{label:Object(s.__)("Plain",I.i18n),value:"plain",image:Go.a},{label:Object(s.__)("Shaped",I.i18n),value:"shaped",image:qo.a},{label:Object(s.__)("Outlined",I.i18n),value:"outlined",image:Jo.a}].concat(Yo(Object(K.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),I.showProNotice&&wp.element.createElement(Kr,{title:Object(s.__)("Say Hello to Gorgeous Icons 👋",I.i18n),description:Object(s.__)("Liven up your icons with gradient fills, multiple colors and background shapes. This feature is only available on Stackable Premium",I.i18n)}),I.showProNotice&&wp.element.createElement(P.BaseControl,{label:Object(s.__)("Icon Color Type",I.i18n),id:"icon-color-type"},wp.element.createElement(an,{controls:[{value:"",title:Object(s.__)("Single",I.i18n)},{value:"gradient",title:Object(s.__)("Gradient",I.i18n),className:"ugb--is-premium",disabled:!0},{value:"multicolor",title:Object(s.__)("Multicolor",I.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(K.applyFilters)("stackable.icon-controls.edit.color",wp.element.createElement(c.Fragment,null,e.onChangeColor&&wp.element.createElement(Z,{label:Object(s.__)("Icon Color",I.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(Bi,null),n&&e.onChangeBackgroundColor&&wp.element.createElement(c.Fragment,null,I.showProNotice&&e.onChangeBackgroundColorType&&"outlined"!==e.design&&wp.element.createElement(P.BaseControl,{label:Object(s.__)("Icon Shape / Outline Color",I.i18n),id:"icon-shape-color-type"},wp.element.createElement(an,{controls:[{value:"",title:Object(s.__)("Single",I.i18n)},{value:"gradient",title:Object(s.__)("Gradient",I.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(K.applyFilters)("stackable.icon-controls.edit.background-color",wp.element.createElement(c.Fragment,null,e.onChangeBackgroundColor&&wp.element.createElement(Z,{label:Object(s.__)("Icon Shape / Outline Color",I.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(ut,{label:"shaped"===e.design?Object(s.__)("Icon Shape Border Radius",I.i18n):Object(s.__)("Outline Border Radius",I.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:50,step:1,allowReset:!0,placeholder:50}),e.onChangePadding&&wp.element.createElement(ut,{label:"shaped"===e.design?Object(s.__)("Icon Shape Padding",I.i18n):Object(s.__)("Outline Padding",I.i18n),value:e.padding,onChange:e.onChangePadding,min:0,max:150,step:1,allowReset:!0,placeholder:20}),"shaped"===t&&e.onChangeShadow&&wp.element.createElement(ut,{label:Object(s.__)("Shadow / Outline",I.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(ut,{label:Object(s.__)("Outline Width",I.i18n),value:e.outlineWidth,onChange:e.onChangeOutlineWidth,min:0,max:10,step:1,allowReset:!0,placeholder:"3"}),e.onChangeBackgroundColorType&&wp.element.createElement(Bi,null)),e.onChangeSize&&wp.element.createElement(c.Fragment,null,wp.element.createElement(ys,null,wp.element.createElement(ut,{label:Object(s.__)("Icon Size",I.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(ut,{label:Object(s.__)("Icon Size",I.i18n),value:e.tabletSize,max:e.sizeMax,onChange:e.onChangeTabletSize,allowReset:!0,placeholder:e.size||50})),wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(ut,{label:Object(s.__)("Icon Size",I.i18n),value:e.mobileSize,max:e.sizeMax,onChange:e.onChangeMobileSize,allowReset:!0,placeholder:e.tabletSize||e.size||50}))),e.onChangeOpacity&&wp.element.createElement(ut,{label:Object(s.__)("Icon Opacity",I.i18n),value:e.opacity,min:0,max:1,step:.1,onChange:e.onChangeOpacity,allowReset:!0,placeholder:"1.0"}),e.onChangeRotation&&wp.element.createElement(ut,{label:Object(s.__)("Icon Rotation",I.i18n),value:e.rotation,min:0,max:360,onChange:e.onChangeRotation,allowReset:!0,placeholder:"0"}),Object(K.applyFilters)("stackable.icon-controls.edit.after",null,e))};Xo.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 $o=Xo;function Zo(){return(Zo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var er=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},a=Object(i.b)(e.blockAttributes,n,"");return wp.element.createElement($o,Zo({icon:a("Icon"),onChangeIcon:function(e){return t(Qo({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(Qo({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(Qo({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(Qo({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(Qo({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(Qo({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(Qo({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(Qo({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(Qo({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(Qo({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(Qo({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(Qo({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(Qo({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(Qo({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(Qo({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(Qo({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(Qo({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(Qo({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(Qo({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(Qo({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(Qo({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(Qo({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(Qo({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(Qo({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(Qo({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(Qo({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(Qo({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(Qo({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(Qo({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(Qo({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(Qo({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(Qo({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(Qo({},n("Size"),e))},onChangeTabletSize:function(e){return t(Qo({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(Qo({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(Qo({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(Qo({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(Qo({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(Qo({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(Qo({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(Qo({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(Qo({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(Qo({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(Qo({},n("BackgroundShapeOffsetVertical"),e))}},e))};er.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var tr=er,nr=function(e){return wp.element.createElement(c.Fragment,null,e.socialUrlFields&&wp.element.createElement(c.Fragment,null,Object.keys(i.a).map(function(t){return wp.element.createElement(P.TextControl,{key:t,className:"ugb-social-url-text-control",label:Object(s.sprintf)(Object(s._x)("%s Link","name",I.i18n),i.a[t].label),value:e["".concat(t,"Url")],onChange:e["onChange".concat(Object(o.upperFirst)(t),"Url")],placeholder:"http://"})})),e.onChangeNewTab&&wp.element.createElement(P.ToggleControl,{label:Object(s.__)("Open link in new tab",I.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),wp.element.createElement(Bi,null),wp.element.createElement(Fo,{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}))};nr.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var ar=nr;function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 or(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=function(e){var t=e.setAttributes,n=function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(ar,ir({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(or({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(or({},n("UseSocialColors"),e))}},e))};rr.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var lr=rr;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 sr=function(e){var t=Object(o.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],i=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return wp.element.createElement(c.Fragment,null,wp.element.createElement(ys,{screen:"desktop"},wp.element.createElement(Pl,cr({},t,{min:n[0],max:a[0],step:i[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,i=t.bottom,o=t.left;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:i||0===i?parseInt(i,10):"",left:o||0===o?parseInt(o,10):""})},onChangeUnit:function(t){return e.onChangeDesktopUnit(t)},placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(ys,{screen:"tablet"},wp.element.createElement(Pl,cr({},t,{min:n[1],max:a[1],step:i[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,i=t.bottom,o=t.left;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:i||0===i?parseInt(i,10):"",left:o||0===o?parseInt(o,10):""})},onChangeUnit:function(t){return e.onChangeTabletUnit(t)}}))),wp.element.createElement(ys,{screen:"mobile"},wp.element.createElement(Pl,cr({},t,{min:n[2],max:a[2],step:i[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,i=t.bottom,o=t.left;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:i||0===i?parseInt(i,10):"",left:o||0===o?parseInt(o,10):""})},onChangeUnit:function(t){return e.onChangeMobileUnit(t)}}))))};sr.defaultProps={label:Object(s.__)("Spacing",I.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",placeholder:"",className:"ugb--help-tip-advanced-column-paddings"};var ur=sr;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 pr(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 mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(n,!0).forEach(function(t){gr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dr=function(e,t){var n=Object(i.X)(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},fr=function(e){var t=Object(K.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},hr=function(e){var t=mr({},e,{value:"string"==typeof e.value?fr(e.value):e.value}),n=l()(["ugb-icon-inner-svg",e.className],gr({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(hg,br({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var i=l()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],gr({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:i},a)}return e.showBackgroundShape&&(a=dr(a,e.backgroundShape)),a=Object(K.applyFilters)("stackable.component.svg-icon",a,t)};hr.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(hr.Content=function(e){var t=mr({},e,{value:"string"==typeof e.value?fr(e.value):e.value}),n=l()(["ugb-icon-inner-svg",e.className],gr({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(hg.Content,br({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var i=l()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],gr({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:i},a)}return e.showBackgroundShape&&(a=dr(a,e.backgroundShape)),a=Object(K.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=mr({},hr.defaultProps);var vr=hr;function yr(){return(yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 Or=function(e){var t=Object(i.b)(e.blockAttributes,function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(vr,yr({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))};Or.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},Or.Content=function(e){var t=Object(i.b)(e.blockAttributes,function(t){return Object(o.camelCase)(Object(s.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(vr.Content,yr({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))},Or.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var wr=Or;function _r(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,i=!1,o=void 0;try{for(var r,l=e[Symbol.iterator]();!(a=(r=l.next()).done)&&(n.push(r.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var kr=Object(q.withInstanceId)(function(e){var t=jr(Object(c.useState)(!1),2),n=t[0],a=t[1],i=jr(Object(c.useState)(!1),2),o=i[0],r=i[1],l=e.instanceId,s=e.isOpen,u=e.onChange,b=_r(e,["instanceId","isOpen","onChange"]);return Object(c.useEffect)(function(){e.onToggle(n)},[n]),wp.element.createElement("div",{className:"ugb-svg-icon-placeholder ugb-svg-icon-placeholder-".concat(l)},wp.element.createElement(P.Button,{className:"ugb-svg-icon-placeholder__button",onClick:function(){o?(a(!1),r(!1)):a(!0)}},wp.element.createElement(wr,b)),(null!==s&&s||null===s&&n)&&wp.element.createElement(xi,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-svg-icon-placeholder-".concat(l))?r(!0):(a(!1),r(!1))},onClose:function(){return a(!1)},onChange:u}))});kr.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var Cr=kr;function xr(){return(xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=C.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),Sr=C.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"}),Br=C.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"}),Tr=C.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),Pr=C.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),Ar=C.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),Nr=C.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),Mr=C.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"}),Rr=C.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"}),Fr=C.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"}),Dr=C.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"}),Ir=function(e){return C.a.createElement("svg",xr({id:"pro-icon_svg__Layer_3",viewBox:"0 0 155.8 175.1",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},e),Er,Sr,Br,Tr,Pr,Ar,Nr,Mr,Rr,Fr,Dr)},zr={layout:{title:Object(s.__)("Say Hello to More Layouts 👋",I.i18n),description:Object(s.__)("Get more layouts for this block. This feature is only available on Stackable Premium.",I.i18n),button:Object(s.__)("Learn More",I.i18n)},design:{title:Object(s.__)("Say Hello to More Designs 👋",I.i18n),description:Object(s.__)("Get more pre-set sections / designs for this block. This feature is only available on Stackable Premium.",I.i18n),button:Object(s.__)("Learn More",I.i18n)},image:{title:Object(s.__)("Say Hello to More Shapes 👋",I.i18n),description:Object(s.__)("Get more cool shapes for your images. This feature is only available on Stackable Premium.",I.i18n),button:Object(s.__)("Learn More",I.i18n)},effect:{title:Object(s.__)("Say Hello to More Effects 👋",I.i18n),description:Object(s.__)("Get more flashy image & hover effects. This feature is only available on Stackable Premium.",I.i18n),button:Object(s.__)("Learn More",I.i18n)},advanced:{title:Object(s.__)("Say Hello to Fine-Grained Controls 👋",I.i18n),description:Object(s.__)("Get column spacing options, column colors and more. This feature is only available on Stackable Premium.",I.i18n),button:Object(s.__)("Learn More",I.i18n)},postsBlock:{title:Object(s.__)("Say Hello to More Post Controls 👋",I.i18n),description:Object(s.__)("Get a load more button, more post options and Custom Post Types. This feature is only available on Stackable Premium.",I.i18n),button:Object(s.__)("Learn More",I.i18n)}},Lr=function(e){var t=l()(["ugb-design-control-pro-note",e.className]);return wp.element.createElement("div",{className:t},e.isDismissible&&wp.element.createElement(P.Button,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),wp.element.createElement(Ir,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||zr[e.type].title),wp.element.createElement("p",null,e.description||zr[e.type].description),e.showButton&&wp.element.createElement(Zn,{button:e.button||zr[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",I.i18n)))};Lr.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var Ur=Lr;function Hr(e){return(Hr="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 Wr(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 Gr(e){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qr(e,t){return(qr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kr=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=Gr(t).apply(this,arguments))||"object"!==Hr(a)&&"function"!=typeof a?Vr(n):a).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind(Vr(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&&qr(e,t)}(t,c["Component"]),n=t,(a=[{key:"onClick",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=l()(["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(Ur,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}])&&Wr(n.prototype,a),i&&Wr(n,i),t}();function Jr(e){return(Jr="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 Yr(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(n,!0).forEach(function(t){$r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(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}function Zr(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 Qr(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 el(e){return(el=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tl(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 al=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 i=(e=!(a=el(t).apply(this,arguments))||"object"!==Jr(a)&&"function"!=typeof a?tl(n):a).getEnabledValues(),o=!i.length||i.every(function(e){return e===i[0]}),r=i.every(function(e){return""===e});return e.state={locked:r?e.props.defaultLocked:o},e.onToggleLock=e.onToggleLock.bind(tl(e)),e.onChangeTop=e.onChangeTop.bind(tl(e)),e.onChangeRight=e.onChangeRight.bind(tl(e)),e.onChangeBottom=e.onChangeBottom.bind(tl(e)),e.onChangeLeft=e.onChangeLeft.bind(tl(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&&nl(e,t)}(t,c["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){return[].concat(Zr(this.props.enableTop?[this.props.top]:[]),Zr(this.props.enableRight?[this.props.right]:[]),Zr(this.props.enableBottom?[this.props.bottom]:[]),Zr(this.props.enableLeft?[this.props.left]:[]))}},{key:"getEnabledLocations",value:function(){return[].concat(Zr(this.props.enableTop?["top"]:[]),Zr(this.props.enableRight?["right"]:[]),Zr(this.props.enableBottom?["bottom"]:[]),Zr(this.props.enableLeft?["left"]:[]))}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.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(Xr({},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(Xr({},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(Xr({},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(Xr({},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(P.BaseControl,{help:this.props.help,className:l()("ugb-four-number-control",this.props.className)},wp.element.createElement(Qe,{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",I.i18n),value:this.props.top,placeholder:this.props.enableTop?"":Object(s.__)("auto",I.i18n),disabled:!this.props.enableTop}),wp.element.createElement("span",null,Object(s.__)("Top",I.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",I.i18n),disabled:!this.props.enableRight}),wp.element.createElement("span",null,Object(s.__)("Right",I.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",I.i18n),disabled:!this.props.enableBottom}),wp.element.createElement("span",null,Object(s.__)("Bottom",I.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",I.i18n),disabled:!this.props.enableLeft}),wp.element.createElement("span",null,Object(s.__)("Left",I.i18n))),wp.element.createElement(P.Button,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:wp.element.createElement(P.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}])&&Qr(n.prototype,a),i&&Qr(n,i),t}();al.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(q.withInstanceId)(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 ol=C.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),rl=C.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"}),ll=function(e){return C.a.createElement("svg",il({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ol,rl)};function cl(){return(cl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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=C.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),ul=C.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"}),bl=function(e){return C.a.createElement("svg",cl({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),sl,ul)};function pl(){return(pl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 ml=C.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),gl=C.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"}),dl=function(e){return C.a.createElement("svg",pl({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ml,gl)};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)}var hl=C.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),vl=C.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"}),yl=function(e){return C.a.createElement("svg",fl({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),hl,vl)};function Ol(e){return(Ol="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 wl(){return(wl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){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 _l(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 jl(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 kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(n,!0).forEach(function(t){Cl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xl(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 El(e){return(El=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sl(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 Tl=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 i=(e=!(a=El(t).apply(this,arguments))||"object"!==Ol(a)&&"function"!=typeof a?Sl(n):a).getEnabledValues(),o=e.firstValue(),r=Object.values(i).every(function(e){return e===o}),l=Object.values(i).every(function(e){return""===e});return e.state={locked:l?e.props.defaultLocked:r},e.onToggleLock=e.onToggleLock.bind(Sl(e)),e.onChangeAll=e.onChangeAll.bind(Sl(e)),e.onChangeTop=e.onChangeTop.bind(Sl(e)),e.onChangeRight=e.onChangeRight.bind(Sl(e)),e.onChangeBottom=e.onChangeBottom.bind(Sl(e)),e.onChangeLeft=e.onChangeLeft.bind(Sl(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&&Bl(e,t)}(t,c["Component"]),n=t,(a=[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return kl({},t,Cl({},n,e.props[n]))},{})}},{key:"getEnabledLocations",value:function(){return[].concat(_l(this.props.enableTop?["top"]:[]),_l(this.props.enableRight?["right"]:[]),_l(this.props.enableBottom?["bottom"]:[]),_l(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(o.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(kl({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(kl({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(kl({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(kl({},this.getEnabledValues(),{left:e||0===e?e:""}))}},{key:"render",value:function(){var e=this.props,t=e.instanceId,n=e.units,a=e.unit,i="ugb-four-range-control-".concat(t,"__item-"),o={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},r=n.indexOf(a)<0?0:n.indexOf(a);Array.isArray(this.props.min)&&(o.min=this.props.min[r]),Array.isArray(this.props.max)&&(o.max=this.props.max[r]),Array.isArray(this.props.sliderMin)&&(o.sliderMin=this.props.sliderMin[r]),Array.isArray(this.props.sliderMax)&&(o.sliderMax=this.props.sliderMax[r]),Array.isArray(this.props.step)&&(o.step=this.props.step[r]),Array.isArray(this.props.placeholder)&&(o.placeholder=this.props.placeholder[r]),Array.isArray(this.props.initialPosition)&&(o.initialPosition=this.props.initialPosition[r]);var u=l()(["ugb-four-range-control__lock"],{"ugb--is-locked":this.state.locked}),b=wp.element.createElement(P.Button,{className:u,onClick:this.onToggleLock,icon:wp.element.createElement(P.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})});return wp.element.createElement(P.BaseControl,{help:this.props.help,className:l()("ugb-four-range-control",this.props.className,{"ugb--locked":this.state.locked})},wp.element.createElement(Qe,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens,afterButton:b}),this.state.locked&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(ut,wl({id:"".concat(i,"-all"),value:this.firstValue(),onChange:this.onChangeAll,allowReset:!0},o))),!this.state.locked&&wp.element.createElement(c.Fragment,null,this.props.enableTop&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(P.Tooltip,{text:Object(s.__)("Top",I.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(yl,null))),wp.element.createElement(ut,wl({id:"".concat(i,"-top"),value:this.props.top,onChange:this.onChangeTop,allowReset:!0},o,{placeholder:this.props.placeholderTop||o.placeholder}))),this.props.enableRight&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(P.Tooltip,{text:Object(s.__)("Right",I.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(dl,null))),wp.element.createElement(ut,wl({id:"".concat(i,"-right"),value:this.props.right,onChange:this.onChangeRight,allowReset:!0},o,{placeholder:this.props.placeholderRight||o.placeholder}))),this.props.enableBottom&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(P.Tooltip,{text:Object(s.__)("Bottom",I.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(ll,null))),wp.element.createElement(ut,wl({id:"".con