Stackable – Page Builder Gutenberg Blocks - Version 3.6.1

Version Description

  • New: WordPress 6.1 compatibility
  • New: You can now change the Query String of the Posts block's Pagination Block #2313
  • New: Added Advanced Tab > Responsive > Tablet column arrangement option ##2325
  • New: Added Advanced Tab > Responsive > Tablet and mobile column arrangement option #2361
  • Fixed: RankMath compatibility for the Table of Contents block #2424
  • Fixed: Newly created columns are not cloned correctly when using the Columns block's Columns option #2476
  • Fixed: Posts block pagination could not navigate back to page 1 #2313
  • Fixed: Reset button on icon options now reset correctly #2329
  • Fixed: Copy and pasting styles on the Progress Circle and Bar blocks also copied some content #2469
  • Fixed: Progress Bar block percentage text can wrap around spaces #2464
  • Fixed: Button blocks can still be added even if they're disabled in the admin #2305
  • Fixed: Possible block error when adding conditional display about dates #2477
Download this release

Release Info

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

Code changes from version 3.5.0 to 3.6.1

dist/admin_welcome.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see admin_welcome.js.LICENSE.txt */
2
- (()=>{var e={4184:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var l=s.apply(null,a);l&&e.push(l)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var i in a)o.call(a,i)&&a[i]&&e.push(i);else e.push(a.toString())}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a)}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var l,i,c=s(e),r=1;r<arguments.length;r++){for(var m in l=Object(arguments[r]))a.call(l,m)&&(c[m]=l[m]);if(t){i=t(l);for(var u=0;u<i.length;u++)o.call(l,i[u])&&(c[i[u]]=l[i[u]])}}return c}},2408:(e,t,a)=>{"use strict";var o=a(7418);if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;s("react.element"),s("react.portal"),s("react.fragment"),s("react.strict_mode"),s("react.profiler"),s("react.provider"),s("react.context"),s("react.forward_ref"),s("react.suspense"),s("react.memo"),s("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i={};function c(e,t,a){this.props=e,this.context=t,this.refs=i,this.updater=a||l}function r(){}function m(e,t,a){this.props=e,this.context=t,this.refs=i,this.updater=a||l}c.prototype.isReactComponent={},c.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(n(85));this.updater.enqueueSetState(this,e,t,"setState")},c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},r.prototype=c.prototype;var u=m.prototype=new r;u.constructor=m,o(u,c.prototype),u.isPureReactComponent=!0;Object.prototype.hasOwnProperty},7294:(e,t,a)=>{"use strict";a(2408)},9737:(e,t,a)=>{var o={"./accordion/block.json":2103,"./blockquote/block.json":8317,"./button-group/block.json":2405,"./button/block.json":4379,"./call-to-action/block.json":1578,"./card/block.json":8598,"./column/block.json":8325,"./columns/block.json":7317,"./count-up/block.json":9730,"./design-library/block.json":6914,"./divider/block.json":3695,"./expand/block.json":6705,"./feature-grid/block.json":3705,"./feature/block.json":4859,"./heading/block.json":1642,"./hero/block.json":7125,"./icon-box/block.json":285,"./icon-button/block.json":1897,"./icon-label/block.json":5983,"./icon-list/block.json":2413,"./icon/block.json":8293,"./image-box/block.json":782,"./image/block.json":4639,"./map/block.json":6324,"./notification/block.json":1705,"./number-box/block.json":9222,"./posts/block.json":7327,"./price/block.json":6386,"./pricing-box/block.json":3345,"./separator/block.json":7388,"./spacer/block.json":9206,"./subtitle/block.json":8381,"./table-of-contents/block.json":3590,"./team-member/block.json":8511,"./testimonial/block.json":8227,"./text/block.json":7921,"./video-popup/block.json":7562};function s(e){var t=n(e);return a(t)}function n(e){if(!a.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}s.keys=function(){return Object.keys(o)},s.resolve=n,e.exports=s,s.id=9737},2103:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/accordion","title":"Accordion","description":"A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Toggle","Faq"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},2405:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/button-group","title":"Button Group","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},4379:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/button","title":"Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},1578:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/call-to-action","title":"Call to Action","description":"A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["CTA"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8598:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/card","title":"Card","description":"Describe a single subject in a small card. You can use this to describe your product, service or a person.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8325:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/column","title":"Column","description":"A single column within an advanced columns block. Get advanced options on how you want your column to look.","category":"stackable","usesContext":["postId","postType","queryId","stackable/columnFit"],"keywords":["Section rows"],"parent":["stackable/columns","stackable/feature","stackable/feature-grid"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},7317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/columns","title":"Columns / Container","description":"Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Section rows","Container"],"providesContext":{"stackable/columnFit":"columnFit"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9730:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/count-up","title":"Count Up","description":"Showcase your stats. Display how many customers you have or the number of downloads of your app.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6914:e=>{"use strict";e.exports=JSON.parse('{"name":"stackable/design-library","title":"Design Library","description":"Choose a layout or block from the Stackable Design Library.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Template"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/designs/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3695:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/divider","title":"Divider","description":"Add a pause between your content.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Horizontal Rule","HR"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},6705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/expand","title":"Expand / Show More","description":"Display a small snippet of text. Your readers can toggle it to show more information.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Hide","Less"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/feature-grid","title":"Feature Grid","description":"Display multiple product features or services. You can use Feature Grids one after another.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},4859:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/feature","title":"Feature","description":"Display a product feature or a service in a large area.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1642:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/heading","title":"Heading","description":"Introduce new sections of your content in style.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Title"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7125:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/hero","title":"Hero","description":"A large hero area. Typically used at the very top of a page.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Header"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/hero-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},285:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-box","title":"Icon Box","description":"A small text area with an icon that can be used to summarize features or services","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/icon-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1897:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},5983:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-label","title":"Icon Label","description":"An Icon and Heading paired together.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/icon-label-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},2413:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-list","title":"Icon List","description":"An unordered list with icons. You can use this as a list of features or benefits.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Checklist","Bullets","Number list"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8293:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon","title":"Icon","description":"Pick an icon or upload your own SVG icon to decorate your content.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},782:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/image-box","title":"Image Box","description":"Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},4639:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/image","title":"Image","description":"An image with advanced controls to make a visual statement.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-image-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6324:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/map","title":"Map","description":"Embedded Google Map with advanced controls.","category":"stackable","textdomain":"stackable-ultimate-gutenberg-blocks","keywords":["location","address"],"stk-type":"special","stk-demo":"https://wpstackable.com/map-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/notification","title":"Notification","description":"Show a notice to your readers. People can dismiss the notice to permanently hide it.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Notice","Alert"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9222:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/number-box","title":"Number Box","description":"Display steps or methods that your users will do in your service.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Steps"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7327:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/posts","title":"Posts","description":"Your latest blog posts. Use this to showcase a few of your posts in your landing pages.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Blog Posts","Lastest Posts","Query Loop"],"providesContext":{"type":"type","orderBy":"orderBy","order":"order","taxonomyType":"taxonomyType","taxonomy":"taxonomy","taxonomyFilterType":"taxonomyFilterType","postOffset":"postOffset","postExclude":"postExclude","postInclude":"postInclude","numberOfItems":"numberOfItems","stkQueryId":"stkQueryId"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6386:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/price","title":"Price","description":"Show a price of a product or service with currency and a suffix styled with different weights","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Currency","Pricing","Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/price-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3345:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/pricing-box","title":"Pricing Box","description":"Display the different pricing tiers of your business.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Currency","Price","Pricing Table"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7388:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/separator","title":"Separator","description":"A fancy separator to be placed between content.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Svg Divider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9206:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/spacer","title":"Spacer","description":"Sometimes you just need some space.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},8381:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/subtitle","title":"Subtitle","description":"Subtitle text that you can add custom styling to from the global settings.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/subtitle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3590:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/table-of-contents","title":"Table of Contents","description":"Automatically generated table of contents based on Heading blocks.","category":"stackable","keywords":["ToC","Index","Outline"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/table-of-contents-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8511:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/team-member","title":"Team Member","description":"Display members of your team or your office. Use multiple Team Member blocks if you have a large team.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8227:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/testimonial","title":"Testimonial","description":"Showcase what your users say about your product or service.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7921:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/text","title":"Text","description":"Start with the building block of all page layouts.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Paragraph"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7562:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/video-popup","title":"Video Popup","description":"Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["YouTube","Vimeo","Embed Mp4"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')}},t={};function a(o){var s=t[o];if(void 0!==s)return s.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};(()=>{"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},e.apply(this,arguments)}a.d(o,{R:()=>O,J:()=>j});const t=wp.element,s=wp.ajax;function n(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}const l=wp.components,i=stackable;n((()=>{const e=document.querySelector(".s-news-box-content");e&&""===e.innerHTML&&((0,t.render)((0,t.createElement)("div",null,(0,t.createElement)(l.Spinner,null)),e),(0,s.send)("stackable_news_feed_ajax",{success:t=>{e.innerHTML=t},error:e=>{alert(e)},data:{nonce:i.nonceNews}}))})),a(7294);const c=function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#3ca540",strokeWidth:7,strokeLinecap:"round",strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M88 44.32V48a40 40 0 01-28.659 38.335 40 40 0 01-44.898-16.587 40 40 0 013.149-47.76A40 40 0 0164.28 11.44"}),(0,t.createElement)("path",{d:"M88 16L48 56.04l-12-12"}))};var r=a(4184),m=a.n(r);let u=1;const d=e=>{const[a]=(0,t.useState)("ugb-admin-setting-"+u++),o=m()(["ugb-admin-setting"],{[`ugb-admin-setting--${e.size}`]:e.size});return(0,t.createElement)("div",{className:o,id:a},(0,t.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:a,onClick:e.onClick},!!e.label&&(0,t.createElement)("span",{className:"ugb-admin-setting__label"},e.label),(0,t.createElement)("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&(0,t.createElement)("p",{className:"ugb-admin-setting__help"},e.help))};d.defaultProps={label:"",onClick:()=>{}};const p=d,b=wp.i18n,k=a=>{const o=(0,t.createRef)();return(0,t.createElement)(p,e({onClick:e=>{a.onChange(!a.value),e.preventDefault(),o.current.focus()}},a),(0,t.createElement)("button",{ref:o,className:"ugb-admin-toggle-setting__button",type:"button",role:"switch","aria-checked":!!a.value,onClick:e=>{a.onChange(!a.value),e.preventDefault(),e.stopPropagation()},style:{minWidth:a.width||void 0},disabled:a.isDisabled?"disabled":""},(0,t.createElement)("span",null,a.disabled),(0,t.createElement)("span",null,a.enabled)))};k.defaultProps={label:"",value:!1,placeholder:"",onChange:()=>{},disabled:(0,b.__)("Disabled",i.i18n),enabled:(0,b.__)("Enabled",i.i18n),width:"",isDisabled:!1};const _=k,g=wp.hooks,y=wp.api;var h;const w=parseInt((null===(h=location.hash.match(/^#step-(\d+)/))||void 0===h?void 0:h[1])||1,10),f=()=>{var e;const[a,o]=(0,t.useState)(w);(0,t.useEffect)((()=>{location.hash=`step-${a}`}),[a]);let s=(0,g.applyFilters)("stackable.welcome-wizard.steps",S);i.isPro||(s=s.filter((e=>!e.isPro)));const n=(null===(e=s[a-1])||void 0===e?void 0:e.component)||null;return(0,t.createElement)("div",{className:`s-welcome-wizard__wrapper s-welcome-wizard--step-${a}`},(0,t.createElement)(E,{steps:s.filter((e=>{let{id:t}=e;return"done"!==t})),step:a}),n&&(0,t.createElement)(n,null),a!==s.length&&(0,t.createElement)("div",{className:"s-welcome-wizard__buttons"},a>1&&(0,t.createElement)("button",{className:"s-getting-started__button secondary",onClick:()=>o(a-1)},(0,b.__)("Previous",i.i18n)),(0,t.createElement)("button",{className:"s-getting-started__button primary",onClick:()=>{a===s.length?location.search="?page=stackable-getting-started":o(a+1)}},1===a?(0,b.__)("Get Started",i.i18n):a===s.length?(0,b.__)("Finish",i.i18n):(0,b.__)("Next / Skip",i.i18n))),a>1&&(0,t.createElement)("p",null,(0,t.createElement)("em",null,(0,b.__)("All these settings can be changed in the settings page.",i.i18n))))},v={essential:{description:(0,b.__)("All the necessary building blocks you need to design anything.",i.i18n)},special:{description:(0,b.__)("Blocks with special functionality that will allow you to create distinctive designs.",i.i18n)},section:{description:(0,b.__)("Use these blocks act as templates to help you build sections effortlessly.",i.i18n)}};let x=i.wizard.disabled_blocks;const E=e=>{const{step:a,steps:o}=e,s=m()(["s-welcome-wizard__steps",`s-welcome-wizard__steps--num-${o.length}`]);return(0,t.createElement)("div",{className:s},o.map(((e,o)=>{const s=m()("s-welcome-wizard__step",{"s-welcome-wizard__step--active":a>=o+1}),n=m()("s-welcome-wizard__step-divider",{"s-welcome-wizard__step--active":a>=o+1});return(0,t.createElement)(t.Fragment,{key:o},o>0&&(0,t.createElement)("div",{className:n}),(0,t.createElement)("div",{className:s},(0,t.createElement)("span",{className:"s-welcome-wizard__step-number"},o+1),(0,t.createElement)("span",{className:"s-welcome-wizard__step-label"},e.label)))})))},S=[{id:"welcome",label:(0,b.__)("Welcome",i.i18n),component:()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-welcome-wizard--centered"},(0,t.createElement)("h2",null,(0,b.__)("Welcome to Stackable!",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Let's get you started with your page building journey by configuring some settings first.",i.i18n))))},{id:"disable-blocks",label:(0,b.__)("Choose Blocks",i.i18n),component:()=>{const[e,a]=(0,t.useState)(x),[o,s]=(0,t.useState)({}),[n,c]=(0,t.useState)(!1);(0,t.useEffect)((()=>{x=e}),[e]);const r=(0,t.useCallback)((e=>{new y.models.Settings({stackable_disabled_blocks:e}).save().then((()=>c(!1))),c(!0)}),[c]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content"},(0,t.createElement)("h2",null,(0,b.__)("Choose Blocks That Fit You",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Stackable has 3 categories of blocks, and you can choose which blocks to use to fit your specific workflow.",i.i18n)),(0,t.createElement)("div",{className:"s-welcome-wizard__options s-welcome-wizard__blocks"},j.map((n=>{var c;let{id:u,label:d,Icon:p}=n;const k=o[u]||!1,g=O[u].every((t=>{let{name:a}=t;return e.includes(a)})),y=O[u].some((t=>{let{name:a}=t;return e.includes(a)})),h=O[u].every((t=>{let{name:a}=t;return!e.includes(a)}));return(0,t.createElement)("div",{className:`s-welcome-wizard__option s-box s-box--${u}`,key:u},p&&(0,t.createElement)(p,{className:"s-welcome-wizard__option-icon",height:"32",width:"32"}),(0,t.createElement)("h3",null,d),(0,t.createElement)(_,{value:h||!g&&y,onChange:t=>{const o=O[u].map((e=>e.name));let s=e.filter((e=>!o.includes(e)));t||(s=[...s,...o]),a(s),r(s)},disabled:(0,b.__)("All blocks disabled",i.i18n),enabled:h?(0,b.__)("All blocks enabled",i.i18n):(0,b.__)("Some blocks enabled",i.i18n)}),(0,t.createElement)("p",null,null===(c=v[u])||void 0===c?void 0:c.description),(0,t.createElement)(l.Button,{onClick:()=>s({...o,[u]:!k})},k?(0,b.__)("Hide all blocks",i.i18n):(0,b.__)("Show all blocks",i.i18n)+` (${O[u].length})`),(0,t.createElement)("div",{className:m()("s-welcome-wizard__block-list",{"s--show-all-blocks":k})},O[u].map(((o,s)=>{const n=e.includes(o.name);return(0,t.createElement)(_,{key:s,label:o.title,value:!n,onChange:t=>{let s=e.filter((e=>e!==o.name));t||(s=[...s,o.name]),a(s),r(s)},disabled:(0,b.__)("Disabled",i.i18n),enabled:(0,b.__)("Enabled",i.i18n),isDisabled:!k})}))))})))),n&&(0,t.createElement)(l.Spinner,{className:"s-wizard-spinner"}))}},{id:"icon",label:(0,b.__)("Icons",i.i18n),component:()=>{const e=(0,t.useMemo)((()=>(0,g.applyFilters)("stackable.welcome-wizard.icon",null)),[]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-box"},(0,t.createElement)("h2",null,(0,b.__)("Icon Settings",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Our integration with FontAwesome Pro allows you to import icons from their extensive icon library and use them in Stackable blocks.",i.i18n)),(0,t.createElement)("p",null,(0,b.sprintf)((0,b.__)("If you have %sFont Awesome Pro%s, you can use your Pro icons by inputting your Pro Kit code below.",i.i18n),"","")),e&&(0,t.createElement)(e,null)))},isPro:!0},{id:"role-manager",label:(0,b.__)("Role Manager",i.i18n),component:()=>{const[e,a]=(0,t.useState)(!1),o=(0,t.useMemo)((()=>(0,g.applyFilters)("stackable.welcome-wizard.role-manager",null)),[]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-box"},(0,t.createElement)("h2",null,(0,b.__)("Role Manager",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Stackable comes with a Role Manager so you can allow who can edit your content. By default, all user roles have full editing access in the Block Editor.",i.i18n)," ",(0,t.createElement)("a",{href:"https://docs.wpstackable.com/article/360-role-manager-and-content-editing-mode?utm_source=wp-settings-role-manager&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,b.__)("Learn more",i.i18n))),(0,t.createElement)("br",null),o&&(0,t.createElement)(o,{doneCallback:()=>a(!1),saveCallback:()=>a(!0)})),e&&(0,t.createElement)(l.Spinner,null))},isPro:!0},{id:"custom-fields",label:(0,b.__)("Custom Fields",i.i18n),component:()=>{const e=(0,t.useMemo)((()=>(0,g.applyFilters)("stackable.welcome-wizard.custom-fields",null)),[]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-box"},(0,t.createElement)("h2",null,(0,b.__)("Custom Fields",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Custom Fields allow you to create Fields that you can reference across your entire site. This is helpful when you display the same text in multiple areas in your site.",i.i18n)," ",(0,t.createElement)("a",{href:"https://docs.wpstackable.com/article/463-how-to-use-stackable-custom-fields/?utm_source=wp-settings-custom-fields&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,b.__)("Learn more",i.i18n))),(0,t.createElement)("br",null),e&&(0,t.createElement)(e,{label:(0,b.__)("Custom Fields",i.i18n)})))},isPro:!0},{id:"done",label:"",component:()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-welcome-wizard--centered s-box"},(0,t.createElement)(c,{className:"s-welcome-wizard__check",height:"96",width:"96"}),(0,t.createElement)("h2",null,(0,b.__)("You're all set!",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Let's get you started on your page building journey with Stackable.",i.i18n)),(0,t.createElement)("button",{className:"s-getting-started__button primary",onClick:()=>{location.search="?page=stackable-getting-started"}},(0,b.__)("Finish",i.i18n))))}];n((()=>{document.querySelector(".s-onboarding-wizard")&&(0,t.render)((0,t.createElement)(f,null),document.querySelector(".s-onboarding-wizard"))}));const C=lodash,I=a=>{const o=(0,t.createRef)();return(0,t.createElement)(p,e({onClick:e=>{e.preventDefault(),o.current.focus()}},a),(0,t.createElement)("input",{ref:o,className:"ugb-admin-text-setting",type:a.type,value:a.value,placeholder:a.placeholder,onChange:e=>{a.onChange(e.target.value),e.preventDefault(),e.stopPropagation()}}),a.children)};I.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:()=>{}};const N=I,O=(e=>{const t={};return e.keys().forEach((a=>{const o=e(a),s=o["stk-type"];s&&(t[s]||(t[s]=[]),t[s].push(o)),(o.variations||[]).forEach((e=>{const a=e["stk-type"];a&&(t[a]||(t[a]=[]),t[a].push({...e,name:`${o.name}|${e.name}`}))}))})),Object.keys(t).forEach((e=>{t[e]=(0,C.sortBy)(t[e],"name")})),t})(a(9737)),j=[{id:"essential",label:(0,b.__)("Essential Blocks",i.i18n),Icon:function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#47a0dd",strokeWidth:2.5,strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M25.333 4H6.667A2.667 2.667 0 004 6.667v18.667A2.667 2.667 0 006.667 28h18.667A2.667 2.667 0 0028 25.333V6.667A2.667 2.667 0 0025.333 4z"}),(0,t.createElement)("path",{d:"M11.333 13.333a2 2 0 100-4 2 2 0 100 4z"}),(0,t.createElement)("path",{d:"M28 20l-6.667-6.667L6.667 28",strokeLinecap:"round"}))}},{id:"special",label:(0,b.__)("Special Blocks",i.i18n),Icon:function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#e2735d",strokeWidth:2.5,strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M30.667 9.333L21.333 16l9.333 6.667V9.333z"}),(0,t.createElement)("path",{d:"M18.667 6.667H4a2.667 2.667 0 00-2.667 2.667v13.333A2.667 2.667 0 004 25.334h14.667a2.667 2.667 0 002.667-2.667V9.333a2.667 2.667 0 00-2.667-2.667z"}))}},{id:"section",label:(0,b.__)("Section Blocks",i.i18n),Icon:function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#eabd59",strokeWidth:2.5,strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M25.333 4H6.667A2.667 2.667 0 004 6.667v18.667A2.667 2.667 0 006.667 28h18.667A2.667 2.667 0 0028 25.333V6.667A2.667 2.667 0 0025.333 4z"}),(0,t.createElement)("path",{d:"M4 12h24M12 28V12",strokeLinecap:"round"}))}}],T=a=>{const{onChange:o,value:s="",label:n="",demo:l="",...c}=a,r=(0,t.createRef)();return(0,t.createElement)("label",e({onClick:e=>{o(s),e.preventDefault(),r.current.focus()}},c),(0,t.createElement)("h4",null,n),l&&(0,t.createElement)("span",{className:"s-block-demo"},(0,t.createElement)("a",{href:l,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation()},(0,b.__)("view demo",i.i18n))),(0,t.createElement)("button",{className:"s-toggle-button",ref:r,"data-value":s,onClick:e=>{o(s),e.stopPropagation(),e.preventDefault()}},(0,t.createElement)("span",null,(0,b.__)("Disabled",i.i18n)),(0,t.createElement)("span",null,(0,b.__)("Enabled",i.i18n))))};T.defaultProps={label:"",value:"",onChange:()=>{},demo:""};const q=()=>(0,t.createElement)(t.Fragment,null,j.map((e=>{let{id:a,label:o}=e;return(0,t.createElement)("div",{className:"s-getting-started-blocks-wrapper",key:a},(0,t.createElement)("h3",null,o),(0,t.createElement)("div",{className:"s-getting-started-blocks"},O[a].map(((e,a)=>(0,t.createElement)("div",{key:a,className:"s-box"},(0,t.createElement)("h4",null,e.title),(0,t.createElement)("p",null,e.description),e["stk-demo"]&&(0,t.createElement)("a",{href:e["stk-demo"],target:"_example"},(0,b.__)("See example",i.i18n)))))))}))),P=()=>{const[e,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)([]);(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{s(e.stackable_disabled_blocks)}))}))}),[]);const n=(e,t)=>{a(t),new y.models.Settings({stackable_disabled_blocks:e}).save().then((()=>a(!1)))},c=e=>()=>{const t=[...o];O[e].forEach((e=>{t.includes(e.name)||t.push(e.name)})),s(t),n(t,e)},r=(0,t.useCallback)(((e,t)=>{let a=null;a=o.includes(e)?o.filter((t=>t!==e)):[...o,e],s(a),n(a,t)}),[s,o]);return(0,t.createElement)(t.Fragment,null,j.map((a=>{let{id:u,label:d,Icon:p}=a;const k=m()(["s-box-block__title",`s-box-block__title--${u}`]);return(0,t.createElement)("div",{className:"s-box s-box-block",key:u},(0,t.createElement)("h3",{className:k},p&&(0,t.createElement)(p,{height:"20",width:"20"}),(0,t.createElement)("span",null,d)),(0,t.createElement)("div",{className:"s-settings-header"},e===u&&(0,t.createElement)(l.Spinner,null),(0,t.createElement)("button",{onClick:(_=u,()=>{let e=[...o];O[_].forEach((t=>{e=e.filter((e=>e!==t.name))})),s(e),n(e,_)}),className:"button button-large button-link"},(0,b.__)("Enable All",i.i18n)),(0,t.createElement)("button",{onClick:c(u),className:"button button-large button-link"},(0,b.__)("Disable All",i.i18n))),(0,t.createElement)("div",{className:"s-settings-grid"},O[u].map(((e,a)=>{const s=o.includes(e.name),n=m()(["s-block"],{"s-is-disabled":s});return(0,t.createElement)(T,{key:a+1,label:(0,b.__)(e.title,i.i18n),value:e.name,className:n,demo:e["stk-demo"],onChange:e=>{r(e,u)}})}))));var _})))},z=()=>{const[e,a]=(0,t.useState)({}),[o,s]=(0,t.useState)(!1),[n,c]=(0,t.useState)(null);return(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{a((0,C.pick)(e,["stackable_google_maps_api_key","stackable_enable_design_library","stackable_optimize_inline_css","stackable_enable_navigation_panel","stackable_block_default_width","stackable_block_wide_width","stackable_auto_collapse_panels","stackable_enable_block_linking"]))}))}))}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(N,{label:(0,b.__)("Google Maps API Key",i.i18n),value:e.stackable_google_maps_api_key,type:"text",onChange:t=>{clearTimeout(n),a({...e,stackable_google_maps_api_key:t}),c(setTimeout((()=>{s(!0),new y.models.Settings({stackable_google_maps_api_key:t}).save().then((()=>s(!1)))}),400))},help:(0,t.createElement)(t.Fragment,null,(0,b.__)("Adding a Google API Key enables additional features of the Stackable Map Block.",i.i18n)," ",(0,t.createElement)("a",{href:"https://docs.wpstackable.com/article/483-how-to-use-stackable-map-block#api-key",target:"_blank",rel:"noreferrer"},(0,b.__)("Learn more",i.i18n)))}),(0,t.createElement)(_,{label:(0,b.__)("Design Library",i.i18n),value:e.stackable_enable_design_library,onChange:t=>{s(!0),new y.models.Settings({stackable_enable_design_library:t}).save().then((()=>s(!1))),a({...e,stackable_enable_design_library:t})},help:(0,b.__)("Adds a button on the top of the editor which gives access to a collection of pre-made block designs.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Optimize Inline CSS",i.i18n),value:e.stackable_optimize_inline_css,onChange:t=>{s(!0),new y.models.Settings({stackable_optimize_inline_css:t}).save().then((()=>s(!1))),a({...e,stackable_optimize_inline_css:t})},help:(0,b.__)("Optimize inlined CSS styles. If this is enabled, similar selectors will be combined together, helpful if you changed Block Defaults.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Navigation Panel",i.i18n),value:e.stackable_enable_navigation_panel,onChange:t=>{s(!0),new y.models.Settings({stackable_enable_navigation_panel:t}).save().then((()=>s(!1))),a({...e,stackable_enable_navigation_panel:t})},help:(0,b.__)("A block Navigation panel that floats at the bottom of the inspector that helps with adjusting the different blocks in your column layout.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(N,{label:(0,b.__)("Nested Block Width",i.i18n),value:e.stackable_block_default_width,type:"text",onChange:t=>{clearTimeout(n),a({...e,stackable_block_default_width:t}),c(setTimeout((()=>{s(!0),new y.models.Settings({stackable_block_default_width:t}).save().then((()=>s(!1)))}),400))},help:(0,b.__)("The width used when a Columns block has its Content Width set to center. This is automatically detected from your theme. You can adjust it if your blocks are not aligned correctly. In px, you can also use other units or use a calc() formula.",i.i18n)}),(0,t.createElement)(N,{label:(0,b.__)("Nested Wide Block Width",i.i18n),value:e.stackable_block_wide_width,type:"text",onChange:t=>{clearTimeout(n),a({...e,stackable_block_wide_width:t}),c(setTimeout((()=>{s(!0),new y.models.Settings({stackable_block_wide_width:t}).save().then((()=>s(!1)))}),400))},help:(0,b.__)("The width used when a Columns block has its Content Width set to wide. This is automatically detected from your theme. You can adjust it if your blocks are not aligned correctly. In px, you can also use other units or use a calc() formula.",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Auto-Collapse Panels",i.i18n),value:e.stackable_auto_collapse_panels,onChange:t=>{s(!0),new y.models.Settings({stackable_auto_collapse_panels:t}).save().then((()=>s(!1))),a({...e,stackable_auto_collapse_panels:t})},help:(0,b.__)("Collapse other inspector panels when opening another, keeping only one open at a time.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Block Linking (Beta)",i.i18n),value:e.stackable_enable_block_linking,onChange:t=>{s(!0),new y.models.Settings({stackable_enable_block_linking:t}).save().then((()=>s(!1))),a({...e,stackable_enable_block_linking:t})},help:(0,t.createElement)(t.Fragment,null,(0,b.__)("Gives you the ability to link columns. Any changes you make on one column will automatically get applied on the other columns.",i.i18n)," ",(0,t.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/462-migrating-from-version-2-to-version-3?utm_source=wp-settings-migrating&utm_campaign=learnmore&utm_medium=wp-dashboard"},(0,b.__)("Learn more",i.i18n))),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),o&&(0,t.createElement)("div",{className:"s-absolute-spinner"},(0,t.createElement)(l.Spinner,null)))},A=()=>{const[e,a]=(0,t.useState)(""),[o,s]=(0,t.useState)(""),[n,c]=(0,t.useState)(!1),[r,m]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{m(!0),y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{const t=e.stackable_dynamic_breakpoints;t&&(a(t.tablet||""),s(t.mobile||"")),c(!0),m(!1)}))}))}),[]),(0,t.useEffect)((()=>{if(n){const t=setTimeout((()=>{m(!0),new y.models.Settings({stackable_dynamic_breakpoints:{tablet:e,mobile:o}}).save().then((()=>m(!1)))}),400);return()=>clearTimeout(t)}}),[e,o,n]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",null,(0,t.createElement)(N,{label:(0,b.__)("Tablet Breakpoint",i.i18n),type:"number",value:e,onChange:e=>a(e),placeholder:"1024"}," px"),(0,t.createElement)(N,{label:(0,b.__)("Mobile Breakpoint",i.i18n),type:"number",value:o,onChange:e=>s(e),placeholder:"768"}," px")),r&&(0,t.createElement)("div",{className:"s-absolute-spinner"},(0,t.createElement)(l.Spinner,null)))},V=()=>{const[e,a]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{a(!!e.stackable_global_force_typography)}))}))}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(_,{label:(0,b.__)("Force Typography Styles",i.i18n),value:e,onChange:e=>{new y.models.Settings({stackable_global_force_typography:e}).save(),a(e)},disabled:(0,b.__)("Not forced",i.i18n),enabled:(0,b.__)("Force styles",i.i18n)}))},F=e=>{const[a,o]=(0,t.useState)(!1),[s,n]=(0,t.useState)(!1),[c,r]=(0,t.useState)(!1),[m,u]=(0,t.useState)(!1),[d,p]=(0,t.useState)(!1),[k,_]=(0,t.useState)(!1),[g,h]=(0,t.useState)(!1);(0,t.useEffect)((()=>{h(!0),y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{o(!!e.stackable_help_tooltip_disabled),n("1"===e.stackable_load_v1_styles),r("1"===e.stackable_v2_editor_compatibility),u("1"===e.stackable_v2_editor_compatibility_usage),p("1"===e.stackable_v2_frontend_compatibility),_("1"===e.stackable_show_pro_notices),h(!1)}))}))}),[]);const w=e=>{h(!0),new y.models.Settings(e).save().then((()=>h(!1)))};return(0,t.createElement)("div",null,e.showProNoticesOption&&(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)('Show "Go premium" notices',i.i18n),checked:k,onChange:e=>{w({stackable_show_pro_notices:e?"1":""}),_(e)}}),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Don't show help video tooltips",i.i18n),checked:a,onChange:e=>{w({stackable_help_tooltip_disabled:e?"1":""}),o(e)}}),(0,t.createElement)("h3",null,(0,b.__)("🏠 Migration Settings",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Migrating from version 2 to version 3?",i.i18n)," ",(0,t.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/462-migrating-from-version-2-to-version-3?utm_source=wp-settings-migrating&utm_campaign=learnmore&utm_medium=wp-dashboard"},(0,b.__)("Learn more about migration and the settings below",i.i18n))),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Load version 2 blocks in the editor",i.i18n),checked:c,onChange:e=>{const t={stackable_v2_editor_compatibility:e?"1":""};e&&(t.stackable_v2_editor_compatibility_usage="",u(!1)),w(t),r(e)}}),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Load version 2 blocks in the editor only when the page was using version 2 blocks",i.i18n),checked:m,onChange:e=>{const t={stackable_v2_editor_compatibility_usage:e?"1":""};e&&(t.stackable_v2_editor_compatibility="",r(!1)),w(t),u(e)}}),(0,t.createElement)(l.CheckboxControl,{disabled:c||m,label:(0,b.__)("Load version 2 frontend block stylesheet and scripts for backward compatibility",i.i18n),checked:c||m||d,onChange:e=>{w({stackable_v2_frontend_compatibility:e?"1":""}),p(e)}}),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Load version 1 block stylesheet for backward compatibility",i.i18n),checked:s,onChange:e=>{w({stackable_load_v1_styles:e?"1":""}),n(e)}}),g&&(0,t.createElement)("div",{className:"ugb--saving-wrapper"},(0,t.createElement)(l.Spinner,null)))};F.defaultProps={showProNoticesOption:!1},n((()=>{document.querySelector(".s-getting-started__block-list")&&(0,t.render)((0,t.createElement)(q,null),document.querySelector(".s-getting-started__block-list")),document.querySelector(".s-settings-wrapper")&&(0,t.render)((0,t.createElement)(P,null),document.querySelector(".s-settings-wrapper")),document.querySelector(".s-other-options-wrapper")&&(0,t.render)((0,t.createElement)(F,{showProNoticesOption:i.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),document.querySelector(".s-editor-settings")&&(0,t.render)((0,t.createElement)(z,null),document.querySelector(".s-editor-settings")),document.querySelector(".s-dynamic-breakpoints")&&(0,t.render)((0,t.createElement)(A,null),document.querySelector(".s-dynamic-breakpoints")),document.querySelector(".s-global-settings")&&(0,t.render)((0,t.createElement)(V,null),document.querySelector(".s-global-settings"))}))})()})();
1
  /*! For license information please see admin_welcome.js.LICENSE.txt */
2
+ (()=>{var e={4184:(e,t)=>{var a;!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var l=s.apply(null,a);l&&e.push(l)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var i in a)o.call(a,i)&&a[i]&&e.push(i);else e.push(a.toString())}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(a=function(){return s}.apply(t,[]))||(e.exports=a)}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var l,i,c=s(e),r=1;r<arguments.length;r++){for(var m in l=Object(arguments[r]))a.call(l,m)&&(c[m]=l[m]);if(t){i=t(l);for(var u=0;u<i.length;u++)o.call(l,i[u])&&(c[i[u]]=l[i[u]])}}return c}},2408:(e,t,a)=>{"use strict";var o=a(7418);if("function"==typeof Symbol&&Symbol.for){var s=Symbol.for;s("react.element"),s("react.portal"),s("react.fragment"),s("react.strict_mode"),s("react.profiler"),s("react.provider"),s("react.context"),s("react.forward_ref"),s("react.suspense"),s("react.memo"),s("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i={};function c(e,t,a){this.props=e,this.context=t,this.refs=i,this.updater=a||l}function r(){}function m(e,t,a){this.props=e,this.context=t,this.refs=i,this.updater=a||l}c.prototype.isReactComponent={},c.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(n(85));this.updater.enqueueSetState(this,e,t,"setState")},c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},r.prototype=c.prototype;var u=m.prototype=new r;u.constructor=m,o(u,c.prototype),u.isPureReactComponent=!0;Object.prototype.hasOwnProperty},7294:(e,t,a)=>{"use strict";a(2408)},9737:(e,t,a)=>{var o={"./accordion/block.json":2103,"./blockquote/block.json":8317,"./button-group/block.json":2405,"./button/block.json":4379,"./call-to-action/block.json":1578,"./card/block.json":8598,"./column/block.json":8325,"./columns/block.json":7317,"./count-up/block.json":9730,"./design-library/block.json":6914,"./divider/block.json":3695,"./expand/block.json":6705,"./feature-grid/block.json":3705,"./feature/block.json":4859,"./heading/block.json":1642,"./hero/block.json":7125,"./icon-box/block.json":285,"./icon-button/block.json":1897,"./icon-label/block.json":5983,"./icon-list/block.json":2413,"./icon/block.json":8293,"./image-box/block.json":782,"./image/block.json":4639,"./map/block.json":6324,"./notification/block.json":1705,"./number-box/block.json":9222,"./posts/block.json":7327,"./price/block.json":6386,"./pricing-box/block.json":3345,"./progress-bar/block.json":9890,"./progress-circle/block.json":4259,"./separator/block.json":7388,"./spacer/block.json":9206,"./subtitle/block.json":8381,"./table-of-contents/block.json":3590,"./team-member/block.json":8511,"./testimonial/block.json":8227,"./text/block.json":7921,"./video-popup/block.json":7562};function s(e){var t=n(e);return a(t)}function n(e){if(!a.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}s.keys=function(){return Object.keys(o)},s.resolve=n,e.exports=s,s.id=9737},2103:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/accordion","title":"Accordion","description":"A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Toggle","Faq"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},2405:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/button-group","title":"Button Group","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Link"],"stk-variants":[{"name":"icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","stk-type":"essential","stk-demo":"https://wpstackable.com/social-buttons-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},{"name":"button","title":"Button","description":"Add a customizable button.","category":"stackable","stk-type":"essential","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},{"name":"social-buttons","title":"Social Buttons","description":"Add social buttons.","category":"stackable","stk-type":"special","stk-demo":"https://wpstackable.com/social-buttons-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},4379:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/button","title":"Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1578:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/call-to-action","title":"Call to Action","description":"A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["CTA"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8598:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/card","title":"Card","description":"Describe a single subject in a small card. You can use this to describe your product, service or a person.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8325:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/column","title":"Column","description":"A single column within an advanced columns block. Get advanced options on how you want your column to look.","category":"stackable","usesContext":["postId","postType","queryId","stackable/columnFit"],"keywords":["Section rows"],"parent":["stackable/columns","stackable/feature","stackable/feature-grid"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},7317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/columns","title":"Columns / Container","description":"Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Section rows","Container"],"providesContext":{"stackable/columnFit":"columnFit"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9730:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/count-up","title":"Count Up","description":"Showcase your stats. Display how many customers you have or the number of downloads of your app.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6914:e=>{"use strict";e.exports=JSON.parse('{"name":"stackable/design-library","title":"Design Library","description":"Choose a layout or block from the Stackable Design Library.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Template"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/designs/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3695:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/divider","title":"Divider","description":"Add a pause between your content.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Horizontal Rule","HR"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},6705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/expand","title":"Expand / Show More","description":"Display a small snippet of text. Your readers can toggle it to show more information.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Hide","Less"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/feature-grid","title":"Feature Grid","description":"Display multiple product features or services. You can use Feature Grids one after another.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},4859:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/feature","title":"Feature","description":"Display a product feature or a service in a large area.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1642:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/heading","title":"Heading","description":"Introduce new sections of your content in style.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Title"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7125:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/hero","title":"Hero","description":"A large hero area. Typically used at the very top of a page.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Header"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/hero-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},285:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-box","title":"Icon Box","description":"A small text area with an icon that can be used to summarize features or services","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/icon-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1897:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/icon-button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},5983:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-label","title":"Icon Label","description":"An Icon and Heading paired together.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/icon-label-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},2413:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon-list","title":"Icon List","description":"An unordered list with icons. You can use this as a list of features or benefits.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Checklist","Bullets","Number list"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8293:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/icon","title":"Icon","description":"Pick an icon or upload your own SVG icon to decorate your content.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},782:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/image-box","title":"Image Box","description":"Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},4639:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/image","title":"Image","description":"An image with advanced controls to make a visual statement.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-image-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6324:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/map","title":"Map","description":"Embedded Google Map with advanced controls.","category":"stackable","textdomain":"stackable-ultimate-gutenberg-blocks","keywords":["location","address"],"stk-type":"special","stk-demo":"https://wpstackable.com/map-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/notification","title":"Notification","description":"Show a notice to your readers. People can dismiss the notice to permanently hide it.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Notice","Alert"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9222:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/number-box","title":"Number Box","description":"Display steps or methods that your users will do in your service.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Steps"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7327:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/posts","title":"Posts","description":"Your latest blog posts. Use this to showcase a few of your posts in your landing pages.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Blog Posts","Lastest Posts","Query Loop"],"providesContext":{"type":"type","orderBy":"orderBy","order":"order","taxonomyType":"taxonomyType","taxonomy":"taxonomy","taxonomyFilterType":"taxonomyFilterType","postOffset":"postOffset","postExclude":"postExclude","postInclude":"postInclude","numberOfItems":"numberOfItems","stkQueryId":"stkQueryId"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6386:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/price","title":"Price","description":"Show a price of a product or service with currency and a suffix styled with different weights","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Currency","Pricing","Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/price-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3345:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/pricing-box","title":"Pricing Box","description":"Display the different pricing tiers of your business.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Currency","Price","Pricing Table"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9890:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/progress-bar","title":"Progress Bar","description":"Visualize a progress value or percentage in a bar.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["percentage status"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/progress-bar-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},4259:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/progress-circle","title":"Progress Circle","description":"Visualize a progress value or percentage in a circle.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["percentage status"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/progress-circle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7388:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/separator","title":"Separator","description":"A fancy separator to be placed between content.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Svg Divider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9206:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/spacer","title":"Spacer","description":"Sometimes you just need some space.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},8381:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/subtitle","title":"Subtitle","description":"Subtitle text that you can add custom styling to from the global settings.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/subtitle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3590:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/table-of-contents","title":"Table of Contents","description":"Automatically generated table of contents based on Heading blocks.","category":"stackable","keywords":["ToC","Index","Outline"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/table-of-contents-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8511:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/team-member","title":"Team Member","description":"Display members of your team or your office. Use multiple Team Member blocks if you have a large team.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8227:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/testimonial","title":"Testimonial","description":"Showcase what your users say about your product or service.","category":"stackable","usesContext":["postId","postType","queryId"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7921:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/text","title":"Text","description":"Start with the building block of all page layouts.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Paragraph"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7562:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/video-popup","title":"Video Popup","description":"Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["YouTube","Vimeo","Embed Mp4"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')}},t={};function a(o){var s=t[o];if(void 0!==s)return s.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};(()=>{"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},e.apply(this,arguments)}a.d(o,{J:()=>T,x:()=>j});const t=wp.element,s=wp.ajax;function n(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}const l=wp.components,i=stackable;n((()=>{const e=document.querySelector(".s-news-box-content");e&&""===e.innerHTML&&((0,t.render)((0,t.createElement)("div",null,(0,t.createElement)(l.Spinner,null)),e),(0,s.send)("stackable_news_feed_ajax",{success:t=>{e.innerHTML=t},error:e=>{alert(e)},data:{nonce:i.nonceNews}}))})),a(7294);const c=function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#3ca540",strokeWidth:7,strokeLinecap:"round",strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M88 44.32V48a40 40 0 01-28.659 38.335 40 40 0 01-44.898-16.587 40 40 0 013.149-47.76A40 40 0 0164.28 11.44"}),(0,t.createElement)("path",{d:"M88 16L48 56.04l-12-12"}))};var r=a(4184),m=a.n(r);let u=1;const d=e=>{const[a]=(0,t.useState)("ugb-admin-setting-"+u++),o=m()(["ugb-admin-setting"],{[`ugb-admin-setting--${e.size}`]:e.size});return(0,t.createElement)("div",{className:o,id:a},(0,t.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:a,onClick:e.onClick},!!e.label&&(0,t.createElement)("span",{className:"ugb-admin-setting__label"},e.label),(0,t.createElement)("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&(0,t.createElement)("p",{className:"ugb-admin-setting__help"},e.help))};d.defaultProps={label:"",onClick:()=>{}};const p=d,b=wp.i18n,k=a=>{const o=(0,t.createRef)();return(0,t.createElement)(p,e({onClick:e=>{a.onChange(!a.value),e.preventDefault(),o.current.focus()}},a),(0,t.createElement)("button",{ref:o,className:"ugb-admin-toggle-setting__button",type:"button",role:"switch","aria-checked":!!a.value,onClick:e=>{a.onChange(!a.value),e.preventDefault(),e.stopPropagation()},style:{minWidth:a.width||void 0},disabled:a.isDisabled?"disabled":""},(0,t.createElement)("span",null,a.disabled),(0,t.createElement)("span",null,a.enabled)))};k.defaultProps={label:"",value:!1,placeholder:"",onChange:()=>{},disabled:(0,b.__)("Disabled",i.i18n),enabled:(0,b.__)("Enabled",i.i18n),width:"",isDisabled:!1};const _=k,g=wp.hooks,y=wp.api;var h;const w=parseInt((null===(h=location.hash.match(/^#step-(\d+)/))||void 0===h?void 0:h[1])||1,10),f=()=>{var e;const[a,o]=(0,t.useState)(w);(0,t.useEffect)((()=>{location.hash=`step-${a}`}),[a]);let s=(0,g.applyFilters)("stackable.welcome-wizard.steps",S);i.isPro||(s=s.filter((e=>!e.isPro)));const n=(null===(e=s[a-1])||void 0===e?void 0:e.component)||null;return(0,t.createElement)("div",{className:`s-welcome-wizard__wrapper s-welcome-wizard--step-${a}`},(0,t.createElement)(E,{steps:s.filter((e=>{let{id:t}=e;return"done"!==t})),step:a}),n&&(0,t.createElement)(n,null),a!==s.length&&(0,t.createElement)("div",{className:"s-welcome-wizard__buttons"},a>1&&(0,t.createElement)("button",{className:"s-getting-started__button secondary",onClick:()=>o(a-1)},(0,b.__)("Previous",i.i18n)),(0,t.createElement)("button",{className:"s-getting-started__button primary",onClick:()=>{a===s.length?location.search="?page=stackable-getting-started":o(a+1)}},1===a?(0,b.__)("Get Started",i.i18n):a===s.length?(0,b.__)("Finish",i.i18n):(0,b.__)("Next / Skip",i.i18n))),a>1&&(0,t.createElement)("p",null,(0,t.createElement)("em",null,(0,b.__)("All these settings can be changed in the settings page.",i.i18n))))},v={essential:{description:(0,b.__)("All the necessary building blocks you need to design anything.",i.i18n)},special:{description:(0,b.__)("Blocks with special functionality that will allow you to create distinctive designs.",i.i18n)},section:{description:(0,b.__)("Use these blocks act as templates to help you build sections effortlessly.",i.i18n)}};let x=i.wizard.disabled_blocks;const E=e=>{const{step:a,steps:o}=e,s=m()(["s-welcome-wizard__steps",`s-welcome-wizard__steps--num-${o.length}`]);return(0,t.createElement)("div",{className:s},o.map(((e,o)=>{const s=m()("s-welcome-wizard__step",{"s-welcome-wizard__step--active":a>=o+1}),n=m()("s-welcome-wizard__step-divider",{"s-welcome-wizard__step--active":a>=o+1});return(0,t.createElement)(t.Fragment,{key:o},o>0&&(0,t.createElement)("div",{className:n}),(0,t.createElement)("div",{className:s},(0,t.createElement)("span",{className:"s-welcome-wizard__step-number"},o+1),(0,t.createElement)("span",{className:"s-welcome-wizard__step-label"},e.label)))})))},S=[{id:"welcome",label:(0,b.__)("Welcome",i.i18n),component:()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-welcome-wizard--centered"},(0,t.createElement)("h2",null,(0,b.__)("Welcome to Stackable!",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Let's get you started with your page building journey by configuring some settings first.",i.i18n))))},{id:"disable-blocks",label:(0,b.__)("Choose Blocks",i.i18n),component:()=>{const[e,a]=(0,t.useState)(x),[o,s]=(0,t.useState)({}),[n,c]=(0,t.useState)(!1);(0,t.useEffect)((()=>{x=e}),[e]);const r=(0,t.useCallback)((e=>{new y.models.Settings({stackable_disabled_blocks:e}).save().then((()=>c(!1))),c(!0)}),[c]),u=j();return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content"},(0,t.createElement)("h2",null,(0,b.__)("Choose Blocks That Fit You",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Stackable has 3 categories of blocks, and you can choose which blocks to use to fit your specific workflow.",i.i18n)),(0,t.createElement)("div",{className:"s-welcome-wizard__options s-welcome-wizard__blocks"},T.map((n=>{var c;let{id:d,label:p,Icon:k}=n;const g=o[d]||!1,y=u[d].every((t=>{let{name:a}=t;return e.includes(a)})),h=u[d].some((t=>{let{name:a}=t;return e.includes(a)})),w=u[d].every((t=>{let{name:a}=t;return!e.includes(a)}));return(0,t.createElement)("div",{className:`s-welcome-wizard__option s-box s-box--${d}`,key:d},k&&(0,t.createElement)(k,{className:"s-welcome-wizard__option-icon",height:"32",width:"32"}),(0,t.createElement)("h3",null,p),(0,t.createElement)(_,{value:w||!y&&h,onChange:t=>{const o=u[d].map((e=>e.name));let s=e.filter((e=>!o.includes(e)));t||(s=[...s,...o]),a(s),r(s)},disabled:(0,b.__)("All blocks disabled",i.i18n),enabled:w?(0,b.__)("All blocks enabled",i.i18n):(0,b.__)("Some blocks enabled",i.i18n)}),(0,t.createElement)("p",null,null===(c=v[d])||void 0===c?void 0:c.description),(0,t.createElement)(l.Button,{onClick:()=>s({...o,[d]:!g})},g?(0,b.__)("Hide all blocks",i.i18n):(0,b.__)("Show all blocks",i.i18n)+` (${u[d].length})`),(0,t.createElement)("div",{className:m()("s-welcome-wizard__block-list",{"s--show-all-blocks":g})},u[d].map(((o,s)=>{const n=e.includes(o.name);return(0,t.createElement)(_,{key:s,label:o.title,value:!n,onChange:t=>{let s=e.filter((e=>e!==o.name));t||(s=[...s,o.name]),a(s),r(s)},disabled:(0,b.__)("Disabled",i.i18n),enabled:(0,b.__)("Enabled",i.i18n),isDisabled:!g})}))))})))),n&&(0,t.createElement)(l.Spinner,{className:"s-wizard-spinner"}))}},{id:"icon",label:(0,b.__)("Icons",i.i18n),component:()=>{const e=(0,t.useMemo)((()=>(0,g.applyFilters)("stackable.welcome-wizard.icon",null)),[]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-box"},(0,t.createElement)("h2",null,(0,b.__)("Icon Settings",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Our integration with FontAwesome Pro allows you to import icons from their extensive icon library and use them in Stackable blocks.",i.i18n)),(0,t.createElement)("p",null,(0,b.sprintf)((0,b.__)("If you have %sFont Awesome Pro%s, you can use your Pro icons by inputting your Pro Kit code below.",i.i18n),"","")),e&&(0,t.createElement)(e,null)))},isPro:!0},{id:"role-manager",label:(0,b.__)("Role Manager",i.i18n),component:()=>{const[e,a]=(0,t.useState)(!1),o=(0,t.useMemo)((()=>(0,g.applyFilters)("stackable.welcome-wizard.role-manager",null)),[]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-box"},(0,t.createElement)("h2",null,(0,b.__)("Role Manager",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Stackable comes with a Role Manager so you can allow who can edit your content. By default, all user roles have full editing access in the Block Editor.",i.i18n)," ",(0,t.createElement)("a",{href:"https://docs.wpstackable.com/article/360-role-manager-and-content-editing-mode?utm_source=wp-settings-role-manager&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,b.__)("Learn more",i.i18n))),(0,t.createElement)("br",null),o&&(0,t.createElement)(o,{doneCallback:()=>a(!1),saveCallback:()=>a(!0)})),e&&(0,t.createElement)(l.Spinner,null))},isPro:!0},{id:"custom-fields",label:(0,b.__)("Custom Fields",i.i18n),component:()=>{const e=(0,t.useMemo)((()=>(0,g.applyFilters)("stackable.welcome-wizard.custom-fields",null)),[]);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-box"},(0,t.createElement)("h2",null,(0,b.__)("Custom Fields",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Custom Fields allow you to create Fields that you can reference across your entire site. This is helpful when you display the same text in multiple areas in your site.",i.i18n)," ",(0,t.createElement)("a",{href:"https://docs.wpstackable.com/article/463-how-to-use-stackable-custom-fields/?utm_source=wp-settings-custom-fields&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,b.__)("Learn more",i.i18n))),(0,t.createElement)("br",null),e&&(0,t.createElement)(e,{label:(0,b.__)("Custom Fields",i.i18n)})))},isPro:!0},{id:"done",label:"",component:()=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"s-welcome-wizard__content s-welcome-wizard--centered s-box"},(0,t.createElement)(c,{className:"s-welcome-wizard__check",height:"96",width:"96"}),(0,t.createElement)("h2",null,(0,b.__)("You're all set!",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Let's get you started on your page building journey with Stackable.",i.i18n)),(0,t.createElement)("button",{className:"s-getting-started__button primary",onClick:()=>{location.search="?page=stackable-getting-started"}},(0,b.__)("Finish",i.i18n))))}];n((()=>{document.querySelector(".s-onboarding-wizard")&&(0,t.render)((0,t.createElement)(f,null),document.querySelector(".s-onboarding-wizard"))}));const C=lodash,I=a=>{const o=(0,t.createRef)();return(0,t.createElement)(p,e({onClick:e=>{e.preventDefault(),o.current.focus()}},a),(0,t.createElement)("input",{ref:o,className:"ugb-admin-text-setting",type:a.type,value:a.value,placeholder:a.placeholder,onChange:e=>{a.onChange(e.target.value),e.preventDefault(),e.stopPropagation()}}),a.children)};I.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:()=>{}};const N=I,O=(e=>{const t={};return e.keys().forEach((a=>{const o=e(a),s=o["stk-type"];s&&(t[s]||(t[s]=[]),t[s].push(o)),(o["stk-variants"]||[]).forEach((e=>{const a=e["stk-type"];a&&(t[a]||(t[a]=[]),t[a].push({...e,name:`${o.name}|${e.name}`}))}))})),Object.keys(t).forEach((e=>{t[e]=(0,C.sortBy)(t[e],"name")})),t})(a(9737)),j=()=>(0,g.applyFilters)("stackable.settings.blocks",O),T=[{id:"essential",label:(0,b.__)("Essential Blocks",i.i18n),Icon:function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#47a0dd",strokeWidth:2.5,strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M25.333 4H6.667A2.667 2.667 0 004 6.667v18.667A2.667 2.667 0 006.667 28h18.667A2.667 2.667 0 0028 25.333V6.667A2.667 2.667 0 0025.333 4z"}),(0,t.createElement)("path",{d:"M11.333 13.333a2 2 0 100-4 2 2 0 100 4z"}),(0,t.createElement)("path",{d:"M28 20l-6.667-6.667L6.667 28",strokeLinecap:"round"}))}},{id:"special",label:(0,b.__)("Special Blocks",i.i18n),Icon:function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#e2735d",strokeWidth:2.5,strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M30.667 9.333L21.333 16l9.333 6.667V9.333z"}),(0,t.createElement)("path",{d:"M18.667 6.667H4a2.667 2.667 0 00-2.667 2.667v13.333A2.667 2.667 0 004 25.334h14.667a2.667 2.667 0 002.667-2.667V9.333a2.667 2.667 0 00-2.667-2.667z"}))}},{id:"section",label:(0,b.__)("Section Blocks",i.i18n),Icon:function(a){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#eabd59",strokeWidth:2.5,strokeLinejoin:"round"},a),(0,t.createElement)("path",{d:"M25.333 4H6.667A2.667 2.667 0 004 6.667v18.667A2.667 2.667 0 006.667 28h18.667A2.667 2.667 0 0028 25.333V6.667A2.667 2.667 0 0025.333 4z"}),(0,t.createElement)("path",{d:"M4 12h24M12 28V12",strokeLinecap:"round"}))}}],q=a=>{const{onChange:o,value:s="",label:n="",demo:l="",...c}=a,r=(0,t.createRef)();return(0,t.createElement)("label",e({onClick:e=>{o(s),e.preventDefault(),r.current.focus()}},c),(0,t.createElement)("h4",null,n),l&&(0,t.createElement)("span",{className:"s-block-demo"},(0,t.createElement)("a",{href:l,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation()},(0,b.__)("view demo",i.i18n))),(0,t.createElement)("button",{className:"s-toggle-button",ref:r,"data-value":s,onClick:e=>{o(s),e.stopPropagation(),e.preventDefault()}},(0,t.createElement)("span",null,(0,b.__)("Disabled",i.i18n)),(0,t.createElement)("span",null,(0,b.__)("Enabled",i.i18n))))};q.defaultProps={label:"",value:"",onChange:()=>{},demo:""};const z=()=>{const e=j();return(0,t.createElement)(t.Fragment,null,T.map((a=>{let{id:o,label:s}=a;return(0,t.createElement)("div",{className:"s-getting-started-blocks-wrapper",key:o},(0,t.createElement)("h3",null,s),(0,t.createElement)("div",{className:"s-getting-started-blocks"},e[o].map(((e,a)=>(0,t.createElement)("div",{key:a,className:"s-box"},(0,t.createElement)("h4",null,e.title),(0,t.createElement)("p",null,e.description),e["stk-demo"]&&(0,t.createElement)("a",{href:e["stk-demo"],target:"_example"},(0,b.__)("See example",i.i18n)))))))})))},P=()=>{const e=j(),[a,o]=(0,t.useState)(!1),[s,n]=(0,t.useState)([]);(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{n(e.stackable_disabled_blocks)}))}))}),[]);const c=(e,t)=>{o(t),new y.models.Settings({stackable_disabled_blocks:e}).save().then((()=>o(!1)))},r=t=>()=>{const a=[...s];e[t].forEach((e=>{a.includes(e.name)||a.push(e.name)})),n(a),c(a,t)},u=(0,t.useCallback)(((e,t)=>{let a=null;a=s.includes(e)?s.filter((t=>t!==e)):[...s,e],n(a),c(a,t)}),[n,s]);return(0,t.createElement)(t.Fragment,null,T.map((o=>{let{id:d,label:p,Icon:k}=o;const _=m()(["s-box-block__title",`s-box-block__title--${d}`]);return(0,t.createElement)("div",{className:"s-box s-box-block",key:d},(0,t.createElement)("h3",{className:_},k&&(0,t.createElement)(k,{height:"20",width:"20"}),(0,t.createElement)("span",null,p)),(0,t.createElement)("div",{className:"s-settings-header"},a===d&&(0,t.createElement)(l.Spinner,null),(0,t.createElement)("button",{onClick:(g=d,()=>{let t=[...s];e[g].forEach((e=>{t=t.filter((t=>t!==e.name))})),n(t),c(t,g)}),className:"button button-large button-link"},(0,b.__)("Enable All",i.i18n)),(0,t.createElement)("button",{onClick:r(d),className:"button button-large button-link"},(0,b.__)("Disable All",i.i18n))),(0,t.createElement)("div",{className:"s-settings-grid"},e[d].map(((e,a)=>{const o=s.includes(e.name),n=m()(["s-block"],{"s-is-disabled":o});return(0,t.createElement)(q,{key:a+1,label:(0,b.__)(e.title,i.i18n),value:e.name,className:n,demo:e["stk-demo"],onChange:e=>{u(e,d)}})}))));var g})))},A=()=>{const[e,a]=(0,t.useState)({}),[o,s]=(0,t.useState)(!1),[n,c]=(0,t.useState)(null);return(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{a((0,C.pick)(e,["stackable_google_maps_api_key","stackable_enable_design_library","stackable_optimize_inline_css","stackable_enable_navigation_panel","stackable_block_default_width","stackable_block_wide_width","stackable_auto_collapse_panels","stackable_enable_block_linking"]))}))}))}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(N,{label:(0,b.__)("Google Maps API Key",i.i18n),value:e.stackable_google_maps_api_key,type:"text",onChange:t=>{clearTimeout(n),a({...e,stackable_google_maps_api_key:t}),c(setTimeout((()=>{s(!0),new y.models.Settings({stackable_google_maps_api_key:t}).save().then((()=>s(!1)))}),400))},help:(0,t.createElement)(t.Fragment,null,(0,b.__)("Adding a Google API Key enables additional features of the Stackable Map Block.",i.i18n)," ",(0,t.createElement)("a",{href:"https://docs.wpstackable.com/article/483-how-to-use-stackable-map-block#api-key",target:"_blank",rel:"noreferrer"},(0,b.__)("Learn more",i.i18n)))}),(0,t.createElement)(_,{label:(0,b.__)("Design Library",i.i18n),value:e.stackable_enable_design_library,onChange:t=>{s(!0),new y.models.Settings({stackable_enable_design_library:t}).save().then((()=>s(!1))),a({...e,stackable_enable_design_library:t})},help:(0,b.__)("Adds a button on the top of the editor which gives access to a collection of pre-made block designs.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Optimize Inline CSS",i.i18n),value:e.stackable_optimize_inline_css,onChange:t=>{s(!0),new y.models.Settings({stackable_optimize_inline_css:t}).save().then((()=>s(!1))),a({...e,stackable_optimize_inline_css:t})},help:(0,b.__)("Optimize inlined CSS styles. If this is enabled, similar selectors will be combined together, helpful if you changed Block Defaults.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Navigation Panel",i.i18n),value:e.stackable_enable_navigation_panel,onChange:t=>{s(!0),new y.models.Settings({stackable_enable_navigation_panel:t}).save().then((()=>s(!1))),a({...e,stackable_enable_navigation_panel:t})},help:(0,b.__)("A block Navigation panel that floats at the bottom of the inspector that helps with adjusting the different blocks in your column layout.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(N,{label:(0,b.__)("Nested Block Width",i.i18n),value:e.stackable_block_default_width,type:"text",onChange:t=>{clearTimeout(n),a({...e,stackable_block_default_width:t}),c(setTimeout((()=>{s(!0),new y.models.Settings({stackable_block_default_width:t}).save().then((()=>s(!1)))}),400))},help:(0,b.__)("The width used when a Columns block has its Content Width set to center. This is automatically detected from your theme. You can adjust it if your blocks are not aligned correctly. In px, you can also use other units or use a calc() formula.",i.i18n)}),(0,t.createElement)(N,{label:(0,b.__)("Nested Wide Block Width",i.i18n),value:e.stackable_block_wide_width,type:"text",onChange:t=>{clearTimeout(n),a({...e,stackable_block_wide_width:t}),c(setTimeout((()=>{s(!0),new y.models.Settings({stackable_block_wide_width:t}).save().then((()=>s(!1)))}),400))},help:(0,b.__)("The width used when a Columns block has its Content Width set to wide. This is automatically detected from your theme. You can adjust it if your blocks are not aligned correctly. In px, you can also use other units or use a calc() formula.",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Auto-Collapse Panels",i.i18n),value:e.stackable_auto_collapse_panels,onChange:t=>{s(!0),new y.models.Settings({stackable_auto_collapse_panels:t}).save().then((()=>s(!1))),a({...e,stackable_auto_collapse_panels:t})},help:(0,b.__)("Collapse other inspector panels when opening another, keeping only one open at a time.",i.i18n),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),(0,t.createElement)(_,{label:(0,b.__)("Block Linking (Beta)",i.i18n),value:e.stackable_enable_block_linking,onChange:t=>{s(!0),new y.models.Settings({stackable_enable_block_linking:t}).save().then((()=>s(!1))),a({...e,stackable_enable_block_linking:t})},help:(0,t.createElement)(t.Fragment,null,(0,b.__)("Gives you the ability to link columns. Any changes you make on one column will automatically get applied on the other columns.",i.i18n)," ",(0,t.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/462-migrating-from-version-2-to-version-3?utm_source=wp-settings-migrating&utm_campaign=learnmore&utm_medium=wp-dashboard"},(0,b.__)("Learn more",i.i18n))),disabled:(0,b.__)("Disable feature",i.i18n),enabled:(0,b.__)("Enable feature",i.i18n)}),o&&(0,t.createElement)("div",{className:"s-absolute-spinner"},(0,t.createElement)(l.Spinner,null)))},V=()=>{const[e,a]=(0,t.useState)(""),[o,s]=(0,t.useState)(""),[n,c]=(0,t.useState)(!1),[r,m]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{m(!0),y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{const t=e.stackable_dynamic_breakpoints;t&&(a(t.tablet||""),s(t.mobile||"")),c(!0),m(!1)}))}))}),[]),(0,t.useEffect)((()=>{if(n){const t=setTimeout((()=>{m(!0),new y.models.Settings({stackable_dynamic_breakpoints:{tablet:e,mobile:o}}).save().then((()=>m(!1)))}),400);return()=>clearTimeout(t)}}),[e,o,n]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",null,(0,t.createElement)(N,{label:(0,b.__)("Tablet Breakpoint",i.i18n),type:"number",value:e,onChange:e=>a(e),placeholder:"1024"}," px"),(0,t.createElement)(N,{label:(0,b.__)("Mobile Breakpoint",i.i18n),type:"number",value:o,onChange:e=>s(e),placeholder:"768"}," px")),r&&(0,t.createElement)("div",{className:"s-absolute-spinner"},(0,t.createElement)(l.Spinner,null)))},F=()=>{const[e,a]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{a(!!e.stackable_global_force_typography)}))}))}),[]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(_,{label:(0,b.__)("Force Typography Styles",i.i18n),value:e,onChange:e=>{new y.models.Settings({stackable_global_force_typography:e}).save(),a(e)},disabled:(0,b.__)("Not forced",i.i18n),enabled:(0,b.__)("Force styles",i.i18n)}))},J=e=>{const[a,o]=(0,t.useState)(!1),[s,n]=(0,t.useState)(!1),[c,r]=(0,t.useState)(!1),[m,u]=(0,t.useState)(!1),[d,p]=(0,t.useState)(!1),[k,_]=(0,t.useState)(!1),[g,h]=(0,t.useState)(!1);(0,t.useEffect)((()=>{h(!0),y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{o(!!e.stackable_help_tooltip_disabled),n("1"===e.stackable_load_v1_styles),r("1"===e.stackable_v2_editor_compatibility),u("1"===e.stackable_v2_editor_compatibility_usage),p("1"===e.stackable_v2_frontend_compatibility),_("1"===e.stackable_show_pro_notices),h(!1)}))}))}),[]);const w=e=>{h(!0),new y.models.Settings(e).save().then((()=>h(!1)))};return(0,t.createElement)("div",null,e.showProNoticesOption&&(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)('Show "Go premium" notices',i.i18n),checked:k,onChange:e=>{w({stackable_show_pro_notices:e?"1":""}),_(e)}}),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Don't show help video tooltips",i.i18n),checked:a,onChange:e=>{w({stackable_help_tooltip_disabled:e?"1":""}),o(e)}}),(0,t.createElement)("h3",null,(0,b.__)("🏠 Migration Settings",i.i18n)),(0,t.createElement)("p",null,(0,b.__)("Migrating from version 2 to version 3?",i.i18n)," ",(0,t.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/462-migrating-from-version-2-to-version-3?utm_source=wp-settings-migrating&utm_campaign=learnmore&utm_medium=wp-dashboard"},(0,b.__)("Learn more about migration and the settings below",i.i18n))),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Load version 2 blocks in the editor",i.i18n),checked:c,onChange:e=>{const t={stackable_v2_editor_compatibility:e?"1":""};e&&(t.stackable_v2_editor_compatibility_usage="",u(!1)),w(t),r(e)}}),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Load version 2 blocks in the editor only when the page was using version 2 blocks",i.i18n),checked:m,onChange:e=>{const t={stackable_v2_editor_compatibility_usage:e?"1":""};e&&(t.stackable_v2_editor_compatibility="",r(!1)),w(t),u(e)}}),(0,t.createElement)(l.CheckboxControl,{disabled:c||m,label:(0,b.__)("Load version 2 frontend block stylesheet and scripts for backward compatibility",i.i18n),checked:c||m||d,onChange:e=>{w({stackable_v2_frontend_compatibility:e?"1":""}),p(e)}}),(0,t.createElement)(l.CheckboxControl,{label:(0,b.__)("Load version 1 block stylesheet for backward compatibility",i.i18n),checked:s,onChange:e=>{w({stackable_load_v1_styles:e?"1":""}),n(e)}}),g&&(0,t.createElement)("div",{className:"ugb--saving-wrapper"},(0,t.createElement)(l.Spinner,null)))};J.defaultProps={showProNoticesOption:!1},n((()=>{document.querySelector(".s-getting-started__block-list")&&(0,t.render)((0,t.createElement)(z,null),document.querySelector(".s-getting-started__block-list")),document.querySelector(".s-settings-wrapper")&&(0,t.render)((0,t.createElement)(P,null),document.querySelector(".s-settings-wrapper")),document.querySelector(".s-other-options-wrapper")&&(0,t.render)((0,t.createElement)(J,{showProNoticesOption:i.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),document.querySelector(".s-editor-settings")&&(0,t.render)((0,t.createElement)(A,null),document.querySelector(".s-editor-settings")),document.querySelector(".s-dynamic-breakpoints")&&(0,t.render)((0,t.createElement)(V,null),document.querySelector(".s-dynamic-breakpoints")),document.querySelector(".s-global-settings")&&(0,t.render)((0,t.createElement)(F,null),document.querySelector(".s-global-settings"))}))})()})();
dist/deprecated/editor_blocks_deprecated_v2.css CHANGED
@@ -1 +1 @@
1
- #start-resizable-editor-section{display:none}.block-editor-block-list__block[data-type^="ugb/"]{margin-bottom:0!important;margin-top:0!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block{margin-bottom:35px;margin-top:35px;padding:0 35px}[data-type^="ugb/"]>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}[data-type="ugb/accordion"] .ugb-accordion__heading{outline:none}[data-type="ugb/accordion"] .ugb-accordion__heading svg{transform:rotate(180deg)!important}[data-type="ugb/accordion"] .ugb-accordion__heading>:first-child{flex:1}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__content{display:none}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__heading svg{transform:rotate(0deg)!important}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content .ugb-accordion__content-inner{padding-top:0}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content{overflow:visible}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2.ugb-accordion--design-plain .ugb-accordion__content .ugb-accordion__content-inner{padding-bottom:0}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__heading{z-index:0}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay .ugb-video-background,.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay:before{z-index:-1!important}.ugb-accordion__heading>div:empty{display:none}.ugb-blockquote{margin-left:0;margin-right:0}.ugb-blockquote__inspector__icon{flex-wrap:wrap}.ugb-blog-posts__item:after{pointer-events:none}.ugb-blog-posts__meta>:after{content:none!important}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-cta__item,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background) .ugb-cta__item{border-radius:0}.ugb-column>.ugb-inner-block>.ugb-block-content>.ugb-column__item{overflow:visible}[data-type="ugb/column"]>.block-editor-block-list__block-edit{height:100%}[data-type="ugb/column"]>.block-editor-block-list__block-edit>[data-block]{display:flex;flex-direction:column}.wp-block[data-type="ugb/column"],.wp-block[data-type="ugb/column"] .wp-block{max-width:none}[data-type="ugb/column"],[data-type="ugb/column"]>.ugb-column{height:100%}[data-type="ugb/column"]{transition:none!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-block]:first-child{margin-top:0!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender:not(:first-child){margin-bottom:-28px!important}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns .ugb-columns__item{align-items:stretch}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-gap:35px;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{align-items:stretch;display:flex!important;height:100%;justify-content:stretch}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.ugb-columns__item>.block-editor-inner-blocks{width:100%}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:35px;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{display:flex;flex-direction:column}[data-type="ugb/columns"].has-child-selected [data-type="ugb/column"]:not(.has-child-selected):before,[data-type="ugb/columns"].is-selected [data-type="ugb/column"]:not(.has-child-selected):before{border:1px dashed #7b86a24d}[data-type="ugb/column"]:before{bottom:0!important;left:0!important;right:0!important;top:0!important}[data-type="ugb/columns"]:not(.is-selected):before{border:1px dashed #f3495799!important}[data-type="ugb/column"]{transition:all .3s ease-in-out!important}[data-type="ugb/column"][style*="transform: tra"]{transition:none!important}.ugb-columns--highlight-1>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:first-child,.ugb-columns--highlight-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(2),.ugb-columns--highlight-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(3),.ugb-columns--highlight-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(4),.ugb-columns--highlight-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(5),.ugb-columns--highlight-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(6),.ugb-columns--highlight-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(7),.ugb-columns--highlight-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(8){transform:translateY(-20px)!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background){padding-left:0!important;padding-right:0!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background)>.ugb-inner-block>.ugb-block-content>.ugb-container__wrapper{border-radius:0!important}[data-type="ugb/container"][data-align=center]{text-align:inherit}.ugb-container .block-editor-block-list__block{max-width:none!important}[data-align=full] .ugb-countup{border-radius:0!important;margin-bottom:0;margin-top:0}.ugb-expand__label{border:none;box-shadow:none;color:#8e979e;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:600;padding:2em 0 0;text-transform:uppercase;white-space:nowrap}.ugb-expand__label:first-child{padding-top:0}.ugb-expand .ugb-expand__less-text p,.ugb-expand .ugb-expand__more-text p{color:inherit;font-size:inherit}.ugb-expand .ugb-block-content>a{display:inline-block}.ugb-feature.ugb-feature--design-basic .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder,.ugb-feature.ugb-feature--design-plain .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{height:250px}.ugb-feature-grid .ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{border-radius:100%;height:100px;margin:0 auto;width:100px}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-header__item,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background) .ugb-header__item{border-radius:0}.editor-styles-wrapper .ugb-heading .ugb-heading__subtitle,.editor-styles-wrapper .ugb-heading .ugb-heading__top-line{margin-bottom:16px}.editor-styles-wrapper .ugb-heading .ugb-heading__title{margin-bottom:8px}.ugb-icon-list ul{list-style:none!important}.ugb-icon-list ul li:before{cursor:pointer}.ugb-icon-list.ugb-icon-list li:last-child{margin-bottom:0!important}.ugb-icon-list__center-align li,.ugb-icon-list__right-align li{margin-left:auto!important;width:fit-content!important;width:-moz-fit-content!important}.ugb-icon-list__center-align li{margin-right:auto!important}.ugb-icon-list__left-align li{margin-right:auto!important;width:fit-content!important;width:-moz-fit-content!important}.ugb-image-box__image:hover{opacity:1!important}.ugb-image-box__arrow{pointer-events:all!important}[data-type="ugb/notification"] .ugb-notification.ugb-notification--dismissible{display:flex!important}[data-type="ugb/notification"] .ugb-notification__item>:last-child,[data-type="ugb/notification"] .ugb-notification__item>:last-child [role=textbox]{margin-bottom:0}[data-type="ugb/notification"] .ugb-svg-icon-placeholder__button{display:block;width:100%}.ugb-number-box .ugb-number-box__number[data-is-placeholder-visible=true]{height:2.5em;left:calc(50% - 1.25em);transition:none;width:2.5em}.ugb-number-box .ugb-number-box__item>:not(.ugb-number-box__content){z-index:3!important}.ugb-number-box .ugb-number-box__item>.ugb-number-box__content{z-index:4!important}.ugb-pricing-box__price-line>:first-child{align-self:flex-start}.ugb-pricing-box__price-line>:last-child{align-self:flex-end}[data-type="ugb/separator"]{z-index:30!important}[data-type="ugb/separator"]~.wp-block.is-selected{z-index:31}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-inner{overflow:hidden}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-wrapper{overflow:visible}.ugb-team-member-setting__social,.ugb-team-member-setting__social .components-base-control__field{margin-bottom:8px!important}.ugb-team-member__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-team-member__image .ugb-image-upload-has-placeholder svg{position:absolute;top:50%;transform:translateY(-50%)}.ugb-team-member-setting__social-label{margin-bottom:8px}.ugb-testimonial__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-testimonial__image .ugb-image-upload-has-placeholder svg{position:absolute;top:50%;transform:translateY(-50%)}.editor-styles-wrapper [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup.ugb-main-block--inner-full.ugb--has-block-background .ugb-video-popup__wrapper,.editor-styles-wrapper [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup:not(.ugb--has-block-background) .ugb-video-popup__wrapper{border-radius:0;margin-left:-35px;margin-right:-35px;width:calc(100% + 70px)}.ugb-button.ugb-button--icon-only .ugb-svg-icon-placeholder__button{display:block}.ugb-button.ugb-button--has-icon .ugb-svg-icon-placeholder__button{height:auto}.ugb-button svg{transition:initial!important}.ugb-button.ugb-button--has-icon .ugb-icon-inner-svg svg.ugb-custom-icon{fill:initial}.ugb-columns-width-control__range{align-items:center;display:flex;margin-bottom:8px}.ugb-columns-width-control__range .ugb-columns-width-control__icon{display:block;flex-shrink:0;font-size:14px;font-weight:700;height:20px;margin-right:10px;text-align:center;width:20px}.ugb-columns-width-control__range .components-base-control.components-range-control,.ugb-columns-width-control__range .components-base-control__field{margin-bottom:0!important}.ugb-columns-width-control__range .components-range-control{flex:1}.ugb-columns-width-control .ugb-design-control-wrapper.components-base-control{margin-bottom:0}.ugb-columns-width-control .ugb-design-control{padding:0}.ugb-columns-width-control .ugb-design-control .components-radio-control__option{width:25%}.ugb-columns-width-control .ugb-design-control .components-base-control__field{display:flex;justify-content:space-evenly;margin-bottom:0!important}.ugb-columns-width-control .ugb-design-panel-item__image{display:block}.ugb-columns-width-control .ugb-columns-width-control__suffix{display:block;flex-shrink:0;font-size:14px;margin-left:5px;text-align:center}.ugb-columns-width-control .ugb-columns-width-control__reset{text-transform:none}.ugb-column-widths-control__columns-slider{height:20px;margin-top:20px}.ugb-column-widths-control__columns-slider [role=slider]{background-color:#555d66;border:0;border-radius:50%;height:10px;outline:0;padding:0;position:absolute;transform:translate(-50%,-50%);width:10px}.ugb-column-widths-control__columns-slider [role=slider]:focus{background:#fff;border:1px solid #555d66}.ugb-column-widths-control__columns-input{display:grid}.ugb-column-widths-control__columns-input input{font-size:11px;margin:0 auto;min-width:40px!important;padding:4px 2px!important;width:40px}.ugb-column-widths-control__columns-input input:not(:hover):not(:focus){border-color:#eee}.ugb-design-library-control__open-library{display:block;margin:0 0 8px auto!important}.ugb-design-library-control__open-library__toolbar{display:flex;font-size:11px;justify-content:space-between;padding:0}.editor-styles-wrapper .ugb--has-background-overlay.ugb--has-background-overlay .ugb-video-background,.editor-styles-wrapper .ugb--has-background-overlay.ugb--has-background-overlay:before{pointer-events:none}.ugb-icon-control svg .fa-secondary,.ugb-icon-popover svg .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.ugb-icon-is-loading{animation:icon-loading 1.3s linear infinite;height:12px!important;width:12px!important}@keyframes icon-loading{0%{opacity:.8;transform:rotate(0deg)}25%,75%{opacity:.4}50%{opacity:.8}to{opacity:.8;transform:rotate(1turn)}}.ugb-icon--faded{opacity:.4}.ugb-img{max-width:100%}.ugb-modal-design-library{--wp-admin-theme-color:#f00069;--wp-admin-theme-color-darker-10:#bd0053;--wp-admin-theme-color-darker-20:#8a003c;height:90%;max-width:90%;min-height:500px;width:100%}.ugb-modal-design-library .components-modal__content{display:flex;flex-direction:column;padding:0}.ugb-modal-design-library .components-modal__header{margin:0}.ugb-modal-design-library .ugb-modal-design-library__wrapper{display:grid;flex:1;grid-template-columns:300px auto;grid-template-rows:50px auto}.ugb-modal-design-library .ugb-modal-design-library__sidebar{background:#fff;box-shadow:0 0 30px #0000001a;display:flex;flex-direction:column;grid-column:1/2;grid-row:1/3;overflow:hidden}.ugb-modal-design-library .ugb-modal-design-library__sidebar .ugb-control-separator{margin:8px 0!important;width:100%!important}.ugb-modal-design-library .ugb-modal-design-library__topbar{align-items:center;display:flex;grid-column:2/3;grid-row:1/2;height:50px;justify-content:flex-end;padding:0 24px}.ugb-modal-design-library .ugb-modal-design-library__designs{grid-column:2/3;grid-row:2/3;padding:24px}.ugb-modal-design-library .ugb-modal-design-library__search{padding:24px 24px 0}.ugb-modal-design-library .ugb-modal-design-library__search .components-base-control__field{margin:0}.ugb-modal-design-library .ugb-modal-design-library__topbar .is-pressed{background:#555;color:#fff}.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text.is-pressed,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text:hover,.ugb-modal-design-library .ugb-advanced-toolbar-control .ugb-toolbar--full-width{background:#0000}.ugb-modal-design-library .ugb-modal-design-library__filters{overflow-y:auto;padding:24px}.ugb-modal-design-library__filters .ugb-block-list{margin-top:0!important}.ugb-modal-design-library__filters .ugb-block-list .components-button-group{text-align:center}.ugb-block-list h4{margin-bottom:0;padding:0 10px 6px}.ugb-block-list li{margin:0}.ugb-block-list li>div{cursor:pointer;padding:6px 10px}.ugb-block-list li [aria-pressed=true]{color:#f00069;font-weight:700}.ugb-block-list li .is-disabled{opacity:.3}.ugb-block-list .ugb-block-list__count{float:right}.ugb-block-list [data-count="0"]{opacity:.3}.ugb-modal-design-library__color-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}.ugb-modal-design-library__color-list{margin-bottom:8px!important}.ugb-modal-design-library__color-list .components-circular-option-picker{flex:0;flex-basis:20px;margin:0 10px 10px;width:24px}.ugb-modal-design-library__color-list .components-circular-option-picker__option-wrapper{height:22px;margin:0;width:22px}.ugb-modal-design-library__color-list .components-circular-option-picker__option-wrapper .components-circular-option-picker__option{padding:0}.ugb-modal-design-library__color-list .components-circular-option-picker__option.is-pressed+svg{height:16px;left:3px;top:3px;width:16px}.ugb-modal-design-library__color-list .components-circular-option-picker__option:after{box-shadow:inset 0 0 0 1px #0003!important}.ugb-modal-design-library__color-list .components-circular-option-picker__option:focus:after{height:28px;left:-3px;top:-3px;width:28px}.ugb-modal-design-library__refresh{margin-right:10px}.ugb-modal-design-library__dev-mode .components-base-control__field{margin:2px 24px 0!important}.ugb-svg-icon-placeholder{line-height:1}.ugb-svg-icon-placeholder button{background:#0000!important;border:none!important;box-shadow:none!important;color:inherit;cursor:copy;display:inline-block;font-size:inherit;outline:none!important;padding:0;width:auto}.ugb-svg-icon-placeholder button svg{display:block}.ugb-svg-icon-placeholder__button{display:flex!important;font-size:inherit!important;height:auto;overflow:visible;padding:inherit!important}.ugb-svg-icon-placeholder__button:hover{color:inherit!important}.ugb-bottom-separator .ugb-separator-wrapper,.ugb-top-separator .ugb-separator-wrapper{pointer-events:all}.ugb-design-layout-selector__design-items,.ugb-design-layout-selector__layout-items{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;row-gap:6px;width:100%}.ugb-design-layout-selector__spinner{align-items:center;bottom:0;display:flex;justify-content:center;left:0;margin:auto;position:absolute;right:0;top:0;z-index:1}.ugb-design-layout-selector__content{max-height:450px;overflow-y:auto}.ugb-design-layout-selector__content .components-placeholder__instructions:not(:first-child){margin-top:26px}.ugb-design-layout-selector{margin:auto!important;max-width:750px;position:relative;transition:all .3s ease-in-out}.ugb-design-layout-selector.is-busy .ugb-design-layout-selector__content{opacity:.15}.ugb-design-layout-selector__close-button{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding-top:8px;width:100%}.ugb-design-layout-selector__notice{color:#aaa;font-size:10px!important;font-style:italic;margin:0!important}.ugb-design-layout-selector__image{display:block;min-height:70px;object-fit:contain;pointer-events:none;transition:all .2s ease-in;width:100%}.ugb-design-layout-selector .ugb-design-layout-selector__lock{fill:#fff;background-image:linear-gradient(180deg,#a911b9,#e74673);border-radius:20px;opacity:1;padding:3px;position:absolute;right:8px;top:8px;transform:none;transition:all .15s ease-in;z-index:1}.ugb-design-layout-selector .ugb-design-layout-selector__item-premium-button{background:linear-gradient(330deg,#b300be,#f00069);background-color:#b300be;border:0;border-radius:25px;box-shadow:none;color:#fff;display:flex;display:inline-block;flex-direction:column;font-size:10px;height:auto;left:50%;letter-spacing:1px;line-height:1em;margin:0 auto;min-height:auto;opacity:0;padding:10px 15px;position:absolute;text-transform:uppercase;top:50%;transform:translateY(-50%) translateX(-50%);transition:all .3s ease-in-out;transition-duration:.2s;transition-timing-function:cubic-bezier(.81,.37,.61,1);width:auto;z-index:3}.ugb-design-layout-selector .ugb-design-layout-selector__item-premium-button:hover{background:linear-gradient(90deg,#f00069 0,#f00069);color:#fff;transform:translateY(-50%) translateX(-50%) scale(1.02)}.ugb-design-layout-selector .ugb-design-layout-selector__item{background:#0000;border:0;break-inside:avoid;display:block;order:1;padding:0 8px;position:relative}.ugb-design-layout-selector .ugb-design-layout-selector__item.is-premium{order:2}.ugb-design-layout-selector .ugb-design-layout-selector__item.is-premium .ugb-design-layout-selector__wrapper:after{cursor:default}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover .ugb-design-layout-selector__wrapper:after{opacity:.05}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover .ugb-design-layout-selector__wrapper .ugb-design-layout-selector__lock{opacity:0;transform:scale(.5)}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover .ugb-design-layout-selector__wrapper .ugb-design-layout-selector__item-premium-button{opacity:1}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover.is-premium .ugb-design-layout-selector__wrapper:after{opacity:.25}.ugb-design-layout-selector__wrapper{border-radius:8px;cursor:pointer;display:flex;height:max-content;margin-top:3px;overflow:hidden;padding:0;position:relative;text-align:left;transition:all .2s ease-in;width:100%}.ugb-design-layout-selector__wrapper>:not(.ugb-design-layout-selector__image){z-index:3}.ugb-design-layout-selector__wrapper:after{background:#000;bottom:0;content:"";display:block;left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s ease-in;z-index:2}.ugb-design-layout-selector__label{color:#000;display:block;font-size:12px!important;font-weight:400!important;margin-bottom:0;margin-top:6px!important;text-align:center;width:100%}.ugb-design-layout-selector__layout-item{flex-basis:130px}.ugb-design-layout-selector__design-item{flex-basis:170px}.ugb-design-layout-selector__design-item .ugb-design-layout-selector__wrapper{min-height:100px}.ugb-design-layout-selector__design-library{margin-top:24px;position:relative}.ugb-design-layout-selector__design-library.is-busy{opacity:.15}.ugb-panel-controls-separator{background:#f0f3f5;background:#fafafa;border-top:1px solid #f0f0f0;color:#00669b;color:var(--wp-admin-theme-color-darker-10,#00669b);font-size:8px;margin:0;padding:14px 0;text-align:center;text-transform:uppercase}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet{display:block!important}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop.ugb-main-block,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile.ugb-main-block,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet.ugb-main-block{display:flex!important}.ugb-main-block,[class*=ugb-]+form[class*=-link],[class*=ugb-] form[class*=-link],form[class*=ugb-][class*=-link]{align-items:center;display:flex;justify-content:center}.ugb-main-block{margin-bottom:35px;margin-top:35px;padding:0}.ugb-main-block.alignfull{padding:0 35px}.ugb-block-content,.ugb-inner-block{margin:0;padding:0;position:relative;width:100%}.ugb--full-height{min-height:700px}.ugb--restrict-content-width .ugb-content-wrapper{margin:0 auto;max-width:var(--content-width)}.ugb--shadow-0,.ugb-shadow-0{box-shadow:none!important}.ugb--shadow-1,.ugb-shadow-1{box-shadow:0 0 0 1px #7878781a!important}.ugb--shadow-2,.ugb-shadow-2{box-shadow:0 0 0 2px #7878781a!important}.ugb--shadow-3,.ugb-shadow-3{box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px #b0b5c133!important}.ugb--shadow-4,.ugb-shadow-4{box-shadow:0 2px 20px #9993!important}.ugb--shadow-5,.ugb-shadow-5{box-shadow:0 5px 30px -10px #123f524d!important}.ugb--shadow-6,.ugb-shadow-6{box-shadow:0 10px 30px #0000000d!important}.ugb--shadow-7,.ugb-shadow-7{box-shadow:7px 5px 30px #48497926!important}.ugb--shadow-8,.ugb-shadow-8{box-shadow:0 10px 60px #0000001a!important}.ugb--shadow-9,.ugb-shadow-9{box-shadow:0 70px 130px -60px #48497961!important}div[class^=wp-block-ugb-]{z-index:1}@supports (-webkit-touch-callout:inherit){[class*=ugb-]{background-attachment:scroll!important}}.ugb-block-content:after,.ugb-block-content:before{content:none!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background{margin-bottom:0;margin-top:0;padding-bottom:70px;padding-top:70px}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-full>.ugb-inner-block{width:100%}.ugb-bottom-block-separator-panel .ugb-design-control,.ugb-top-block-separator-panel .ugb-design-control{max-height:270px}.ugb-top-block-separator-panel .ugb-design-panel-item__image{transform:scaleY(-1)}.ugb-bottom-separator svg,.ugb-top-separator svg{transition:none!important}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title{margin:0 0 64px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title.ugb-block-title--with-subtitle{margin-bottom:16px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-description{margin:0 0 64px}.editor-styles-wrapper .ugb-container-link>a{display:none}@media screen and (max-width:600px){.ugb-icon-list.ugb-icon-list--display-grid ul{grid-template-columns:1fr!important}.ugb-icon-list.ugb-icon-list ul{column-count:1!important}.ugb-main-block.alignfull{padding-left:17.5px;padding-right:17.5px}}@media screen and (min-width:1025px){.ugb--full-height{min-height:100vh}}@media screen and (max-width:768px){.ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-areas:inherit!important;grid-template-columns:1fr!important}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-columns:1fr!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:inherit!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit}.editor-styles-wrapper .ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-areas:inherit!important;grid-template-columns:1fr!important}.editor-styles-wrapper .ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.ugb-column{grid-area:inherit!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:1fr!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:inherit!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{grid-area:inherit}}@media screen and (min-width:768px) and (max-width:1025px){.editor-styles-wrapper .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout,.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr 1fr!important}}@media (min-width:600px){[data-type="ugb/column"].block-editor-block-contextual-toolbar{margin-bottom:0!important;margin-left:0!important}}@media screen and (min-width:960px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-center>.ugb-inner-block{max-width:var(--content-width)}}@media screen and (min-width:1280px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-wide>.ugb-inner-block{max-width:1200px}}#end-resizable-editor-section{display:none}
1
+ #start-resizable-editor-section{display:none}.block-editor-block-list__block[data-type^="ugb/"]{margin-bottom:0!important;margin-top:0!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block{margin-bottom:35px;margin-top:35px;padding:0 35px}[data-type^="ugb/"]>.wp-block[data-align=full]{margin-left:-10px;margin-right:-10px}[data-type="ugb/accordion"] .ugb-accordion__heading{outline:none}[data-type="ugb/accordion"] .ugb-accordion__heading svg{transform:rotate(180deg)!important}[data-type="ugb/accordion"] .ugb-accordion__heading>:first-child{flex:1}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__content{display:none}[data-type="ugb/accordion"] .ugb-accordion:not(.ugb-accordion--open) .ugb-accordion__heading svg{transform:rotate(0deg)!important}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content .ugb-accordion__content-inner{padding-top:0}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__content{overflow:visible}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2.ugb-accordion--design-plain .ugb-accordion__content .ugb-accordion__content-inner{padding-bottom:0}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__heading{z-index:0}.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay .ugb-video-background,.editor-styles-wrapper .ugb-accordion.ugb-accordion--v2 .ugb-accordion__item.ugb--has-background-overlay:before{z-index:-1!important}.ugb-accordion__heading>div:empty{display:none}.ugb-blockquote{margin-left:0;margin-right:0}.ugb-blockquote__inspector__icon{flex-wrap:wrap}.ugb-blog-posts__item:after{pointer-events:none}.ugb-blog-posts__meta>:after{content:none!important}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-cta.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-cta__item,[data-type][data-align=full] .ugb-cta.ugb-main-block:not(.ugb--has-block-background) .ugb-cta__item{border-radius:0}.ugb-column>.ugb-inner-block>.ugb-block-content>.ugb-column__item{overflow:visible}[data-type="ugb/column"]>.block-editor-block-list__block-edit{height:100%}[data-type="ugb/column"]>.block-editor-block-list__block-edit>[data-block]{display:flex;flex-direction:column}.wp-block[data-type="ugb/column"],.wp-block[data-type="ugb/column"] .wp-block{max-width:none}[data-type="ugb/column"],[data-type="ugb/column"]>.ugb-column{height:100%}[data-type="ugb/column"]{transition:none!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-block]:first-child{margin-top:0!important}.ugb-column__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender:not(:first-child){margin-bottom:-28px!important}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns .ugb-columns__item{align-items:stretch}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-gap:35px;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:first-child{grid-area:one}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(2){grid-area:two}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(3){grid-area:three}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(4){grid-area:four}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(5){grid-area:five}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(6){grid-area:six}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(7){grid-area:seven}.ugb-columns:not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>:nth-child(8){grid-area:eight}.ugb-columns:not(.ugb-columns--design-plain):not(.ugb-columns--design-plain)>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-columns:auto;grid-auto-flow:row}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{align-items:stretch;display:flex!important;height:100%;justify-content:stretch}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.ugb-columns__item>.block-editor-inner-blocks{width:100%}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-gap:35px;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>div{margin-left:0;margin-right:0}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two";grid-template-columns:1fr 1fr;grid-template-rows:auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three three";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four";grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two" "three four" "five five";grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three" "four five six" "seven seven seven";grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto}.ugb-columns.ugb-columns--design-grid.ugb-columns--columns-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:"one two three four" "five six seven eight";grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:auto auto}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{display:flex;flex-direction:column}[data-type="ugb/columns"].has-child-selected [data-type="ugb/column"]:not(.has-child-selected):before,[data-type="ugb/columns"].is-selected [data-type="ugb/column"]:not(.has-child-selected):before{border:1px dashed #7b86a24d}[data-type="ugb/column"]:before{bottom:0!important;left:0!important;right:0!important;top:0!important}[data-type="ugb/columns"]:not(.is-selected):before{border:1px dashed #f3495799!important}[data-type="ugb/column"]{transition:all .3s ease-in-out!important}[data-type="ugb/column"][style*="transform: tra"]{transition:none!important}.ugb-columns--highlight-1>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:first-child,.ugb-columns--highlight-2>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(2),.ugb-columns--highlight-3>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(3),.ugb-columns--highlight-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(4),.ugb-columns--highlight-5>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(5),.ugb-columns--highlight-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(6),.ugb-columns--highlight-7>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(7),.ugb-columns--highlight-8>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="ugb/column"]:nth-child(8){transform:translateY(-20px)!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background){padding-left:0!important;padding-right:0!important}[data-align=full] .ugb-container:not(.ugb-container--design-plain):not(.ugb--has-block-background)>.ugb-inner-block>.ugb-block-content>.ugb-container__wrapper{border-radius:0!important}[data-type="ugb/container"][data-align=center]{text-align:inherit}.ugb-container .block-editor-block-list__block{max-width:none!important}[data-align=full] .ugb-countup{border-radius:0!important;margin-bottom:0;margin-top:0}.ugb-expand__label{border:none;box-shadow:none;color:#8e979e;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:600;padding:2em 0 0;text-transform:uppercase;white-space:nowrap}.ugb-expand__label:first-child{padding-top:0}.ugb-expand .ugb-expand__less-text p,.ugb-expand .ugb-expand__more-text p{color:inherit;font-size:inherit}.ugb-expand .ugb-block-content>a{display:inline-block}.ugb-feature.ugb-feature--design-basic .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder,.ugb-feature.ugb-feature--design-plain .ugb-feature__image.ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{height:250px}.ugb-feature-grid .ugb-image-upload-placeholder.ugb-image-upload-has-placeholder{border-radius:100%;height:100px;margin:0 auto;width:100px}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background){padding:0}[data-type][data-align=full] .ugb-header.ugb-main-block.ugb-main-block--inner-full.ugb--has-block-background .ugb-header__item,[data-type][data-align=full] .ugb-header.ugb-main-block:not(.ugb--has-block-background) .ugb-header__item{border-radius:0}.editor-styles-wrapper .ugb-heading .ugb-heading__subtitle,.editor-styles-wrapper .ugb-heading .ugb-heading__top-line{margin-bottom:16px}.editor-styles-wrapper .ugb-heading .ugb-heading__title{margin-bottom:8px}.ugb-icon-list ul{list-style:none!important}.ugb-icon-list ul li:before{cursor:pointer}.ugb-icon-list.ugb-icon-list li:last-child{margin-bottom:0!important}.ugb-icon-list__center-align li,.ugb-icon-list__right-align li{margin-left:auto!important;width:fit-content!important;width:-moz-fit-content!important}.ugb-icon-list__center-align li{margin-right:auto!important}.ugb-icon-list__left-align li{margin-right:auto!important;width:fit-content!important;width:-moz-fit-content!important}.ugb-image-box__image:hover{opacity:1!important}.ugb-image-box__arrow{pointer-events:all!important}[data-type="ugb/notification"] .ugb-notification.ugb-notification--dismissible{display:flex!important}[data-type="ugb/notification"] .ugb-notification__item>:last-child,[data-type="ugb/notification"] .ugb-notification__item>:last-child [role=textbox]{margin-bottom:0}[data-type="ugb/notification"] .ugb-svg-icon-placeholder__button{display:block;width:100%}.ugb-number-box .ugb-number-box__number[data-is-placeholder-visible=true]{height:2.5em;left:calc(50% - 1.25em);transition:none;width:2.5em}.ugb-number-box .ugb-number-box__item>:not(.ugb-number-box__content){z-index:3!important}.ugb-number-box .ugb-number-box__item>.ugb-number-box__content{z-index:4!important}.ugb-pricing-box__price-line>:first-child{align-self:flex-start}.ugb-pricing-box__price-line>:last-child{align-self:flex-end}[data-type="ugb/separator"]{z-index:30!important}[data-type="ugb/separator"]~.wp-block.is-selected{z-index:31}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-inner{overflow:hidden}[data-type="ugb/separator"][data-align=full] .ugb-separator .ugb-separator__svg-wrapper{overflow:visible}.ugb-team-member-setting__social,.ugb-team-member-setting__social .components-base-control__field{margin-bottom:8px!important}.ugb-team-member__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-team-member__image .ugb-image-upload-has-placeholder svg{position:absolute;top:50%;transform:translateY(-50%)}.ugb-team-member-setting__social-label{margin-bottom:8px}.ugb-testimonial__image .ugb-image-upload-has-placeholder{border-radius:100%;height:0;padding-bottom:100%}.ugb-testimonial__image .ugb-image-upload-has-placeholder svg{position:absolute;top:50%;transform:translateY(-50%)}.editor-styles-wrapper [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup.ugb-main-block--inner-full.ugb--has-block-background .ugb-video-popup__wrapper,.editor-styles-wrapper [data-type="ugb/video-popup"][data-align=full] .ugb-video-popup:not(.ugb--has-block-background) .ugb-video-popup__wrapper{border-radius:0;margin-left:-35px;margin-right:-35px;width:calc(100% + 70px)}.ugb-button.ugb-button--icon-only .ugb-svg-icon-placeholder__button{display:block}.ugb-button.ugb-button--has-icon .ugb-svg-icon-placeholder__button{height:auto}.ugb-button svg{transition:initial!important}.ugb-button.ugb-button--has-icon .ugb-icon-inner-svg svg.ugb-custom-icon{fill:initial}.ugb-columns-width-control__range{align-items:center;display:flex;margin-bottom:8px}.ugb-columns-width-control__range .ugb-columns-width-control__icon{display:block;flex-shrink:0;font-size:14px;font-weight:700;height:20px;margin-right:10px;text-align:center;width:20px}.ugb-columns-width-control__range .components-base-control.components-range-control,.ugb-columns-width-control__range .components-base-control__field{margin-bottom:0!important}.ugb-columns-width-control__range .components-range-control{flex:1}.ugb-columns-width-control .ugb-design-control-wrapper.components-base-control{margin-bottom:0}.ugb-columns-width-control .ugb-design-control{padding:0}.ugb-columns-width-control .ugb-design-control .components-radio-control__option{width:25%}.ugb-columns-width-control .ugb-design-control .components-base-control__field{display:flex;justify-content:space-evenly;margin-bottom:0!important}.ugb-columns-width-control .ugb-design-panel-item__image{display:block}.ugb-columns-width-control .ugb-columns-width-control__suffix{display:block;flex-shrink:0;font-size:14px;margin-left:5px;text-align:center}.ugb-columns-width-control .ugb-columns-width-control__reset{text-transform:none}.ugb-column-widths-control__columns-slider{height:20px;margin-top:20px}.ugb-column-widths-control__columns-slider [role=slider]{background-color:#555d66;border:0;border-radius:50%;height:10px;outline:0;padding:0;position:absolute;transform:translate(-50%,-50%);width:10px}.ugb-column-widths-control__columns-slider [role=slider]:focus{background:#fff;border:1px solid #555d66}.ugb-column-widths-control__columns-input{display:grid}.ugb-column-widths-control__columns-input input{font-size:11px;margin:0 auto;min-width:40px!important;padding:4px 2px!important;width:40px}.ugb-column-widths-control__columns-input input:not(:hover):not(:focus){border-color:#eee}.ugb-design-library-control__open-library{display:block;margin:0 0 8px auto!important}.ugb-design-library-control__open-library__toolbar{display:flex;font-size:11px;justify-content:space-between;padding:0}.editor-styles-wrapper .ugb--has-background-overlay.ugb--has-background-overlay .ugb-video-background,.editor-styles-wrapper .ugb--has-background-overlay.ugb--has-background-overlay:before{pointer-events:none}.ugb-icon-control svg .fa-secondary,.ugb-icon-popover svg .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.ugb-icon-is-loading{animation:icon-loading 1.3s linear infinite;height:12px!important;width:12px!important}@keyframes icon-loading{0%{opacity:.8;transform:rotate(0deg)}25%,75%{opacity:.4}50%{opacity:.8}to{opacity:.8;transform:rotate(1turn)}}.ugb-icon--faded{opacity:.4}.ugb-img{max-width:100%}.ugb-modal-design-library{--wp-admin-theme-color:#f00069;--wp-admin-theme-color-darker-10:#bd0053;--wp-admin-theme-color-darker-20:#8a003c;height:90%;max-width:90%;min-height:500px;width:100%}.ugb-modal-design-library .components-modal__content{display:flex;flex-direction:column;margin-top:57px;padding:0}.ugb-modal-design-library .components-modal__header{border-bottom:1px solid #ddd;height:58px;margin:0}.ugb-modal-design-library .ugb-modal-design-library__wrapper{display:grid;flex:1;grid-template-columns:300px auto;grid-template-rows:50px auto}.ugb-modal-design-library .ugb-modal-design-library__sidebar{background:#fff;box-shadow:0 0 30px #0000001a;display:flex;flex-direction:column;grid-column:1/2;grid-row:1/3;overflow:hidden}.ugb-modal-design-library .ugb-modal-design-library__sidebar .ugb-control-separator{margin:8px 0!important;width:100%!important}.ugb-modal-design-library .ugb-modal-design-library__topbar{align-items:center;display:flex;grid-column:2/3;grid-row:1/2;height:50px;justify-content:flex-end;padding:0 24px}.ugb-modal-design-library .ugb-modal-design-library__designs{grid-column:2/3;grid-row:2/3;padding:24px}.ugb-modal-design-library .ugb-modal-design-library__search{padding:24px 24px 0}.ugb-modal-design-library .ugb-modal-design-library__search .components-base-control__field{margin:0}.ugb-modal-design-library .ugb-modal-design-library__topbar .is-pressed{background:#555;color:#fff}.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text.is-pressed,.ugb-modal-design-library .ugb-advanced-toolbar-control .components-button.components-toolbar__control.has-text:hover,.ugb-modal-design-library .ugb-advanced-toolbar-control .ugb-toolbar--full-width{background:#0000}.ugb-modal-design-library .ugb-modal-design-library__filters{overflow-y:auto;padding:24px}.ugb-modal-design-library__filters .ugb-block-list{margin-top:0!important}.ugb-modal-design-library__filters .ugb-block-list .components-button-group{text-align:center}.ugb-block-list h4{margin-bottom:0;padding:0 10px 6px}.ugb-block-list li{margin:0}.ugb-block-list li>div{cursor:pointer;padding:6px 10px}.ugb-block-list li [aria-pressed=true]{color:#f00069;font-weight:700}.ugb-block-list li .is-disabled{opacity:.3}.ugb-block-list .ugb-block-list__count{float:right}.ugb-block-list [data-count="0"]{opacity:.3}.ugb-modal-design-library__color-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}.ugb-modal-design-library__color-list{margin-bottom:8px!important}.ugb-modal-design-library__color-list .components-circular-option-picker{flex:0;flex-basis:20px;margin:0 10px 10px;width:24px}.ugb-modal-design-library__color-list .components-circular-option-picker__option-wrapper{height:22px;margin:0;width:22px}.ugb-modal-design-library__color-list .components-circular-option-picker__option-wrapper .components-circular-option-picker__option{padding:0}.ugb-modal-design-library__color-list .components-circular-option-picker__option.is-pressed+svg{height:16px;left:3px;top:3px;width:16px}.ugb-modal-design-library__color-list .components-circular-option-picker__option:after{box-shadow:inset 0 0 0 1px #0003!important}.ugb-modal-design-library__color-list .components-circular-option-picker__option:focus:after{height:28px;left:-3px;top:-3px;width:28px}.ugb-modal-design-library__refresh{margin-right:10px}.ugb-modal-design-library__dev-mode .components-base-control__field{margin:2px 24px 0!important}.ugb-svg-icon-placeholder{line-height:1}.ugb-svg-icon-placeholder button{background:#0000!important;border:none!important;box-shadow:none!important;color:inherit;cursor:copy;display:inline-block;font-size:inherit;outline:none!important;padding:0;width:auto}.ugb-svg-icon-placeholder button svg{display:block}.ugb-svg-icon-placeholder__button{display:flex!important;font-size:inherit!important;height:auto;overflow:visible;padding:inherit!important}.ugb-svg-icon-placeholder__button:hover{color:inherit!important}.ugb-bottom-separator .ugb-separator-wrapper,.ugb-top-separator .ugb-separator-wrapper{pointer-events:all}.ugb-design-layout-selector__design-items,.ugb-design-layout-selector__layout-items{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;row-gap:6px;width:100%}.ugb-design-layout-selector__spinner{align-items:center;bottom:0;display:flex;justify-content:center;left:0;margin:auto;position:absolute;right:0;top:0;z-index:1}.ugb-design-layout-selector__content{max-height:450px;overflow-y:auto}.ugb-design-layout-selector__content .components-placeholder__instructions:not(:first-child){margin-top:26px}.ugb-design-layout-selector{margin:auto!important;max-width:750px;position:relative;transition:all .3s ease-in-out}.ugb-design-layout-selector.is-busy .ugb-design-layout-selector__content{opacity:.15}.ugb-design-layout-selector__close-button{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding-top:8px;width:100%}.ugb-design-layout-selector__notice{color:#aaa;font-size:10px!important;font-style:italic;margin:0!important}.ugb-design-layout-selector__image{display:block;min-height:70px;object-fit:contain;pointer-events:none;transition:all .2s ease-in;width:100%}.ugb-design-layout-selector .ugb-design-layout-selector__lock{fill:#fff;background-image:linear-gradient(180deg,#a911b9,#e74673);border-radius:20px;opacity:1;padding:3px;position:absolute;right:8px;top:8px;transform:none;transition:all .15s ease-in;z-index:1}.ugb-design-layout-selector .ugb-design-layout-selector__item-premium-button{background:linear-gradient(330deg,#b300be,#f00069);background-color:#b300be;border:0;border-radius:25px;box-shadow:none;color:#fff;display:flex;display:inline-block;flex-direction:column;font-size:10px;height:auto;left:50%;letter-spacing:1px;line-height:1em;margin:0 auto;min-height:auto;opacity:0;padding:10px 15px;position:absolute;text-transform:uppercase;top:50%;transform:translateY(-50%) translateX(-50%);transition:all .3s ease-in-out;transition-duration:.2s;transition-timing-function:cubic-bezier(.81,.37,.61,1);width:auto;z-index:3}.ugb-design-layout-selector .ugb-design-layout-selector__item-premium-button:hover{background:linear-gradient(90deg,#f00069 0,#f00069);color:#fff;transform:translateY(-50%) translateX(-50%) scale(1.02)}.ugb-design-layout-selector .ugb-design-layout-selector__item{background:#0000;border:0;break-inside:avoid;display:block;order:1;padding:0 8px;position:relative}.ugb-design-layout-selector .ugb-design-layout-selector__item.is-premium{order:2}.ugb-design-layout-selector .ugb-design-layout-selector__item.is-premium .ugb-design-layout-selector__wrapper:after{cursor:default}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover .ugb-design-layout-selector__wrapper:after{opacity:.05}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover .ugb-design-layout-selector__wrapper .ugb-design-layout-selector__lock{opacity:0;transform:scale(.5)}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover .ugb-design-layout-selector__wrapper .ugb-design-layout-selector__item-premium-button{opacity:1}.ugb-design-layout-selector .ugb-design-layout-selector__item:hover.is-premium .ugb-design-layout-selector__wrapper:after{opacity:.25}.ugb-design-layout-selector__wrapper{border-radius:8px;cursor:pointer;display:flex;height:max-content;margin-top:3px;overflow:hidden;padding:0;position:relative;text-align:left;transition:all .2s ease-in;width:100%}.ugb-design-layout-selector__wrapper>:not(.ugb-design-layout-selector__image){z-index:3}.ugb-design-layout-selector__wrapper:after{background:#000;bottom:0;content:"";display:block;left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s ease-in;z-index:2}.ugb-design-layout-selector__label{color:#000;display:block;font-size:12px!important;font-weight:400!important;margin-bottom:0;margin-top:6px!important;text-align:center;width:100%}.ugb-design-layout-selector__layout-item{flex-basis:130px}.ugb-design-layout-selector__design-item{flex-basis:170px}.ugb-design-layout-selector__design-item .ugb-design-layout-selector__wrapper{min-height:100px}.ugb-design-layout-selector__design-library{margin-top:24px;position:relative}.ugb-design-layout-selector__design-library.is-busy{opacity:.15}.ugb-panel-controls-separator{background:#f0f3f5;background:#fafafa;border-top:1px solid #f0f0f0;color:#00669b;color:var(--wp-admin-theme-color-darker-10,#00669b);font-size:8px;margin:0;padding:14px 0;text-align:center;text-transform:uppercase}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet{display:block!important}.ugb--hide-desktop.ugb--hide-desktop.ugb--hide-desktop.ugb-main-block,.ugb--hide-mobile.ugb--hide-mobile.ugb--hide-mobile.ugb-main-block,.ugb--hide-tablet.ugb--hide-tablet.ugb--hide-tablet.ugb-main-block{display:flex!important}.ugb-main-block,[class*=ugb-]+form[class*=-link],[class*=ugb-] form[class*=-link],form[class*=ugb-][class*=-link]{align-items:center;display:flex;justify-content:center}.ugb-main-block{margin-bottom:35px;margin-top:35px;padding:0}.ugb-main-block.alignfull{padding:0 35px}.ugb-block-content,.ugb-inner-block{margin:0;padding:0;position:relative;width:100%}.ugb--full-height{min-height:700px}.ugb--restrict-content-width .ugb-content-wrapper{margin:0 auto;max-width:var(--content-width)}.ugb--shadow-0,.ugb-shadow-0{box-shadow:none!important}.ugb--shadow-1,.ugb-shadow-1{box-shadow:0 0 0 1px #7878781a!important}.ugb--shadow-2,.ugb-shadow-2{box-shadow:0 0 0 2px #7878781a!important}.ugb--shadow-3,.ugb-shadow-3{box-shadow:0 5px 5px 0 rgba(18,63,82,.035),0 0 0 1px #b0b5c133!important}.ugb--shadow-4,.ugb-shadow-4{box-shadow:0 2px 20px #9993!important}.ugb--shadow-5,.ugb-shadow-5{box-shadow:0 5px 30px -10px #123f524d!important}.ugb--shadow-6,.ugb-shadow-6{box-shadow:0 10px 30px #0000000d!important}.ugb--shadow-7,.ugb-shadow-7{box-shadow:7px 5px 30px #48497926!important}.ugb--shadow-8,.ugb-shadow-8{box-shadow:0 10px 60px #0000001a!important}.ugb--shadow-9,.ugb-shadow-9{box-shadow:0 70px 130px -60px #48497961!important}div[class^=wp-block-ugb-]{z-index:1}@supports (-webkit-touch-callout:inherit){[class*=ugb-]{background-attachment:scroll!important}}.ugb-block-content:after,.ugb-block-content:before{content:none!important}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background{margin-bottom:0;margin-top:0;padding-bottom:70px;padding-top:70px}[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-full>.ugb-inner-block{width:100%}.ugb-bottom-block-separator-panel .ugb-design-control,.ugb-top-block-separator-panel .ugb-design-control{max-height:270px}.ugb-top-block-separator-panel .ugb-design-panel-item__image{transform:scaleY(-1)}.ugb-bottom-separator svg,.ugb-top-separator svg{transition:none!important}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title{margin:0 0 64px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-title.ugb-block-title--with-subtitle{margin-bottom:16px}.editor-styles-wrapper [data-type^="ugb/"] .ugb-main-block .ugb-block-description{margin:0 0 64px}.editor-styles-wrapper .ugb-container-link>a{display:none}@media screen and (max-width:600px){.ugb-icon-list.ugb-icon-list--display-grid ul{grid-template-columns:1fr!important}.ugb-icon-list.ugb-icon-list ul{column-count:1!important}.ugb-main-block.alignfull{padding-left:17.5px;padding-right:17.5px}}@media screen and (min-width:1025px){.ugb--full-height{min-height:100vh}}@media screen and (max-width:768px){.ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-areas:inherit!important;grid-template-columns:1fr!important}.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-columns:1fr!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-template-areas:inherit!important}.ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.ugb-column{grid-area:inherit}.editor-styles-wrapper .ugb-columns.ugb-columns.ugb-columns.ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-areas:inherit!important;grid-template-columns:1fr!important}.editor-styles-wrapper .ugb-columns>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.ugb-column{grid-area:inherit!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-4>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-auto-flow:row;grid-template-columns:1fr 1fr!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:1fr!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-areas:inherit!important}.editor-styles-wrapper .ugb-columns.ugb-columns--design-grid>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-editor-block-list__block{grid-area:inherit}}@media screen and (min-width:768px) and (max-width:1025px){.editor-styles-wrapper .ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item>.block-editor-inner-blocks>.block-editor-block-list__layout,.ugb-columns.ugb-columns--design-plain.ugb-columns--columns-6>.ugb-inner-block>.ugb-block-content>.ugb-columns__item{grid-auto-flow:row;grid-template-columns:1fr 1fr 1fr!important}}@media (min-width:600px){[data-type="ugb/column"].block-editor-block-contextual-toolbar{margin-bottom:0!important;margin-left:0!important}}@media screen and (min-width:960px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-center>.ugb-inner-block{max-width:var(--content-width)}}@media screen and (min-width:1280px){[data-type^="ugb/"][data-align=full]>*>.ugb-main-block.ugb--has-block-background.ugb-main-block--inner-wide>.ugb-inner-block{max-width:1200px}}#end-resizable-editor-section{display:none}
dist/deprecated/editor_blocks_deprecated_v2.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see editor_blocks_deprecated_v2.js.LICENSE.txt */
2
- (()=>{var e={2527:(e,t,a)=>{"use strict";function n(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}a.d(t,{Z:()=>n})},5883:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>I,settings:()=>U});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.accordion.design.no-text-attributes","stackable/accordion",(e=>(0,n.omit)(e,["title"]))),(0,o.addFilter)("stackable.accordion.edit.designs","stackable/accordion",(e=>({...e})));var i=a(2610),l=a(7462);a(7294);const r=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,i.createElement)("path",{d:"M16.7 3.3L10 10 3.3 3.4 0 6.7l10 10v-.1l10-9.9z"}))};var s=a(7545),c=a(8423),u=a(910),g=a(8003);const d={design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},onlyOnePanelOpen:{type:"boolean",default:!1},openStart:{type:"boolean",default:!1},reverseArrow:{type:"boolean",default:!1},...(0,c.yA)("container%s"),containerClosedBackgroundColor:{type:"string",default:""},...(0,s.createBorderAttributes)("container%s"),title:{source:"html",selector:".ugb-accordion__title",default:(0,g.__)("Title for This Block",u.i18n)},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},showArrow:{type:"boolean",default:!0},arrowSize:{type:"number",default:""},arrowColor:{type:"string",default:""},showBorder:{type:"boolean",default:!0},borderSize:{type:"number",default:""},borderColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("Title%sAlign",{type:"string",default:""},["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("containerPadding%s",{type:"number",default:""},["Top","Right","Bottom","Left"]),...(0,s.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""})};var b=a(4863),m=a.n(b);const p=e=>{const{design:t="basic",showTitle:a=!0}=e.attributes;return(0,o.applyFilters)("stackable.accordion.show",{headerBackground:"basic"===t,containerBackground:"colored"===t||"line-colored"===t,borderRadius:"plain"!==t,shadow:"plain"!==t,border:"line-colored"===t||"plain"===t,containerBorder:"plain"!==t,titleSpacing:a},e)},h=e=>{const t=(0,s.__getValue)(e.attributes),{design:a="basic",reverseArrow:n=!1}=e.attributes,o=p(e),i=[];i.push({".ugb-accordion__heading":{flexDirection:n?"row-reverse":void 0}}),o.borderRadius&&"basic"===a&&i.push({".ugb-accordion__heading":{borderRadius:t("borderRadius","%spx !important")}}),i.push({...o.headerBackground?(0,c._H)("container%s","ugb-accordion__heading",e.attributes,{importantBackgroundColor:!0}):{}}),o.containerBorder&&("basic"===a?i.push({...(0,s.createBorderStyleSet)("container%s",".ugb-accordion__heading",e.attributes)}):"line-colored"===a?i.push({...(0,s.createBorderStyleSet)("container%s",".ugb-accordion.ugb-accordion--design-line-colored.ugb-accordion--open .ugb-accordion__item",e.attributes)}):i.push({...(0,s.createBorderStyleSet)("container%s",".ugb-accordion__item",e.attributes)}));const{titleColor:l="",showTitle:r=!0}=e.attributes;r&&i.push({".ugb-accordion__title":{...(0,s.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-accordion__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-accordion__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{containerBackgroundColor:u=""}=e.attributes;"basic"!==a&&"plain"!==a||i.push({".ugb-accordion__title":{color:(0,s.whiteIfDark)(l,o.headerBackground&&u)}});const{showArrow:g=!0,arrowColor:d=""}=e.attributes;g&&i.push({".ugb-accordion__arrow":{width:(0,s.appendImportant)(t("arrowSize","%spx")),height:(0,s.appendImportant)(t("arrowSize","%spx"))}}),!g||"basic"!==a&&"plain"!==a||i.push({".ugb-accordion__arrow":{fill:(0,s.whiteIfDark)(d,o.headerBackground&&u)}});const{showBorder:b=!0}=e.attributes;return o.border&&!b&&i.push({".ugb-accordion__item":{border:"none !important"}}),o.border&&b&&i.push({".ugb-accordion__item":{borderWidth:(0,s.appendImportant)(t("borderSize","%spx")),borderColor:(0,s.appendImportant)(t("borderColor"))}}),o.headerBackground&&i.push({".ugb-accordion__heading":{paddingTop:(0,s.appendImportant)(t("containerPaddingTop","%spx")),paddingRight:(0,s.appendImportant)(t("containerPaddingRight","%spx")),paddingBottom:(0,s.appendImportant)(t("containerPaddingBottom","%spx")),paddingLeft:(0,s.appendImportant)(t("containerPaddingLeft","%spx"))}}),o.titleSpacing&&i.push(...(0,s.createResponsiveStyles)(".ugb-accordion.ugb-accordion--open .ugb-accordion__heading","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),m().all(i)},k=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,i.createElement)("path",{d:"M16.7 3.3L10 10 3.3 3.4 0 6.7l10 10v-.1l10-9.9z"}))};var _=a(4184),v=a.n(_),y=a(7200),f=a(9858),C=a(1414),A=a(378),w=a(78),T=a(3749);const B=[{attributes:d,save:(0,T.compose)(C.FI,(0,C.OB)(h))((e=>{const{className:t}=e,{design:a="basic",shadow:n="",titleTag:l="",title:r="",openStart:s=!1,showArrow:c=!0,onlyOnePanelOpen:u=!1}=e.attributes,g=p(e),d=v()([t,"ugb-accordion--v2",`ugb-accordion--design-${a}`],(0,o.applyFilters)("stackable.accordion.mainclasses",{"ugb-accordion--open":s,"ugb-accordion--single-open":u},e)),b=v()(["ugb-accordion__item"],(0,o.applyFilters)("stackable.accordion.itemclasses",{},e)),m=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses",{[`ugb--shadow-${n}`]:g.headerBackground&&""!==n},a,e));return(0,i.createElement)(y.BlockContainer.Save,{className:d,blockProps:e,"aria-expanded":s?"true":"false",render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:b,backgroundAttrName:"container%s",blockProps:e,showBackground:g.containerBackground},(0,i.createElement)(f.Gc,{className:m,backgroundAttrName:"container%s",blockProps:e,showBackground:g.headerBackground,role:"button",tabIndex:"0"},(0,i.createElement)(w.RichText.Content,{tagName:l||"h4",className:"ugb-accordion__title",role:"heading","aria-level":"3",value:r}),c&&(0,i.createElement)(k,{className:"ugb-accordion__arrow",width:"20",height:"20"})),(0,i.createElement)("div",{className:"ugb-accordion__content",role:"region"},(0,i.createElement)("div",{className:"ugb-accordion__content-inner"},(0,i.createElement)(w.InnerBlocks.Content,null)))))})}))},{attributes:{heading:{source:"html",selector:".ugb-accordion__heading h4",default:(0,g.__)("Title for This Block",u.i18n)},text:{source:"html",selector:".ugb-accordion__text",default:(0,s.descriptionPlaceholder)("long")},headingColor:{type:"string"},headingBackgroundColor:{type:"string"},openStart:{type:"boolean",default:!1},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{headingColor:a,headingBackgroundColor:n,heading:l,text:s,openStart:c,design:u="basic",borderRadius:g=12,shadow:d=3}=e.attributes,b=v()([t,"ugb-accordion"],(0,o.applyFilters)("stackable.accordion.mainclasses_1_17_3",{[`ugb-accordion--design-${u}`]:"basic"!==u,"ugb-accordion--open":c},u,e)),m=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses_1_17_3",{[`ugb--shadow-${d}`]:"plain"!==u&&3!==d},u,e)),p=(0,o.applyFilters)("stackable.accordion.styles_1_17_3",{main:{},heading:{borderRadius:"plain"!==u&&12!==g?g:void 0,backgroundColor:"plain"!==u&&n?n:void 0},title:{color:a||void 0}},u,e);return(0,i.createElement)("div",{className:b,style:p.main,role:"presentation"},(0,o.applyFilters)("stackable.accordion.save.output.before_1_17_3",null,u,e),(0,i.createElement)("div",{className:m,role:"button",tabIndex:"0","aria-expanded":c?"true":"false",style:p.heading},(0,i.createElement)(w.RichText.Content,{tagName:"h4",role:"heading","aria-level":"3",style:p.title,value:l}),(e=>{let{fill:t}=e;return(0,i.createElement)(r,{width:"20",height:"20",fill:t})})({fill:a||void 0})),(0,i.createElement)(w.RichText.Content,{tagName:"p",className:"ugb-accordion__text",role:"region",value:s}),(0,o.applyFilters)("stackable.accordion.save.output.after",null,u,e))},migrate:e=>{const t=e=>(e||"").replace(/\n\.ugb-accordion__heading h4(\s*{)/g,"\n.ugb-accordion__title$1").replace(/\.ugb-accordion__text/g,".ugb-accordion__content").replace(/\.ugb-accordion__heading svg/g,".ugb-accordion__arrow");return[{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),title:e.heading,titleColor:e.headingColor||"#222222",containerBackgroundColor:e.headingBackgroundColor,showBorder:"plain"!==e.design,containerClosedBackgroundColor:"colored"===e.design?"#ffffff":void 0,arrowColor:"colored"===e.design||"basic"===e.design||"plain"===e.design?e.headingColor||"#222222":"line-colored"===e.design?e.headingBackgroundColor:void 0},[(0,A.createBlock)("core/paragraph",{content:e.text})]]}}];var x=a(3284);(0,o.addFilter)("stackable.accordion.edit.layouts","default",(e=>[...e,{label:(0,g.__)("Basic",u.i18n),value:"basic",image:"dist/images/block-accordion-basic.6639c67.png"},{label:(0,g.__)("Plain",u.i18n),value:"plain",image:"dist/images/block-accordion-plain.e443b59.png"},{label:(0,g.__)("Lined to Colored",u.i18n),value:"line-colored",image:"dist/images/block-accordion-line-colored.4a7ec49.png",hoverImage:"dist/images/block-accordion-line-colored-hover.7d6772b.png",premium:!0},{label:(0,g.__)("Colored",u.i18n),value:"colored",image:"dist/images/block-accordion-colored.3f93495.png",hoverImage:"dist/images/block-accordion-colored-hover.ba71665.png",premium:!0}])),(0,o.addFilter)("stackable.accordion.edit.inspector.layout.before","stackable/accordion",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(y.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.accordion.edit.layouts",[]),onChange:e=>a({design:e})},u.showProNotice&&(0,i.createElement)(y.ProControlButton,null)))})),(0,o.addFilter)("stackable.accordion.edit.inspector.style.before","stackable/accordion",((e,t)=>{const{setAttributes:a}=t,{design:n="basic",titleColor:o,borderRadius:l="",shadow:r="",onlyOnePanelOpen:s=!1,openStart:c=!1,reverseArrow:d=!1,titleTag:b="",showArrow:m=!0,arrowSize:h="",arrowColor:k="",showBorder:_=!0,borderSize:v="",borderColor:C="",containerPaddingTop:A="",containerPaddingRight:w="",containerPaddingBottom:T="",containerPaddingLeft:B="",containerClosedBackgroundColor:x=""}=t.attributes,S=p(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("General",u.i18n),initialOpen:!0},(0,i.createElement)(y.AdvancedToggleControl,{label:(0,g.__)("Close adjacent on open",u.i18n),checked:s,onChange:e=>a({onlyOnePanelOpen:e}),className:"ugb--help-tip-accordion-adjacent-open"}),(0,i.createElement)(y.AdvancedToggleControl,{label:(0,g.__)("Open at the start",u.i18n),checked:c,onChange:e=>a({openStart:e})}),(0,i.createElement)(y.AdvancedToggleControl,{label:(0,g.__)("Reverse arrow",u.i18n),checked:d,onChange:e=>a({reverseArrow:e})}),(0,i.createElement)(f.QA,{setAttributes:a,blockAttributes:t.attributes})),(S.headerBackground||S.containerBackground)&&(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Container",u.i18n),id:"column-background",initialOpen:!1},(0,i.createElement)(y.ButtonIconPopoverControl,{label:(0,g.__)("Background",u.i18n),popoverLabel:(0,g.__)("Background",u.i18n),onReset:()=>{a({containerBackgroundColorType:"",containerBackgroundColor:"",containerBackgroundColor2:"",containerBackgroundColorOpacity:"",containerBackgroundMediaID:"",containerBackgroundMediaUrl:"",containerBackgroundTintStrength:"",containerFixedBackground:""})},allowReset:t.attributes.containerBackgroundColor||t.attributes.containerBackgroundMediaUrl,hasColorPreview:t.attributes.containerBackgroundColor,hasImagePreview:t.attributes.containerBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.containerBackgroundColorType?[t.attributes.containerBackgroundColor,t.attributes.containerBackgroundColor2]:t.attributes.containerBackgroundColor,imageUrlPreview:t.attributes.containerBackgroundMediaUrl},(0,i.createElement)(y.BackgroundControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes})),S.borderRadius&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Border Radius",u.i18n),value:l,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),S.containerBorder&&(0,i.createElement)(y.BorderControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes}),(S.headerBackground||S.containerBackground)&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Shadow / Outline",u.i18n),value:r,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"}),"colored"===n&&(0,i.createElement)(y.ColorPaletteControl,{value:x,onChange:e=>a({containerClosedBackgroundColor:e}),label:(0,g.__)("Closed State Background Color",u.i18n),className:"ugb--help-tip-accordion-closed-state-background-color"})),(0,i.createElement)(y.PanelSpacingBody,{initialOpen:!1,blockProps:t},(S.headerBackground||S.containerBackground)&&(0,i.createElement)(y.FourRangeControl,{label:(0,g.__)("Padding",u.i18n),top:A,right:w,bottom:T,left:B,onChange:e=>a({containerPaddingTop:e.top,containerPaddingRight:e.right,containerPaddingBottom:e.bottom,containerPaddingLeft:e.left}),max:200,placeholder:"18",className:"ugb--help-tip-accordion-padding"}),S.titleSpacing&&(0,i.createElement)(f.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Title",u.i18n),min:-50,max:100,allowReset:!0,placeholder:"0",className:"ugb--help-tip-accordion-title-spacing"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Title",u.i18n),id:"title",hasToggle:!1},(0,i.createElement)(y.HeadingButtonsControl,{value:b||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,i.createElement)(y.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:b||"h4"}),(0,i.createElement)(y.ColorPaletteControl,{value:o,onChange:e=>a({titleColor:e}),label:(0,g.__)("Title Color",u.i18n)}),(0,i.createElement)(f.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AlignButtonsControl,{label:(0,g.__)("Align",u.i18n),className:"ugb--help-tip-alignment-title"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Arrow",u.i18n),id:"arrow",checked:m,onChange:e=>a({showArrow:e}),toggleOnSetAttributes:["arrowSize","arrowColor"],toggleAttributeName:"showArrow"},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Size",u.i18n),min:0,max:100,allowReset:!0,value:h,onChange:e=>a({arrowSize:e}),placeholder:"20"}),(0,i.createElement)(y.ColorPaletteControl,{value:k,onChange:e=>a({arrowColor:e}),label:(0,g.__)("Color",u.i18n)})),S.border&&(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Border",u.i18n),checked:_,onChange:e=>a({showBorder:e}),toggleOnSetAttributes:["borderSize","borderColor"],toggleAttributeName:"showBorder",className:"ugb--help-tip-accordion-border"},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Size",u.i18n),min:0,max:10,allowReset:!0,value:v,onChange:e=>a({borderSize:e}),placeholder:"3",className:"ugb--help-tip-accordion-border-size"}),(0,i.createElement)(y.ColorPaletteControl,{value:C,onChange:e=>a({borderColor:e}),label:(0,g.__)("Color",u.i18n)})))}));const S=[["core/paragraph",{content:(0,s.descriptionPlaceholder)("long")}]],E=(0,T.compose)(C.FI,C.XQ,C.O0,(0,C.Q9)(),(0,C.lX)(),(0,C.OB)(h,{editorMode:!0}),(0,C.UY)([[".ugb-accordion__title","title"],[".ugb-accordion__arrow","arrow"]]),(0,x.withSelect)(((e,t)=>{let{clientId:a}=t;const{getBlock:n}=e("core/block-editor"),o=n(a);return{hasInnerBlocks:!(!o||!o.innerBlocks.length)}})))((e=>{const{className:t,setAttributes:a}=e,{design:n="basic",shadow:l="",titleTag:r="",title:s="",openStart:c=!1,showArrow:d=!0}=e.attributes,b=p(e),[m,h]=(0,i.useState)(null),[_,C]=(0,i.useState)(null),A=v()([t,"ugb-accordion--v2",`ugb-accordion--design-${n}`],(0,o.applyFilters)("stackable.accordion.mainclasses",{"ugb-accordion--open":null===m?c:m},e)),T=v()(["ugb-accordion__item"],(0,o.applyFilters)("stackable.accordion.itemclasses",{},e)),B=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses",{[`ugb--shadow-${l}`]:"basic"===n&&""!==l},n,e));return(0,i.createElement)(y.BlockContainer.Edit,{className:A,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:T,backgroundAttrName:"container%s",blockProps:e,showBackground:b.containerBackground},(0,i.createElement)(f.Gc,{className:B,backgroundAttrName:"container%s",blockProps:e,showBackground:b.headerBackground,onClick:()=>{_&&clearTimeout(_);const e=setTimeout((()=>{h(!m)}),150);C(e)},onDoubleClick:()=>{_&&clearTimeout(_)},onKeyPress:()=>{_&&clearTimeout(_),h(!c)},role:"button",tabIndex:"0"},(0,i.createElement)(w.RichText,{tagName:r||"h4",className:"ugb-accordion__title",value:s,onChange:e=>a({title:e}),placeholder:(0,g.__)("Title for This Block",u.i18n),keepPlaceholderOnFocus:!0}),d&&(0,i.createElement)(k,{className:"ugb-accordion__arrow",width:"20",height:"20"})),(0,i.createElement)("div",{className:"ugb-accordion__content"},(0,i.createElement)("div",{className:"ugb-accordion__content-inner"},(0,i.createElement)(w.InnerBlocks,{template:S,renderAppender:()=>e.hasInnerBlocks?(0,i.createElement)(w.InnerBlocks.DefaultBlockAppender,null):(0,i.createElement)(w.InnerBlocks.ButtonBlockAppender,null)})))))})})),N=(0,T.compose)(C.FI,(0,C.OB)(h))((e=>{const{className:t}=e,{design:a="basic",shadow:n="",titleTag:l="",title:r="",openStart:s=!1,showArrow:c=!0,onlyOnePanelOpen:u=!1}=e.attributes,g=p(e),d=v()([t,"ugb-accordion--v2",`ugb-accordion--design-${a}`],(0,o.applyFilters)("stackable.accordion.mainclasses",{"ugb-accordion--open":s,"ugb-accordion--single-open":u},e)),b=v()(["ugb-accordion__item"],(0,o.applyFilters)("stackable.accordion.itemclasses",{},e)),m=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses",{[`ugb--shadow-${n}`]:g.headerBackground&&""!==n},a,e));return(0,i.createElement)(y.BlockContainer.Save,{className:d,blockProps:e,"aria-expanded":s?"true":"false",render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:b,backgroundAttrName:"container%s",blockProps:e,showBackground:g.containerBackground},(0,i.createElement)(f.Gc,{className:m,backgroundAttrName:"container%s",blockProps:e,showBackground:g.headerBackground,role:"button",tabIndex:"0"},(0,i.createElement)(w.RichText.Content,{tagName:l||"h4",className:"ugb-accordion__title",value:r}),c&&(0,i.createElement)(k,{className:"ugb-accordion__arrow",width:"20",height:"20"})),(0,i.createElement)("div",{className:"ugb-accordion__content",role:"region"},(0,i.createElement)("div",{className:"ugb-accordion__content-inner"},(0,i.createElement)(w.InnerBlocks.Content,null)))))})})),R=JSON.parse('{"name":"ugb/accordion","title":"Accordion","description":"A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.","category":"stackable-v2","keywords":["Toggle","Faq"],"textdomain":"stackable-ultimate-gutenberg-blocks"}');var P=a(9467);const{name:I,...$}=R,U={...$,title:$.title+" (v2)",icon:P.AccordionIcon,attributes:d,example:{attributes:{design:"basic",onlyOnePanelOpen:!1,openStart:!0,reverseArrow:!1,containerBackgroundCustomSizeUnit:"%",containerTabletBackgroundCustomSizeUnit:"%",containerMobileBackgroundCustomSizeUnit:"%",title:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showArrow:!0,showBorder:!0,uniqueClass:"ugb-872a8ec",hideDesktop:!1,hideTablet:!1,hideMobile:!1},innerBlocks:[{clientId:"e6b76d8f-bb66-45fb-938f-ef35d5fca25f",name:"core/paragraph",isValid:!0,originalContent:"<p>Description for this block. Use this space for describing your block. Any text will do.</p>",attributes:{content:"Description for this block. Use this space for describing your block. Any text will do.",dropCap:!1}}]},deprecated:B,edit:E,save:N,supports:{inserter:!u.v2disabledBlocks.includes(I),anchor:!0,html:!1},modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.cta.custom-css.default","")}}}},2832:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>j,settings:()=>X});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.blockquote.design.no-text-attributes","stackable/blockquote",(e=>(0,n.omit)(e,["text"])));var i=a(2610),l=a(7462);a(7294);const r=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M22.3 30.5c0 6-4.8 10.8-10.8 10.8-2.3 0-4.5-.8-6.3-2-.9-.6-1.8-1.4-2.5-2.4-1.8-2.4-2.7-5.4-2.7-9 0-4.5 1.3-8.5 4-11.9 2.7-3.4 6.4-5.8 11.1-7.3v2.8c-2.7 2.2-4.4 5-4.9 8.3.4-.1.9-.1 1.3-.1 6-.1 10.8 4.8 10.8 10.8zm16.9-10.9c-.5 0-.9 0-1.3.1.5-3.3 2.2-6.1 4.9-8.3V8.7c-4.7 1.4-8.4 3.9-11.1 7.3-2.7 3.4-4 7.4-4 11.9 0 3.6.9 6.6 2.7 9 .8 1 1.6 1.8 2.5 2.4 1.8 1.3 3.9 2 6.3 2 6 0 10.8-4.8 10.8-10.8 0-6-4.8-10.9-10.8-10.9z"}))},s=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M9.4 14.6c-2.4 2.9-3.6 5.9-3.6 8.9 0 1.3.2 2.4.5 3.3 1.8-1.4 3.8-2.1 6-2.1 2.9 0 5.3.9 7.3 2.7 2 1.8 3 4.2 3 7.3 0 1.9-.5 3.6-1.4 5.1-.9 1.5-2.2 2.7-3.8 3.6s-3.3 1.3-5.1 1.3c-4.1 0-7.3-1.6-9.5-4.9C.9 36.9 0 33.5 0 29.4c0-5.2 1.4-9.9 4.1-14 2.8-4.1 6.9-7.5 12.5-10l1.5 2.8c-3.3 1.3-6.2 3.5-8.7 6.4zm27.5 0c-2.4 2.9-3.6 5.9-3.6 8.9 0 1.3.2 2.4.5 3.3 1.8-1.4 3.8-2.1 6-2.1 2.9 0 5.4.9 7.4 2.7 2 1.8 3 4.2 3 7.3 0 2.8-1 5.2-3 7.1-2 1.9-4.4 2.9-7.3 2.9-4.1 0-7.3-1.6-9.5-4.9-1.8-2.7-2.8-6.2-2.8-10.3 0-5.2 1.4-9.9 4.1-14 2.8-4.1 6.9-7.5 12.5-10l1.5 2.8c-3.5 1.2-6.4 3.4-8.8 6.3z"}))},c=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M22.6 12.8c-1.9.5-3.7 1.2-5.3 2.1-1.6.9-3.1 1.9-4.3 3-1.2 1.1-2.2 2.4-2.9 3.7-.7 1.3-1.1 2.7-1.1 4 0 1.2.1 1.8.3 1.8.8 0 1.5-.3 2.4-.9.8-.6 1.9-.9 3.3-.9 2.1 0 3.9.8 5.4 2.4 1.5 1.6 2.3 3.7 2.3 6.2s-1 4.6-2.9 6.4c-1.9 1.8-4.3 2.6-7.3 2.6-1.8 0-3.4-.4-4.9-1.1-1.5-.8-2.8-1.8-3.9-3.1s-2-2.8-2.6-4.6C.3 32.5 0 30.6 0 28.6c0-3 .6-5.8 1.8-8.3 1.2-2.5 2.8-4.8 4.9-6.7 2-1.9 4.4-3.5 7.2-4.6 2.8-1.2 5.6-1.8 8.6-2v5.8zm27.4 0c-1.9.5-3.7 1.2-5.4 2.1-1.7.9-3.1 1.9-4.3 3-1.2 1.1-2.2 2.4-2.9 3.7-.7 1.3-1.1 2.7-1.1 4 0 1.2.1 1.8.4 1.8.8 0 1.5-.3 2.3-.9.8-.6 1.9-.9 3.3-.9 2 0 3.8.8 5.3 2.4 1.5 1.6 2.3 3.7 2.3 6.2s-1 4.6-2.9 6.4c-2 1.8-4.4 2.6-7.3 2.6-1.7 0-3.3-.4-4.8-1.1-1.5-.8-2.8-1.8-3.9-3.1s-2-2.8-2.7-4.6c-.7-1.8-1-3.7-1-5.7 0-3 .6-5.8 1.8-8.3 1.2-2.5 2.8-4.8 4.9-6.7 2-1.9 4.4-3.5 7.2-4.6 2.8-1.2 5.7-1.8 8.8-2v5.7z"}))},u=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M19.8 9.3C10.5 11.8 4.6 17 2.1 24.8c2.3-3.6 5.6-5.4 9.9-5.4 3.3 0 6 1.1 8.3 3.3 2.2 2.2 3.4 5 3.4 8.3 0 3.2-1.1 5.8-3.3 8-2.2 2.2-5.1 3.2-8.7 3.2-3.7 0-6.5-1.2-8.6-3.5C1 36.3 0 33.1 0 29 0 18.3 6.5 11.2 19.6 7.9l.2 1.4zm26.4 0C36.9 11.9 31 17 28.5 24.8c2.2-3.6 5.5-5.4 9.8-5.4 3.2 0 6 1.1 8.3 3.2 2.3 2.2 3.4 4.9 3.4 8.3 0 3.1-1.1 5.8-3.3 7.9-2.2 2.2-5.1 3.3-8.6 3.3-3.7 0-6.6-1.1-8.6-3.4-2.1-2.3-3.1-5.5-3.1-9.7 0-10.7 6.6-17.8 19.7-21.1l.1 1.4z"}))},g=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M12.5 9.2H19c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v3.4c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7h-5.8c-.7 0-1.3.2-1.7.6-.4.4-.6 1-.6 1.7v1.3H20c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v12.5c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7H3c-1.1 0-1.8-.2-2.3-.7-.5-.4-.7-1.2-.7-2.2V21.9c0-4.3 1.1-7.4 3.4-9.6 2.3-2 5.3-3.1 9.1-3.1zm26.9 0h6.5c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v3.4c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7h-5.8c-.7 0-1.3.2-1.7.6-.4.4-.6 1-.6 1.7v1.3H47c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v12.5c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7H30c-1.1 0-1.8-.2-2.3-.7-.5-.5-.7-1.2-.7-2.3V21.9c0-4.3 1.1-7.4 3.4-9.6 2.2-2 5.2-3.1 9-3.1z"}))},d=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M20.8 44.5H0V23.7L9.3 5.5h7.3L12 23.7h8.8v20.8zm29.2 0H29.2V23.7l9.3-18.1h7.3l-4.6 18.1H50v20.8z"}))},b=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M10.3 24.8V26H20v16.9H0V26.2C0 13.4 6.6 7.1 19.9 7.1v7.1c-3.4.5-5.9 1.6-7.4 3.3-1.5 1.7-2.2 4.1-2.2 7.3zm30 0V26H50v16.9H30.1V26.2c0-12.7 6.6-19.1 19.9-19.1v7.1c-6.4.7-9.7 4.3-9.7 10.6z"}))},m=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M21.1 6.8v36.4H0V22.1L21.1 6.8zm28.9 0v36.4H28.9V22.1L50 6.8z"}))},p=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M14.7 45.9H0V31.3C0 17.6 8.6 6.6 21.6 4.1v4.7c-10 2.6-16.7 10.9-16.7 22.6h9.8v14.5zm28.1 0H28.4V31.3C28.4 17.6 37 6.6 50 4.1v4.7c-9.8 2.6-16.7 10.9-16.7 22.6h9.5v14.5z"}))};var h=a(910),k=a(8003);const _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(s,(0,l.Z)({style:e},t))},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(u,(0,l.Z)({style:e},t))},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(c,(0,l.Z)({style:e},t))},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(r,(0,l.Z)({style:e},t))},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(b,(0,l.Z)({style:e},t))},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(g,(0,l.Z)({style:e},t))},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(d,(0,l.Z)({style:e},t))},T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(m,(0,l.Z)({style:e},t))},B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(p,(0,l.Z)({style:e},t))},x={"round-thin":{icon:v(),iconFunc:v,title:(0,k.__)("Round Thin",h.i18n),value:"round-thin"},round:{icon:_(),iconFunc:_,title:(0,k.__)("Round",h.i18n),value:"round"},"round-thick":{icon:y(),iconFunc:y,title:(0,k.__)("Round Thick",h.i18n),value:"round-thick"},"round-fat":{icon:f(),iconFunc:f,title:(0,k.__)("Round Fat",h.i18n),value:"round-fat"},"square-thin":{icon:B(),iconFunc:B,title:(0,k.__)("Square Thin",h.i18n),value:"square-thin"},square:{icon:C(),iconFunc:C,title:(0,k.__)("Square",h.i18n),value:"square"},"square-simple":{icon:T(),iconFunc:T,title:(0,k.__)("Square Simple",h.i18n),value:"square-simple"},"square-modern":{icon:w(),iconFunc:w,title:(0,k.__)("Square Modern",h.i18n),value:"square-modern"},"square-fat":{icon:A(),iconFunc:A,title:(0,k.__)("Square Fat",h.i18n),value:"square-fat"}};var S=a(7545),E=a(78),N=a(4184),R=a.n(N);const P=[{attributes:{align:{type:"string"},text:{source:"html",selector:"p",default:(0,S.descriptionPlaceholder)("long")},color:{type:"string",default:""},quoteColor:{type:"string",default:""},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},contentWidth:{type:"boolean",default:!1},quotationMark:{type:"string",default:"round-thin"},quotationSize:{type:"number",default:70},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{color:a,text:n,quoteColor:l,backgroundColorType:r="",backgroundColor:s,backgroundColor2:c,backgroundColorDirection:u=0,backgroundType:g="",backgroundImageURL:d,backgroundOpacity:b=5,fixedBackground:m,quotationMark:p="round-thin",quotationSize:h=70,align:k,contentWidth:_,design:v="plain",borderRadius:y=12,shadow:f=3}=e.attributes,C=["basic","top-icon"].includes(v),A=R()([t,"ugb-blockquote","ugb-blockquote--v2","ugb--background-opacity-"+1*Math.round(b/1),`ugb-blockquote--design-${v}`],(0,o.applyFilters)("stackable.blockquote.mainclasses_1_17_3",{"ugb--has-background":C&&(s||d),"ugb--has-background-image":C&&d,[`ugb--shadow-${f}`]:C&&3!==f,"ugb-content-width":"full"===k&&_,"ugb-blockquote--small-quote":h<60,"ugb--has-background-gradient":"gradient"===r,"ugb--has-background-video":"video"===g},v,e)),w=C?{backgroundColor:s||void 0,backgroundImage:d?`url(${d})`:void 0,backgroundAttachment:m?"fixed":void 0,"--ugb-background-color":d||"gradient"===r?s:void 0,"--ugb-background-color2":"gradient"===r&&c?c:void 0,"--ugb-background-direction":"gradient"===r?`${u}deg`:void 0,borderRadius:12!==y?y:void 0}:{},T=(0,o.applyFilters)("stackable.blockquote.styles_1_17_3",{main:{"--quote-color":l||void 0,...w},text:{color:a}},v,e);return(0,i.createElement)("blockquote",{className:A,style:T.main},C&&"video"===g&&(0,i.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:d}),(0,o.applyFilters)("stackable.blockquote.save.output.before_1_17_3",null,v,e),(0,i.createElement)("div",{className:"ugb-content-wrapper"},x[p].iconFunc({fill:l,width:h,height:h}),(0,o.applyFilters)("stackable.blockquote.save.output_1_17_3",(0,i.createElement)(E.RichText.Content,{tagName:"p",className:"ugb-blockquote__text",style:T.text,value:n}),v,e)),(0,o.applyFilters)("stackable.blockquote.save.output.after_1_17_3",null,v,e))},migrate:e=>{const t=t=>{let a=(t||"").replace(/\.ugb-content-wrapper/g,".ugb-blockquote__item").replace(/svg(\s*\{)/g,".ugb-blockquote__quote$1");return"basic"===e.design&&(a=a.replace(/\.ugb-blockquote(\s*\{)/g,".ugb-blockquote__item$1")),a};return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),showQuote:!0,quoteIcon:e.quotationMark,quoteSize:e.quotationSize,textColor:e.color?e.color:e.backgroundColor?"#000000":void 0,containerBackgroundColorType:e.backgroundColorType,containerBackgroundColor:e.backgroundColor,containerBackgroundColor2:e.backgroundColor2,containerBackgroundGradientDirection:e.backgroundColorDirection,containerBackgroundMediaId:e.backgroundImageID,containerBackgroundMediaUrl:e.backgroundImageURL,containerBackgroundTintStrength:e.backgroundOpacity,containerFixedBackground:e.fixedBackground,design:"basic"===e.design&&"full"===e.align?"plain":e.design,showBlockBackground:"basic"===e.design&&"full"===e.align||void 0,blockInnerWidth:"full"!==e.align?void 0:"basic"===e.design&&!0===e.contentWidth?"center":"full",blockBackgroundBackgroundColor:"basic"===e.design&&"full"===e.align?e.backgroundColor:void 0,marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}},{attributes:{align:{type:"string"},text:{source:"html",selector:"p",default:(0,S.descriptionPlaceholder)("long")},color:{type:"string",default:""},quoteColor:{type:"string",default:""},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},contentWidth:{type:"boolean",default:!1},quotationMark:{type:"string",default:"round-thin"},quotationSize:{type:"number",default:70},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3}},save:e=>{const{className:t}=e,{color:a,text:n,quoteColor:l,backgroundColorType:r="",backgroundColor:s,backgroundColor2:c,backgroundColorDirection:u=0,backgroundType:g="",backgroundImageURL:d,backgroundOpacity:b=5,fixedBackground:m,quotationMark:p="round-thin",quotationSize:h=70,align:k,contentWidth:_,design:v="plain",borderRadius:y=12,shadow:f=3}=e.attributes,C=["basic","top-icon"].includes(v),A=R()([t,"ugb-blockquote","ugb-blockquote--v2","ugb--background-opacity-"+1*Math.round(b/1),`ugb-blockquote--design-${v}`],(0,o.applyFilters)("stackable.blockquote.mainclasses",{"ugb--has-background":C&&(s||d),"ugb--has-background-image":C&&d,[`ugb--shadow-${f}`]:C&&3!==f,"ugb-content-width":"full"===k&&_,"ugb-blockquote--small-quote":h<60,"ugb--has-background-gradient":"gradient"===r,"ugb--has-background-video":"video"===g},v,e)),w=C?{backgroundColor:s||void 0,backgroundImage:d?`url(${d})`:void 0,backgroundAttachment:m?"fixed":void 0,"--ugb-background-color":d||"gradient"===r?s:void 0,"--ugb-background-color2":"gradient"===r&&c?c:void 0,"--ugb-background-direction":"gradient"===r?`${u}deg`:void 0,borderRadius:12!==y?y:void 0}:{},T=(0,o.applyFilters)("stackable.blockquote.styles_1_17_3",{main:{"--quote-color":l||void 0,...w},text:{color:a}},v,e);return(0,i.createElement)("blockquote",{className:A,style:T.main},C&&"video"===g&&(0,i.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:d}),(0,o.applyFilters)("stackable.blockquote.save.output.before",null,v,e),(0,i.createElement)("div",{className:"ugb-content-wrapper"},x[p].iconFunc({fill:l,width:h,height:h}),(0,o.applyFilters)("stackable.blockquote.save.text",(0,i.createElement)(E.RichText.Content,{tagName:"p",className:"ugb-blockquote__text",style:T.text,value:n}),v,e)),(0,o.applyFilters)("stackable.blockquote.save.output.after",null,v,e))}}],I=e=>{const{design:t="basic"}=e.attributes;return(0,o.applyFilters)("stackable.blockquote.show",{containerBackground:"basic"===t,borderRadius:"basic"===t,shadow:"basic"===t,border:"basic"===t},e)};var $=a(8423),U=a(4863),F=a.n(U);const L=e=>{const t=(0,S.__getValue)(e.attributes),a=I(e),n=[];n.push({...a.containerBackground?(0,$._H)("container%s","ugb-blockquote__item",e.attributes,{importantBackgroundColor:!0}):{}}),a.containerBackground&&n.push({".ugb-blockquote__item":{borderRadius:a.borderRadius?t("borderRadius","%spx !important"):void 0}}),a.border&&n.push({...(0,S.createBorderStyleSet)("column%s",".ugb-blockquote__item",e.attributes)});const{showQuote:o=!0}=e.attributes;o&&(n.push({".ugb-blockquote__quote":{fill:(0,S.appendImportant)(t("quoteColor")),opacity:t("quoteOpacity")}}),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sSize","width","%spx",e.attributes,{important:!0})),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sSize","height","%spx",e.attributes,{important:!0})),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sX","left","%spx",e.attributes,{important:!0})),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sY","top","%spx",e.attributes,{important:!0})));const{columnPaddingUnit:i="px",tabletColumnPaddingUnit:l="px",mobileColumnPaddingUnit:r="px"}=e.attributes;n.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,S.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,S.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,S.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-blockquote__item":(0,S.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-blockquote__item":(0,S.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-blockquote__item":(0,S.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}}});const{containerBackgroundColor:s="",textColor:c=""}=e.attributes;return n.push({".ugb-blockquote__text":{...(0,S.createTypographyStyles)("text%s","desktop",e.attributes,{important:!0}),color:(0,S.whiteIfDark)(c,a.containerBackground&&s)},tablet:{".ugb-blockquote__text":{...(0,S.createTypographyStyles)("text%s","tablet",e.attributes,{important:!0})}},mobile:{".ugb-blockquote__text":{...(0,S.createTypographyStyles)("text%s","mobile",e.attributes,{important:!0})}}}),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__item","text%sAlign","textAlign","%s",e.attributes,{important:!0})),F().all(n)};var M=a(7200),H=a(9858),D=a(1414),O=a(3749);(0,o.addFilter)("stackable.blockquote.edit.layouts","default",(e=>[...e,{label:(0,k.__)("Basic",h.i18n),value:"basic",image:"dist/images/block-blockquote-basic.4340c9a.png"},{label:(0,k.__)("Plain",h.i18n),value:"plain",image:"dist/images/block-blockquote-plain.7ee3a2a.png"},{label:(0,k.__)("Centered Quote",h.i18n),value:"centered-quote",image:"dist/images/block-blockquote-centered-quote.d743590.png",premium:!0},{label:(0,k.__)("Huge",h.i18n),value:"huge",image:"dist/images/block-blockquote-huge.ce498b6.png",premium:!0},{label:(0,k.__)("Highlight",h.i18n),value:"highlight",image:"dist/images/block-blockquote-highlight.2e6ac48.png",premium:!0}])),(0,o.addFilter)("stackable.blockquote.edit.inspector.layout.before","stackable/blockquote",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(M.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.blockquote.edit.layouts",[]),onChange:e=>a({design:e})},h.showProNotice&&(0,i.createElement)(M.ProControlButton,null)))})),(0,o.addFilter)("stackable.blockquote.edit.inspector.style.before","stackable/blockquote",((e,t)=>{const{setAttributes:a}=t,{borderRadius:n="",shadow:o="",showQuote:l=!0,quoteIcon:r="round-thin",quoteColor:s="",quoteOpacity:c="",textColor:u=""}=t.attributes,g=I(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("General",h.i18n),initialOpen:!0},(0,i.createElement)(H.QA,{setAttributes:a,blockAttributes:t.attributes})),g.containerBackground&&(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("Container",h.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(M.ButtonIconPopoverControl,{label:(0,k.__)("Background",h.i18n),popoverLabel:(0,k.__)("Background",h.i18n),onReset:()=>{a({containerBackgroundColorType:"",containerBackgroundColor:"",containerBackgroundColor2:"",containerBackgroundColorOpacity:"",containerBackgroundMediaID:"",containerBackgroundMediaUrl:"",containerBackgroundTintStrength:"",containerFixedBackground:""})},allowReset:t.attributes.containerBackgroundColor||t.attributes.containerBackgroundMediaUrl,hasColorPreview:t.attributes.containerBackgroundColor,hasImagePreview:t.attributes.containerBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.containerBackgroundColorType?[t.attributes.containerBackgroundColor,t.attributes.containerBackgroundColor2]:t.attributes.containerBackgroundColor,imageUrlPreview:t.attributes.containerBackgroundMediaUrl},(0,i.createElement)(M.BackgroundControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes})),g.border&&(0,i.createElement)(M.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),g.borderRadius&&(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Border Radius",h.i18n),value:n,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),g.shadow&&(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Shadow / Outline",h.i18n),value:o,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(M.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(M.ColumnPaddingControl,{label:(0,k.__)("Paddings",h.i18n),setAttributes:a,attributes:t.attributes})),(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("Quotation Mark",h.i18n),id:"quotation",checked:l,onChange:e=>a({showQuote:e}),toggleOnSetAttributes:["quoteIcon","quoteColor",...(0,S.createResponsiveAttributeNames)("quote%sSize"),...(0,S.createResponsiveAttributeNames)("quote%sX"),...(0,S.createResponsiveAttributeNames)("quote%sY")],toggleAttributeName:"showQuote"},(0,i.createElement)(M.AdvancedToolbarControl,{label:(0,k.__)("Icon",h.i18n),multiline:!0,className:"ugb-blockquote__inspector__icon",controls:Object.values(x),value:r,onChange:e=>a({quoteIcon:e})}),(0,i.createElement)(M.ColorPaletteControl,{value:s,onChange:e=>a({quoteColor:e}),label:(0,k.__)("Color",h.i18n)}),(0,i.createElement)(H.n9,{attrNameTemplate:"quote%sSize",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Size",h.i18n),min:0,max:400,allowReset:!0,placeholder:"70"})),(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Opacity",h.i18n),value:c,onChange:e=>a({quoteOpacity:e}),min:0,max:1,step:.1,allowReset:!0,placeholder:"1"}),(0,i.createElement)(H.n9,{attrNameTemplate:"quote%sX",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Horizontal Position",h.i18n),min:-400,max:400,allowReset:!0,placeholder:"0"})),(0,i.createElement)(H.n9,{attrNameTemplate:"quote%sY",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Vertical Position",h.i18n),min:-400,max:400,allowReset:!0,placeholder:"0"}))),(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("Text",h.i18n),id:"text",hasToggle:!1},(0,i.createElement)(M.TypographyControlHelper,{attrNameTemplate:"text%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(M.ColorPaletteControl,{value:u,onChange:e=>a({textColor:e}),label:(0,k.__)("Text Color",h.i18n)}),(0,i.createElement)(H.n9,{attrNameTemplate:"Text%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AlignButtonsControl,{label:(0,k.__)("Align",h.i18n),className:"ugb--help-tip-alignment-description"}))))}));const z=(0,O.compose)(D.FI,D.XQ,D.O0,(0,D.Q9)(),(0,D.lX)(["Text%sAlign"]),(0,D.OB)(L,{editorMode:!0}),(0,D.UY)([[".ugb-blockquote__item","column-background"],[".ugb-blockquote__quote","quotation"],[".ugb-blockquote__text","text"]]))((e=>{const{className:t,setAttributes:a}=e,{blockTag:n="",design:l="plain",shadow:r="",text:s="",showQuote:c=!0,quoteIcon:u="round-thin",quoteSize:g=70}=e.attributes,d=I(e),b=R()([t,"ugb-blockquote--v3",`ugb-blockquote--design-${l}`],(0,o.applyFilters)("stackable.blockquote.mainclasses",{"ugb-blockquote--small-quote":g<60},l,e)),m=R()(["ugb-blockquote__item"],(0,o.applyFilters)("stackable.blockquote.itemclasses",{[`ugb--shadow-${r}`]:d.containerBackground&&""!==r},e));return(0,i.createElement)(M.BlockContainer.Edit,{blockTag:n||"blockquote",className:b,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(H.Gc,{className:m,backgroundAttrName:"container%s",blockProps:e,showBackground:d.containerBackground},c&&x[u||"round-thin"].iconFunc({},{className:"ugb-blockquote__quote",width:g,height:g}),(0,i.createElement)("div",{className:"ugb-blockquote__content"},(0,i.createElement)(E.RichText,{className:"ugb-blockquote__text",value:s,onChange:e=>a({text:e}),placeholder:(0,S.descriptionPlaceholder)("long"),keepPlaceholderOnFocus:!0}))))})})),W=(0,O.compose)(D.FI,(0,D.OB)(L))((e=>{const{className:t}=e,{blockTag:a="",design:n="plain",shadow:l="",text:r="",showQuote:s=!0,quoteIcon:c="round-thin",quoteSize:u=70}=e.attributes,g=I(e),d=R()([t,"ugb-blockquote--v3",`ugb-blockquote--design-${n}`],(0,o.applyFilters)("stackable.blockquote.mainclasses",{"ugb-blockquote--small-quote":u<60},n,e)),b=R()(["ugb-blockquote__item"],(0,o.applyFilters)("stackable.blockquote.itemclasses",{[`ugb--shadow-${l}`]:g.containerBackground&&""!==l},e));return(0,i.createElement)(M.BlockContainer.Save,{blockTag:a||"blockquote",className:d,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(H.Gc,{className:b,backgroundAttrName:"container%s",blockProps:e,showBackground:g.containerBackground},s&&x[c||"round-thin"].iconFunc({},{className:"ugb-blockquote__quote",width:u,height:u}),(0,i.createElement)("div",{className:"ugb-blockquote__content"},(0,i.createElement)(E.RichText.Content,{tagName:"p",className:"ugb-blockquote__text",value:r}))))})})),q={design:{type:"string",default:"plain"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,$.yA)("container%s"),...(0,S.createBorderAttributes)("column%s"),showQuote:{type:"boolean",default:!0},quoteIcon:{type:"string",default:"round-thin"},quoteOpacity:{type:"number",default:""},quoteColor:{type:"string",default:""},quoteSize:{type:"number",default:70},...(0,S.createAllCombinationAttributes)("quote%s%s",{type:"number",default:""},["","Tablet","Mobile"],["X","Y"]),text:{source:"html",selector:".ugb-blockquote__text",default:""},...(0,S.createTypographyAttributes)("text%s"),textColor:{type:"string",default:""},...(0,S.createResponsiveAttributes)("text%sAlign",{type:"string",default:""})},V=JSON.parse('{"name":"ugb/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var G=a(9467);const{name:j,...Z}=V,X={...Z,title:Z.title+" (v2)",icon:G.BlockquoteIcon,supports:{align:["center","wide","full"],inserter:!h.v2disabledBlocks.includes(j),anchor:!0},attributes:q,example:{attributes:{design:"basic",containerBackgroundCustomSizeUnit:"%",containerTabletBackgroundCustomSizeUnit:"%",containerMobileBackgroundCustomSizeUnit:"%",showQuote:!0,quoteIcon:"round-thin",quoteSize:70,text:"Description for this block. Use this space for describing your block. Any text will do. Description for this block.",textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",uniqueClass:"ugb-ceaa0fe",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},deprecated:P,edit:z,save:W,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{columnGap:!1,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,o.applyFilters)("stackable.blockquote.custom-css.default","")}}}},4071:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>N,settings:()=>P});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.blog-posts.design.no-text-attributes","stackable/blog-posts",(e=>(0,n.omit)(e,["text"]))),(0,o.addFilter)("stackable.blog-posts.design.filtered-block-attributes","stackable/button",(e=>({...(0,n.omit)(e,["numberOfItems","order","orderBy","postType","taxonomyType","taxonomy","taxonomyFilterType","postOffset","postExclude","postInclude"])})));var i=a(2610),l=a(7545),r=a(4863),s=a.n(r),c=a(910);const u=e=>{const{design:t="basic",postType:a="post",showImage:n=!0,showTitle:i=!0,showCategory:l=!0,showExcerpt:r=!0,showMeta:s=!0,showReadmore:u=!0,showLoadMoreButton:g=!1,showPagination:d=!1}=e.attributes;return(0,o.applyFilters)("stackable.blog-posts.show",{columnBackground:!["basic","list"].includes(t),showBackgroundInItem:"vertical-card2"===t,showBackgroundInContent:["vertical-card","horizontal-card","image-card"].includes(t),borderRadius:!0,border:!["basic","list"].includes(t),shadow:!0,imageShadow:["basic","list"].includes(t),postType:c.isPro,imageHeight:"portfolio"!==t&&"portfolio2"!==t,imageWidth:"horizontal-card"===t||"list"===t,showCategory:"post"===a,imageAsBackground:["portfolio","portfolio2","image-card"].includes(t),imageOutsideContainer:["list","vertical-card","horizontal-card","image-card"].includes(t),imageSpacing:n&&["basic","list","vertical-card2"].includes(t),categorySpacing:l,titleSpacing:i,excerptSpacing:r,metaSpacing:s,readmoreSpacing:u,loadMoreSpacing:g,paginationSpacing:d,contentOrderStyles:"image-card"!==t},e)},g=e=>{const t=(0,l.__getValue)(e.attributes),{columnBackgroundColor:a="",design:n="basic",showReadmore:i=!0}=e.attributes,r=u(e),c=[];r.columnBackground||c.push({".ugb-blog-posts__featured-image":{borderRadius:(0,l.appendImportant)(t("borderRadius","%spx"))}});const{contentOrder:g=""}=e.attributes;g&&r.contentOrderStyles&&g.split(",").forEach(((e,t)=>{const a=0===t?1:3===t?10:t+3;c.push({[`.ugb-blog-posts__${e}`]:{order:(0,l.appendImportant)(a)}}),i&&"excerpt"===e&&c.push({".ugb-blog-posts__readmore":{order:(0,l.appendImportant)(a)}})}));const{columnPaddingUnit:d="px",tabletColumnPaddingUnit:b="px",mobileColumnPaddingUnit:m="px"}=e.attributes,p=(0,o.applyFilters)("stackable.blog-posts.spacing-paddings.selector","> .ugb-inner-block > .ugb-block-content > *",e),h=(0,o.applyFilters)("stackable.blog-posts.spacing-paddings.selector","> .ugb-inner-block > .ugb-block-content > .ugb-blog-posts__item",e);c.push({saveOnly:{desktopTablet:{[p]:(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${d}`),paddingBottom:t("columnPaddingBottom",`%s${d}`),paddingRight:t("columnPaddingRight",`%s${d}`),paddingLeft:t("columnPaddingLeft",`%s${d}`)})},tabletOnly:{[p]:(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${b}`),paddingRight:t("tabletColumnPaddingRight",`%s${b}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${b}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${b}`)})},mobile:{[p]:(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${m}`),paddingRight:t("mobileColumnPaddingRight",`%s${m}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${m}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${m}`)})}},editor:{desktopTablet:{[h]:(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${d}`),paddingBottom:t("columnPaddingBottom",`%s${d}`),paddingRight:t("columnPaddingRight",`%s${d}`),paddingLeft:t("columnPaddingLeft",`%s${d}`)})},tabletOnly:{[h]:(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${b}`),paddingRight:t("tabletColumnPaddingRight",`%s${b}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${b}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${b}`)})},mobile:{[h]:(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${m}`),paddingRight:t("mobileColumnPaddingRight",`%s${m}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${m}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${m}`)})}}});const{showImage:k=!0}=e.attributes;k&&r.imageHeight&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__featured-image img","image%sHeight","height","%spx",e.attributes,{important:!0})),k&&r.imageWidth&&"list"===n&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__item","image%sWidth","gridTemplateColumns","%spx minmax(0, 1fr)",e.attributes,{important:!0}));const{categoryHighlighted:_=!1,categoryColor:v="",showCategory:y=!0}=e.attributes;y&&(_?c.push({".ugb-blog-posts__category a":{backgroundColor:(0,l.appendImportant)(t("categoryColor")),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)("",t("categoryColor")))},".ugb-blog-posts__category a:hover":{opacity:t("categoryHoverColor")?void 0:.8,backgroundColor:(0,l.appendImportant)(t("categoryHoverColor")),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)("",t("categoryHoverColor")))}}):c.push({".ugb-blog-posts__category a":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(v,r.columnBackground&&a))},".ugb-blog-posts__category a:hover":{opacity:v&&!t("categoryHoverColor")?.8:void 0,color:(0,l.appendImportant)(t("categoryHoverColor"))}}),c.push({".ugb-blog-posts__category":{...(0,l.createTypographyStyles)("category%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("categoryAlign","%s !important")},tablet:{".ugb-blog-posts__category":{...(0,l.createTypographyStyles)("category%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("categoryTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__category":{...(0,l.createTypographyStyles)("category%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("categoryMobileAlign","%s !important")}}}));const{titleColor:f="",showTitle:C=!0}=e.attributes;C&&c.push({".ugb-blog-posts__title a":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(f,r.columnBackground&&a))},".ugb-blog-posts__title a:hover":{opacity:f&&!t("titleHoverColor")?.8:void 0,color:(0,l.appendImportant)(t("titleHoverColor"))},".ugb-blog-posts__title":{...(0,l.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-blog-posts__title":{...(0,l.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__title":{...(0,l.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{excerptColor:A="",showExcerpt:w=!0}=e.attributes;w&&c.push({".ugb-blog-posts__excerpt, .ugb-blog-posts__excerpt p":{...(0,l.createTypographyStyles)("excerpt%s","desktop",e.attributes,{importantSize:!0}),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(A,r.columnBackground&&a))},".ugb-blog-posts__excerpt":{textAlign:t("excerptAlign","%s !important")},tablet:{".ugb-blog-posts__excerpt, .ugb-blog-posts__excerpt p":{...(0,l.createTypographyStyles)("excerpt%s","tablet",e.attributes,{importantSize:!0})},".ugb-blog-posts__excerpt":{textAlign:t("excerptTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__excerpt, .ugb-blog-posts__excerpt p":{...(0,l.createTypographyStyles)("excerpt%s","mobile",e.attributes,{importantSize:!0})},".ugb-blog-posts__excerpt":{textAlign:t("excerptMobileAlign","%s !important")}}});const{metaColor:T="",showMeta:B=!0,showAuthor:x=!0,showDate:S=!0,showComments:E=!0}=e.attributes;B&&(x||S||E)&&c.push({".ugb-blog-posts__meta":{...(0,l.createTypographyStyles)("meta%s","desktop",e.attributes,{importantSize:!0}),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(T,r.columnBackground&&a)),textAlign:t("metaAlign","%s !important")},tablet:{".ugb-blog-posts__meta":{...(0,l.createTypographyStyles)("meta%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("metaTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__meta":{...(0,l.createTypographyStyles)("meta%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("metaMobileAlign","%s !important")}}});const{readmoreColor:N=""}=e.attributes;return i&&c.push({".ugb-blog-posts__readmore a":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(N,r.columnBackground&&a))},".ugb-blog-posts__readmore a:hover":{opacity:N&&!t("readmoreHoverColor")?.8:void 0,color:(0,l.appendImportant)(t("readmoreHoverColor"))},".ugb-blog-posts__readmore":{...(0,l.createTypographyStyles)("readmore%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("readmoreAlign","%s !important")},tablet:{".ugb-blog-posts__readmore":{...(0,l.createTypographyStyles)("readmore%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("readmoreTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__readmore":{...(0,l.createTypographyStyles)("readmore%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("readmoreMobileAlign","%s !important")}}}),r.imageSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__featured-image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.categorySpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__category","category%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.titleSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.excerptSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__excerpt","excerpt%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.metaSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__meta","meta%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.readmoreSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__readmore","readmore%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),s().all(c)};var d=a(7200),b=a(9858),m=a(1414),p=a(4184),h=a.n(p);const k=wp.date;var _=a(7537),v=a(8003);const y=wp.htmlEntities;var f=a(3284),C=a(3749);const A={dot:"·",space:" ",comma:",",dash:"—",pipe:"|"};(0,o.addFilter)("stackable.blog-posts.edit.layouts","default",(e=>[...e,{label:(0,v.__)("Basic",c.i18n),value:"basic",image:"dist/images/block-blog-posts-basic.e662046.png"},{label:(0,v.__)("List",c.i18n),value:"list",image:"dist/images/block-blog-posts-list.b2a5696.png"},{label:(0,v.__)("Portfolio",c.i18n),value:"portfolio",image:"dist/images/block-blog-posts-portfolio.8a3cb30.png",premium:!0},{label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",c.i18n),(0,v.__)("Portfolio",c.i18n),2),value:"portfolio2",image:"dist/images/block-blog-posts-portfolio2.e58a6fb.png",premium:!0},{label:(0,v.__)("Vertical Card",c.i18n),value:"vertical-card",image:"dist/images/block-blog-posts-vertical-card.406b764.png",premium:!0},{label:(0,v.__)("Horizontal Card",c.i18n),value:"horizontal-card",image:"dist/images/block-blog-posts-horizontal-card.c6e09ee.png",premium:!0},{label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",c.i18n),(0,v.__)("Vertical Card",c.i18n),2),value:"vertical-card2",image:"dist/images/block-blog-posts-vertical-card2.37ccf64.png",premium:!0},{label:(0,v.__)("Image Card",c.i18n),value:"image-card",image:"dist/images/block-blog-posts-image-card.4920b4e.png",premium:!0}])),(0,o.addFilter)("stackable.blog-posts.edit.inspector.layout.before","stackable/blog-posts",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(d.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.blog-posts.edit.layouts",[]),onChange:e=>a({design:e})},c.showProNotice&&(0,i.createElement)(d.ProControlButton,null)))})),(0,o.addFilter)("stackable.blog-posts.edit.inspector.style.before","stackable/blog-posts",((e,t)=>{const{setAttributes:a}=t,{columns:n=2,borderRadius:r="",shadow:s="",contentOrder:g="",numberOfItems:m=6,showImage:p=!0,showTitle:h=!0,showCategory:k=!0,showExcerpt:y=!0,showMeta:f=!0,showReadmore:C=!1,titleTag:A="",titleColor:w="",titleHoverColor:T="",orderBy:B="date",order:x="desc",postType:S="post",taxonomyType:E="category",taxonomy:N="",taxonomyFilterType:R="__in",imageSize:P="large",categoryHighlighted:I=!1,categoryColor:$="",categoryHoverColor:U="",excerptColor:F="",excerptLength:L=55,showAuthor:M=!0,showDate:H=!0,showComments:D=!0,metaColor:O="",metaSeparator:z="",readmoreColor:W="",readmoreHoverColor:q="",readmoreText:V=""}=t.attributes,G=u(t),j=(0,v.__)("Category",c.i18n),Z=(0,v.__)("Title",c.i18n),X=(0,v.__)("Meta",c.i18n),Y=(0,v.__)("Excerpt",c.i18n);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("General",c.i18n),initialOpen:!0},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Columns",c.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:4,className:"ugb--help-tip-general-columns",default:2}),!G.columnBackground&&G.borderRadius&&(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Border Radius",c.i18n),value:r,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),!G.columnBackground&&G.shadow&&(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Shadow / Outline",c.i18n),value:s,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"}),(0,i.createElement)(d.AdvancedSelectControl,{label:(0,v.__)("Content Order",c.i18n),options:[{label:(0,v.__)("Default",c.i18n),value:""},{label:`${j} → ${Z} → ${X} → ${Y}`,value:"category,title,meta,excerpt"},{label:`${j} → ${Z} → ${Y} → ${X}`,value:"category,title,excerpt,meta"},{label:`${Z} → ${X} → ${Y} → ${j}`,value:"title,meta,excerpt,category"},{label:`${Z} → ${j} → ${Y} → ${X}`,value:"title,category,excerpt,meta"},{label:`${X} → ${Z} → ${Y} → ${j}`,value:"meta,title,excerpt,category"},{label:`${X} → ${Z} → ${j} → ${Y}`,value:"meta,title,category,excerpt"}],value:g,onChange:e=>a({contentOrder:e}),className:"ugb--help-tip-posts-content-order"}),(0,i.createElement)(b.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Posts Settings",c.i18n),initialOpen:!1},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Number of items",c.i18n),min:1,max:100,allowReset:!0,value:m||6,onChange:e=>a({numberOfItems:e}),defaultValue:6,placeholder:"6"}),(0,i.createElement)(d.AdvancedSelectControl,{label:(0,v.__)("Order by",c.i18n),options:[{label:(0,v.__)("Newest to Oldest",c.i18n),value:"date,desc"},{label:(0,v.__)("Oldest to Newest",c.i18n),value:"date,asc"},{label:(0,v.__)("A → Z",c.i18n),value:"title,asc"},{label:(0,v.__)("Z → A",c.i18n),value:"title,desc"},{label:(0,v.__)("Last Modified to Oldest",c.i18n),value:"modified,desc"},{label:(0,v.__)("Oldest Modified to Last",c.i18n),value:"modified,asc"},{label:(0,v.__)("Menu Order",c.i18n),value:"menu_order,asc"},{label:(0,v.__)("Random",c.i18n),value:"rand,desc"}],value:`${B},${x}`,onChange:e=>a({orderBy:e.split(",")[0],order:e.split(",")[1]}),defaultValue:"date,desc"}),(0,i.createElement)(d.TaxonomyControl,{postType:S,onChangePostType:e=>a({postType:e}),taxonomyType:E,onChangeTaxonomyType:e=>a({taxonomyType:e}),taxonomy:N,onChangeTaxonomy:e=>a({taxonomy:e}),taxonomyFilterType:R,onChangeTaxonomyFilterType:e=>a({taxonomyFilterType:e})}),(0,o.applyFilters)("stackable.blog-posts.edit.inspector.style.posts.after",null,t),c.showProNotice&&(0,i.createElement)(d.ProControlButton,{type:"postsBlock"})),G.columnBackground&&(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Container",c.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(d.ButtonIconPopoverControl,{label:(0,v.__)("Background",c.i18n),popoverLabel:(0,v.__)("Background",c.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(G.showBackgroundInItem||G.showBackgroundInContent)&&(0,i.createElement)(d.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes,backgroundMediaAllowVideo:!1}),!(G.showBackgroundInItem||G.showBackgroundInContent)&&G.columnBackground&&(0,i.createElement)(d.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes,onChangeBackgroundMedia:!1,onChangeBackgroundColorOpacity:!1,onChangeBackgroundGradientBlendMode:!1})),G.border&&(0,i.createElement)(d.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),G.borderRadius&&(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Border Radius",c.i18n),value:r,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),G.shadow&&(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Shadow / Outline",c.i18n),value:s,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(d.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(d.ColumnPaddingControl,{label:(0,v.__)("Paddings",c.i18n),setAttributes:a,attributes:t.attributes}),G.imageSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"image%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Image",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-image"})),G.categorySpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"category%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Category",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-description"})),G.titleSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Title",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-title"})),G.excerptSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"excerpt%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Excerpt",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-description"})),G.metaSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"meta%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Meta",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-description"})),G.readmoreSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"readmore%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Read More",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-button"})),G.loadMoreSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"loadMoreButton%sTopMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Load More",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-button"})),G.paginationSpacing&&(0,i.createElement)(b.n9,{attrNameTemplate:"pagination%sTopMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Pagination",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-alignment-button"}))),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Featured Image",c.i18n),id:"image",checked:p,onChange:e=>a({showImage:e}),toggleOnSetAttributes:["imageSize",...(0,l.createResponsiveAttributeNames)("Image%sWidth"),...(0,l.createResponsiveAttributeNames)("Image%sHeight")],toggleAttributeName:"showTitle"},(0,i.createElement)(d.ImageSizeControl,{label:(0,v.__)("Image Size",c.i18n),value:P,onChange:e=>a({imageSize:e}),className:"ugb--help-tip-image-size"}),G.imageWidth&&(0,i.createElement)(b.n9,{attrNameTemplate:"image%sWidth",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Image Width",c.i18n),min:0,max:600,placeholder:"100",allowReset:!0,className:"ugb--help-tip-image-width-crop"})),G.imageHeight&&(0,i.createElement)(b.n9,{attrNameTemplate:"image%sHeight",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Image Height",c.i18n),min:0,max:1e3,placeholder:"500",allowReset:!0,className:"ugb--help-tip-image-height-crop"}))),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Category",c.i18n),id:"category",checked:k,onChange:e=>a({showCategory:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("category%s"),"categoryHighlighted","categoryColor","categoryHoverColor",...(0,l.createResponsiveAttributeNames)("Category%sAlign")],toggleAttributeName:"showCategory"},(0,i.createElement)(d.TypographyControlHelper,{attrNameTemplate:"category%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"11"}),(0,i.createElement)(d.AdvancedToggleControl,{label:(0,v.__)("Highlighted",c.i18n),checked:I,onChange:e=>a({categoryHighlighted:e})}),(0,i.createElement)(d.ColorPaletteControl,{value:$,onChange:e=>a({categoryColor:e}),label:(0,v.__)("Color",c.i18n)}),(0,i.createElement)(d.ColorPaletteControl,{value:U,onChange:e=>a({categoryHoverColor:e}),label:(0,v.__)("Hover Color",c.i18n)}),(0,i.createElement)(b.n9,{attrNameTemplate:"Category%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AlignButtonsControl,{label:(0,v.__)("Align",c.i18n),className:"ugb--help-tip-alignment-description"}))),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Title",c.i18n),id:"title",checked:h,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("title%s"),"titleTag","titleColor","titleHoverColor",...(0,l.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,i.createElement)(d.HeadingButtonsControl,{value:A||"h3",defaultValue:"h3",onChange:e=>a({titleTag:e})}),(0,i.createElement)(d.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:A||"h3"}),(0,i.createElement)(d.ColorPaletteControl,{value:w,onChange:e=>a({titleColor:e}),label:(0,v.__)("Text Color",c.i18n)}),(0,i.createElement)(d.ColorPaletteControl,{value:T,onChange:e=>a({titleHoverColor:e}),label:(0,v.__)("Hover Color",c.i18n)}),(0,i.createElement)(b.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AlignButtonsControl,{label:(0,v.__)("Align",c.i18n),className:"ugb--help-tip-alignment-title"}))),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Excerpt",c.i18n),id:"excerpt",checked:y,onChange:e=>a({showExcerpt:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("excerpt%s"),"excerptColor","excerptLength",...(0,l.createResponsiveAttributeNames)("Excerpt%sAlign")],toggleAttributeName:"showExcerpt"},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Excerpt Length",c.i18n),value:L,onChange:e=>a({excerptLength:e}),min:1,max:100,allowReset:!0,placeholder:"55"}),(0,i.createElement)(d.TypographyControlHelper,{attrNameTemplate:"excerpt%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(d.ColorPaletteControl,{value:F,onChange:e=>a({excerptColor:e}),label:(0,v.__)("Text Color",c.i18n)}),(0,i.createElement)(b.n9,{attrNameTemplate:"Excerpt%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AlignButtonsControl,{label:(0,v.__)("Align",c.i18n),className:"ugb--help-tip-alignment-description"}))),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Meta",c.i18n),id:"meta",checked:f,onChange:e=>a({showMeta:e}),toggleOnSetAttributes:["showAuthor","showDate","showComments",...(0,l.createTypographyAttributeNames)("meta%s"),"metaColor","metaSeparator",...(0,l.createResponsiveAttributeNames)("Meta%sAlign")],toggleAttributeName:"showMeta"},(0,i.createElement)(d.AdvancedToggleControl,{label:(0,v.__)("Show Author",c.i18n),checked:M,onChange:e=>a({showAuthor:e}),defaultValue:!0}),(0,i.createElement)(d.AdvancedToggleControl,{label:(0,v.__)("Show Date",c.i18n),checked:H,onChange:e=>a({showDate:e}),defaultValue:!0}),(0,i.createElement)(d.AdvancedToggleControl,{label:(0,v.__)("Show Comments",c.i18n),checked:D,onChange:e=>a({showComments:e}),defaultValue:!0}),(0,i.createElement)(d.TypographyControlHelper,{attrNameTemplate:"meta%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"11"}),(0,i.createElement)(d.ColorPaletteControl,{value:O,onChange:e=>a({metaColor:e}),label:(0,v.__)("Text Color",c.i18n)}),(0,i.createElement)(d.AdvancedSelectControl,{label:(0,v.__)("Separator",c.i18n),options:[{label:(0,v.__)("Default (Dot)",c.i18n),value:""},{label:(0,v.__)("Space",c.i18n),value:"space"},{label:(0,v.__)("Comma",c.i18n),value:"comma"},{label:(0,v.__)("Dash",c.i18n),value:"dash"},{label:(0,v.__)("Pipe",c.i18n),value:"pipe"}],value:z,onChange:e=>a({metaSeparator:e}),className:"ugb--help-tip-posts-meta-separator"}),(0,i.createElement)(b.n9,{attrNameTemplate:"Meta%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AlignButtonsControl,{label:(0,v.__)("Align",c.i18n),className:"ugb--help-tip-alignment-description"}))),(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Read More Link",c.i18n),id:"readmore",checked:C,onChange:e=>a({showReadmore:e}),toggleOnSetAttributes:["readmoreText",...(0,l.createTypographyAttributeNames)("readmore%s"),"readmoreColor","readmoreHoverColor",...(0,l.createResponsiveAttributeNames)("Readmore%sAlign")],toggleAttributeName:"showReadmore"},(0,i.createElement)(_.TextControl,{label:(0,v.__)("Customize Read More Link",c.i18n),type:"text",value:V,onChange:e=>a({readmoreText:e})}),(0,i.createElement)(d.TypographyControlHelper,{attrNameTemplate:"readmore%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(d.ColorPaletteControl,{value:W,onChange:e=>a({readmoreColor:e}),label:(0,v.__)("Text Color",c.i18n)}),(0,i.createElement)(d.ColorPaletteControl,{value:q,onChange:e=>a({readmoreHoverColor:e}),label:(0,v.__)("Hover Color",c.i18n)}),(0,i.createElement)(b.n9,{attrNameTemplate:"Readmore%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(d.AlignButtonsControl,{label:(0,v.__)("Align",c.i18n),className:"ugb--help-tip-alignment-button"}))),c.showProNotice&&(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Pagination",c.i18n),id:"pagination",initialOpen:!1},(0,i.createElement)(d.ProControl,{title:(0,v.__)("Say Hello to More Options 👋",c.i18n),description:(0,v.__)("Get a load more button, pagination, more post options and Custom Post Types. This feature is only available on Stackable Premium",c.i18n)})),(0,o.applyFilters)("stackable.blog-posts.edit.inspector.style.pagination.after",null,t),c.showProNotice&&(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("Load More Button",c.i18n),id:"loadmore",initialOpen:!1},(0,i.createElement)(d.ProControl,{title:(0,v.__)("Say Hello to More Options 👋",c.i18n),description:(0,v.__)("Get a load more button, pagination, more post options and Custom Post Types. This feature is only available on Stackable Premium",c.i18n)})),(0,o.applyFilters)("stackable.blog-posts.edit.inspector.style.read-more.after",null,t))}));const w=(0,C.compose)(m.FI,m.XQ,m.O0,(0,m.Q9)(),(0,m.lX)(["Category%sAlign","Title%sAlign","Excerpt%sAlign","Meta%sAlign","Readmore%sAlign"]),(0,m.OB)(g,{editorMode:!0}),(0,m.UY)([[".ugb-blog-posts__featured-image","image"],[".ugb-blog-posts__featured-image img","image"],[".ugb-blog-posts__category","category"],[".ugb-blog-posts__title","title"],[".ugb-blog-posts__excerpt","excerpt"],[".ugb-blog-posts__meta","meta"],[".ugb-blog-posts__readmore","readmore"],[".ugb-blog-posts--design-image-card .ugb-blog-posts__header","image"],[".ugb-blog-posts__item","column-background"],[".ugb-blog-posts__load-more-button","loadmore"],[".ugb-blog-posts__pagination","pagination"]]))((e=>{const{setAttributes:t,className:a,attributes:l}=e,{columns:r=2,design:s="basic",shadow:g="",titleTag:m="",imageSize:p="large",categoryHighlighted:C=!1,excerptLength:w="",metaSeparator:T="",showImage:B=!0,showTitle:x=!0,showCategory:S=!0,showExcerpt:E=!0,showMeta:N=!0,showReadmore:R=!1,showAuthor:P=!0,showDate:I=!0,showComments:$=!0,showPagination:U=!1,readmoreText:F="",columnBackgroundColor:L="",columnBackgroundColor2:M="",showLoadMoreButton:H=!1,numberOfItems:D=6}=l,O=(0,i.useMemo)((()=>{const{orderBy:t="date",order:a="desc",taxonomyType:i="",taxonomy:l="",taxonomyFilterType:r="__in"}=e.attributes,s=(0,n.pickBy)({...(0,o.applyFilters)("stackable.blog-posts.postQuery",{order:a,orderby:t,per_page:D},e)},(e=>Array.isArray(e)?!(0,n.isEmpty)(e):!(0,n.isUndefined)(e)&&""!==e));return l&&i&&("category"===i?s["__in"===r?"categories":"categories_exclude"]=l:"post_tag"===i?s["__in"===r?"tags":"tags_exclude"]=l:s["__in"===r?i:`${i}_exclude`]=l),s}),[l.postType,l.orderBy,l.order,l.taxonomyType,l.taxonomy,l.taxonomyFilterType,l.postOffset,l.postExclude,l.postInclude,l.numberOfItems]),z=(0,f.useSelect)((e=>!e("core").hasFinishedResolution("getEntityRecords",["postType",l.postType,O])),[O]),W=(0,i.useMemo)((()=>{const e=(0,f.select)("core").getEntityRecords("postType",l.postType,O);return Array.isArray(e)?(0,n.uniqBy)(e,"id"):e}),[z,O]),{paginate:q,currentPage:V,pages:G,currentPagePosts:j=W}=(0,o.applyFilters)("stackable.blog-posts.pagination.hooks",W,D)||{},Z=u(e),X=Array.isArray(W)&&W.length,Y=m||"h3",Q=h()([a,"ugb-blog-posts--v2",`ugb-blog-posts--columns-${r}`,`ugb-blog-posts--design-${s}`],(0,o.applyFilters)("stackable.blog-posts.mainclasses",{"ugb-blog-posts--cat-highlighted":C,"ugb-blog-posts--has-bg-color":L||M},e)),J=h()(["ugb-blog-posts__item"],{[`ugb--shadow-${g||3}`]:!Z.imageShadow}),K=h()(["ugb-blog-posts__featured-image"],{[`ugb--shadow-${g||3}`]:Z.imageShadow});return z||!X?(0,i.createElement)(_.Placeholder,{icon:"admin-post",label:(0,v.__)("Posts",c.i18n)},!Array.isArray(j)||z?(0,i.createElement)(_.Spinner,null):(0,v.__)("No posts found.",c.i18n)):(0,i.createElement)(d.BlockContainer.Edit,{className:Q,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(j||[]).map(((t,a)=>{const n=(t.featured_image_urls_v2&&t.featured_image_urls_v2[p||"large"]||[])[0],l=n&&(0,i.createElement)("figure",{className:K},(0,i.createElement)("a",null,(0,i.createElement)("img",{src:n,alt:(0,v.__)("featured",c.i18n)}))),r=n&&(0,i.createElement)("div",{className:"ugb-blog-posts__featured-image-background",style:{backgroundImage:`url(${n})`}}),s=(0,i.createElement)(Y,{className:"ugb-blog-posts__title"},(0,i.createElement)("a",null,(0,y.decodeEntities)(t.title.rendered.trim())||(0,v.__)("(Untitled)",c.i18n))),u=t.category_list_v2&&(0,i.createElement)("div",{className:"ugb-blog-posts__category",dangerouslySetInnerHTML:{__html:t.category_list_v2.replace(/href=['"].*?['"]/g,"")}}),g=(0,i.createElement)("span",{className:"ugb-blog-posts__sep"},A[T||"dot"]),d=t.author_info_v2&&t.author_info_v2.name&&(0,i.createElement)("span",null,t.author_info_v2.name),m=t.date_gmt&&(0,i.createElement)("time",{dateTime:(0,k.format)("c",t.date_gmt),className:"ugb-blog-posts__date"},(0,k.dateI18n)("F d, Y",t.date_gmt)),h=(0,i.createElement)("span",null,t.comments_num_v2);let _=t.post_excerpt_stackable_v2.split(" ");_=_.length>(w||55)?_.slice(0,w||55).join(" ")+"...":t.post_excerpt_stackable;const f=_&&(0,i.createElement)("div",{className:"ugb-blog-posts__excerpt",dangerouslySetInnerHTML:{__html:_}}),C=(0,i.createElement)("p",{className:"ugb-blog-posts__readmore"},(0,i.createElement)("a",null,F||(0,v.__)("Continue reading",c.i18n))),U=(P||I||$)&&(0,i.createElement)("aside",{className:"entry-meta ugb-blog-posts__meta"},P&&d,P&&d&&(I&&m||$&&h)&&g,I&&m,(P&&d||I&&m)&&$&&h&&g,$&&h);return(0,o.applyFilters)("stackable.blog-posts.edit.output",null,e,{itemClasses:J,featuredImageBackground:r,featuredImage:l,category:u,title:s,author:d,separator:g,date:m,comments:h,excerpt:f,readmore:C,meta:U},a)||(0,i.createElement)(b.Gc,{tagName:"article",className:J,backgroundAttrName:"column%s",blockProps:e,showBackground:Z.showBackgroundInItem,showBackgroundVideo:!1,key:a},B&&Z.imageAsBackground&&r,B&&!Z.imageAsBackground&&Z.imageOutsideContainer&&l,(0,i.createElement)(b.Gc,{className:"ugb-blog-posts__content",backgroundAttrName:"column%s",blockProps:e,showBackground:Z.showBackgroundInContent,showBackgroundVideo:!1},B&&!Z.imageAsBackground&&!Z.imageOutsideContainer&&l,S&&u,x&&s,N&&U,E&&f,R&&C))})),H&&(0,i.createElement)(b.Hr,{containerClassName:"ugb-blog-posts__load-more-button",attrNameTemplate:"loadMoreButton%s",setAttributes:t,blockAttributes:l,isSelected:!1}),(0,o.applyFilters)("stackable.blog-posts.edit.output.pagination.after",null,{...e,showPagination:U,containerClassName:"ugb-blog-posts__pagination",attrNameTemplate:"pagination%s",blockAttributes:l,paginate:q,currentPage:V,pages:G}))})}));(0,o.addFilter)("stackable.click-open-inspector.listener-override","stackable/blog-posts",(e=>({...e,'[data-type="ugb/blog-posts"]':["img","p","h1","h2","h3","h4","h5","h6","span","time","aside","figure","div"]})));var T=a(7462);const B=(0,C.compose)(m.FI,(0,m.OB)(g))((e=>{const{className:t,attributes:a}=e,{uniqueClass:n="",columns:l=2,design:r="basic",categoryHighlighted:s=!1,columnBackgroundColor:c="",columnBackgroundColor2:u="",showLoadMoreButton:g=!1,loadMoreItems:m=""}=a,p=h()([t,"ugb-blog-posts--v2",`ugb-blog-posts--design-${r}`,`ugb-blog-posts--columns-${l}`],(0,o.applyFilters)("stackable.blog-posts.mainclasses",{"ugb-blog-posts--cat-highlighted":s,"ugb-blog-posts--has-bg-color":c||u},e)),k={};return g&&(k["data-load-items"]=m,k["data-id"]=n),(0,i.createElement)(d.BlockContainer.Save,(0,T.Z)({className:p,blockProps:e},k,{render:()=>(0,i.createElement)(i.Fragment,null,g&&(0,i.createElement)(b.Hr.Content,{containerClassName:"ugb-blog-posts__load-more-button",attrNameTemplate:"loadMoreButton%s",blockAttributes:e.attributes,url:"#0",role:"button"}))}))})),x={design:{type:"string",default:"basic"},columns:{type:"number",default:2},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},contentOrder:{type:"string",default:""},numberOfItems:{type:"number",default:6},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},postType:{type:"string",default:"post"},taxonomyType:{type:"string",default:"category"},taxonomy:{type:"string",default:""},taxonomyFilterType:{type:"string",default:"__in"},postOffset:{type:"number",default:""},postExclude:{type:"string",default:""},postInclude:{type:"string",default:""},...(0,a(8423).yA)("column%s"),...(0,l.createBorderAttributes)("column%s"),showImage:{type:"boolean",default:!0},imageSize:{type:"string",default:""},...(0,l.createResponsiveAttributes)("image%sWidth",{type:"number",default:""}),...(0,l.createResponsiveAttributes)("image%sHeight",{type:"number",default:""}),showCategory:{type:"boolean",default:!0},...(0,l.createTypographyAttributes)("category%s"),categoryHighlighted:{type:"boolean",default:!1},categoryColor:{type:"string",default:""},categoryHoverColor:{type:"string",default:""},...(0,l.createResponsiveAttributes)("Category%sAlign",{type:"string",default:""}),showTitle:{type:"boolean",default:!0},...(0,l.createTypographyAttributes)("title%s"),titleTag:{type:"string",default:""},titleColor:{type:"string",default:""},titleHoverColor:{type:"string",default:""},...(0,l.createResponsiveAttributes)("Title%sAlign",{type:"string",default:""}),showExcerpt:{type:"boolean",default:!0},...(0,l.createTypographyAttributes)("excerpt%s"),excerptLength:{type:"number",default:""},excerptColor:{type:"string",default:""},...(0,l.createResponsiveAttributes)("Excerpt%sAlign",{type:"string",default:""}),showMeta:{type:"boolean",default:!0},showAuthor:{type:"boolean",default:!0},showDate:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},...(0,l.createTypographyAttributes)("meta%s"),metaColor:{type:"string",default:""},metaSeparator:{type:"string",default:""},...(0,l.createResponsiveAttributes)("Meta%sAlign",{type:"string",default:""}),showReadmore:{type:"boolean",default:!0},readmoreText:{type:"string",default:""},...(0,l.createTypographyAttributes)("readmore%s"),readmoreColor:{type:"string",default:""},readmoreHoverColor:{type:"string",default:""},...(0,l.createResponsiveAttributes)("Readmore%sAlign",{type:"string",default:""}),showPagination:{type:"boolean",default:!1},showNextPrevious:{type:"boolean",default:!0},nextLabel:{type:"string",default:(0,v.__)("Next »",c.i18n)},previousLabel:{type:"string",default:(0,v.__)("« Previous",c.i18n)},...(0,l.createButtonAttributes)("pagination%s",{exclude:["Url","NewTab","NoFollow","Sponsored","Ugc","Icon","IconPosition"]}),...(0,l.createResponsiveAttributes)("pagination%sAlign",{type:"string",default:""}),showLoadMoreButton:{type:"boolean",default:!1},loadMoreItems:{type:"number",default:""},...(0,l.createButtonAttributes)("loadMoreButton%s",{exclude:["Url","NewTab","NoFollow","Sponsored","Ugc"]}),loadMoreButtonText:{type:"string",default:(0,v.__)("Load More",c.i18n)},...(0,l.createResponsiveAttributes)("loadMoreButton%sAlign",{type:"string",default:""}),...(0,l.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Image","Category","Title","Excerpt","Meta","Readmore"],["","Tablet","Mobile"]),...(0,l.createResponsiveAttributes)("LoadMoreButton%sTopMargin",{type:"number",default:""}),...(0,l.createResponsiveAttributes)("Pagination%sTopMargin",{type:"number",default:""})},S=JSON.parse('{"name":"ugb/blog-posts","title":"Posts","description":"Your latest blog posts. Use this to showcase a few of your posts in your landing pages.","category":"stackable-v2","keywords":["Blog Posts","Lastest Posts","Query Loop"],"textdomain":"stackable-ultimate-gutenberg-blocks"}');var E=a(9467);const{name:N,...R}=S,P={...R,title:R.title+" (v2)",icon:E.BlogPostsIcon,supports:{align:["center","wide","full"],inserter:!c.v2disabledBlocks.includes(N),anchor:!0},attributes:x,example:{attributes:{design:"basic",columns:2,numberOfItems:2,order:"desc",orderBy:"date",postType:"post",taxonomyType:"category",taxonomyFilterType:"__in",columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showImage:!0,showCategory:!0,categoryLineHeightUnit:"em",categoryTabletLineHeightUnit:"em",categoryMobileLineHeightUnit:"em",categoryHighlighted:!1,showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showExcerpt:!0,excerptLineHeightUnit:"em",excerptTabletLineHeightUnit:"em",excerptMobileLineHeightUnit:"em",showMeta:!0,showAuthor:!1,showDate:!0,showComments:!1,metaLineHeightUnit:"em",metaTabletLineHeightUnit:"em",metaMobileLineHeightUnit:"em",showReadmore:!0,readmoreLineHeightUnit:"em",readmoreTabletLineHeightUnit:"em",readmoreMobileLineHeightUnit:"em",showLoadMoreButton:!1,loadMoreButtonLineHeightUnit:"em",loadMoreButtonTabletLineHeightUnit:"em",loadMoreButtonMobileLineHeightUnit:"em",loadMoreButtonText:"Load More",uniqueClass:"ugb-6b45c1f",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},save:B,edit:w,deprecated:[{attributes:{className:{type:"string"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},categories:{type:"string"},postsToShow:{type:"number",default:6},columns:{type:"number",default:2},displayFeaturedImage:{type:"boolean",default:!0},featuredImageShape:{type:"string",default:"landscape"},displayTitle:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayCategory:{type:"boolean",default:!0},displayComments:{type:"boolean",default:!0},displayAuthor:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0},displayReadMoreLink:{type:"boolean",default:!1},readMoreText:{type:"string"},contentAlign:{type:"string"},align:{type:"string"},accentColor:{type:"string"},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:()=>null,migrate:e=>{let t,a=["portfolio","portfolio2"].includes(e.design)?"#ffffff":void 0;e.accentColor&&["basic","list","vertical-card","horizontal-card","vertical-card2"].includes(e.design)&&(a=e.accentColor),e.accentColor&&["portfolio","portfolio2","horizontal-card","image-card"].includes(e.design)&&(t=e.accentColor);const n=e=>(e||"").replace(/\.ugb-blog-posts__category-list/g,".ugb-blog-posts__category").replace(/\.ugb-blog-posts__read_more/g,".ugb-blog-posts__readmore").replace(/\.ugb-blog-posts__side/g,".ugb-blog-posts__content");return{...e,customCSS:n(e.customCSS),customCSSCompiled:n(e.customCSSCompiled),numberOfItems:e.postsToShow,categoryHighlighted:["portfolio","portfolio2","horizontal-card","image-card"].includes(e.design),metaColor:a,categoryColor:t,showImage:e.displayFeaturedImage,showTitle:e.displayTitle,showDate:e.displayDate,showCategory:e.displayCategory,showComments:e.displayComments,showAuthor:e.displayAuthor,showExcerpt:e.displayExcerpt,showReadmore:e.displayReadMoreLink,readmoreText:e.readMoreText,postType:"post",taxonomyType:"category",taxonomy:e.categories}}}],modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{verticalColumnAlign:!0,verticalContentAlign:!1,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.blog-posts.custom-css.default","")}}}},7753:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>E,settings:()=>R});var n=a(9467),o=a(910),i=a(8085),l=a(3882);(0,l.addFilter)("stackable.button.design.no-text-attributes","stackable/button",(e=>(0,i.omit)(e,["button1Text","button2Text","button3Text"]))),(0,l.addFilter)("stackable.button.design.filtered-block-attributes","stackable/button",(e=>({...(0,i.omit)(e,["button1Url","button1NewTab","button1NoFollow","button2Url","button2NewTab","button2NoFollow","button3Url","button3NewTab","button3NoFollow"])})));var r=a(2610),s=a(257),c=a(7545),u=a(8003),g=a(4184),d=a.n(g);const b={buttons:{type:"number",default:1},url:{type:"string",source:"attribute",selector:"a",attribute:"href",default:""},newTab:{type:"boolean",source:"attribute",selector:"a",attribute:"target",default:!1},text:{source:"html",selector:"a span",default:(0,u.__)("Button text")},align:{type:"string",default:"center"},color:{type:"string"},textColor:{type:"string"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},design:{type:"string",default:"basic"},icon:{type:"string"},url2:{type:"string",source:"attribute",selector:"div:nth-of-type(2) .ugb-button",attribute:"href",default:""},newTab2:{type:"boolean",source:"attribute",selector:"div:nth-of-type(2) .ugb-button",attribute:"target",default:!1},text2:{source:"html",selector:"div:nth-of-type(2) .ugb-button span",default:(0,u.__)("Button text")},color2:{type:"string"},textColor2:{type:"string",default:"#ffffff"},size2:{type:"string",default:"normal"},design2:{type:"string",default:"basic"},icon2:{type:"string"},url3:{type:"string",source:"attribute",selector:"div:nth-of-type(3) .ugb-button",attribute:"href",default:""},newTab3:{type:"boolean",source:"attribute",selector:"div:nth-of-type(3) .ugb-button",attribute:"target",default:!1},text3:{source:"html",selector:"div:nth-of-type(3) .ugb-button span",default:(0,u.__)("Button text")},color3:{type:"string"},textColor3:{type:"string",default:"#ffffff"},size3:{type:"string",default:"normal"},design3:{type:"string",default:"basic"},icon3:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},m=e=>{const{className:t,attributes:a}=e,{align:n="center",cornerButtonRadius:o,buttons:i=1,design:u=""}=a,g=t.replace(/^align\w+/g,"").replace(/\salign\w+/g," ").replace(/\s+/g," ").trim(),b=d()([g,"ugb-button-wrapper"],(0,l.applyFilters)("stackable.button.mainclasses_1_15_5",{[`ugb-button--align-${n}`]:n},u,e));return(0,r.createElement)("div",{className:b},(0,c.range)(1,i+1).map((e=>{const{[`text${1===e?"":e}`]:t,[`size${1===e?"":e}`]:i="normal",[`url${1===e?"":e}`]:l,[`design${1===e?"":e}`]:c="basic",[`color${1===e?"":e}`]:u,[`textColor${1===e?"":e}`]:g,[`icon${1===e?"":e}`]:d,[`newTab${1===e?"":e}`]:b}=a;return(0,r.createElement)(s.YG,{key:e,align:n,size:i,url:l,newTab:b,color:g,text:t,backgroundColor:u,borderRadius:o,design:c,icon:d})})),(0,l.applyFilters)("stackable.button.save.output.after_1_15_5",null,u,e))},p=e=>{const t=e=>(e||"").replace(/.ugb-button-wrapper > \*:nth-child\((\d)\) .ugb-button--inner/g,".ugb-button-wrapper .ugb-button$1 .ugb-button--inner").replace(/.ugb-button-wrapper > \*:nth-child\((\d)\) .ugb-button([^-])/g,".ugb-button-wrapper .ugb-button$1$2");return{...e,showButton2:!!e.buttons&&e.buttons>=2,showButton3:!!e.buttons&&e.buttons>=3,design:"full"===e.align?"fullwidth":void 0,columns:void 0,contentAlign:"full"!==e.align?e.align:void 0,align:void 0,cornerButtonRadius:void 0,button1Url:e.url,button1NewTab:e.newTab,button1Text:e.text,button1BackgroundColor:e.color,button1TextColor:e.textColor,button1Size:e.size,button1BorderRadius:e.cornerButtonRadius,button1Design:e.design,button1Icon:e.icon,url:void 0,newTab:void 0,text:void 0,color:void 0,textColor:void 0,size:void 0,icon:void 0,button2Url:e.url2,button2NewTab:e.newTab2,button2Text:e.text2,button2BackgroundColor:e.color2,button2TextColor:e.textColor2,button2Size:e.size2,button2BorderRadius:e.cornerButtonRadius,button2Design:e.design2,button2Icon:e.icon2,url2:void 0,newTab2:void 0,text2:void 0,color2:void 0,textColor2:void 0,size2:void 0,design2:void 0,icon2:void 0,button3Url:e.url3,button3NewTab:e.newTab3,button3Text:e.text3,button3BackgroundColor:e.color3,button3TextColor:e.textColor3,button3Size:e.size3,button3BorderRadius:e.cornerButtonRadius,button3Design:e.design3,button3Icon:e.icon3,url3:void 0,newTab3:void 0,text3:void 0,color3:void 0,textColor3:void 0,size3:void 0,design3:void 0,icon3:void 0,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled)}},h=[{attributes:{...b,textColor2:{type:"string"},textColor3:{type:"string"}},save:m,migrate:p},{attributes:b,save:m,migrate:p}];var k=a(7200),_=a(9858),v=a(1414),y=a(4863),f=a.n(y);const C=e=>{const t=(0,c.__getValue)(e.attributes),a=[],{showButton2:n=!1,showButton3:o=!1}=e.attributes,i=t("contentAlign"),l=t("tabletContentAlign"),r=t("mobileContentAlign"),s="left"===i?"flex-start":"right"===i?"flex-end":"center"===i?"center":void 0,u="left"===l?"flex-start !important":"right"===l?"flex-end !important":"center"===l?"center !important":void 0,g="left"===r?"flex-start !important":"right"===r?"flex-end !important":"center"===r?"center !important":void 0,d=t("collapseOn"),b="tablet"===d,m=!!d;return a.push({".ugb-block-content":{justifyContent:(0,c.appendImportant)(s)},".ugb-block-content .ugb-button":{borderRadius:t("borderRadius","%spx")},tablet:{".ugb-block-content":{justifyContent:(0,c.appendImportant)(b?void 0:u),flexDirection:b?"column":void 0,alignItems:b?u||s:void 0}},mobile:{".ugb-block-content":{justifyContent:(0,c.appendImportant)(m?void 0:g),flexDirection:m?"column":void 0,alignItems:m?g||s:void 0}}}),a.push({...(0,c.createButtonStyleSet)("button1%s","ugb-button1",e.attributes)}),n&&a.push({...(0,c.createButtonStyleSet)("button2%s","ugb-button2",e.attributes)}),o&&a.push({...(0,c.createButtonStyleSet)("button3%s","ugb-button3",e.attributes)}),f().all(a)};var A=a(3749),w=a(7537);(0,l.addFilter)("stackable.button.edit.layouts","default",(e=>[...e,{label:(0,u.__)("Basic",o.i18n),value:"basic",image:"dist/images/block-button-basic.311cbc1.png"},{label:(0,u.__)("Spread",o.i18n),value:"spread",image:"dist/images/block-button-spread.01dcafd.png"},{label:(0,u.__)("Full Width",o.i18n),value:"fullwidth",image:"dist/images/block-button-fullwidth.efc38a4.png"},{label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",o.i18n),(0,u.__)("Grouped",o.i18n),1),value:"grouped-1",image:"dist/images/block-button-grouped-1.87a3ead.png"},{label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",o.i18n),(0,u.__)("Grouped",o.i18n),2),value:"grouped-2",image:"dist/images/block-button-grouped-2.ce6e2bb.png"}])),(0,l.addFilter)("stackable.button.edit.inspector.layout.before","stackable/button",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(k.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,l.applyFilters)("stackable.button.edit.layouts",[]),onChange:e=>a({design:e})},o.showProNotice&&(0,r.createElement)(k.ProControlButton,null)))})),(0,l.addFilter)("stackable.button.edit.inspector.style.before","stackable/button",((e,t)=>{const{setAttributes:a}=t,{borderRadius:n="",collapseOn:i="",showButton2:l=!1,showButton3:s=!1}=t.attributes;return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(k.PanelAdvancedSettings,{title:(0,u.__)("General",o.i18n),initialOpen:!1},(0,r.createElement)(k.AdvancedRangeControl,{label:(0,u.__)("Border Radius",o.i18n),value:n,min:"0",max:"70",onChange:e=>{const t={button1BorderRadius:e,borderRadius:e};l&&(t.button2BorderRadius=e),s&&(t.button3BorderRadius=e),a(t)},allowReset:!0,placeholder:"12",className:"ugb--help-tip-button-border-radius"}),(0,r.createElement)(_.QA,{setAttributes:a,blockAttributes:t.attributes}),(0,r.createElement)(w.SelectControl,{label:(0,u.__)("Collapse Buttons On",o.i18n),value:i,options:[{value:"",label:(0,u.__)("Don't collapse",o.i18n)},{value:"tablet",label:(0,u.__)("Tablet",o.i18n)},{value:"mobile",label:(0,u.__)("Mobile",o.i18n)}],onChange:e=>a({collapseOn:e}),className:"ugb--help-tip-button-collapse"})),(0,r.createElement)(k.PanelAdvancedSettings,{title:(0,u.sprintf)((0,u._x)("%s #%d","Panel title",o.i18n),(0,u.__)("Button",o.i18n),1),initialOpen:!0,id:"button1"},(0,r.createElement)(k.ButtonControlsHelper,{attrNameTemplate:"button1%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"})),(0,r.createElement)(k.PanelAdvancedSettings,{title:(0,u.sprintf)((0,u._x)("%s #%d","Panel title",o.i18n),(0,u.__)("Button",o.i18n),2),id:"button2",checked:l,onChange:e=>a({showButton2:e}),toggleOnSetAttributes:(0,c.createButtonAttributeNames)("button2%s"),toggleAttributeName:"showButton2"},(0,r.createElement)(k.ButtonControlsHelper,{attrNameTemplate:"button2%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"})),(0,r.createElement)(k.PanelAdvancedSettings,{title:(0,u.sprintf)((0,u._x)("%s #%d","Panel title",o.i18n),(0,u.__)("Button",o.i18n),3),id:"button3",checked:s,onChange:e=>a({showButton3:e}),toggleOnSetAttributes:(0,c.createButtonAttributeNames)("button3%s"),toggleAttributeName:"showButton3"},(0,r.createElement)(k.ButtonControlsHelper,{attrNameTemplate:"button3%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"})))}));const T=(0,A.compose)(v.FI,v.XQ,v.O0,(0,v.Q9)(),(0,v.lX)(),(0,v.OB)(C,{editorMode:!0}),(0,v.UY)([[".ugb-button1","button1"],[".ugb-button2","button2"],[".ugb-button3","button3"]]))((e=>{const{setAttributes:t,className:a,attributes:n}=e,{design:o="plain",tabletContentAlign:i="",mobileContentAlign:s="",collapseOn:c="",showButton2:u=!1,showButton3:g=!1}=n,b=d()([a],(0,l.applyFilters)("stackable.button.mainclasses",{"ugb-button--tablet-aligned":""!==i,"ugb-button--mobile-aligned":""!==s,[`ugb-button--collapse-${c}`]:c,[`ugb-button--design-${o}`]:"basic"!==o},o,e));return(0,r.createElement)(k.BlockContainer.Edit,{className:b,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(_.Hr,{className:"ugb-button1",attrNameTemplate:"button1%s",setAttributes:t,blockAttributes:e.attributes}),u&&(0,r.createElement)(_.Hr,{className:"ugb-button2",attrNameTemplate:"button2%s",setAttributes:t,blockAttributes:e.attributes}),g&&(0,r.createElement)(_.Hr,{className:"ugb-button3",attrNameTemplate:"button3%s",setAttributes:t,blockAttributes:e.attributes}))})})),B=(0,A.compose)(v.FI,(0,v.OB)(C))((e=>{const{className:t,attributes:a}=e,{design:n="plain",tabletContentAlign:o="",mobileContentAlign:i="",collapseOn:s="",showButton2:c=!1,showButton3:u=!1,button1Size:g="normal",button1Text:b="",button1Shadow:m=0,button1HoverEffect:p="",button1Icon:h="",button1IconPosition:v="",button1NewTab:y=!1,button1NoFollow:f=!1,button1Sponsored:C=!1,button1Ugc:A=!1,button1Url:w="",button1Design:T="basic",button1HoverGhostToNormal:B=!1,button2Size:x="normal",button2Text:S="",button2Shadow:E=0,button2HoverEffect:N="",button2Icon:R="",button2IconPosition:P="",button2NewTab:I=!1,button2NoFollow:$=!1,button2Sponsored:U=!1,button2Ugc:F=!1,button2Url:L="",button2Design:M="basic",button2HoverGhostToNormal:H=!1,button3Size:D="normal",button3Text:O="",button3Shadow:z=0,button3HoverEffect:W="",button3Icon:q="",button3IconPosition:V="",button3NewTab:G=!1,button3NoFollow:j=!1,button3Sponsored:Z=!1,button3Ugc:X=!1,button3Url:Y="",button3Design:Q="basic",button3HoverGhostToNormal:J=!1}=a,K=d()([t],(0,l.applyFilters)("stackable.button.mainclasses",{"ugb-button--tablet-aligned":""!==o,"ugb-button--mobile-aligned":""!==i,[`ugb-button--collapse-${s}`]:s,[`ugb-button--design-${n}`]:"basic"!==n},n,e));return(0,r.createElement)(k.BlockContainer.Save,{className:K,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(_.df.Content,{className:"ugb-button1",size:""!==g?g:"normal",text:b,icon:h,newTab:""!==y&&y,url:w,noFollow:f,sponsored:C,ugc:A,hoverEffect:p,ghostToNormalEffect:B,shadow:m,iconPosition:v,design:""!==T?T:"basic"}),c&&(0,r.createElement)(_.df.Content,{className:"ugb-button2",size:""!==x?x:"normal",text:S,icon:R,newTab:""!==I&&I,url:L,noFollow:$,sponsored:U,ugc:F,hoverEffect:N,ghostToNormalEffect:H,shadow:E,iconPosition:P,design:""!==M?M:"basic"}),u&&(0,r.createElement)(_.df.Content,{className:"ugb-button3",size:""!==D?D:"normal",text:O,icon:q,newTab:""!==G&&G,url:Y,noFollow:j,sponsored:Z,ugc:X,hoverEffect:W,ghostToNormalEffect:J,shadow:z,iconPosition:V,design:""!==Q?Q:"basic"}))})})),x={design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},collapseOn:{type:"string",default:""},showButton2:{type:"boolean",default:!1},showButton3:{type:"boolean",default:!1},...(0,c.createButtonAttributes)("button1%s",{selector:".ugb-button1"}),...(0,c.createButtonAttributes)("button2%s",{selector:".ugb-button2"}),...(0,c.createButtonAttributes)("button3%s",{selector:".ugb-button3"})},S=JSON.parse('{"name":"ugb/button","title":"Button","description":"Add a customizable button.","category":"stackable-v2","keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:E,...N}=S,R={...N,title:N.title+" (v2)",icon:n.ButtonIcon,attributes:x,example:{attributes:{design:"fullwidth",showButton2:!0,showButton3:!0,button1LineHeightUnit:"em",button1TabletLineHeightUnit:"em",button1MobileLineHeightUnit:"em",button1Text:"Button text",button1NewTab:!1,button2LineHeightUnit:"em",button2TabletLineHeightUnit:"em",button2MobileLineHeightUnit:"em",button2Text:"Button text",button2NewTab:!1,button2Design:"ghost",button3LineHeightUnit:"em",button3TabletLineHeightUnit:"em",button3MobileLineHeightUnit:"em",button3Text:"Button text",button3NewTab:!1,button3Design:"plain",uniqueClass:"ugb-a83e98e",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},supports:{inserter:!o.v2disabledBlocks.includes(E),anchor:!0},deprecated:h,edit:T,save:B,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,l.applyFilters)("stackable.button.custom-css.default","")}}};(0,l.addFilter)("stackable.button.mainClassName","stackable/button",(()=>"ugb-button-wrapper")),(0,l.addFilter)("stackable.button.setAttributes","stackable/button/contentAlign",((e,t)=>(void 0===e.contentAlign||["","basic"].includes(t.attributes.design)||(e.design="basic"),e))),(0,l.addFilter)("stackable.button.setAttributes","stackable/button/design",(e=>(void 0===e.design||["","basic"].includes(e.design)||(e.contentAlign=""),e)))},6111:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>S,settings:()=>N});var n=a(9467),o=a(910),i=a(8085),l=a(3882);(0,l.addFilter)("stackable.cta.design.no-text-attributes","stackable/cta",(e=>(0,i.omit)(e,["title","description","buttonText"]))),(0,l.addFilter)("stackable.cta.design.filtered-block-attributes","stackable/cta",(e=>({...(0,i.omit)(e,["buttonUrl","buttonNewTab","buttonNoFollow"])})));var r=a(2610),s=a(257),c=a(7545),u=a(8003),g=a(4184),d=a.n(g),b=a(78);const m=[{attributes:{url:{type:"string",source:"attribute",selector:".ugb-button",attribute:"href",default:""},newTab:{type:"boolean",source:"attribute",selector:".ugb-button",attribute:"target",default:!1},ctaTitle:{source:"html",selector:"h3",default:(0,u.__)("Title for This Block")},bodyText:{source:"html",selector:"p",default:(0,c.descriptionPlaceholder)()},buttonText:{source:"html",selector:".ugb-button span",default:(0,u.__)("Button text")},buttonDesign:{type:"string",default:"basic"},color:{type:"string"},textColor:{type:"string"},titleColor:{type:"string"},bodyTextColor:{type:"string"},size:{type:"string",default:"normal"},borderButtonRadius:{type:"number",default:4},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},buttonIcon:{type:"string"},contentWidth:{type:"boolean",default:!1},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},align:{type:"string"},hoverEffect:{type:"string",default:""},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},bgColor:{type:"string"}},save:e=>{const{className:t}=e,{url:a,buttonText:n,ctaTitle:o,bodyText:i,color:c,textColor:u,size:g,borderButtonRadius:m,bodyTextColor:p,titleColor:h,backgroundColorType:k="",backgroundColor:_,backgroundColor2:v,backgroundColorDirection:y=0,backgroundType:f="",backgroundImageURL:C,backgroundOpacity:A,fixedBackground:w,buttonDesign:T,buttonIcon:B,design:x="basic",borderRadius:S=12,shadow:E=3,align:N,contentWidth:R,newTab:P}=e.attributes,I="plain"!==x,$=d()([t,"ugb-cta","ugb--background-opacity-"+1*Math.round(A/1)],(0,l.applyFilters)("stackable.cta.mainclasses_1_15_5",{[`ugb-cta--design-${x}`]:"basic"!==x,[`ugb--shadow-${E}`]:"plain"!==x&&3!==E,"ugb--has-background":_||C,"ugb--has-background-image":C,"ugb-content-width":"full"===N&&R,"ugb--has-background-gradient":I&&"gradient"===k,"ugb--has-background-video":I&&"video"===f},x,e)),U={backgroundAttachment:w?"fixed":void 0,...I?{backgroundColor:_||void 0,backgroundImage:C?`url(${C})`:void 0,"--ugb-background-color":C||"gradient"===k?_:void 0,"--ugb-background-color2":"gradient"===k&&v?v:void 0,"--ugb-background-direction":"gradient"===k?`${y}deg`:void 0,borderRadius:12!==S?S:void 0}:{}};return(0,r.createElement)("div",{className:$,style:U},I&&"video"===f&&(0,r.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:C}),(0,l.applyFilters)("stackable.cta.save.output.before_1_15_5",null,x,e),(0,r.createElement)("div",{className:"ugb-content-wrapper"},o&&!!o.length&&(0,r.createElement)(b.RichText.Content,{tagName:"h3",className:"ugb-cta__title",style:{color:h},value:o}),i&&!!i.length&&(0,r.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-cta__description",style:{color:p},value:i}),n&&!!n.length&&(0,r.createElement)(s.YG,{size:g,url:a,color:u,text:n,design:T,icon:B,backgroundColor:c,borderRadius:m,newTab:P})))},migrate:e=>{const t=e=>(e||"").replace(/\n\.ugb-cta(\s*{)/g,"\n.ugb-cta__item$1").replace(/\.ugb-content-wrapper/g,".ugb-cta__item");return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),title:e.ctaTitle||"",titleColor:e.titleColor||"",description:e.bodyText||"",descriptionColor:e.bodyTextColor||"",buttonUrl:e.url,buttonNewTab:e.newTab,buttonBackgroundColor:e.color,buttonTextColor:e.textColor,buttonSize:e.size,buttonDesign:e.buttonDesign,buttonBorderRadius:e.borderButtonRadius,columnBackgroundColorType:e.backgroundColorType,columnBackgroundColor:e.backgroundColor,columnBackgroundColor2:e.backgroundColor2,columnBackgroundGradientDirection:e.backgroundColorDirection,backgroundType:void 0,columnBackgroundMediaId:e.backgroundImageID,columnBackgroundMediaUrl:e.backgroundImageURL,columnBackgroundTintStrength:e.backgroundOpacity,columnFixedBackground:e.fixedBackground?e.fixedBackground:void 0,marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}}];var p=a(7200),h=a(9858),k=a(1414),_=a(8423),v=a(4863),y=a.n(v);const f=e=>{const{design:t="basic",showBlockBackground:a=!1,blockInnerWidth:n="",align:o="",showTitle:i=!0,showDescription:r=!0,showButton:s=!0}=e.attributes;let c=!0;return"plain"===t?c=!1:"full"===o&&(a?"full"===n&&(c=!1):c=!1),(0,l.applyFilters)("stackable.cta.show",{columnBackground:"plain"!==t,border:c,borderRadius:c,titleSpacing:i,descriptionSpacing:r,buttonSpacing:s},e)},C=e=>{const t=(0,c.__getValue)(e.attributes),{columnBackgroundColor:a="",columnBackgroundColorOpacity:n=1}=e.attributes,o=f(e),i=[];i.push({".ugb-cta__title, .ugb-cta__description, .ugb-button-container":{textAlign:(0,c.appendImportant)(t("contentAlign"))},tablet:{".ugb-cta__title, .ugb-cta__description, .ugb-button-container":{textAlign:t("tabletContentAlign")}},mobile:{".ugb-cta__title, .ugb-cta__description, .ugb-button-container":{textAlign:t("mobileContentAlign")}}}),o.borderRadius&&i.push({".ugb-cta__item":{borderRadius:t("borderRadius","%spx !important")}}),o.border&&i.push({...(0,c.createBorderStyleSet)("column%s",".ugb-cta__item",e.attributes)}),i.push({...o.columnBackground?(0,_._H)("column%s","ugb-cta__item",e.attributes,{importantBackgroundColor:!0}):{}}),o.titleSpacing&&i.push(...(0,c.createResponsiveStyles)(".ugb-cta__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),o.descriptionSpacing&&i.push(...(0,c.createResponsiveStyles)(".ugb-cta__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),o.buttonSpacing&&i.push(...(0,c.createResponsiveStyles)(".ugb-button-container","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0}));const{columnPaddingUnit:l="px",tabletColumnPaddingUnit:r="px",mobileColumnPaddingUnit:s="px"}=e.attributes;i.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,c.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${l}`),paddingBottom:t("columnPaddingBottom",`%s${l}`),paddingRight:t("columnPaddingRight",`%s${l}`),paddingLeft:t("columnPaddingLeft",`%s${l}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,c.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${r}`),paddingRight:t("tabletColumnPaddingRight",`%s${r}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${r}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${r}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,c.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${s}`),paddingRight:t("mobileColumnPaddingRight",`%s${s}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${s}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${s}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-cta__item":(0,c.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${l}`),paddingBottom:t("columnPaddingBottom",`%s${l}`),paddingRight:t("columnPaddingRight",`%s${l}`),paddingLeft:t("columnPaddingLeft",`%s${l}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-cta__item":(0,c.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${r}`),paddingRight:t("tabletColumnPaddingRight",`%s${r}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${r}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${r}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-cta__item":(0,c.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${s}`),paddingRight:t("mobileColumnPaddingRight",`%s${s}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${s}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${s}`)})}}});const{titleColor:u="",showTitle:g=!0}=e.attributes;g&&i.push({".ugb-cta__title":{...(0,c.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),color:(0,c.whiteIfDark)(u,0!==n?a:null),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-cta__title":{...(0,c.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-cta__title":{...(0,c.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{descriptionColor:d="",showDescription:b=!0}=e.attributes;b&&i.push({".ugb-cta__description":{...(0,c.createTypographyStyles)("description%s","desktop",e.attributes),color:(0,c.whiteIfDark)(d,0!==n?a:null),textAlign:t("descriptionAlign","%s !important")},tablet:{".ugb-cta__description":{...(0,c.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:t("descriptionTabletAlign","%s !important")}},mobile:{".ugb-cta__description":{...(0,c.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:t("descriptionMobileAlign","%s !important")}}});const{showButton:m=!0}=e.attributes;return m&&(i.push({...(0,c.createButtonStyleSet)("button%s","ugb-button",e.attributes)}),i.push({".ugb-button-container":{textAlign:t("buttonAlign","%s !important")},tablet:{".ugb-button-container":{textAlign:t("buttonTabletAlign","%s !important")}},mobile:{".ugb-button-container":{textAlign:t("buttonMobileAlign","%s !important")}}})),y().all(i)};var A=a(3749);(0,l.addFilter)("stackable.cta.edit.layouts","default",(e=>[...e,{label:(0,u.__)("Basic",o.i18n),value:"basic",image:"dist/images/block-call-to-action-basic.97e9e3b.png"},{label:(0,u.__)("Plain",o.i18n),value:"plain",image:"dist/images/block-call-to-action-plain.d2b47c7.png"},{label:(0,u.__)("Horizontal",o.i18n),value:"horizontal",image:"dist/images/block-call-to-action-horizontal.9a3abd0.png",premium:!0},{label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",o.i18n),(0,u.__)("Horizontal",o.i18n),2),value:"horizontal-2",image:"dist/images/block-call-to-action-horizontal-2.877c219.png",premium:!0},{label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",o.i18n),(0,u.__)("Horizontal",o.i18n),3),value:"horizontal-3",image:"dist/images/block-call-to-action-horizontal-3.7796d9f.png",premium:!0},{label:(0,u.__)("Split Centered",o.i18n),value:"split-centered",image:"dist/images/block-call-to-action-split-centered.c78f0d4.png",premium:!0}])),(0,l.addFilter)("stackable.cta.edit.inspector.layout.before","stackable/cta",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(p.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,l.applyFilters)("stackable.cta.edit.layouts",[]),onChange:e=>a({design:e})},o.showProNotice&&(0,r.createElement)(p.ProControlButton,null)))})),(0,l.addFilter)("stackable.cta.edit.inspector.style.before","stackable/cta",((e,t)=>{const{setAttributes:a}=t,{titleColor:n,descriptionColor:i,borderRadius:l="",shadow:s="",showTitle:g=!0,showDescription:d=!0,showButton:b=!0,titleTag:m=""}=t.attributes,k=f(t);return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("General",o.i18n),initialOpen:!0},(0,r.createElement)(h.QA,{setAttributes:a,blockAttributes:t.attributes})),k.columnBackground&&(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Container",o.i18n),initialOpen:!1,id:"column-background",className:"ugb--help-tip-column-background-on-off"},(0,r.createElement)(p.ButtonIconPopoverControl,{label:(0,u.__)("Background",o.i18n),popoverLabel:(0,u.__)("Background",o.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,r.createElement)(p.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),k.border&&(0,r.createElement)(p.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),k.borderRadius&&(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Border Radius",o.i18n),value:l,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),k.columnBackground&&(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Shadow / Outline",o.i18n),value:s,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,r.createElement)(p.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,r.createElement)(p.ColumnPaddingControl,{label:(0,u.__)("Paddings",o.i18n),setAttributes:a,attributes:t.attributes}),k.titleSpacing&&(0,r.createElement)(h.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Title",o.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),k.descriptionSpacing&&(0,r.createElement)(h.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Description",o.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),k.buttonSpacing&&(0,r.createElement)(h.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Button",o.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button"}))),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Title",o.i18n),id:"title",checked:g,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,c.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,c.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,r.createElement)(p.HeadingButtonsControl,{value:m||"h3",defaultValue:"h3",onChange:e=>a({titleTag:e})}),(0,r.createElement)(p.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,className:"ugb--help-tip-typography-family",htmlTag:m||"h3"}),(0,r.createElement)(p.ColorPaletteControl,{value:n,onChange:e=>a({titleColor:e}),label:(0,u.__)("Title Color",o.i18n)}),(0,r.createElement)(h.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),className:"ugb--help-tip-alignment-title"}))),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Description",o.i18n),id:"description",checked:d,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,c.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,c.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,r.createElement)(p.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,r.createElement)(p.ColorPaletteControl,{value:i,onChange:e=>a({descriptionColor:e}),label:(0,u.__)("Description Color",o.i18n)}),(0,r.createElement)(h.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),className:"ugb--help-tip-alignment-description"}))),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Button",o.i18n),id:"button",checked:b,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,c.createButtonAttributeNames)("button%s"),...(0,c.createResponsiveAttributeNames)("button%sAlign")],toggleAttributeName:"showButton"},(0,r.createElement)(p.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"}),(0,r.createElement)(p.ControlSeparator,null),(0,r.createElement)(h.n9,{attrNameTemplate:"Button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),className:"ugb--help-tip-alignment-button"}))))}));const w=(0,A.compose)(k.FI,k.XQ,k.O0,(0,k.Q9)(),(0,k.lX)(["Title%sAlign","Description%sAlign","Button%sAlign"]),(0,k.OB)(C,{editorMode:!0}),(0,k.UY)([[".ugb-cta__title","title"],[".ugb-cta__description","description"],[".ugb-button","button"]]))((e=>{const{className:t,setAttributes:a}=e,{design:n="basic",shadow:i="",showTitle:s=!0,title:g="",titleTag:m="h3",showDescription:k=!0,description:_="",showButton:v=!0}=e.attributes,y=d()([t,"ugb-cta","ugb-cta--v2"],(0,l.applyFilters)("stackable.cta.mainclasses",{[`ugb-cta--design-${n}`]:"basic"!==n},n,e)),f=d()(["ugb-cta__item"],(0,l.applyFilters)("stackable.cta.boxclasses",{[`ugb--shadow-${i}`]:"plain"!==n&&""!==i},n,e)),C=s&&(0,r.createElement)(b.RichText,{tagName:m||"h3",value:g,className:"ugb-cta__title",placeholder:(0,u.__)("Title for This Block",o.i18n),onChange:e=>a({title:e}),keepPlaceholderOnFocus:!0}),A=k&&(0,r.createElement)(b.RichText,{tagName:"p",value:_,className:"ugb-cta__description",onChange:e=>a({description:e}),placeholder:(0,c.descriptionPlaceholder)(),keepPlaceholderOnFocus:!0}),w=v&&(0,r.createElement)(h.Hr,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:e.attributes}),T={title:C,description:A,button:w};return(0,r.createElement)(p.BlockContainer.Edit,{className:y,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.Gc,{className:f,backgroundAttrName:"column%s",blockProps:e},(0,l.applyFilters)("stackable.cta.edit.output",(0,r.createElement)(r.Fragment,null,C,A,w),T,e)))})})),T=(0,A.compose)(k.FI,(0,k.OB)(C))((e=>{const{className:t}=e,{design:a="basic",shadow:n="",showTitle:o=!0,title:i="",titleTag:s="h3",showDescription:c=!0,description:u="",showButton:g=!0,buttonUrl:m="",buttonNewTab:k=!1,buttonSize:_="normal",buttonText:v="",buttonShadow:y=0,buttonHoverEffect:f="",buttonIcon:C="",buttonIconPosition:A="",buttonDesign:w="basic",buttonHoverGhostToNormal:T=!1,buttonNoFollow:B=!1,buttonSponsored:x=!1,buttonUgc:S=!1}=e.attributes,E=d()([t,"ugb-cta","ugb-cta--v2"],(0,l.applyFilters)("stackable.cta.mainclasses",{[`ugb-cta--design-${a}`]:"basic"!==a},a,e)),N=d()(["ugb-cta__item"],(0,l.applyFilters)("stackable.cta.boxclasses",{[`ugb--shadow-${n}`]:"plain"!==a&&""!==n},a,e)),R=o&&!b.RichText.isEmpty(i)&&(0,r.createElement)(b.RichText.Content,{tagName:s||"h3",className:"ugb-cta__title",value:i}),P=c&&!b.RichText.isEmpty(u)&&(0,r.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-cta__description",value:u}),I=g&&!b.RichText.isEmpty(v)&&(0,r.createElement)(h.df.Content,{size:""!==_?_:"normal",text:v,icon:C,newTab:""!==k&&k,url:m,noFollow:B,sponsored:x,ugc:S,hoverEffect:f,ghostToNormalEffect:T,shadow:y,iconPosition:A,design:""!==w?w:"basic"}),$={title:R,description:P,button:I};return(0,r.createElement)(p.BlockContainer.Save,{className:E,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.Gc,{className:N,backgroundAttrName:"column%s",blockProps:e},(0,l.applyFilters)("stackable.cta.save.output",(0,r.createElement)(r.Fragment,null,R,P,I),$,e)))})})),B={design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,c.createBorderAttributes)("column%s"),title:{source:"html",selector:"h3, .ugb-cta__title",default:(0,u.__)("Title for This Block",o.i18n)},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,c.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},description:{source:"html",selector:".ugb-cta__description",default:(0,c.descriptionPlaceholder)()},showDescription:{type:"boolean",default:!0},...(0,c.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},showButton:{type:"boolean",default:!0},...(0,c.createButtonAttributes)("button%s",{selector:".ugb-button"}),...(0,_.yA)("column%s"),hoverEffect:{type:"string",default:""},...(0,c.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("description%sBottomMargin",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("button%sBottomMargin",{type:"number",default:""}),...(0,c.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Title","Description","Button"],["","Tablet","Mobile"])},x=JSON.parse('{"name":"ugb/cta","title":"Call to Action","description":"A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.","category":"stackable-v2","keywords":["Call to Action"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:S,...E}=x,N={...E,title:E.title+" (v2)",icon:n.CTAIcon,attributes:B,example:{attributes:{design:"basic",title:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",description:"Description for this block. Use this space for describing your block. Any text will do.",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showButton:!0,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",buttonText:"Button text",buttonNewTab:!1,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",uniqueClass:"ugb-16d60ce",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,align:"center",blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},supports:{align:["center","wide","full"],inserter:!o.v2disabledBlocks.includes(S),anchor:!0},deprecated:m,edit:w,save:T,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{columnGap:!1,paddings:!1,verticalContentAlignImportant:!0},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"container-link":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,l.applyFilters)("stackable.cta.custom-css.default","")}}}},7701:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>E,settings:()=>R});var n=a(9467),o=a(8085),i=a(3882);(0,i.addFilter)("stackable.card.design.no-text-attributes","stackable/card",(e=>(0,o.omit)(e,["title1","title2","title3","subtitle1","subtitle2","subtitle3","description1","description2","description3","button1Text","button2Text","button3Text"]))),(0,i.addFilter)("stackable.card.design.filtered-block-attributes","stackable/card",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,o.omit)(e,[...t&&t.image1Id?["image1Url"]:[],"image1Id",...t&&t.image2Id?["image2Url"]:[],"image2Id",...t&&t.image3Id?["image3Url"]:[],"image3Id","button1Url","button1NewTab","button1NoFollow","button2Url","button2NewTab","button2NoFollow","button3Url","button3NewTab","button3NoFollow"])}}));var l=a(2610),r=a(257),s=a(7545),c=a(4184),u=a.n(c),g=a(910),d=a(8003),b=a(78);const m=[{attributes:{mediaID:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-card__image-container",attribute:"data-src"},heading:{source:"html",selector:".ugb-card__title",default:(0,d.__)("Title for This Block",g.i18n)},tagline:{source:"html",selector:".ugb-card__tagline",default:(0,d.__)("Subtitle for this block",g.i18n)},des:{source:"html",selector:".ugb-card__description",default:(0,s.descriptionPlaceholder)("long")},headingColor:{type:"string"},taglineColor:{type:"string"},desColor:{type:"string"},buttonURL:{type:"string",source:"attribute",selector:".ugb-button",attribute:"href",default:""},buttonNewTab:{type:"boolean",source:"attribute",selector:".ugb-button",attribute:"target",default:!1},buttonText:{source:"html",selector:".ugb-button span",default:(0,d.__)("Button text",g.i18n)},buttonColor:{type:"string"},buttonIcon:{type:"string"},buttonTextColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},buttonDesign:{type:"string",default:"basic"},contentAlign:{type:"string",default:"left"},design:{type:"string",default:"basic"},backgroundColor:{type:"string"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},hoverEffect:{type:"string",default:""},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{heading:a,tagline:n,des:o,mediaURL:s,headingColor:c,taglineColor:g,desColor:d,buttonURL:m,buttonNewTab:p,buttonText:h,buttonColor:k,buttonTextColor:_,size:v,cornerButtonRadius:y,contentAlign:f,buttonDesign:C,buttonIcon:A,design:w="basic",backgroundColor:T,borderRadius:B=12,shadow:x=3}=e.attributes,S=u()([t,"ugb-card"],(0,i.applyFilters)("stackable.card.mainclasses_1_17_3",{[`ugb-card--design-${w}`]:"basic"!==w,[`ugb--shadow-${x}`]:"plain"!==w&&3!==x},w,e)),E={borderRadius:"plain"!==w?B:void 0,backgroundColor:"plain"!==w?T:void 0},N=u()(["ugb-card__image-container"],{[`ugb--shadow-${x}`]:"plain"===w}),R={borderRadius:"plain"===w?B:void 0};return(0,l.createElement)("div",{className:S,style:E},(0,i.applyFilters)("stackable.card.save.output.before_1_17_3",null,w,e),s&&(0,l.createElement)("div",{className:N,style:{...R,backgroundImage:`url(${s})`,textAlign:f},"data-src":s}),!b.RichText.isEmpty(a)&&(0,l.createElement)(b.RichText.Content,{tagName:"h4",className:"ugb-card__title",style:{color:c,textAlign:f},value:a}),!b.RichText.isEmpty(n)&&(0,l.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-card__tagline",style:{color:g,textAlign:f},value:n}),!b.RichText.isEmpty(o)&&(0,l.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-card__description",style:{color:d,textAlign:f},value:o}),h&&!!h.length&&(0,l.createElement)(r.YG,{size:v,url:m,newTab:p,align:f,color:_,text:h,icon:A,design:C,backgroundColor:k,borderRadius:y}),(0,i.applyFilters)("stackable.card.save.output.after_1_17_3",null,w,e))},migrate:e=>{const t=e=>(e||"").replace(/\.ugb-card([\s\{\[\.\#\:])/g,".ugb-card__item$1").replace(/\.ugb-card__tagline([\s\{\[\.\#\:])/g,".ugb-card__subtitle$1").replace(/\.ugb-card__image-container([\s\{\[\.\#\:])/g,".ugb-card__image$1");return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),columns:1,showButton:!!e.buttonText,image1Id:e.mediaID,image1Url:e.mediaURL,title1:e.heading,subtitle1:e.tagline,description1:e.des,titleColor:e.headingColor,subtitleColor:e.taglineColor,descriptionColor:e.desColor,button1Url:e.buttonURL,button1NewTab:e.buttonNewTab,button1Text:e.buttonText,buttonBackgroundColor:e.buttonColor,buttonIcon:e.buttonIcon,buttonTextColor:e.buttonTextColor,buttonSize:e.size,buttonBorderRadius:e.cornerButtonRadius,buttonDesign:e.buttonDesign,columnBackgroundColor:e.backgroundColor}}}];var p=a(7200),h=a(9858),k=a(1414),_=a(8423),v=a(4863),y=a.n(v);const f=e=>{const{design:t="basic",showImage:a=!0,showTitle:n=!0,showSubtitle:o=!0,showDescription:l=!0,showButton:r=!0}=e.attributes;return(0,i.applyFilters)("stackable.card.show",{columnBackground:"plain"!==t,borderRadius:!0,shadow:!0,border:"plain"!==t,imageHeight:("basic"===t||"plain"===t)&&"horizontal-card"!==t,imageWidth:"horizontal"===t,imageSpacing:"plain"===t&&a,titleSpacing:n,subtitleSpacing:o,descriptionSpacing:l,buttonSpacing:r},e)},C=e=>{const t=(0,s.__getValue)(e.attributes),{columnBackgroundColor:a=""}=e.attributes,n=f(e),o=[];if(o.push({".ugb-card__title, .ugb-card__subtitle, .ugb-card__description, .ugb-button-container":{textAlign:t("contentAlign")},tablet:{".ugb-card__title, .ugb-card__subtitle, .ugb-card__description, .ugb-button-container":{textAlign:t("tabletContentAlign")}},mobile:{".ugb-card__title, .ugb-card__subtitle, .ugb-card__description, .ugb-button-container":{textAlign:t("mobileContentAlign")}}}),n.borderRadius){const e=n.columnBackground?".ugb-card__item":".ugb-card__image";o.push({[e]:{borderRadius:t("borderRadius","%spx !important")}})}n.border&&o.push({...(0,s.createBorderStyleSet)("column%s",".ugb-card__item",e.attributes)}),o.push({...n.columnBackground?(0,_._H)("column%s","ugb-card__item",e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:i="px",tabletColumnPaddingUnit:l="px",mobileColumnPaddingUnit:r="px"}=e.attributes;o.push({desktopTablet:{".ugb-card__content":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{".ugb-card__content":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{".ugb-card__content":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}}),o.push({".ugb-card__item1 .ugb-card__image":{backgroundImage:t("image1Url","url(%s)")},".ugb-card__item2 .ugb-card__image":{backgroundImage:t("image2Url","url(%s)")},".ugb-card__item3 .ugb-card__image":{backgroundImage:t("image3Url","url(%s)")}}),o.push({...(0,s.createImageBackgroundStyleSet)("image%s","ugb-card__image",e.attributes)}),n.imageHeight&&o.push(...(0,s.createResponsiveStyles)(".ugb-card__image","imageBackground%sHeight","height","%spx",e.attributes,{inherit:!0,inheritTabletMax:300,inheritMobileMax:300,important:!0})),n.imageWidth&&o.push({".ugb-card__image":{width:t("imageBackgroundWidth")?(0,s.appendImportant)(t("imageBackgroundWidth")+t("imageBackgroundWidthUnit","%s","%")):void 0},tablet:{".ugb-card__image":{width:t("imageBackgroundTabletWidth")?(0,s.appendImportant)(t("imageBackgroundTabletWidth")+t("imageBackgroundTabletWidthUnit","%s","%")):void 0}},mobile:{".ugb-card__image":{width:t("imageBackgroundMobileWidth")?(0,s.appendImportant)(t("imageBackgroundMobileWidth")+t("imageBackgroundMobileWidthUnit","%s","%")):void 0}}});const{titleColor:c="",showTitle:u=!0}=e.attributes;u&&o.push({".ugb-card__title":{...(0,s.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),color:(0,s.appendImportant)((0,s.whiteIfDarkBlackIfLight)(c,n.columnBackground&&a)),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-card__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-card__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{subtitleColor:g="",showSubtitle:d=!0}=e.attributes;d&&o.push({".ugb-card__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","desktop",e.attributes,{importantSize:!0}),color:(0,s.appendImportant)((0,s.whiteIfDarkBlackIfLight)(g,n.columnBackground&&a)),textAlign:t("subtitleAlign","%s !important")},tablet:{".ugb-card__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("subtitleTabletAlign","%s !important")}},mobile:{".ugb-card__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("subtitleMobileAlign","%s !important")}}});const{descriptionColor:b="",showDescription:m=!0}=e.attributes;m&&o.push({".ugb-card__description":{...(0,s.createTypographyStyles)("description%s","desktop",e.attributes,{importantSize:!0}),color:(0,s.appendImportant)((0,s.whiteIfDarkBlackIfLight)(b,n.columnBackground&&a)),textAlign:t("descriptionAlign","%s !important")},tablet:{".ugb-card__description":{...(0,s.createTypographyStyles)("description%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("descriptionTabletAlign","%s !important")}},mobile:{".ugb-card__description":{...(0,s.createTypographyStyles)("description%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("descriptionMobileAlign","%s !important")}}});const{showButton:p=!0}=e.attributes;return p&&(o.push({...(0,s.createButtonStyleSet)("button%s","ugb-button",e.attributes)}),o.push(...(0,s.createResponsiveStyles)(".ugb-button-container","button%sAlign","textAlign","%s",e.attributes,{important:!0}))),n.imageSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-card__image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),n.titleSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-card__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),n.subtitleSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-card__subtitle","subtitle%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),n.descriptionSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-card__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),n.buttonSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-button-container","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),y().all(o)};var A=a(3749),w=a(3284);(0,i.addFilter)("stackable.card.edit.layouts","default",(e=>[...e,{label:(0,d.__)("Basic",g.i18n),value:"basic",image:"dist/images/block-card-basic.541dc8a.png"},{label:(0,d.__)("Plain",g.i18n),value:"plain",image:"dist/images/block-card-plain.ad2484f.png"},{label:(0,d.__)("Horizontal",g.i18n),value:"horizontal",image:"dist/images/block-card-horizontal.7f9e380.png",premium:!0},{label:(0,d.__)("Full",g.i18n),value:"full",image:"dist/images/block-card-full.7d0f3d1.png",premium:!0},{label:(0,d.__)("Faded",g.i18n),value:"faded",image:"dist/images/block-card-faded.9ebff54.png",premium:!0}])),(0,i.addFilter)("stackable.card.edit.inspector.layout.before","stackable/card",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(p.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,i.applyFilters)("stackable.card.edit.layouts",[]),onChange:e=>a({design:e})},g.showProNotice&&(0,l.createElement)(p.ProControlButton,null)))})),(0,i.addFilter)("stackable.card.edit.inspector.style.before","stackable/card",((e,t)=>{const{setAttributes:a}=t,{columns:n,borderRadius:o="",shadow:i="",showImage:r=!0,showTitle:c=!0,showSubtitle:u=!0,showDescription:b=!0,showButton:m=!0,image1Id:k="",image2Id:_="",image3Id:v="",imageBackgroundWidth:y="",imageBackgroundTabletWidth:C="",imageBackgroundMobileWidth:A="",imageBackgroundWidthUnit:w="%",imageBackgroundTabletWidthUnit:T="%",imageBackgroundMobileWidthUnit:B="%",titleTag:x="",titleColor:S="",descriptionColor:E="",subtitleColor:N=!0}=t.attributes,R=f(t);return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("General",g.i18n),initialOpen:!0},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Columns",g.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:3,className:"ugb--help-tip-general-columns",default:2}),!R.columnBackground&&R.borderRadius&&(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Border Radius",g.i18n),value:o,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),!R.columnBackground&&R.shadow&&(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Shadow / Outline",g.i18n),value:i,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"}),(0,l.createElement)(h.QA,{setAttributes:a,blockAttributes:t.attributes})),R.columnBackground&&(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("Container",g.i18n),id:"column-background",initialOpen:!1},(0,l.createElement)(p.ButtonIconPopoverControl,{label:(0,d.__)("Background",g.i18n),popoverLabel:(0,d.__)("Background",g.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,l.createElement)(p.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),R.border&&(0,l.createElement)(p.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),R.borderRadius&&(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Border Radius",g.i18n),value:o,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),R.shadow&&(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Shadow / Outline",g.i18n),value:i,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,l.createElement)(p.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,l.createElement)(p.ColumnPaddingControl,{label:(0,d.__)("Paddings",g.i18n),setAttributes:a,attributes:t.attributes}),R.imageSpacing&&(0,l.createElement)(h.n9,{attrNameTemplate:"image%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Image",g.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-image"})),R.titleSpacing&&(0,l.createElement)(h.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Title",g.i18n),min:-50,max:100,placeholder:"8",allowReset:!0,className:"ugb--help-tip-spacing-title"})),R.subtitleSpacing&&(0,l.createElement)(h.n9,{attrNameTemplate:"subtitle%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Subtitle",g.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),R.descriptionSpacing&&(0,l.createElement)(h.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Description",g.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),R.buttonSpacing&&(0,l.createElement)(h.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Button",g.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button"}))),(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("Image",g.i18n),checked:r,onChange:e=>a({showImage:e}),toggleOnSetAttributes:[...(0,s.createImageBackgroundAttributeNames)("image%s"),...(0,s.createResponsiveAttributeNames)("imageBackground%sHeight"),...(0,s.createResponsiveAttributeNames)("imageBackground%sWidth")],toggleAttributeName:"showImage"},(0,l.createElement)(p.ImageBackgroundControlsHelper,{attrNameTemplate:"image%s",setAttributes:a,blockAttributes:t.attributes,onChangeImage:null,onChangeSize:e=>{a({imageSize:e,image1Url:(0,s.getImageUrlFromCache)(k,e||"large"),image2Url:(0,s.getImageUrlFromCache)(_,e||"large"),image3Url:(0,s.getImageUrlFromCache)(v,e||"large")})}}),R.imageHeight&&(0,l.createElement)(h.n9,{attrNameTemplate:"imageBackground%sHeight",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Image Height",g.i18n),min:0,max:1e3,allowReset:!0,placeholder:"300",className:"ugb--help-tip-image-height-crop"})),R.imageWidth&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(p.WhenResponsiveScreen,null,(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Image Width",g.i18n),units:["px","%"],min:[0,0],max:[1e3,90],step:[1,1],allowReset:!0,value:y,unit:w,onChange:e=>a({imageBackgroundWidth:e}),onChangeUnit:e=>a({imageBackgroundWidthUnit:e}),placeholder:"50",className:"ugb--help-tip-image-width-crop"})),(0,l.createElement)(p.WhenResponsiveScreen,{screen:"tablet"},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Image Width",g.i18n),units:["px","%"],min:[0,0],max:[1e3,90],step:[1,1],allowReset:!0,value:C,unit:T,onChange:e=>a({imageBackgroundTabletWidth:e}),onChangeUnit:e=>a({imageBackgroundTabletWidthUnit:e}),placeholder:"50",className:"ugb--help-tip-image-width-crop"})),(0,l.createElement)(p.WhenResponsiveScreen,{screen:"mobile"},(0,l.createElement)(p.AdvancedRangeControl,{label:(0,d.__)("Image Width",g.i18n),units:["px","%"],min:[0,0],max:[1e3,90],step:[1,1],allowReset:!0,value:A,unit:B,onChange:e=>a({imageBackgroundMobileWidth:e}),onChangeUnit:e=>a({imageBackgroundMobileWidthUnit:e}),placeholder:"50",className:"ugb--help-tip-image-width-crop"})))),(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("Title",g.i18n),id:"title",checked:c,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,s.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,l.createElement)(p.HeadingButtonsControl,{value:x||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,l.createElement)(p.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:x||"h4"}),(0,l.createElement)(p.ColorPaletteControl,{value:S,onChange:e=>a({titleColor:e}),label:(0,d.__)("Title Color",g.i18n)}),(0,l.createElement)(h.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-alignment-title"}))),(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("Subtitle",g.i18n),id:"subtitle",checked:u,onChange:e=>a({showSubtitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("subtitle%s"),"subtitleColor",...(0,s.createResponsiveAttributeNames)("subtitle%sAlign")],toggleAttributeName:"showSubtitle"},(0,l.createElement)(p.TypographyControlHelper,{attrNameTemplate:"subtitle%s",setAttributes:a,blockAttributes:t.attributes,placeholder:e=>.8*e}),(0,l.createElement)(p.ColorPaletteControl,{value:N,onChange:e=>a({subtitleColor:e}),label:(0,d.__)("Subtitle Color",g.i18n)}),(0,l.createElement)(h.n9,{attrNameTemplate:"subtitle%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-alignment-title"}))),(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("Description",g.i18n),id:"description",checked:b,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,s.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,l.createElement)(p.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,l.createElement)(p.ColorPaletteControl,{value:E,onChange:e=>a({descriptionColor:e}),label:(0,d.__)("Description Color",g.i18n)}),(0,l.createElement)(h.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-alignment-description"}))),(0,l.createElement)(p.PanelAdvancedSettings,{title:(0,d.__)("Button",g.i18n),id:"button",checked:m,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,s.createButtonAttributeNames)("button%s"),...(0,s.createResponsiveAttributeNames)("button%sAlign")],toggleAttributeName:"showButton"},(0,l.createElement)(p.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,placeholder:"21"}),(0,l.createElement)(p.ControlSeparator,null),(0,l.createElement)(h.n9,{attrNameTemplate:"Button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(p.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-alignment-button"}))))}));const T=(0,A.compose)(k.FI,k.XQ,k.O0,(0,k.Q9)(),(0,k.lX)(["Title%sAlign","Subtitle%sAlign","Description%sAlign","Button%sAlign"]),(0,k.OB)(C,{editorMode:!0}),(0,k.UY)([[".ugb-card__title","title"],[".ugb-card__subtitle","subtitle"],[".ugb-card__description","description"],[".ugb-button","button"],[".ugb-card__item","column-background"]]),(0,w.withSelect)(((e,t)=>{(0,s.cacheImageData)(t.attributes.image1Id,e),(0,s.cacheImageData)(t.attributes.image2Id,e),(0,s.cacheImageData)(t.attributes.image3Id,e)})))((e=>{const{className:t,setAttributes:a,attributes:n}=e,{columns:r=2,design:c="basic",shadow:m="",imageSize:k="",titleTag:_="h4",showImage:v=!0,showTitle:y=!0,showSubtitle:C=!0,showDescription:A=!0,showButton:w=!0,buttonIcon:T=""}=n,B=f(e),x=u()([t,"ugb-card--v2",`ugb-card--design-${c}`,`ugb-card--columns-${r}`],(0,i.applyFilters)("stackable.card.mainclasses",{},e));return(0,l.createElement)(p.BlockContainer.Edit,{className:x,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,o.range)(1,r+1).map((t=>{const o=n[`image${t}Url`],r=n[`image${t}Id`],c=n[`title${t}`],f=n[`subtitle${t}`],x=n[`description${t}`],S=n[`button${t}Text`],E=u()(["ugb-card__item",`ugb-card__item${t}`],(0,i.applyFilters)("stackable.card.itemclasses",{[`ugb--shadow-${m}`]:B.columnBackground&&""!==m},e)),N=u()(["ugb-card__image"],(0,i.applyFilters)("stackable.card.imageclasses",{[`ugb--shadow-${m}`]:!B.columnBackground},e));return(0,l.createElement)(h.Gc,{className:E,backgroundAttrName:"column%s",blockProps:e,showBackground:B.columnBackground,index:t,key:t},v&&(0,l.createElement)(p.ImageUploadPlaceholder,{imageID:r,imageURL:o,imageSize:k,className:N,onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id})}}),(0,l.createElement)("div",{className:"ugb-card__content"},y&&(0,l.createElement)(b.RichText,{tagName:_||"h4",value:c,className:"ugb-card__title",placeholder:(0,d.__)("Title for This Block",g.i18n),onChange:e=>a({[`title${t}`]:e}),keepPlaceholderOnFocus:!0}),C&&(0,l.createElement)(b.RichText,{tagName:"p",value:f,className:"ugb-card__subtitle",onChange:e=>a({[`subtitle${t}`]:e}),placeholder:(0,d.__)("Subtitle for this block",g.i18n),keepPlaceholderOnFocus:!0}),A&&(0,l.createElement)(b.RichText,{tagName:"p",value:x,className:"ugb-card__description",onChange:e=>a({[`description${t}`]:e}),placeholder:(0,s.descriptionPlaceholder)("medium"),keepPlaceholderOnFocus:!0}),w&&(0,l.createElement)(h.Hr,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:e.attributes,text:S,icon:n[`button${t}Icon`]||T,onChange:e=>a({[`button${t}Text`]:e}),onChangeIcon:e=>a({[`button${t}Icon`]:e}),url:n[`button${t}Url`],newTab:n[`button${t}NewTab`],noFollow:n[`button${t}NoFollow`],sponsored:n[`button${t}Sponsored`],ugc:n[`button${t}Ugc`],onChangeUrl:e=>a({[`button${t}Url`]:e}),onChangeNewTab:e=>a({[`button${t}NewTab`]:e}),onChangeNoFollow:e=>a({[`button${t}NoFollow`]:e}),onChangeSponsored:e=>a({[`button${t}Sponsored`]:e}),onChangeUgc:e=>a({[`button${t}Ugc`]:e})})))})))})})),B=(0,A.compose)(k.FI,(0,k.OB)(C))((e=>{const{className:t,attributes:a}=e,{columns:n=2,design:r="basic",shadow:s="",titleTag:c="h4",showImage:g=!0,showTitle:d=!0,showSubtitle:m=!0,showDescription:k=!0,showButton:_=!0,buttonIcon:v=""}=a,y=f(e),C=u()([t,"ugb-card--v2",`ugb-card--design-${r}`,`ugb-card--columns-${n}`],(0,i.applyFilters)("stackable.card.mainclasses",{},e));return(0,l.createElement)(p.BlockContainer.Save,{className:C,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,o.range)(1,n+1).map((t=>{const n=a[`image${t}Url`],o=a[`title${t}`],r=a[`subtitle${t}`],p=a[`description${t}`],f=a[`button${t}Text`],C=u()(["ugb-card__item",`ugb-card__item${t}`],(0,i.applyFilters)("stackable.card.itemclasses",{[`ugb--shadow-${s}`]:y.columnBackground&&""!==s},e)),A=u()(["ugb-card__image"],(0,i.applyFilters)("stackable.card.imageclasses",{[`ugb--shadow-${s}`]:!y.columnBackground},e));return(0,l.createElement)(h.Gc,{className:C,backgroundAttrName:"column%s",blockProps:e,showBackground:y.columnBackground,index:t,key:t},g&&n&&(0,l.createElement)("div",{className:A}),(0,l.createElement)("div",{className:"ugb-card__content"},d&&!b.RichText.isEmpty(o)&&(0,l.createElement)(b.RichText.Content,{tagName:c||"h4",className:"ugb-card__title",value:o}),m&&!b.RichText.isEmpty(r)&&(0,l.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-card__subtitle",value:r}),k&&!b.RichText.isEmpty(p)&&(0,l.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-card__description",value:p}),_&&!b.RichText.isEmpty(f)&&(0,l.createElement)(h.Hr.Content,{attrNameTemplate:"button%s",blockAttributes:e.attributes,text:f,icon:a[`button${t}Icon`]||v,url:a[`button${t}Url`],newTab:a[`button${t}NewTab`],noFollow:a[`button${t}NoFollow`],sponsored:a[`button${t}Sponsored`],ugc:a[`button${t}Ugc`]})))})))})})),x={design:{type:"string",default:"basic"},columns:{type:"number",default:2},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,_.yA)("column%s"),...(0,s.createBorderAttributes)("column%s"),showImage:{type:"boolean",default:!0},...(0,s.createImageBackgroundAttributes)("image%s"),...(0,s.createAllCombinationAttributes)("imageBackground%s%s",{type:"number",default:""},["","Tablet","Mobile"],["Width","Height"]),...(0,s.createResponsiveAttributes)("imageBackground%sWidthUnit",{type:"string",default:"%"}),...(0,s.createAllCombinationAttributes)("image%sId",{type:"number",default:""},["1","2","3"]),...(0,s.createAllCombinationAttributes)("image%sUrl",{type:"string",default:""},["1","2","3"]),...(0,s.createAllCombinationAttributes)("title%s",{type:"string",source:"html",selector:".ugb-card__item%d .ugb-card__title",default:(0,d.__)("Title for This Block",g.i18n)},["1","2","3"]),showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("subtitle%s",{type:"string",source:"html",selector:".ugb-card__item%d .ugb-card__subtitle",default:(0,d.__)("Subtitle for This Block",g.i18n)},["1","2","3"]),showSubtitle:{type:"boolean",default:!0},...(0,s.createTypographyAttributes)("subtitle%s"),subtitleColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("description%s",{type:"string",source:"html",selector:".ugb-card__item%d .ugb-card__description",default:(0,s.descriptionPlaceholder)("medium")},["1","2","3"]),showDescription:{type:"boolean",default:!0},...(0,s.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},showButton:{type:"boolean",default:!0},...(0,s.createButtonAttributes)("button%s",{exclude:["Text","Url","NewTab","NoFollow","Sponsored","Ugc"]}),...(0,s.createButtonAttributes)("button1%s",{selector:".ugb-card__item1 .ugb-button"}),...(0,s.createButtonAttributes)("button2%s",{selector:".ugb-card__item2 .ugb-button"}),...(0,s.createButtonAttributes)("button3%s",{selector:".ugb-card__item3 .ugb-button"}),...(0,s.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Image","Title","Subtitle","Description","Button"],["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Image","Title","Subtitle","Description","Button"],["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("Column%sBackgroundColor",{type:"string",default:""},["1","2","3"]),hoverEffect:{type:"string",default:""}},S=JSON.parse('{"name":"ugb/card","title":"Card","description":"Describe a single subject in a small card. You can use this to describe your product, service or a person.","category":"stackable-v2","keywords":["Card"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:E,...N}=S,R={...N,title:N.title+" (v2)",icon:n.CardIcon,attributes:x,example:{attributes:{design:"basic",columns:1,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showImage:!0,imageSize:"large",imageBackgroundWidthUnit:"%",imageBackgroundTabletWidthUnit:"%",imageBackgroundMobileWidthUnit:"%",image1Id:475,image1Url:"https://source.unsplash.com/400x300/?abstract",title1:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",subtitle1:"Subtitle for This Block",showSubtitle:!0,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",description1:"Description for this block. Use this space for describing your block. Any text will do. Description for this block.",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showButton:!0,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",button1LineHeightUnit:"em",button1TabletLineHeightUnit:"em",button1MobileLineHeightUnit:"em",button1Text:"Button text",button1NewTab:!1,button2LineHeightUnit:"em",button2TabletLineHeightUnit:"em",button2MobileLineHeightUnit:"em",button2NewTab:!1,button3LineHeightUnit:"em",button3TabletLineHeightUnit:"em",button3MobileLineHeightUnit:"em",button3NewTab:!1,uniqueClass:"ugb-7974b2e",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{inserter:!g.v2disabledBlocks.includes(E),anchor:!0},deprecated:m,edit:T,save:B,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{paddings:!1,verticalColumnAlign:!0},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,i.applyFilters)("stackable.card.custom-css.default","")}}};(0,i.addFilter)("stackable.card.advanced-column-spacing.vertical-align.selector","stackable/card",(()=>".ugb-card__content"))},4610:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>x,settings:()=>E});var n=a(9467),o=a(2610),i=a(7545),l=a(8423),r=a(4863),s=a.n(r),c=a(8085),u=a(3882);const g=e=>{const{design:t="basic",align:a="",showBlockBackground:n=!1}=e.attributes;return(0,u.applyFilters)("stackable.column.show",{columnBackground:"plain"!==t,borderRadius:"plain"!==t&&!(!n&&"full"===a),border:"plain"!==t},e)},d=e=>{const t=(0,i.__getValue)(e.attributes),a=[],n=g(e),{uniqueClass:o=""}=e.attributes;n.borderRadius&&a.push({[`.${o}-column-wrapper`]:{borderRadius:t("borderRadius","%spx !important")},editor:{[`.${o}-wrapper > .ugb-video-background, .${o}-wrapper:before`]:{borderRadius:t("borderRadius","%spx !important")||"12px !important"}}}),n.border&&a.push({...(0,i.createBorderStyleSet)("column%s",`.${o}-column-wrapper`,e.attributes)}),a.push({...n.columnBackground?(0,l._H)("column%s",`${o}-column-wrapper`,e.attributes,{importantBackgroundColor:!0,importantBackgroundSize:!0}):{}}),a.push({saveOnly:(0,c.first)((0,i.createResponsiveStyles)("> .ugb-inner-block > .ugb-block-content > *","%sColumnContentVerticalAlign","justifyContent","%s",e.attributes,{important:!0})),editor:(0,c.first)((0,i.createResponsiveStyles)("> .ugb-inner-block > .ugb-block-content > .ugb-column__item","%sColumnContentVerticalAlign","justifyContent","%s",e.attributes,{important:!0}))}),a.push({[`.${o}-column-wrapper .ugb-column__content-wrapper`]:{width:(0,i.appendImportant)(t("contentWidth",`%s${t("contentWidthUnit")||"%"}`))},tablet:{[`.${o}-column-wrapper .ugb-column__content-wrapper`]:{width:(0,i.appendImportant)(t("contentTabletWidth",`%s${t("contentTabletWidthUnit")||"%"}`))}},mobile:{[`.${o}-column-wrapper .ugb-column__content-wrapper`]:{width:(0,i.appendImportant)(t("contentMobileWidth",`%s${t("contentMobileWidthUnit")||"%"}`))}}});const{columnPaddingUnit:r="px",tabletColumnPaddingUnit:u="px",mobileColumnPaddingUnit:d="px"}=e.attributes;a.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,i.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${r}`),paddingBottom:t("columnPaddingBottom",`%s${r}`),paddingRight:t("columnPaddingRight",`%s${r}`),paddingLeft:t("columnPaddingLeft",`%s${r}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,i.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${u}`),paddingRight:t("tabletColumnPaddingRight",`%s${u}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${u}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${u}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,i.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${d}`),paddingRight:t("mobileColumnPaddingRight",`%s${d}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${d}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${d}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-column__item":(0,i.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${r}`),paddingBottom:t("columnPaddingBottom",`%s${r}`),paddingRight:t("columnPaddingRight",`%s${r}`),paddingLeft:t("columnPaddingLeft",`%s${r}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-column__item":(0,i.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${u}`),paddingRight:t("tabletColumnPaddingRight",`%s${u}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${u}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${u}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-column__item":(0,i.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${d}`),paddingRight:t("mobileColumnPaddingRight",`%s${d}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${d}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${d}`)})}}});const{contentWidth:b="",contentTabletWidth:m="",contentMobileWidth:p=""}=e.attributes;b&&a.push({[`.${o}-column-wrapper`]:{alignItems:(0,i.appendImportant)(t("contentHorizontalAlign"))}}),(b||m)&&a.push({tablet:{[`.${o}-column-wrapper`]:{alignItems:(0,i.appendImportant)(t("contentTabletHorizontalAlign"))}}}),(b||m||p)&&a.push({mobile:{[`.${o}-column-wrapper`]:{alignItems:(0,i.appendImportant)(t("contentMobileHorizontalAlign"))}}});const{columnBackgroundColor:h="",headingColor:k="",bodyTextColor:_=""}=e.attributes;return a.push({"h1, h2, h3, h4, h5, h6":{color:t("headingColor")},"p, li, label, table":{color:t("bodyTextColor")},saveOnly:{"a, a:visited, a:focus":{color:t("linkColor")}},"a:hover":{color:t("linkHoverColor")}}),a.push({editor:{"a, a:visited, a:focus":{color:(0,i.appendImportant)(t("linkColor"))}}}),a.push({[`.${o}-column-wrapper > * > h1, .${o}-column-wrapper > * > h2, .${o}-column-wrapper > * > h3, .${o}-column-wrapper > * > h4, .${o}-column-wrapper > * > h5, .${o}-column-wrapper > * > h6`]:{color:(0,i.whiteIfDarkBlackIfLight)(k,n.columnBackground&&h)},[`.${o}-column-wrapper > * > p, .${o}-column-wrapper > * > ol li, .${o}-column-wrapper > * > ul li`]:{color:(0,i.whiteIfDarkBlackIfLight)(_,n.columnBackground&&h)},editor:{[`.${o}-column-wrapper > * > * > * > [data-type*="core/heading"] h1, .${o}-column-wrapper > * > * > * > [data-type*="core/heading"] h2, .${o}-column-wrapper > * > * > * > [data-type*="core/heading"] h3, .${o}-column-wrapper > * > * > * > [data-type*="core/heading"] h4, .${o}-column-wrapper > * > * > * > [data-type*="core/heading"] h5, .${o}-column-wrapper > * > * > * > [data-type*="core/heading"] h6`]:{color:(0,i.whiteIfDarkBlackIfLight)(k,n.columnBackground&&h)},[`.${o}-column-wrapper > * > * > * > [data-type*="core/paragraph"] p, .${o}-column-wrapper > * > * > * > [data-type*="core/list"] li`]:{color:(0,i.whiteIfDarkBlackIfLight)(_,n.columnBackground&&h)}}}),s().all(a)};var b=a(7200),m=a(9858),p=a(1414),h=a(4184),k=a.n(h),_=a(910),v=a(8003),y=a(78),f=a(3749),C=a(3284);(0,u.addFilter)("stackable.column.edit.layouts","default",(e=>[...e,{label:(0,v.__)("Basic",_.i18n),value:"basic",image:"dist/images/block-column-basic.6369628.png"},{label:(0,v.__)("Plain",_.i18n),value:"plain",image:"dist/images/block-column-plain.02a24e9.png"}])),(0,u.addFilter)("stackable.column.edit.inspector.layout.before","stackable/column",((e,t)=>{const{setAttributes:a}=t,{design:n="plain"}=t.attributes;return(0,o.createElement)(o.Fragment,null,e,(0,o.createElement)(b.PanelAdvancedSettings,{initialOpen:!0,title:(0,v.__)("Layout",_.i18n)},(0,o.createElement)(b.DesignControl,{selected:n,options:(0,u.applyFilters)("stackable.column.edit.layouts",[]),onChange:e=>a({design:e})})))})),(0,u.addFilter)("stackable.column.edit.inspector.style.before","stackable/column",((e,t)=>{const{setAttributes:a}=t,{contentWidth:n="",contentWidthUnit:i="%",contentTabletWidth:l="",contentTabletWidthUnit:r="%",contentMobileWidth:s="",contentMobileWidthUnit:c="%",contentHorizontalAlign:u="",contentTabletHorizontalAlign:d="",contentMobileHorizontalAlign:p="",borderRadius:h="",shadow:k="",headingColor:y="",bodyTextColor:f="",linkColor:C="",linkHoverColor:A=""}=t.attributes,w=g(t);return(0,o.createElement)(o.Fragment,null,e,(0,o.createElement)(b.PanelAdvancedSettings,{title:(0,v.__)("General",_.i18n),initialOpen:!0},(0,o.createElement)(m.n9,{attrNameTemplate:"%sColumnContentVerticalAlign",setAttributes:a,blockAttributes:t.attributes},(0,o.createElement)(b.AdvancedToolbarControl,{label:(0,v.__)("Content Vertical Align",_.i18n),controls:"flex-vertical"})),(0,o.createElement)(b.WhenResponsiveScreen,null,(0,o.createElement)(b.AdvancedRangeControl,{label:(0,v.__)("Content Width",_.i18n),allowReset:!0,placeholder:"100",units:["%","px"],min:[0,0],max:[100,1e3],step:[1,1],value:n,unit:i,onChange:e=>a({contentWidth:e}),onChangeUnit:e=>a({contentWidthUnit:e})})),(0,o.createElement)(b.WhenResponsiveScreen,{screen:"tablet"},(0,o.createElement)(b.AdvancedRangeControl,{label:(0,v.__)("Content Width",_.i18n),allowReset:!0,placeholder:"100",units:["%","px"],min:[0,0],max:[100,1e3],step:[1,1],value:l,unit:r,onChange:e=>a({contentTabletWidth:e}),onChangeUnit:e=>a({contentTabletWidthUnit:e})})),(0,o.createElement)(b.WhenResponsiveScreen,{screen:"mobile"},(0,o.createElement)(b.AdvancedRangeControl,{label:(0,v.__)("Content Width",_.i18n),allowReset:!0,placeholder:"100",units:["%","px"],min:[0,0],max:[100,1e3],step:[1,1],value:s,unit:c,onChange:e=>a({contentMobileWidth:e}),onChangeUnit:e=>a({contentMobileWidthUnit:e})})),""!==n&&(0,o.createElement)(b.WhenResponsiveScreen,null,(0,o.createElement)(b.AdvancedToolbarControl,{label:(0,v.__)("Content Horizontal Align",_.i18n),controls:"flex-horizontal",value:u,onChange:e=>a({contentHorizontalAlign:e})})),(""!==n||l)&&(0,o.createElement)(b.WhenResponsiveScreen,{screen:"tablet"},(0,o.createElement)(b.AdvancedToolbarControl,{label:(0,v.__)("Content Horizontal Align",_.i18n),controls:"flex-horizontal",value:d,onChange:e=>a({contentTabletHorizontalAlign:e})})),(""!==n||l||s)&&(0,o.createElement)(b.WhenResponsiveScreen,{screen:"mobile"},(0,o.createElement)(b.AdvancedToolbarControl,{label:(0,v.__)("Content Horizontal Align",_.i18n),controls:"flex-horizontal",value:p,onChange:e=>a({contentMobileHorizontalAlign:e})})),(0,o.createElement)(b.ControlSeparator,null),(0,o.createElement)(m.QA,{setAttributes:a,blockAttributes:t.attributes})),w.columnBackground&&(0,o.createElement)(b.PanelAdvancedSettings,{title:(0,v.__)("Container",_.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,o.createElement)(b.ButtonIconPopoverControl,{label:(0,v.__)("Background",_.i18n),popoverLabel:(0,v.__)("Background",_.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,o.createElement)(b.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),w.border&&(0,o.createElement)(b.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),w.borderRadius&&(0,o.createElement)(b.AdvancedRangeControl,{label:(0,v.__)("Border Radius",_.i18n),value:h,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),w.columnBackground&&(0,o.createElement)(b.AdvancedRangeControl,{label:(0,v.__)("Shadow / Outline",_.i18n),value:k,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,o.createElement)(b.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,o.createElement)(b.ColumnPaddingControl,{label:(0,v.__)("Paddings",_.i18n),setAttributes:a,attributes:t.attributes})),(0,o.createElement)(b.PanelAdvancedSettings,{title:(0,v.__)("Text Colors",_.i18n),initialOpen:!1},(0,o.createElement)(b.ColorPaletteControl,{value:y,onChange:e=>a({headingColor:e}),label:(0,v.__)("Heading Color",_.i18n)}),(0,o.createElement)(b.ColorPaletteControl,{value:f,onChange:e=>a({bodyTextColor:e}),label:(0,v.__)("Text Color",_.i18n)}),(0,o.createElement)(b.ColorPaletteControl,{value:C,onChange:e=>a({linkColor:e}),label:(0,v.__)("Link Color",_.i18n)}),(0,o.createElement)(b.ColorPaletteControl,{value:A,onChange:e=>a({linkHoverColor:e}),label:(0,v.__)("Link Hover Color",_.i18n)}),(0,o.createElement)("p",{className:"components-base-control__help"},(0,v.__)("The colors above might not apply to some nested blocks.",_.i18n))))}));const A=(0,f.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(),(0,p.lX)(),(0,p.OB)(d,{editorMode:!0}),(0,C.withSelect)(((e,t)=>{const{clientId:a}=t,{getBlockOrder:n}=e("core/block-editor");return{hasInnerBlocks:n(a).length>0}})))((e=>{const{className:t,hasInnerBlocks:a}=e,{design:n="plain",shadow:i="",uniqueClass:l=""}=e.attributes,r=k()([t,`ugb-column--design-${n}`],(0,u.applyFilters)("stackable.columns.mainclasses",{},e)),s=k()(["ugb-column__item",`${l}-column-wrapper`],(0,u.applyFilters)("stackable.column.itemclasses",{[`ugb--shadow-${i}`]:""!==i},e));return(0,o.createElement)(b.BlockContainer.Edit,{className:r,blockProps:e,render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.Gc,{className:s,backgroundAttrName:"column%s",blockProps:e},(0,o.createElement)("div",{className:"ugb-column__content-wrapper"},(0,o.createElement)(y.InnerBlocks,{templateLock:!1,renderAppender:a?void 0:()=>(0,o.createElement)(y.InnerBlocks.ButtonBlockAppender,null)}))))})})),w=(0,f.compose)(p.FI,(0,p.OB)(d))((e=>{const{className:t}=e,{design:a="plain",shadow:n="",uniqueClass:i=""}=e.attributes,l=k()([t,`ugb-column--design-${a}`],(0,u.applyFilters)("stackable.columns.mainclasses",{},e)),r=k()(["ugb-column__item",`${i}-column-wrapper`],(0,u.applyFilters)("stackable.column.itemclasses",{[`ugb--shadow-${n}`]:""!==n},e));return(0,o.createElement)(b.BlockContainer.Save,{className:l,blockProps:e,render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.Gc,{className:r,backgroundAttrName:"column%s",blockProps:e},(0,o.createElement)("div",{className:"ugb-column__content-wrapper"},(0,o.createElement)(y.InnerBlocks.Content,null))))})})),T={design:{type:"string",default:"plain"},...(0,i.createResponsiveAttributes)("%sColumnContentVerticalAlign",{type:"string",default:""}),...(0,i.createResponsiveAttributes)("content%sWidth",{type:"number",default:""}),...(0,i.createResponsiveAttributes)("content%sWidthUnit",{type:"string",default:""}),...(0,i.createResponsiveAttributes)("content%sHorizontalAlign",{type:"string",default:""}),borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,l.yA)("column%s"),...(0,i.createBorderAttributes)("column%s"),...(0,i.createAllCombinationAttributes)("%sColor",{type:"string",default:""},["Heading","BodyText","Link","LinkHover"])},B=JSON.parse('{"name":"ugb/column","title":"Advanced Column","description":"A single column within an advanced columns block. Get advanced options on how you want your column to look.","category":"stackable-v2","keywords":["Section rows"],"parent":["ugb/columns"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:x,...S}=B,E={...S,title:S.title+" (v2)",icon:n.ColumnIcon,attributes:T,supports:{inserter:!1,reusable:!1,html:!1,anchor:!0},edit:A,save:w,modules:{"advanced-general":!0,"advanced-block-spacing":{verticalAlign:!1},"advanced-column-spacing":{columnGap:!1,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"container-link":!0,"content-align":!0,"custom-css":{default:(0,u.applyFilters)("stackable.column.custom-css.default","")}}}},9375:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>N,settings:()=>P});var n=a(9467),o=a(910),i=a(8085),l=a(2527),r=a(3284);(0,l.Z)((()=>{window._wpLoadBlockEditor&&window._wpLoadBlockEditor.then((function(){(()=>{const{getBlockOrder:e,getSelectedBlock:t,getBlockParents:a}=(0,r.select)("core/block-editor"),{selectBlock:n,clearSelectedBlock:o}=(0,r.dispatch)("core/block-editor");let l=e();(0,r.subscribe)((()=>{const r=e();(0,i.isEqual)(l,r)||setTimeout((()=>{const e=t();if(e&&"ugb/column"===e.name){o();const t=a(e.clientId);t.length&&n(t[0])}}),0),l=r}))})()}))}));var s=a(2610),c=a(7545),u=a(4863),g=a.n(u),d=a(3882);const b=e=>{const{design:t="basic",columns:a=2,align:n=""}=e.attributes;return(0,d.applyFilters)("stackable.feature-grid.show",{reverseColumns:"grid"!==t&&"plain"!==t,rowGap:"plain"!==t&&a>2,noPaddings:"full"===n},e)},m=(e,t)=>"grid"===t?e<=5?2:e<=7?3:4:"uneven"===t?e<=3?2:3:"uneven-2"===t?e<=3?2:4===e?3:4:"tiled"===t?e<=3?2:4===e?3:5===e?4:5:e,p=e=>{const t=(0,c.__getValue)(e.attributes),a=[],{design:n="plain",columns:o=2,uniqueClass:l=""}=e.attributes,r=b(e),s=m(o,n);let u=(0,i.range)(s).map((e=>t(`columns${e+1}`)?(parseInt(t(`columns${e+1}`),10)/100*o).toFixed(2)+"fr":"1.00fr"));3===s&&(0,i.range)(s).every((e=>[33,34].includes(t(`columns${e+1}`))))?u=["1.00fr","1.00fr","1.00fr"]:6===s&&(0,i.range)(s).every((e=>[16,17].includes(t(`columns${e+1}`))))&&(u=["1.00fr","1.00fr","1.00fr","1.00fr","1.00fr","1.00fr"]);let d=(0,i.range)(s).map((e=>t(`tabletColumns${e+1}`)?(parseInt(t(`tabletColumns${e+1}`),10)/100*o).toFixed(2)+"fr":"1.00fr"));3===s&&(0,i.range)(s).every((e=>[33,34].includes(t(`tabletColumns${e+1}`))))?d=["1.00fr","1.00fr","1.00fr"]:6===s&&(0,i.range)(s).every((e=>[16,17].includes(t(`tabletColumns${e+1}`))))&&(d=["1.00fr","1.00fr","1.00fr","1.00fr","1.00fr","1.00fr"]),a.push({"> .ugb-inner-block > .ugb-block-content > .ugb-columns__item":{gridTemplateColumns:u.every((e=>"1.00fr"===e))?void 0:(0,c.appendImportant)(u.join(" "))},tablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-columns__item":{gridTemplateColumns:t("tabletColumns1")&&!d.every((e=>"1.00fr"===e))?(0,c.appendImportant)(d.join(" ")):void 0}},editor:{"> .ugb-inner-block > .ugb-block-content > .ugb-columns__item > .block-editor-inner-blocks > .block-editor-block-list__layout":{gridTemplateColumns:u.every((e=>"1.00fr"===e))?void 0:(0,c.appendImportant)(u.join(" "))},tablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-columns__item > .block-editor-inner-blocks > .block-editor-block-list__layout":{gridTemplateColumns:t("tabletColumns1")&&!d.every((e=>"1.00fr"===e))?(0,c.appendImportant)(d.join(" ")):void 0}}}});const{noPaddings:p=""}=e.attributes;r.noPaddings&&p&&a.push({"":{paddingLeft:(0,c.appendImportant)(0),paddingRight:(0,c.appendImportant)(0)}});const{height:h="",tabletHeight:k="",mobileHeight:_=""}=e.attributes;a.push({[`.${l}-content-wrapper`]:{minHeight:"half"===h?"50vh !important":"full"===h?"100vh !important":"custom"===h?(0,c.appendImportant)(t("heightNum","%s"+t("heightNumUnit","%s","px"))):void 0},tablet:{[`.${l}-content-wrapper`]:{minHeight:"half"===k?"50vh !important":"full"===k?"100vh !important":"custom"===k?(0,c.appendImportant)(t("tabletHeightNum","%s"+t("tabletHeightNumUnit","%s","px"))):void 0}},mobile:{[`.${l}-content-wrapper`]:{minHeight:"half"===_?"50vh !important":"full"===_?"100vh !important":"custom"===_?(0,c.appendImportant)(t("mobileHeightNum","%s"+t("mobileHeightNumUnit","%s","px"))):void 0}}}),a.push(...(0,c.createResponsiveStyles)(`.${l}-content-wrapper > .ugb-column`,"%sColumnVerticalAlign","alignItems","%s",e.attributes,{important:!0})),a.push(...(0,c.createResponsiveStyles)(`.${l}-content-wrapper > .ugb-column > .ugb-inner-block`,"%sColumnVerticalAlign","height","auto",e.attributes,{important:!0}));const{columnVerticalAlign:v="",tabletColumnVerticalAlign:y="",mobileColumnVerticalAlign:f=""}=e.attributes,C=`.${l}-content-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-editor-block-list__block`;return a.push({editor:{[`${C} > .ugb-column`]:{height:(0,c.appendImportant)(v&&"stretch"!==v?"auto":void 0)},[C]:{justifyContent:t("columnVerticalAlign")},tablet:{[`${C} > .ugb-column`]:{height:(0,c.appendImportant)(y&&"stretch"!==y?"auto":void 0)},[C]:{justifyContent:t("tabletColumnVerticalAlign")}},mobile:{[`${C} > .ugb-column`]:{height:(0,c.appendImportant)(f&&"stretch"!==f?"auto":void 0)},[C]:{justifyContent:t("mobileColumnVerticalAlign")}}}}),a.push({"h1, h2, h3, h4, h5, h6":{color:t("headingColor")},"p, li, label, table":{color:t("bodyTextColor")},saveOnly:{"a, a:visited, a:focus":{color:t("linkColor")}},"a:hover":{color:t("linkHoverColor")}}),a.push({editor:{"a, a:visited, a:focus":{color:(0,c.appendImportant)(t("linkColor"))}}}),g().all(a)};var h=a(7200),k=a(9858),_=a(1414),v=a(4184),y=a.n(v),f=a(8003),C=a(78),A=a(3749),w=a(378);const T={2:{columns1:50,columns2:50,columns3:"",columns4:"",columns5:"",columns6:""},3:{columns1:33,columns2:33,columns3:34,columns4:"",columns5:"",columns6:""},4:{columns1:25,columns2:25,columns3:25,columns4:25,columns5:"",columns6:""},5:{columns1:20,columns2:20,columns3:20,columns4:20,columns5:20,columns6:""},6:{columns1:16,columns2:17,columns3:17,columns4:17,columns5:17,columns6:16}};(0,d.addFilter)("stackable.columns.edit.layouts","default",(e=>[...e,{label:(0,f.__)("Grid",o.i18n),value:"grid",image:"dist/images/block-columns-grid.00c290c.png"},{label:(0,f.__)("Plain",o.i18n),value:"plain",image:"dist/images/block-columns-plain.4f998ec.png"},{label:(0,f.__)("Uneven",o.i18n),value:"uneven",image:"dist/images/block-columns-uneven.579e051.png",premium:!0},{label:(0,f.sprintf)((0,f._x)("%s %d","Nth Title",o.i18n),(0,f.__)("Uneven",o.i18n),2),value:"uneven-2",image:"dist/images/block-columns-uneven-2.b62f738.png",premium:!0},{label:(0,f.__)("Tiled",o.i18n),value:"tiled",image:"dist/images/block-columns-tiled.9170bc8.png",premium:!0}])),(0,d.addFilter)("stackable.columns.edit.inspector.layout.attributes","stackable/columns",(e=>{const{design:t,columns:a=2}=e,n=m(a,t);return{design:t,columns:a,...T[n]}})),(0,d.addFilter)("stackable.columns.edit.inspector.layout.before","stackable/columns",((e,t)=>{const{setAttributes:a}=t,{design:n="plain",columns:l=2}=t.attributes,r=m(l,n);return(0,s.createElement)(s.Fragment,null,e,(0,s.createElement)(h.PanelAdvancedSettings,{initialOpen:!0,title:(0,f.__)("Layout",o.i18n)},(0,s.createElement)(h.AdvancedRangeControl,{label:(0,f.__)("Columns",o.i18n),value:l,onChange:e=>{const t=m(e,n);a({columns:e,...T[t],...(0,i.range)(6).reduce(((e,t)=>({...e,[`tabletCoumns${t+1}`]:""})),{})})},min:2,max:"grid"!==n?6:8,default:2,className:"ugb--help-tip-general-columns"}),(0,d.applyFilters)("stackable.columns.edit.inspector.columns.after",null,t),(0,s.createElement)(h.WhenResponsiveScreen,{screens:["desktop","tablet"]},(0,s.createElement)(k.Gm,{columns:r,design:n,values:(0,i.range)(r).map((e=>t.attributes[`columns${e+1}`])),onChange:e=>{const t=e.reduce(((e,t,a)=>(e[`columns${a+1}`]=t,e)),{});a(t)}})),(0,s.createElement)(h.WhenResponsiveScreen,{screen:"tablet",screens:["desktop","tablet"]},(0,s.createElement)(k.Gm,{columns:r,design:n,values:(0,i.range)(r).map((e=>t.attributes[`tabletColumns${e+1}`])),onChange:e=>{const t=e.reduce(((e,t,a)=>(e[`tabletColumns${a+1}`]=t,e)),{});a(t)},forceBlank:!0})),(0,s.createElement)(h.ControlSeparator,null),(0,s.createElement)(h.DesignControl,{selected:n,label:(0,f.__)("Layouts",o.i18n),options:(0,d.applyFilters)("stackable.columns.edit.layouts",[]),onChange:e=>{a((0,d.applyFilters)("stackable.columns.edit.inspector.layout.attributes",{design:e,columns:l}))}}),o.showProNotice&&(0,s.createElement)(h.ProControlButton,null)))})),(0,d.addFilter)("stackable.columns.edit.inspector.style.before","stackable/columns",((e,t)=>{const{setAttributes:a}=t,{design:n="plain",columns:l=2,headingColor:r="",bodyTextColor:c="",linkColor:u="",linkHoverColor:g="",noPaddings:p=!1,height:_="",tabletHeight:v="",mobileHeight:y="",heightNum:C="",heightNumUnit:A="px",tabletHeightNum:w="",tabletHeightNumUnit:B="px",mobileHeightNum:x="",mobileHeightNumUnit:S="px"}=t.attributes,E=b(t),N=m(l,n);return(0,s.createElement)(s.Fragment,null,e,(0,s.createElement)(h.PanelAdvancedSettings,{title:(0,f.__)("General",o.i18n),initialOpen:!0},(0,s.createElement)(h.AdvancedRangeControl,{label:(0,f.__)("Columns",o.i18n),value:l,onChange:e=>{const t=m(e,n);a({columns:e,...T[t]})},min:2,max:"grid"!==n?6:8,default:2,className:"ugb--help-tip-general-columns"}),(0,d.applyFilters)("stackable.columns.edit.inspector.columns.after",null,t),(0,s.createElement)(h.WhenResponsiveScreen,{screens:["desktop","tablet"]},(0,s.createElement)(k.Gm,{columns:N,design:n,values:(0,i.range)(N).map((e=>t.attributes[`columns${e+1}`])),onChange:e=>{const t=e.reduce(((e,t,a)=>(e[`columns${a+1}`]=t,e)),{});a(t)}})),(0,s.createElement)(h.WhenResponsiveScreen,{screen:"tablet",screens:["desktop","tablet"]},(0,s.createElement)(k.Gm,{columns:N,design:n,values:(0,i.range)(N).map((e=>t.attributes[`tabletColumns${e+1}`])),onChange:e=>{const t=e.reduce(((e,t,a)=>(e[`tabletColumns${a+1}`]=t,e)),{});a(t)},forceBlank:!0})),(0,s.createElement)(h.ControlSeparator,null),E.noPaddings&&(0,s.createElement)(h.AdvancedToggleControl,{label:(0,f.__)("No Paddings",o.i18n),checked:p,onChange:e=>a({noPaddings:e}),className:"ugb--help-tip-no-padding"}),(0,d.applyFilters)("stackable.columns.edit.inspector.style.column-widths.after",null,t),(0,s.createElement)(k.n9,{attrNameTemplate:"%sHeight",setAttributes:a,blockAttributes:t.attributes},(0,s.createElement)(h.AdvancedSelectControl,{label:(0,f.__)("Height",o.i18n),options:[{label:(0,f.__)("Normal",o.i18n),value:""},{label:(0,f.__)("Half-screen height",o.i18n),value:"half"},{label:(0,f.__)("Full-screen height",o.i18n),value:"full"},{label:(0,f.__)("Custom height",o.i18n),value:"custom"}]})),"custom"===_&&(0,s.createElement)(h.WhenResponsiveScreen,null,(0,s.createElement)(h.AdvancedRangeControl,{label:(0,f.__)("Custom Height",o.i18n),units:["px","vh"],min:[0,0],max:[1500,100],step:[1,1],allowReset:!0,placeholder:"50",value:C,unit:A,onChange:e=>a({heightNum:e}),onChangeUnit:e=>a({heightNumUnit:e})})),"custom"===v&&(0,s.createElement)(h.WhenResponsiveScreen,{screen:"tablet"},(0,s.createElement)(h.AdvancedRangeControl,{label:(0,f.__)("Custom Height",o.i18n),units:["px","vh"],min:[0,0],max:[1500,100],step:[1,1],allowReset:!0,placeholder:"50",value:w,unit:B,onChange:e=>a({tabletHeightNum:e}),onChangeUnit:e=>a({tabletHeightNumUnit:e})})),"custom"===y&&(0,s.createElement)(h.WhenResponsiveScreen,{screen:"mobile"},(0,s.createElement)(h.AdvancedRangeControl,{label:(0,f.__)("Custom Height",o.i18n),units:["px","vh"],min:[0,0],max:[1500,100],step:[1,1],allowReset:!0,placeholder:"50",value:x,unit:S,onChange:e=>a({mobileHeightNum:e}),onChangeUnit:e=>a({mobileHeightNumUnit:e})})),(0,s.createElement)(k.n9,{attrNameTemplate:"%sColumnVerticalAlign",setAttributes:a,blockAttributes:t.attributes},(0,s.createElement)(h.AdvancedToolbarControl,{label:(0,f.__)("Column Vertical Align",o.i18n),controls:"flex-vertical-with-stretch"})),(0,s.createElement)(k.QA,{setAttributes:a,blockAttributes:t.attributes}),o.showProNotice&&(0,s.createElement)(h.ProControlButton,{title:(0,f.__)("Say Hello to More Column Options 👋",o.i18n),description:(0,f.__)("Swap columns and adjust column gaps. This feature is only available on Stackable Premium",o.i18n)})),(0,s.createElement)(h.PanelAdvancedSettings,{title:(0,f.__)("Text Colors",o.i18n),initialOpen:!1},(0,s.createElement)(h.ColorPaletteControl,{value:r,onChange:e=>a({headingColor:e}),label:(0,f.__)("Heading Color",o.i18n)}),(0,s.createElement)(h.ColorPaletteControl,{value:c,onChange:e=>a({bodyTextColor:e}),label:(0,f.__)("Text Color",o.i18n)}),(0,s.createElement)(h.ColorPaletteControl,{value:u,onChange:e=>a({linkColor:e}),label:(0,f.__)("Link Color",o.i18n)}),(0,s.createElement)(h.ColorPaletteControl,{value:g,onChange:e=>a({linkHoverColor:e}),label:(0,f.__)("Link Hover Color",o.i18n)}),(0,s.createElement)("p",{className:"components-base-control__help"},(0,f.__)("The colors above might not apply to some nested blocks.",o.i18n))))})),(0,d.addFilter)("stackable.columns.edit.advanced.responsive.after","stackable/columns",(e=>(0,s.createElement)(s.Fragment,null,e,o.showProNotice&&(0,s.createElement)(h.ProControlButton,{title:(0,f.__)("Say Hello to More Responsive Options 👋",o.i18n),description:(0,f.__)("Adjust the arrangement of your columns when collapsed on mobile. This feature is only available on Stackable Premium",o.i18n)})))),(0,d.addFilter)("stackable.columns.setAttributes","stackable/columns/columns-change",((e,t)=>{if(void 0===e.columns&&void 0===e.design)return e;let a=t.attributes.columns;void 0!==e.columns&&e.columns!==t.attributes.columns&&(a=e.columns),void 0!==e.design&&"grid"===t.attributes.design&&"grid"!==e.design&&t.attributes.columns>6&&(a=6);const n=(0,r.select)("core/block-editor").getBlock(t.clientId).innerBlocks,o=(0,i.range)(a||2).map((e=>n[e]||(0,w.createBlock)("ugb/column",{},[])));return(0,r.dispatch)("core/block-editor").replaceInnerBlocks(t.clientId,o,!1),e}));const B=(0,A.compose)((0,A.withState)({sortColumnHighlight:null}),_.FI,_.XQ,_.O0,(0,_.Q9)(),(0,_.lX)(),(0,_.OB)(p,{editorMode:!0}))((e=>{const{className:t,sortColumnHighlight:a}=e,{design:n="plain",columns:o=2,reverseColumns:l="",uniqueClass:r=""}=e.attributes,c=b(e),u=y()([t,`ugb-columns--design-${n}`,`ugb-columns--columns-${o}`],(0,d.applyFilters)("stackable.columns.mainclasses",{"ugb-columns--reverse":c.reverseColumns&&l,[`ugb-columns--highlight-${a+1}`]:null!==a},e)),g=y()(["ugb-columns__item",`${r}-content-wrapper`]),m=(0,i.range)(o).map((()=>["ugb/column"]));return(0,s.createElement)(h.BlockContainer.Edit,{className:u,blockProps:e,render:()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:g},(0,s.createElement)(C.InnerBlocks,{templateLock:"all",template:m,allowedBlocks:["ugb/column"]})))})})),x=(0,A.compose)(_.FI,(0,_.OB)(p))((e=>{const{className:t}=e,{design:a="plain",columns:n=3,reverseColumns:o="",uniqueClass:i=""}=e.attributes,l=b(e),r=y()([t,`ugb-columns--design-${a}`,`ugb-columns--columns-${n}`],(0,d.applyFilters)("stackable.columns.mainclasses",{"ugb-columns--reverse":l.reverseColumns&&o},e)),c=y()(["ugb-columns__item",`${i}-content-wrapper`]);return(0,s.createElement)(h.BlockContainer.Save,{className:r,blockProps:e,render:()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:c},(0,s.createElement)(C.InnerBlocks.Content,null)))})})),S={design:{type:"string",default:"plain"},columns:{type:"number",default:2},...(0,c.createAllCombinationAttributes)("%sColumns%s",{type:"number",default:""},["","Tablet"],["1","2","3","4","5","6"]),...(0,c.createResponsiveAttributes)("%sHeight",{type:"string",default:""}),...(0,c.createResponsiveAttributes)("%sHeightNum",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("%sHeightNumUnit",{type:"string",default:"px"}),collapsedRowGap:{type:"number",default:""},collapsedColumnsOrder:{type:"string",default:""},reverseColumns:{type:"boolean",default:""},...(0,c.createResponsiveAttributes)("%sColumnGap",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("%sRowGap",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("%sColumnVerticalAlign",{type:"string",default:""}),...(0,c.createAllCombinationAttributes)("%sColor",{type:"string",default:""},["Heading","BodyText","Link","LinkHover"])},E=JSON.parse('{"name":"ugb/columns","title":"Advanced Columns & Grid","description":"Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.","category":"stackable-v2","keywords":["Section rows"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:N,...R}=E,P={...R,title:R.title+" (v2)",icon:n.ColumnsIcon,attributes:S,example:{attributes:{design:"plain",columns:2,columns1:50,columns2:50,uniqueClass:"ugb-48fe2b1",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"},innerBlocks:[{clientId:"d7efdd61-2a2e-47ae-90ae-8896a3855043",name:"ugb/column",isValid:!0,validationIssues:[],originalContent:'<div class="wp-block-ugb-column ugb-column ugb-86df09f ugb-column--design-basic ugb-main-block"><div class="ugb-inner-block"><div class="ugb-block-content"><div class="ugb-column__item ugb-86df09f-column-wrapper"><div class="ugb-column__content-wrapper"></div></div></div></div></div>',attributes:{design:"basic",columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",uniqueClass:"ugb-86df09f",hideDesktop:!1,hideTablet:!1,hideMobile:!1},innerBlocks:[{clientId:"f9424a9c-6505-4b24-bba7-5f47154f06ee",name:"ugb/text",isValid:!0,validationIssues:[],originalContent:'<div class="wp-block-ugb-text ugb-text ugb-b4acf03 ugb-text--design-plain ugb-text--columns-1 ugb-main-block"><div class="ugb-inner-block"><div class="ugb-block-content"><div class="ugb-text__text-wrapper"><div class="ugb-text__text"><p class="ugb-text__text-1">Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.</p></div></div></div></div></div>',attributes:{design:"plain",columns:1,reverseTitle:!1,alignment:"center",showColumnRule:!1,showTitle:!1,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showSubtitle:!1,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",subtitleColor:"",subtitleOnTop:!1,text1:"Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",uniqueClass:"ugb-b4acf03",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1"}}]},{clientId:"35a9a6fb-fa22-45f0-8bd8-b55118218bc5",name:"ugb/column",isValid:!0,validationIssues:[],originalContent:'<div class="wp-block-ugb-column ugb-column ugb-9278b23 ugb-column--design-basic ugb-main-block"><div class="ugb-inner-block"><div class="ugb-block-content"><div class="ugb-column__item ugb-9278b23-column-wrapper"><div class="ugb-column__content-wrapper"></div></div></div></div></div>',attributes:{design:"basic",columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",uniqueClass:"ugb-9278b23",hideDesktop:!1,hideTablet:!1,hideMobile:!1},innerBlocks:[{clientId:"11a58c75-44ce-47ec-ba4c-12081a5f7bb3",name:"ugb/text",isValid:!0,validationIssues:[],originalContent:'<div class="wp-block-ugb-text ugb-text ugb-6e7c623 ugb-text--design-plain ugb-text--columns-1 ugb-main-block"><div class="ugb-inner-block"><div class="ugb-block-content"><div class="ugb-text__text-wrapper"><div class="ugb-text__text"><p class="ugb-text__text-1">Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.</p></div></div></div></div></div>',attributes:{design:"plain",columns:1,reverseTitle:!1,alignment:"center",showColumnRule:!1,showTitle:!1,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showSubtitle:!1,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",subtitleOnTop:!1,text1:"Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",uniqueClass:"ugb-6e7c623",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}}]}]},supports:{html:!1,inserter:!o.v2disabledBlocks.includes(N),anchor:!0},edit:B,save:x,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":!0,"content-align":!0,"custom-css":{default:(0,d.applyFilters)("stackable.columns.custom-css.default","")}}};(0,d.addFilter)("stackable.columns.setAttributes","stackable/columns/design",((e,t)=>{if(void 0===e.design)return e;const a=t.attributes;return"grid"!==e.design&&a.columns>6&&(e.columns=6),e})),(0,d.addFilter)("stackable.columns.setAttributes","stackable/columns/design",((e,t)=>{if(void 0===e.design)return e;const a=t.attributes;return"plain"!==e.design&&a.columns<4&&(e.columns=4),e}))},7278:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>x,settings:()=>E});var n=a(9467),o=a(910),i=a(2610),l=a(4184),r=a.n(l),s=a(3882),c=a(78);const u=[{attributes:{textColor:{type:"string"},contentAlign:{type:"string",default:""},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string",default:"#f1f1f1"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},height:{type:"string",default:"normal"},contentWidth:{type:"boolean",default:!1},contentLocation:{type:"string",default:"full"},verticalAlign:{type:"string",default:"center"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},align:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{contentAlign:a,textColor:n,backgroundColorType:o="",backgroundColor:l,backgroundColor2:u,backgroundColorDirection:g=0,backgroundType:d="",backgroundImageURL:b,backgroundOpacity:m,fixedBackground:p,height:h,contentLocation:k,verticalAlign:_,contentWidth:v,borderRadius:y=12,shadow:f=3,design:C=""}=e.attributes,A=r()([t,"ugb-container","ugb--background-opacity-"+1*Math.round(m/1)],(0,s.applyFilters)("stackable.container.mainclasses_1_17_3",{[`ugb-container--content-${a}`]:a,"ugb--has-background":l&&"transparent"!==l||b,"ugb--has-background-image":b,[`ugb-container--height-${h}`]:h,[`ugb-container--align-horizontal-${k}`]:k,"ugb--content-width":v,[`ugb--shadow-${f}`]:3!==f,"ugb--has-background-gradient":"gradient"===o,"ugb--has-background-video":"video"===d},C,e)),w={"--ugb-text-color":n||void 0,backgroundColor:l||void 0,backgroundImage:b?`url(${b})`:void 0,backgroundAttachment:p?"fixed":void 0,"--ugb-background-color":b||"gradient"===o?l:void 0,"--ugb-background-color2":"gradient"===o&&u?u:void 0,"--ugb-background-direction":"gradient"===o?`${g}deg`:void 0,"justify-content":"full"!==h&&"half"!==h||!_?void 0:_,borderRadius:12!==y?y:void 0};return(0,i.createElement)("div",{className:A,style:w},"video"===d&&(0,i.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:b}),(0,s.applyFilters)("stackable.container.save.output.before_1_17_3",null,C,e),(0,i.createElement)("div",{className:"ugb-container__wrapper"},(0,i.createElement)("div",{className:"ugb-container__content-wrapper"},(0,i.createElement)(c.InnerBlocks.Content,null))),(0,s.applyFilters)("stackable.container.save.output.after_1_17_3",null,C,e))},migrate:e=>{const t=e=>(e||"").replace(/\.ugb-container(\s*\{)/g,".ugb-container__wrapper$1");return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),design:"basic",headingColor:e.textColor,bodyTextColor:e.textColor,linkColor:e.textColor,linkHoverColor:e.textColor,columnBackgroundColorType:e.backgroundColorType,columnBackgroundColor:e.backgroundColor,columnBackgroundColor2:e.backgroundColor2,columnBackgroundGradientDirection:e.backgroundColorDirection,columnBackgroundMediaId:e.backgroundImageID,columnBackgroundMediaUrl:e.backgroundImageURL,columnBackgroundTintStrength:e.backgroundOpacity,columnFixedBackground:e.fixedBackground,restrictContentWidth:e.contentWidth,contentWidth:["left","center","right"].includes(e.contentLocation)?50:100,contentHorizontalAlign:"left"===e.contentLocation?"flex-start":"center"===e.contentLocation?"center":"right"===e.contentLocation?"flex-end":void 0,contentVerticalAlign:e.verticalAlign,marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}}];var g=a(7545),d=a(8423),b=a(4863),m=a.n(b);const p=e=>{const{design:t="basic",align:a="",showBlockBackground:n=!1,blockInnerWidth:o=""}=e.attributes;return(0,s.applyFilters)("stackable.container.show",{restrictContent:!n&&"full"===a||n&&"full"===o,columnBackground:"plain"!==t,borderRadius:"plain"!==t&&!(!n&&"full"===a),border:"plain"!==t,image:"basic"!==t&&"plain"!==t},e)},h=e=>{const t=(0,g.__getValue)(e.attributes),a=[],{uniqueClass:n=""}=e.attributes,o=p(e);o.borderRadius&&a.push({[`.${n}-wrapper.ugb-container__wrapper`]:{borderRadius:t("borderRadius","%spx !important")},editor:{[`.${n}-wrapper.ugb-container__wrapper > .ugb-video-background, .${n}-wrapper.ugb-container__wrapper:before`]:{borderRadius:t("borderRadius","%spx !important")||"12px !important"}}}),o.border&&a.push({...(0,g.createBorderStyleSet)("column%s",`.${n}-wrapper.ugb-container__wrapper`,e.attributes)}),a.push({saveOnly:{"> .ugb-inner-block > .ugb-block-content > *":{justifyContent:(0,g.appendImportant)(t("columnContentVerticalAlign"))},tablet:{"> .ugb-inner-block > .ugb-block-content > *":{justifyContent:(0,g.appendImportant)(t("tabletColumnContentVerticalAlign"))}},mobile:{"> .ugb-inner-block > .ugb-block-content > *":{justifyContent:(0,g.appendImportant)(t("mobileColumnContentVerticalAlign"))}}},editor:{"> .ugb-inner-block > .ugb-block-content > .ugb-container__wrapper":{justifyContent:(0,g.appendImportant)(t("columnContentVerticalAlign"))},tablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-container__wrapper":{justifyContent:(0,g.appendImportant)(t("tabletColumnContentVerticalAlign"))}},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-container__wrapper":{justifyContent:(0,g.appendImportant)(t("mobileColumnContentVerticalAlign"))}}}});const{height:i="",tabletHeight:l="",mobileHeight:r=""}=e.attributes;a.push({[`.${n}-wrapper > .ugb-container__side`]:{paddingTop:"short"===i?"35px !important":"tall"===i?"120px !important":void 0,paddingBottom:"short"===i?"35px !important":"tall"===i?"120px !important":void 0},[`.${n}-wrapper.ugb-container__wrapper`]:{minHeight:"half"===i?"50vh":"full"===i?"100vh":void 0,paddingTop:"short"===i||"tall"===i?"0 !important":void 0,paddingBottom:"short"===i||"tall"===i?"0 !important":void 0},tablet:{[`.${n}-wrapper > .ugb-container__side`]:{paddingTop:"short"===l?"35px !important":"tall"===l?"120px !important":void 0,paddingBottom:"short"===l?"35px !important":"tall"===l?"120px !important":void 0},[`.${n}-wrapper.ugb-container__wrapper`]:{minHeight:"half"===l?"50vh":"full"===l?"100vh":void 0,paddingTop:"short"===l||"tall"===l?"0 !important":void 0,paddingBottom:"short"===l||"tall"===l?"0 !important":void 0}},mobile:{[`.${n}-wrapper > .ugb-container__side`]:{paddingTop:"short"===r?"35px !important":"tall"===r?"120px !important":void 0,paddingBottom:"short"===r?"35px !important":"tall"===r?"120px !important":void 0},[`.${n}-wrapper.ugb-container__wrapper`]:{minHeight:"half"===r?"50vh":"full"===r?"100vh":void 0,paddingTop:"short"===r||"tall"===r?"0 !important":void 0,paddingBottom:"short"===r||"tall"===r?"0 !important":void 0}}});const c=i&&("half"===i||"full"===i),u=l&&("half"===l||"full"===l),b=r&&("half"===r||"full"===r);c&&a.push({[`.${n}-wrapper > .ugb-container__side`]:{justifyContent:t("contentVerticalAlign")}}),(c||u)&&a.push({tablet:{[`.${n}-wrapper > .ugb-container__side`]:{justifyContent:t("contentTabletVerticalAlign")}}}),(c||u||b)&&a.push({mobile:{[`.${n}-wrapper > .ugb-container__side`]:{justifyContent:t("contentMobileVerticalAlign")}}}),a.push({desktopTablet:{[`.${n}-content-wrapper.ugb-container__content-wrapper`]:{width:(0,g.appendImportant)(t("contentWidth","%s%"))}},tabletOnly:{[`.${n}-content-wrapper.ugb-container__content-wrapper`]:{width:(0,g.appendImportant)(t("contentTabletWidth","%s%"))}},mobile:{[`.${n}-content-wrapper.ugb-container__content-wrapper`]:{width:(0,g.appendImportant)(t("contentMobileWidth","%s%"))}}}),a.push({[`.${n}-wrapper > .ugb-container__side`]:{alignItems:(0,g.appendImportant)(t("contentHorizontalAlign"))},tablet:{[`.${n}-wrapper > .ugb-container__side`]:{alignItems:(0,g.appendImportant)(t("contentTabletHorizontalAlign"))}},mobile:{[`.${n}-wrapper > .ugb-container__side`]:{alignItems:(0,g.appendImportant)(t("contentMobileHorizontalAlign"))}}}),a.push({...o.columnBackground?(0,d._H)("column%s",`${n}-wrapper.ugb-container__wrapper`,e.attributes,{importantBackgroundColor:!0,importantBackgroundSize:!0}):{}});const{columnBackgroundColor:h="",headingColor:k="",bodyTextColor:_=""}=e.attributes;a.push({"h1, h2, h3, h4, h5, h6":{color:t("headingColor")},"p, li, label, table":{color:t("bodyTextColor")},saveOnly:{"a, a:visited, a:focus":{color:t("linkColor")}},"a:hover, a:hover:visited":{color:t("linkHoverColor")}}),a.push({editor:{"a, a:visited, a:focus":{color:(0,g.appendImportant)(t("linkColor"))},"a:hover":{color:(0,g.appendImportant)(t("linkHoverColor"))}}});const{columnPaddingUnit:v="px",tabletColumnPaddingUnit:y="px",mobileColumnPaddingUnit:f="px"}=e.attributes,C=(0,s.applyFilters)("stackable.container.spacing-paddings.selector","> .ugb-inner-block > .ugb-block-content > *",e),A=(0,s.applyFilters)("stackable.container.spacing-paddings.selector","> .ugb-inner-block > .ugb-block-content > .ugb-container__wrapper",e);return a.push({saveOnly:{desktopTablet:{[C]:(0,g.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${v}`),paddingBottom:t("columnPaddingBottom",`%s${v}`),paddingRight:t("columnPaddingRight",`%s${v}`),paddingLeft:t("columnPaddingLeft",`%s${v}`)})},tabletOnly:{[C]:(0,g.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${y}`),paddingRight:t("tabletColumnPaddingRight",`%s${y}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${y}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${y}`)})},mobile:{[C]:(0,g.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${f}`),paddingRight:t("mobileColumnPaddingRight",`%s${f}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${f}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${f}`)})}},editor:{desktopTablet:{[A]:(0,g.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${v}`),paddingBottom:t("columnPaddingBottom",`%s${v}`),paddingRight:t("columnPaddingRight",`%s${v}`),paddingLeft:t("columnPaddingLeft",`%s${v}`)})},tabletOnly:{[A]:(0,g.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${y}`),paddingRight:t("tabletColumnPaddingRight",`%s${y}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${y}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${y}`)})},mobile:{[A]:(0,g.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${f}`),paddingRight:t("mobileColumnPaddingRight",`%s${f}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${f}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${f}`)})}}}),a.push({[`.${n}-content-wrapper > h1, .${n}-content-wrapper > h2, .${n}-content-wrapper > h3, .${n}-content-wrapper > h4, .${n}-content-wrapper > h5, .${n}-content-wrapper > h6`]:{color:(0,g.whiteIfDarkBlackIfLight)(k,o.columnBackground&&h)},[`.${n}-content-wrapper > p, .${n}-content-wrapper > ol li, .${n}-content-wrapper > ul li`]:{color:(0,g.whiteIfDarkBlackIfLight)(_,o.columnBackground&&h)},editor:{[`.${n}-content-wrapper > * > * [data-type*="core/heading"] h1, .${n}-content-wrapper > * > * [data-type*="core/heading"] h2, .${n}-content-wrapper > * > * [data-type*="core/heading"] h3, .${n}-content-wrapper > * > * [data-type*="core/heading"] h4, .${n}-content-wrapper > * > * [data-type*="core/heading"] h5, .${n}-content-wrapper > * > * [data-type*="core/heading"] h6`]:{color:(0,g.whiteIfDarkBlackIfLight)(k,o.columnBackground&&h)},[`.${n}-content-wrapper > * > * [data-type*="core/paragraph"] p, .${n}-content-wrapper > * > * [data-type*="core/list"] li`]:{color:(0,g.whiteIfDarkBlackIfLight)(_,o.columnBackground&&h)}}}),m().all(a)};var k=a(7200),_=a(9858),v=a(1414),y=a(8003),f=a(3749),C=a(3284);(0,s.addFilter)("stackable.container.edit.layouts","default",(e=>[...e,{label:(0,y.__)("Basic",o.i18n),value:"basic",image:"dist/images/block-container-basic.819c1fd.png"},{label:(0,y.__)("Plain",o.i18n),value:"plain",image:"dist/images/block-container-plain.f30c27d.png"},{label:(0,y.__)("Image",o.i18n),value:"image",image:"dist/images/block-container-image.f5fcb5d.png",premium:!0},{label:(0,y.sprintf)((0,y._x)("%s %d","Nth Title",o.i18n),(0,y.__)("Image",o.i18n),2),value:"image2",image:"dist/images/block-container-image2.7523704.png",premium:!0},{label:(0,y.sprintf)((0,y._x)("%s %d","Nth Title",o.i18n),(0,y.__)("Image",o.i18n),3),value:"image3",image:"dist/images/block-container-image3.c734966.png",premium:!0}])),(0,s.addFilter)("stackable.container.edit.inspector.layout.before","stackable/container",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(k.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,s.applyFilters)("stackable.container.edit.layouts",[]),onChange:e=>a({design:e})},o.showProNotice&&(0,i.createElement)(k.ProControlButton,null)))})),(0,s.addFilter)("stackable.container.edit.inspector.style.before","stackable/container",((e,t)=>{const{setAttributes:a}=t,{borderRadius:n="",shadow:l="",restrictContentWidth:r=!1,height:c="",tabletHeight:u="",mobileHeight:g="",columnContentVerticalAlign:d="",tabletColumnContentVerticalAlign:b="",mobileColumnContentVerticalAlign:m="",contentWidth:h="",contentTabletWidth:v="",contentMobileWidth:f="",contentHorizontalAlign:C="",contentTabletHorizontalAlign:A="",contentMobileHorizontalAlign:w="",headingColor:T="",bodyTextColor:B="",linkColor:x="",linkHoverColor:S=""}=t.attributes,E=p(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(k.PanelAdvancedSettings,{title:(0,y.__)("General",o.i18n),initialOpen:!0},(0,i.createElement)(_.n9,{attrNameTemplate:"%sHeight",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(k.AdvancedSelectControl,{label:(0,y.__)("Height",o.i18n),options:[{label:(0,y.__)("Short",o.i18n),value:"short"},{label:(0,y.__)("Normal",o.i18n),value:"normal"},{label:(0,y.__)("Tall",o.i18n),value:"tall"},{label:(0,y.__)("Half-screen height",o.i18n),value:"half"},{label:(0,y.__)("Full-screen height",o.i18n),value:"full"}],defaultValue:"normal"})),("half"===c||"full"===c)&&(0,i.createElement)(k.WhenResponsiveScreen,null,(0,i.createElement)(k.AdvancedToolbarControl,{label:(0,y.__)("Content Vertical Align",o.i18n),controls:"flex-vertical",value:d,onChange:e=>a({columnContentVerticalAlign:e})})),("half"===c||"full"===c||"half"===u||"full"===u)&&(0,i.createElement)(k.WhenResponsiveScreen,{screen:"tablet"},(0,i.createElement)(k.AdvancedToolbarControl,{label:(0,y.__)("Content Vertical Align",o.i18n),controls:"flex-vertical",value:b,onChange:e=>a({tabletColumnContentVerticalAlign:e})})),("half"===c||"full"===c||"half"===u||"full"===u||"half"===g||"full"===g)&&(0,i.createElement)(k.WhenResponsiveScreen,{screen:"mobile"},(0,i.createElement)(k.AdvancedToolbarControl,{label:(0,y.__)("Content Vertical Align",o.i18n),controls:"flex-vertical",value:m,onChange:e=>a({mobileColumnContentVerticalAlign:e})})),E.restrictContent&&(0,i.createElement)(k.AdvancedToggleControl,{label:(0,y.__)("Restrict to Content Width",o.i18n),checked:r,onChange:e=>a({restrictContentWidth:e}),className:"ugb--help-tip-general-restrict-content"}),(0,i.createElement)(_.n9,{attrNameTemplate:"content%sWidth",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(k.AdvancedRangeControl,{label:(0,y.__)("Content Width",o.i18n)+" (%)",min:0,max:100,allowReset:!0,placeholder:"100"})),h&&h<100&&(0,i.createElement)(k.WhenResponsiveScreen,null,(0,i.createElement)(k.AdvancedToolbarControl,{label:(0,y.__)("Content Horizontal Align",o.i18n),controls:"flex-horizontal",value:C,onChange:e=>a({contentHorizontalAlign:e})})),(h&&h<100||v&&v<100)&&(0,i.createElement)(k.WhenResponsiveScreen,{screen:"tablet"},(0,i.createElement)(k.AdvancedToolbarControl,{label:(0,y.__)("Content Horizontal Align",o.i18n),controls:"flex-horizontal",value:A,onChange:e=>a({contentTabletHorizontalAlign:e})})),(h&&h<100||v&&v<100||f&&f<100)&&(0,i.createElement)(k.WhenResponsiveScreen,{screen:"mobile"},(0,i.createElement)(k.AdvancedToolbarControl,{label:(0,y.__)("Content Horizontal Align",o.i18n),controls:"flex-horizontal",value:w,onChange:e=>a({contentMobileHorizontalAlign:e})})),(0,i.createElement)(k.ControlSeparator,null),(0,i.createElement)(_.QA,{setAttributes:a,blockAttributes:t.attributes})),E.columnBackground&&(0,i.createElement)(k.PanelAdvancedSettings,{title:(0,y.__)("Container",o.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(k.ButtonIconPopoverControl,{label:(0,y.__)("Background",o.i18n),popoverLabel:(0,y.__)("Background",o.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(k.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),E.border&&(0,i.createElement)(k.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),E.borderRadius&&(0,i.createElement)(k.AdvancedRangeControl,{label:(0,y.__)("Border Radius",o.i18n),value:n,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),E.columnBackground&&(0,i.createElement)(k.AdvancedRangeControl,{label:(0,y.__)("Shadow / Outline",o.i18n),value:l,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(k.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(k.ColumnPaddingControl,{label:(0,y.__)("Paddings",o.i18n),setAttributes:a,attributes:t.attributes})),(0,s.applyFilters)("stackable.container.edit.inspector.style.column-background.after",null,t),(0,i.createElement)(k.PanelAdvancedSettings,{title:(0,y.__)("Text Colors",o.i18n),initialOpen:!1},(0,i.createElement)(k.ColorPaletteControl,{value:T,onChange:e=>a({headingColor:e}),label:(0,y.__)("Heading Color",o.i18n)}),(0,i.createElement)(k.ColorPaletteControl,{value:B,onChange:e=>a({bodyTextColor:e}),label:(0,y.__)("Text Color",o.i18n)}),(0,i.createElement)(k.ColorPaletteControl,{value:x,onChange:e=>a({linkColor:e}),label:(0,y.__)("Link Color",o.i18n)}),(0,i.createElement)(k.ColorPaletteControl,{value:S,onChange:e=>a({linkHoverColor:e}),label:(0,y.__)("Link Hover Color",o.i18n)}),(0,i.createElement)("p",{className:"components-base-control__help"},(0,y.__)("The colors above might not apply to some nested blocks.",o.i18n))))}));const A=(0,f.compose)(v.FI,v.XQ,v.O0,(0,v.Q9)(),(0,v.lX)(),(0,v.OB)(h,{editorMode:!0}),(0,v.UY)([[".ugb-container__wrapper","column-background"]]),(0,C.withSelect)(((e,t)=>{const{clientId:a}=t,{getBlockOrder:n}=e("core/block-editor");return{hasInnerBlocks:n(a).length>0}})),(0,C.withSelect)(((e,t)=>{(0,g.cacheImageData)(t.attributes.imageId,e)})))((e=>{const{className:t}=e,{design:a="basic",shadow:n="",restrictContentWidth:o=!1,uniqueClass:l=""}=e.attributes,u=p(e),g=r()([t,"ugb-container--v2",`ugb-container--design-${a}`],(0,s.applyFilters)("stackable.container.mainclasses",{},e)),d=r()(["ugb-container__wrapper",`${l}-wrapper`],(0,s.applyFilters)("stackable.container.wrapperClasses",{[`ugb--shadow-${n}`]:u.columnBackground&&""!==n,"ugb--restrict-content-width":u.restrictContent&&o},e)),b=r()(["ugb-container__content-wrapper",`${l}-content-wrapper`],(0,s.applyFilters)("stackable.container.itemclasses",{"ugb-content-wrapper":u.restrictContent&&o},e));return(0,i.createElement)(k.BlockContainer.Edit,{className:g,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(_.Gc,{className:d,backgroundAttrName:"column%s",blockProps:e,showBackground:u.columnBackground},(0,s.applyFilters)("stackable.container.edit.wrapper.output",null,e),(0,i.createElement)("div",{className:"ugb-container__side"},(0,i.createElement)("div",{className:b},(0,i.createElement)(c.InnerBlocks,{templateLock:!1,renderAppender:()=>e.hasInnerBlocks?(0,i.createElement)(c.InnerBlocks.DefaultBlockAppender,null):(0,i.createElement)(c.InnerBlocks.ButtonBlockAppender,null)})))))})})),w=(0,f.compose)(v.FI,(0,v.OB)(h))((e=>{const{className:t}=e,{design:a="",shadow:n="",restrictContentWidth:o=!1,uniqueClass:l=""}=e.attributes,u=p(e),g=r()([t,"ugb-container--v2",`ugb-container--design-${a}`],(0,s.applyFilters)("stackable.container.mainclasses",{},e)),d=r()(["ugb-container__wrapper",`${l}-wrapper`],(0,s.applyFilters)("stackable.container.wrapperClasses",{[`ugb--shadow-${n}`]:u.columnBackground&&""!==n,"ugb--restrict-content-width":u.restrictContent&&o},e)),b=r()(["ugb-container__content-wrapper",`${l}-content-wrapper`],(0,s.applyFilters)("stackable.container.itemclasses",{"ugb-content-wrapper":u.restrictContent&&o},e));return(0,i.createElement)(k.BlockContainer.Save,{className:g,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(_.Gc,{className:d,backgroundAttrName:"column%s",blockProps:e,showBackground:u.columnBackground},(0,s.applyFilters)("stackable.container.save.wrapper.output",null,e),(0,i.createElement)("div",{className:"ugb-container__side"},(0,i.createElement)("div",{className:b},(0,i.createElement)(c.InnerBlocks.Content,null)))))})})),T={restrictContentWidth:{type:"boolean",default:!1},design:{type:"string",default:"basic"},...(0,g.createResponsiveAttributes)("%sHeight",{type:"string",default:""}),height:{type:"string",default:"normal"},...(0,g.createResponsiveAttributes)("content%sWidth",{type:"number",default:""}),...(0,g.createAllCombinationAttributes)("content%s%sAlign",{type:"string",default:""},["Vertical","Horizontal"],["","Tablet","Mobile"]),borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,g.createBorderAttributes)("column%s"),...(0,d.yA)("column%s"),...(0,g.createImageBackgroundAttributes)("image%s"),imageSize:{type:"string",default:"full"},...(0,g.createAllCombinationAttributes)("Image%s%s",{type:"number",default:""},["","Tablet","Mobile"],["Height","Width"]),...(0,g.createResponsiveAttributes)("image%sHeightUnit",{type:"string",default:"px"}),...(0,g.createResponsiveAttributes)("image%sWidthUnit",{type:"string",default:"%"}),...(0,g.createAllCombinationAttributes)("%sColor",{type:"string",default:""},["Heading","BodyText","Link","LinkHover"]),imageCollapseOnMobile:{type:"boolean",default:!0},imageCollapseOnMobileHeight:{type:"number",default:300}},B=JSON.parse('{"name":"ugb/container","title":"Container","description":"A styled container that you can add other blocks inside. Use this to create unique layouts.","category":"stackable-v2","keywords":["Row layout"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:x,...S}=B,E={...S,title:S.title+" (v2)",icon:n.ContainerIcon,supports:{anchor:!0,align:["center","wide","full"],html:!1,inserter:!o.v2disabledBlocks.includes(x),editorsKitBlockNavigator:!0},deprecated:u,edit:A,save:w,attributes:T,example:{attributes:{restrictContentWidth:!1,design:"basic",height:"normal",columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",imageSize:"full",imageWidthUnit:"%",imageTabletWidthUnit:"%",imageMobileWidthUnit:"%",imageCollapseOnMobile:!0,imageCollapseOnMobileHeight:300,uniqueClass:"ugb-fed2b18",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0},innerBlocks:[{clientId:"037996f6-5e74-4eb6-8aad-b5dce1446d50",name:"ugb/text",isValid:!0,originalContent:'<div class="wp-block-ugb-text ugb-text ugb-c5deeb7 ugb-text--design-plain ugb-text--columns-1 ugb-main-block"><div class="ugb-inner-block"><div class="ugb-block-content"><div class="ugb-text__text-wrapper"><div class="ugb-text__text"><p class="ugb-text__text-1">Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.</p></div></div></div></div></div>',attributes:{design:"plain",columns:1,reverseTitle:!1,alignment:"center",showColumnRule:!1,showTitle:!1,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showSubtitle:!1,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",subtitleColor:"",subtitleOnTop:!1,text1:"Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",uniqueClass:"ugb-c5deeb7",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1"}}]},modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{columnGap:!1,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"container-link":{classFilter:"wrapperClasses"},"content-align":!0,"custom-css":{default:(0,s.applyFilters)("stackable.container.custom-css.default","")}}};(0,s.addFilter)("stackable.container.advanced-column-spacing.vertical-align","stackable/container",(()=>({})))},2053:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>x,settings:()=>E});var n=a(9467),o=a(8085),i=a(3882);(0,i.addFilter)("stackable.count-up.design.no-text-attributes","stackable/count-up",(e=>(0,o.omit)(e,["title1","title2","title3","title4","countText1","countText2","countText3","countText4","description1","description2","description3","description4"]))),(0,i.addFilter)("stackable.count-up.design.filtered-block-attributes","stackable/count-up",(e=>({...(0,o.omit)(e,["icon1","icon2","icon3","icon4"])})));var l=a(2610),r=a(7545),s=a(8003),c=a(4184),u=a.n(c),g=a(78);const d=[{attributes:{columns:{type:"number",default:4},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},title1:{source:"html",selector:".ugb-countup__item:nth-of-type(1) .ugb-countup__title",default:(0,s.__)("Title")},title2:{source:"html",selector:".ugb-countup__item:nth-of-type(2) .ugb-countup__title",default:(0,s.__)("Title")},title3:{source:"html",selector:".ugb-countup__item:nth-of-type(3) .ugb-countup__title",default:(0,s.__)("Title")},title4:{source:"html",selector:".ugb-countup__item:nth-of-type(4) .ugb-countup__title",default:(0,s.__)("Title")},countText1:{source:"html",selector:".ugb-countup__item:nth-of-type(1) .ugb-countup__counter",default:"$99.99"},countText2:{source:"html",selector:".ugb-countup__item:nth-of-type(2) .ugb-countup__counter",default:"1,234"},countText3:{source:"html",selector:".ugb-countup__item:nth-of-type(3) .ugb-countup__counter",default:"1,234.56"},countText4:{source:"html",selector:".ugb-countup__item:nth-of-type(4) .ugb-countup__counter",default:"£99.99"},description1:{source:"html",selector:".ugb-countup__item:nth-of-type(1) .ugb-countup__description",default:(0,s.__)("Description")},description2:{source:"html",selector:".ugb-countup__item:nth-of-type(2) .ugb-countup__description",default:(0,s.__)("Description")},description3:{source:"html",selector:".ugb-countup__item:nth-of-type(3) .ugb-countup__description",default:(0,s.__)("Description")},description4:{source:"html",selector:".ugb-countup__item:nth-of-type(4) .ugb-countup__description",default:(0,s.__)("Description")},textColor:{type:"string"},countColor:{type:"string"},countSize:{type:"number",default:40},countFont:{type:"string",default:"theme"},countFontWeight:{type:"string",default:"400"},contentWidth:{type:"boolean",default:!1},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},align:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},title:{type:"string"},counter:{type:"string"},des:{type:"string"},fontSize:{type:"number"},headingColor:{type:"string"},desColor:{type:"string"},color:{type:"string"}},save:e=>{const{className:t,attributes:a}=e,{columns:n,backgroundColorType:o="",backgroundColor:s,backgroundColor2:c,backgroundColorDirection:d=0,backgroundType:b="",backgroundImageURL:m,fixedBackground:p,backgroundOpacity:h=5,textColor:k,countColor:_,countSize:v,contentWidth:y,design:f="plain",align:C,borderRadius:A=12,shadow:w=3,countFont:T,countFontWeight:B}=a,x=(0,i.applyFilters)("stackable.count-up.edit.show_1_15_4",{background:"plain"!==f},f,e),S="basic"===f,E=u()([t.split(" ").filter((e=>"ugb-count-up"!==e)),"ugb-countup","ugb-countup--v3",`ugb-countup--columns-${n}`,"ugb--background-opacity-"+1*Math.round(h/1)],(0,i.applyFilters)("stackable.count-up.mainclasses_1_15_4",{"ugb--has-background-image":m,"ugb--content-width":"full"===C&&y,[`ugb-countup--design-${f}`]:"plain"!==f,[`ugb--shadow-${w}`]:"basic"===f&&3!==w,"ugb--has-background-gradient":"basic"===f&&"gradient"===o,"ugb--has-background-video":"basic"===f&&"video"===b},f,e)),N=S?{backgroundColor:s||void 0,backgroundImage:m?`url(${m})`:void 0,"--ugb-background-color":m||"gradient"===o?s:void 0,"--ugb-background-color2":"gradient"===o&&c?c:void 0,"--ugb-background-direction":"gradient"===o?`${d}deg`:void 0,borderRadius:12!==A?A:void 0}:{},R=(0,i.applyFilters)("stackable.count-up.mainstyle_1_15_4",{backgroundAttachment:p?"fixed":void 0,...N},f,e),P={color:_||void 0,fontSize:v?v+"px":void 0,fontWeight:B||void 0};var I;return T&&"theme"!==T&&(P.fontFamily="serif"===(I=T)?'"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':"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"'),(0,l.createElement)("div",{className:E,style:R},x.background&&"video"===b&&(0,l.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:m}),(0,i.applyFilters)("stackable.count-up.save.output.before_1_15_4",null,f,e),(0,l.createElement)("div",{className:"ugb-content-wrapper"},(0,r.range)(1,n+1).map((t=>{const n=a[`title${t}`],o=a[`description${t}`],r=a[`countText${t}`],s=!g.RichText.isEmpty(n)&&(0,l.createElement)(g.RichText.Content,{tagName:"h4",className:"ugb-countup__title",style:{color:k||void 0},value:n}),c=!g.RichText.isEmpty(r)&&(0,l.createElement)(g.RichText.Content,{tagName:"div",className:"ugb-countup__counter",style:P,value:r,"data-duration":"1000","data-delay":"16"}),u=!g.RichText.isEmpty(o)&&(0,l.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-countup__description",style:{color:k||void 0},value:o}),d={i:t,titleComp:s,countComp:c,descriptionComp:u};return(0,i.applyFilters)("stackable.count-up.save.output_1_15_4",(0,l.createElement)("div",{className:"ugb-countup__item",key:t},s,c,u),d,t,e)}))))},migrate:e=>{const t=e=>(e||"").replace(/\.ugb-countup([\s\{\[\.\#\:])/g,".ugb-count-up$1");return{...e,columns:e.columns?e.columns:4,columnBackgroundColorType:e.backgroundColorType?e.backgroundColorType:void 0,columnBackgroundColor:e.backgroundColor?e.backgroundColor:void 0,columnBackgroundColor2:e.backgroundColor2?e.backgroundColor2:void 0,columnBackgroundGradientDirection:e.backgroundColorDirection?e.backgroundColorDirection:void 0,columnBackgroundMediaID:e.backgroundImageID?e.backgroundImageID:void 0,columnBackgroundMediaURL:e.backgroundImageURL?e.backgroundImageURL:void 0,columnBackgroundTintStrength:e.backgroundOpacity?e.backgroundOpacity:void 0,columnFixedBackground:e.fixedBackground?e.fixedBackground:void 0,numberColor:e.countColor?e.countColor:void 0,numberFontSize:e.countSize?e.countSize:void 0,numberFontFamily:"theme"===e.countFont?"":e.countFont?e.countFont:void 0,numberFontWeight:e.countFontWeight?e.countFontWeight:void 0,titleColor:e.textColor?e.textColor:void 0,descriptionColor:e.textColor?e.textColor:void 0,showBlockBackground:"full"===e.align&&"basic"===e.design||void 0,blockInnerWidth:"full"!==e.align?void 0:!0===e.contentWidth?"center":"full",customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}}];var b=a(7200),m=a(9858),p=a(1414),h=a(8423);const k=e=>{const{design:t="plain"}=e.attributes;return(0,i.applyFilters)("stackable.count-up.show",{columnBackground:"boxed"===t,border:"boxed"===t},e)};var _=a(4863),v=a.n(_);const y=e=>{const t=(0,r.__getValue)(e.attributes),a=k(e),n=[];n.push({".ugb-countup__icon, .ugb-countup__counter, .ugb-countup__title, .ugb-countup__description":{textAlign:t("contentAlign")},tablet:{".ugb-countup__icon, .ugb-countup__counter, .ugb-countup__title, .ugb-countup__description":{textAlign:t("tabletContentAlign")}},mobile:{".ugb-countup__icon, .ugb-countup__counter, .ugb-countup__title, .ugb-countup__description":{textAlign:t("mobileContentAlign")}}}),a.columnBackground&&n.push({".ugb-countup__item":{borderRadius:t("borderRadius","%spx !important")}}),a.border&&n.push({...(0,r.createBorderStyleSet)("column%s",".ugb-countup__item",e.attributes)}),n.push({...a.columnBackground?(0,h._H)("column%s","ugb-countup__item",e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:o="px",tabletColumnPaddingUnit:i="px",mobileColumnPaddingUnit:l="px"}=e.attributes;n.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${o}`),paddingBottom:t("columnPaddingBottom",`%s${o}`),paddingRight:t("columnPaddingRight",`%s${o}`),paddingLeft:t("columnPaddingLeft",`%s${o}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${i}`),paddingRight:t("tabletColumnPaddingRight",`%s${i}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${i}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${i}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${l}`),paddingRight:t("mobileColumnPaddingRight",`%s${l}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${l}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${l}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-countup__item":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${o}`),paddingBottom:t("columnPaddingBottom",`%s${o}`),paddingRight:t("columnPaddingRight",`%s${o}`),paddingLeft:t("columnPaddingLeft",`%s${o}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-countup__item":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${i}`),paddingRight:t("tabletColumnPaddingRight",`%s${i}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${i}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${i}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-countup__item":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${l}`),paddingRight:t("mobileColumnPaddingRight",`%s${l}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${l}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${l}`)})}}});const{showIcon:s=!1,showNumber:c=!0,showTitle:u=!0,showDescription:g=!0}=e.attributes;s&&n.push(...(0,r.createResponsiveStyles)(".ugb-countup__icon","icon%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),c&&n.push(...(0,r.createResponsiveStyles)(".ugb-countup__counter","number%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),u&&n.push(...(0,r.createResponsiveStyles)(".ugb-countup__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),g&&n.push(...(0,r.createResponsiveStyles)(".ugb-countup__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0}));const{columnBackgroundColor:d="",showBlockBackground:b=!1,blockBackgroundBackgroundColor:m="",iconAlign:p="",contentAlign:_="",iconTabletAlign:y="",tabletContentAlign:f="",iconMobileAlign:C="",mobileContentAlign:A=""}=e.attributes;s&&(n.push({".ugb-countup__icon svg:not(.ugb-custom-icon)":{color:(0,r.whiteIfDark)(t("iconColor"),a.columnBackground?d:b?m:"")},".ugb-countup__icon":{marginLeft:""!==p||""!==_?(0,r.appendImportant)((0,r.marginLeftAlign)(p||_)):void 0,marginRight:""!==p||""!==_?(0,r.appendImportant)((0,r.marginRightAlign)(p||_)):void 0},tablet:{".ugb-countup__icon":{marginLeft:""!==y||""!==f?(0,r.appendImportant)((0,r.marginLeftAlign)(y||f)):void 0,marginRight:""!==y||""!==f?(0,r.appendImportant)((0,r.marginRightAlign)(y||f)):void 0}},mobile:{".ugb-countup__icon":{marginLeft:""!==C||""!==A?(0,r.appendImportant)((0,r.marginLeftAlign)(C||A)):void 0,marginRight:""!==C||""!==A?(0,r.appendImportant)((0,r.marginRightAlign)(C||A)):void 0}}}),n.push({...(0,r.createIconStyleSet)("icon%s","ugb-countup__icon",e.attributes)}));const{titleColor:w=""}=e.attributes;u&&n.push({".ugb-countup__title":{...(0,r.createTypographyStyles)("title%s","desktop",e.attributes),color:(0,r.whiteIfDark)(w,a.columnBackground?d:b?m:""),textAlign:t("titleAlign")},tablet:{".ugb-countup__title":{...(0,r.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")}},mobile:{".ugb-countup__title":{...(0,r.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")}}});const{numberColor:T=""}=e.attributes;c&&n.push({".ugb-countup__counter":{...(0,r.createTypographyStyles)("number%s","desktop",e.attributes,{importantSize:!0}),color:(0,r.whiteIfDark)(T,a.columnBackground?d:b?m:""),textAlign:t("numberAlign")},tablet:{".ugb-countup__counter":{...(0,r.createTypographyStyles)("number%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("numberTabletAlign")}},mobile:{".ugb-countup__counter":{...(0,r.createTypographyStyles)("number%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("numberMobileAlign")}}});const{descriptionColor:B=""}=e.attributes;return g&&n.push({".ugb-countup__description":{...(0,r.createTypographyStyles)("description%s","desktop",e.attributes),color:(0,r.whiteIfDark)(B,a.columnBackground?d:b?m:""),textAlign:t("descriptionAlign")},tablet:{".ugb-countup__description":{...(0,r.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:t("descriptionTabletAlign")}},mobile:{".ugb-countup__description":{...(0,r.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:t("descriptionMobileAlign")}}}),v().all(n)};var f=a(910),C=a(3749);(0,i.addFilter)("stackable.count-up.edit.layouts","default",(e=>[...e,{label:(0,s.__)("Plain",f.i18n),value:"plain",image:"dist/images/block-count-up-plain.02d8990.png"},{label:(0,s.sprintf)((0,s._x)("%s %d","Nth Title",f.i18n),(0,s.__)("Plain",f.i18n),2),value:"plain-2",image:"dist/images/block-count-up-plain-2.0f3e152.png"},{label:(0,s.__)("Side",f.i18n),value:"side",image:"dist/images/block-count-up-side.b0e7f65.png",premium:!0},{label:(0,s.__)("Abstract",f.i18n),value:"abstract",image:"dist/images/block-count-up-abstract.5995f2d.png",premium:!0},{label:(0,s.__)("Boxed",f.i18n),value:"boxed",image:"dist/images/block-count-up-boxed.4c6ec66.png",premium:!0}])),(0,i.addFilter)("stackable.count-up.edit.inspector.layout.before","stackable/count-up",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(b.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,i.applyFilters)("stackable.count-up.edit.layouts",[]),onChange:e=>a({design:e})},f.showProNotice&&(0,l.createElement)(b.ProControlButton,null)))})),(0,i.addFilter)("stackable.count-up.edit.inspector.style.before","stackable/count-up",((e,t)=>{const{setAttributes:a}=t,{columns:n,borderRadius:i="",shadow:c="",showNumber:u=!0,showTitle:g=!0,showDescription:d=!0,showIcon:p=!1,numberColor:h="",titleTag:_="",titleColor:v="",descriptionColor:y=""}=t.attributes,C=k(t);return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("General",f.i18n),initialOpen:!0},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Columns",f.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:4,className:"ugb--help-tip-general-columns",default:2}),(0,l.createElement)(m.QA,{setAttributes:a,blockAttributes:t.attributes})),C.columnBackground&&(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Container",f.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,l.createElement)(b.ButtonIconPopoverControl,{label:(0,s.__)("Background",f.i18n),popoverLabel:(0,s.__)("Background",f.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,l.createElement)(b.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),C.border&&(0,l.createElement)(b.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),C.columnBackground&&(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Border Radius",f.i18n),value:i,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),C.columnBackground&&(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Shadow / Outline",f.i18n),value:c,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,l.createElement)(b.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,l.createElement)(b.ColumnPaddingControl,{label:(0,s.__)("Paddings",f.i18n),setAttributes:a,attributes:t.attributes}),p&&(0,l.createElement)(m.n9,{attrNameTemplate:"icon%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Icon",f.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-icon"})),g&&(0,l.createElement)(m.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Title",f.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),u&&(0,l.createElement)(m.n9,{attrNameTemplate:"number%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Number",f.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),d&&(0,l.createElement)(m.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Description",f.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-description"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Icon",f.i18n),id:"icon",checked:p,onChange:e=>a({showIcon:e}),toggleOnSetAttributes:["icon1","icon2","icon3","icon4",...(0,r.createIconAttributeNames)("icon%s"),...(0,r.createResponsiveAttributeNames)("icon%sAlign")],toggleAttributeName:"showIcon"},(0,o.range)(1,n+1).map((e=>(0,l.createElement)(b.IconControl,{key:e,label:(0,s.sprintf)((0,s._x)("%s #%d","Panel title",f.i18n),(0,s.__)("Icon",f.i18n),e),value:t.attributes[`icon${e}`],onChange:t=>a({[`icon${e}`]:t})}))),(0,l.createElement)(b.IconControlsHelper,{attrNameTemplate:"icon%s",setAttributes:a,blockAttributes:t.attributes,onChangeIcon:!1,numPaths:Math.max(...Object.values((0,o.pick)(t.attributes,["icon1","icon2","icon3","icon4"])).map((e=>(0,r.numShapesInSvg)(e)||1)))}),(0,l.createElement)(m.n9,{attrNameTemplate:"Icon%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",f.i18n),className:"ugb--help-tip-alignment-icon"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Title",f.i18n),id:"title",checked:g,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,r.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,l.createElement)(b.HeadingButtonsControl,{value:_||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,l.createElement)(b.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:_||"h4"}),(0,l.createElement)(b.ColorPaletteControl,{value:v,onChange:e=>a({titleColor:e}),label:(0,s.__)("Title Color",f.i18n)}),(0,l.createElement)(m.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",f.i18n),className:"ugb--help-tip-alignment-title"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Number",f.i18n),id:"number",checked:u,onChange:e=>a({showNumber:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("number%s"),"numberColor",...(0,r.createResponsiveAttributeNames)("Number%sAlign")],toggleAttributeName:"showNumber"},(0,l.createElement)(b.TypographyControlHelper,{attrNameTemplate:"number%s",setAttributes:a,blockAttributes:t.attributes,fontSizeProps:{max:[150,10]},placeholder:["40","1.5"]}),(0,l.createElement)(b.ColorPaletteControl,{value:h,onChange:e=>a({numberColor:e}),label:(0,s.__)("Number Color",f.i18n)}),(0,l.createElement)(m.n9,{attrNameTemplate:"Number%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",f.i18n),className:"ugb--help-tip-alignment-description"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Description",f.i18n),id:"description",checked:d,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,r.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,l.createElement)(b.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,l.createElement)(b.ColorPaletteControl,{value:y,onChange:e=>a({descriptionColor:e}),label:(0,s.__)("Description Color",f.i18n)}),(0,l.createElement)(m.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",f.i18n),className:"ugb--help-tip-alignment-description"}))))}));const A=(0,C.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(),(0,p.lX)(["Icon%sAlign","Number%sAlign","Title%sAlign","Description%sAlign"]),(0,p.OB)(y,{editorMode:!0}),(0,p.UY)([[".ugb-container__wrapper","column-background"],[".ugb-countup__icon svg","icon"],[".ugb-countup__title","title"],[".ugb-countup__counter","number"],[".ugb-countup__description","description"]]))((e=>{const{setAttributes:t,className:a,attributes:n}=e,{columns:r,design:c="plain",titleTag:d="",showIcon:p=!1,showNumber:h=!0,showTitle:_=!0,showDescription:v=!0}=n,y=u()([a,"ugb-countup--v4",`ugb-countup--columns-${r}`],(0,i.applyFilters)("stackable.count-up.mainclasses",{[`ugb-countup--design-${c}`]:"plain"!==c},c,e)),C=k(e);return(0,l.createElement)(b.BlockContainer.Edit,{className:y,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,o.range)(1,r+1).map((a=>{const o=n[`icon${a}`],r=n[`title${a}`],b=n[`description${a}`],k=n[`countText${a}`],y=p&&(0,l.createElement)("div",{className:"ugb-countup__icon ugb-countup__icon--v2"},(0,l.createElement)(m.ux,{attrNameTemplate:"icon%s",blockAttributes:e.attributes,value:o,onChange:e=>t({[`icon${a}`]:e})})),A=_&&(0,l.createElement)(g.RichText,{tagName:d||"h4",className:"ugb-countup__title",value:r,placeholder:(0,s.__)("Title",f.i18n),onChange:e=>t({[`title${a}`]:e}),keepPlaceholderOnFocus:!0}),w=h&&(0,l.createElement)(g.RichText,{tagName:"div",className:"ugb-countup__counter",placeholder:"1,234","data-duration":"1000","data-delay":"16",value:k,onChange:e=>t({[`countText${a}`]:e}),keepPlaceholderOnFocus:!0}),T=v&&(0,l.createElement)(g.RichText,{tagName:"p",className:"ugb-countup__description",placeholder:(0,s.__)("Description",f.i18n),value:b,onChange:e=>t({[`description${a}`]:e}),keepPlaceholderOnFocus:!0}),B={i:a,iconComp:y,titleComp:A,countComp:w,descriptionComp:T},x=u()(["ugb-countup__item",`ugb-countup__item${a}`],(0,i.applyFilters)("stackable.count-up.boxclasses",{},c,e));return(0,l.createElement)(m.Gc,{className:x,backgroundAttrName:"column%s",blockProps:e,showBackground:C.columnBackground,index:a,key:a},(0,i.applyFilters)("stackable.count-up.save.output",(0,l.createElement)(l.Fragment,null,y,"plain-2"===c&&w,A,"plain-2"!==c&&w,T),B,a,e))})))})})),w=(0,C.compose)(p.FI,(0,p.OB)(y))((e=>{const{className:t,attributes:a}=e,{columns:n,design:r="plain",titleTag:s="",showIcon:c=!1,showNumber:d=!0,showTitle:p=!0,showDescription:h=!0}=a,_=u()([t,"ugb-countup--v4",`ugb-countup--columns-${n}`],(0,i.applyFilters)("stackable.count-up.mainclasses",{[`ugb-countup--design-${r}`]:"plain"!==r},r,e)),v=k(e);return(0,l.createElement)(b.BlockContainer.Save,{className:_,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,o.range)(1,n+1).map((t=>{const n=a[`icon${t}`],o=a[`title${t}`],b=a[`description${t}`],k=a[`countText${t}`],_=c&&(0,l.createElement)("div",{className:"ugb-countup__icon ugb-countup__icon--v2"},(0,l.createElement)(m.xo.Content,{attrNameTemplate:"icon%s",blockAttributes:e.attributes,value:n})),y=p&&!g.RichText.isEmpty(o)&&(0,l.createElement)(g.RichText.Content,{tagName:s||"h4",className:"ugb-countup__title",value:o}),f=d&&!g.RichText.isEmpty(k)&&(0,l.createElement)(g.RichText.Content,{tagName:"div",className:"ugb-countup__counter",value:k,"data-duration":"1000","data-delay":"16"}),C=h&&!g.RichText.isEmpty(b)&&(0,l.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-countup__description",value:b}),A={i:t,iconComp:_,titleComp:y,countComp:f,descriptionComp:C},w=u()(["ugb-countup__item",`ugb-countup__item${t}`],(0,i.applyFilters)("stackable.count-up.boxclasses",{},r,e));return(0,l.createElement)(m.Gc,{className:w,backgroundAttrName:"column%s",blockProps:e,showBackground:v.columnBackground,index:t,key:t},(0,i.applyFilters)("stackable.count-up.save.output",(0,l.createElement)(l.Fragment,null,_,"plain-2"===r&&f,y,"plain-2"!==r&&f,C),A,t,e))})))})})),T={title1:{source:"html",selector:".ugb-countup__item:nth-of-type(1) .ugb-countup__title",default:(0,s.__)("Title",f.i18n)},title2:{source:"html",selector:".ugb-countup__item:nth-of-type(2) .ugb-countup__title",default:(0,s.__)("Title",f.i18n)},title3:{source:"html",selector:".ugb-countup__item:nth-of-type(3) .ugb-countup__title",default:(0,s.__)("Title",f.i18n)},title4:{source:"html",selector:".ugb-countup__item:nth-of-type(4) .ugb-countup__title",default:(0,s.__)("Title",f.i18n)},countText1:{source:"html",selector:".ugb-countup__item:nth-of-type(1) .ugb-countup__counter",default:"$99.99"},countText2:{source:"html",selector:".ugb-countup__item:nth-of-type(2) .ugb-countup__counter",default:"1,234"},countText3:{source:"html",selector:".ugb-countup__item:nth-of-type(3) .ugb-countup__counter",default:"1,234.56"},countText4:{source:"html",selector:".ugb-countup__item:nth-of-type(4) .ugb-countup__counter",default:"£99.99"},description1:{source:"html",selector:".ugb-countup__item:nth-of-type(1) .ugb-countup__description",default:(0,s.__)("Description",f.i18n)},description2:{source:"html",selector:".ugb-countup__item:nth-of-type(2) .ugb-countup__description",default:(0,s.__)("Description",f.i18n)},description3:{source:"html",selector:".ugb-countup__item:nth-of-type(3) .ugb-countup__description",default:(0,s.__)("Description",f.i18n)},description4:{source:"html",selector:".ugb-countup__item:nth-of-type(4) .ugb-countup__description",default:(0,s.__)("Description",f.i18n)},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},columns:{type:"number",default:2},...(0,h.yA)("column%s"),...(0,r.createBorderAttributes)("column%s"),...(0,r.createResponsiveAttributes)("icon%sBottomMargin",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("number%sBottomMargin",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("description%sBottomMargin",{type:"number",default:""}),showIcon:{type:"boolean",default:!1},icon1:{type:"string",source:"html",selector:".ugb-countup__item1 .ugb-icon-inner-svg,.ugb-countup__item1 .ugb-countup__icon:not(.ugb-countup__icon--v2)",default:"fas-cogs"},icon2:{type:"string",source:"html",selector:".ugb-countup__item2 .ugb-icon-inner-svg,.ugb-countup__item2 .ugb-countup__icon:not(.ugb-countup__icon--v2)",default:"fas-hands-helping"},icon3:{type:"string",source:"html",selector:".ugb-countup__item3 .ugb-icon-inner-svg,.ugb-countup__item3 .ugb-countup__icon:not(.ugb-countup__icon--v2)",default:"fas-envelope"},icon4:{type:"string",source:"html",selector:".ugb-countup__item4 .ugb-icon-inner-svg,.ugb-countup__item4 .ugb-countup__icon:not(.ugb-countup__icon--v2)",default:"fas-globe-americas"},...(0,r.createIconAttributes)("icon%s"),showNumber:{type:"boolean",default:!0},...(0,r.createTypographyAttributes)("number%s"),numberColor:{type:"string",default:""},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,r.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},showDescription:{type:"boolean",default:!0},...(0,r.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},...(0,r.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Icon","Number","Title","Description"],["","Tablet","Mobile"]),...(0,r.createAllCombinationAttributes)("Column%s%sColor",{type:"string",default:""},["1","2","3","4"],["Background","Icon"])},B=JSON.parse('{"name":"ugb/count-up","title":"Count Up","description":"Showcase your stats. Display how many customers you have or the number of downloads of your app.","category":"stackable-v2","keywords":["Statistics"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:x,...S}=B,E={...S,title:S.title+" (v2)",icon:n.CountUpIcon,attributes:T,example:{attributes:{title1:"Title",title2:"Title",countText1:"$99.99",countText2:"1,234",description1:"Description",description2:"Description",design:"plain-2",columns:2,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",titleBottomMargin:0,showIcon:!1,showNumber:!0,numberLineHeightUnit:"em",numberTabletLineHeightUnit:"em",numberMobileLineHeightUnit:"em",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",uniqueClass:"ugb-534ce47",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["center","wide","full"],inserter:!f.v2disabledBlocks.includes(x),anchor:!0},deprecated:d,edit:A,save:w,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{verticalColumnAlign:!0,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"container-link":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,i.applyFilters)("stackable.count-up.custom-css.default","")}}}},1016:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>A,settings:()=>T});var n=a(910),o=a(9467),i=a(2610),l=a(7545),r=a(4863),s=a.n(r);const c=e=>{const t=(0,l.__getValue)(e.attributes),a=[],{design:n="basic",contentAlign:o="",tabletContentAlign:i="",mobileContentAlign:r=""}=e.attributes;return a.push({".ugb-block-content":{marginTop:(0,l.appendImportant)(t("hrMarginTop","%spx")),marginBottom:(0,l.appendImportant)(t("hrMarginBottom","%spx"))}}),"basic"!==n&&"bar"!==n||a.push({"hr.ugb-divider__hr":{backgroundColor:(0,l.appendImportant)(t("color")),height:(0,l.appendImportant)(t("height","%spx")),width:(0,l.appendImportant)(t("width","%s%")),marginLeft:(0,l.appendImportant)((0,l.marginLeftAlign)(o)),marginRight:(0,l.appendImportant)((0,l.marginRightAlign)(o)),borderRadius:"bar"===n?(0,l.appendImportant)(t("height","calc(%spx / 2)")):void 0},tablet:{"hr.ugb-divider__hr":{marginLeft:(0,l.appendImportant)(""!==i?(0,l.marginLeftAlign)(i):void 0),marginRight:(0,l.appendImportant)(""!==i?(0,l.marginRightAlign)(i):void 0)}},mobile:{"hr.ugb-divider__hr":{marginLeft:(0,l.appendImportant)(""!==r?(0,l.marginLeftAlign)(r):void 0),marginRight:(0,l.appendImportant)(""!==r?(0,l.marginRightAlign)(r):void 0)}}}),"dots"!==n&&"asterisks"!==n||a.push({".ugb-divider__dots":{width:(0,l.appendImportant)(t("width","%s%")),marginLeft:(0,l.appendImportant)((0,l.marginLeftAlign)(o)),marginRight:(0,l.appendImportant)((0,l.marginRightAlign)(o))},".ugb-divider__dot":{backgroundColor:"dots"===n?(0,l.appendImportant)(t("color")):void 0,height:(0,l.appendImportant)(t("height","%spx")),width:(0,l.appendImportant)(t("height","%spx"))},tablet:{".ugb-divider__dots":{marginLeft:(0,l.appendImportant)(""!==i?(0,l.marginLeftAlign)(i):void 0),marginRight:(0,l.appendImportant)(""!==i?(0,l.marginRightAlign)(i):void 0)}},mobile:{".ugb-divider__dots":{marginLeft:(0,l.appendImportant)(""!==r?(0,l.marginLeftAlign)(r):void 0),marginRight:(0,l.appendImportant)(""!==r?(0,l.marginRightAlign)(r):void 0)}}}),"asterisks"===n&&a.push({".ugb-divider__dot:before":{color:t("color"),fontSize:t("height","calc(%spx * 1.8)")}}),s().all(a)};var u=a(7200),g=a(9858),d=a(1414),b=a(4184),m=a.n(b),p=a(8003),h=a(3882),k=a(3749);(0,h.addFilter)("stackable.divider.edit.layouts","default",(e=>[...e,{label:(0,p.__)("Basic",n.i18n),value:"basic",image:"dist/images/block-divider-basic.dba5538.png"},{label:(0,p.__)("Bar",n.i18n),value:"bar",image:"dist/images/block-divider-bar.13a6234.png"},{label:(0,p.__)("Dots",n.i18n),value:"dots",image:"dist/images/block-divider-dots.e67cc87.png"},{label:(0,p.__)("Asterisks",n.i18n),value:"asterisks",image:"dist/images/block-divider-asterisks.e534122.png"}])),(0,h.addFilter)("stackable.divider.edit.inspector.layout.before","stackable/divider",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(u.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,h.applyFilters)("stackable.divider.edit.layouts",[]),onChange:e=>a({design:e})}))})),(0,h.addFilter)("stackable.divider.edit.inspector.style.before","stackable/divider",((e,t)=>{const{setAttributes:a}=t,{color:o="",hrMarginTop:l="",hrMarginBottom:r="",height:s="",width:c=""}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(u.PanelAdvancedSettings,{title:(0,p.__)("General",n.i18n),initialOpen:!0},(0,i.createElement)(u.ColorPaletteControl,{value:o,onChange:e=>a({color:e}),label:(0,p.__)("Color",n.i18n)}),(0,i.createElement)(u.FourRangeControl,{label:(0,p.__)("Vertical Margin",n.i18n),top:l,bottom:r,max:100,placeholder:"0",onChange:e=>{let{top:t,bottom:n}=e;return a({hrMarginTop:t,hrMarginBottom:n})},enableLeft:!1,enableRight:!1,className:"ugb--help-tip-divider-margin"}),(0,i.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("Height",n.i18n)+" / "+(0,p.__)("Size",n.i18n),min:1,max:100,placeholder:"1",allowReset:!0,value:s,onChange:e=>a({height:e})}),(0,i.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("Width",n.i18n)+" (%)",min:1,max:100,placeholder:"50",allowReset:!0,value:c,onChange:e=>a({width:e})}),(0,i.createElement)(g.QA,{setAttributes:a,blockAttributes:t.attributes})))}));const _=(0,k.compose)(d.FI,d.XQ,d.O0,(0,d.Q9)(),(0,d.lX)(),(0,d.OB)(c,{editorMode:!0}))((e=>{const{className:t}=e,{design:a="basic"}=e.attributes,n=m()([t,"ugb-divider--v2",`ugb-divider--design-${a}`],(0,h.applyFilters)("stackable.divider.mainclasses",{},e));return(0,i.createElement)(u.BlockContainer.Edit,{className:n,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("hr",{className:"ugb-divider__hr"}),("dots"===a||"asterisks"===a)&&(0,i.createElement)("div",{className:"ugb-divider__dots","aria-hidden":"true"},(0,i.createElement)("div",{className:"ugb-divider__dot"}),(0,i.createElement)("div",{className:"ugb-divider__dot"}),(0,i.createElement)("div",{className:"ugb-divider__dot"})))})})),v=(0,k.compose)(d.FI,(0,d.OB)(c))((e=>{const{className:t}=e,{design:a="basic"}=e.attributes,n=m()([t,"ugb-divider--v2",`ugb-divider--design-${a}`],(0,h.applyFilters)("stackable.divider.mainclasses",{},e));return(0,i.createElement)(u.BlockContainer.Save,{className:n,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("hr",{className:"ugb-divider__hr"}),("dots"===a||"asterisks"===a)&&(0,i.createElement)("div",{className:"ugb-divider__dots","aria-hidden":"true"},(0,i.createElement)("div",{className:"ugb-divider__dot"}),(0,i.createElement)("div",{className:"ugb-divider__dot"}),(0,i.createElement)("div",{className:"ugb-divider__dot"})))})})),y={height:{default:1,type:"number"},width:{default:50,type:"number"},color:{type:"string",default:"#dddddd"},alignment:{type:"string",default:"center"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},f=[{attributes:y,save:e=>{const{className:t}=e,{height:a,width:n,color:o,alignment:l,design:r=""}=e.attributes,s=m()([t,"ugb-divider"],(0,h.applyFilters)("stackable.divider.mainclasses_1_17_3",{},r,e));return(0,i.createElement)("div",{className:s},(0,h.applyFilters)("stackable.divider.save.output.before_1_17_3",null,r,e),(0,i.createElement)("hr",{align:l,style:{backgroundColor:o,width:n+"%",height:a}}),(0,h.applyFilters)("stackable.divider.save.output.after_1_17_3",null,r,e))},migrate:e=>({...e,design:"basic",contentAlign:e.alignment})},{attributes:y,save:e=>{const{className:t}=e,{height:a,width:n,color:o,design:l=""}=e.attributes,r=m()([t,"ugb-divider"],(0,h.applyFilters)("stackable.divider.mainclasses_1_17_3",{},l,e));return(0,i.createElement)("div",{className:r},(0,h.applyFilters)("stackable.divider.save.output.before_1_17_3",null,l,e),(0,i.createElement)("hr",{style:{backgroundColor:o,width:n+"%",height:a}}),(0,h.applyFilters)("stackable.divider.save.output.after_1_17_3",null,l,e))},migrate:e=>({...e,design:"basic",contentAlign:e.alignment})}],C=JSON.parse('{"name":"ugb/divider","title":"Divider","description":"Add a pause between your content.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:A,...w}=C,T={...w,title:w.title+" (v2)",icon:o.DividerIcon,attributes:{design:{type:"string",default:"basic"},color:{type:"string",default:""},hrMarginTop:{type:"number",default:""},hrMarginBottom:{type:"number",default:""},height:{default:"",type:"number"},width:{default:"",type:"number"},alignment:{type:"string",default:"center"}},example:{attributes:{design:"basic",color:"#6d6d6d",height:3,width:50,alignment:"center",uniqueClass:"ugb-dd90352",hideDesktop:!1,hideTablet:!1,hideMobile:!1}},supports:{align:["center","wide","full"],inserter:!n.v2disabledBlocks.includes(A),anchor:!0},edit:_,save:v,deprecated:f,modules:{"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"content-align":!0,"custom-css":{default:(0,h.applyFilters)("stackable.divider.custom-css.default","")}}};(0,h.addFilter)("stackable.divider.setAttributes","stackable/divider/defaults",((e,t)=>{const a=t.attributes;return void 0!==e.design&&"basic"!==e.design?{...e,height:"asterisks"===e.design?14:7,width:"dots"===e.design||"asterisks"===e.design?10:a.width}:"basic"===e.design?{...e,height:1,width:50}:e}))},8958:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>w,settings:()=>B});var n=a(2610),o=a(4184),i=a.n(o),l=a(910),r=a(8003),s=a(3882),c=a(78);const u=[{attributes:{text:{source:"html",selector:".ugb-expand__less-text",multiline:"p",default:""},moreText:{source:"html",selector:".ugb-expand__more-text",multiline:"p",default:""},moreLabel:{source:"html",selector:".ugb-expand__more-toggle-text",default:(0,r.__)("Show more",l.i18n)},lessLabel:{source:"html",selector:".ugb-expand__less-toggle-text",default:(0,r.__)("Show less",l.i18n)},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{text:a,moreLabel:o,moreText:l,lessLabel:r,design:u=""}=e.attributes,g=i()([t,"ugb-expand"],(0,s.applyFilters)("stackable.expand.mainclasses_1_17_3",{},u,e));return(0,n.createElement)("div",{className:g,"aria-expanded":"false"},(0,s.applyFilters)("stackable.expand.save.output.before_1_17_3",null,u,e),(0,n.createElement)("div",{className:"ugb-expand__less-text"},!c.RichText.isEmpty(a)&&(0,n.createElement)(c.RichText.Content,{multiline:"p",value:a})),(0,n.createElement)("div",{className:"ugb-expand__more-text",style:{display:"none"}},!c.RichText.isEmpty(l)&&(0,n.createElement)(c.RichText.Content,{multiline:"p",value:l})),(0,n.createElement)("a",{className:"ugb-expand__toggle",href:"#"},(0,n.createElement)(c.RichText.Content,{className:"ugb-expand__more-toggle-text",tagName:"span",value:o}),(0,n.createElement)(c.RichText.Content,{className:"ugb-expand__less-toggle-text",tagName:"span",value:r,style:{display:"none"}})),(0,s.applyFilters)("stackable.expand.save.output.after_1_17_3",null,u,e))},migrate:e=>({...e,showTitle:!1})}];var g=a(7545),d=a(4863),b=a.n(d);const m=e=>{const t=(0,g.__getValue)(e.attributes),a=[],{showTitle:n=!0}=e.attributes;return n&&a.push({".ugb-expand__title":{...(0,g.createTypographyStyles)("title%s","desktop",e.attributes),color:t("titleColor"),textAlign:t("titleAlign")},tablet:{".ugb-expand__title":{...(0,g.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")}},mobile:{".ugb-expand__title":{...(0,g.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")}}}),a.push({".ugb-expand__less-text p, .ugb-expand__more-text p":{...(0,g.createTypographyStyles)("text%s","desktop",e.attributes),color:t("textColor"),textAlign:t("textAlign")},tablet:{".ugb-expand__less-text p, .ugb-expand__more-text p":{...(0,g.createTypographyStyles)("text%s","tablet",e.attributes),textAlign:t("textTabletAlign")}},mobile:{".ugb-expand__less-text p, .ugb-expand__more-text p":{...(0,g.createTypographyStyles)("text%s","mobile",e.attributes),textAlign:t("textMobileAlign")}}}),a.push({".ugb-expand__toggle-wrapper":{textAlign:(0,g.appendImportant)(t("linkAlign"))},".ugb-expand__more-toggle-text, .ugb-expand__less-toggle-text":{...(0,g.createTypographyStyles)("link%s","desktop",e.attributes),color:t("linkColor")},tablet:{".ugb-expand__toggle-wrapper":{textAlign:(0,g.appendImportant)(t("linkTabletAlign"))},".ugb-expand__more-toggle-text, .ugb-expand__less-toggle-text":{...(0,g.createTypographyStyles)("link%s","tablet",e.attributes)}},mobile:{".ugb-expand__toggle-wrapper":{textAlign:(0,g.appendImportant)(t("linkMobileAlign"))},".ugb-expand__more-toggle-text, .ugb-expand__less-toggle-text":{...(0,g.createTypographyStyles)("link%s","mobile",e.attributes)}}}),n&&a.push(...(0,g.createResponsiveStyles)(".ugb-expand__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.push(...(0,g.createResponsiveStyles)(".ugb-expand__less-text, .ugb-expand__more-text","text%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.push(...(0,g.createResponsiveStyles)(".ugb-expand__more-toggle-text, .ugb-expand__less-toggle-text","link%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),b().all(a)};var p=a(7200),h=a(9858),k=a(1414),_=a(3749);(0,s.addFilter)("stackable.expand.edit.inspector.style.before","stackable/expand",((e,t)=>{const{setAttributes:a}=t,{showTitle:o=!0,titleTag:i="h4",titleColor:s="",textColor:c="",linkColor:u=""}=t.attributes;return(0,n.createElement)(n.Fragment,null,e,(0,n.createElement)(p.PanelAdvancedSettings,{title:(0,r.__)("General",l.i18n),initialOpen:!0},(0,n.createElement)(h.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,n.createElement)(p.PanelAdvancedSettings,{title:(0,r.__)("Title",l.i18n),id:"title",checked:o,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,g.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,g.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,n.createElement)(p.HeadingButtonsControl,{value:i||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,n.createElement)(p.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:i||"h4"}),(0,n.createElement)(p.ColorPaletteControl,{value:s,onChange:e=>a({titleColor:e}),label:(0,r.__)("Title Color",l.i18n)}),(0,n.createElement)(h.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,n.createElement)(p.AlignButtonsControl,{label:(0,r.__)("Align",l.i18n),className:"ugb--help-tip-alignment-title"}))),(0,n.createElement)(p.PanelAdvancedSettings,{title:(0,r.__)("Text",l.i18n),id:"text",initialOpen:!1},(0,n.createElement)(p.TypographyControlHelper,{attrNameTemplate:"text%s",setAttributes:a,blockAttributes:t.attributes}),(0,n.createElement)(p.ColorPaletteControl,{value:c,onChange:e=>a({textColor:e}),label:(0,r.__)("Text Color",l.i18n)}),(0,n.createElement)(h.n9,{attrNameTemplate:"Text%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,n.createElement)(p.AlignButtonsControl,{label:(0,r.__)("Align",l.i18n),className:"ugb--help-tip-alignment-description"}))),(0,n.createElement)(p.PanelAdvancedSettings,{title:(0,r.__)("Link",l.i18n),id:"link",initialOpen:!1},(0,n.createElement)(p.TypographyControlHelper,{attrNameTemplate:"link%s",setAttributes:a,blockAttributes:t.attributes}),(0,n.createElement)(p.ColorPaletteControl,{value:u,onChange:e=>a({linkColor:e}),label:(0,r.__)("Link Color",l.i18n)}),(0,n.createElement)(h.n9,{attrNameTemplate:"Link%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,n.createElement)(p.AlignButtonsControl,{label:(0,r.__)("Align",l.i18n),className:"ugb--help-tip-alignment-button"}))),(0,n.createElement)(p.PanelSpacingBody,{initialOpen:!1,blockProps:t},o&&(0,n.createElement)(h.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,n.createElement)(p.AdvancedRangeControl,{label:(0,r.__)("Title",l.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),(0,n.createElement)(h.n9,{attrNameTemplate:"text%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,n.createElement)(p.AdvancedRangeControl,{label:(0,r.__)("Text",l.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),(0,n.createElement)(h.n9,{attrNameTemplate:"link%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,n.createElement)(p.AdvancedRangeControl,{label:(0,r.__)("Link",l.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button"}))))}));const v=(0,_.compose)(k.FI,k.XQ,k.O0,(0,k.Q9)(["style","advanced"]),(0,k.lX)(["Title%sAlign","Text%sAlign","Link%sAlign"]),(0,k.OB)(m,{editorMode:!0}),(0,k.UY)([[".ugb-expand__title","title"],[".ugb-expand__less-text, .ugb-expand__more-text","text"],[".ugb-expand__more-toggle-text, .ugb-expand__less-toggle-text","link"]]))((e=>{const{setAttributes:t,className:a,isSelected:o}=e,{showTitle:u=!0,titleTag:d="h4",title:b="",text:m="",moreText:h="",moreLabel:k,lessLabel:_,design:v=""}=e.attributes,y=i()([a,"ugb-expand--v2"],(0,s.applyFilters)("stackable.expand.mainclasses",{},v,e));return(0,n.createElement)(p.BlockContainer.Edit,{className:y,blockProps:e,render:()=>(0,n.createElement)(n.Fragment,null,u&&(0,n.createElement)(c.RichText,{tagName:d||"h4",className:"ugb-expand__title",value:b,onChange:e=>t({title:e}),placeholder:(0,r.__)("Title for This Block",l.i18n),keepPlaceholderOnFocus:!0}),o&&(0,n.createElement)("label",{className:"ugb-expand__label"},(0,r.__)("Less text",l.i18n)),(0,n.createElement)(c.RichText,{multiline:"p",className:"ugb-expand__less-text",value:m,onChange:e=>t({text:e}),placeholder:(0,r.__)("Some short text that can be expanded to show more details.",l.i18n),keepPlaceholderOnFocus:!0}),(0,n.createElement)("div",{className:"ugb-expand__toggle-wrapper"},(0,n.createElement)("a",null,(0,n.createElement)(c.RichText,{tagName:"div",className:"ugb-expand__more-toggle-text",value:k,onChange:e=>t({moreLabel:e}),placeholder:(0,r.__)("Show more",l.i18n),keepPlaceholderOnFocus:!0}))),o&&(0,n.createElement)("label",{className:"ugb-expand__label"},(0,r.__)("More text",l.i18n)),o&&(0,n.createElement)(c.RichText,{multiline:"p",className:"ugb-expand__more-text",value:h,onChange:e=>t({moreText:e}),placeholder:`${(0,r.__)("Some short text that can be expanded to show more details.",l.i18n)} ${(0,g.descriptionPlaceholder)("medium")}`,keepPlaceholderOnFocus:!0}),o&&(0,n.createElement)("div",{className:"ugb-expand__toggle-wrapper"},(0,n.createElement)("a",null,(0,n.createElement)(c.RichText,{tagName:"div",className:"ugb-expand__less-toggle-text",value:_,onChange:e=>t({lessLabel:e}),placeholder:(0,r.__)("Show less",l.i18n),keepPlaceholderOnFocus:!0}))))})})),y=(0,_.compose)(k.FI,(0,k.OB)(m))((e=>{const{className:t}=e,{showTitle:a=!0,titleTag:o="h4",title:l="",text:r,moreLabel:u,moreText:g,lessLabel:d,design:b=""}=e.attributes,m=i()([t,"ugb-expand--v2"],(0,s.applyFilters)("stackable.expand.mainclasses",{},b,e));return(0,n.createElement)(p.BlockContainer.Save,{className:m,blockProps:e,"aria-expanded":"false",render:()=>(0,n.createElement)(n.Fragment,null,a&&!c.RichText.isEmpty(l)&&(0,n.createElement)(c.RichText.Content,{tagName:o||"h4",className:"ugb-expand__title",value:l}),(0,n.createElement)("div",{className:"ugb-expand__less-text"},!c.RichText.isEmpty(r)&&(0,n.createElement)(c.RichText.Content,{multiline:"p",value:r})),(0,n.createElement)("div",{className:"ugb-expand__more-text",style:{display:"none"}},!c.RichText.isEmpty(g)&&(0,n.createElement)(c.RichText.Content,{multiline:"p",value:g})),(0,n.createElement)("div",{className:"ugb-expand__toggle-wrapper"},(0,n.createElement)("a",{className:"ugb-expand__toggle",href:"#"},(0,n.createElement)(c.RichText.Content,{className:"ugb-expand__more-toggle-text",tagName:"span",value:u}),(0,n.createElement)(c.RichText.Content,{className:"ugb-expand__less-toggle-text",tagName:"span",value:d,style:{display:"none"}}))))})})),f={title:{source:"html",selector:".ugb-expand__title",default:""},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,g.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},text:{source:"html",selector:".ugb-expand__less-text",multiline:"p",default:""},moreText:{source:"html",selector:".ugb-expand__more-text",multiline:"p",default:""},...(0,g.createTypographyAttributes)("text%s"),textColor:{type:"string",default:""},moreLabel:{source:"html",selector:".ugb-expand__more-toggle-text",default:(0,r.__)("Show more",l.i18n)},lessLabel:{source:"html",selector:".ugb-expand__less-toggle-text",default:(0,r.__)("Show less",l.i18n)},...(0,g.createTypographyAttributes)("link%s"),linkColor:{type:"string",default:""},...(0,g.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Title","Text","Link"],["","Tablet","Mobile"]),...(0,g.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Title","Text","Link"],["","Tablet","Mobile"])},C=JSON.parse('{"name":"ugb/expand","title":"Expand / Show More","description":"Display a small snippet of text. Your readers can toggle it to show more information.","category":"stackable-v2","keywords":["Hide","Less"],"textdomain":"stackable-ultimate-gutenberg-blocks"}');var A=a(9467);const{name:w,...T}=C,B={...T,title:T.title+" (v2)",icon:A.ExpandIcon,attributes:f,example:{attributes:{title:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",text:"<p>Some short text that can be expanded to show more details.</p>",moreText:"<p>Some short text that can be expanded to show more details. Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.</p>",textFontSize:16,textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",moreLabel:"Show more",lessLabel:"Show less",linkFontSize:18,linkLineHeightUnit:"em",linkTabletLineHeightUnit:"em",linkMobileLineHeightUnit:"em",uniqueClass:"ugb-84c0eed",hideDesktop:!1,hideTablet:!1,hideMobile:!1}},supports:{inserter:!l.v2disabledBlocks.includes(w),anchor:!0},deprecated:u,edit:v,save:y,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"content-align":!0,"custom-css":{default:(0,s.applyFilters)("stackable.expand.custom-css.default","")}}}},2878:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>R,settings:()=>I});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.feature-grid.design.no-text-attributes","stackable/feature-grid",(e=>(0,n.omit)(e,["title1","title2","title3","title4","description1","description2","description3","description4","button1Text","button2Text","button3Text","button4Text"]))),(0,o.addFilter)("stackable.feature-grid.design.filtered-block-attributes","stackable/feature-grid",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,n.omit)(e,["image1Id",...t&&t.image1Id?["image1Url"]:[],"image2Id",...t&&t.image2Id?["image2Url"]:[],"image3Id",...t&&t.image3Id?["image3Url"]:[],"image4Id",...t&&t.image4Id?["image4Url"]:[],"image1Alt","image2Alt","image3Alt","image4Alt","button1Url","button1NewTab","button1NoFollow","button2Url","button2NewTab","button2NoFollow","button3Url","button3NewTab","button3NoFollow","button4Url","button4NewTab","button4NoFollow"])}}));var i=a(2610),l=a(257),r=a(7545),s=a(4184),c=a.n(s),u=a(910),g=a(3726),d=a.n(g),b=a(78),m=a(8003);const p=[{attributes:{design:{type:"string",default:"basic"},columns:{type:"number",default:3},imageSize:{type:"number",default:100},imageID1:{type:"number"},imageID2:{type:"number"},imageID3:{type:"number"},imageUrl1:{type:"url"},imageUrl2:{type:"url"},imageUrl3:{type:"url"},imageAlt1:{type:"string"},imageAlt2:{type:"string"},imageAlt3:{type:"string"},title1:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(1) .ugb-feature-grid__title",default:(0,m.__)("Title",u.i18n)},title2:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(2) .ugb-feature-grid__title",default:(0,m.__)("Title",u.i18n)},title3:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(3) .ugb-feature-grid__title",default:(0,m.__)("Title",u.i18n)},description1:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(1) .ugb-feature-grid__description",default:(0,r.descriptionPlaceholder)("short")},description2:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(2) .ugb-feature-grid__description",default:(0,r.descriptionPlaceholder)("short")},description3:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(3) .ugb-feature-grid__description",default:(0,r.descriptionPlaceholder)("short")},linkUrl1:{type:"string",source:"attribute",selector:".ugb-feature-grid__item:nth-of-type(1) .ugb-button",attribute:"href",default:""},linkUrl2:{type:"string",source:"attribute",selector:".ugb-feature-grid__item:nth-of-type(2) .ugb-button",attribute:"href",default:""},linkUrl3:{type:"string",source:"attribute",selector:".ugb-feature-grid__item:nth-of-type(3) .ugb-button",attribute:"href",default:""},newTab1:{type:"boolean",source:"attribute",selector:".ugb-feature-grid__item:nth-of-type(1) .ugb-button",attribute:"target",default:!1},newTab2:{type:"boolean",source:"attribute",selector:".ugb-feature-grid__item:nth-of-type(2) .ugb-button",attribute:"target",default:!1},newTab3:{type:"boolean",source:"attribute",selector:".ugb-feature-grid__item:nth-of-type(3) .ugb-button",attribute:"target",default:!1},linkText1:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(1) .ugb-button span",default:(0,m.__)("Button text",u.i18n)},linkText2:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(2) .ugb-button span",default:(0,m.__)("Button text",u.i18n)},linkText3:{source:"html",selector:".ugb-feature-grid__item:nth-of-type(3) .ugb-button span",default:(0,m.__)("Button text",u.i18n)},buttonColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"normal"},buttonBorderRadius:{type:"number",default:4},buttonDesign:{type:"string",default:"link"},buttonIcon:{type:"string"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},hoverEffect:{type:"string",default:""},align:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{attributes:t,className:a}=e,{columns:n,imageSize:s,design:u,buttonColor:g,buttonTextColor:m,buttonSize:p,buttonBorderRadius:h,buttonDesign:k="link",buttonIcon:_,borderRadius:v=12,shadow:y=3}=t,f=c()([a,"ugb-feature-grid",`ugb-feature-grid--columns-${n}`],(0,o.applyFilters)("stackable.feature-grid.mainclasses_1_17_2",{[`ugb-feature-grid--design-${u}`]:u&&"basic"!==u},u,e)),C={borderRadius:"plain"!==u&&12!==v?v:void 0};return(0,i.createElement)("div",{className:f},(0,o.applyFilters)("stackable.feature-grid.edit.output.before_1_17_2",null,u,e),(0,r.range)(1,n+1).map((a=>{const n=t[`imageUrl${a}`],r=t[`imageAlt${a}`],v=t[`title${a}`],f=t[`description${a}`],A=t[`linkUrl${a}`],w=t[`newTab${a}`],T=t[`linkText${a}`],B=c()(["ugb-feature-grid__item"],(0,o.applyFilters)("stackable.feature-grid.itemclasses_1_17_2",{[`ugb--shadow-${y}`]:"plain"!==u&&3!==y},u,a,e)),x=(0,o.applyFilters)("stackable.feature-grid.itemstyles_1_17_2",{image:{width:n?`${s}%`:void 0}},u,a,e);return(0,i.createElement)("div",{className:B,style:C,key:a},n&&(0,i.createElement)("div",{className:"ugb-feature-grid__image"},(0,i.createElement)("img",{src:n,style:x.image,alt:d()(v||r)})),(0,i.createElement)("div",{className:"ugb-feature-grid__content"},!b.RichText.isEmpty(v)&&(0,i.createElement)(b.RichText.Content,{tagName:"h5",className:"ugb-feature-grid__title",value:v}),!b.RichText.isEmpty(f)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-feature-grid__description",value:f}),!b.RichText.isEmpty(T)&&(0,i.createElement)(l.YG,{size:p,url:A,newTab:w,color:m,text:T,icon:_,design:k,backgroundColor:g,borderRadius:h})))})),(0,o.applyFilters)("stackable.feature-grid.edit.output.after_1_17_2",null,u,e))},migrate:e=>{let t;if(e.imageSize&&"horizontal"!==e.design){const a="wide"!==e.align?u.contentWidth||900:1200,n=35,o="plain"===e.design?0:70,i=1===e.columns?a-o:2===e.columns?(a-n)/2-o:(a-2*n)/3-o;t=parseInt((parseInt(e.imageSize,10)||100)/100*i,10)}return{...e,image1Id:e.imageID1,image2Id:e.imageID2,image3Id:e.imageID3,image1Url:e.imageUrl1,image2Url:e.imageUrl2,image3Url:e.imageUrl3,image1Alt:e.imageAlt1,image2Alt:e.imageAlt2,image3Alt:e.imageAlt3,button1Url:e.linkUrl1,button2Url:e.linkUrl2,button3Url:e.linkUrl3,button1NewTab:e.newTab1,button2NewTab:e.newTab2,button3NewTab:e.newTab3,button1Text:e.linkText1,button2Text:e.linkText2,button3Text:e.linkText3,buttonBackgroundColor:e.buttonColor,imageWidth:t}}}];var h=a(7200),k=a(9858),_=a(1414),v=a(8423);const y=e=>{const{design:t="basic",showImage:a=!0,showTitle:n=!0,showDescription:i=!0,showButton:l=!0}=e.attributes;return(0,o.applyFilters)("stackable.feature-grid.show",{columnBackground:"plain"!==t,border:"plain"!==t,columnBackground1:"plain"!==t,columnBackground2:"plain"!==t,columnBackground3:"plain"!==t,columnBackground4:"plain"!==t,imageSpacing:a&&"horizontal"!==t,titleSpacing:n,descriptionSpacing:i,buttonSpacing:l},e)};var f=a(4863),C=a.n(f);const A=e=>{const t=(0,r.__getValue)(e.attributes),a=y(e),{columnBackgroundColor:n="",showImage:i=!0,contentAlign:l=""}=e.attributes,s=[];a.columnBackground&&s.push({".ugb-feature-grid__item":{borderRadius:t("borderRadius","%spx !important")}}),a.border&&s.push({...(0,r.createBorderStyleSet)("column%s",".ugb-feature-grid__item",e.attributes)});const c=(0,o.applyFilters)("stackable.feature-grid.styles.column-background","ugb-feature-grid__item",e.attributes);c&&s.push({...a.columnBackground?(0,v._H)("column%s",c,e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:u="px",tabletColumnPaddingUnit:g="px",mobileColumnPaddingUnit:d="px"}=e.attributes;s.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${u}`),paddingBottom:t("columnPaddingBottom",`%s${u}`),paddingRight:t("columnPaddingRight",`%s${u}`),paddingLeft:t("columnPaddingLeft",`%s${u}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${g}`),paddingRight:t("tabletColumnPaddingRight",`%s${g}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${g}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${g}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${d}`),paddingRight:t("mobileColumnPaddingRight",`%s${d}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${d}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${d}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-feature-grid__item":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${u}`),paddingBottom:t("columnPaddingBottom",`%s${u}`),paddingRight:t("columnPaddingRight",`%s${u}`),paddingLeft:t("columnPaddingLeft",`%s${u}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-feature-grid__item":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${g}`),paddingRight:t("tabletColumnPaddingRight",`%s${g}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${g}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${g}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-feature-grid__item":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${d}`),paddingRight:t("mobileColumnPaddingRight",`%s${d}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${d}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${d}`)})}}});const{imageAlign:b="",imageTabletAlign:m="",tabletContentAlign:p="",imageMobileAlign:h="",mobileContentAlign:k=""}=e.attributes;i&&(s.push({...(0,r.createImageStyleSet)("image%s","ugb-img",e.attributes)}),s.push({".ugb-img, .ugb-feature-grid__image":{marginLeft:""!==b||""!==l?(0,r.marginLeftAlign)(b||l)+" !important":void 0,marginRight:""!==b||""!==l?(0,r.marginRightAlign)(b||l)+" !important":void 0},tablet:{".ugb-img, .ugb-feature-grid__image":{marginLeft:""!==m||""!==p?(0,r.marginLeftAlign)(m||p)+" !important":void 0,marginRight:""!==m||""!==p?(0,r.marginRightAlign)(m||p)+" !important":void 0}},mobile:{".ugb-img, .ugb-feature-grid__image":{marginLeft:""!==h||""!==k?(0,r.marginLeftAlign)(h||k)+" !important":void 0,marginRight:""!==h||""!==k?(0,r.marginRightAlign)(h||k)+" !important":void 0}}}));const{titleColor:_="",showTitle:f=!0}=e.attributes;if(f){const i=(0,o.applyFilters)("stackable.feature-grid.styles.title.color-selector",".ugb-feature-grid__title",e);s.push({[i]:{color:(0,r.whiteIfDark)(_,a.columnBackground&&n)}}),s.push({".ugb-feature-grid__title":{...(0,r.createTypographyStyles)("title%s","desktop",e.attributes),textAlign:t("titleAlign")||t("contentAlign")},tablet:{".ugb-feature-grid__title":{...(0,r.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-feature-grid__title":{...(0,r.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")||t("mobileContentAlign")}}})}const{descriptionColor:A="",showDescription:w=!0}=e.attributes;if(w){const i=(0,o.applyFilters)("stackable.feature-grid.styles.description.color-selector",".ugb-feature-grid__description",e);s.push({[i]:{color:(0,r.whiteIfDark)(A,a.columnBackground&&n)}}),s.push({".ugb-feature-grid__description":{...(0,r.createTypographyStyles)("description%s","desktop",e.attributes),textAlign:t("descriptionAlign")||t("contentAlign")},tablet:{".ugb-feature-grid__description":{...(0,r.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:t("descriptionTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-feature-grid__description":{...(0,r.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:t("descriptionMobileAlign")||t("mobileContentAlign")}}})}const{showButton:T=!0,buttonDesign:B=""}=e.attributes;return T&&(s.push({...(0,r.createButtonStyleSet)("button%s","ugb-button",{...e.attributes,buttonDesign:B||"plain"})}),s.push({".ugb-button-container":{textAlign:t("buttonAlign","%s !important")||t("contentAlign","%s !important")},tablet:{".ugb-button-container":{textAlign:t("buttonTabletAlign","%s !important")||t("tabletContentAlign","%s !important")}},mobile:{".ugb-button-container":{textAlign:t("buttonMobileAlign","%s !important")||t("mobileContentAlign","%s !important")}}})),a.imageSpacing&&s.push(...(0,r.createResponsiveStyles)(".ugb-feature-grid__image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.titleSpacing&&s.push(...(0,r.createResponsiveStyles)(".ugb-feature-grid__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.descriptionSpacing&&s.push(...(0,r.createResponsiveStyles)(".ugb-feature-grid__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.buttonSpacing&&s.push(...(0,r.createResponsiveStyles)(".ugb-button-container","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),C().all(s)};var w=a(3749),T=a(3284);(0,o.addFilter)("stackable.feature-grid.edit.layouts","default",(e=>[...e,{image:"dist/images/block-feature-grid-basic.a0cdc79.png",label:(0,m.__)("Basic",u.i18n),value:"basic"},{image:"dist/images/block-feature-grid-plain.778ba63.png",label:(0,m.__)("Plain",u.i18n),value:"plain"},{label:(0,m.__)("Horizontal",u.i18n),value:"horizontal",image:"dist/images/block-feature-grid-horizontal.dfa11b7.png",premium:!0},{label:(0,m.__)("Large Mid",u.i18n),value:"large-mid",image:"dist/images/block-feature-grid-large-mid.8a1dfe5.png",premium:!0},{label:(0,m.__)("Zigzag",u.i18n),value:"zigzag",image:"dist/images/block-feature-grid-zigzag.d66da6e.png",premium:!0}])),(0,o.addFilter)("stackable.feature-grid.edit.inspector.layout.before","stackable/feature-grid",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(h.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.feature-grid.edit.layouts",[]),onChange:e=>{a({design:e})}},u.showProNotice&&(0,i.createElement)(h.ProControlButton,null)))})),(0,o.addFilter)("stackable.feature-grid.edit.inspector.style.before","stackable/feature-grid",((e,t)=>{const{setAttributes:a}=t,{columns:n,borderRadius:o="",shadow:l="",showTitle:s=!0,showDescription:c=!0,titleTag:g="",titleColor:d="",descriptionColor:b="",showImage:p=!0,showButton:_=!0,image1Id:v="",image2Id:f="",image3Id:C="",image4Id:A=""}=t.attributes,w=y(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("General",u.i18n),initialOpen:!0},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Columns",u.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:4,className:"ugb--help-tip-general-columns",default:3}),(0,i.createElement)(k.QA,{setAttributes:a,blockAttributes:t.attributes})),w.columnBackground&&(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Container",u.i18n),initialOpen:!1,id:"column-background",className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(h.ButtonIconPopoverControl,{label:(0,m.__)("Background",u.i18n),popoverLabel:(0,m.__)("Background",u.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(h.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),w.border&&(0,i.createElement)(h.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),w.columnBackground&&(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Border Radius",u.i18n),value:o,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),w.columnBackground&&(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Shadow / Outline",u.i18n),value:l,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(h.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(h.ColumnPaddingControl,{label:(0,m.__)("Paddings",u.i18n),setAttributes:a,attributes:t.attributes}),w.imageSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"image%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Image",u.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-image"})),w.titleSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Title",u.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),w.descriptionSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Description",u.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),w.buttonSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Button",u.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Image",u.i18n),checked:p,onChange:e=>a({showImage:e}),toggleOnSetAttributes:["imageSize","imageShape","imageShapeFlipX","imageShapeFlipY","imageShapeStretch","imageWidth",...(0,r.createResponsiveAttributeNames)("image%sWidth"),"imageBorderRadius","imageShadow","imageBlendMode"],toggleAttributeName:"showImage"},(0,i.createElement)(h.ImageControlsHelper,{attrNameTemplate:"image%s",setAttributes:t.setAttributes,blockAttributes:t.attributes,onChangeImage:!1,onChangeAlt:!1,onChangeBlendMode:!1,onChangeSize:e=>{a({imageSize:e,image1Url:(0,r.getImageUrlFromCache)(v,e||"medium"),image2Url:(0,r.getImageUrlFromCache)(f,e||"medium"),image3Url:(0,r.getImageUrlFromCache)(C,e||"medium"),image4Url:(0,r.getImageUrlFromCache)(A,e||"medium")})}}),(0,i.createElement)(k.n9,{attrNameTemplate:"Image%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-image"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Title",u.i18n),id:"title",checked:s,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,r.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,i.createElement)(h.HeadingButtonsControl,{value:g||"h5",defaultValue:"h5",onChange:e=>a({titleTag:e})}),(0,i.createElement)(h.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:g||"h5"}),(0,i.createElement)(h.ColorPaletteControl,{value:d,onChange:e=>a({titleColor:e}),label:(0,m.__)("Title Color",u.i18n)}),(0,i.createElement)(k.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-title"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Description",u.i18n),id:"description",checked:c,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,r.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,i.createElement)(h.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(h.ColorPaletteControl,{value:b,onChange:e=>a({descriptionColor:e}),label:(0,m.__)("Description Color",u.i18n)}),(0,i.createElement)(k.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-description"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Button",u.i18n),id:"button",checked:_,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,r.createButtonAttributeNames)("button%s")],toggleAttributeName:"showButton"},(0,i.createElement)(h.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,design:t.attributes.buttonDesign||"plain",onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,placeholder:"21"}),(0,i.createElement)(h.ControlSeparator,null),(0,i.createElement)(k.n9,{attrNameTemplate:"button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-button"}))))}));const B=(0,w.compose)(_.FI,_.XQ,_.O0,(0,_.Q9)(),(0,_.lX)(["Image%sAlign","Title%sAlign","Description%sAlign","Button%sAlign"]),(0,_.OB)(A,{editorMode:!0}),(0,_.UY)([[".ugb-feature-grid__item","column-background"],[".ugb-feature-grid__title","title"],[".ugb-feature-grid__description","description"],[".ugb-button","button"]]),(0,T.withSelect)(((e,t)=>{(0,r.cacheImageData)(t.attributes.image1Id,e),(0,r.cacheImageData)(t.attributes.image2Id,e),(0,r.cacheImageData)(t.attributes.image3Id,e),(0,r.cacheImageData)(t.attributes.image4Id,e)})))((e=>{const{className:t,setAttributes:a,attributes:l}=e,{columns:s=3,titleTag:g="",imageSize:d,imageShape:p="",imageShapeStretch:_=!1,imageWidth:v="",imageShadow:f="",design:C="basic",shadow:A="",showImage:w=!0,showTitle:T=!0,showDescription:B=!0,showButton:x=!0,buttonIcon:S=""}=l,E=c()([t,"ugb-feature-grid--v2",`ugb-feature-grid--columns-${s}`,`ugb-feature-grid--design-${C}`],(0,o.applyFilters)("stackable.feature-grid.mainclasses",{},e)),N=y(e);return(0,i.createElement)(h.BlockContainer.Edit,{className:E,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,s+1).map((t=>{const n=l[`image${t}Url`],s=l[`image${t}Id`],y=l[`image${t}Alt`],C=l[`title${t}`],E=l[`description${t}`],R=l[`button${t}Text`],P=c()(["ugb-feature-grid__item",`ugb-feature-grid__item${t}`],(0,o.applyFilters)("stackable.feature-grid.itemclasses",{[`ugb--shadow-${A}`]:N.columnBackground&&""!==A},e,t));return(0,i.createElement)(k.Gc,{className:P,backgroundAttrName:"column%s",blockProps:e,showBackground:N.columnBackground&&N[`columnBackground${t}`],index:t,key:t},w&&(0,i.createElement)("div",{className:"ugb-feature-grid__image"},(0,i.createElement)(h.ImageUploadPlaceholder,{imageID:s,imageURL:n,imageSize:d,onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:"",[`image${t}Alt`]:""})},onChange:e=>{let{url:n,id:o,alt:i}=e;a({[`image${t}Url`]:n,[`image${t}Id`]:o,[`image${t}Alt`]:i})},render:(0,i.createElement)(k.Ee,{imageId:s,src:n,size:d,shape:l[`image${t}Shape`]||p,shapeStretch:l[`image${t}ShapeStretch`]||_,alt:y,shadow:f,width:v})})),(0,i.createElement)("div",{className:"ugb-feature-grid__content"},T&&(0,i.createElement)(b.RichText,{tagName:g||"h5",className:"ugb-feature-grid__title",value:C,onChange:e=>a({[`title${t}`]:e}),placeholder:(0,m.__)("Title",u.i18n),keepPlaceholderOnFocus:!0}),B&&(0,i.createElement)(b.RichText,{tagName:"p",className:"ugb-feature-grid__description",value:E,onChange:e=>a({[`description${t}`]:e}),placeholder:(0,r.descriptionPlaceholder)("short"),keepPlaceholderOnFocus:!0}),x&&(0,i.createElement)(k.Hr,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:e.attributes,designDefault:"plain",text:R,icon:l[`button${t}Icon`]||S,onChange:e=>a({[`button${t}Text`]:e}),onChangeIcon:e=>a({[`button${t}Icon`]:e}),url:l[`button${t}Url`],newTab:l[`button${t}NewTab`],noFollow:l[`button${t}NoFollow`],sponsored:l[`button${t}Sponsored`],ugc:l[`button${t}Ugc`],onChangeUrl:e=>a({[`button${t}Url`]:e}),onChangeNewTab:e=>a({[`button${t}NewTab`]:e}),onChangeNoFollow:e=>a({[`button${t}NoFollow`]:e}),onChangeSponsored:e=>a({[`button${t}Sponsored`]:e}),onChangeUgc:e=>a({[`button${t}Ugc`]:e})})))})))})})),x=(0,w.compose)(_.FI,(0,_.OB)(A))((e=>{const{attributes:t,className:a}=e,{design:l="basic",columns:r=3,imageShape:s="",imageShapeStretch:u=!1,imageWidth:g="",imageShadow:m="",titleTag:p="",shadow:_="",showImage:v=!0,showTitle:f=!0,showDescription:C=!0,showButton:A=!0,buttonIcon:w=""}=t,T=c()([a,"ugb-feature-grid--v2",`ugb-feature-grid--columns-${r}`,`ugb-feature-grid--design-${l}`],(0,o.applyFilters)("stackable.feature-grid.mainclasses",{},e)),B=y(e);return(0,i.createElement)(h.BlockContainer.Save,{className:T,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,r+1).map((a=>{const n=t[`image${a}Url`],l=t[`image${a}Id`],r=t[`image${a}Alt`],h=t[`title${a}`],y=t[`description${a}`],T=t[`button${a}Text`],x=c()(["ugb-feature-grid__item",`ugb-feature-grid__item${a}`],(0,o.applyFilters)("stackable.feature-grid.itemclasses",{[`ugb--shadow-${_}`]:B.columnBackground&&""!==_},e,a));return(0,i.createElement)(k.Gc,{className:x,backgroundAttrName:"column%s",blockProps:e,showBackground:B.columnBackground&&B[`columnBackground${a}`],index:a,key:a},n&&v&&(0,i.createElement)("div",{className:"ugb-feature-grid__image"},(0,i.createElement)(k.Ee,{imageId:l,src:n,width:g,alt:d()(r||f&&h),shadow:m,shape:t[`image${a}Shape`]||s,shapeStretch:t[`image${a}ShapeStretch`]||u})),(0,i.createElement)("div",{className:"ugb-feature-grid__content"},f&&!b.RichText.isEmpty(h)&&(0,i.createElement)(b.RichText.Content,{tagName:p||"h5",className:"ugb-feature-grid__title",value:h}),C&&!b.RichText.isEmpty(y)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-feature-grid__description",value:y}),A&&!b.RichText.isEmpty(T)&&(0,i.createElement)(k.Hr.Content,{attrNameTemplate:"button%s",blockAttributes:e.attributes,designDefault:"plain",text:T,icon:t[`button${a}Icon`]||w,url:t[`button${a}Url`],newTab:t[`button${a}NewTab`],noFollow:t[`button${a}NoFollow`],sponsored:t[`button${a}Sponsored`],ugc:t[`button${a}Ugc`]})))})))})})),S={design:{type:"string",default:"basic"},columns:{type:"number",default:3},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,v.yA)("column%s"),...(0,r.createBorderAttributes)("column%s"),showImage:{type:"boolean",default:!0},...(0,r.createImageAttributes)("image%s",{exclude:["Url","Id","Alt","BlendMode"]}),...(0,r.createAllCombinationAttributes)("image%sId",{type:"number",default:""},["1","2","3","4"]),...(0,r.createAllCombinationAttributes)("image%sUrl",{type:"string",default:"",source:"attribute",selector:".ugb-feature-grid__item%d .ugb-feature-grid__image img",attribute:"src"},["1","2","3","4"]),...(0,r.createAllCombinationAttributes)("image%sAlt",{type:"string",default:"",source:"attribute",selector:".ugb-feature-grid__item%d .ugb-feature-grid__image img",attribute:"alt"},["1","2","3","4"]),...(0,r.createAllCombinationAttributes)("image%sShape",{type:"string",default:""},["1","2","3","4"]),...(0,r.createAllCombinationAttributes)("image%s%s",{type:"boolean",default:!1},["1","2","3","4"],["ShapeFlipX","ShapeFlipY","ShapeStretch"]),showTitle:{type:"boolean",default:!0},...(0,r.createAllCombinationAttributes)("title%s",{type:"string",source:"html",selector:".ugb-feature-grid__item%d .ugb-feature-grid__title",default:(0,m.__)("Title",u.i18n)},["1","2","3","4"]),titleTag:{type:"string",default:""},...(0,r.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},showDescription:{type:"boolean",default:!0},...(0,r.createAllCombinationAttributes)("description%s",{type:"string",source:"html",selector:".ugb-feature-grid__item%d .ugb-feature-grid__description",default:(0,r.descriptionPlaceholder)("short")},["1","2","3","4"]),...(0,r.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},showButton:{type:"boolean",default:!0},...(0,r.createButtonAttributes)("button%s",{exclude:["Text","Url","NewTab","NoFollow","Sponsored","Ugc"]}),...(0,r.createButtonAttributes)("button1%s",{selector:".ugb-feature-grid__item1 .ugb-button"}),...(0,r.createButtonAttributes)("button2%s",{selector:".ugb-feature-grid__item2 .ugb-button"}),...(0,r.createButtonAttributes)("button3%s",{selector:".ugb-feature-grid__item3 .ugb-button"}),...(0,r.createButtonAttributes)("button4%s",{selector:".ugb-feature-grid__item4 .ugb-button"}),...(0,r.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Image","Title","Description","Button"],["","Tablet","Mobile"]),...(0,r.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Image","Title","Description","Button"],["","Tablet","Mobile"]),hoverEffect:{type:"string",default:""},...(0,r.createAllCombinationAttributes)("Column%sBackgroundColor",{type:"string",default:""},["1","2","3","4"])},E=JSON.parse('{"name":"ugb/feature-grid","title":"Feature Grid","description":"Display multiple product features or services. You can use Feature Grids one after another.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var N=a(9467);const{name:R,...P}=E,I={...P,title:P.title+" (v2)",icon:N.FeatureGridIcon,attributes:S,example:{attributes:{design:"basic",columns:2,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showImage:!0,imageShape:"circle",imageSize:"thumbnail",image1Id:597,image2Id:596,image1Url:"https://source.unsplash.com/400x300/?donut",image2Url:"https://source.unsplash.com/400x300/?coffee",image1Alt:"Title",image2Alt:"Title",image1ShapeFlipX:!1,image1ShapeFlipY:!1,image1ShapeStretch:!1,image2ShapeFlipX:!1,image2ShapeFlipY:!1,image2ShapeStretch:!1,image3ShapeFlipX:!1,image3ShapeFlipY:!1,image3ShapeStretch:!1,image4ShapeFlipX:!1,image4ShapeFlipY:!1,image4ShapeStretch:!1,showTitle:!0,title1:"Title",title2:"Title",titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showDescription:!0,description1:"Description for this block. Place your content in here.",description2:"Description for this block. Place your content in here.",descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showButton:!0,buttonFontSize:18,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",button1LineHeightUnit:"em",button1TabletLineHeightUnit:"em",button1MobileLineHeightUnit:"em",button1Text:"Button text",button1NewTab:!1,button2LineHeightUnit:"em",button2TabletLineHeightUnit:"em",button2MobileLineHeightUnit:"em",button2Text:"Button text",button2NewTab:!1,button3LineHeightUnit:"em",button3TabletLineHeightUnit:"em",button3MobileLineHeightUnit:"em",button3NewTab:!1,button4LineHeightUnit:"em",button4TabletLineHeightUnit:"em",button4MobileLineHeightUnit:"em",button4NewTab:!1,uniqueClass:"ugb-f90ca74",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["wide"],inserter:!u.v2disabledBlocks.includes(R),anchor:!0},deprecated:p,edit:B,save:x,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{verticalColumnAlign:!0,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"container-link":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.feature-grid.custom-css.default","")}}};(0,o.addFilter)("stackable.feature-grid.setAttributes","stackable/feature-grid/imageShape",(e=>void 0!==e.imageShape?{...e,image1Shape:"",image2Shape:"",image3Shape:"",image4Shape:"",image1ShapeFlipX:"",image1ShapeFlipY:"",image1ShapeStretch:"",image2ShapeFlipX:"",image2ShapeFlipY:"",image2ShapeStretch:"",image3ShapeFlipX:"",image3ShapeFlipY:"",image3ShapeStretch:"",image4ShapeFlipX:"",image4ShapeFlipY:"",image4ShapeStretch:""}:void 0!==e.imageShapeFlipX?{...e,image1ShapeFlipX:"",image2ShapeFlipX:"",image3ShapeFlipX:"",image4ShapeFlipX:""}:void 0!==e.imageShapeFlipY?{...e,image1ShapeFlipY:"",image2ShapeFlipY:"",image3ShapeFlipY:"",image4ShapeFlipY:""}:void 0!==e.imageShapeStretch?{...e,image1ShapeStretch:"",image2ShapeStretch:"",image3ShapeStretch:"",image4ShapeStretch:""}:void 0!==e.columnBackgroundColor||void 0!==e.columnBackgroundColorType?{...e,column1BackgroundColor:"",column2BackgroundColor:"",column3BackgroundColor:"",column4BackgroundColor:""}:e))},2977:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>P,settings:()=>$});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.feature.design.no-text-attributes","stackable/feature",(e=>(0,n.omit)(e,["title","description","buttonText"]))),(0,o.addFilter)("stackable.feature.design.filtered-block-attributes","stackable/feature",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,n.omit)(e,["imageId",...t&&t.imageId?["imageUrl"]:[],"imageAlt","buttonUrl","buttonNewTab","buttonNoFollow"])}}));var i=a(2610),l=a(257),r=a(7545),s=a(4184),c=a.n(s),u=a(910),g=a(3726),d=a.n(g),b=a(78),m=a(8003);const p=[{attributes:{textColor:{type:"string"},invert:{type:"boolean",default:!1},contentAlign:{type:"string",default:"left"},imageSize:{type:"number",default:400},imageID:{type:"number"},imageUrl:{type:"url"},imageAlt:{type:"string"},title:{source:"html",selector:"h2",default:(0,m.__)("Title for This Block",u.i18n)},description:{source:"html",selector:"p",default:(0,r.descriptionPlaceholder)("medium")},buttonURL:{type:"string",source:"attribute",selector:".ugb-button",attribute:"href",default:""},buttonNewTab:{type:"boolean",source:"attribute",selector:".ugb-button",attribute:"target",default:!1},buttonText:{source:"html",selector:".ugb-button span",default:(0,m.__)("Button text",u.i18n)},buttonColor:{type:"string"},buttonTextColor:{type:"string"},buttonSize:{type:"string",default:"normal"},buttonBorderRadius:{type:"number",default:4},buttonDesign:{type:"string",default:"basic"},buttonIcon:{type:"string"},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},contentWidth:{type:"boolean",default:!1},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},align:{type:"string"},hoverEffect:{type:"string",default:""},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{invert:a,contentAlign:n,textColor:r,imageAlt:s="",imageSize:u,imageUrl:g,title:m,description:p,buttonURL:h,buttonNewTab:k,buttonText:_,buttonColor:v,buttonTextColor:y,buttonSize:f,buttonBorderRadius:C,buttonDesign:A,buttonIcon:w,backgroundColorType:T="",backgroundColor:B,backgroundColor2:x,backgroundColorDirection:S=0,backgroundType:E="",backgroundImageURL:N,backgroundOpacity:R=5,fixedBackground:P,contentWidth:I,align:$,design:U="plain",borderRadius:F=12,shadow:L=3}=e.attributes,M=c()([t,"ugb-feature","ugb--background-opacity-"+1*Math.round(R/1),`ugb-feature--design-${U}`],(0,o.applyFilters)("stackable.feature.mainclasses_1_17_2",{[`ugb-feature--content-${n}`]:n,"ugb-feature--invert":a,"ugb--has-background":"plain"!==U&&(B||N),"ugb--has-background-image":"plain"!==U&&N,"ugb--content-width":"full"===$&&I,[`ugb--shadow-${L}`]:"plain"!==U&&3!==L,"ugb--has-background-gradient":"plain"!==U&&"gradient"===T,"ugb--has-background-video":"plain"!==U&&"video"===E},U,e)),H=c()(["ugb-feature__image"],(0,o.applyFilters)("stackable.feature.imageclasses_1_17_2",{[`ugb--shadow-${L}`]:"plain"===U},U,e)),D="plain"===U?{}:{backgroundColor:B||void 0,backgroundImage:N?`url(${N})`:void 0,backgroundAttachment:P?"fixed":void 0,"--ugb-background-color":N||"gradient"===T?B:void 0,"--ugb-background-color2":"gradient"===T&&x?x:void 0,"--ugb-background-direction":"gradient"===T?`${S}deg`:void 0,borderRadius:12!==F?F:void 0},O=(0,o.applyFilters)("stackable.feature.styles_1_17_2",{main:{"--image-size":u?`${u}px`:void 0,...D},image:{borderRadius:"plain"===U?F:void 0}},U,e),z=!b.RichText.isEmpty(m)&&(0,i.createElement)(b.RichText.Content,{tagName:"h2",className:"ugb-feature__title",style:{color:r},value:m}),W=!b.RichText.isEmpty(p)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-feature__description",style:{color:r},value:p}),q=!b.RichText.isEmpty(_)&&(0,i.createElement)(l.YG,{size:f,url:h,newTab:k,align:n,color:y,text:_,icon:w,design:A,backgroundColor:v,borderRadius:C}),V=g&&(0,i.createElement)("img",{className:H,style:O.image,src:g,alt:d()(m||s)}),G={titleComp:z,descriptionComp:W,buttonComp:q,imageComp:V};return(0,i.createElement)("div",{className:M,style:O.main},"basic"===U&&"video"===E&&(0,i.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:N}),(0,o.applyFilters)("stackable.feature.save.output.before_1_17_2",null,U,e),(0,o.applyFilters)("stackable.feature.save.output_1_17_2",(0,i.createElement)("div",{className:"ugb-content-wrapper"},(0,i.createElement)("div",{className:"ugb-feature__content"},z,W,q),(0,i.createElement)("div",{className:"ugb-feature__image-side"},V)),G,e))},migrate:e=>{const t=e=>(e||"").replace(/\n\.ugb-feature(\s*{)/g,"\n.ugb-feature__item$1"),a={overlap:"overlap-bg",overlap2:"overlap-bg2",overlap3:"overlap-bg4"};return{...e,design:Object.keys(a).includes(e.design)?a[e.design]:e.design,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),titleColor:e.textColor,descriptionColor:e.textColor,imageWidth:e.imageSize,imageId:e.imageID,imageUrl:e.imageUrl,buttonUrl:e.buttonURL,buttonNewTab:e.buttonNewTab,buttonBackgroundColor:e.buttonColor,columnBackgroundColorType:e.backgroundColorType,columnBackgroundColor:e.backgroundColor,columnBackgroundColor2:e.backgroundColor2,columnBackgroundGradientDirection:e.backgroundColorDirection,columnBackgroundMediaId:e.backgroundImageID,columnBackgroundMediaUrl:e.backgroundImageURL,columnBackgroundTintStrength:e.backgroundOpacity,columnFixedBackground:e.fixedBackground,marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}}];var h=a(7200),k=a(9858),_=a(1414),v=a(8423);const y=e=>{const{design:t="basic",showTitle:a=!0,showDescription:n=!0,showButton:i=!0}=e.attributes;return(0,o.applyFilters)("stackable.feature.show",{imageColumnWidth:["basic","plain","half"].includes(t),containerWidth:t.match(/^overlap/),containerOffset:t.match(/^overlap(.*)?[2-5]$/),reverseHorizontally:!t.match(/^overlap-?\w*[45]$/),borderRadius:"plain"!==t,border:"plain"!==t,columnBackground:"plain"!==t,featuredImageAsBackground:t.match(/^(overlap-bg|half)/),titleSpacing:a,descriptionSpacing:n,buttonSpacing:i},e)};var f=a(4863),C=a.n(f);const A=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const a=("number"!=typeof e?50:e)/100*2,n=2-a;return t?`${n.toFixed(2)}fr ${a.toFixed(2)}fr`:`${a.toFixed(2)}fr ${n.toFixed(2)}fr`},w=e=>{const t=(0,r.__getValue)(e.attributes),a=y(e),{design:n="plain",columnBackgroundColor:o="",invert:i=!1}=e.attributes,l=[];a.imageColumnWidth&&l.push({desktopTablet:{".ugb-feature__item":{gridTemplateColumns:t("imageColumnWidth")?(0,r.appendImportant)(A(t("imageColumnWidth"),!i)):void 0}},tabletOnly:{".ugb-feature__item":{gridTemplateColumns:t("imageColumnTabletWidth")?(0,r.appendImportant)(A(t("imageColumnTabletWidth"),!i)):void 0}}});const s="basic"===n||"half"===n?".ugb-feature__item":".ugb-feature__content";if(a.borderRadius&&l.push({[s]:{borderRadius:t("borderRadius","%spx !important")}}),a.border&&l.push({...(0,r.createBorderStyleSet)("column%s",s,e.attributes)}),a.columnBackground){const t="basic"===n?"ugb-feature__item":"ugb-feature__content";l.push({...a.columnBackground?(0,v._H)("column%s",t,e.attributes,{importantBackgroundColor:!0,importantBackgroundPosition:!0,importantBackgroundSize:!0,importantBackgroundRepeat:!0}):{}})}a.featuredImageAsBackground?(l.push({...(0,r.createImageBackgroundStyleSet)("image%s","ugb-feature__image",e.attributes)}),l.push({".ugb-feature__item":{height:t("imageBackgroundHeight","%spx !important")},tablet:{".ugb-feature__item":{height:t("imageBackgroundTabletHeight","%spx !important")}},mobile:{".ugb-feature__item":{height:t("imageBackgroundMobileHeight","%spx !important")}}})):l.push({...a.featuredImageAsBackground?{}:(0,r.createImageStyleSet)("image%s","ugb-img",e.attributes,{inherit:!1})});const{titleColor:c="",showTitle:u=!0}=e.attributes;u&&l.push({".ugb-feature__title":{...(0,r.createTypographyStyles)("title%s","desktop",e.attributes),color:(0,r.whiteIfDark)(c,a.columnBackground&&o),textAlign:t("titleAlign")},tablet:{".ugb-feature__title":{...(0,r.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")}},mobile:{".ugb-feature__title":{...(0,r.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")}}});const{descriptionColor:g="",showDescription:d=!0}=e.attributes;d&&l.push({".ugb-feature__description":{...(0,r.createTypographyStyles)("description%s","desktop",e.attributes),color:(0,r.whiteIfDark)(g,a.columnBackground&&o),textAlign:t("descriptionAlign")},tablet:{".ugb-feature__description":{...(0,r.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:t("descriptionTabletAlign")}},mobile:{".ugb-feature__description":{...(0,r.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:t("descriptionMobileAlign")}}});const{showButton:b=!0}=e.attributes;return b&&(l.push({...(0,r.createButtonStyleSet)("button%s","ugb-button",e.attributes)}),l.push({".ugb-button-container":{textAlign:t("buttonAlign","%s !important")},tablet:{".ugb-button-container":{textAlign:t("buttonTabletAlign","%s !important")}},mobile:{".ugb-button-container":{textAlign:t("buttonMobileAlign","%s !important")}}})),a.titleSpacing&&l.push(...(0,r.createResponsiveStyles)(".ugb-feature__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.descriptionSpacing&&l.push(...(0,r.createResponsiveStyles)(".ugb-feature__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.buttonSpacing&&l.push(...(0,r.createResponsiveStyles)(".ugb-button-container","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),C().all(l)};var T=a(3749),B=a(3284);(0,o.addFilter)("stackable.feature.edit.layouts","default",(e=>[...e,{image:"dist/images/block-feature-basic.d95bb40.png",label:(0,m.__)("Basic",u.i18n),value:"basic"},{image:"dist/images/block-feature-plain.659c41d.png",label:(0,m.__)("Plain",u.i18n),value:"plain"},{label:(0,m.__)("Half Background",u.i18n),value:"half",image:"dist/images/block-feature-half.2d8d61b.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Shape %s",u.i18n),1),value:"overlap",image:"dist/images/block-feature-overlap-shape.7fd28c9.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Shape %s",u.i18n),2),value:"overlap2",image:"dist/images/block-feature-overlap-shape2.956d6fb.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Shape %s",u.i18n),3),value:"overlap3",image:"dist/images/block-feature-overlap-shape3.a8e4e8e.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Shape %s",u.i18n),4),value:"overlap4",image:"dist/images/block-feature-overlap-shape4.c8294ec.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Shape %s",u.i18n),5),value:"overlap5",image:"dist/images/block-feature-overlap-shape5.34be3b7.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Background %s",u.i18n),1),value:"overlap-bg",image:"dist/images/block-feature-overlap.5b3ba0a.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Background %s",u.i18n),2),value:"overlap-bg2",image:"dist/images/block-feature-overlap2.4cab3f2.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Background %s",u.i18n),3),value:"overlap-bg3",image:"dist/images/block-feature-overlap3.7f0911e.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Background %s",u.i18n),4),value:"overlap-bg4",image:"dist/images/block-feature-overlap4.4c6ca44.png",premium:!0},{label:(0,m.sprintf)((0,m.__)("Overlap Background %s",u.i18n),5),value:"overlap-bg5",image:"dist/images/block-feature-overlap5.75f68bc.png",premium:!0}])),(0,o.addFilter)("stackable.feature.edit.inspector.layout.before","stackable/feature",((e,t)=>{const{setAttributes:a}=t,{design:n="plain"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(h.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.feature.edit.layouts",[]),onChange:e=>{a({design:e})}},u.showProNotice&&(0,i.createElement)(h.ProControlButton,null)))})),(0,o.addFilter)("stackable.feature.edit.inspector.style.before","stackable/feature",((e,t)=>{const{setAttributes:a}=t,{borderRadius:n="",shadow:o="",showTitle:l=!0,titleTag:s="",titleColor:c="",invert:g=!1,showButton:d=!0,showDescription:b=!0,descriptionColor:p=""}=t.attributes,_=y(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("General",u.i18n),initialOpen:!0},_.imageColumnWidth&&(0,i.createElement)(k.n9,{attrNameTemplate:"imageColumn%sWidth",setAttributes:a,blockAttributes:t.attributes,screens:["desktop","tablet"]},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Image Column Width",u.i18n),min:0,max:100,allowReset:!0,placeholder:"50",className:"ugb--help-tip-image-column-width"})),_.reverseHorizontally&&(0,i.createElement)(h.AdvancedToggleControl,{label:(0,m.__)("Reverse Horizontally",u.i18n),checked:g,onChange:e=>a({invert:e})}),(0,i.createElement)(k.QA,{setAttributes:a,blockAttributes:t.attributes})),_.columnBackground&&(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Container",u.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(h.ButtonIconPopoverControl,{label:(0,m.__)("Background",u.i18n),popoverLabel:(0,m.__)("Background",u.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(h.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),_.containerWidth&&(0,i.createElement)(k.n9,{attrNameTemplate:"container%sWidth",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Container Width",u.i18n),min:0,max:1e3,allowReset:!0,className:"ugb--help-tip-feature-container-width"})),_.containerOffset&&(0,i.createElement)(k.n9,{attrNameTemplate:"container%sOffset",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Container Offset",u.i18n),min:0,max:300,allowReset:!0,className:"ugb--help-tip-feature-container-offset"})),_.border&&(0,i.createElement)(h.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),_.borderRadius&&(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Border Radius",u.i18n),value:n,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),_.columnBackground&&(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Shadow / Outline",u.i18n),value:o,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(h.PanelSpacingBody,{initialOpen:!1,blockProps:t},_.titleSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Title",u.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),_.descriptionSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Description",u.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),_.buttonSpacing&&(0,i.createElement)(k.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Button",u.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Image",u.i18n),initialOpen:!1},!_.featuredImageAsBackground&&(0,i.createElement)(h.ImageControlsHelper,{attrNameTemplate:"image%s",setAttributes:a,blockAttributes:t.attributes,onChangeBlendMode:!1}),_.featuredImageAsBackground&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(h.ImageBackgroundControlsHelper,{attrNameTemplate:"image%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(k.n9,{attrNameTemplate:"imageBackground%sHeight",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AdvancedRangeControl,{label:(0,m.__)("Image Height",u.i18n),min:0,max:1e3,allowReset:!0,className:"ugb--help-tip-image-height-crop"})))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Title",u.i18n),id:"title",checked:l,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,r.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,i.createElement)(h.HeadingButtonsControl,{value:s||"h2",defaultValue:"h2",onChange:e=>a({titleTag:e})}),(0,i.createElement)(h.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:s||"h2"}),(0,i.createElement)(h.ColorPaletteControl,{value:c,onChange:e=>a({titleColor:e}),label:(0,m.__)("Title Color",u.i18n)}),(0,i.createElement)(k.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-title"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Description",u.i18n),id:"description",checked:b,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,r.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,i.createElement)(h.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(h.ColorPaletteControl,{value:p,onChange:e=>a({descriptionColor:e}),label:(0,m.__)("Description Color",u.i18n)}),(0,i.createElement)(k.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-description"}))),(0,i.createElement)(h.PanelAdvancedSettings,{title:(0,m.__)("Button",u.i18n),id:"button",checked:d,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,r.createButtonAttributeNames)("button%s"),...(0,r.createResponsiveAttributeNames)("button%sAlign")],toggleAttributeName:"showButton"},(0,i.createElement)(h.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"}),(0,i.createElement)(h.ControlSeparator,null),(0,i.createElement)(k.n9,{attrNameTemplate:"button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(h.AlignButtonsControl,{label:(0,m.__)("Align",u.i18n),className:"ugb--help-tip-alignment-button"}))))}));const x=(0,T.compose)(_.FI,_.XQ,_.O0,(0,_.Q9)(),(0,_.lX)(["Title%sAlign","Description%sAlign","Button%sAlign"]),(0,_.OB)(w,{editorMode:!0}),(0,_.UY)([[".ugb-feature__item","column-background"],[".ugb-feature__title","title"],[".ugb-feature__description","description"],[".ugb-button","button"]]),(0,B.withSelect)(((e,t)=>{(0,r.cacheImageData)(t.attributes.imageId,e)})))((e=>{const{className:t,setAttributes:a}=e,{title:n,design:l="basic",shadow:s="",invert:g=!1,showTitle:d=!0,titleTag:p="",showDescription:_=!0,description:v="",imageId:f="",imageUrl:C="",imageAlt:A="",imageSize:w="large",imageShape:T="",imageShapeStretch:B=!1,imageHeight:x="",imageShadow:S="",showButton:E=!0}=e.attributes,N=y(e),R=c()([t,"ugb-feature--v2",`ugb-feature--design-${l}`],(0,o.applyFilters)("stackable.feature.mainclasses",{"ugb-feature--invert":N.reverseHorizontally&&g},l,e)),P=c()(["ugb-feature__item"],(0,o.applyFilters)("stackable.feature.itemclasses",{[`ugb--shadow-${s}`]:N.columnBackground&&("basic"===l||"half"===l)&&""!==s},e)),I=c()(["ugb-feature__content"],(0,o.applyFilters)("stackable.feature.contentclasses",{[`ugb--shadow-${s}`]:N.columnBackground&&"basic"!==l&&"half"!==l&&""!==s},e)),$=c()(["ugb-feature__image"],(0,o.applyFilters)("stackable.feature.imageclasses",{[`ugb--shadow-${S}`]:N.columnBackground&&"plain"===l&&""===T,"ugb-feature__image-has-shape":""!==T},l,e));return(0,i.createElement)(h.BlockContainer.Edit,{className:R,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k.Gc,{className:P,backgroundAttrName:"column%s",blockProps:e,showBackground:N.columnBackground&&"basic"===l},(0,i.createElement)(k.Gc,{className:I,backgroundAttrName:"column%s",blockProps:e,showBackground:N.columnBackground&&"basic"!==l},d&&(0,i.createElement)(b.RichText,{tagName:p||"h2",className:"ugb-feature__title",value:n,onChange:e=>a({title:e}),placeholder:(0,m.__)("Title for This Block",u.i18n),keepPlaceholderOnFocus:!0}),_&&(0,i.createElement)(b.RichText,{tagName:"p",className:"ugb-feature__description",value:v,onChange:e=>a({description:e}),placeholder:(0,r.descriptionPlaceholder)("medium"),keepPlaceholderOnFocus:!0}),E&&(0,i.createElement)(k.Hr,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:e.attributes})),!N.featuredImageAsBackground&&(0,i.createElement)("div",{className:"ugb-feature__image-side"},(0,i.createElement)(h.ImageUploadPlaceholder,{imageID:f,imageURL:C,imageSize:w,className:$,onRemove:()=>{a({imageUrl:"",imageId:"",imageAlt:"",imageWidth:"",imageHeight:""})},onChange:e=>{a({imageUrl:e.url,imageId:e.id,imageAlt:e.alt,imageWidth:e.width,imageHeight:e.height})},render:(0,i.createElement)(k.Ee,{imageId:f,src:C,size:w,shape:T,shapeStretch:B,alt:A,height:x,shadow:S})})),N.featuredImageAsBackground&&(0,i.createElement)(h.ImageUploadPlaceholder,{imageID:f,imageURL:C,imageSize:w,className:$,onRemove:()=>{a({imageUrl:"",imageId:"",imageAlt:"",imageWidth:"",imageHeight:""})},onChange:e=>{a({imageUrl:e.url,imageId:e.id,imageAlt:e.alt,imageWidth:e.width,imageHeight:e.height})}})))})})),S=(0,T.compose)(_.FI,(0,_.OB)(w))((e=>{const{className:t}=e,{title:a,design:n="basic",shadow:l="",invert:r=!1,showTitle:s=!0,titleTag:u="",showDescription:g=!0,description:m="",imageId:p="",imageUrl:_="",imageAlt:v="",imageShape:f="",imageHeight:C="",imageShadow:A="",imageShapeStretch:w="",showButton:T=!0,buttonUrl:B="",buttonNewTab:x=!1,buttonSize:S="normal",buttonText:E="",buttonShadow:N=0,buttonHoverEffect:R="",buttonIcon:P="",buttonIconPosition:I="",buttonDesign:$="basic",buttonHoverGhostToNormal:U=!1,buttonNoFollow:F=!1,buttonSponsored:L=!1,buttonUgc:M=!1}=e.attributes,H=y(e),D=c()([t,"ugb-feature--v2",`ugb-feature--design-${n}`],(0,o.applyFilters)("stackable.feature.mainclasses",{"ugb-feature--invert":H.reverseHorizontally&&r},n,e)),O=c()(["ugb-feature__item"],(0,o.applyFilters)("stackable.feature.itemclasses",{[`ugb--shadow-${l}`]:H.columnBackground&&("basic"===n||"half"===n)&&""!==l},e)),z=c()(["ugb-feature__content"],(0,o.applyFilters)("stackable.feature.contentclasses",{[`ugb--shadow-${l}`]:H.columnBackground&&"basic"!==n&&"half"!==n&&""!==l},e)),W=c()(["ugb-feature__image"],(0,o.applyFilters)("stackable.feature.imageclasses",{[`ugb--shadow-${A}`]:H.columnBackground&&"plain"===n&&""===f,"ugb-feature__image-has-shape":""!==f},n,e));return(0,i.createElement)(h.BlockContainer.Save,{className:D,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(k.Gc,{className:O,backgroundAttrName:"column%s",blockProps:e,showBackground:H.columnBackground&&"basic"===n},(0,i.createElement)(k.Gc,{className:z,backgroundAttrName:"column%s",blockProps:e,showBackground:H.columnBackground&&"basic"!==n},s&&!b.RichText.isEmpty(a)&&(0,i.createElement)(b.RichText.Content,{tagName:u||"h2",className:"ugb-feature__title",value:a}),g&&!b.RichText.isEmpty(m)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-feature__description",value:m}),T&&!b.RichText.isEmpty(E)&&(0,i.createElement)(k.df.Content,{size:""!==S?S:"normal",text:E,icon:P,newTab:""!==x&&x,url:B,noFollow:F,sponsored:L,ugc:M,hoverEffect:R,ghostToNormalEffect:U,shadow:N,iconPosition:I,design:""!==$?$:"basic"})),!H.featuredImageAsBackground&&(0,i.createElement)("div",{className:"ugb-feature__image-side"},(0,i.createElement)(k.Ee,{imageId:p,className:W,src:_,height:C,alt:d()(v),shape:f,shapeStretch:w,shadow:A})),H.featuredImageAsBackground&&(0,i.createElement)("div",{className:"ugb-feature__image"})))})})),E={design:{type:"string",default:"plain"},...(0,r.createResponsiveAttributes)("imageColumn%sWidth",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("container%sWidth",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("container%sOffset",{type:"number",default:""}),invert:{type:"boolean",default:!1},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,v.yA)("column%s"),...(0,r.createBorderAttributes)("column%s"),...(0,r.createImageAttributes)("image%s"),...(0,r.createImageBackgroundAttributes)("image%s"),imageShapeStretch:{type:"boolean",default:!0},...(0,r.createResponsiveAttributes)("imageBackground%sHeight",{type:"number",default:""}),title:{source:"html",selector:".ugb-feature__title",default:(0,m.__)("Title for This Block",u.i18n)},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,r.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},description:{source:"html",selector:".ugb-feature__description",default:(0,r.descriptionPlaceholder)("medium")},showDescription:{type:"boolean",default:!0},...(0,r.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},showButton:{type:"boolean",default:!0},...(0,r.createButtonAttributes)("button%s",{selector:".ugb-button"}),...(0,r.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("description%sBottomMargin",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("button%sBottomMargin",{type:"number",default:""}),...(0,r.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Title","Description","Button"],["","Tablet","Mobile"]),hoverEffect:{type:"string",default:""}},N=JSON.parse('{"name":"ugb/feature","title":"Feature","description":"Display a product feature or a service in a large area.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var R=a(9467);const{name:P,...I}=N,$={...I,title:I.title+" (v2)",icon:R.FeatureIcon,supports:{align:["center","wide","full"],inserter:!u.v2disabledBlocks.includes(P),anchor:!0},deprecated:p,edit:x,save:S,attributes:E,example:{attributes:{design:"basic",invert:!1,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",imageUrl:"https://source.unsplash.com/400x300/?architecture",imageSize:"large",imageId:429,imageWidth:580,imageHeight:870,imageShapeStretch:!0,title:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",description:"Description for this block. Use this space for describing your block. Any text will do.",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showButton:!0,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",buttonText:"Button text",buttonNewTab:!1,uniqueClass:"ugb-5bae7c2",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"container-link":{customFilters:!0},"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.feature.custom-css.default","")}}};(0,o.addFilter)("stackable.feature.itemclasses","custom",((e,t)=>{const{showContainerLink:a=!1,design:n="plain"}=t.attributes;return{...e,"ugb-container-link":a&&["plain","basic","half"].includes(n)}})),(0,o.addFilter)("stackable.feature.contentclasses","custom",((e,t)=>{const{showContainerLink:a=!1,design:n="plain"}=t.attributes;return{...e,"ugb-container-link":a&&!["plain","basic","half"].includes(n)}}))},785:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>S,settings:()=>N});var n=a(9467),o=a(910),i=a(8085),l=a(3882);(0,l.addFilter)("stackable.header.design.no-text-attributes","stackable/header",(e=>(0,i.omit)(e,["title","subtitle","buttonText","button2Text"]))),(0,l.addFilter)("stackable.header.design.filtered-block-attributes","stackable/header",(e=>({...(0,i.omit)(e,["buttonUrl","buttonNewTab","buttonNoFollow","button2Url","button2NewTab","button2NoFollow"])})));var r=a(2610),s=a(257),c=a(7545),u=a(8003),g=a(4184),d=a.n(g),b=a(78);const m=[{attributes:{title:{source:"html",selector:"h2",default:(0,u.__)("Title for This Block",o.i18n)},subtitle:{source:"html",selector:"p",default:(0,c.descriptionPlaceholder)()},titleColor:{type:"string"},subtitleColor:{type:"string"},contentAlign:{type:"string",default:"center"},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string",default:"#000000"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},contentWidth:{type:"boolean",default:!1},align:{type:"string"},invert:{type:"boolean",default:!1},fullHeight:{type:"boolean",default:!1},buttonURL:{type:"string",source:"attribute",selector:".ugb-button",attribute:"href",default:""},buttonNewTab:{type:"boolean",source:"attribute",selector:".ugb-button",attribute:"target",default:!1},buttonText:{source:"html",selector:".ugb-button span",default:(0,u.__)("Button text",o.i18n)},buttonColor:{type:"string"},buttonTextColor:{type:"string",default:"#ffffff"},buttonDesign:{type:"string",default:"basic"},buttonIcon:{type:"string"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},buttonURL2:{type:"string",source:"attribute",selector:".ugb-header__buttons > *:last-child .ugb-button",attribute:"href",default:""},buttonNewTab2:{type:"boolean",source:"attribute",selector:".ugb-header__buttons > *:last-child .ugb-button",attribute:"target",default:!1},buttonText2:{source:"html",selector:".ugb-header__buttons > *:last-child .ugb-button span",default:(0,u.__)("Button text",o.i18n)},buttonColor2:{type:"string"},buttonTextColor2:{type:"string",default:"#ffffff"},buttonDesign2:{type:"string",default:"basic"},buttonIcon2:{type:"string"},buttonSize2:{type:"string",default:"normal"},buttonBorderRadius2:{type:"number",default:4},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},opacity:{type:"number"},url:{type:"string"},id:{type:"number"}},save:e=>{const{className:t}=e,{buttonURL:a,buttonText:n,buttonColor:o,buttonTextColor:i,buttonDesign:c,buttonIcon:u,cornerButtonRadius:g,size:m,title:p,titleColor:h,subtitle:k,subtitleColor:_,contentAlign:v="center",backgroundColorType:y="",backgroundColor:f,backgroundColor2:C,backgroundColorDirection:A=0,backgroundType:w="",backgroundImageURL:T,backgroundOpacity:B,fixedBackground:x,design:S="basic",borderRadius:E=12,shadow:N=3,align:R,contentWidth:P=!1,buttonNewTab:I,invert:$=!1,fullHeight:U=!1,buttonSize2:F,buttonTextColor2:L,buttonColor2:M,buttonText2:H="",buttonBorderRadius2:D=4,buttonDesign2:O="basic",buttonIcon2:z="",buttonURL2:W="",buttonNewTab2:q=!1}=e.attributes,V=d()([t,"ugb-header","ugb-header--v2","ugb--background-opacity-"+1*Math.round(B/1),[`ugb-header--design-${S}`]],(0,l.applyFilters)("stackable.header.mainclasses_1_15_6",{"ugb--has-background":"plain"!==S&&(f||T),"ugb--has-background-image":"plain"!==S&&T,[`ugb--shadow-${N}`]:"plain"!==S&&3!==N,"ugb--content-width":"full"===R&&P,"ugb-header--invert":$,"ugb-header--full-height":U,"ugb--has-background-gradient":"gradient"===y,"ugb--has-background-video":"video"===w},S,e)),G="plain"===S?{}:{"--ugb-background-color":T||"gradient"===y?f:void 0,"--ugb-background-color2":"gradient"===y&&C?C:void 0,"--ugb-background-direction":"gradient"===y?`${A}deg`:void 0,backgroundAttachment:x?"fixed":void 0,backgroundColor:f||void 0,backgroundImage:T?`url(${T})`:void 0,borderRadius:12!==E?E:void 0},j=(0,l.applyFilters)("stackable.header.styles_1_15_6",{main:{textAlign:v||void 0,...G},title:{color:h||("plain"===S?void 0:"#ffffff"),textAlign:v||void 0},subtitle:{color:_||("plain"===S?void 0:"#ffffff"),textAlign:v||void 0}},S,e);return(0,r.createElement)("div",{className:V,style:j.main},"plain"!==S&&"video"===w&&(0,r.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:T}),(0,l.applyFilters)("stackable.header.save.output.before_1_15_6",null,S,e),(()=>{const e=!b.RichText.isEmpty(p)&&(0,r.createElement)(b.RichText.Content,{tagName:"h2",className:"ugb-header__title",style:j.title,value:p}),t=!b.RichText.isEmpty(k)&&(0,r.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-header__subtitle",style:j.subtitle,value:k}),l=n&&!!n.length&&(0,r.createElement)(s.YG,{size:m,url:a,newTab:I,align:v,color:i,text:n,design:c,icon:u,backgroundColor:o,borderRadius:g}),d=H&&!!H.length&&(0,r.createElement)(s.YG,{size:F,url:W,newTab:q,align:v,color:L,text:H,design:O,icon:z,backgroundColor:M,borderRadius:D}),h={titleComp:e,subtitleComp:t,buttonComp:l},_={justifyContent:"right"===v?"flex-end":"left"===v?"flex-start":void 0},y=H?(0,r.createElement)("div",{className:"ugb-header__buttons",style:_},h.buttonComp,d):h.buttonComp;return"basic"===S||"plain"===S?(0,r.createElement)("div",{className:"ugb-content-wrapper"},e,t,y):(0,r.createElement)("div",{className:"ugb-content-wrapper"},(0,r.createElement)("div",{className:"ugb-header__wrapper"},e,t,y))})())},migrate:e=>{const t=e=>(e||"").replace(/\.ugb-header(\s*\{)/g,".ugb-header__item$1"),a={};return"half-overlay"===e.design&&e.fullHeight&&(a.design="side-overlay",a[e.invert?"columnPaddingRight":"columnPaddingLeft"]=0),{...e,...a,columnBackgroundColorType:e.backgroundColorType,columnBackgroundColor:e.backgroundColor,columnBackgroundColor2:e.backgroundColor2,columnBackgroundGradientDirection:e.backgroundColorDirection,backgroundType:void 0,columnBackgroundMediaId:e.backgroundImageID,columnBackgroundMediaUrl:e.backgroundImageURL,columnBackgroundTintStrength:e.backgroundOpacity,columnFixedBackground:e.fixedBackground?e.fixedBackground:void 0,restrictContentWidth:e.contentWidth,showButton:!!e.buttonText,buttonUrl:e.buttonURL,buttonNewTab:e.buttonNewTab,buttonBackgroundColor:e.buttonColor,buttonSize:e.size,buttonBorderRadius:e.cornerButtonRadius,showButton2:!!e.buttonText2,button2Url:e.buttonURL2,button2NewTab:e.buttonNewTab2,button2Text:e.buttonText2,button2BackgroundColor:e.buttonColor2,button2TextColor:e.buttonTextColor2,button2Design:e.buttonDesign2,button2Icon:e.buttonIcon2,button2Size:e.buttonSize2,button2BorderRadius:e.buttonBorderRadius2,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}}];var p=a(7200),h=a(9858),k=a(1414),_=a(8423),v=a(4863),y=a.n(v);const f=e=>{const{design:t="basic",align:a="",showTitle:n=!0,showSubtitle:o=!0,showButton:i=!0,showButton2:r=!1,showBlockBackground:s=!1,blockInnerWidth:c=""}=e.attributes,u=!s&&"full"!==a||s&&"full"!==c;return(0,l.applyFilters)("stackable.header.show",{columnBackground:"plain"!==t,borderRadius:"plain"!==t&&u,border:"plain"!==t&&u,titleSpacing:n,subtitleSpacing:o,buttonSpacing:i||r,buttonGap:i&&r,restrictContent:!s&&"full"===a||s&&"full"===c,overlayBackground:t.match(/overlay/)},e)},C=e=>{const t=(0,c.__getValue)(e.attributes),a=f(e),{columnBackgroundColor:n=""}=e.attributes,o=[];a.columnBackground&&o.push({".ugb-header__item":{borderRadius:a.borderRadius?t("borderRadius","%spx !important"):void 0}}),a.border&&o.push({...(0,c.createBorderStyleSet)("column%s",".ugb-header__item",e.attributes)}),o.push({...a.columnBackground?(0,_._H)("column%s","ugb-header__item",{...e.attributes,columnBackgroundColor:e.attributes.columnBackgroundColor||"#000000"},{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:i="px",tabletColumnPaddingUnit:l="px",mobileColumnPaddingUnit:r="px"}=e.attributes;o.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,c.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,c.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,c.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-header__item":(0,c.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-header__item":(0,c.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-header__item":(0,c.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}}});const{overlayColor:s="",overlayOpacity:u="0.4"}=e.attributes;a.overlayBackground&&(s||u)&&o.push({".ugb-content-wrapper, .ugb-content-wrapper:after":{background:(0,c.hexToRgba)(s||"#000000",""===u?.4:u)+" !important"}});const{titleColor:g="",showTitle:d=!0}=e.attributes;d&&o.push({".ugb-header__title":{...(0,c.createTypographyStyles)("title%s","desktop",e.attributes),color:(0,c.whiteIfDark)(g,a.columnBackground&&n),textAlign:(0,c.appendImportant)(t("titleAlign")||t("contentAlign"))},tablet:{".ugb-header__title":{...(0,c.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:(0,c.appendImportant)(t("titleTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-header__title":{...(0,c.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:(0,c.appendImportant)(t("titleMobileAlign")||t("mobileContentAlign"))}}});const{subtitleColor:b="",showSubtitle:m=!0}=e.attributes;m&&o.push({".ugb-header__subtitle":{...(0,c.createTypographyStyles)("subtitle%s","desktop",e.attributes),color:(0,c.whiteIfDark)(b,a.columnBackground&&n),textAlign:t("subtitleAlign")},tablet:{".ugb-header__subtitle":{...(0,c.createTypographyStyles)("subtitle%s","tablet",e.attributes),textAlign:t("subtitleTabletAlign")}},mobile:{".ugb-header__subtitle":{...(0,c.createTypographyStyles)("subtitle%s","mobile",e.attributes),textAlign:t("subtitleMobileAlign")}}});const{showButton:p=!1,showButton2:h=!0}=e.attributes;return(p||h)&&(o.push({".ugb-header__buttons":{justifyContent:(0,c.appendImportant)("left"===t("contentAlign")?"flex-start":"right"===t("contentAlign")?"flex-end":"center"===t("contentAlign")?"center":void 0)},tablet:{".ugb-header__buttons":{justifyContent:(0,c.appendImportant)("left"===t("tabletContentAlign")?"flex-start":"right"===t("tabletContentAlign")?"flex-end":"center"===t("tabletContentAlign")?"center":void 0)}},mobile:{".ugb-header__buttons":{justifyContent:(0,c.appendImportant)("left"===t("mobileContentAlign")?"flex-start":"right"===t("mobileContentAlign")?"flex-end":"center"===t("mobileContentAlign")?"center":void 0)}}}),t("buttonAlign")&&o.push({".ugb-header__buttons":{justifyContent:(0,c.appendImportant)("left"===t("buttonAlign")?"flex-start":"right"===t("buttonAlign")?"flex-end":"center"===t("buttonAlign")?"center":void 0)}}),t("buttonTabletAlign")&&o.push({tablet:{".ugb-header__buttons":{justifyContent:(0,c.appendImportant)("left"===t("buttonTabletAlign")?"flex-start":"right"===t("buttonTabletAlign")?"flex-end":"center"===t("buttonTabletAlign")?"center":void 0)}}}),t("buttonMobileAlign")&&o.push({mobile:{".ugb-header__buttons":{justifyContent:(0,c.appendImportant)("left"===t("buttonMobileAlign")?"flex-start":"right"===t("buttonMobileAlign")?"flex-end":"center"===t("buttonMobileAlign")?"center":void 0)}}})),p&&o.push({...(0,c.createButtonStyleSet)("button%s","ugb-button1",e.attributes)}),h&&o.push({...(0,c.createButtonStyleSet)("button2%s","ugb-button2",e.attributes)}),a.titleSpacing&&o.push(...(0,c.createResponsiveStyles)(".ugb-header__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.subtitleSpacing&&o.push(...(0,c.createResponsiveStyles)(".ugb-header__subtitle","subtitle%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.buttonSpacing&&o.push(...(0,c.createResponsiveStyles)(".ugb-button-container","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.buttonGap&&o.push(...(0,c.createResponsiveStyles)(".ugb-button1","buttonGap%s","marginRight","%spx",e.attributes,{important:!0})),y().all(o)};var A=a(3749);(0,l.addFilter)("stackable.header.edit.layouts","default",(e=>[...e,{image:"dist/images/block-header-basic.ebc668b.png",label:(0,u.__)("Basic",o.i18n),value:"basic"},{image:"dist/images/block-header-plain.1630c7e.png",label:(0,u.__)("Plain",o.i18n),value:"plain"},{label:(0,u.__)("Half Overlay",o.i18n),value:"half-overlay",image:"dist/images/block-header-half-overlay.9673c18.png",premium:!0},{label:(0,u.__)("Center Overlay",o.i18n),value:"center-overlay",image:"dist/images/block-header-center-overlay.4119753.png",premium:!0},{label:(0,u.__)("Side Overlay",o.i18n),value:"side-overlay",image:"dist/images/block-header-side-overlay.f9eb78b.png",premium:!0},{label:(0,u.__)("Half",o.i18n),value:"half",image:"dist/images/block-header-half.2315bdf.png",premium:!0},{label:(0,u.__)("Huge",o.i18n),value:"huge",image:"dist/images/block-header-huge.b30ab5f.png",premium:!0}])),(0,l.addFilter)("stackable.header.edit.inspector.layout.before","stackable/header",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(p.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,l.applyFilters)("stackable.header.edit.layouts",[]),onChange:e=>{a({design:e})}},o.showProNotice&&(0,r.createElement)(p.ProControlButton,null)))})),(0,l.addFilter)("stackable.header.edit.inspector.style.before","stackable/header",((e,t)=>{const{setAttributes:a}=t,{design:n="basic",borderRadius:i="",shadow:l="",showTitle:s=!0,showSubtitle:g=!0,titleTag:d="",titleColor:b="",subtitleColor:m="",invert:k=!1,restrictContentWidth:_=!1,fullHeight:v=!1,showButton:y=!0,showButton2:C=!1,overlayColor:A="",overlayOpacity:w=""}=t.attributes,T=f(t);return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("General",o.i18n),initialOpen:!0},!["basic","plain","center-overlay"].includes(n)&&(0,r.createElement)(p.AdvancedToggleControl,{label:(0,u.__)("Reverse Horizontally",o.i18n),checked:k,onChange:e=>a({invert:e})}),(0,r.createElement)(p.AdvancedToggleControl,{label:(0,u.__)("Full Height",o.i18n),checked:v,onChange:e=>a({fullHeight:e}),className:"ugb--help-tip-full-height"}),T.restrictContent&&(0,r.createElement)(p.AdvancedToggleControl,{label:(0,u.__)("Restrict to Content Width",o.i18n),checked:_,onChange:e=>a({restrictContentWidth:e}),className:"ugb--help-tip-general-restrict-content"}),(0,r.createElement)(h.QA,{setAttributes:a,blockAttributes:t.attributes})),T.columnBackground&&(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Container",o.i18n),initialOpen:!1,id:"column-background",className:"ugb--help-tip-column-background-on-off"},(0,r.createElement)(p.ButtonIconPopoverControl,{label:(0,u.__)("Background",o.i18n),popoverLabel:(0,u.__)("Background",o.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,r.createElement)(p.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),T.border&&(0,r.createElement)(p.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),T.borderRadius&&(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Border Radius",o.i18n),value:i,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),T.columnBackground&&(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Shadow / Outline",o.i18n),value:l,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,r.createElement)(p.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,r.createElement)(p.ColumnPaddingControl,{label:(0,u.__)("Paddings",o.i18n),setAttributes:a,attributes:t.attributes}),T.titleSpacing&&(0,r.createElement)(h.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Title",o.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),T.subtitleSpacing&&(0,r.createElement)(h.n9,{attrNameTemplate:"subtitle%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Subtitle",o.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),T.buttonSpacing&&(0,r.createElement)(h.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Button",o.i18n),min:-50,max:100,placeholder:"10",allowReset:!0,className:"ugb--help-tip-spacing-button"})),T.buttonGap&&(0,r.createElement)(h.n9,{attrNameTemplate:"buttonGap%s",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Button Gap",o.i18n),min:0,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button-gap"}))),T.overlayBackground&&(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Overlay Background",o.i18n),id:"overlay-background",initialOpen:!1},(0,r.createElement)(p.ColorPaletteControl,{label:(0,u.__)("Background Color",o.i18n),value:A,onChange:e=>a({overlayColor:e})}),(0,r.createElement)(p.AdvancedRangeControl,{label:(0,u.__)("Background Color Opacity",o.i18n),value:w,onChange:e=>a({overlayOpacity:e}),min:0,max:1,step:.1,allowReset:!0,placeholder:"1",className:"ugb--help-tip-background-color-opacity"})),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Title",o.i18n),id:"title",checked:s,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,c.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,c.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,r.createElement)(p.HeadingButtonsControl,{value:d||"h2",defaultValue:"h2",onChange:e=>a({titleTag:e})}),(0,r.createElement)(p.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:d||"h2"}),(0,r.createElement)(p.ColorPaletteControl,{value:b,onChange:e=>a({titleColor:e}),label:(0,u.__)("Title Color",o.i18n)}),(0,r.createElement)(h.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),className:"ugb--help-tip-alignment-title"}))),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.__)("Subtitle",o.i18n),id:"subtitle",checked:g,onChange:e=>a({showSubtitle:e}),toggleOnSetAttributes:[...(0,c.createTypographyAttributeNames)("subtitle%s"),"subtitleColor",...(0,c.createResponsiveAttributeNames)("subtitle%sAlign")],toggleAttributeName:"showSubtitle"},(0,r.createElement)(p.TypographyControlHelper,{attrNameTemplate:"subtitle%s",setAttributes:a,blockAttributes:t.attributes}),(0,r.createElement)(p.ColorPaletteControl,{value:m,onChange:e=>a({subtitleColor:e}),label:(0,u.__)("Subtitle Color",o.i18n)}),(0,r.createElement)(h.n9,{attrNameTemplate:"subtitle%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),className:"ugb--help-tip-alignment-title"}))),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.sprintf)((0,u._x)("%s #%d","Panel title",o.i18n),(0,u.__)("Button",o.i18n),1),id:"button1",checked:y,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,c.createButtonAttributeNames)("button%s"),...(0,c.createResponsiveAttributeNames)("button%sAlign")],toggleAttributeName:"showButton"},(0,r.createElement)(p.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"}),(0,r.createElement)(p.ControlSeparator,null),(0,r.createElement)(h.n9,{attrNameTemplate:"button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),help:(0,u.__)("This affects other buttons in this block",o.i18n),className:"ugb--help-tip-alignment-button"}))),(0,r.createElement)(p.PanelAdvancedSettings,{title:(0,u.sprintf)((0,u._x)("%s #%d","Panel title",o.i18n),(0,u.__)("Button",o.i18n),2),id:"button2",checked:C,onChange:e=>a({showButton2:e}),toggleOnSetAttributes:[...(0,c.createButtonAttributeNames)("button2%s")],toggleAttributeName:"showButton2"},(0,r.createElement)(p.ButtonControlsHelper,{attrNameTemplate:"button2%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"}),(0,r.createElement)(h.n9,{attrNameTemplate:"button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(p.AlignButtonsControl,{label:(0,u.__)("Align",o.i18n),help:(0,u.__)("This affects other buttons in this block",o.i18n),className:"ugb--help-tip-alignment-button"}))))}));const w=(0,A.compose)(k.FI,k.XQ,k.O0,(0,k.Q9)(),(0,k.lX)(["Title%sAlign","Subtitle%sAlign","Button%sAlign"]),(0,k.OB)(C,{editorMode:!0}),(0,k.UY)([[".ugb-content-wrapper","overlay-background"],[".ugb-header__item","column-background"],[".ugb-header__title","title"],[".ugb-header__subtitle","subtitle"],[".ugb-button1","button1"],[".ugb-button2","button2"]]))((e=>{const{className:t,setAttributes:a}=e,{title:n,subtitle:o,design:i="basic",shadow:s="",restrictContentWidth:g=!1,invert:m=!1,fullHeight:k=!1,showTitle:_=!0,showSubtitle:v=!0,showButton:y=!0,showButton2:C=!1,titleTag:A=""}=e.attributes,w=f(e),T=d()([t,"ugb-header","ugb-header--v3",[`ugb-header--design-${i}`]],(0,l.applyFilters)("stackable.header.mainclasses",{"ugb--restrict-content-width":w.restrictContent&&g,"ugb-header--invert":m},i,e)),B=d()(["ugb-header__item"],(0,l.applyFilters)("stackable.header.boxclasses",{"ugb--full-height":k,[`ugb--shadow-${s}`]:w.columnBackground&&""!==s},e));return(0,r.createElement)(p.BlockContainer.Edit,{className:T,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(()=>{const t=(0,r.createElement)(b.RichText,{tagName:A||"h2",className:"ugb-header__title",placeholder:(0,u.__)("Title for This Block"),keepPlaceholderOnFocus:!0,value:n,onChange:e=>a({title:e})}),s=(0,r.createElement)(b.RichText,{tagName:"p",className:"ugb-header__subtitle",placeholder:(0,c.descriptionPlaceholder)(),keepPlaceholderOnFocus:!0,value:o,onChange:e=>a({subtitle:e})}),g=(0,r.createElement)(h.Hr,{className:"ugb-button1",attrNameTemplate:"button%s",setAttributes:a,blockAttributes:e.attributes}),d=(0,r.createElement)(h.Hr,{className:"ugb-button2",attrNameTemplate:"button2%s",setAttributes:a,blockAttributes:e.attributes}),m={titleComp:t,subtitleComp:s,buttonComp:g,button2Comp:d};return(0,r.createElement)(h.Gc,{className:B,backgroundAttrName:"column%s",blockProps:e,showBackground:w.columnBackground},(0,r.createElement)("div",{className:"ugb-content-wrapper"},(0,l.applyFilters)("stackable.header.edit.output",(0,r.createElement)(r.Fragment,null,_&&t,v&&s,(y||C)&&(0,r.createElement)("div",{className:"ugb-header__buttons"},y&&g,C&&d)),i,e,m)))})())})})),T=(0,A.compose)(k.FI,(0,k.OB)(C))((e=>{const{className:t}=e,{restrictContentWidth:a="center",fullHeight:n=!1,shadow:o="",design:i="basic",titleTag:s="",title:c,subtitle:u,showTitle:g=!0,showSubtitle:m=!0,showButton:k=!0,showButton2:_=!1,buttonText:v="",invert:y=!1}=e.attributes,C=f(e),A=d()([t,"ugb-header","ugb-header--v3",[`ugb-header--design-${i}`]],(0,l.applyFilters)("stackable.header.mainclasses",{"ugb--restrict-content-width":C.restrictContent&&a,"ugb-header--invert":y},i,e)),w=d()(["ugb-header__item"],(0,l.applyFilters)("stackable.header.boxclasses",{"ugb--full-height":n,[`ugb--shadow-${o}`]:C.columnBackground&&""!==o},e)),T=g&&!b.RichText.isEmpty(c)&&(0,r.createElement)(b.RichText.Content,{tagName:s||"h2",className:"ugb-header__title",value:c}),B=m&&!b.RichText.isEmpty(u)&&(0,r.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-header__subtitle",value:u}),x=k&&!b.RichText.isEmpty(v)&&(0,r.createElement)(h.Hr.Content,{className:"ugb-button1",attrNameTemplate:"button%s",blockAttributes:e.attributes}),S=_&&(0,r.createElement)(h.Hr.Content,{className:"ugb-button2",attrNameTemplate:"button2%s",blockAttributes:e.attributes}),E={titleComp:T,subtitleComp:B,buttonComp:x,button2Comp:S};return(0,r.createElement)(p.BlockContainer.Save,{className:A,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.Gc,{className:w,backgroundAttrName:"column%s",blockProps:e,showBackground:C.columnBackground},(0,r.createElement)("div",{className:"ugb-content-wrapper"},(0,l.applyFilters)("stackable.header.save.output",(0,r.createElement)(r.Fragment,null,g&&T,m&&B,(k||_)&&(0,r.createElement)("div",{className:"ugb-header__buttons"},k&&x,_&&S)),i,e,E))))})})),B={restrictContentWidth:{type:"boolean",default:!1},fullHeight:{type:"boolean",default:!1},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,c.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Title","Subtitle"],["","Tablet","Mobile"]),...(0,_.yA)("column%s"),columnBackgroundColor:{type:"string",default:"#000000"},...(0,c.createBorderAttributes)("column%s"),title:{source:"html",selector:".ugb-header__title",default:(0,u.__)("Title for This Block",o.i18n)},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},titleColor:{type:"string",default:""},...(0,c.createTypographyAttributes)("title%s"),subtitle:{source:"html",selector:".ugb-header__subtitle",default:(0,c.descriptionPlaceholder)()},showSubtitle:{type:"boolean",default:!0},...(0,c.createTypographyAttributes)("subtitle%s"),subtitleColor:{type:"string",default:""},showButton:{type:"boolean",default:!0},...(0,c.createButtonAttributes)("button%s",{selector:".ugb-button1"}),...(0,c.createResponsiveAttributes)("button%sAlign",{type:"string",default:""}),showButton2:{type:"boolean",default:!1},...(0,c.createButtonAttributes)("button2%s",{selector:".ugb-button2"}),overlayColor:{type:"string",default:""},overlayOpacity:{type:"number",default:""},...(0,c.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("subtitle%sBottomMargin",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("button%sBottomMargin",{type:"number",default:""}),...(0,c.createResponsiveAttributes)("buttonGap%s",{type:"number",default:""}),invert:{type:"boolean",default:!1}},x=JSON.parse('{"name":"ugb/header","title":"Header","description":"A large header title area. Typically used at the very top of a page.","category":"stackable-v2","keywords":["Hero"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:S,...E}=x,N={...E,title:E.title+" (v2)",icon:n.HeroIcon,supports:{inserter:!o.v2disabledBlocks.includes(S),anchor:!0},attributes:B,example:{attributes:{restrictContentWidth:!1,fullHeight:!1,design:"plain",shadow:5,columnBackgroundColor:"#dbdbdb",columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",title:"Header Title",showTitle:!0,titleColor:"#ffffff",titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",subtitle:"Description for this block. Use this space for describing your block. Any text will do.",showSubtitle:!0,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",subtitleColor:"#ffffff",showButton:!0,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",buttonText:"Button text",buttonNewTab:!1,showButton2:!1,button2LineHeightUnit:"em",button2TabletLineHeightUnit:"em",button2MobileLineHeightUnit:"em",button2NewTab:!1,invert:!1,uniqueClass:"ugb-e95d5ec",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!0,blockInnerWidth:"wide",align:"full",blockBackgroundBackgroundColor:"#000000",blockBackgroundBackgroundMediaUrl:"https://source.unsplash.com/800x500/?nature,plant,trees",blockBackgroundBackgroundTintStrength:3,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},deprecated:m,edit:w,save:T,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{columnGap:!1,paddings:!1,verticalContentAlignImportant:!0},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"container-link":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,l.applyFilters)("stackable.header.custom-css.default","")}}}},9815:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>T,settings:()=>x});var n=a(910),o=a(9467),i=a(8085),l=a(3882);(0,l.addFilter)("stackable.heading.design.no-text-attributes","stackable/heading",(e=>(0,i.omit)(e,["title","subtitle"])));var r=a(2610),s=a(7545);const c=e=>{const{showSubtitle:t=!0,showTopLine:a=!1,showBottomLine:n=!1}=e.attributes;return(0,l.applyFilters)("stackable.heading.show",{subtitleSpacing:t,topLineSpacing:a,bottomLineSpacing:n},e)};var u=a(4863),g=a.n(u);const d=e=>{const t=(0,s.__getValue)(e.attributes),a=c(e),{columnBackgroundColor:n=""}=e.attributes,o=[],{titleColor:i="",showTitle:r=!0}=e.attributes;if(r){const r=(0,l.applyFilters)("stackable.heading.styles.title.color-selector",".ugb-heading__title",e);o.push({[r]:{color:(0,s.whiteIfDark)(i,a.columnBackground&&n)}}),o.push({".ugb-heading__title":{...(0,s.createTypographyStyles)("title%s","desktop",e.attributes),textAlign:t("titleAlign")||t("contentAlign")},tablet:{".ugb-heading__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-heading__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")||t("mobileContentAlign")}}})}const{subtitleColor:u="",showSubtitle:d=!0}=e.attributes;d&&o.push({".ugb-heading__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","desktop",e.attributes),color:(0,s.whiteIfDark)(u,a.columnBackground&&n),textAlign:t("subtitleAlign")},tablet:{".ugb-heading__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","tablet",e.attributes),textAlign:t("subtitleTabletAlign")}},mobile:{".ugb-heading__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","mobile",e.attributes),textAlign:t("subtitleMobileAlign")}}});const{showTopLine:b=!1}=e.attributes;b&&(o.push({".ugb-heading__top-line":(0,s.appendImportantAll)({backgroundColor:t("topLineColor"),height:t("topLineHeight","%spx"),width:t("topLineWidth",`%s${t("topLineWidthUnit")||"px"}`)})}),o.push(...(0,s.createResponsiveMarginAlign)(".ugb-heading__top-line","topLine%sAlign",e.attributes)));const{showBottomLine:m=!1}=e.attributes;return m&&(o.push({".ugb-heading__bottom-line":(0,s.appendImportantAll)({backgroundColor:t("bottomLineColor"),height:t("bottomLineHeight","%spx"),width:t("bottomLineWidth",`%s${t("bottomLineWidthUnit")||"px"}`)})}),o.push(...(0,s.createResponsiveMarginAlign)(".ugb-heading__bottom-line","bottomLine%sAlign",e.attributes))),o.push(...(0,s.createResponsiveStyles)(".ugb-heading__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.subtitleSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-heading__subtitle","subtitle%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.topLineSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-heading__top-line","topLine%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.bottomLineSpacing&&o.push(...(0,s.createResponsiveStyles)(".ugb-heading__bottom-line","bottomLine%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),g().all(o)};var b=a(7200),m=a(9858),p=a(1414),h=a(4184),k=a.n(h),_=a(8003),v=a(3749),y=a(78);(0,l.addFilter)("stackable.heading.edit.inspector.style.before","stackable/heading",((e,t)=>{const{setAttributes:a}=t,{titleTag:o="",titleColor:i="",showSubtitle:l=!0,subtitleColor:u="",showTopLine:g=!1,topLineColor:d="",topLineHeight:p="",topLineWidth:h="",topLineWidthUnit:k="px",showBottomLine:v=!1,bottomLineColor:y="",bottomLineHeight:f="",bottomLineWidth:C="",bottomLineWidthUnit:A="px"}=t.attributes,w=c(t);return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("General",n.i18n),initialOpen:!0},(0,r.createElement)(m.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Title",n.i18n),id:"title",hasToggle:!1,onChange:e=>a({showTitle:e})},(0,r.createElement)(b.HeadingButtonsControl,{value:o||"h2",defaultValue:"h2",onChange:e=>a({titleTag:e})}),(0,r.createElement)(b.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:o||"h2"}),(0,r.createElement)(b.ColorPaletteControl,{value:i,onChange:e=>a({titleColor:e}),label:(0,_.__)("Title Color",n.i18n)}),(0,r.createElement)(m.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-title"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Subtitle",n.i18n),id:"subtitle",checked:l,onChange:e=>a({showSubtitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("subtitle%s"),"subtitleColor",...(0,s.createResponsiveAttributeNames)("subtitle%sAlign")],toggleAttributeName:"showSubtitle"},(0,r.createElement)(b.TypographyControlHelper,{attrNameTemplate:"subtitle%s",setAttributes:a,blockAttributes:t.attributes}),(0,r.createElement)(b.ColorPaletteControl,{value:u,onChange:e=>a({subtitleColor:e}),label:(0,_.__)("Subtitle Color",n.i18n)}),(0,r.createElement)(m.n9,{attrNameTemplate:"subtitle%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-description"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Top Line",n.i18n),id:"topline",checked:g,onChange:e=>a({showTopLine:e}),toggleOnSetAttributes:["topLineColor","topLineHeight","topLineWidth",...(0,s.createResponsiveAttributeNames)("topLine%sAlign")],toggleAttributeName:"showTopLine"},(0,r.createElement)(b.ColorPaletteControl,{value:d,onChange:e=>a({topLineColor:e}),label:(0,_.__)("Line Color",n.i18n)}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Width",n.i18n),units:["px","%"],min:[1,1],max:[1e3,100],step:[1,1],allowReset:!0,value:h,unit:k,onChange:e=>a({topLineWidth:e}),onChangeUnit:e=>a({topLineWidthUnit:e}),placeholder:"100"}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Height",n.i18n),min:1,max:50,allowReset:!0,value:p,onChange:e=>a({topLineHeight:e}),placeholder:"4"}),(0,r.createElement)(m.n9,{attrNameTemplate:"topLine%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-description"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Bottom Line",n.i18n),id:"bottomline",checked:v,onChange:e=>a({showBottomLine:e}),toggleOnSetAttributes:["bottomLineColor","bottomLineHeight","bottomLineWidth",...(0,s.createResponsiveAttributeNames)("bottomLine%sAlign")],toggleAttributeName:"showBottomLine"},(0,r.createElement)(b.ColorPaletteControl,{value:y,onChange:e=>a({bottomLineColor:e}),label:(0,_.__)("Line Color",n.i18n)}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Width",n.i18n),units:["px","%"],min:[1,1],max:[1e3,100],step:[1,1],allowReset:!0,value:C,unit:A,onChange:e=>a({bottomLineWidth:e}),onChangeUnit:e=>a({bottomLineWidthUnit:e}),placeholder:"100"}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Height",n.i18n),min:1,max:50,allowReset:!0,value:f,onChange:e=>a({bottomLineHeight:e}),placeholder:"4"}),(0,r.createElement)(m.n9,{attrNameTemplate:"bottomLine%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-description"}))),(0,r.createElement)(b.PanelSpacingBody,{initialOpen:!1,blockProps:t},w.topLineSpacing&&(0,r.createElement)(m.n9,{attrNameTemplate:"topLine%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Top Line",n.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing"})),(0,r.createElement)(m.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Title",n.i18n),min:-50,max:100,placeholder:"8",allowReset:!0,className:"ugb--help-tip-spacing-title"})),w.subtitleSpacing&&(0,r.createElement)(m.n9,{attrNameTemplate:"subtitle%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Subtitle",n.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),w.bottomLineSpacing&&(0,r.createElement)(m.n9,{attrNameTemplate:"bottomLine%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Bottom Line",n.i18n),min:0,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing"}))))}));const f=(0,v.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(["style","advanced"]),(0,p.lX)(["Title%sAlign","Subtitle%sAlign","TopLine%sAlign","BottomLine%sAlign"]),(0,p.OB)(d,{editorMode:!0}),(0,p.UY)([[".ugb-heading__title","title"],[".ugb-heading__subtitle","subtitle"],[".ugb-heading__top-line","topline"],[".ugb-heading__bottom-line","bottomline"]]))((e=>{const{className:t,setAttributes:a}=e,{titleTag:o="",title:i="",showSubtitle:c="",subtitle:u="",showTopLine:g=!1,showBottomLine:d=!1}=e.attributes,m=k()([t],(0,l.applyFilters)("stackable.heading.mainclasses",{},e));return(0,r.createElement)(b.BlockContainer.Edit,{className:m,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,g&&(0,r.createElement)("div",{className:"ugb-heading__top-line"}),(0,r.createElement)(y.RichText,{tagName:o||"h2",className:"ugb-heading__title",value:i,onChange:e=>a({title:e}),placeholder:(0,_.__)("Title for This Block",n.i18n),keepPlaceholderOnFocus:!0}),c&&(0,r.createElement)(y.RichText,{tagName:"p",className:"ugb-heading__subtitle",value:u,onChange:e=>a({subtitle:e}),placeholder:(0,s.descriptionPlaceholder)("short"),keepPlaceholderOnFocus:!0}),d&&(0,r.createElement)("div",{className:"ugb-heading__bottom-line"}))})})),C=(0,v.compose)(p.FI,(0,p.OB)(d))((e=>{const{attributes:t,className:a}=e,{titleTag:n="",title:o,showTitle:i=!0,showSubtitle:s=!0,subtitle:c="",showTopLine:u=!1,showBottomLine:g=!1}=t,d=k()([a],(0,l.applyFilters)("stackable.heading.mainclasses",{},e));return(0,r.createElement)(b.BlockContainer.Save,{className:d,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,u&&(0,r.createElement)("div",{className:"ugb-heading__top-line"}),i&&!y.RichText.isEmpty(o)&&(0,r.createElement)(y.RichText.Content,{tagName:n||"h2",className:"ugb-heading__title",value:o}),s&&!y.RichText.isEmpty(c)&&(0,r.createElement)(y.RichText.Content,{tagName:"p",className:"ugb-heading__subtitle",value:c}),g&&(0,r.createElement)("div",{className:"ugb-heading__bottom-line"}))})})),A={alignment:{type:"string",default:"center"},title:{source:"html",selector:".ugb-heading__title",default:""},titleTag:{type:"string",default:""},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},subtitle:{source:"html",selector:".ugb-heading__subtitle",default:""},showSubtitle:{type:"boolean",default:!0},...(0,s.createTypographyAttributes)("subtitle%s"),subtitleColor:{type:"string",default:""},showTopLine:{type:"boolean",default:!1},topLineColor:{type:"string",default:""},topLineHeight:{type:"number",default:""},topLineWidth:{type:"number",default:""},topLineWidthUnit:{type:"string",default:""},showBottomLine:{type:"boolean",default:!1},bottomLineColor:{type:"string",default:""},bottomLineHeight:{type:"number",default:""},bottomLineWidth:{type:"number",default:""},bottomLineWidthUnit:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Title","Subtitle","TopLine","BottomLine"],["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Title","Subtitle","TopLine","BottomLine"],["","Tablet","Mobile"])},w=JSON.parse('{"name":"ugb/heading","title":"Advanced Heading","description":"Introduce new sections of your content in style.","category":"stackable-v2","keywords":["Title"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:T,...B}=w,x={...B,title:B.title+" (v2)",icon:o.HeadingIcon,attributes:A,example:{attributes:{alignment:"center",title:"Title for This Block",titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",subtitle:"Subtitle for this block",showSubtitle:!0,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",showTopLine:!0,showBottomLine:!1,uniqueClass:"ugb-f80e479",hideDesktop:!1,hideTablet:!1,hideMobile:!1}},supports:{align:["center","wide","full"],inserter:!n.v2disabledBlocks.includes(T),anchor:!0},edit:f,save:C,deprecated:[],modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"content-align":!0,"custom-css":{default:(0,l.applyFilters)("stackable.heading.custom-css.default","")}}}},7314:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>P,deprecatedIcon_2_9_1:()=>N,deprecatedSchema_1_15_4:()=>R});var n=a(2610),o=a(7462);a(7294);const i=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M96.9 2c-52.4 0-95 42.6-95 95s42.6 95 95 95 95-42.6 95-95-42.6-95-95-95zM78.2 150.4l-10.6-10.6L110.3 97 67.6 54.2l10.6-10.6L131.5 97l-53.3 53.4z"}))},l=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 190 190"},e),(0,n.createElement)("path",{d:"M59.4 177.5l82.4-82.4-82.4-82.3-10.6 10.6 71.8 71.7-71.8 71.8 10.6 10.6z"}))},r=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M73.1 65.3L104.8 97l-31.7 31.7 10.6 10.6L126 97 83.7 54.7z"}),(0,n.createElement)("path",{d:"M184.4 60c-7.2-17-19.2-31.5-34.4-41.8C134.9 8 116.5 2 96.9 2c-13.1 0-25.6 2.7-37 7.5-17.1 7.2-31.6 19.3-41.8 34.4S1.9 77.4 1.9 97c0 13.1 2.7 25.6 7.5 37 7.2 17.1 19.3 31.6 34.4 41.8S77.2 192 96.9 192c13.1 0 25.6-2.7 37-7.5 17.1-7.2 31.6-19.3 41.8-34.4 10.2-15.2 16.2-33.5 16.2-53.1 0-13.1-2.7-25.6-7.5-37zm-13.8 68.1c-6.1 14.3-16.2 26.6-29 35.2-12.8 8.7-28.1 13.7-44.7 13.7-11.1 0-21.6-2.2-31.1-6.3-14.3-6.1-26.6-16.2-35.2-29C21.9 129 16.9 113.6 16.9 97c0-11.1 2.2-21.6 6.3-31.1 6.1-14.3 16.2-26.6 29-35.2C64.9 22 80.3 17 96.9 17c11.1 0 21.6 2.2 31.1 6.3 14.3 6.1 26.6 16.2 35.2 29 8.6 12.8 13.7 28.1 13.7 44.7 0 11.1-2.2 21.6-6.3 31.1z"}))},s=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M96.9 2c-52.4 0-95 42.6-95 95s42.6 95 95 95 95-42.6 95-95-42.6-95-95-95zM76.6 144.7l-36.5-36.5 10.6-10.6 25.9 25.9 68.8-68.8L156 65.3l-79.4 79.4z"}))},c=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 190 190"},e),(0,n.createElement)("path",{d:"M173.8 28.4L60.4 141.8 15.7 97.2 5.1 107.8 60.4 163l124-124-10.6-10.6z"}))},u=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 190 190"},e),(0,n.createElement)("path",{d:"M79.4 112.4L60.7 93.7l-10.6 10.6 29.3 29.3 62.3-62.3-10.6-10.6z"}),(0,n.createElement)("path",{d:"M182.3 57.5c-7.2-17-19.3-31.5-34.4-41.8C132.7 5.5 114.4-.5 94.7-.5c-13.1 0-25.6 2.7-37 7.5-17 7.2-31.5 19.2-41.7 34.4C5.7 56.5-.3 74.8-.3 94.5c0 13.1 2.7 25.6 7.5 37 7.2 17.1 19.3 31.6 34.4 41.8 15.2 10.2 33.5 16.2 53.1 16.2 13.1 0 25.6-2.7 37-7.5 17.1-7.2 31.6-19.3 41.8-34.4 10.2-15.2 16.2-33.5 16.2-53.1.1-13.1-2.6-25.6-7.4-37zm-13.8 68.1c-6.1 14.3-16.2 26.6-29 35.2-12.8 8.6-28.1 13.7-44.7 13.7-11.1 0-21.6-2.2-31.1-6.3-14.3-6.1-26.6-16.2-35.2-29-8.6-12.8-13.7-28.1-13.7-44.7 0-11.1 2.2-21.6 6.3-31.1C27.1 49 37.2 36.8 50 28.1c12.8-8.6 28.1-13.7 44.7-13.7 11.1 0 21.6 2.2 31.1 6.3 14.3 6.1 26.6 16.2 35.2 29 8.6 12.8 13.7 28.1 13.7 44.7.1 11.2-2.2 21.7-6.2 31.2z"}))},g=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M96.9 2c-52.4 0-95 42.6-95 95s42.6 95 95 95 95-42.6 95-95-42.6-95-95-95zm47.4 131.5l-10.6 10.6-36.5-36.5-36.5 36.5-10.6-10.6L86.6 97 50.1 60.5l10.6-10.6 36.5 36.5 36.5-36.5 10.6 10.6L107.8 97l36.5 36.5z"}))},d=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 190 190"},e),(0,n.createElement)("path",{d:"M167.2 33.4l-10.6-10.6-61.7 61.7-61.7-61.7-10.6 10.6 61.7 61.7-61.7 61.7 10.6 10.6 61.7-61.7 61.7 61.7 10.6-10.6-61.7-61.7z"}))},b=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M134.7 70.1l-10.6-10.6-26.9 26.9-26.8-26.9-10.7 10.6L86.6 97l-26.9 26.9 10.7 10.6 26.8-26.9 26.9 26.9 10.6-10.6L107.8 97z"}),(0,n.createElement)("path",{d:"M184.4 60c-7.2-17-19.2-31.5-34.4-41.8C134.9 8 116.5 2 96.9 2c-13.1 0-25.6 2.7-37 7.5-17.1 7.2-31.6 19.3-41.8 34.4S1.9 77.4 1.9 97c0 13.1 2.7 25.6 7.5 37 7.2 17.1 19.3 31.6 34.4 41.8S77.2 192 96.9 192c13.1 0 25.6-2.7 37-7.5 17.1-7.2 31.6-19.3 41.8-34.4 10.2-15.2 16.2-33.5 16.2-53.1 0-13.1-2.7-25.6-7.5-37zm-13.8 68.1c-6.1 14.3-16.2 26.6-29 35.2-12.8 8.7-28.1 13.7-44.7 13.7-11.1 0-21.6-2.2-31.1-6.3-14.3-6.1-26.6-16.2-35.2-29C21.9 129 16.9 113.6 16.9 97c0-11.1 2.2-21.6 6.3-31.1 6.1-14.3 16.2-26.6 29-35.2C64.9 22 80.3 17 96.9 17c11.1 0 21.6 2.2 31.1 6.3 14.3 6.1 26.6 16.2 35.2 29 8.6 12.8 13.7 28.1 13.7 44.7 0 11.1-2.2 21.6-6.3 31.1z"}))},m=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M96.9 2c-52.4 0-95 42.6-95 95s42.6 95 95 95 95-42.6 95-95-42.6-95-95-95zM151 104.5h-46.6v46.6h-15v-46.6H42.8v-15h46.6V42.9h15v46.6H151v15z"}))},p=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 190 190"},e),(0,n.createElement)("path",{d:"M181.9 87.6h-79.3V8.4h-15v79.2H8.4v15h79.2v79.2h15v-79.2h79.3z"}))},h=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M104.5 55.4h-15v34.1H55.4v15h34.1v34.1h15v-34.1h34.1v-15h-34.1z"}),(0,n.createElement)("path",{d:"M184.5 60c-7.2-17-19.2-31.5-34.4-41.8C135 8 116.6 2 97 2 83.9 2 71.4 4.7 60 9.5c-17.1 7.2-31.6 19.3-41.8 34.4S2 77.4 2 97c0 13.1 2.7 25.6 7.5 37 7.2 17.1 19.3 31.6 34.4 41.8S77.3 192 97 192c13.1 0 25.6-2.7 37-7.5 17.1-7.2 31.6-19.3 41.8-34.4C186 134.9 192 116.6 192 97c0-13.1-2.7-25.6-7.5-37zm-13.8 68.1c-6.1 14.3-16.2 26.6-29 35.2C128.9 172 113.6 177 97 177c-11.1 0-21.6-2.2-31.1-6.3-14.3-6.1-26.6-16.2-35.2-29C22 129 17 113.6 17 97c0-11.1 2.2-21.6 6.3-31.1 6.1-14.3 16.2-26.6 29-35.2C65 22 80.4 17 97 17c11.1 0 21.6 2.2 31.1 6.3 14.3 6.1 26.6 16.2 35.2 29C171.9 65.1 177 80.4 177 97c0 11.1-2.2 21.6-6.3 31.1z"}))},k=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M96.9 2c-52.4 0-95 42.6-95 95s42.6 95 95 95 95-42.6 95-95-42.6-95-95-95zm37.8 150.1l-37.8-19.5-37.8 19.5 6.9-41.9-30.2-29.9 42-6.4 19.1-38 19.1 38 42 6.4-30.2 29.9 6.9 41.9z"}))},_=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 190 190"},e),(0,n.createElement)("path",{d:"M95.4 6.3l29.2 58 64.2 9.9-46.2 45.7 10.5 64.1-57.7-29.8L37.6 184l10.5-64.1L2 74.2l64.2-9.9z"}))},v=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194 194"},e),(0,n.createElement)("path",{d:"M184.4 60c-7.2-17-19.2-31.5-34.4-41.8C134.9 8 116.5 2 96.9 2c-13.1 0-25.6 2.7-37 7.5-17.1 7.2-31.6 19.3-41.8 34.4S1.9 77.4 1.9 97c0 13.1 2.7 25.6 7.5 37 7.2 17.1 19.3 31.6 34.4 41.8S77.2 192 96.9 192c13.1 0 25.6-2.7 37-7.5 17.1-7.2 31.6-19.3 41.8-34.4 10.2-15.2 16.2-33.5 16.2-53.1 0-13.1-2.7-25.6-7.5-37zm-13.8 68.1c-6.1 14.3-16.2 26.6-29 35.2-12.8 8.7-28.1 13.7-44.7 13.7-11.1 0-21.6-2.2-31.1-6.3-14.3-6.1-26.6-16.2-35.2-29C21.9 129 16.9 113.6 16.9 97c0-11.1 2.2-21.6 6.3-31.1 6.1-14.3 16.2-26.6 29-35.2C64.9 22 80.3 17 96.9 17c11.1 0 21.6 2.2 31.1 6.3 14.3 6.1 26.6 16.2 35.2 29 8.6 12.8 13.7 28.1 13.7 44.7 0 11.1-2.2 21.6-6.3 31.1z"}),(0,n.createElement)("path",{d:"M96.9 49.3L82.2 78.5l-32.3 5 23.2 23-5.3 32.2 29.1-15 29 15-5.2-32.2 23.2-23-32.3-5z"}))};var y=a(8003),f=a(910),C=a(7545);const A={check:{iconFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(c,{style:{fill:e}})},circleFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(s,{style:{fill:e}})},outlineFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(u,{style:{fill:e}})},title:(0,y.__)("Check",f.i18n),value:"check"},plus:{iconFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(p,{style:{fill:e}})},circleFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(m,{style:{fill:e}})},outlineFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(h,{style:{fill:e}})},title:(0,y.__)("Plus",f.i18n),value:"plus"},arrow:{iconFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(l,{style:{fill:e}})},circleFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(i,{style:{fill:e}})},outlineFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(r,{style:{fill:e}})},title:(0,y.__)("Arrow",f.i18n),value:"arrow"},cross:{iconFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(d,{style:{fill:e}})},circleFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(g,{style:{fill:e}})},outlineFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(b,{style:{fill:e}})},title:(0,y.__)("Cross",f.i18n),value:"cross"},star:{iconFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(_,{style:{fill:e}})},circleFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(k,{style:{fill:e}})},outlineFunc:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return(0,n.createElement)(v,{style:{fill:e}})},title:(0,y.__)("Star",f.i18n),value:"star"}},w=e=>"circle"===e||"outline"===e?`${e}Func`:"iconFunc",T=(e,t,a)=>{const n=w(t);if(!A[e])return"";const o=(0,C.svgRenderToString)(A[e][n](a),!1);return btoa(o)};var B=a(3882),x=a(78),S=a(4184),E=a.n(S);const N=(()=>{const e={};return["check","plus","arrow","cross","star"].forEach((t=>{["","circle","outline"].forEach((a=>{e[`${t}-${a||"default"}`]=(0,C.svgRenderToString)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return A[e]?A[e][w(t)]():null}(t,a))}))})),e})(),R={icon:{type:"string",default:"check"},iconShape:{type:"string"},iconColor:{type:"string"},iconSize:{type:"number",default:20},columns:{type:"number",default:1},text:{source:"html",selector:"ul",multiline:"li",default:""},gap:{type:"number",default:16},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},P=[{attributes:R,save:e=>{const{className:t}=e,{icon:a,iconShape:o,iconColor:i,iconSize:l,text:r,columns:s,gap:c,design:u=""}=e.attributes,g=E()([t.split(" ").filter((e=>"ugb-icon-list"!==e)),"ugb-icon-list-wrapper"],(0,B.applyFilters)("stackable.icon-list.mainclasses_1_15_4",{},u,e)),d=E()(["ugb-icon-list",`ugb-icon--icon-${a}`,`ugb-icon--columns-${s}`],(0,B.applyFilters)("stackable.icon-list.ulclasses_1_15_4",{},u,e)),b={"--icon":"url('data:image/svg+xml;base64,"+T(a,o,i)+"')","--icon-size":l?`${l}px`:void 0,"--gap":c?`${c}px`:void 0};return(0,n.createElement)("div",{className:g},(0,B.applyFilters)("stackable.icon-list.save.output.before_1_15_4",null,u,e),(0,n.createElement)(x.RichText.Content,{tagName:"ul",className:d,style:b,value:r}),(0,B.applyFilters)("stackable.icon-list.save.output.after_1_15_4",null,u,e))},migrate:e=>{const t=e=>(e||"").replace(/.ugb-icon-list-wrapper .ugb-icon-list li/g,".ugb-icon-list li").replace(/.ugb-icon-list-wrapper .ugb-icon-list/g,".ugb-icon-list ul").replace(/.ugb-icon-list-wrapper/g,".ugb-icon-list");return{...e,columns:e.columns?e.columns:1,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled)}}},{attributes:{icon:{type:"string",default:"check"},iconShape:{type:"string"},iconColor:{type:"string"},iconSize:{type:"number",default:20},columns:{type:"number",default:1},text:{source:"html",selector:"ul",multiline:"li"},gap:{type:"number",default:16}},save:e=>{const{className:t}=e,{icon:a,iconShape:o,iconColor:i,iconSize:l,text:r,columns:s,gap:c}=e.attributes,u=E()([t,"ugb-icon-list",`ugb-icon--icon-${a}`,`ugb-icon--columns-${s}`]),g={"--icon":"url('data:image/svg+xml;base64,"+T(a,o,i)+"')","--icon-size":l?`${l}px`:void 0,"--gap":c?`${c}px`:void 0};return(0,n.createElement)(x.RichText.Content,{tagName:"ul",className:u,style:g,value:r})}}]},4402:(e,t,a)=>{"use strict";a.r(t),a.d(t,{withTransformOldIconAttributes:()=>n.default});var n=a(1794)},1794:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var n=a(2610),o=a(3749),i=a(7314);const l=(0,o.createHigherOrderComponent)((e=>t=>{const{icon:a,iconShape:o}=t.attributes;return(a&&!a.match(/^</)||o)&&(t.attributes.icon=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i.deprecatedIcon_2_9_1[`${e}-${t||"default"}`]||i.deprecatedIcon_2_9_1[`check-${t||"default"}`]||e}(a,o),t.attributes.iconShape=void 0),(0,n.createElement)(e,t)}),"withTransformOldIconAttributes")},4917:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>R,settings:()=>I});var n=a(9467),o=a(8085),i=a(910),l=a(3882);(0,l.addFilter)("stackable.icon-list.design.no-text-attributes","stackable/icon-list",(e=>(0,o.omit)(e,["text"])));var r=a(7314),s=a(2610),c=a(1414),u=a(7200),g=a(9858),d=a(4184),b=a.n(d),m=a(7545),p=a(8003);const h='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 190 190"><polygon points="173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4"/></svg>',k=e=>{const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e;if(e||(a=h),"string"==typeof e&&2===e.split("-").length){const[t,n]=e.split("-");a=(0,m.faGetSVGIcon)(t,n)}const n=k(a);if(n){const e=n.querySelectorAll("*");if(t){let a=t;if(t.match(/#([\d\w]{6})/g))a=t.match(/#([\d\w]{6})/g)[0];else if(t.match(/var\((.*)?--[\w\d-_]+/g)){const e=t.match(/--[\w\d-_]+/g)[0];try{a=window.getComputedStyle(document.documentElement).getPropertyValue(e)||t}catch(e){a=t}}e.forEach((e=>{e&&!["DEFS","TITLE","DESC"].includes(e.tagName)&&(e.setAttribute("fill",a),e.setAttribute("stroke",a),e.style.fill=a,e.style.stroke=a)})),n.setAttribute("style",`fill: ${a} !important; color: ${a} !important`)}const a=(new XMLSerializer).serializeToString(n);return window.btoa(a)}};var v=a(4863),y=a.n(v);const f=e=>{const t=(0,m.__getValue)(e.attributes),{icon:a,iconColor:n,showBlockBackground:i="",blockBackgroundBackgroundColor:l="",listTextColor:r=""}=e.attributes,s=_(a,(0,m.whiteIfDark)(n,i&&l)),c=[];c.push({li:{...(0,m.createTypographyStyles)("listText%s","desktop",e.attributes),color:(0,m.whiteIfDark)(r,i&&l)},tablet:{li:{...(0,m.createTypographyStyles)("listText%s","tablet",e.attributes)}},mobile:{li:{...(0,m.createTypographyStyles)("listText%s","mobile",e.attributes)}}}),c.push(...(0,m.createResponsiveStyles)("li","icon%sSize","--icon-size","%spx",e.attributes,{important:!0})),c.push(...(0,m.createResponsiveStyles)("li::before","icon%sSize","width","%spx",e.attributes,{important:!0})),c.push(...(0,m.createResponsiveStyles)("li::before","icon%sSize","height","%spx",e.attributes,{important:!0})),c.push({"li::before":{opacity:(0,m.appendImportant)(t("opacity")),transform:(0,m.appendImportant)(t("Rotation","rotate(%sdeg)")),backgroundImage:s?`url('data:image/svg+xml;base64,${s}')`:void 0},...(()=>{const e={};return(0,o.range)(1,21).forEach((a=>{if(t(`icon${a}`)){const o=_(t(`icon${a}`),(0,m.whiteIfDark)(n,i&&l));e[`li:nth-child(${a}):before`]={backgroundImage:`url('data:image/svg+xml;base64,${t(`icon${a}`)?o:s}')`}}})),e})()}),c.push({li:{marginBottom:(0,m.appendImportant)(t("gap","%spx"))},"li ul":{marginBottom:(0,m.appendImportant)(t("gap","%spx"))}});const{displayAsGrid:u=!1}=e.attributes,g=e=>t(e)?parseInt(t(e),10):1,d=e=>new Array(e+1).join("1fr ").trim();return c.push({".ugb-icon-list ul":{columns:t("columns"),gridTemplateColumns:t("columns")&&u?d(g("columns")):void 0},tablet:{".ugb-icon-list ul":{columns:t("tabletColumns","%s !important"),gridTemplateColumns:t("tabletColumns")&&u?d(g("tabletColumns"))+" !important":void 0}},mobile:{".ugb-icon-list ul":{columns:t("mobileColumns","%s !important"),gridTemplateColumns:t("mobileColumns")&&u?d(g("mobileColumns"))+" !important":void 0}}}),y().all(c)};var C=a(4402),A=a(3749),w=a(3284),T=a(78);const B=e=>{const{contentAlign:t,tabletContentAlign:a,mobileContentAlign:n}=e,{__experimentalGetPreviewDeviceType:o}=(0,w.select)("core/edit-post")||{},i={},l=o?o():"Desktop",r=("Desktop"===l?t:"Tablet"===l?a:n)||"left";return i[`ugb-icon-list__${r}-align`]=r,i};(0,l.addFilter)("stackable.icon-list.edit.inspector.style.before","stackable/icon-list",((e,t)=>{const{setAttributes:a}=t,{icon:n,iconColor:o,gap:l,listTextColor:r="",displayAsGrid:c=!1,columns:d="",tabletColumns:b="",mobileColumns:m="",opacity:k="",rotation:_=""}=t.attributes;return(0,s.createElement)(s.Fragment,null,e,(0,s.createElement)(u.PanelAdvancedSettings,{title:(0,p.__)("General",i.i18n),initialOpen:!0},(0,s.createElement)(g.n9,{attrNameTemplate:"%sColumns",setAttributes:a,blockAttributes:t.attributes},(0,s.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("Columns",i.i18n),min:1,max:4,default:2})),(d&&d>1||b&&b>1||m&&m>1)&&(0,s.createElement)(u.AdvancedToggleControl,{label:(0,p.__)("Display as a grid (left to right & evenly spaced)",i.i18n),checked:c,onChange:e=>a({displayAsGrid:e}),className:"ugb--help-tip-icon-list-grid"}),(0,s.createElement)(g.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,s.createElement)(u.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,s.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("List Gap",i.i18n),value:l,onChange:e=>a({gap:e}),min:0,max:30,allowReset:!0,placeholder:"16",className:"ugb--help-tip-icon-list-gap"})),(0,s.createElement)(u.PanelAdvancedSettings,{title:(0,p.__)("Icon",i.i18n),initialOpen:!1},(0,s.createElement)(u.IconControl,{label:(0,p.__)("Icon",i.i18n),value:n||h,onChange:e=>a({icon:e}),help:(0,p.__)("You can click on each icon in the Icon List block to change them individually.",i.i18n)}),(0,s.createElement)(u.ControlSeparator,null),(0,s.createElement)(u.ColorPaletteControl,{label:(0,p.__)("Icon Color",i.i18n),value:o,onChange:e=>a({iconColor:e})}),(0,s.createElement)(u.ControlSeparator,null),(0,s.createElement)(g.n9,{attrNameTemplate:"icon%sSize",setAttributes:a,blockAttributes:t.attributes},(0,s.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("Icon Size",i.i18n),min:0,max:50,allowReset:!0,placeholder:"20"})),(0,s.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("Icon Opacity",i.i18n),value:k,min:0,max:1,step:.1,onChange:e=>a({opacity:e}),allowReset:!0,placeholder:"1.0"}),(0,s.createElement)(u.AdvancedRangeControl,{label:(0,p.__)("Icon Rotation",i.i18n),value:_,min:0,max:360,onChange:e=>a({rotation:e}),allowReset:!0,placeholder:"0"})),(0,s.createElement)(u.PanelAdvancedSettings,{title:(0,p.__)("List Text",i.i18n),id:"text",initialOpen:!1},(0,s.createElement)(u.TypographyControlHelper,{attrNameTemplate:"listText%s",setAttributes:a,blockAttributes:t.attributes}),(0,s.createElement)(u.ColorPaletteControl,{value:r,onChange:e=>a({listTextColor:e}),label:(0,p.__)("Color",i.i18n)})))}));const x=(0,A.compose)(c.FI,c.XQ,c.O0,C.withTransformOldIconAttributes,(0,c.Q9)(),(0,c.lX)(),(0,c.OB)(f,{editorMode:!0}),(0,c.UY)([["ul, ul li","text"]]))((e=>{const{className:t,setAttributes:a,isSelected:n}=e,{text:o,design:r="",displayAsGrid:c=!1}=e.attributes,g=b()([t,"ugb-icon-list--v2",B(e.attributes)],(0,l.applyFilters)("stackable.icon-list.mainclasses",{"ugb-icon-list--display-grid":c},r,e)),d=(0,s.createRef)(),m=(0,w.select)("core/block-editor").isTyping(),[h,k]=(0,s.useState)(!1),[_,v]=(0,s.useState)(null),[y,f]=(0,s.useState)(null),[C,A]=(0,s.useState)(null),x=t=>{if(A(t),"LI"!==t.target.tagName)return k(!1);const{__experimentalGetPreviewDeviceType:a}=(0,w.select)("core/edit-post")||{},n=a?a():"Desktop",o=("Desktop"===n?e.attributes.iconSize:"Tablet"===n?e.attributes.iconTabletSize||e.attributes.iconSize:e.attributes.iconMobileSize||e.attributes.iconTabletSize||e.attributes.iconSize)||20;if(t.offsetX<=o+21){const e=Array.from(t.target.parentElement.children).indexOf(t.target)+1,{currentlyOpenIndex:a}=t.target.parentElement;return a&&a===e?(t.target.parentElement.currentlyOpenIndex=void 0,k(!1)):(t.target.parentElement.currentlyOpenIndex=e,f(e),v(t.target),k(!0))}return t.target.parentElement.currentlyOpenIndex=void 0,v(null),k(!1)};return(0,s.useEffect)((()=>(d.current.addEventListener("click",x),()=>{d.current&&d.current.removeEventListener("click",x)})),[]),(0,s.useEffect)((()=>{n||(k(!1),C&&(C.target.parentElement.currentlyOpenIndex=void 0))}),[n]),(0,s.createElement)(u.BlockContainer.Edit,{className:g,blockProps:e,render:()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{ref:d},(0,s.createElement)(T.RichText,{tagName:"ul",multiline:"li",value:o,onChange:e=>a({text:e}),placeholder:(0,p.__)("Text for this block",i.i18n),keepPlaceholderOnFocus:!0}),!m&&n&&h&&(0,s.createElement)(u.IconSearchPopover,{position:"bottom left",anchorRef:_,onClose:()=>{C&&(C.target.parentElement.currentlyOpenIndex=void 0),k(!1)},onChange:e=>{a({[`icon${y}`]:e})}})))})})),S=(0,A.compose)(c.FI,(0,c.OB)(f))((e=>{const{className:t}=e,{text:a,design:n="",displayAsGrid:o=!1}=e.attributes,i=b()([t,"ugb-icon-list--v2"],(0,l.applyFilters)("stackable.icon-list.mainclasses",{"ugb-icon-list--display-grid":o},n,e));return(0,s.createElement)(u.BlockContainer.Save,{className:i,blockProps:e,render:()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(T.RichText.Content,{tagName:"ul",value:a}))})})),E={icon:{type:"string",default:h},iconShape:{type:"string"},iconColor:{type:"string"},...(0,m.createResponsiveAttributes)("icon%sSize",{type:"number",default:""}),columns:{type:"number",default:2},tabletColumns:{type:"number",default:""},mobileColumns:{type:"number",default:""},text:{source:"html",selector:"ul",multiline:"li",default:(0,o.range)(1,7).map((e=>(0,p.sprintf)((0,p.__)("Line %d",i.i18n),e))).map((e=>`<li>${e}</li>`)).join("")},displayAsGrid:{type:"boolean",default:!1},gap:{type:"number",default:""},listTextColor:{type:"string",default:""},opacity:{type:"number",default:""},rotation:{type:"number",default:""},...(0,m.createTypographyAttributes)("listText%s"),...function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"icon%d",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;if(t<1)return null;const a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return(0,p.sprintf)(e,t)},n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{[`${a(e)}`]:{type:"string",default:""}}};let i={};return(0,o.range)(1,t+1).forEach((e=>{i={...i,...n(e)}})),i}()},N=JSON.parse('{"name":"ugb/icon-list","title":"Icon List","description":"An unordered list with icons. You can use this as a list of features or benefits.","category":"stackable-v2","keywords":["Checklist","Bullets"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:R,...P}=N,I={...P,title:P.title+" (v2)",icon:n.IconListIcon,attributes:E,example:{attributes:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 190 190"><polygon points="173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4"/></svg>',columns:2,text:"<li>Line 1</li><li>Line 2</li><li>Line 3</li><li>Line 4</li><li>Line 5</li><li>Line 6</li>",displayAsGrid:!1,listTextLineHeightUnit:"em",listTextTabletLineHeightUnit:"em",listTextMobileLineHeightUnit:"em",uniqueClass:"ugb-495b710",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{inserter:!i.v2disabledBlocks.includes(R),anchor:!0},deprecated:r.default,edit:x,save:S,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0,importantBackgroundPosition:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"custom-css":{default:(0,l.applyFilters)("stackable.icon-list.custom-css.default","")}}};(0,l.addFilter)("stackable.icon-list.setAttributes","stackable/icon-list/icon",((e,t)=>(void 0===e.icon||(0,o.range)(1,21).forEach((a=>{t.attributes[`icon${a}`]&&(e[`icon${a}`]=void 0)})),e)))},6881:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>B,settings:()=>S});var n=a(910),o=a(9467),i=a(8085),l=a(3882);(0,l.addFilter)("stackable.icon.design.no-text-attributes","stackable/icon",(e=>(0,i.omit)(e,(0,i.range)(1,9).reduce(((e,t)=>[...e,`icon${t}`,`url${t}`,`newTab${t}`,`noFollow${t}`,`sponsored${t}`,`ugc${t}`,`title${t}`]),[]))));var r=a(2610),s=a(7545);const c=e=>{const{showTitle:t=!0}=e.attributes;return(0,l.applyFilters)("stackable.icon.show",{titleSpacing:t,iconAlign:t},e)};var u=a(4863),g=a.n(u);const d=e=>{const t=(0,s.__getValue)(e.attributes),a=c(e),n=[];n.push({"":(0,s.appendImportantAll)({justifyContent:(0,s.leftRightToFlex)(t("contentAlign"))}),tablet:{"":(0,s.appendImportantAll)({justifyContent:(0,s.leftRightToFlex)(t("tabletContentAlign"))})},mobile:{"":(0,s.appendImportantAll)({justifyContent:(0,s.leftRightToFlex)(t("mobileContentAlign"))})}});const{columnPaddingUnit:o="px",tabletColumnPaddingUnit:i="px",mobileColumnPaddingUnit:l="px"}=e.attributes;n.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${o}`),paddingBottom:t("columnPaddingBottom",`%s${o}`),paddingRight:t("columnPaddingRight",`%s${o}`),paddingLeft:t("columnPaddingLeft",`%s${o}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${i}`),paddingRight:t("tabletColumnPaddingRight",`%s${i}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${i}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${i}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${l}`),paddingRight:t("mobileColumnPaddingRight",`%s${l}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${l}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${l}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-icon__content-wrapper":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${o}`),paddingBottom:t("columnPaddingBottom",`%s${o}`),paddingRight:t("columnPaddingRight",`%s${o}`),paddingLeft:t("columnPaddingLeft",`%s${o}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-icon__content-wrapper":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${i}`),paddingRight:t("tabletColumnPaddingRight",`%s${i}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${i}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${i}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-icon__content-wrapper":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${l}`),paddingRight:t("mobileColumnPaddingRight",`%s${l}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${l}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${l}`)})}}}),n.push({...(0,s.createIconStyleSet)("icon%s","ugb-icon__icon",e.attributes)}),a.iconAlign&&n.push({".ugb-icon__icon":(0,s.appendImportantAll)({alignSelf:(0,s.leftRightToFlex)(t("iconAlign"))}),tablet:{".ugb-icon__icon":(0,s.appendImportantAll)({alignSelf:(0,s.leftRightToFlex)(t("iconTabletAlign"))})},mobile:{".ugb-icon__icon":(0,s.appendImportantAll)({alignSelf:(0,s.leftRightToFlex)(t("iconMobileAlign"))})}});const{showTitle:r=!0}=e.attributes;return r&&n.push({".ugb-icon__title":{color:t("titleColor"),...(0,s.createTypographyStyles)("title%s","desktop",e.attributes),textAlign:t("titleAlign")||t("contentAlign")},tablet:{".ugb-icon__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-icon__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")||t("mobileContentAlign")}}}),n.push(...(0,s.createResponsiveStyles)(".ugb-icon__icon","icon%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.titleSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-icon__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),n.push({".ugb-icon__content-wrapper":{columnGap:(0,s.appendImportant)(t("columnGap","%spx"))},tablet:{".ugb-icon__content-wrapper":{columnGap:(0,s.appendImportant)(t("tabletColumnGap","%spx"))}},mobile:{".ugb-icon__content-wrapper":{columnGap:(0,s.appendImportant)(t("mobileColumnGap","%spx"))}}}),g().all(n)};var b=a(7200),m=a(9858),p=a(1414),h=a(4184),k=a.n(h),_=a(8003),v=a(3749),y=a(78);(0,l.addFilter)("stackable.icon.edit.inspector.style.before","stackable/icon",((e,t)=>{const{setAttributes:a}=t,{columns:o,showTitle:l=!1,titleTop:u=!1,titleTag:g="",titleColor:d=""}=t.attributes,p=c(t);return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("General",n.i18n),initialOpen:!0},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Number of Icons / Columns",n.i18n),value:o,onChange:e=>a({columns:e}),min:1,max:8,placeholder:"1",className:"ugb--help-tip-general-columns"}),(0,r.createElement)(m.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,r.createElement)(b.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,r.createElement)(m.n9,{attrNameTemplate:"icon%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.ColumnPaddingControl,{label:(0,_.__)("Paddings",n.i18n),setAttributes:a,attributes:t.attributes}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Icon",n.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-icon"})),p.titleSpacing&&(0,r.createElement)(m.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Title",n.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-title"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Icon",n.i18n),id:"icon",hasToggle:!1},(0,r.createElement)(b.IconControlsHelper,{attrNameTemplate:"icon%s",setAttributes:a,blockAttributes:t.attributes,onChangeIcon:!1,numPaths:Math.max(...Object.values((0,i.pick)(t.attributes,["icon1","icon2","icon3","icon4","icon5","icon6","icon7","icon8"])).map((e=>(0,s.numShapesInSvg)(e)||1)))}),p.iconAlign&&(0,r.createElement)(b.ControlSeparator,null),p.iconAlign&&(0,r.createElement)(m.n9,{attrNameTemplate:"Icon%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-icon"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Title",n.i18n),id:"title",checked:l,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,s.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,r.createElement)(b.AdvancedToggleControl,{label:(0,_.__)("Title on Top",n.i18n),checked:u,onChange:e=>a({titleTop:e})}),(0,r.createElement)(b.HeadingButtonsControl,{value:g||"h5",defaultValue:"h5",onChange:e=>a({titleTag:e})}),(0,r.createElement)(b.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:g||"h5"}),(0,r.createElement)(b.ColorPaletteControl,{value:d,onChange:e=>a({titleColor:e}),label:(0,_.__)("Title Color",n.i18n)}),(0,r.createElement)(m.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-title"}))))}));const f=(0,v.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(),(0,p.lX)(["Icon%sAlign","Title%sAlign"]),(0,p.OB)(d,{editorMode:!0}),(0,p.UY)([[".ugb-icon__item","column-background"],[".ugb-icon-inner-svg svg","icon"],[".ugb-icon__title","title"]]))((e=>{const{className:t,setAttributes:a,attributes:o,isSelected:s}=e,{design:u="basic",columns:g=1,showTitle:d=!1,titleTop:p=!1,titleTag:h=""}=e.attributes,[v,f]=(0,r.useState)(!1),[C,A]=(0,r.useState)("bottom center"),[w,T]=(0,r.useState)(null),B=c(e),x=k()([t,`ugb-icon--design-${u}`],(0,l.applyFilters)("stackable.icon.mainclasses",{},e)),S=()=>{const e=document.querySelector(".ugb-icon-popover");e&&(e.classList.contains("is-from-top")?A("top center"):e.classList.contains("is-from-bottom")&&A("bottom center"))};(0,r.useEffect)((()=>(s&&!w?T(setInterval(S,500)):!s&&w&&(clearInterval(w),T(null)),s||f(!1),()=>{w&&clearInterval(w)})),[s]);const E=e=>{if(e){const e=document.querySelector(".ugb-icon-popover"),t=new MutationObserver((()=>{e.classList.contains("is-from-top")?(A("top center"),t.disconnect()):e.classList.contains("is-from-bottom")&&(A("bottom center"),t.disconnect())}));t.observe(e,{attributes:!0})}};return(0,r.createElement)(b.BlockContainer.Edit,{className:x,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"ugb-icon__content-wrapper"},(0,i.range)(1,g+1).map((t=>{const i=o[`icon${t}`],c=o[`title${t}`],u=k()(["ugb-icon__item",`ugb-icon__item${t}`],(0,l.applyFilters)("stackable.icon.boxclasses",{},e)),g=(0,r.createElement)("div",{key:"icon",className:"ugb-icon__icon"},(0,r.createElement)(m.ux,{attrNameTemplate:"icon%s",blockAttributes:e.attributes,value:i,onChange:e=>a({[`icon${t}`]:e}),onToggle:E})),A=d&&(0,r.createElement)(y.RichText,{key:"title",tagName:h||"h5",className:"ugb-icon__title",value:c,placeholder:(0,_.__)("Title",n.i18n),onChange:e=>a({[`title${t}`]:e}),keepPlaceholderOnFocus:!0});let w=[g,A];return p&&(w=[A,g]),(0,r.createElement)(m.Gc,{className:u,backgroundAttrName:"column%s",blockProps:e,showBackground:B.columnBackground,onClick:()=>f(t),key:t},w,s&&v===t&&(0,r.createElement)(b.UrlInputPopover,{value:o[`url${t}`],onChange:e=>a({[`url${t}`]:e}),newTab:o[`newTab${t}`],noFollow:o[`noFollow${t}`],sponsored:o[`sponsored${t}`],ugc:o[`ugc${t}`],onChangeNewTab:e=>a({[`newTab${t}`]:e}),onChangeNoFollow:e=>a({[`noFollow${t}`]:e}),onChangeSponsored:e=>a({[`sponsored${t}`]:e}),onChangeUgc:e=>a({[`ugc${t}`]:e}),position:C}))}))))})}));var C=a(7462);const A=(0,v.compose)(p.FI,(0,p.OB)(d))((e=>{const{attributes:t,className:a}=e,{columns:n=1,design:o="basic",showTitle:s=!1,titleTop:u=!1,titleTag:g=""}=t,d=k()([a,"ugb-icon--v2",`ugb-icon--design-${o}`],(0,l.applyFilters)("stackable.icon.mainclasses",{},e)),p=c(e);return(0,r.createElement)(b.BlockContainer.Save,{className:d,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"ugb-icon__content-wrapper"},(0,i.range)(1,n+1).map((a=>{const n=t[`icon${a}`],o=t[`title${a}`],i=t[`url${a}`],c=t[`newTab${a}`],d=t[`noFollow${a}`],b=t[`sponsored${a}`],h=t[`ugc${a}`],_=k()(["ugb-icon__item",`ugb-icon__item${a}`],(0,l.applyFilters)("stackable.icon.boxclasses",{},e)),v=i?"a":"div",f={rel:[]};i&&(f.href=i),c&&(f.target="_blank",f.rel.push("noopener","noreferrer")),d&&f.rel.push("nofollow"),b&&f.rel.push("sponsored"),h&&f.rel.push("ugc"),f.rel=f.rel.join(" ");const A=(0,r.createElement)(v,(0,C.Z)({key:"icon",className:"ugb-icon__icon"},f),(0,r.createElement)(m.xo.Content,{attrNameTemplate:"icon%s",blockAttributes:e.attributes,value:n})),w=s&&!y.RichText.isEmpty(o)&&(0,r.createElement)(y.RichText.Content,{key:"title",tagName:g||"h5",className:"ugb-icon__title",value:o});let T=[A,w];return u&&(T=[w,A]),(0,r.createElement)(m.Gc,{key:a,className:_,backgroundAttrName:"column%s",blockProps:e,showBackground:p.columnBackground},T)}))))})})),w={columns:{type:"number",default:1},alignment:{type:"string",default:"center"},icon1:{type:"string",source:"html",selector:".ugb-icon__item1 .ugb-icon-inner-svg",default:"far-star"},icon2:{type:"string",source:"html",selector:".ugb-icon__item2 .ugb-icon-inner-svg",default:"far-circle"},icon3:{type:"string",source:"html",selector:".ugb-icon__item3 .ugb-icon-inner-svg",default:"far-square"},icon4:{type:"string",source:"html",selector:".ugb-icon__item4 .ugb-icon-inner-svg",default:"far-heart"},icon5:{type:"string",source:"html",selector:".ugb-icon__item5 .ugb-icon-inner-svg",default:"far-arrow-alt-circle-up"},icon6:{type:"string",source:"html",selector:".ugb-icon__item6 .ugb-icon-inner-svg",default:"far-times-circle"},icon7:{type:"string",source:"html",selector:".ugb-icon__item7 .ugb-icon-inner-svg",default:"far-check-circle"},icon8:{type:"string",source:"html",selector:".ugb-icon__item8 .ugb-icon-inner-svg",default:"far-question-circle"},...(0,s.createIconAttributes)("icon%s"),...(0,s.createAllCombinationAttributes)("Url%s",{type:"string",source:"attribute",selector:".ugb-icon__item%s .ugb-icon__icon",attribute:"href",default:""},["1","2","3","4","5","6","7","8"]),...(0,s.createAllCombinationAttributes)("NewTab%s",{type:"boolean",source:"attribute",selector:".ugb-icon__item%s .ugb-icon__icon",attribute:"target",default:""},["1","2","3","4","5","6","7","8"]),...(0,s.createAllCombinationAttributes)("NoFollow%s",{type:"boolean",default:""},["1","2","3","4","5","6","7","8"]),...(0,s.createAllCombinationAttributes)("Sponsored%s",{type:"boolean",default:""},["1","2","3","4","5","6","7","8"]),...(0,s.createAllCombinationAttributes)("Ugc%s",{type:"boolean",default:""},["1","2","3","4","5","6","7","8"]),showTitle:{type:"boolean",default:!1},titleTop:{type:"boolean",default:!1},...(0,s.createAllCombinationAttributes)("Title%s",{type:"string",source:"html",selector:".ugb-icon__item%s .ugb-icon__title",default:(0,_.__)("Title",n.i18n)},["1","2","3","4","5","6","7","8"]),titleTag:{type:"string",default:""},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},...(0,s.createResponsiveAttributes)("icon%sBottomMargin",{type:"number",default:""}),...(0,s.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,s.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Icon","Title"],["","Tablet","Mobile"]),hoverEffect:{type:"string",default:""}},T=JSON.parse('{"name":"ugb/icon","title":"Icon","description":"Pick an icon or upload your own SVG icon to decorate your content.","category":"stackable-v2","keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:B,...x}=T,S={...x,title:x.title+" (v2)",icon:o.IconIcon,attributes:w,example:{attributes:{columns:3,alignment:"center",icon1:'<svg data-prefix="far" data-icon="star" class="svg-inline--fa fa-star fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"></path></svg>',icon2:'<svg data-prefix="far" data-icon="circle" class="svg-inline--fa fa-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"></path></svg>',icon3:'<svg data-prefix="far" data-icon="square" class="svg-inline--fa fa-square fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"></path></svg>',iconIcon:'<div class="ugb-inner-block"><div class="ugb-block-content"><div class="ugb-icon__content-wrapper"><div class="ugb-icon__item ugb-icon__item1"><div class="ugb-icon__icon"><div class="ugb-icon-inner-svg"><svg data-prefix="far" data-icon="star" class="svg-inline--fa fa-star fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"></path></svg></div></div></div><div class="ugb-icon__item ugb-icon__item2"><div class="ugb-icon__icon"><div class="ugb-icon-inner-svg"><svg data-prefix="far" data-icon="circle" class="svg-inline--fa fa-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"></path></svg></div></div></div><div class="ugb-icon__item ugb-icon__item3"><div class="ugb-icon__icon"><div class="ugb-icon-inner-svg"><svg data-prefix="far" data-icon="square" class="svg-inline--fa fa-square fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"></path></svg></div></div></div></div></div></div>',iconDesign:"plain",newTab1:!1,newTab2:!1,newTab3:!1,newTab4:!1,newTab5:!1,newTab6:!1,newTab7:!1,newTab8:!1,showTitle:!1,titleTop:!1,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",uniqueClass:"ugb-34c3b52",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["center","wide","full"],inserter:!n.v2disabledBlocks.includes(B),anchor:!0},edit:f,save:A,deprecated:[],modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"custom-css":{default:(0,l.applyFilters)("stackable.icon.custom-css.default","")}}}},8776:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>L,settings:()=>H});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.image-box.design.no-text-attributes","stackable/image-box",(e=>(0,n.omit)(e,["subtitle1","subtitle2","subtitle3","subtitle4","title1","title2","title3","title4","description1","description2","description3","description4"]))),(0,o.addFilter)("stackable.image-box.design.filtered-block-attributes","stackable/image-box",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,n.omit)(e,["link1Url","link2Url","link3Url","link4Url","link1NewTab","link2NewTab","link3NewTab","link4NewTab","link1NoFollow","link2NoFollow","link3NoFollow","link4NoFollow","image1Alt","image2Alt","image3Alt","image4Alt","image1Id",...t&&t.image1Id?["image1Url"]:[],"image2Id",...t&&t.image2Id?["image2Url"]:[],"image3Id",...t&&t.image3Id?["image3Url"]:[],"image4Id",...t&&t.image4Id?["image4Url"]:[]])}}));var i=a(2610),l=a(7462);a(7294);const r=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 167.6 107.8"},e),(0,i.createElement)("path",{d:"M116.8 106.6l50.8-52.7-50.9-52.7c-1.5-1.6-4.1-1.6-5.7-.1-1.6 1.5-1.6 4.1-.1 5.7l41.6 43.1H4c-2.2 0-4 1.7-4 3.9s1.7 4 3.9 4.1h148.7L111 101c-1.5 1.6-1.4 4.1.1 5.6 1.6 1.6 4.1 1.5 5.7 0z"}))};var s=a(7545),c=a(4184),u=a.n(c),g=a(910),d=a(8003),b=a(78);const m={align:{type:"string"},columns:{type:"number",default:3},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},overlayColor:{type:"string"},width:{type:"number",default:400},height:{type:"number",default:400},verticalAlign:{type:"string",default:"center"},horizontalAlign:{type:"string",default:"center"},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},overlayOpacity:{type:"number",default:7},imageHoverEffect:{type:"string",default:""},arrow:{type:"string",default:""},hoverEffect:{type:"string",default:""},full:{type:"boolean"},title:{type:"string"},subtitle:{type:"string"},id:{type:"number"},url:{type:"string"},href:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}};[1,2,3,4].forEach((e=>{m[`title${e}`]={source:"html",selector:`.ugb-image-box__item:nth-of-type(${e}) .ugb-image-box__title`,default:(0,d.__)("Title",g.i18n)},m[`description${e}`]={source:"html",selector:`.ugb-image-box__item:nth-of-type(${e}) .ugb-image-box__description`,default:(0,d.__)("Description",g.i18n)},m[`imageURL${e}`]={type:"string"},m[`imageID${e}`]={type:"number"},m[`link${e}`]={type:"string",source:"attribute",selector:`.ugb-image-box__item:nth-of-type(${e}) .ugb-image-box__overlay`,attribute:"href",default:""},m[`newTab${e}`]={type:"boolean",source:"attribute",selector:`.ugb-image-box__item:nth-of-type(${e}) .ugb-image-box__overlay`,attribute:"target",default:!1}}));const p=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return a=>{const{className:n,attributes:l}=a,{titleColor:c,subtitleColor:g,overlayColor:d,height:m,width:p,verticalAlign:h,horizontalAlign:k,align:_,columns:v,design:y="basic",borderRadius:f=12,shadow:C=3,imageHoverEffect:A="",overlayOpacity:w=7,arrow:T=""}=a.attributes,B=u()([n,"ugb-image-box","ugb-image-box--v3",`ugb-image-box--columns-${v}`],(0,o.applyFilters)("stackable.image-box.mainclasses_1_17_3",{[`ugb-image-box--design-${y}`]:"basic"!==y,[`ugb-image-box--effect-${A}`]:A,[`ugb-image-box--overlay-${w}`]:7!==w,"ugb-image-box--arrow":T},y,a)),x={textAlign:k||void 0,"--overlay-color":d};return(0,i.createElement)("div",{className:B,style:x},(0,o.applyFilters)("stackable.image-box.save.output.before_1_17_3",null,y,a),(0,s.range)(1,v+1).map((n=>{const s=l[`imageURL${n}`],d=l[`title${n}`],w=l[`description${n}`],B=l[`link${n}`],x=l[`newTab${n}`],S={backgroundImage:s?`url(${s})`:void 0,maxWidth:"wide"!==_&&"full"!==_&&1===v?p:void 0,height:m,textAlign:k,justifyContent:h,borderRadius:f},E=u()(["ugb-image-box__item"],(0,o.applyFilters)("stackable.image-box.itemclasses_1_17_3",{[`ugb--shadow-${C}`]:3!==C},y,n,a)),N=u()(["ugb-image-box__arrow",`ugb-image-box__arrow--align-${T}`]);return(0,i.createElement)("div",{className:E,style:S,key:n},A&&(0,i.createElement)("div",{className:"ugb-image-box__image-effect",style:{backgroundImage:s?`url(${s})`:void 0}}),(0,i.createElement)("a",{className:"ugb-image-box__overlay",href:B,target:x?"_blank":void 0}),(0,i.createElement)("div",{className:"ugb-image-box__content"},!b.RichText.isEmpty(d)&&(0,i.createElement)(b.RichText.Content,{tagName:"h4",className:"ugb-image-box__title",style:e?{color:c}:void 0,value:d}),!b.RichText.isEmpty(w)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-image-box__description",style:t?{color:g}:void 0,value:w})),T&&B&&(0,i.createElement)("div",{className:N},(0,i.createElement)(r,{style:{fill:c||void 0}})))})),(0,o.applyFilters)("stackable.image-box.save.output.after_1_17_3",null,y,a))}},h=e=>{const t=e=>(e||"").replace(/\.ugb-image-box__overlay(\s*{)/g,".ugb-image-box__overlay-hover$1");return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),blockWidth:1===e.columns&&"full"!==e.align?e.width:void 0,columnHeight:e.height,columnContentVerticalAlign:e.verticalAlign,contentAlign:e.horizontalAlign,link1Url:e.link1,link2Url:e.link2,link3Url:e.link3,link4Url:e.link4,link1NewTab:e.newTab1,link2NewTab:e.newTab2,link3NewTab:e.newTab3,link4NewTab:e.newTab4,image1Id:e.imageID1,image2Id:e.imageID2,image3Id:e.imageID3,image4Id:e.imageID4,image1Url:e.imageURL1,image2Url:e.imageURL2,image3Url:e.imageURL3,image4Url:e.imageURL4,image1FullUrl:e.imageURL1,image2FullUrl:e.imageURL2,image3FullUrl:e.imageURL3,image4FullUrl:e.imageURL4,imageSize:"full",showOverlay:!1,showOverlayHover:!0,overlayHoverBackgroundColor:e.overlayColor,overlayHoverOpacity:isNaN(parseInt(e.overlayOpacity,10))?.7:parseInt(e.overlayOpacity,10)/10,showArrow:!!e.arrow,arrowAlign:e.arrow?e.arrow:void 0,arrowColor:e.titleColor,descriptionColor:e.subtitleColor,showSubtitle:!1,borderRadius:1===e.columns&&"full"===e.align?0:e.borderRadius,paddingRight:1===e.columns&&"full"===e.align?0:void 0,paddingLeft:1===e.columns&&"full"===e.align?0:void 0}},k=[{attributes:m,save:e=>{const{className:t,attributes:a}=e,{titleColor:n,subtitleColor:l,overlayColor:c,height:g,width:d,verticalAlign:m,horizontalAlign:p,align:h,columns:k,design:_="basic",borderRadius:v=12,shadow:y=3,imageHoverEffect:f="",overlayOpacity:C=7,arrow:A=""}=e.attributes,w=u()([t,"ugb-image-box","ugb-image-box--v3",`ugb-image-box--columns-${k}`],(0,o.applyFilters)("stackable.image-box.mainclasses_1_17_3",{[`ugb-image-box--design-${_}`]:"basic"!==_,[`ugb-image-box--effect-${f}`]:f,[`ugb-image-box--overlay-${C}`]:7!==C,"ugb-image-box--arrow":A},_,e)),T={textAlign:p||void 0,"--overlay-color":c};return(0,i.createElement)("div",{className:w,style:T},(0,o.applyFilters)("stackable.image-box.save.output.before_1_17_3",null,_,e),(0,s.range)(1,k+1).map((t=>{const s=a[`imageURL${t}`],c=a[`title${t}`],C=a[`description${t}`],w=a[`link${t}`],T=a[`newTab${t}`],B={backgroundImage:s?`url(${s})`:void 0,maxWidth:"wide"!==h&&"full"!==h&&1===k?d:void 0,height:g,textAlign:p,justifyContent:m,borderRadius:v},x=u()(["ugb-image-box__item"],(0,o.applyFilters)("stackable.image-box.itemclasses_1_17_3",{[`ugb--shadow-${y}`]:3!==y},_,t,e)),S=u()(["ugb-image-box__arrow",`ugb-image-box__arrow--align-${A}`]);return(0,i.createElement)("div",{className:x,style:B,key:t},f&&(0,i.createElement)("div",{className:"ugb-image-box__image-effect",style:{backgroundImage:s?`url(${s})`:void 0}}),(0,i.createElement)("a",{className:"ugb-image-box__overlay",href:w,target:T?"_blank":void 0}),(0,i.createElement)("div",{className:"ugb-image-box__content"},!b.RichText.isEmpty(c)&&(0,i.createElement)(b.RichText.Content,{tagName:"h4",className:"ugb-image-box__title",style:{color:n},value:c}),!b.RichText.isEmpty(C)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-image-box__description",style:{color:l},value:C})),A&&w&&(0,i.createElement)("div",{className:S},(0,i.createElement)(r,{style:{fill:n||void 0}})))})),(0,o.applyFilters)("stackable.image-box.save.output.after_1_17_3",null,_,e))},migrate:h},{attributes:m,save:p(!1,!1),migrate:h},{attributes:m,save:p(!0,!1),migrate:h},{attributes:m,save:p(!1,!0),migrate:h}];var _=a(7200),v=a(9858),y=a(8423),f=a(1414),C=a(4863),A=a.n(C);const w=e=>{const{design:t="basic",showSubtitle:a=!0,showTitle:n=!0,showDescription:i=!0,showArrow:l=!1}=e.attributes;return(0,o.applyFilters)("stackable.image-box.show",{columnBackground:!0,borderRadius:!0,border:!0,shadow:!0,line:"box"===t||"line"===t,subtitleSpacing:a,titleSpacing:n,lineSpacing:"line"===t,descriptionSpacing:i,arrowSpacing:l},e)},T=e=>{const t=(0,s.__getValue)(e.attributes),a=w(e),n=[];a.borderRadius&&n.push({".ugb-image-box__box":{borderRadius:(0,s.appendImportant)(t("borderRadius","%spx !important"))}}),a.border&&n.push({...(0,s.createBorderStyleSet)("column%s",".ugb-image-box__item",e.attributes)});const o=(0,s.clampInheritedStyle)(t("columnHeight"),{max:300}),{columnPaddingUnit:i="px",tabletColumnPaddingUnit:l="px",mobileColumnPaddingUnit:r="px"}=e.attributes;n.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-image-box__item":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-image-box__item":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-image-box__item":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}}}),n.push({".ugb-image-box__item":{height:(0,s.appendImportant)(t("columnHeight","%spx"))},tabletOnly:{".ugb-image-box__item":{height:(0,s.appendImportant)(t("tabletColumnHeight","%spx")||o&&`${o}px`)}},mobile:{".ugb-image-box__item":{height:(0,s.appendImportant)(t("mobileColumnHeight","%spx")||o&&`${o}px`)}}}),n.push({".ugb-image-box__item":{justifyContent:(0,s.appendImportant)(t("columnContentVerticalAlign"))},tablet:{".ugb-image-box__item":{justifyContent:(0,s.appendImportant)(t("columnContentTabletVerticalAlign"))}},mobile:{".ugb-image-box__item":{justifyContent:(0,s.appendImportant)(t("columnContentMobileVerticalAlign"))}}}),n.push({".ugb-image-box__item1 .ugb-image-box__image":{backgroundImage:t("image1Url","url(%s)")},".ugb-image-box__item2 .ugb-image-box__image":{backgroundImage:t("image2Url","url(%s)")},".ugb-image-box__item3 .ugb-image-box__image":{backgroundImage:t("image3Url","url(%s)")},".ugb-image-box__item4 .ugb-image-box__image":{backgroundImage:t("image4Url","url(%s)")},".ugb-image-box__image":{backgroundPosition:(0,s.appendImportant)(t("imageBackgroundPosition")),backgroundRepeat:(0,s.appendImportant)(t("imageBackgroundRepeat")),backgroundSize:(0,s.appendImportant)("custom"===t("imageBackgroundSize")?t("imageBackgroundCustomSize",`%s${t("imageBackgroundCustomSizeUnit")||"px"}`):t("imageBackgroundSize"))}});const{showOverlay:c=!1}=e.attributes;c&&n.push({".ugb-image-box__overlay":{...(0,y.ex)("overlay%s","desktop",e.attributes,{importantBackgroundColor:!0}),...(0,y._r)("overlay%s","desktop",e.attributes,{importantBackgroundColor:!0})},".ugb-image-box__item:not(:hover) .ugb-image-box__overlay":{opacity:(0,s.appendImportant)(t("overlayOpacity"))}});const{showOverlayHover:u=!1}=e.attributes;u&&n.push({".ugb-image-box__overlay-hover":{...(0,y.ex)("overlayHover%s","desktop",e.attributes,{importantBackgroundColor:!0}),...(0,y._r)("overlayHover%s","desktop",e.attributes,{importantBackgroundColor:!0})},".ugb-image-box__item:hover .ugb-image-box__overlay-hover":{opacity:(0,s.appendImportant)(t("overlayHoverOpacity"))}});const{showSubtitle:g=!0}=e.attributes;g&&n.push({".ugb-image-box__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","desktop",e.attributes,{importantSize:!0}),color:(0,s.appendImportant)(t("subtitleColor")),textAlign:t("subtitleAlign","%s !important")},tablet:{".ugb-image-box__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("subtitleTabletAlign","%s !important")}},mobile:{".ugb-image-box__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("subtitleMobileAlign","%s !important")}}});const{showTitle:d=!0}=e.attributes;d&&n.push({".ugb-image-box__title":{...(0,s.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),color:(0,s.appendImportant)(t("titleColor")),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-image-box__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-image-box__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{showDescription:b=!0}=e.attributes;b&&n.push({".ugb-image-box__description":{...(0,s.createTypographyStyles)("description%s","desktop",e.attributes,{importantSize:!0}),color:(0,s.appendImportant)(t("descriptionColor")),textAlign:t("descriptionAlign","%s !important")},tablet:{".ugb-image-box__description":{...(0,s.createTypographyStyles)("description%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("descriptionTabletAlign","%s !important")}},mobile:{".ugb-image-box__description":{...(0,s.createTypographyStyles)("description%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("descriptionMobileAlign","%s !important")}}});const{showArrow:m=!1}=e.attributes;return m&&(n.push({".ugb-image-box__arrow svg":{fill:(0,s.appendImportant)(t("arrowColor"))}}),n.push(...(0,s.createResponsiveStyles)(".ugb-image-box__arrow svg","arrow%sSize","width","%spx",e.attributes,{important:!0,inherit:!1})),n.push(...(0,s.createResponsiveStyles)(".ugb-image-box__arrow","arrow%sAlign","textAlign","%s",e.attributes,{important:!0}))),a.subtitleSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-image-box__subtitle","subtitle%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.titleSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-image-box__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.descriptionSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-image-box__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.arrowSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-image-box__arrow","arrow%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),A().all(n)};var B=a(7537),x=a(3749),S=a(3284);(0,o.addFilter)("stackable.image-box.edit.layouts","default",(e=>[...e,{image:"dist/images/block-image-box-basic.cbb7240.png",label:(0,d.__)("Basic",g.i18n),value:"basic"},{image:"dist/images/block-image-box-plain.d836dfc.png",label:(0,d.__)("Plain",g.i18n),value:"plain"},{label:(0,d.__)("Box",g.i18n),value:"box",image:"dist/images/block-image-box-box.aadb69d.png",premium:!0},{label:(0,d.__)("Captioned",g.i18n),value:"captioned",image:"dist/images/block-image-box-captioned.e4cb284.png",premium:!0},{label:(0,d.__)("Fade",g.i18n),value:"fade",image:"dist/images/block-image-box-fade.e47d3e8.png",premium:!0},{label:(0,d.__)("Line",g.i18n),value:"line",image:"dist/images/block-image-box-line.a1b9f9a.png",premium:!0}])),(0,o.addFilter)("stackable.image-box.edit.inspector.layout.before","stackable/image-box",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(_.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.image-box.edit.layouts",[]),onChange:e=>{a({design:e})}},g.showProNotice&&(0,i.createElement)(_.ProControlButton,null)))})),(0,o.addFilter)("stackable.image-box.edit.inspector.style.before","stackable/image-box",((e,t)=>{const{setAttributes:a}=t,{design:n="basic",columns:l=3,titleColor:r,descriptionColor:c,borderRadius:u="",shadow:b="",showTitle:m=!0,showDescription:p=!0,titleTag:h="",image1Id:k="",image2Id:f="",image3Id:C="",image4Id:A="",imageHoverEffect:T="",showOverlay:B=!1,showOverlayHover:x=!0,overlayOpacity:S=.7,overlayHoverOpacity:E=.7,showSubtitle:N=!0,subtitleColor:R="",lineColor:P="",lineSize:I="",showArrow:$=!1,arrowColor:U=""}=t.attributes,F=w(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("General",g.i18n),initialOpen:!0},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Columns",g.i18n),value:l,onChange:e=>a({columns:e}),min:1,max:4,className:"ugb--help-tip-general-columns",default:3}),(0,i.createElement)(v.n9,{attrNameTemplate:"%sColumnHeight",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Height",g.i18n),min:"100",max:"700",allowReset:!0,placeholder:"350",className:"ugb--help-tip-image-box-height"})),F.border&&(0,i.createElement)(_.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),F.borderRadius&&(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Border Radius",g.i18n),value:u,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),F.shadow&&(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Shadow / Outline",g.i18n),value:b,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"}),(0,i.createElement)(v.n9,{attrNameTemplate:"columnContent%sVerticalAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedToolbarControl,{label:(0,d.__)("Content Vertical Align",g.i18n),controls:"flex-vertical",className:"ugb--help-tip-advanced-column-content-vertical-align"})),(0,i.createElement)(v.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,i.createElement)(_.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(_.ColumnPaddingControl,{label:(0,d.__)("Paddings",g.i18n),setAttributes:a,attributes:t.attributes}),F.subtitleSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"subtitle%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Subtitle",g.i18n),min:-50,max:100,placeholder:"6",allowReset:!0,className:"ugb--help-tip-image-box-subtitle-spacing"})),F.titleSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Title",g.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-image-box-title-spacing"})),F.lineSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"line%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Line",g.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-image-box-line-spacing"})),F.descriptionSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Description",g.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-image-box-description-spacing"})),F.arrowSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"arrow%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Arrow",g.i18n),min:-50,max:100,allowReset:!0,className:"ugb--help-tip-image-box-arrow-spacing"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Image",g.i18n),initialOpen:!1},(0,i.createElement)(_.ImageBackgroundControlsHelper,{attrNameTemplate:"image%s",setAttributes:a,blockAttributes:t.attributes,onChangeImage:null,onChangeSize:e=>{a({imageSize:e,image1Url:(0,s.getImageUrlFromCache)(k,e||"large"),image2Url:(0,s.getImageUrlFromCache)(f,e||"large"),image3Url:(0,s.getImageUrlFromCache)(C,e||"large"),image4Url:(0,s.getImageUrlFromCache)(A,e||"large")})}})),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Overlay Color",g.i18n),checked:B,onChange:e=>a({showOverlay:e}),toggleOnSetAttributes:[...(0,y.TA)("overlay%s"),"overlayOpacity"],toggleAttributeName:"showOverlay",className:"ugb--help-tip-image-box-overlay"},(0,i.createElement)(_.BackgroundControlsHelper,{attrNameTemplate:"overlay%s",setAttributes:a,blockAttributes:t.attributes,labelBackgroundColorType:(0,d.__)("Overlay Color Type",g.i18n),labelBackgroundColor:(0,d.__)("Overlay Color",g.i18n),onChangeImage:null,onChangeBackgroundMedia:null,onChangeBackgroundColorOpacity:null}),(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Opacity",g.i18n),value:S,onChange:e=>a({overlayOpacity:e}),min:0,max:1,step:.1,allowReset:!0,placeholder:"0.7",className:"ugb--help-tip-background-color-opacity"})),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Overlay Hover Color",g.i18n),checked:x,onChange:e=>a({showOverlayHover:e}),toggleOnSetAttributes:[...(0,y.TA)("overlayHover%s"),"overlayHoverOpacity"],toggleAttributeName:"showOverlayHover",className:"ugb--help-tip-image-box-overlay-hover"},(0,i.createElement)(_.BackgroundControlsHelper,{attrNameTemplate:"overlayHover%s",setAttributes:a,blockAttributes:t.attributes,labelBackgroundColorType:(0,d.__)("Overlay Color Type",g.i18n),labelBackgroundColor:(0,d.__)("Overlay Color",g.i18n),onChangeImage:null,onChangeBackgroundMedia:null,onChangeBackgroundColorOpacity:null}),(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Opacity",g.i18n),value:E,onChange:e=>a({overlayHoverOpacity:e}),min:0,max:1,step:.1,allowReset:!0,placeholder:"0.7",className:"ugb--help-tip-background-color-opacity"})),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Effects",g.i18n),initialOpen:!1},(0,i.createElement)(_.AdvancedSelectControl,{label:(0,d.__)("Image Hover Effect",g.i18n),options:(0,o.applyFilters)("stackable.image-box.edit.image-hover-effects",[{label:(0,d.__)("None",g.i18n),value:""},{label:(0,d.__)("Zoom In",g.i18n),value:"zoom-in"},{label:(0,d.__)("Zoom Out",g.i18n),value:"zoom-out"}]),value:T,onChange:e=>a({imageHoverEffect:e}),className:"ugb--help-tip-image-box-hover-effect"}),(0,o.applyFilters)("stackable.image-box.edit.panel.image-hover-effects",null,t),g.showProNotice&&(0,i.createElement)(_.ProControlButton,{type:"effect"})),F.line&&(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Line",g.i18n),hasToggle:!1},(0,i.createElement)(_.ColorPaletteControl,{value:P,onChange:e=>a({lineColor:e}),label:(0,d.__)("Color",g.i18n)}),(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Size",g.i18n),min:"0",max:"10",value:I,onChange:e=>a({lineSize:e}),allowReset:!0,placeholder:"box"===n?1:12})),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Subtitle",g.i18n),id:"subtitle",checked:N,onChange:e=>a({showSubtitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("subtitle%s"),"subtitleColor",...(0,s.createResponsiveAttributeNames)("subtitle%sAlign")],toggleAttributeName:"showSubtitle"},(0,i.createElement)(_.TypographyControlHelper,{attrNameTemplate:"subtitle%s",setAttributes:a,blockAttributes:t.attributes,placeholder:e=>.8*e}),(0,i.createElement)(_.ColorPaletteControl,{value:R,onChange:e=>a({subtitleColor:e}),label:(0,d.__)("Subtitle Color",g.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"subtitle%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-image-box-subtitle-align"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Title",g.i18n),id:"title",checked:m,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,s.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,i.createElement)(_.HeadingButtonsControl,{value:h||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,i.createElement)(_.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:h||"h4"}),(0,i.createElement)(_.ColorPaletteControl,{value:r,onChange:e=>a({titleColor:e}),label:(0,d.__)("Title Color",g.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-image-box-title-align"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Description",g.i18n),id:"description",checked:p,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,s.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,i.createElement)(_.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(_.ColorPaletteControl,{value:c,onChange:e=>a({descriptionColor:e}),label:(0,d.__)("Description Color",g.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-image-box-description-align"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,d.__)("Arrow",g.i18n),id:"arrow",checked:$,onChange:e=>a({showArrow:e}),toggleOnSetAttributes:["arrowColor",...(0,s.createResponsiveAttributeNames)("Arrow%sSize"),...(0,s.createResponsiveAttributeNames)("Arrow%sAlign")],toggleAttributeName:"showArrow"},(0,i.createElement)(_.ColorPaletteControl,{value:U,onChange:e=>a({arrowColor:e}),label:(0,d.__)("Color",g.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"Arrow%sSize",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,d.__)("Size",g.i18n),min:"0",max:"50",placeholder:"30",allowReset:!0})),(0,i.createElement)(v.n9,{attrNameTemplate:"Arrow%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,d.__)("Align",g.i18n),className:"ugb--help-tip-image-box-arrow-align"}))))}));class E extends i.Component{constructor(){super(...arguments),this.state={selectedBox:null},this.handleFocusOutside=this.handleFocusOutside.bind(this)}handleFocusOutside(){this.setState({selectedBox:null})}render(){const{className:e,setAttributes:t,attributes:a}=this.props,{columns:l=3,contentAlign:s="",design:c="basic",shadow:m="",imageSize:p="large",imageHoverEffect:h="",showSubtitle:k=!0,showTitle:v=!0,showDescription:y=!0,showArrow:f=!1,titleTag:C="",showOverlay:A=!1,showOverlayHover:T=!0}=a,B=u()([e,"ugb-image-box--v4",`ugb-image-box--columns-${l}`,`ugb-image-box--design-${c}`],(0,o.applyFilters)("stackable.image-box.mainclasses",{[`ugb-image-box--effect-${h}`]:h,"ugb-image-box--with-arrow":f,[`ugb-image-box--align-${s}`]:s},this.props)),x=w(this.props);return(0,i.createElement)(_.BlockContainer.Edit,{className:B,blockProps:this.props,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,l+1).map((e=>{const n=u()(["ugb-image-box__item",`ugb-image-box__item${e}`,"ugb-image-box__box"],(0,o.applyFilters)("stackable.image-box.itemclasses",{[`ugb--shadow-${m}`]:x.columnBackground&&""!==m},this.props,e));return(0,i.createElement)("div",{className:n,key:e,onMouseDown:()=>this.setState({selectedBox:e}),role:"button",tabIndex:"0"},(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__image-wrapper"},(0,i.createElement)(_.ImageUploadPlaceholder,{imageID:a[`image${e}Id`],imageURL:a[`image${e}Url`],imageSize:p,className:"ugb-image-box__box ugb-image-box__image",onRemove:()=>{t({[`image${e}Id`]:"",[`image${e}Url`]:"",[`image${e}FullWidth`]:"",[`image${e}FullHeight`]:"",[`image${e}FullUrl`]:""})},onChange:a=>{t({[`image${e}Id`]:a.id,[`image${e}Url`]:a.url,[`image${e}FullWidth`]:a.sizes.full.width,[`image${e}FullHeight`]:a.sizes.full.height,[`image${e}FullUrl`]:a.sizes.full.url})}})),A&&(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__overlay"}),T&&(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__overlay-hover"}),(0,i.createElement)("div",{className:"ugb-image-box__content"},(k||v)&&(0,i.createElement)("div",{className:"ugb-image-box__header"},k&&(0,i.createElement)(b.RichText,{tagName:"div",className:"ugb-image-box__subtitle",value:a[`subtitle${e}`],onChange:a=>t({[`subtitle${e}`]:a}),placeholder:(0,d.__)("Subtitle",g.i18n),keepPlaceholderOnFocus:!0}),v&&(0,i.createElement)(b.RichText,{tagName:C||"h4",className:"ugb-image-box__title",value:a[`title${e}`],onChange:a=>t({[`title${e}`]:a}),placeholder:(0,d.__)("Title",g.i18n),keepPlaceholderOnFocus:!0})),y&&(0,i.createElement)(b.RichText,{tagName:"p",className:"ugb-image-box__description",value:a[`description${e}`],onChange:a=>t({[`description${e}`]:a}),placeholder:(0,d.__)("Description",g.i18n),keepPlaceholderOnFocus:!0})),f&&(0,i.createElement)("div",{className:"ugb-image-box__arrow"},(0,i.createElement)(r,null)),this.state.selectedBox===e&&(0,i.createElement)(_.UrlInputPopover,{value:a[`link${e}Url`],onChange:a=>t({[`link${e}Url`]:a}),newTab:a[`link${e}NewTab`],noFollow:a[`link${e}NoFollow`],sponsored:a[`link${e}Sponsored`],ugc:a[`link${e}Ugc`],onChangeNewTab:a=>t({[`link${e}NewTab`]:a}),onChangeNoFollow:a=>t({[`link${e}NoFollow`]:a}),onChangeSponsored:a=>t({[`link${e}Sponsored`]:a}),onChangeUgc:a=>t({[`link${e}Ugc`]:a})}))})))})}}const N=(0,x.compose)(f.FI,f.XQ,f.O0,(0,f.Q9)(),(0,f.lX)(["Line%sAlign","Subtitle%sAlign","Title%sAlign","Description%sAlign","Arrow%sAlign"]),(0,f.OB)(T,{editorMode:!0}),(0,f.UY)([[".ugb-image-box__title","title"],[".ugb-image-box__subtitle","subtitle"],[".ugb-image-box__description","description"],[".ugb-image-box__arrow svg","arrow"]]),(0,S.withSelect)(((e,t)=>{(0,s.cacheImageData)(t.attributes.image1Id,e),(0,s.cacheImageData)(t.attributes.image2Id,e),(0,s.cacheImageData)(t.attributes.image3Id,e),(0,s.cacheImageData)(t.attributes.image4Id,e)})),B.withFocusOutside)(E);var R=a(3726),P=a.n(R);const I=(0,x.compose)(f.FI,(0,f.OB)(T))((e=>{const{className:t,attributes:a}=e,{columns:l=2,contentAlign:s="",design:c="basic",titleTag:g="",shadow:d="",showOverlay:m=!1,showOverlayHover:p=!0,showSubtitle:h=!0,showTitle:k=!0,showDescription:v=!0,showArrow:y=!1,imageHoverEffect:f=""}=a,C=u()([t,"ugb-image-box--v4",`ugb-image-box--columns-${l}`,`ugb-image-box--design-${c}`],(0,o.applyFilters)("stackable.image-box.mainclasses",{[`ugb-image-box--effect-${f}`]:f,"ugb-image-box--with-arrow":y,[`ugb-image-box--align-${s}`]:s},e)),A=w(e);return(0,i.createElement)(_.BlockContainer.Save,{className:C,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,l+1).map((t=>{const n=a[`subtitle${t}`],l=a[`title${t}`],s=a[`description${t}`],c=P()(k&&!b.RichText.isEmpty(l)?l:h&&!b.RichText.isEmpty(n)?n:v&&!b.RichText.isEmpty(s)?s:""),_=u()(["ugb-image-box__item",`ugb-image-box__item${t}`,"ugb-image-box__box"],(0,o.applyFilters)("stackable.image-box.itemclasses",{[`ugb--shadow-${d}`]:A.columnBackground&&""!==d},e,t)),f=[];return a[`link${t}NewTab`]&&(f.push("noopener"),f.push("noreferrer")),a[`link${t}NoFollow`]&&f.push("nofollow"),a[`link${t}Sponsored`]&&f.push("sponsored"),a[`link${t}Ugc`]&&f.push("ugc"),(0,i.createElement)("div",{className:_,key:t},a[`image${t}Url`]&&(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__image-wrapper"},(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__image",role:c?"img":void 0,"aria-label":c||void 0})),m&&(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__overlay"}),p&&(0,i.createElement)("div",{className:"ugb-image-box__box ugb-image-box__overlay-hover"}),(0,i.createElement)("div",{className:"ugb-image-box__content"},(h||k)&&(0,i.createElement)("div",{className:"ugb-image-box__header"},h&&!b.RichText.isEmpty(n)&&(0,i.createElement)(b.RichText.Content,{tagName:"div",className:"ugb-image-box__subtitle",value:n}),k&&!b.RichText.isEmpty(l)&&(0,i.createElement)(b.RichText.Content,{tagName:g||"h4",className:"ugb-image-box__title",value:l})),v&&!b.RichText.isEmpty(s)&&(0,i.createElement)(b.RichText.Content,{tagName:"p",className:"ugb-image-box__description",value:s})),y&&(0,i.createElement)("div",{className:"ugb-image-box__arrow"},(0,i.createElement)(r,null)),a[`link${t}Url`]&&(0,i.createElement)("a",{className:"ugb-image-box__overlay-link",href:a[`link${t}Url`],target:a[`link${t}NewTab`]?"_blank":void 0,rel:f.join(" ")||void 0,title:c,"aria-label":c},null))})))})})),$={design:{type:"string",default:"basic"},columns:{type:"number",default:3},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,s.createBorderAttributes)("column%s"),...(0,s.createAllCombinationAttributes)("link%sUrl",{type:"string",default:"",source:"attribute",selector:".ugb-image-box__item%d .ugb-image-box__overlay-link",attribute:"href"},["1","2","3","4"]),...(0,s.createAllCombinationAttributes)("link%s%s",{type:"boolean",default:""},["1","2","3","4"],["NewTab","NoFollow","Sponsored","Ugc"]),...(0,s.createImageAttributes)("image%s",{exclude:["Url","Id","Alt","BlendMode"]}),...(0,s.createImageBackgroundAttributes)("image%s"),imageSize:{type:"string",default:"large"},...(0,s.createAllCombinationAttributes)("image%s%s",{type:"number",default:""},["1","2","3","4"],["Id","FullWidth","FullHeight"]),...(0,s.createAllCombinationAttributes)("image%s%s",{type:"string",default:""},["1","2","3","4"],["Url","FullUrl"]),showOverlay:{type:"boolean",default:!1},...(0,y.yA)("overlay%s"),overlayOpacity:{type:"number",default:.7},showOverlayHover:{type:"boolean",default:!0},...(0,y.yA)("overlayHover%s"),overlayHoverOpacity:{type:"number",default:.7},...(0,s.createResponsiveAttributes)("imageBackground%sHeight",{type:"number",default:""}),imageHoverEffect:{type:"string",default:""},hoverEffect:{type:"string",default:""},lineColor:{type:"string",default:""},lineSize:{type:"number",default:""},...(0,s.createResponsiveAttributes)("Line%sAlign",{type:"string",default:""}),...(0,s.createAllCombinationAttributes)("subtitle%s",{type:"string",source:"html",selector:".ugb-image-box__item%d .ugb-image-box__subtitle",default:(0,d.__)("Subtitle",g.i18n)},["1","2","3","4"]),showSubtitle:{type:"boolean",default:!0},...(0,s.createTypographyAttributes)("subtitle%s"),subtitleColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("title%s",{type:"string",source:"html",selector:".ugb-image-box__item%d .ugb-image-box__title",default:(0,d.__)("Title",g.i18n)},["1","2","3","4"]),showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("description%s",{type:"string",source:"html",selector:".ugb-image-box__item%d .ugb-image-box__description",default:(0,d.__)("Description",g.i18n)},["1","2","3","4"]),showDescription:{type:"boolean",default:!0},...(0,s.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},showArrow:{type:"boolean",default:!1},arrowColor:{type:"string",default:""},...(0,s.createResponsiveAttributes)("Arrow%sSize",{type:"number",default:""}),...(0,s.createResponsiveAttributes)("Arrow%sAlign",{type:"string",default:""}),...(0,s.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Subtitle","Title","Description","Arrow"],["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Subtitle","Title","Line","Description","Arrow"],["","Tablet","Mobile"])},U=JSON.parse('{"name":"ugb/image-box","title":"Image Box","description":"Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var F=a(9467);const{name:L,...M}=U,H={...M,title:M.title+" (v2)",icon:F.ImageBoxIcon,supports:{align:["center","wide","full"],inserter:!g.v2disabledBlocks.includes(L),anchor:!0},attributes:$,example:{attributes:{design:"basic",columns:2,imageSize:"large",image1Id:583,image1FullWidth:1920,image1FullHeight:1277,image2Id:467,image2FullWidth:640,image2FullHeight:853,image1Url:"https://source.unsplash.com/400x300/?shoes",image1FullUrl:"https://source.unsplash.com/400x300/?fashion",image2Url:"https://source.unsplash.com/400x300/?apparel",image2FullUrl:"https://source.unsplash.com/400x300/?accessory",showOverlay:!0,overlayBackgroundColor:"#107a76",overlayBackgroundCustomSizeUnit:"%",overlayTabletBackgroundCustomSizeUnit:"%",overlayMobileBackgroundCustomSizeUnit:"%",overlayOpacity:.5,showOverlayHover:!0,overlayHoverBackgroundColor:"#107a76",overlayHoverBackgroundCustomSizeUnit:"%",overlayHoverTabletBackgroundCustomSizeUnit:"%",overlayHoverMobileBackgroundCustomSizeUnit:"%",overlayHoverOpacity:.7,subtitle1:"Subtitle",subtitle2:"Subtitle",showSubtitle:!0,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",title1:"Title",title2:"Title",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",description1:"Description",description2:"Description",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showArrow:!1,uniqueClass:"ugb-a6dea13",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},deprecated:k,edit:N,save:I,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{paddings:!1,verticalContentAlignImportant:!0},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.image-box.custom-css.default","")}}};(0,o.addFilter)("stackable.image-box.advanced-column-spacing.styles","stackable/image-box/column-height",(e=>(e.desktopTablet["> .ugb-inner-block > .ugb-block-content > *"]={minHeight:void 0},e.tabletOnly["> .ugb-inner-block > .ugb-block-content > *"]={minHeight:void 0},e.mobile["> .ugb-inner-block > .ugb-block-content > *"]={minHeight:void 0},e)))},3540:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>I,settings:()=>U});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.notification.design.no-text-attributes","stackable/notification",(e=>(0,n.omit)(e,["title","description","buttonText"]))),(0,o.addFilter)("stackable.notification.design.filtered-block-attributes","stackable/notification",(e=>({...(0,n.omit)(e,["buttonUrl","buttonNewTab","buttonNoFollow"])})));var i=a(2610),l=a(7545),r=a(7462);a(7294);const s=function(e){return(0,i.createElement)("svg",(0,r.Z)({viewBox:"0 0 28.3 28.3",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.createElement)("path",{d:"M52.4-166.2c3.2 0 3.2-5 0-5s-3.2 5 0 5zM16.8 13.9L26.9 3.8c.6-.6.6-1.5 0-2.1s-1.5-.6-2.1 0L14.7 11.8 4.6 1.7c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l10.1 10.1L2.5 24c-.6.6-.6 1.5 0 2.1.3.3.7.4 1.1.4s.8-.1 1.1-.4l10-10.1 10.1 10.1c.3.3.7.4 1.1.4s.8-.1 1.1-.4c.6-.6.6-1.5 0-2.1L16.8 13.9z"}))};var c=a(4184),u=a.n(c),g=a(78);const d=[{attributes:{text:{source:"html",selector:"p",default:(0,l.descriptionPlaceholder)("long")},color:{type:"string"},textColor:{type:"string"},notifType:{type:"string",default:"success"},dismissible:{type:"boolean",default:!1},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{text:a,color:n,textColor:l,notifType:r,dismissible:c,borderRadius:d=12,shadow:b=3,design:m=""}=e.attributes,p=u()([t,"ugb-notification",`ugb-notification--type-${r}`],(0,o.applyFilters)("stackable.notification.mainclasses_1_17",{"ugb-notification--dismissible":c,[`ugb--shadow-${b}`]:3!==b},m,e)),h={backgroundColor:n,color:l,borderRadius:12!==d?d:void 0};return(0,i.createElement)("div",{className:p,style:h},(0,o.applyFilters)("stackable.notification.save.output.before_1_17",null,m,e),c&&(0,i.createElement)("span",{className:"ugb-notification__close-button",role:"button",tabIndex:"0"},(0,i.createElement)(s,{style:{fill:l}})),(0,i.createElement)(g.RichText.Content,{tagName:"p",style:{color:l},value:a}))},migrate:e=>{const t=e=>(e||"").replace(/\n\.ugb-notification(\s*{)/g,"\n.ugb-notification__item$1").replace(/\n\.ugb-notification p(\s*{)/g,"\n.ugb-notification__description$1");return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),description:e.text,columnBackgroundColor:e.color,iconColor:e.textColor,titleColor:e.textColor,descriptionColor:e.textColor,showTitle:!1,showButton:!1}}}];(0,o.addFilter)("stackable.svg-icon.extract-svg","stackable/notification-2.6",(e=>e.replace(/<span[^>]*ugb-notification__close-button.*?<svg.*?\/svg>.*?<\/span>/,"")));const b=function(e){return(0,i.createElement)("svg",(0,r.Z)({viewBox:"0 0 28.3 28.3",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.createElement)("path",{d:"M52.4-166.2c3.2 0 3.2-5 0-5s-3.2 5 0 5zM16.8 13.9L26.9 3.8c.6-.6.6-1.5 0-2.1s-1.5-.6-2.1 0L14.7 11.8 4.6 1.7c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l10.1 10.1L2.5 24c-.6.6-.6 1.5 0 2.1.3.3.7.4 1.1.4s.8-.1 1.1-.4l10-10.1 10.1 10.1c.3.3.7.4 1.1.4s.8-.1 1.1-.4c.6-.6.6-1.5 0-2.1L16.8 13.9z"}))};var m=a(8423),p=a(4863),h=a.n(p);const k=e=>{const{design:t="basic",showIcon:a=!1,showTitle:n=!0,showDescription:i=!0,showButton:l=!0}=e.attributes;return(0,o.applyFilters)("stackable.notification.show",{columnBorder:!1,columnBackground:"plain"!==t,backgroundColor:"plain"!==t,borderRadius:"plain"!==t,containerBorder:"basic"===t||"large-icon"===t,shadow:"plain"!==t,iconSpacing:a,titleSpacing:n,descriptionSpacing:i,buttonSpacing:l,iconAlign:!0,iconLocation:!1},e)},_={success:"#ffffff",error:"#ffffff",info:"#ffffff",warning:"#424242"},v=e=>{const t=(0,l.__getValue)(e.attributes),a=[],{contentAlign:n="",tabletContentAlign:o="",mobileContentAlign:i="",notifType:r,design:s="basic",columnBackgroundColor:c=""}=e.attributes,u=k(e);a.push({".ugb-notification__item":{borderRadius:"plain"!==s?t("borderRadius","%spx !important"):void 0}}),a.push({...u.columnBackground?(0,m._H)("column%s","ugb-notification__item",e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:g="px",tabletColumnPaddingUnit:d="px",mobileColumnPaddingUnit:b="px"}=e.attributes;a.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${g}`),paddingBottom:t("columnPaddingBottom",`%s${g}`),paddingRight:t("columnPaddingRight",`%s${g}`),paddingLeft:t("columnPaddingLeft",`%s${g}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${d}`),paddingRight:t("tabletColumnPaddingRight",`%s${d}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${d}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${d}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${b}`),paddingRight:t("mobileColumnPaddingRight",`%s${b}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${b}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${b}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-notification__item":(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${g}`),paddingBottom:t("columnPaddingBottom",`%s${g}`),paddingRight:t("columnPaddingRight",`%s${g}`),paddingLeft:t("columnPaddingLeft",`%s${g}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-notification__item":(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${d}`),paddingRight:t("tabletColumnPaddingRight",`%s${d}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${d}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${d}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-notification__item":(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${b}`),paddingRight:t("mobileColumnPaddingRight",`%s${b}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${b}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${b}`)})}}}),u.containerBorder&&a.push({...(0,l.createBorderStyleSet)("container%s",".ugb-notification__item",e.attributes)});const{dismissible:p=!1,dismissibleIconSize:v="",dismissibleIconTabletSize:y="",dismissibleIconMobileSize:f="",dismissibleIconColor:C=""}=e.attributes;p&&a.push({".ugb-notification__item":{paddingRight:v&&v>40?"100px !important":void 0},".ugb-notification__close-button svg":{fill:C?`${C} !important`:void 0},desktopTablet:{".ugb-notification__close-button":{width:v?`${v}px`:void 0,height:v?`${v}px`:void 0}},tabletOnly:{".ugb-notification__close-button":{width:y?`${y}px`:void 0,height:y?`${y}px`:void 0}},mobile:{".ugb-notification__close-button":{width:f?`${f}px`:void 0,height:f?`${f}px`:void 0}}});const{showIcon:A=!1,iconColor:w="",iconAlign:T="",iconTabletAlign:B="",iconMobileAlign:x=""}=e.attributes;if(A){const r=(0,l.whiteIfDarkBlackIfLight)(w,u.columnBackground&&c);a.push({".ugb-notification__icon svg:not(.ugb-custom-icon)":{color:r?`${r} !important`:void 0},".ugb-notification__icon":{marginLeft:""!==T||""!==n?(0,l.appendImportant)((0,l.marginLeftAlign)(T||n)):void 0,marginRight:""!==T||""!==n?(0,l.appendImportant)((0,l.marginRightAlign)(T||n)):void 0,height:t("iconSize","%spx !important"),width:t("iconSize","%spx !important")},tablet:{".ugb-notification__icon":{marginLeft:""!==B||""!==o?(0,l.appendImportant)((0,l.marginLeftAlign)(B||o)):void 0,marginRight:""!==B||""!==o?(0,l.appendImportant)((0,l.marginRightAlign)(B||o)):void 0,height:t("iconTabletSize","%spx !important"),width:t("iconTabletSize","%spx !important")}},mobile:{".ugb-notification__icon":{marginLeft:""!==x||""!==i?(0,l.appendImportant)((0,l.marginLeftAlign)(x||i)):void 0,marginRight:""!==x||""!==i?(0,l.appendImportant)((0,l.marginRightAlign)(x||i)):void 0,height:t("iconMobileSize","%spx !important"),width:t("iconMobileSize","%spx !important")}}}),a.push({...(0,l.createIconStyleSet)("icon%s","ugb-notification__icon",e.attributes)})}const{titleColor:S="",showTitle:E=!0}=e.attributes;if(E){const n=(0,l.whiteIfDarkBlackIfLight)(S,u.columnBackground&&c);a.push({".ugb-notification__title":{...(0,l.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),color:n?`${n} !important`:void 0,textAlign:t("titleAlign","%s !important")},tablet:{".ugb-notification__title":{...(0,l.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-notification__title":{...(0,l.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}})}const{descriptionColor:N="",showDescription:R=!0}=e.attributes;if(R){const n=(0,l.whiteIfDarkBlackIfLight)(N,u.columnBackground&&c);a.push({".ugb-notification__description":{...(0,l.createTypographyStyles)("description%s","desktop",e.attributes),color:n?`${n} !important`:void 0,textAlign:t("descriptionAlign","%s !important")},tablet:{".ugb-notification__description":{...(0,l.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:t("descriptionTabletAlign","%s !important")}},mobile:{".ugb-notification__description":{...(0,l.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:t("descriptionMobileAlign","%s !important")}}})}const{showButton:P=!1,buttonDesign:I="ghost",buttonBackgroundColor:$=""}=e.attributes;if(P){if(a.push({...(0,l.createButtonStyleSet)("button%s","ugb-button",e.attributes)}),!$&&u.columnBackground){const e=c?(0,l.whiteIfDarkBlackIfLight)($,c,"#ffffff","#424242"):"bordered"===s?"#424242":_[r],t=e?"#ffffff"===e?"#424242":"#ffffff":void 0;"basic"===I||""===I?a.push({".ugb-button":{backgroundColor:e||void 0},".ugb-button .ugb-button--inner, .ugb-button.ugb-button--has-icon.ugb-button--has-icon svg":{color:t||void 0},".ugb-button:hover .ugb-button--inner, .ugb-button:hover svg":{color:t||void 0}}):a.push({".ugb-button":{borderColor:e||void 0},".ugb-button .ugb-button--inner, .ugb-button.ugb-button--has-icon.ugb-button--has-icon svg":{color:e||void 0},".ugb-button:hover .ugb-button--inner, .ugb-button:hover svg":{color:e||void 0}})}a.push({".ugb-button-container":{textAlign:t("buttonAlign","%s !important")},tablet:{".ugb-button-container":{textAlign:t("buttonTabletAlign","%s !important")}},mobile:{".ugb-button-container":{textAlign:t("buttonMobileAlign","%s !important")}}})}return u.iconSpacing&&a.push(...(0,l.createResponsiveStyles)(".ugb-notification__icon","icon%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),u.titleSpacing&&a.push(...(0,l.createResponsiveStyles)(".ugb-notification__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),u.descriptionSpacing&&a.push(...(0,l.createResponsiveStyles)(".ugb-notification__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),u.buttonSpacing&&a.push(...(0,l.createResponsiveStyles)(".ugb-button-container","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),h().all(a)};var y=a(7200),f=a(9858),C=a(910),A=a(1414),w=a(7537),T=a(8003),B=a(3749);const x=[{value:"success",label:(0,T.__)("Success",C.i18n)},{value:"error",label:(0,T.__)("Error",C.i18n)},{value:"warning",label:(0,T.__)("Warning",C.i18n)},{value:"info",label:(0,T.__)("Information",C.i18n)}];(0,o.addFilter)("stackable.notification.edit.layouts","default",(e=>[...e,{image:"dist/images/block-notification-basic.1163055.png",label:(0,T.__)("Basic",C.i18n),value:"basic"},{image:"dist/images/block-notification-plain.2867ecb.png",label:(0,T.__)("Plain",C.i18n),value:"plain"},{label:(0,T.__)("Bordered",C.i18n),value:"bordered",image:"dist/images/block-notification-bordered.934d89b.png",premium:!0},{label:(0,T.__)("Outlined",C.i18n),value:"outlined",image:"dist/images/block-notification-outlined.3db360b.png",premium:!0},{label:(0,T.__)("Large Icon",C.i18n),value:"large-icon",image:"dist/images/block-notification-large-icon.3879721.png",premium:!0}])),(0,o.addFilter)("stackable.notification.edit.inspector.layout.before","stackable/notification",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(y.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.notification.edit.layouts",[]),onChange:e=>{a({design:e})}},C.showProNotice&&(0,i.createElement)(y.ProControlButton,null)))})),(0,o.addFilter)("stackable.notification.edit.inspector.style.before","stackable/notification",((e,t)=>{const{setAttributes:a}=t,{titleColor:n,descriptionColor:o,design:r="basic",borderRadius:s="",shadow:c="",showTitle:u=!0,showDescription:g=!0,titleTag:d="",notifType:b,dismissible:m=!1,dismissibleIconColor:p="",columnBorderColor:h="",columnBorderThickness:_="",showButton:v=!0,showIcon:A=!0,iconTop:B="",iconLeft:S=""}=t.attributes,E=k(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("General",C.i18n),initialOpen:!0},(0,i.createElement)(w.SelectControl,{label:(0,T.__)("Notification Type",C.i18n),value:b,options:x.map((e=>{let{value:t,label:a}=e;return{value:t,label:a}})),onChange:e=>{a({notifType:e})}}),(0,i.createElement)(f.QA,{setAttributes:a,blockAttributes:t.attributes})),E.columnBorder&&(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Border",C.i18n),hasToggle:!1},(0,i.createElement)(y.ColorPaletteControl,{value:h,onChange:e=>a({columnBorderColor:e}),label:(0,T.__)("Border Color",C.i18n)}),(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Border Thickness",C.i18n),value:_,onChange:e=>a({columnBorderThickness:e}),min:0,max:20,allowReset:!0,placeholder:"bordered"===r?5:3}),"outlined"===r&&E.borderRadius&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Border Radius",C.i18n),value:s,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"})),E.columnBackground&&(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Container",C.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(y.ButtonIconPopoverControl,{label:(0,T.__)("Background",C.i18n),popoverLabel:(0,T.__)("Background",C.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(y.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),E.containerBorder&&(0,i.createElement)(y.BorderControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes}),E.borderRadius&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Border Radius",C.i18n),value:s,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),E.shadow&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Shadow / Outline",C.i18n),value:c,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(E.iconSpacing||E.titleSpacing||E.descriptionSpacing||E.buttonSpacing)&&(0,i.createElement)(y.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(y.ColumnPaddingControl,{label:(0,T.__)("Paddings",C.i18n),setAttributes:a,attributes:t.attributes}),E.iconSpacing&&(0,i.createElement)(f.n9,{attrNameTemplate:"icon%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Icon",C.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-icon"})),E.titleSpacing&&(0,i.createElement)(f.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Title",C.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),E.descriptionSpacing&&(0,i.createElement)(f.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Description",C.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),E.buttonSpacing&&(0,i.createElement)(f.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Button",C.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Dismissible",C.i18n),id:"dismissible",checked:m,onChange:e=>a({dismissible:e}),toggleOnSetAttributes:[...(0,l.createResponsiveAttributeNames)("dismissibleIcon%sSize"),"dismissibleIconColor"],toggleAttributeName:"dismissible",className:"ugb--help-tip-notification-dismissible"},(0,i.createElement)(f.n9,{attrNameTemplate:"dismissibleIcon%sSize",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,T.__)("Icon Size",C.i18n),min:0,max:50,allowReset:!0,placeholder:"16"})),(0,i.createElement)(y.ColorPaletteControl,{value:p,onChange:e=>a({dismissibleIconColor:e}),label:(0,T.__)("Icon Color",C.i18n)})),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Icon",C.i18n),id:"icon",checked:A,onChange:e=>a({showIcon:e}),toggleOnSetAttributes:["icon",...(0,l.createIconAttributeNames)("icon%s"),...(0,l.createResponsiveAttributeNames)("icon%sAlign")],toggleAttributeName:"showIcon"},(0,i.createElement)(y.IconControlsHelper,{attrNameTemplate:"icon%s",setAttributes:a,blockAttributes:t.attributes,icon:t.attributes.icon,onChangeIcon:e=>a({icon:e}),sizeMax:"large-icon"!==r?300:500,onChangeDesign:!1,onChangeShowBackgroundShape:!1}),E.iconLocation&&(0,i.createElement)(y.FourRangeControl,{label:(0,T.__)("Icon Location",C.i18n),min:-250,max:250,top:B,left:S,onChange:e=>{a({iconTop:e.top||0===e.top?parseInt(e.top,10):"",iconLeft:e.left||0===e.left?parseInt(e.left,10):""})},enableRight:!1,enableBottom:!1}),E.iconAlign&&(0,i.createElement)(f.n9,{attrNameTemplate:"icon%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AlignButtonsControl,{label:(0,T.__)("Align",C.i18n),className:"ugb--help-tip-alignment-icon"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Title",C.i18n),id:"title",checked:u,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,l.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,i.createElement)(y.HeadingButtonsControl,{value:d||"h5",defaultValue:"h5",onChange:e=>a({titleTag:e})}),(0,i.createElement)(y.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:d||"h5"}),(0,i.createElement)(y.ColorPaletteControl,{value:n,onChange:e=>a({titleColor:e}),label:(0,T.__)("Title Color",C.i18n)}),(0,i.createElement)(f.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AlignButtonsControl,{label:(0,T.__)("Align",C.i18n),className:"ugb--help-tip-alignment-title"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Description",C.i18n),id:"description",checked:g,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,l.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,i.createElement)(y.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(y.ColorPaletteControl,{value:o,onChange:e=>a({descriptionColor:e}),label:(0,T.__)("Description Color",C.i18n)}),(0,i.createElement)(f.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AlignButtonsControl,{label:(0,T.__)("Align",C.i18n),className:"ugb--help-tip-alignment-description"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,T.__)("Button",C.i18n),id:"button",checked:v,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,l.createButtonAttributeNames)("button%s"),...(0,l.createResponsiveAttributeNames)("button%sAlign")],toggleAttributeName:"showButton"},(0,i.createElement)(y.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,placeholder:"21"}),(0,i.createElement)(y.ControlSeparator,null),(0,i.createElement)(f.n9,{attrNameTemplate:"button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AlignButtonsControl,{label:(0,T.__)("Align",C.i18n),className:"ugb--help-tip-alignment-button"}))))}));const S=(0,B.compose)(A.FI,A.XQ,A.O0,(0,A.Q9)(),(0,A.lX)(["Icon%sAlign","Title%sAlign","Description%sAlign","Button%sAlign"]),(0,A.OB)(v,{editorMode:!0}),(0,A.UY)([[".ugb-notification__item","column-background"],[".ugb-notification__close-button","dismissible"],[".ugb-notification__icon svg","icon"],[".ugb-notification__title","title"],[".ugb-notification__description","description"],[".ugb-button","button"]]))((e=>{const{className:t,setAttributes:a}=e,{design:n="basic",notifType:r,dismissible:s,shadow:c="",showIcon:d=!1,icon:m="fas-exclamation-triangle",showTitle:p=!0,titleTag:h="h5",title:_="",showDescription:v=!0,description:A="",showButton:w=!0,buttonDesign:B="plain"}=e.attributes,x=u()([t,"ugb-notification--v2",`ugb-notification--design-${n}`,`ugb-notification--type-${r}`],(0,o.applyFilters)("stackable.notification.mainclasses",{"ugb-notification--dismissible":s},e)),S=u()(["ugb-notification__item","ugb-notification--new-icon"],(0,o.applyFilters)("stackable.notification.itemclasses",{[`ugb--shadow-${c}`]:""!==c},e)),E=k(e);return(0,i.createElement)(y.BlockContainer.Edit,{className:x,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:S,backgroundAttrName:"column%s",blockProps:e,showBackground:E.columnBackground},s&&(0,i.createElement)("span",{className:"ugb-notification__close-button",role:"button"},(0,i.createElement)(b,null)),d&&(0,i.createElement)("div",{className:"ugb-notification__icon"},(0,i.createElement)(f.ux,{attrNameTemplate:"icon%s",blockAttributes:e.attributes,value:m,onChange:e=>a({icon:e})})),p&&(0,i.createElement)(g.RichText,{tagName:h||"h5",value:_,className:"ugb-notification__title",placeholder:(0,T.__)("Title for This Block",C.i18n),onChange:e=>a({title:e}),keepPlaceholderOnFocus:!0}),v&&(0,i.createElement)(g.RichText,{tagName:"p",className:"ugb-notification__description",value:A,onChange:e=>a({description:e}),placeholder:(0,l.descriptionPlaceholder)("long"),keepPlaceholderOnFocus:!0}),w&&(0,i.createElement)(f.Hr,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:{...e.attributes,buttonDesign:""!==B?B:"ghost"}})))})})),E=(0,B.compose)(A.FI,(0,A.OB)(v))((e=>{const{className:t}=e,{design:a="basic",notifType:n,dismissible:l,shadow:r="",showIcon:s=!1,icon:c="fas-exclamation-triangle",showTitle:d=!0,titleTag:m="h5",title:p="",showDescription:h=!0,description:_="",showButton:v=!0,buttonSize:C="normal",buttonText:A="",buttonShadow:w=0,buttonHoverEffect:T="",buttonIcon:B="",buttonIconPosition:x="",buttonDesign:S="plain",buttonHoverGhostToNormal:E=!1,buttonNewTab:N=!1,buttonUrl:R="",buttonNoFollow:P=!1,buttonSponsored:I=!1,buttonUgc:$=!1}=e.attributes,U=u()([t,"ugb-notification--v2",`ugb-notification--design-${a}`,`ugb-notification--type-${n}`],(0,o.applyFilters)("stackable.notification.mainclasses",{"ugb-notification--dismissible":l},e)),F=u()(["ugb-notification__item","ugb-notification--new-icon"],(0,o.applyFilters)("stackable.notification.itemclasses",{[`ugb--shadow-${r}`]:""!==r},e)),L=k(e);return(0,i.createElement)(y.BlockContainer.Save,{className:U,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:F,backgroundAttrName:"column%s",blockProps:e,showBackground:L.columnBackground},l&&(0,i.createElement)("span",{className:"ugb-notification__close-button",role:"button",tabIndex:"0"},(0,i.createElement)(b,null)),s&&(0,i.createElement)("div",{className:"ugb-notification__icon"},(0,i.createElement)(f.xo.Content,{attrNameTemplate:"icon%s",blockAttributes:e.attributes,value:c})),d&&!g.RichText.isEmpty(p)&&(0,i.createElement)(g.RichText.Content,{tagName:m||"h5",className:"ugb-notification__title",value:p}),h&&!g.RichText.isEmpty(_)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-notification__description",value:_}),v&&!g.RichText.isEmpty(A)&&(0,i.createElement)(f.df.Content,{size:""!==C?C:"normal",text:A,icon:B,newTab:""!==N&&N,url:R,noFollow:P,sponsored:I,ugc:$,hoverEffect:T,ghostToNormalEffect:E,shadow:w,iconPosition:x,design:""!==S?S:"ghost"})))})})),N={design:{type:"string",default:"basic"},notifType:{type:"string",default:"success"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:3},columnBorderColor:{type:"string",default:""},columnBorderThickness:{type:"number",default:""},...(0,m.yA)("column%s"),...(0,l.createBorderAttributes)("container%s"),dismissible:{type:"boolean",default:!1},...(0,l.createResponsiveAttributes)("dismissibleIcon%sSize",{type:"number",default:""}),dismissibleIconColor:{type:"string",default:""},showIcon:{type:"boolean",default:!1},icon:{type:"string",source:"html",selector:".ugb-notification__icon .ugb-icon-inner-svg,.ugb-notification__item:not(.ugb-notification--new-icon)",default:"fas-exclamation-triangle"},...(0,l.createIconAttributes)("icon%s"),...(0,l.createResponsiveAttributes)("icon%sAlign",{type:"string",default:""}),...(0,l.createAllCombinationAttributes)("icon%s",{type:"number",default:""},["Top","Left"]),title:{source:"html",selector:".ugb-notification__title",default:(0,T.__)("Title for This Block",C.i18n)},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,l.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},...(0,l.createResponsiveAttributes)("title%sAlign",{type:"string",default:""}),description:{source:"html",selector:".ugb-notification__description",default:(0,l.descriptionPlaceholder)("long")},showDescription:{type:"boolean",default:!0},...(0,l.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},...(0,l.createResponsiveAttributes)("description%sAlign",{type:"string",default:""}),showButton:{type:"boolean",default:!0},...(0,l.createButtonAttributes)("button%s",{selector:".ugb-button"}),buttonDesign:{type:"string",default:"ghost"},...(0,l.createResponsiveAttributes)("button%sAlign",{type:"string",default:""}),...(0,l.createResponsiveAttributes)("icon%sBottomMargin",{type:"number",default:""}),...(0,l.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,l.createResponsiveAttributes)("description%sBottomMargin",{type:"number",default:""}),...(0,l.createResponsiveAttributes)("button%sBottomMargin",{type:"number",default:""})},R=JSON.parse('{"name":"ugb/notification","title":"Notification","description":"Show a notice to your readers. People can dismiss the notice to permanently hide it.","category":"stackable-v2","keywords":["Notice","Alert"],"textdomain":"stackable-ultimate-gutenberg-blocks"}');var P=a(9467);const{name:I,...$}=R,U={...$,title:$.title+" (v2)",icon:P.NotificationIcon,attributes:N,example:{attributes:{design:"basic",notifType:"success",shadow:3,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",dismissible:!0,showIcon:!1,title:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",description:"Description for this block. Use this space for describing your block. Any text will do.",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showButton:!0,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",buttonText:"Button text",buttonNewTab:!1,buttonDesign:"ghost",uniqueClass:"ugb-6ab4e13",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%"}},supports:{inserter:!C.v2disabledBlocks.includes(I),anchor:!0},deprecated:d,edit:S,save:E,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{columnGap:!1,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"container-link":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.notification.custom-css.default","")}}};(0,o.addFilter)("stackable.notification.setAttributes","stackable/notification/notifType",(e=>void 0===e.notifType?e:{...e,columnBackgroundColor:"",columnBackgroundColorOpacity:"",iconColor:"",titleColor:"",descriptionColor:"",buttonBackgroundColor:"",columnBorderColor:""})),(0,o.addFilter)("stackable.notification.setAttributes","stackable/notification/opacity",((e,t)=>{const a=e.hasOwnProperty("columnBackgroundColor");if(void 0===e.columnBackgroundColorOpacity&&!a)return e;if(a&&void 0!==e.columnBackgroundColor)return e;const{notifType:n="success",columnBackgroundColor:o=""}=t.attributes;return{...e,columnBackgroundColor:o&&!a?o:{success:"#40ba7b",error:"#d9534f",info:"#2091e1",warning:"#ffdd57"}[n]}}))},2786:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>S,settings:()=>N});var n=a(9467),o=a(8085),i=a(3882);(0,i.addFilter)("stackable.number-box.design.no-text-attributes","stackable/number-box",(e=>(0,o.omit)(e,["num1","num2","num3","title1","title2","title3","description1","description2","description3"])));var l=a(2610),r=a(7545),s=a(8003),c=a(4184),u=a.n(c),g=a(78);const d=[{attributes:{num1:{source:"html",selector:".ugb-number-box__item:nth-of-type(1) .ugb-number-box__number",default:"01"},num2:{source:"html",selector:".ugb-number-box__item:nth-of-type(2) .ugb-number-box__number",default:"02"},num3:{source:"html",selector:".ugb-number-box__item:nth-of-type(3) .ugb-number-box__number",default:"03"},title1:{source:"html",selector:".ugb-number-box__item:nth-of-type(1) .ugb-number-box__title",default:(0,s.__)("Title")},title2:{source:"html",selector:".ugb-number-box__item:nth-of-type(2) .ugb-number-box__title",default:(0,s.__)("Title")},title3:{source:"html",selector:".ugb-number-box__item:nth-of-type(3) .ugb-number-box__title",default:(0,s.__)("Title")},description1:{source:"html",selector:".ugb-number-box__item:nth-of-type(1) .ugb-number-box__description",default:(0,r.descriptionPlaceholder)()},description2:{source:"html",selector:".ugb-number-box__item:nth-of-type(2) .ugb-number-box__description",default:(0,r.descriptionPlaceholder)()},description3:{source:"html",selector:".ugb-number-box__item:nth-of-type(3) .ugb-number-box__description",default:(0,r.descriptionPlaceholder)()},numberColor:{type:"string"},numberBGColor:{type:"string"},titleColor:{type:"string"},descriptionColor:{type:"string"},columns:{type:"number",default:3},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},backgroundColor:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},numberBox:{type:"string"},numberBoxTwo:{type:"string"},numberBoxThree:{type:"string"},name:{type:"string"},nameTwo:{type:"string"},nameThree:{type:"string"},body:{type:"string"},bodyTwo:{type:"string"},bodyThree:{type:"string"},numberBoxColor:{type:"string"},nameColor:{type:"string"},bodyTextColor:{type:"string"}},save:e=>{const{className:t,attributes:a}=e,{numberColor:n,titleColor:s,descriptionColor:c,numberBGColor:d,columns:b=3,design:m="basic",borderRadius:p=12,shadow:h=3,backgroundColor:k}=a,_=u()([t,"ugb-number-box","ugb-number-box--v2",`ugb-number-box--columns-${b}`],(0,i.applyFilters)("stackable.number-box.mainclasses_1_15",{[`ugb-number-box--design-${m}`]:"basic"!==m},m,e));return(0,l.createElement)("div",{className:_},(0,i.applyFilters)("stackable.number-box.save.output.before_1_15",null,m,e),(0,o.range)(1,b+1).map((t=>{const o=a[`num${t}`],b=a[`title${t}`],_=a[`description${t}`],v=u()(["ugb-number-box__item"],(0,i.applyFilters)("stackable.number-box.boxclasses_1_15",{[`ugb--shadow-${h}`]:"plain"!==m&&3!==h},m,e)),y=(0,i.applyFilters)("stackable.number-box.styles_1_15",{box:{borderRadius:"plain"!==m&&12!==p?p:void 0,backgroundColor:"plain"!==m&&k?k:void 0},number:{backgroundColor:d,color:n||(d?(0,r.isDarkColor)(d)?"#ffffff":"#222222":void 0)},title:{color:s||("plain"===m?void 0:k?(0,r.isDarkColor)(k)?"#ffffff":"#222222":void 0)},description:{color:c||("plain"===m?void 0:k?(0,r.isDarkColor)(k)?"#ffffff":"#222222":void 0)}},m,e);return(0,l.createElement)("div",{className:v,style:y.box,key:t},!g.RichText.isEmpty(o)&&(0,l.createElement)(g.RichText.Content,{tagName:"span",className:"ugb-number-box__number",style:y.number,value:o}),(!g.RichText.isEmpty(b)||!g.RichText.isEmpty(_))&&(0,l.createElement)("div",{className:"ugb-number-box__content"},!g.RichText.isEmpty(b)&&(0,l.createElement)(g.RichText.Content,{tagName:"h4",className:"ugb-number-box__title",style:y.title,value:b}),!g.RichText.isEmpty(_)&&(0,l.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-number-box__description",style:y.description,value:_})))})),(0,i.applyFilters)("stackable.number-box.save.output.after_1_15",null,m,e))},migrate:e=>({...e,columns:e.columns?e.columns:3,columnBackgroundColor:e.backgroundColor?e.backgroundColor:void 0,backgroundColor:void 0})}];var b=a(7200),m=a(9858),p=a(1414),h=a(910),k=a(8423);const _=e=>{const{design:t="basic",numberStyle:a="",showNumber:n=!0,showTitle:o=!0,showDescription:l=!0}=e.attributes;return(0,i.applyFilters)("stackable.number-box.show",{backgroundColor:"plain"!==t,borderRadius:"plain"!==t,border:"plain"!==t&&"faded"!==t,shadow:"plain"!==t,numberColor:!0,numberBGColor:("basic"===t||"plain"===t)&&"none"!==a,numberStyle:!0,columnBackground:"plain"!==t,numberSpacing:n&&!["heading","heading2","background","faded"].includes(t),titleSpacing:o,descriptionSpacing:l},e)};var v=a(4863),y=a.n(v);const f=e=>{const t=(0,r.__getValue)(e.attributes),a=[],{design:n="basic",columnBackgroundColor:o=""}=e.attributes,i=_(e);a.push({".ugb-number-box__item":{borderRadius:"plain"!==n?t("borderRadius","%spx !important"):void 0}}),i.border&&a.push({...(0,r.createBorderStyleSet)("column%s",".ugb-number-box__item",e.attributes)}),a.push({...i.columnBackground?(0,k._H)("column%s","ugb-number-box__item",e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:l="px",tabletColumnPaddingUnit:s="px",mobileColumnPaddingUnit:c="px"}=e.attributes;a.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${l}`),paddingBottom:t("columnPaddingBottom",`%s${l}`),paddingRight:t("columnPaddingRight",`%s${l}`),paddingLeft:t("columnPaddingLeft",`%s${l}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${s}`),paddingRight:t("tabletColumnPaddingRight",`%s${s}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${s}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${s}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${c}`),paddingRight:t("mobileColumnPaddingRight",`%s${c}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${c}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${c}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-number-box__item":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${l}`),paddingBottom:t("columnPaddingBottom",`%s${l}`),paddingRight:t("columnPaddingRight",`%s${l}`),paddingLeft:t("columnPaddingLeft",`%s${l}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-number-box__item":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${s}`),paddingRight:t("tabletColumnPaddingRight",`%s${s}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${s}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${s}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-number-box__item":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${c}`),paddingRight:t("mobileColumnPaddingRight",`%s${c}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${c}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${c}`)})}}});const{contentAlign:u="",tabletContentAlign:g="",mobileContentAlign:d="",numberBGColor:b="",numberColor:m="",numberAlign:p="",numberTabletAlign:h="",numberMobileAlign:v="",numberLineHeight:f="",numberTabletLineHeight:C="",numberMobileLineHeight:A="",numberLineHeightUnit:w="em",numberTabletLineHeightUnit:T="em",numberMobileLineHeightUnit:B="em",showNumber:x=!0}=e.attributes;x&&a.push({".ugb-number-box__number":{...(0,r.createTypographyStyles)("number%s","desktop",e.attributes,{important:!0}),backgroundColor:i.numberBGColor?(0,r.appendImportant)(t("numberBGColor")):void 0,color:(0,r.appendImportant)((0,r.whiteIfDarkBlackIfLight)(m,i.numberBGColor&&b)),opacity:t("numberOpacity"),textIndent:"basic"===n||"plain"===n?t("numberLetterSpacing","%spx"):void 0},desktopTablet:{".ugb-number-box__number":{height:i.numberBGColor?(0,r.appendImportant)(t("numberPadding","%sem")):void 0,width:i.numberBGColor?(0,r.appendImportant)(t("numberPadding","%sem")):void 0,lineHeight:(0,r.appendImportant)(i.numberBGColor&&""===f?t("numberPadding","%sem"):t("numberLineHeight",`%s${w}`)),marginLeft:""!==p||""!==u?(0,r.appendImportant)((0,r.marginLeftAlign)(p||u)):void 0,marginRight:""!==p||""!==u?(0,r.appendImportant)((0,r.marginRightAlign)(p||u)):void 0,textAlign:(0,r.appendImportant)(i.numberBGColor?void 0:t("numberAlign")||t("contentAlign"))}},tabletOnly:{".ugb-number-box__number":{...(0,r.createTypographyStyles)("number%s","tablet",e.attributes,{important:!0}),lineHeight:(0,r.appendImportant)(i.numberBGColor&&""===C?t("numberTabletPadding","%sem"):t("numberTabletLineHeight",`%s${T}`)),marginLeft:""!==h||""!==g?(0,r.appendImportant)((0,r.marginLeftAlign)(h)):void 0,marginRight:""!==h||""!==g?(0,r.appendImportant)((0,r.marginRightAlign)(h)):void 0,textAlign:(0,r.appendImportant)(i.numberBGColor?void 0:t("numberTabletAlign")||t("tabletContentAlign")),height:i.numberBGColor?(0,r.appendImportant)(t("numberTabletPadding","%sem")):void 0,width:i.numberBGColor?(0,r.appendImportant)(t("numberTabletPadding","%sem")):void 0}},mobile:{".ugb-number-box__number":{...(0,r.createTypographyStyles)("number%s","mobile",e.attributes,{important:!0}),height:i.numberBGColor?(0,r.appendImportant)(t("numberMobilePadding","%sem")):void 0,width:i.numberBGColor?(0,r.appendImportant)(t("numberMobilePadding","%sem")):void 0,lineHeight:(0,r.appendImportant)(i.numberBGColor&&""===A?t("numberMobilePadding","%sem"):t("numberMobileLineHeight",`%s${B}`)),marginLeft:""!==v||""!==d?(0,r.appendImportant)((0,r.marginLeftAlign)(v)):void 0,marginRight:""!==v||""!==d?(0,r.appendImportant)((0,r.marginRightAlign)(v)):void 0,textAlign:(0,r.appendImportant)(i.numberBGColor?void 0:t("numberMobileAlign")||t("mobileContentAlign"))}}});const{titleColor:S="",showTitle:E=!0}=e.attributes;E&&a.push({".ugb-number-box__title":{...(0,r.createTypographyStyles)("title%s","desktop",e.attributes),color:(0,r.whiteIfDark)(S,i.columnBackground&&o),textAlign:t("titleAlign")},tablet:{".ugb-number-box__title":{...(0,r.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-number-box__title":{...(0,r.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")||t("mobileContentAlign")}}});const{descriptionColor:N="",showDescription:R=!0}=e.attributes;return R&&a.push({".ugb-number-box__description":{...(0,r.createTypographyStyles)("description%s","desktop",e.attributes),color:(0,r.whiteIfDark)(N,i.columnBackground&&o),textAlign:t("descriptionAlign")},tablet:{".ugb-number-box__description":{...(0,r.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:(0,r.appendImportant)(t("descriptionTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-number-box__description":{...(0,r.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:(0,r.appendImportant)(t("descriptionMobileAlign")||t("mobileContentAlign"))}}}),i.numberSpacing&&a.push(...(0,r.createResponsiveStyles)(".ugb-number-box__number","number%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),i.titleSpacing&&a.push(...(0,r.createResponsiveStyles)(".ugb-number-box__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),i.descriptionSpacing&&a.push(...(0,r.createResponsiveStyles)(".ugb-number-box__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),y().all(a)};var C=a(7537),A=a(3749);(0,i.addFilter)("stackable.number-box.edit.layouts","default",(e=>[...e,{image:"dist/images/block-number-box-basic.2a2c1ec.png",label:(0,s.__)("Basic",h.i18n),value:"basic"},{image:"dist/images/block-number-box-plain.8feb9ea.png",label:(0,s.__)("Plain",h.i18n),value:"plain"},{label:(0,s.__)("Background",h.i18n),value:"background",image:"dist/images/block-number-box-background.4606981.png",premium:!0},{label:(0,s.__)("Heading",h.i18n),value:"heading",image:"dist/images/block-number-box-heading.f6e96cb.png",premium:!0},{label:(0,s.sprintf)((0,s._x)("%s %d","Nth Title",h.i18n),(0,s.__)("Heading",h.i18n),2),value:"heading2",image:"dist/images/block-number-box-heading2.635cc76.png",premium:!0},{label:(0,s.__)("Faded",h.i18n),value:"faded",image:"dist/images/block-number-box-faded.7af88a2.png",premium:!0}])),(0,i.addFilter)("stackable.number-box.edit.inspector.layout.before","stackable/number-box",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(b.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,i.applyFilters)("stackable.number-box.edit.layouts",[]),onChange:e=>{a({design:e})}},h.showProNotice&&(0,l.createElement)(b.ProControlButton,null)))})),(0,i.addFilter)("stackable.number-box.edit.inspector.style.before","stackable/number-box",((e,t)=>{const{setAttributes:a}=t,{columns:n,numberColor:o,titleColor:i,descriptionColor:c,numberBGColor:u,design:g="basic",borderRadius:d="",shadow:p="",showNumber:k=!0,showTitle:v=!0,showDescription:y=!0,titleTag:f="",numberStyle:A="",num1:w="",num2:T="",num3:B="",numberOpacity:x=""}=t.attributes,S=_(t);return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("General",h.i18n),initialOpen:!0},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Columns",h.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:3,className:"ugb--help-tip-general-columns",default:2}),(0,l.createElement)(m.QA,{setAttributes:a,blockAttributes:t.attributes})),S.columnBackground&&(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Container",h.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,l.createElement)(b.ButtonIconPopoverControl,{label:(0,s.__)("Background",h.i18n),popoverLabel:(0,s.__)("Background",h.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,l.createElement)(b.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),S.border&&(0,l.createElement)(b.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),S.borderRadius&&(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Border Radius",h.i18n),value:d,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),S.shadow&&(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Shadow / Outline",h.i18n),value:p,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,l.createElement)(b.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,l.createElement)(b.ColumnPaddingControl,{label:(0,s.__)("Paddings",h.i18n),setAttributes:a,attributes:t.attributes}),S.numberSpacing&&(0,l.createElement)(m.n9,{attrNameTemplate:"number%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Number",h.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-number"})),S.titleSpacing&&(0,l.createElement)(m.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Title",h.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),S.descriptionSpacing&&(0,l.createElement)(m.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Description",h.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Number",h.i18n),id:"number",checked:k,onChange:e=>a({showNumber:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("number%s"),"num1","num2","num3",...(0,r.createResponsiveAttributeNames)("number%sPadding"),"numberStyle","numberColor","numberOpacity",...(0,r.createResponsiveAttributeNames)("Number%sAlign")],toggleAttributeName:"showNumber"},(0,l.createElement)(C.TextControl,{label:(0,s.sprintf)((0,s._x)("%s %d %s","Nth Title with description",h.i18n),(0,s.__)("Number",h.i18n),1,(0,s.__)("Label",h.i18n)),value:w,onChange:e=>a({num1:e})}),""!==n&&n>=2&&(0,l.createElement)(C.TextControl,{label:(0,s.sprintf)((0,s._x)("%s %d %s","Nth Title with description",h.i18n),(0,s.__)("Number",h.i18n),2,(0,s.__)("Label",h.i18n)),value:T,onChange:e=>a({num2:e})}),""!==n&&n>=3&&(0,l.createElement)(C.TextControl,{label:(0,s.sprintf)((0,s._x)("%s %d %s","Nth Title with description",h.i18n),(0,s.__)("Number",h.i18n),3,(0,s.__)("Label",h.i18n)),value:B,onChange:e=>a({num3:e})}),(0,l.createElement)(b.TypographyControlHelper,{attrNameTemplate:"number%s",setAttributes:a,blockAttributes:t.attributes,fontSizeProps:{max:"basic"===g||"plain"===g?[150,7]:[500,15],min:[0,1]},placeholder:e=>3*e}),S.numberStyle&&(0,l.createElement)(C.SelectControl,{label:(0,s.__)("Number Shape",h.i18n),options:[{label:(0,s.__)("None",h.i18n),value:"none"},{label:(0,s.__)("Circle",h.i18n),value:""},{label:(0,s.__)("Square",h.i18n),value:"square"}],value:A,onChange:e=>a({numberStyle:e})}),S.numberBGColor&&(0,l.createElement)(m.n9,{attrNameTemplate:"number%sPadding",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Shape Size",h.i18n),min:0,max:5,step:.1,allowReset:!0,placeholder:"2.5"})),S.numberBGColor&&(0,l.createElement)(b.ColorPaletteControl,{value:u,onChange:e=>a({numberBGColor:e}),label:(0,s.__)("Number Background Color",h.i18n)}),S.numberColor&&(0,l.createElement)(b.ColorPaletteControl,{value:o,onChange:e=>a({numberColor:e}),label:(0,s.__)("Number Color",h.i18n)}),(0,l.createElement)(b.AdvancedRangeControl,{label:(0,s.__)("Opacity",h.i18n),min:0,max:1,step:.1,value:x,onChange:e=>a({numberOpacity:e}),allowReset:!0,placeholder:"1.0"}),(0,l.createElement)(m.n9,{attrNameTemplate:"Number%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",h.i18n),className:"ugb--help-tip-alignment-number"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Title",h.i18n),id:"title",checked:v,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,r.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,l.createElement)(b.HeadingButtonsControl,{value:f||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,l.createElement)(b.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:f||"h4"}),(0,l.createElement)(b.ColorPaletteControl,{value:i,onChange:e=>a({titleColor:e}),label:(0,s.__)("Title Color",h.i18n)}),(0,l.createElement)(m.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",h.i18n),className:"ugb--help-tip-alignment-title"}))),(0,l.createElement)(b.PanelAdvancedSettings,{title:(0,s.__)("Description",h.i18n),id:"description",checked:y,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,r.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,l.createElement)(b.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,l.createElement)(b.ColorPaletteControl,{value:c,onChange:e=>a({descriptionColor:e}),label:(0,s.__)("Description Color",h.i18n)}),(0,l.createElement)(m.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(b.AlignButtonsControl,{label:(0,s.__)("Align",h.i18n),className:"ugb--help-tip-alignment-description"}))))}));const w=(0,A.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(),(0,p.lX)(["Number%sAlign","Title%sAlign","Description%sAlign"]),(0,p.OB)(f,{editorMode:!0}),(0,p.UY)([[".ugb-number-box__item","column-background"],[".ugb-number-box__number","number"],[".ugb-number-box__title","title"],[".ugb-number-box__description","description"]]))((e=>{const{className:t,setAttributes:a,attributes:n}=e,{columns:o,design:c="basic",titleTag:d="",shadow:p="",showNumber:k=!0,showTitle:v=!0,showDescription:y=!0,numberStyle:f=""}=e.attributes,C=u()([t,"ugb-number-box--v3",`ugb-number-box--columns-${o}`],(0,i.applyFilters)("stackable.number-box.mainclasses",{[`ugb-number-box--design-${c}`]:"basic"!==c,[`ugb-number-box--number-style-${f}`]:""!==f&&("basic"===c||"plain"===c)},c,e)),A=_(e);return(0,l.createElement)(b.BlockContainer.Edit,{className:C,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,r.range)(1,o+1).map((t=>{const o=n[`num${t}`],b=n[`title${t}`],_=n[`description${t}`],f=u()(["ugb-number-box__item",`ugb-number-box__item${t}`],(0,i.applyFilters)("stackable.number-box.boxclasses",{[`ugb--shadow-${p}`]:"plain"!==c&&""!==p},c,e));return(0,l.createElement)(m.Gc,{className:f,backgroundAttrName:"column%s",blockProps:e,showBackground:A.columnBackground,index:t,key:t},k&&(0,l.createElement)(g.RichText,{tagName:"div",className:"ugb-number-box__number",value:o,onChange:e=>a({[`num${t}`]:e})}),(v||y)&&(0,l.createElement)("div",{className:"ugb-number-box__content"},v&&(0,l.createElement)(g.RichText,{tagName:d||"h4",value:b,className:"ugb-number-box__title",onChange:e=>a({[`title${t}`]:e}),placeholder:(0,s.__)("Title",h.i18n),keepPlaceholderOnFocus:!0}),y&&(0,l.createElement)(g.RichText,{tagName:"p",value:_,className:"ugb-number-box__description",onChange:e=>a({[`description${t}`]:e}),placeholder:(0,r.descriptionPlaceholder)(),keepPlaceholderOnFocus:!0})))})))})})),T=(0,A.compose)(p.FI,(0,p.OB)(f))((e=>{const{className:t,attributes:a}=e,{columns:n=2,design:r="basic",titleTag:s="",shadow:c="",numberStyle:d="",showNumber:p=!0,showTitle:h=!0,showDescription:k=!0}=a,v=u()([t,"ugb-number-box--v3",`ugb-number-box--columns-${n}`],(0,i.applyFilters)("stackable.number-box.mainclasses",{[`ugb-number-box--design-${r}`]:"basic"!==r,[`ugb-number-box--number-style-${d}`]:""!==d&&("basic"===r||"plain"===r)},r,e)),y=_(e);return(0,l.createElement)(b.BlockContainer.Save,{className:v,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,o.range)(1,n+1).map((t=>{const n=a[`num${t}`],o=a[`title${t}`],d=a[`description${t}`],b=u()(["ugb-number-box__item",`ugb-number-box__item${t}`],(0,i.applyFilters)("stackable.number-box.boxclasses",{[`ugb--shadow-${c}`]:"plain"!==r&&""!==c},r,e));return(0,l.createElement)(m.Gc,{className:b,backgroundAttrName:"column%s",blockProps:e,showBackground:y.columnBackground,index:t,key:t},p&&!g.RichText.isEmpty(n)&&(0,l.createElement)(g.RichText.Content,{tagName:"span",className:"ugb-number-box__number",value:n}),(h||k)&&(!g.RichText.isEmpty(o)||!g.RichText.isEmpty(d))&&(0,l.createElement)("div",{className:"ugb-number-box__content"},h&&!g.RichText.isEmpty(o)&&(0,l.createElement)(g.RichText.Content,{tagName:s||"h4",className:"ugb-number-box__title",value:o}),k&&!g.RichText.isEmpty(d)&&(0,l.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-number-box__description",value:d})))})))})})),B={num1:{source:"html",selector:".ugb-number-box__item1 .ugb-number-box__number",default:"01"},num2:{source:"html",selector:".ugb-number-box__item2 .ugb-number-box__number",default:"02"},num3:{source:"html",selector:".ugb-number-box__item3 .ugb-number-box__number",default:"03"},title1:{source:"html",selector:".ugb-number-box__item1 .ugb-number-box__title",default:(0,s.__)("Title",h.i18n)},title2:{source:"html",selector:".ugb-number-box__item2 .ugb-number-box__title",default:(0,s.__)("Title",h.i18n)},title3:{source:"html",selector:".ugb-number-box__item3 .ugb-number-box__title",default:(0,s.__)("Title",h.i18n)},description1:{source:"html",selector:".ugb-number-box__item1 .ugb-number-box__description",default:(0,r.descriptionPlaceholder)()},description2:{source:"html",selector:".ugb-number-box__item2 .ugb-number-box__description",default:(0,r.descriptionPlaceholder)()},description3:{source:"html",selector:".ugb-number-box__item3 .ugb-number-box__description",default:(0,r.descriptionPlaceholder)()},numberColor:{type:"string",default:""},numberBGColor:{type:"string",default:""},titleColor:{type:"string",default:""},descriptionColor:{type:"string",default:""},columns:{type:"number",default:2},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,r.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Number","Title","Description"],["","Tablet","Mobile"]),...(0,k.yA)("column%s"),...(0,r.createBorderAttributes)("column%s"),showNumber:{type:"boolean",default:!0},numberStyle:{type:"string",default:""},numberOpacity:{type:"number",default:""},...(0,r.createTypographyAttributes)("number%s"),...(0,r.createResponsiveAttributes)("number%sPadding",{type:"number",default:""}),...(0,r.createResponsiveAttributes)("number%sBottomMargin",{type:"number",default:""}),showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,r.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""}),...(0,r.createTypographyAttributes)("title%s"),showDescription:{type:"boolean",default:!0},...(0,r.createResponsiveAttributes)("description%sBottomMargin",{type:"number",default:""}),...(0,r.createTypographyAttributes)("description%s"),...(0,r.createAllCombinationAttributes)("Column%s%sColor",{type:"string",default:""},["1","2","3"],["Background","NumberBackground"]),backgroundColor:{type:"string"},numberBox:{type:"string"},numberBoxTwo:{type:"string"},numberBoxThree:{type:"string"},name:{type:"string"},nameTwo:{type:"string"},nameThree:{type:"string"},body:{type:"string"},bodyTwo:{type:"string"},bodyThree:{type:"string"},numberBoxColor:{type:"string"},nameColor:{type:"string"},bodyTextColor:{type:"string"}},x=JSON.parse('{"name":"ugb/number-box","title":"Number Box","description":"Display steps or methods that your users will do in your service.","category":"stackable-v2","keywords":["Steps"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:S,...E}=x,N={...E,title:E.title+" (v2)",icon:n.NumberBoxIcon,attributes:B,example:{attributes:{num1:"01",num2:"02",title1:"Title",title2:"Title",description1:"Description for this block. Use this space for describing your block.",description2:"Description for this block. Use this space for describing your block.",columns:2,design:"basic",columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showNumber:!0,numberLineHeightUnit:"em",numberTabletLineHeightUnit:"em",numberMobileLineHeightUnit:"em",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showDescription:!0,descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",uniqueClass:"ugb-5cb0010",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["center","wide","full"],inserter:!h.v2disabledBlocks.includes(S),anchor:!0},deprecated:d,save:T,edit:w,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{verticalColumnAlign:!0,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,i.applyFilters)("stackable.number-box.custom-css.default","")}}}},2961:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>P,settings:()=>$});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.pricing-box.design.no-text-attributes","stackable/pricing-box",(e=>(0,n.omit)(e,["title1","title2","title3","pricePrefix1","pricePrefix2","pricePrefix3","price1","price2","price3","priceSuffix1","priceSuffix2","priceSuffix3","subPrice1","subPrice2","subPrice3","button1Text","button2Text","button3Text","description1","description2","description3"]))),(0,o.addFilter)("stackable.pricing-box.design.filtered-block-attributes","stackable/pricing-box",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,n.omit)(e,["image1Id",...t&&t.image1Id?["image1Url"]:[],"image2Id",...t&&t.image2Id?["image2Url"]:[],"image3Id",...t&&t.image3Id?["image3Url"]:[],"image1Alt","image2Alt","image3Alt","button1Url","button1NewTab","button1NoFollow","button2Url","button2NewTab","button2NoFollow","button3Url","button3NewTab","button3NoFollow"])}}));var i=a(2610),l=a(257),r=a(7545),s=a(4184),c=a.n(s),u=a(3726),g=a.n(u),d=a(910),b=a(8003),m=a(78);const p={pricingBoxColor:{type:"string"},priceColor:{type:"string"},perMonthLabelColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},buttonDesign:{type:"string",default:"basic"},buttonIcon:{type:"string"},featureListColor:{type:"string"},columns:{type:"number",default:2},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},hoverEffect:{type:"string",default:""},align:{type:"string"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}};[1,2,3].forEach((e=>{const t=1===e?"":e;p[`url${t}`]={type:"string",source:"attribute",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-button`,attribute:"href",default:""},p[`newTab${t}`]={type:"boolean",source:"attribute",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-button`,attribute:"target",default:!1},p[`imageURL${t}`]={type:"string"},p[`imageID${t}`]={type:"string"},p[`imageAlt${t}`]={type:"string"},p[`highlightColor${t}`]={type:"string",default:""},p[`pricingBoxTitle${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-pricing-box__title`,default:(0,b.__)("Title",d.i18n)},p[`price${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-pricing-box__price`,default:`${t}9`},p[`pricePrefix${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-pricing-box__price-prefix`,default:"$"},p[`priceSuffix${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-pricing-box__price-suffix`,default:".00"},p[`perMonthLabel${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-pricing-box__subprice`,default:(0,b.__)("Description",d.i18n)},p[`buttonText${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-button span`,default:(0,b.__)("Button text",d.i18n)},p[`featureList${t}`]={source:"html",selector:`.ugb-pricing-box__item:nth-of-type(${e}) .ugb-pricing-box__description`,default:(0,r.descriptionPlaceholder)("medium")}}));const h=[{attributes:p,save:e=>{const{className:t,attributes:a}=e,{pricingBoxColor:n,priceColor:s,perMonthLabelColor:u,buttonColor:d,buttonTextColor:b,buttonDesign:p,buttonIcon:h,featureListColor:k,columns:_=2,size:v,cornerButtonRadius:y,design:f="basic",borderRadius:C=12,shadow:A=3}=a,w=c()([t,"ugb-pricing-box","ugb-pricing-box--v2",`ugb-pricing-box--columns-${_}`,`ugb-pricing-box--design-${f}`],(0,o.applyFilters)("stackable.pricing-box.mainclasses_1_17_3",{},f,e));return(0,i.createElement)("div",{className:w},(0,o.applyFilters)("stackable.pricing-box.save.output.before_1_17_3",null,f,e),(0,r.range)(1,_+1).map((t=>{const _=1===t?"":t,w=a[`pricingBoxTitle${_}`],T=a[`price${_}`],B=a[`pricePrefix${_}`],x=a[`priceSuffix${_}`],S=a[`perMonthLabel${_}`],E=a[`url${_}`],N=a[`newTab${_}`],R=a[`buttonText${_}`],P=a[`featureList${_}`],I=a[`imageURL${_}`],$=a[`imageAlt${_}`],U=a[`highlightColor${_}`]||"",F=c()(["ugb-pricing-box__item"],(0,o.applyFilters)("stackable.pricing-box.itemclasses_1_17_3",{[`ugb--shadow-${A}`]:"plain"!==f&&3!==A,"ugb-pricing-box--highlighted":"plain"!==f&&U,"ugb-pricing-box--is-dark":!("plain"===f||!U)&&(0,r.isDarkColor)(U)},f,t,e)),L=(0,o.applyFilters)("stackable.pricing-box.styles_1_17_3",{item:{borderRadius:"plain"!==f&&12!==C?C:void 0,backgroundColor:"plain"!==f&&U?U:void 0},title:{color:n},price:{color:s},month:{color:u},description:{color:k}},f,t,e);return(0,i.createElement)("div",{className:F,style:L.item,key:t},(()=>{const a=I&&(0,i.createElement)("div",{className:"ugb-pricing-box__image"},(0,i.createElement)("img",{src:I,alt:g()(w||$)})),n=I&&(0,i.createElement)("div",{className:"ugb-pricing-box__image-bg",style:{backgroundImage:`url(${I})`}}),r=!m.RichText.isEmpty(w)&&(0,i.createElement)(m.RichText.Content,{tagName:"h3",className:"ugb-pricing-box__title",style:L.title,value:w}),s=(!m.RichText.isEmpty(T)||!m.RichText.isEmpty(S))&&(0,i.createElement)("div",{className:"ugb-pricing-box__price-wrapper"},!m.RichText.isEmpty(T)&&(0,i.createElement)("div",{className:"ugb-pricing-box__price-line"},!m.RichText.isEmpty(B)&&(0,i.createElement)(m.RichText.Content,{tagName:"span",className:"ugb-pricing-box__price-prefix",style:L.price,value:B}),(0,i.createElement)(m.RichText.Content,{tagName:"span",className:"ugb-pricing-box__price",style:L.price,value:T}),!m.RichText.isEmpty(x)&&(0,i.createElement)(m.RichText.Content,{tagName:"span",className:"ugb-pricing-box__price-suffix",style:L.price,value:x})),!m.RichText.isEmpty(S)&&(0,i.createElement)(m.RichText.Content,{tagName:"p",className:"ugb-pricing-box__subprice",style:L.month,value:S})),c=R&&!!R.length&&(0,i.createElement)("div",{className:"ugb-pricing-box__button"},(0,i.createElement)(l.YG,{size:v,url:E,newTab:N,color:b,text:R,design:p,icon:h,backgroundColor:d,borderRadius:y})),u=!m.RichText.isEmpty(P)&&(0,i.createElement)(m.RichText.Content,{tagName:"p",className:"ugb-pricing-box__description",style:L.description,value:P}),k={imageComp:a,imageBGComp:n,titleComp:r,priceComp:s,buttonComp:c,descriptionComp:u};return(0,o.applyFilters)("stackable.pricing-box.save.output_1_17_3",(0,i.createElement)(i.Fragment,null,a,r,s,c,u),f,k,t,e)})())})),(0,o.applyFilters)("stackable.pricing-box.save.output.after_1_17_3",null,f,e))},migrate:e=>{const{design:t="basic"}=e;return{...e,titleColor:e.pricingBoxColor,priceColor:e.priceColor,subPriceColor:e.perMonthLabelColor,buttonBackgroundColor:e.buttonColor,descriptionColor:e.featureListColor,buttonSize:e.size,buttonBorderRadius:e.cornerButtonRadius,button1Url:e.url,button2Url:e.url2,button3Url:e.url3,button1NewTab:e.newTab,button2NewTab:e.newTab2,button3NewTab:e.newTab3,image1Url:e.imageURL,image2Url:e.imageURL2,image3Url:e.imageURL3,image1Id:e.imageID,image2Id:e.imageID2,image3Id:e.imageID3,image1Alt:e.imageAlt,image2Alt:e.imageAlt2,image3Alt:e.imageAlt3,column1BackgroundColor:["sectioned","colored"].includes(t)?"":e.highlightColor,column2BackgroundColor:["sectioned","colored"].includes(t)?"":e.highlightColor2,column3BackgroundColor:["sectioned","colored"].includes(t)?"":e.highlightColor3,column1HeaderBackgroundColor:["sectioned","colored"].includes(t)?e.highlightColor:"",column2HeaderBackgroundColor:["sectioned","colored"].includes(t)?e.highlightColor2:"",column3HeaderBackgroundColor:["sectioned","colored"].includes(t)?e.highlightColor3:"",title1:e.pricingBoxTitle,title2:e.pricingBoxTitle2,title3:e.pricingBoxTitle3,price1:e.price,price2:e.price2,price3:e.price3,pricePrefix1:e.pricePrefix,pricePrefix2:e.pricePrefix2,pricePrefix3:e.pricePrefix3,priceSuffix1:e.priceSuffix,priceSuffix2:e.priceSuffix2,priceSuffix3:e.priceSuffix3,subPrice1:e.perMonthLabel,subPrice2:e.perMonthLabel2,subPrice3:e.perMonthLabel3,button1Text:e.buttonText,button2Text:e.buttonText2,button3Text:e.buttonText3,description1:e.featureList,description2:e.featureList2,description3:e.featureList3}}}];var k=a(8423);const _=e=>{const{design:t="basic",showImage:a=!0,showTitle:n=!0,showPrice:i=!0,showSubPrice:l=!0,showButton:r=!0,showDescription:s=!0}=e.attributes;return(0,o.applyFilters)("stackable.pricing-box.show",{columnBackground:"plain"!==t,borderRadius:"plain"!==t,border:"plain"!==t,shadow:"plain"!==t,imageSettings:"sectioned"!==t,imageSpacing:a,titleSpacing:n,priceSpacing:i,subPriceSpacing:l,buttonSpacing:r,descriptionSpacing:s},e)};var v=a(4863),y=a.n(v);const f=e=>{const t=(0,r.__getValue)(e.attributes),a=_(e),{columnBackgroundColor:n="",showImage:o=!0,imageAlign:i="",contentAlign:l="",imageTabletAlign:s="",tabletContentAlign:c="",imageMobileAlign:u="",mobileContentAlign:g=""}=e.attributes,d=[];a.columnBackground&&d.push({".ugb-pricing-box__item":{borderRadius:t("borderRadius","%spx !important")}}),a.border&&d.push({...(0,r.createBorderStyleSet)("column%s",".ugb-pricing-box__item",e.attributes)}),d.push({...a.columnBackground?(0,k._H)("column%s","ugb-pricing-box__item",e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:b="px",tabletColumnPaddingUnit:m="px",mobileColumnPaddingUnit:p="px"}=e.attributes;d.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${b}`),paddingBottom:t("columnPaddingBottom",`%s${b}`),paddingRight:t("columnPaddingRight",`%s${b}`),paddingLeft:t("columnPaddingLeft",`%s${b}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${m}`),paddingRight:t("tabletColumnPaddingRight",`%s${m}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${m}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${m}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${p}`),paddingRight:t("mobileColumnPaddingRight",`%s${p}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${p}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${p}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-pricing-box__item":(0,r.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${b}`),paddingBottom:t("columnPaddingBottom",`%s${b}`),paddingRight:t("columnPaddingRight",`%s${b}`),paddingLeft:t("columnPaddingLeft",`%s${b}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-pricing-box__item":(0,r.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${m}`),paddingRight:t("tabletColumnPaddingRight",`%s${m}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${m}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${m}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-pricing-box__item":(0,r.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${p}`),paddingRight:t("mobileColumnPaddingRight",`%s${p}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${p}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${p}`)})}}}),o&&(d.push({...(0,r.createImageStyleSet)("image%s","ugb-img",e.attributes,{inherit:!1})}),d.push({".ugb-img, .ugb-pricing-box__image":{marginLeft:""!==i||""!==l?(0,r.marginLeftAlign)(i||l)+" !important":void 0,marginRight:""!==i||""!==l?(0,r.marginRightAlign)(i||l)+" !important":void 0},tablet:{".ugb-img, .ugb-pricing-box__image":{marginLeft:""!==s||""!==c?(0,r.marginLeftAlign)(s||c)+" !important":void 0,marginRight:""!==s||""!==c?(0,r.marginRightAlign)(s||c)+" !important":void 0}},mobile:{".ugb-img, .ugb-pricing-box__image":{marginLeft:""!==u||""!==g?(0,r.marginLeftAlign)(u||g)+" !important":void 0,marginRight:""!==u||""!==g?(0,r.marginRightAlign)(u||g)+" !important":void 0}}}));const{titleColor:h="",showTitle:v=!0}=e.attributes;v&&(d.push({".ugb-pricing-box__title":{color:(0,r.whiteIfDark)(h,a.columnBackground&&n)}}),d.push({".ugb-pricing-box__title":{...(0,r.createTypographyStyles)("title%s","desktop",e.attributes),textAlign:t("titleAlign")||t("contentAlign")},tablet:{".ugb-pricing-box__title":{...(0,r.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-pricing-box__title":{...(0,r.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")||t("mobileContentAlign")}}}));const{priceColor:f="",showPrice:C=!0}=e.attributes;if(C){d.push({".ugb-pricing-box__price, .ugb-pricing-box__price-prefix, .ugb-pricing-box__price-suffix":{color:(0,r.whiteIfDark)(f,a.columnBackground&&n)}});const o=t("priceAlign")||t("contentAlign"),i=t("priceTabletAlign")||t("tabletContentAlign"),l=t("priceMobileAlign")||t("mobileContentAlign");d.push({".ugb-pricing-box__price-line":{...(0,r.createTypographyStyles)("price%s","desktop",e.attributes),justifyContent:(0,r.appendImportant)("center"===o?"center":"left"===o?"flex-start":"right"===o?"flex-end":void 0)},tablet:{".ugb-pricing-box__price-line":{...(0,r.createTypographyStyles)("price%s","tablet",e.attributes),justifyContent:(0,r.appendImportant)("center"===i?"center":"left"===i?"flex-start":"right"===i?"flex-end":void 0)}},mobile:{".ugb-pricing-box__price-line":{...(0,r.createTypographyStyles)("price%s","mobile",e.attributes),justifyContent:(0,r.appendImportant)("center"===l?"center":"left"===l?"flex-start":"right"===l?"flex-end":void 0)}}})}const{pricePrefixColor:A="",showPricePrefix:w=!0}=e.attributes;C&&w&&d.push({".ugb-pricing-box__price-prefix":{color:A||void 0,...(0,r.createTypographyStyles)("pricePrefix%s","desktop",e.attributes,{important:!0})},tablet:{".ugb-pricing-box__price-prefix":{...(0,r.createTypographyStyles)("pricePrefix%s","tablet",e.attributes,{important:!0})}},mobile:{".ugb-pricing-box__price-prefix":{...(0,r.createTypographyStyles)("pricePrefix%s","mobile",e.attributes,{important:!0})}}});const{priceSuffixColor:T="",showPriceSuffix:B=!0}=e.attributes;C&&B&&d.push({".ugb-pricing-box__price-suffix":{color:T||void 0,...(0,r.createTypographyStyles)("priceSuffix%s","desktop",e.attributes,{important:!0})},tablet:{".ugb-pricing-box__price-suffix":{...(0,r.createTypographyStyles)("priceSuffix%s","tablet",e.attributes,{important:!0})}},mobile:{".ugb-pricing-box__price-suffix":{...(0,r.createTypographyStyles)("priceSuffix%s","mobile",e.attributes,{important:!0})}}});const{subPriceColor:x="",showSubPrice:S=!0}=e.attributes;S&&(d.push({".ugb-pricing-box__subprice":{color:(0,r.appendImportant)((0,r.whiteIfDark)(x,a.columnBackground&&n))}}),d.push({".ugb-pricing-box__subprice":{...(0,r.createTypographyStyles)("subPrice%s","desktop",e.attributes,{important:!0}),textAlign:t("subPriceAlign")||t("contentAlign")},tablet:{".ugb-pricing-box__subprice":{...(0,r.createTypographyStyles)("subPrice%s","tablet",e.attributes,{important:!0}),textAlign:t("subPriceTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-pricing-box__subprice":{...(0,r.createTypographyStyles)("subPrice%s","mobile",e.attributes,{important:!0}),textAlign:t("subPriceMobileAlign")||t("mobileContentAlign")}}}));const{showButton:E=!0}=e.attributes;E&&(d.push({...(0,r.createButtonStyleSet)("button%s","ugb-button",e.attributes)}),d.push({".ugb-button-container":{textAlign:(0,r.appendImportant)(t("buttonAlign")||t("contentAlign"))},tablet:{".ugb-button-container":{textAlign:(0,r.appendImportant)(t("buttonTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-button-container":{textAlign:(0,r.appendImportant)(t("buttonMobileAlign")||t("mobileContentAlign"))}}}));const{descriptionColor:N="",showDescription:R=!0}=e.attributes;return R&&d.push({".ugb-pricing-box__description":{...(0,r.createTypographyStyles)("description%s","desktop",e.attributes),color:(0,r.whiteIfDark)(N,a.columnBackground&&n),textAlign:(0,r.appendImportant)(t("descriptionAlign")||t("contentAlign"))},tablet:{".ugb-pricing-box__description":{...(0,r.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:(0,r.appendImportant)(t("descriptionTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-pricing-box__description":{...(0,r.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:(0,r.appendImportant)(t("descriptionMobileAlign")||t("mobileContentAlign"))}}}),a.imageSpacing&&d.push(...(0,r.createResponsiveStyles)(".ugb-pricing-box__image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.titleSpacing&&d.push(...(0,r.createResponsiveStyles)(".ugb-pricing-box__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.priceSpacing&&d.push(...(0,r.createResponsiveStyles)(".ugb-pricing-box__price-wrapper","price%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.subPriceSpacing&&d.push(...(0,r.createResponsiveStyles)(".ugb-pricing-box__subprice","subPrice%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.buttonSpacing&&d.push(...(0,r.createResponsiveStyles)(".ugb-pricing-box__button","button%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.descriptionSpacing&&d.push(...(0,r.createResponsiveStyles)(".ugb-pricing-box__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),y().all(d)};var C=a(7200),A=a(9858),w=a(1414),T=a(3749),B=a(3284);(0,o.addFilter)("stackable.pricing-box.edit.layouts","default",(e=>[...e,{image:"dist/images/block-pricing-box-basic.93ea6bb.png",label:(0,b.__)("Basic",d.i18n),value:"basic"},{image:"dist/images/block-pricing-box-plain.8f98d4b.png",label:(0,b.__)("Plain",d.i18n),value:"plain"},{label:(0,b.__)("Compact",d.i18n),value:"compact",image:"dist/images/block-pricing-box-compact.1cecd08.png",premium:!0},{label:(0,b.__)("Colored",d.i18n),value:"colored",image:"dist/images/block-pricing-box-colored.70f7b32.png",premium:!0},{label:(0,b.__)("Sectioned",d.i18n),value:"sectioned",image:"dist/images/block-pricing-box-sectioned.6bfcd8a.png",premium:!0}])),(0,o.addFilter)("stackable.pricing-box.edit.inspector.layout.before","stackable/pricing-box",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(C.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.pricing-box.edit.layouts",[]),onChange:e=>{a({design:e})}},d.showProNotice&&(0,i.createElement)(C.ProControlButton,null)))})),(0,o.addFilter)("stackable.pricing-box.edit.inspector.style.before","stackable/pricing-box",((e,t)=>{const{setAttributes:a}=t,{columns:n,titleColor:l,descriptionColor:s,borderRadius:c="",shadow:u="",showImage:g=!0,showTitle:m=!0,showPricePrefix:p=!0,showPrice:h=!0,showPriceSuffix:k=!0,showSubPrice:v=!0,showDescription:y=!0,titleTag:f="",priceColor:w="",pricePrefixColor:T="",priceSuffixColor:B="",subPriceColor:x="",showButton:S=!0,image1Id:E="",image2Id:N="",image3Id:R=""}=t.attributes,P=_(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("General",d.i18n),initialOpen:!0},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Columns",d.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:3,className:"ugb--help-tip-general-columns",default:2}),(0,i.createElement)(A.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,o.applyFilters)("stackable.pricing-box.edit.inspector.style.general.after",null,t),P.columnBackground&&(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Container",d.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(C.ButtonIconPopoverControl,{label:(0,b.__)("Background",d.i18n),popoverLabel:(0,b.__)("Background",d.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(C.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),P.border&&(0,i.createElement)(C.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),P.borderRadius&&(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Border Radius",d.i18n),value:c,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),P.shadow&&(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Shadow / Outline",d.i18n),value:u,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(C.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(C.ColumnPaddingControl,{label:(0,b.__)("Paddings",d.i18n),setAttributes:a,attributes:t.attributes}),P.imageSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"image%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Image",d.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-pricing-image-spacing"})),P.titleSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Title",d.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-pricing-title-spacing"})),P.priceSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"price%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Price",d.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-pricing-price-spacing"})),P.subPriceSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"subPrice%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Sub Price",d.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-pricing-subprice-spacing"})),P.buttonSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"button%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Button",d.i18n),min:-50,max:100,placeholder:"32",allowReset:!0,className:"ugb--help-tip-pricing-button-spacing"})),P.descriptionSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AdvancedRangeControl,{label:(0,b.__)("Description",d.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-pricing-description-spacing"}))),(0,o.applyFilters)("stackable.pricing-box.edit.inspector.style.column.after",null,t),P.imageSettings&&(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Image",d.i18n),checked:g,onChange:e=>a({showImage:e}),toggleOnSetAttributes:["imageSize","imageShape","imageShapeFlipX","imageShapeFlipY","imageShapeStretch","imageWidth",...(0,r.createResponsiveAttributeNames)("image%sWidth"),"imageBorderRadius","imageShadow","imageBlendMode"],toggleAttributeName:"showImage"},(0,i.createElement)(C.ImageControlsHelper,{attrNameTemplate:"image%s",setAttributes:t.setAttributes,blockAttributes:t.attributes,onChangeImage:!1,onChangeAlt:!1,onChangeBlendMode:!1,onChangeSize:e=>{a({imageSize:e,image1Url:(0,r.getImageUrlFromCache)(E,e||"medium"),image2Url:(0,r.getImageUrlFromCache)(N,e||"medium"),image3Url:(0,r.getImageUrlFromCache)(R,e||"medium")})}}),(0,i.createElement)(C.ControlSeparator,null),(0,i.createElement)(A.n9,{attrNameTemplate:"Image%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AlignButtonsControl,{label:(0,b.__)("Align",d.i18n),className:"ugb--help-tip-pricing-image-align"}))),(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Title",d.i18n),id:"title",checked:m,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("title%s"),"titleTag","titleColor",...(0,r.createResponsiveAttributeNames)("Title%sAlign")],toggleAttributeName:"showTitle"},(0,i.createElement)(C.HeadingButtonsControl,{value:f||"h3",defaultValue:"h3",onChange:e=>a({titleTag:e})}),(0,i.createElement)(C.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:f||"h3"}),(0,i.createElement)(C.ColorPaletteControl,{value:l,onChange:e=>a({titleColor:e}),label:(0,b.__)("Title Color",d.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AlignButtonsControl,{label:(0,b.__)("Align",d.i18n),className:"ugb--help-tip-pricing-title-align"}))),(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Price",d.i18n),id:"price",checked:h,onChange:e=>a({showPrice:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("price%s"),"priceColor",...(0,r.createResponsiveAttributeNames)("Price%sAlign")],toggleAttributeName:"showPrice"},(0,i.createElement)(C.TypographyControlHelper,{attrNameTemplate:"price%s",setAttributes:a,blockAttributes:t.attributes,placeholder:e=>3.5*e}),(0,i.createElement)(C.ColorPaletteControl,{value:w,onChange:e=>a({priceColor:e}),label:(0,b.__)("Text Color",d.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"Price%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AlignButtonsControl,{label:(0,b.__)("Align",d.i18n),className:"ugb--help-tip-pricing-price-align"}))),h&&(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Price Prefix",d.i18n),id:"price-prefix",checked:p,onChange:e=>a({showPricePrefix:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("pricePrefix%s"),"pricePrefixColor"],toggleAttributeName:"showPricePrefix"},(0,i.createElement)(C.TypographyControlHelper,{attrNameTemplate:"pricePrefix%s",setAttributes:a,blockAttributes:t.attributes,onChangeFontFamily:!1,onChangeTextTransform:!1,onChangeLetterSpacing:!1,placeholder:e=>1.2*e}),(0,i.createElement)(C.ColorPaletteControl,{value:T,onChange:e=>a({pricePrefixColor:e}),label:(0,b.__)("Text Color",d.i18n)})),h&&(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Price Suffix",d.i18n),id:"price-suffix",checked:k,onChange:e=>a({showPriceSuffix:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("priceSuffix%s"),"priceSuffixColor"],toggleAttributeName:"showPriceSuffix"},(0,i.createElement)(C.TypographyControlHelper,{attrNameTemplate:"priceSuffix%s",setAttributes:a,blockAttributes:t.attributes,onChangeFontFamily:!1,onChangeTextTransform:!1,onChangeLetterSpacing:!1,placeholder:e=>1.5*e}),(0,i.createElement)(C.ColorPaletteControl,{value:B,onChange:e=>a({priceSuffixColor:e}),label:(0,b.__)("Text Color",d.i18n)})),(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Sub Price",d.i18n),id:"subprice",checked:v,onChange:e=>a({showSubPrice:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("subPrice%s"),"subPriceColor",...(0,r.createResponsiveAttributeNames)("subPrice%sAlign")],toggleAttributeName:"showSubPrice"},(0,i.createElement)(C.TypographyControlHelper,{attrNameTemplate:"subPrice%s",setAttributes:a,blockAttributes:t.attributes,placeholder:e=>.75*e}),(0,i.createElement)(C.ColorPaletteControl,{value:x,onChange:e=>a({subPriceColor:e}),label:(0,b.__)("Text Color",d.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"subPrice%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AlignButtonsControl,{label:(0,b.__)("Align",d.i18n),className:"ugb--help-tip-pricing-subprice-align"}))),(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Button",d.i18n),id:"button",checked:S,onChange:e=>a({showButton:e}),toggleOnSetAttributes:[...(0,r.createButtonAttributeNames)("button%s")],toggleAttributeName:"showButton"},(0,i.createElement)(C.ButtonControlsHelper,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:t.attributes,onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,placeholder:"21"}),(0,i.createElement)(C.ControlSeparator,null),(0,i.createElement)(A.n9,{attrNameTemplate:"button%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AlignButtonsControl,{label:(0,b.__)("Align",d.i18n),className:"ugb--help-tip-pricing-button-align"}))),(0,i.createElement)(C.PanelAdvancedSettings,{title:(0,b.__)("Description",d.i18n),id:"description",checked:y,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,r.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,r.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,i.createElement)(C.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(C.ColorPaletteControl,{value:s,onChange:e=>a({descriptionColor:e}),label:(0,b.__)("Description Color",d.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(C.AlignButtonsControl,{label:(0,b.__)("Align",d.i18n),className:"ugb--help-tip-pricing-button-align"}))))}));const x=(0,T.compose)(w.FI,w.XQ,w.O0,(0,w.Q9)(),(0,w.lX)(["Image%sAlign","Title%sAlign","Price%sAlign","SubPrice%sAlign","Button%sAlign","Description%sAlign"]),(0,w.OB)(f,{editorMode:!0}),(0,w.UY)([[".ugb-pricing-box__header","column-header"],[".ugb-pricing-box__item","column-background"],[".ugb-pricing-box__title","title"],[".ugb-pricing-box__price-prefix","price-prefix"],[".ugb-pricing-box__price","price"],[".ugb-pricing-box__price-suffix","price-suffix"],[".ugb-pricing-box__subprice","subprice"],[".ugb-button","button"],[".ugb-pricing-box__description","description"]]),(0,B.withSelect)(((e,t)=>{(0,r.cacheImageData)(t.attributes.image1Id,e),(0,r.cacheImageData)(t.attributes.image2Id,e),(0,r.cacheImageData)(t.attributes.image3Id,e)})))((e=>{const{className:t,setAttributes:a,attributes:l}=e,{columns:s=3,imageSize:u,imageShadow:g="",imageShape:p="",imageShapeStretch:h=!1,design:k="basic",shadow:v="",titleTag:y="",showImage:f=!0,showTitle:w=!0,showPrice:T=!0,showPricePrefix:B=!0,showPriceSuffix:x=!0,showSubPrice:S=!0,showButton:E=!0,showDescription:N=!0,buttonIcon:R=""}=l,P=c()([t,"ugb-pricing-box--v3",`ugb-pricing-box--columns-${s}`,`ugb-pricing-box--design-${k}`],(0,o.applyFilters)("stackable.pricing-box.mainclasses",{},e)),I=_(e);return(0,i.createElement)(C.BlockContainer.Edit,{className:P,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,s+1).map((t=>{const n=l[`image${t}Url`],s=l[`image${t}Id`],k=l[`image${t}Alt`],_=l[`button${t}Text`],P=l[`title${t}`],$=l[`description${t}`],U=l[`price${t}`],F=l[`pricePrefix${t}`],L=l[`priceSuffix${t}`],M=l[`subPrice${t}`],H=c()(["ugb-pricing-box__item",`ugb-pricing-box__item${t}`],(0,o.applyFilters)("stackable.pricing-box.itemclasses",{[`ugb--shadow-${v}`]:I.columnBackground&&""!==v},e,t)),D=(0,i.createElement)("div",{className:"ugb-pricing-box__image"},(0,i.createElement)(C.ImageUploadPlaceholder,{imageID:s,imageURL:n,imageSize:u,onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:"",[`image${t}Alt`]:"",[`image${t}Width`]:"",[`image${t}Height`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id,[`image${t}Alt`]:e.alt,[`image${t}Width`]:e.width,[`image${t}Height`]:e.height})},render:(0,i.createElement)(A.Ee,{imageId:s,src:n,size:u,shadow:g,shape:l[`image${t}Shape`]||p,shapeStretch:l[`image${t}ShapeStretch`]||h,alt:k})})),O=(0,i.createElement)(C.ImageUploadPlaceholder,{imageID:s,imageURL:n,imageSize:u,className:"ugb-pricing-box__image",onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:"",[`image${t}Alt`]:"",[`image${t}Width`]:"",[`image${t}Height`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id,[`image${t}Alt`]:e.alt,[`image${t}Width`]:e.width,[`image${t}Height`]:e.height})}}),z=(0,i.createElement)(m.RichText,{tagName:y||"h3",className:"ugb-pricing-box__title",value:P,onChange:e=>a({[`title${t}`]:e}),placeholder:(0,b.__)("Title",d.i18n),keepPlaceholderOnFocus:!0}),W=(0,i.createElement)("div",{className:"ugb-pricing-box__price-wrapper"},(0,i.createElement)("div",{className:"ugb-pricing-box__price-line"},B&&(0,i.createElement)(m.RichText,{tagName:"div",className:"ugb-pricing-box__price-prefix",value:F,onChange:e=>a({[`pricePrefix${t}`]:e}),placeholder:"$",keepPlaceholderOnFocus:!0}),(0,i.createElement)(m.RichText,{tagName:"div",className:"ugb-pricing-box__price",value:U,onChange:e=>a({[`price${t}`]:e}),placeholder:"9",keepPlaceholderOnFocus:!0}),x&&(0,i.createElement)(m.RichText,{tagName:"div",className:"ugb-pricing-box__price-suffix",value:L,onChange:e=>a({[`priceSuffix${t}`]:e}),placeholder:".00",keepPlaceholderOnFocus:!0}))),q=(0,i.createElement)(m.RichText,{tagName:"p",className:"ugb-pricing-box__subprice",value:M,onChange:e=>a({[`subPrice${t}`]:e}),placeholder:(0,b.__)("Sub Price",d.i18n),keepPlaceholderOnFocus:!0}),V=(0,i.createElement)("div",{className:"ugb-pricing-box__button"},(0,i.createElement)(A.Hr,{attrNameTemplate:"button%s",setAttributes:a,blockAttributes:e.attributes,text:_,icon:l[`button${t}Icon`]||R,onChange:e=>a({[`button${t}Text`]:e}),onChangeIcon:e=>a({[`button${t}Icon`]:e}),url:l[`button${t}Url`],newTab:l[`button${t}NewTab`],noFollow:l[`button${t}NoFollow`],sponsored:l[`button${t}Sponsored`],ugc:l[`button${t}Ugc`],onChangeUrl:e=>a({[`button${t}Url`]:e}),onChangeNewTab:e=>a({[`button${t}NewTab`]:e}),onChangeNoFollow:e=>a({[`button${t}NoFollow`]:e}),onChangeSponsored:e=>a({[`button${t}Sponsored`]:e}),onChangeUgc:e=>a({[`button${t}Ugc`]:e})})),G=(0,i.createElement)(m.RichText,{tagName:"p",value:$,className:"ugb-pricing-box__description",onChange:e=>a({[`description${t}`]:e}),placeholder:(0,r.descriptionPlaceholder)("short"),keepPlaceholderOnFocus:!0}),j={imageComp:D,imageBgComp:O,titleComp:z,priceComp:W,subPriceComp:q,buttonComp:V,descriptionComp:G};return(0,i.createElement)(A.Gc,{className:H,backgroundAttrName:"column%s",blockProps:e,showBackground:I.columnBackground,index:t,key:t},(0,o.applyFilters)("stackable.pricing-box.edit.content",(0,i.createElement)(i.Fragment,null,f&&D,w&&z,T&&W,S&&q,E&&V,N&&G),e,j,t))})))})})),S=(0,T.compose)(w.FI,(0,w.OB)(f))((e=>{const{className:t,attributes:a}=e,{design:l="basic",columns:r=2,shadow:s="",imageShape:u="",imageShapeStretch:d=!1,showImage:b=!0,showTitle:p=!0,showPricePrefix:h=!0,showPrice:k=!0,showPriceSuffix:v=!0,showSubPrice:y=!0,showButton:f=!0,showDescription:w=!0,imageShadow:T="",titleTag:B="",buttonIcon:x=""}=a,S=c()([t,"ugb-pricing-box--v3",`ugb-pricing-box--columns-${r}`,`ugb-pricing-box--design-${l}`],(0,o.applyFilters)("stackable.pricing-box.mainclasses",{},e)),E=_(e);return(0,i.createElement)(C.BlockContainer.Save,{className:S,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,r+1).map((t=>{const n=a[`image${t}Url`],l=a[`image${t}Id`],r=a[`image${t}Alt`],_=a[`title${t}`],C=a[`description${t}`],S=a[`price${t}`],N=a[`pricePrefix${t}`],R=a[`priceSuffix${t}`],P=a[`subPrice${t}`],I=a[`button${t}Text`],$=c()(["ugb-pricing-box__item",`ugb-pricing-box__item${t}`],(0,o.applyFilters)("stackable.pricing-box.itemclasses",{[`ugb--shadow-${s}`]:E.columnBackground&&""!==s},e,t)),U=n&&(0,i.createElement)("div",{className:"ugb-pricing-box__image"},(0,i.createElement)(A.Ee,{imageId:l,src:n,alt:g()(r||p&&_),shadow:T,shape:a[`image${t}Shape`]||u,shapeStretch:a[`image${t}ShapeStretch`]||d})),F=n&&(0,i.createElement)("div",{className:"ugb-pricing-box__image"}),L=!m.RichText.isEmpty(_)&&(0,i.createElement)(m.RichText.Content,{tagName:B||"h3",className:"ugb-pricing-box__title",value:_}),M=!m.RichText.isEmpty(S)&&(0,i.createElement)("div",{className:"ugb-pricing-box__price-wrapper"},!m.RichText.isEmpty(S)&&(0,i.createElement)("div",{className:"ugb-pricing-box__price-line"},h&&!m.RichText.isEmpty(N)&&(0,i.createElement)(m.RichText.Content,{tagName:"span",className:"ugb-pricing-box__price-prefix",value:N}),(0,i.createElement)(m.RichText.Content,{tagName:"span",className:"ugb-pricing-box__price",value:S}),v&&!m.RichText.isEmpty(R)&&(0,i.createElement)(m.RichText.Content,{tagName:"span",className:"ugb-pricing-box__price-suffix",value:R}))),H=!m.RichText.isEmpty(P)&&(0,i.createElement)(m.RichText.Content,{tagName:"p",className:"ugb-pricing-box__subprice",value:P}),D=I&&!m.RichText.isEmpty(I)&&(0,i.createElement)("div",{className:"ugb-pricing-box__button"},(0,i.createElement)(A.Hr.Content,{attrNameTemplate:"button%s",blockAttributes:e.attributes,text:I,icon:a[`button${t}Icon`]||x,url:a[`button${t}Url`],newTab:a[`button${t}NewTab`],noFollow:a[`button${t}NoFollow`],sponsored:a[`button${t}Sponsored`],ugc:a[`button${t}Ugc`]})),O=!m.RichText.isEmpty(C)&&(0,i.createElement)(m.RichText.Content,{tagName:"p",className:"ugb-pricing-box__description",value:C}),z={imageComp:U,imageBgComp:F,titleComp:L,priceComp:M,subPriceComp:H,buttonComp:D,descriptionComp:O};return(0,i.createElement)(A.Gc,{className:$,backgroundAttrName:"column%s",blockProps:e,showBackground:E.columnBackground,index:t,key:t},(0,o.applyFilters)("stackable.pricing-box.save.output",(0,i.createElement)(i.Fragment,null,b&&U,p&&L,k&&M,y&&H,f&&D,w&&O),e,z,t))})))})})),E={design:{type:"string",default:"basic"},columns:{type:"number",default:2},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,k.yA)("column%s"),...(0,r.createBorderAttributes)("column%s"),showImage:{type:"boolean",default:!0},...(0,r.createImageAttributes)("image%s",{exclude:["Url","Id","Alt","BlendMode"]}),...(0,r.createAllCombinationAttributes)("image%sId",{type:"number",default:""},["1","2","3"]),...(0,r.createAllCombinationAttributes)("image%sUrl",{type:"string",default:""},["1","2","3"]),...(0,r.createAllCombinationAttributes)("image%sAlt",{type:"string",default:"",source:"attribute",selector:".ugb-pricing-box__item%d .ugb-pricing-box__image img",attribute:"alt"},["1","2","3"]),...(0,r.createAllCombinationAttributes)("image%sShape",{type:"string",default:""},["1","2","3"]),...(0,r.createAllCombinationAttributes)("image%s%s",{type:"boolean",default:!1},["1","2","3"],["ShapeFlipX","ShapeFlipY","ShapeStretch"]),...(0,r.createAllCombinationAttributes)("image%sHeight",{type:"number",default:""},["","Tablet","Mobile"]),showTitle:{type:"boolean",default:!0},...(0,r.createAllCombinationAttributes)("title%s",{type:"string",source:"html",selector:".ugb-pricing-box__item%d .ugb-pricing-box__title",default:(0,b.__)("Title",d.i18n)},["1","2","3"]),titleTag:{type:"string",default:""},...(0,r.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},showPrice:{type:"boolean",default:!0},showPricePrefix:{type:"boolean",default:!0},showPriceSuffix:{type:"boolean",default:!0},...(0,r.createAllCombinationAttributes)("pricePrefix%s",{type:"string",source:"html",selector:".ugb-pricing-box__item%d .ugb-pricing-box__price-prefix",default:"$"},["1","2","3"]),...(0,r.createTypographyAttributes)("pricePrefix%s"),pricePrefixColor:{type:"string",default:""},...(0,r.createAllCombinationAttributes)("price%s",{type:"string",source:"html",selector:".ugb-pricing-box__item%d .ugb-pricing-box__price",default:"9"},["1","2","3"]),...(0,r.createTypographyAttributes)("price%s"),priceColor:{type:"string",default:""},...(0,r.createAllCombinationAttributes)("priceSuffix%s",{type:"string",source:"html",selector:".ugb-pricing-box__item%d .ugb-pricing-box__price-suffix",default:".00"},["1","2","3"]),...(0,r.createTypographyAttributes)("priceSuffix%s"),priceSuffixColor:{type:"string",default:""},showSubPrice:{type:"boolean",default:!0},...(0,r.createAllCombinationAttributes)("subPrice%s",{type:"string",source:"html",selector:".ugb-pricing-box__item%d .ugb-pricing-box__subprice",default:(0,b.__)("Sub Price",d.i18n)},["1","2","3"]),...(0,r.createTypographyAttributes)("subPrice%s"),subPriceColor:{type:"string",default:""},showButton:{type:"boolean",default:!0},...(0,r.createButtonAttributes)("button%s",{exclude:["Text","Url","NewTab","NoFollow","Sponsored","Ugc"]}),...(0,r.createButtonAttributes)("button1%s",{selector:".ugb-pricing-box__item1 .ugb-button"}),...(0,r.createButtonAttributes)("button2%s",{selector:".ugb-pricing-box__item2 .ugb-button"}),...(0,r.createButtonAttributes)("button3%s",{selector:".ugb-pricing-box__item3 .ugb-button"}),showDescription:{type:"boolean",default:!0},...(0,r.createAllCombinationAttributes)("description%s",{type:"string",source:"html",selector:".ugb-pricing-box__item%d .ugb-pricing-box__description",default:(0,r.descriptionPlaceholder)("short")},["1","2","3"]),...(0,r.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},hoverEffect:{type:"string",default:""},...(0,r.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Image","Title","Price","SubPrice","Button","Description"],["","Tablet","Mobile"]),...(0,r.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Image","Title","Price","SubPrice","Button","Description"],["","Tablet","Mobile"]),...(0,r.createAllCombinationAttributes)("Column%sBackgroundColor",{type:"string",default:""},["1","2","3"]),...(0,r.createAllCombinationAttributes)("Column%sHeaderBackgroundColor",{type:"string",default:""},["1","2","3"])},N=JSON.parse('{"name":"ugb/pricing-box","title":"Pricing Box","description":"Display the different pricing tiers of your business.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var R=a(9467);const{name:P,...I}=N,$={...I,title:I.title+" (v2)",icon:R.PricingBoxIcon,attributes:E,example:{attributes:{design:"basic",columns:2,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showImage:!1,imageSize:"large",image1ShapeFlipX:!1,image1ShapeFlipY:!1,image1ShapeStretch:!1,image2ShapeFlipX:!1,image2ShapeFlipY:!1,image2ShapeStretch:!1,image3ShapeFlipX:!1,image3ShapeFlipY:!1,image3ShapeStretch:!1,showTitle:!0,title1:"Title",title2:"Title",titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showPrice:!0,showPricePrefix:!0,showPriceSuffix:!0,pricePrefix1:"$",pricePrefix2:"$",pricePrefixLineHeightUnit:"em",pricePrefixTabletLineHeightUnit:"em",pricePrefixMobileLineHeightUnit:"em",price1:"9",price2:"9",priceLineHeightUnit:"em",priceTabletLineHeightUnit:"em",priceMobileLineHeightUnit:"em",priceSuffix1:".00",priceSuffix2:".00",priceSuffixLineHeightUnit:"em",priceSuffixTabletLineHeightUnit:"em",priceSuffixMobileLineHeightUnit:"em",showSubPrice:!0,subPrice1:"Sub Price",subPrice2:"Sub Price",subPriceLineHeightUnit:"em",subPriceTabletLineHeightUnit:"em",subPriceMobileLineHeightUnit:"em",showButton:!0,buttonLineHeightUnit:"em",buttonTabletLineHeightUnit:"em",buttonMobileLineHeightUnit:"em",button1LineHeightUnit:"em",button1TabletLineHeightUnit:"em",button1MobileLineHeightUnit:"em",button1Text:"Button text",button1NewTab:!1,button2LineHeightUnit:"em",button2TabletLineHeightUnit:"em",button2MobileLineHeightUnit:"em",button2Text:"Button text",button2NewTab:!1,button3LineHeightUnit:"em",button3TabletLineHeightUnit:"em",button3MobileLineHeightUnit:"em",button3NewTab:!1,showDescription:!0,description1:"Description for this block. Place your content here.",description2:"Description for this block. Place your content here.",descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",uniqueClass:"ugb-3cd833d",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["wide"],inserter:!d.v2disabledBlocks.includes(P),anchor:!0},deprecated:h,edit:x,save:S,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{verticalColumnAlign:!0,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,o.applyFilters)("stackable.pricing-box.custom-css.default","")}}};(0,o.addFilter)("stackable.pricing-box.setAttributes","stackable/pricing-box/imageShape",(e=>void 0!==e.imageShape?{...e,image1Shape:"",image2Shape:"",image3Shape:"",image1ShapeFlipX:"",image1ShapeFlipY:"",image1ShapeStretch:"",image2ShapeFlipX:"",image2ShapeFlipY:"",image2ShapeStretch:"",image3ShapeFlipX:"",image3ShapeFlipY:"",image3ShapeStretch:""}:void 0!==e.imageShapeFlipX?{...e,image1ShapeFlipX:"",image2ShapeFlipX:"",image3ShapeFlipX:""}:void 0!==e.imageShapeFlipY?{...e,image1ShapeFlipY:"",image2ShapeFlipY:"",image3ShapeFlipY:""}:void 0!==e.imageShapeStretch?{...e,image1ShapeStretch:"",image2ShapeStretch:"",image3ShapeStretch:""}:void 0!==e.columnBackgroundColor||void 0!==e.columnBackgroundColorType?{...e,column1BackgroundColor:"",column2BackgroundColor:"",column3BackgroundColor:""}:e))},3148:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>C,settings:()=>w});var n=a(2610),o=a(7462);a(7294);const i={"wave-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"wave-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"wave-3":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"curve-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"curve-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"curve-3":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"slant-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.createElement)("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}))},"slant-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.createElement)("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}))},"rounded-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))},"rounded-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,n.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"}))}},l={"wave-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"wave-1-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"wave-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"wave-2-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"wave-3":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"wave-3-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"curve-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"curve-1-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"curve-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"curve-2-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"curve-3":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"curve-3-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"slant-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"slant-1-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.createElement)("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}))},"slant-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"slant-2-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.createElement)("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}))},"rounded-1":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"rounded-1-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))},"rounded-2":function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,n.createElement)("filter",{id:"rounded-2-shadow_svg__a"},(0,n.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,n.createElement)("feComponentTransfer",null,(0,n.createElement)("feFuncA",{type:"linear",slope:.4})),(0,n.createElement)("feMerge",null,(0,n.createElement)("feMergeNode",null),(0,n.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,n.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"}))}};var r=a(3882),s=a(4184),c=a.n(s);const u=[{attributes:{align:{type:"string",default:"full"},design:{type:"string",default:"wave-1"},height:{type:"number",default:200},flipVertically:{type:"boolean",default:!1},flipHorizontally:{type:"boolean",default:!1},backgroundColor:{type:"string",default:""},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingBottom:{type:"number",default:0},layer1Color:{type:"string",default:""},layer1Width:{type:"number",default:1},layer1Flip:{type:"boolean",default:!1},layer1Shadow:{type:"boolean",default:!1},layer2:{type:"boolean",default:!1},layer2Color:{type:"string",default:""},layer2Height:{type:"number",default:1},layer2Width:{type:"number",default:1},layer2Flip:{type:"boolean",default:!1},layer2Opacity:{type:"number",default:.5},layer3:{type:"boolean",default:!1},layer3Color:{type:"string",default:""},layer3Height:{type:"number",default:1},layer3Width:{type:"number",default:1},layer3Flip:{type:"boolean",default:!1},layer3Opacity:{type:"number",default:.5},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{height:a,design:o="wave-1",marginTop:s=0,marginBottom:u=0,paddingTop:g=0,paddingBottom:d=0,backgroundColor:b="",flipVertically:m=!1,flipHorizontally:p=!1,layer1Color:h="",layer1Width:k=1,layer1Flip:_=!1,layer1Shadow:v=!1}=e.attributes,y=c()([t,"ugb-separator",`ugb-separator--design-${o}`],(0,r.applyFilters)("stackable.separator.mainclasses",{"ugb-separator--flip-vertical":m,"ugb-separator--flip-horizontal":p},o,e)),f={backgroundColor:b||void 0,marginTop:s-1+"px",marginBottom:u-1+"px"},C={height:`${d}px`,background:h||void 0},A={height:`${g}px`,background:b||void 0},w={height:a+"px"},T={fill:h||void 0,transform:k?`scaleX(${k})`:void 0};_&&(T.transform=T.transform?`${T.transform} scaleX(-1)`:"scaleX(-1)");const B=i[o],x=l[o];return(0,n.createElement)("div",{className:y,style:f,"aria-hidden":"true"},(0,r.applyFilters)("stackable.separator.save.output.before_1_15",null,o,e),(0,n.createElement)("div",{className:"ugb-separator__top-pad",style:A}),(0,n.createElement)("div",{className:"ugb-separator__svg-wrapper",style:w},(0,n.createElement)("div",{className:"ugb-separator__svg-inner"},v&&(0,n.createElement)(x,{preserveAspectRatio:"none",style:T}),(0,n.createElement)(B,{preserveAspectRatio:"none",style:T}),(0,r.applyFilters)("stackable.separator.save.output.layers_1_15",null,o,e))),(0,n.createElement)("div",{className:"ugb-separator__bottom-pad",style:C}))}}];var g=a(7200),d=a(910),b=a(8003);d.showProNotice&&(0,r.addFilter)("stackable.separator.edit.inspector.style.after","stackable/separator",(e=>(0,n.createElement)(n.Fragment,null,e,(0,n.createElement)(g.PanelAdvancedSettings,{initialOpen:!1,title:(0,b.sprintf)((0,b._x)("%s %d","Nth Title",d.i18n),(0,b.__)("Layer",d.i18n),2),className:"ugb--help-tip-separator-layer2"},(0,n.createElement)(g.ProControl,{title:(0,b.__)("Say Hello to Gorgeous Separators 👋",d.i18n),description:(0,b.__)("Add a second layer to this separator and make it look even sweeter. This feature is only available on Stackable Premium",d.i18n)})),(0,n.createElement)(g.PanelAdvancedSettings,{initialOpen:!1,title:(0,b.sprintf)((0,b._x)("%s %d","Nth Title",d.i18n),(0,b.__)("Layer",d.i18n),3),className:"ugb--help-tip-separator-layer3"},(0,n.createElement)(g.ProControl,{title:(0,b.__)("Say Hello to Gorgeous Separators 👋",d.i18n),description:(0,b.__)("Add a third layer to this separator and make it look even sweeter. This feature is only available on Stackable Premium",d.i18n)})))));var m=a(1414),p=a(7545);const h=e=>{const t=(0,p.__getValue)(e.attributes),{backgroundColor:a="",layer1Color:n="",layer1Width:o=1,layer1Flip:i=!1,marginTop:l=0,marginBottom:r=0,marginUnit:s="px",tabletMarginTop:c="",tabletMarginBottom:u="",tabletMarginUnit:g="px",mobileMarginTop:d="",mobileMarginBottom:b="",mobileMarginUnit:m="px",paddingTop:h=0,paddingBottom:k=0,paddingUnit:_="px",tabletPaddingTop:v="",tabletPaddingBottom:y="",tabletPaddingUnit:f="px",mobilePaddingTop:C="",mobilePaddingBottom:A="",mobilePaddingUnit:w="px"}=e.attributes,T=void 0!==e.mergeBlocks;return{".ugb-separator":{backgroundColor:a||void 0,marginTop:`${l-1+(T?-14:0)}${s} !important`,marginBottom:`${r-1+(T?-14:0)}${s} !important`},".ugb-separator__bottom-pad":{height:(0,p.appendImportant)(""!==k?`${k}${_}`:void 0),background:n||void 0},".ugb-separator__top-pad":{height:(0,p.appendImportant)(""!==h?`${h}${_}`:void 0),background:a||void 0},".ugb-separator__shadow, .ugb-separator__layer-1":{fill:n||void 0,transform:(()=>{let e=o?`scaleX(${o})`:void 0;return i&&(e=e?`${e} scaleX(-1)`:"scaleX(-1)"),e})()},desktopTablet:{".ugb-separator__svg-wrapper":{height:(0,p.appendImportant)(t("height","%spx"))}},tabletOnly:{".ugb-separator__svg-wrapper":{height:(0,p.appendImportant)(t("tabletHeight","%spx"))}},tablet:{".ugb-separator":{marginTop:`${c-1}${g} !important`,marginBottom:`${u-1}${g} !important`},".ugb-separator__bottom-pad":{height:(0,p.appendImportant)(""!==y?`${y}${f}`:void 0)},".ugb-separator__top-pad":{height:(0,p.appendImportant)(""!==v?`${v}${f}`:void 0)}},mobile:{".ugb-separator__svg-wrapper":{height:(0,p.appendImportant)(t("mobileHeight","%spx"))},".ugb-separator":{marginTop:`${d-1}${m} !important`,marginBottom:`${b-1}${m} !important`},".ugb-separator__bottom-pad":{height:(0,p.appendImportant)(""!==A?`${A}${w}`:void 0)},".ugb-separator__top-pad":{height:(0,p.appendImportant)(""!==C?`${C}${w}`:void 0)}}}};var k=a(3749);(0,r.addFilter)("stackable.separator.edit.inspector.layout.excludeDesigns","default",(e=>[...e,"straight-1"])),(0,r.addFilter)("stackable.separator.edit.inspector.layout.before","stackable/separator",((e,t)=>{const{setAttributes:a}=t,{design:o="wave-1"}=t.attributes;return(0,n.createElement)(n.Fragment,null,e,(0,n.createElement)(g.DesignPanelBody,null,(0,n.createElement)(g.DesignSeparatorControl,{onChange:e=>a({design:e}),selected:o,excludeDesigns:(0,r.applyFilters)("stackable.separator.edit.inspector.layout.excludeDesigns",[])})))})),(0,r.addFilter)("stackable.separator.edit.inspector.style.before","stackable/separator",((e,t)=>{const{setAttributes:a}=t,{height:o,tabletHeight:i="",mobileHeight:l="",marginTop:r=0,marginBottom:s=0,marginUnit:c="px",tabletMarginTop:u="",tabletMarginBottom:m="",tabletMarginUnit:p="px",mobileMarginTop:h="",mobileMarginBottom:k="",mobileMarginUnit:_="px",backgroundColor:v="",flipVertically:y=!1,flipHorizontally:f=!1,layer1Color:C="",layer1Width:A=1,layer1Flip:w=!1,layer1Shadow:T=!1,paddingTop:B=0,paddingBottom:x=0,paddingUnit:S="px",tabletPaddingTop:E="",tabletPaddingBottom:N="",tabletPaddingUnit:R="px",mobilePaddingTop:P="",mobilePaddingBottom:I="",mobilePaddingUnit:$="px"}=t.attributes;return(0,n.createElement)(n.Fragment,null,e,(0,n.createElement)(g.PanelAdvancedSettings,{title:(0,b.__)("Separator",d.i18n),id:"separator"},(0,n.createElement)(g.ColorPaletteControl,{label:(0,b.__)("Separator Color",d.i18n),value:C,onChange:e=>a({layer1Color:e})}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Separator Width",d.i18n),value:A,min:"1",max:"4",step:"0.1",onChange:e=>a({layer1Width:e}),allowReset:!0,placeholder:"1",defaultValue:1,className:"ugb--help-tip-separator-width"}),(0,n.createElement)(g.AdvancedToggleControl,{label:(0,b.__)("Flip Horizontally",d.i18n),checked:w,onChange:e=>a({layer1Flip:e})}),(0,n.createElement)(g.AdvancedToggleControl,{label:(0,b.__)("Shadow",d.i18n),checked:T,onChange:e=>a({layer1Shadow:e}),className:"ugb--help-tip-separator-shadow"})),(0,n.createElement)(g.PanelAdvancedSettings,{title:(0,b.__)("General",d.i18n),initialOpen:!1},(0,n.createElement)(g.WhenResponsiveScreen,{screen:"desktop"},(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Height",d.i18n),value:o,min:"30",max:"400",onChange:e=>{t.setAttributes({height:e})},allowReset:!0,placeholder:"200",defaultValue:200})),(0,n.createElement)(g.WhenResponsiveScreen,{screen:"tablet"},(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Height",d.i18n),value:i,min:"30",max:"400",onChange:e=>{t.setAttributes({tabletHeight:e})},allowReset:!0})),(0,n.createElement)(g.WhenResponsiveScreen,{screen:"mobile"},(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Height",d.i18n),value:l,min:"30",max:"400",onChange:e=>{t.setAttributes({mobileHeight:e})},allowReset:!0})),(0,n.createElement)(g.AdvancedToggleControl,{label:(0,b.__)("Flip Vertically",d.i18n),checked:y,onChange:e=>a({flipVertically:e})}),(0,n.createElement)(g.AdvancedToggleControl,{label:(0,b.__)("Flip Horizontally",d.i18n),checked:f,onChange:e=>a({flipHorizontally:e})}),(0,n.createElement)(g.ColorPaletteControl,{label:(0,b.__)("Background Color",d.i18n),value:v,onChange:e=>a({backgroundColor:e})})),(0,n.createElement)(g.PanelAdvancedSettings,{title:(0,b.__)("Spacing",d.i18n),initialOpen:!1},(0,n.createElement)(g.WhenResponsiveScreen,{screen:"desktop"},(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Padding Top",d.i18n),value:B,min:"0",max:"400",onChange:e=>a({paddingTop:e}),units:["px","em"],unit:S,onChangeUnit:e=>a({paddingUnit:e}),allowReset:!0,placeholder:"0"}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Padding Bottom",d.i18n),value:x,min:"0",max:"400",onChange:e=>a({paddingBottom:e}),units:["px","em"],unit:S,onChangeUnit:e=>a({paddingUnit:e}),allowReset:!0,placeholder:"0"}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Margin Top",d.i18n),value:r,min:-o-B-100,max:"400",onChange:e=>a({marginTop:e}),help:(0,b.__)("Use this to pull up/down the separator to the block above it",d.i18n),units:["px","%"],unit:c,onChangeUnit:e=>a({marginUnit:e}),allowReset:!0,placeholder:"0"}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Margin Bottom",d.i18n),value:s,min:-o-x-100,max:"400",onChange:e=>a({marginBottom:e}),help:(0,b.__)("Use this to pull up/down the separator to the block below it",d.i18n),units:["px","%"],unit:c,onChangeUnit:e=>a({marginUnit:e}),allowReset:!0,placeholder:"0"})),(0,n.createElement)(g.WhenResponsiveScreen,{screen:"tablet"},(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Padding Top",d.i18n),value:E,min:"0",max:"400",onChange:e=>a({tabletPaddingTop:e}),units:["px","em"],unit:R,onChangeUnit:e=>a({tabletPaddingUnit:e}),allowReset:!0}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Padding Bottom",d.i18n),value:N,min:"0",max:"400",onChange:e=>a({tabletPaddingBottom:e}),units:["px","em"],unit:R,onChangeUnit:e=>a({tabletPaddingUnit:e}),allowReset:!0}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Margin Top",d.i18n),value:u,min:-i-E-100,max:"400",onChange:e=>a({tabletMarginTop:e}),help:(0,b.__)("Use this to pull up/down the separator to the block above it",d.i18n),units:["px","%"],unit:p,onChangeUnit:e=>a({tabletMarginUnit:e}),allowReset:!0}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Margin Bottom",d.i18n),value:m,min:-i-N-100,max:"400",onChange:e=>a({tabletMarginBottom:e}),help:(0,b.__)("Use this to pull up/down the separator to the block below it",d.i18n),units:["px","%"],unit:p,onChangeUnit:e=>a({tabletMarginUnit:e}),allowReset:!0})),(0,n.createElement)(g.WhenResponsiveScreen,{screen:"mobile"},(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Padding Top",d.i18n),value:P,min:"0",max:"400",onChange:e=>a({mobilePaddingTop:e}),units:["px","em"],unit:$,onChangeUnit:e=>a({mobilePaddingUnit:e}),allowReset:!0}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Padding Bottom",d.i18n),value:I,min:"0",max:"400",onChange:e=>a({mobilePaddingBottom:e}),units:["px","em"],unit:$,onChangeUnit:e=>a({mobilePaddingUnit:e}),allowReset:!0}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Margin Top",d.i18n),value:h,min:-l-P-100,max:"400",onChange:e=>a({mobileMarginTop:e}),help:(0,b.__)("Use this to pull up/down the separator to the block above it",d.i18n),units:["px","%"],unit:_,onChangeUnit:e=>a({mobileMarginUnit:e}),allowReset:!0}),(0,n.createElement)(g.AdvancedRangeControl,{label:(0,b.__)("Margin Bottom",d.i18n),value:k,min:-l-I-100,max:"400",onChange:e=>a({mobileMarginBottom:e}),help:(0,b.__)("Use this to pull up/down the separator to the block below it",d.i18n),units:["px","%"],unit:_,onChangeUnit:e=>a({mobileMarginUnit:e}),allowReset:!0}))))}));const _=(0,k.compose)(m.FI,m.XQ,m.O0,(0,m.Q9)(),(0,m.OB)(h,{editorMode:!0}),(0,m.UY)([[".ugb-separator__layer-1","separator"]]))((e=>{const{className:t}=e,{design:a="wave-1",flipVertically:o=!1,flipHorizontally:i=!1,layer1Shadow:l=!1}=e.attributes,s=c()([t,"ugb-separator--v2",`ugb-separator--design-${a}`],(0,r.applyFilters)("stackable.separator.mainclasses",{"ugb-separator--flip-vertical":o,"ugb-separator--flip-horizontal":i},a,e));return(0,n.createElement)(g.BlockContainer.Edit,{mainClass:!1,className:s,"aria-hidden":"true",blockProps:e,render:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"ugb-separator__top-pad"}),(0,n.createElement)("div",{className:"ugb-separator__svg-wrapper"},(0,n.createElement)(g.Separator,{design:a,shadow:l,className:"ugb-separator__svg-inner"},(0,r.applyFilters)("stackable.separator.edit.output.layers",null,a,e))),(0,n.createElement)("div",{className:"ugb-separator__bottom-pad"}))})})),v=(0,k.compose)(m.FI,(0,m.OB)(h))((e=>{const{className:t}=e,{design:a="wave-1",flipVertically:o=!1,flipHorizontally:i=!1,layer1Shadow:l=!1}=e.attributes,s=c()([t,"ugb-separator--v2",`ugb-separator--design-${a}`],(0,r.applyFilters)("stackable.separator.mainclasses",{"ugb-separator--flip-vertical":o,"ugb-separator--flip-horizontal":i},a,e));return(0,n.createElement)(g.BlockContainer.Save,{mainClass:!1,className:s,"aria-hidden":"true",blockProps:e,render:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"ugb-separator__top-pad"}),(0,n.createElement)("div",{className:"ugb-separator__svg-wrapper"},(0,n.createElement)(g.Separator,{design:a,shadow:l,className:"ugb-separator__svg-inner"},(0,r.applyFilters)("stackable.separator.edit.output.layers",null,a,e))),(0,n.createElement)("div",{className:"ugb-separator__bottom-pad"}))})})),y=JSON.parse('{"name":"ugb/separator","title":"Separator","description":"A fancy separator to be placed between content.","category":"stackable-v2","keywords":["Svg Divider"],"textdomain":"stackable-ultimate-gutenberg-blocks"}');var f=a(9467);const{name:C,...A}=y,w={...A,title:A.title+" (v2)",icon:f.SeparatorIcon,attributes:{align:{type:"string",default:"full"},design:{type:"string",default:"wave-1"},height:{type:"number",default:200},tabletHeight:{type:"number",default:""},mobileHeight:{type:"number",default:""},flipVertically:{type:"boolean",default:!1},flipHorizontally:{type:"boolean",default:!1},backgroundColor:{type:"string",default:""},marginTop:{type:"number",default:0},marginBottom:{type:"number",default:0},tabletMarginTop:{type:"number",default:""},tabletMarginBottom:{type:"number",default:""},mobileMarginTop:{type:"number",default:""},mobileMarginBottom:{type:"number",default:""},paddingTop:{type:"number",default:0},paddingBottom:{type:"number",default:0},tabletPaddingTop:{type:"number",default:""},tabletPaddingBottom:{type:"number",default:""},mobilePaddingTop:{type:"number",default:""},mobilePaddingBottom:{type:"number",default:""},layer1Color:{type:"string",default:""},layer1Width:{type:"number",default:1},layer1Flip:{type:"boolean",default:!1},layer1Shadow:{type:"boolean",default:!1},layer2:{type:"boolean",default:!1},layer2Color:{type:"string",default:""},layer2Height:{type:"number",default:1},layer2Width:{type:"number",default:1},layer2Flip:{type:"boolean",default:!1},layer2Opacity:{type:"number",default:.5},layer2BlendMode:{type:"string",default:""},layer3:{type:"boolean",default:!1},layer3Color:{type:"string",default:""},layer3Height:{type:"number",default:1},layer3Width:{type:"number",default:1},layer3Flip:{type:"boolean",default:!1},layer3Opacity:{type:"number",default:.5}},example:{attributes:{align:"full",design:"wave-1",height:200,flipVertically:!1,flipHorizontally:!1,layer1Width:1,layer1Flip:!1,layer1Shadow:!1,layer2:!1,layer2Height:1,layer2Width:1,layer2Flip:!1,layer2Opacity:.5,layer3:!1,layer3Height:1,layer3Width:1,layer3Flip:!1,layer3Opacity:.5,uniqueClass:"ugb-0a56cba",hideDesktop:!1,hideTablet:!1,hideMobile:!1}},supports:{align:["full"],inserter:!d.v2disabledBlocks.includes(C),anchor:!0},deprecated:u,save:v,edit:_,modules:{"advanced-general":!0,"advanced-responsive":!0,"advanced-block-spacing":{enableMarginRight:!1,enableMarginLeft:!1,enablePaddingRight:!1,enablePaddingLeft:!1,height:!1,width:!1,horizontalContentAlign:!1,verticalContentAlign:!1,modifyStyles:!1,paddingUnits:["px","em"]},"advanced-custom-attributes":!0,"custom-css":{default:(0,r.applyFilters)("stackable.separator.custom-css.default","")}}}},5812:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>T,settings:()=>x});var n=a(9467),o=a(2610),i=a(3882),l=a(4184),r=a.n(l);const s=e=>{const{className:t}=e,{height:a,design:n=""}=e.attributes,l=r()([t,"ugb-spacer"]);return(0,o.createElement)("div",{className:l,style:{height:a+"px"}},(0,i.applyFilters)("stackable.spacer.save.output.before_1_15_4",null,n,e))},c=[{attributes:e=>{const{className:t}=e,{design:a=""}=e.attributes,n=r()([t,"ugb-spacer"]);return(0,o.createElement)("div",{className:n,style:"height:undefinedpx"},(0,i.applyFilters)("stackable.spacer.save.output.before_1_15_4",null,a,e))},save:s},{attributes:{height:{default:50,type:"number"},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:s}];var u=a(7200),g=a(9858),d=a(1414),b=a(7545),m=a(8423),p=a(4863),h=a.n(p);const k=e=>{const t=(0,b.__getValue)(e.attributes),a=[];return a.push({desktopTablet:{".ugb-spacer":{height:(0,b.appendImportant)(t("height",`%s${t("heightUnit")||"px"}`))}},tabletOnly:{".ugb-spacer":{height:(0,b.appendImportant)(t("tabletHeight",`%s${t("tabletHeightUnit")||"px"}`))}},mobile:{".ugb-spacer":{height:(0,b.appendImportant)(t("mobileHeight",`%s${t("mobileHeightUnit")||"px"}`))}}}),a.push({...(0,m._H)("%s","ugb-spacer--inner",e.attributes,{importantBackgroundColor:!0})}),h().all(a)};var _=a(8003),v=a(3749),y=a(910);(0,i.addFilter)("stackable.spacer.edit.inspector.style.before","stackable/spacer",((e,t)=>{const{setAttributes:a}=t,{height:n="",tabletHeight:i="",mobileHeight:l="",heightUnit:r="px",tabletHeightUnit:s="px",mobileHeightUnit:c="px"}=t.attributes;return(0,o.createElement)(o.Fragment,null,e,(0,o.createElement)(u.PanelAdvancedSettings,{title:(0,_.__)("General",y.i18n),initialOpen:!0},(0,o.createElement)(u.WhenResponsiveScreen,null,(0,o.createElement)(u.AdvancedRangeControl,{label:(0,_.__)("Height",y.i18n),units:["px","vh"],min:[1,0],max:[500,100],step:[1,1],allowReset:!0,value:n,unit:r,onChange:e=>a({height:e}),onChangeUnit:e=>a({heightUnit:e}),placeholder:[50]})),(0,o.createElement)(u.WhenResponsiveScreen,{screen:"tablet"},(0,o.createElement)(u.AdvancedRangeControl,{label:(0,_.__)("Height",y.i18n),units:["px","vh"],min:[0,0],max:[500,100],step:[1,1],allowReset:!0,value:i,unit:s,onChange:e=>a({tabletHeight:e}),onChangeUnit:e=>a({tabletHeightUnit:e})})),(0,o.createElement)(u.WhenResponsiveScreen,{screen:"mobile"},(0,o.createElement)(u.AdvancedRangeControl,{label:(0,_.__)("Height",y.i18n),units:["px","vh"],min:[0,0],max:[500,100],step:[1,1],allowReset:!0,value:l,unit:c,onChange:e=>a({mobileHeight:e}),onChangeUnit:e=>a({mobileHeightUnit:e})})),(0,o.createElement)(u.ControlSeparator,null),(0,o.createElement)(u.BackgroundControlsHelper,{attrNameTemplate:"%s",setAttributes:a,blockAttributes:t.attributes})))}));const f=(0,v.compose)(d.FI,d.XQ,d.O0,(0,d.Q9)(["style","advanced"]),(0,d.OB)(k,{editorMode:!0}))((e=>{const t=r()([e.className,"ugb-spacer--v2"]);return(0,o.createElement)(u.BlockContainer.Edit,{className:t,blockProps:e,render:()=>(0,o.createElement)(g.Gc,{className:"ugb-spacer--inner",backgroundAttrName:"%s",blockProps:e})})})),C=(0,v.compose)(d.FI,(0,d.OB)(k))((e=>{const t=r()([e.className,"ugb-spacer--v2"]);return(0,o.createElement)(u.BlockContainer.Save,{className:t,blockProps:e,render:()=>(0,o.createElement)(g.Gc,{className:"ugb-spacer--inner",backgroundAttrName:"%s",blockProps:e})})})),A={...(0,b.createResponsiveAttributes)("%sHeight",{type:"number",default:""}),...(0,b.createResponsiveAttributes)("%sHeightUnit",{type:"string",default:"px"}),...(0,m.yA)("%s")},w=JSON.parse('{"name":"ugb/spacer","title":"Spacer","description":"Sometimes you just need some space.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:T,...B}=w,x={...B,title:B.title+" (v2)",icon:n.SpacerIcon,attributes:A,example:{attributes:{height:48,backgroundCustomSizeUnit:"%",tabletBackgroundCustomSizeUnit:"%",mobileBackgroundCustomSizeUnit:"%",uniqueClass:"ugb-d08049a",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,hideDesktop:!1,hideTablet:!1,hideMobile:!1}},supports:{align:["center","full"],inserter:!y.v2disabledBlocks.includes(T),anchor:!0},deprecated:c,edit:f,save:C,modules:{"block-separators":{enableBringToFront:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"custom-css":{default:(0,i.applyFilters)("stackable.spacer.custom-css.default","")}}};(0,i.addFilter)("stackable.spacer.setAttributes","stackable/spacer/separator-padding",((e,t)=>{const{showTopSeparator:a=!1,showBottomSeparator:n=!1,height:o=""}=t.attributes,i=(a?1:0)+(n?1:0);let l=!1;if(void 0!==e.showTopSeparator&&e.showTopSeparator&&(l=!0),void 0!==e.showBottomSeparator&&e.showBottomSeparator&&(l=!0),l){const t=o||0;0===i&&t<200?(e.height=200,e.heightUnit="px"):1===i&&t<400&&(e.height=400,e.heightUnit="px")}return e}))},5493:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>$,settings:()=>F});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.team-member.design.no-text-attributes","stackable/team-member",(e=>(0,n.omit)(e,["name1","name2","name3","position1","position2","position3","description1","description2","description3"]))),(0,o.addFilter)("stackable.team-member.design.filtered-block-attributes","stackable/team-member",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,n.omit)(e,["image1Id",...t&&t.image1Id?["image1Url"]:[],"image2Id",...t&&t.image2Id?["image2Url"]:[],"image3Id",...t&&t.image3Id?["image3Url"]:[],"image1Alt","image2Alt","image3Alt","showEmail","showFacebook","showImage","showInstagram","showLinkedin","showPinterest","showTwitter","showYoutube","social1FacebookUrl","social1TwitterUrl","social1InstagramUrl","social1PinterestUrl","social1LinkedinUrl","social1YoutubeUrl","social1EmailUrl","social2FacebookUrl","social2TwitterUrl","social2InstagramUrl","social2PinterestUrl","social2LinkedinUrl","social2YoutubeUrl","social2EmailUrl","social3FacebookUrl","social3TwitterUrl","social3InstagramUrl","social3PinterestUrl","social3LinkedinUrl","social3YoutubeUrl","social3EmailUrl"])}}));var i=a(2610),l=a(7545),r=a(4184),s=a.n(r),c=a(910),u=a(8003),g=a(78);const d=[{attributes:{href1:{type:"url"},href2:{type:"url"},href3:{type:"url"},mediaID1:{type:"number"},mediaID2:{type:"number"},mediaID3:{type:"number"},mediaURL1:{type:"string",source:"attribute",selector:".ugb-team-member__item:nth-of-type(1) .ugb-team-member__image",attribute:"data-src",default:""},mediaURL2:{type:"string",source:"attribute",selector:".ugb-team-member__item:nth-of-type(2) .ugb-team-member__image",attribute:"data-src",default:""},mediaURL3:{type:"string",source:"attribute",selector:".ugb-team-member__item:nth-of-type(3) .ugb-team-member__image",attribute:"data-src",default:""},name1:{source:"html",selector:".ugb-team-member__item:nth-of-type(1) .ugb-team-member__name",default:(0,u.__)("Name",c.i18n)},name2:{source:"html",selector:".ugb-team-member__item:nth-of-type(2) .ugb-team-member__name",default:(0,u.__)("Name",c.i18n)},name3:{source:"html",selector:".ugb-team-member__item:nth-of-type(3) .ugb-team-member__name",default:(0,u.__)("Name",c.i18n)},position1:{source:"html",selector:".ugb-team-member__item:nth-of-type(1) .ugb-team-member__position",default:(0,u.__)("Position",c.i18n)},position2:{source:"html",selector:".ugb-team-member__item:nth-of-type(2) .ugb-team-member__position",default:(0,u.__)("Position",c.i18n)},position3:{source:"html",selector:".ugb-team-member__item:nth-of-type(3) .ugb-team-member__position",default:(0,u.__)("Position",c.i18n)},description1:{source:"html",selector:".ugb-team-member__item:nth-of-type(1) .ugb-team-member__description",default:(0,l.descriptionPlaceholder)("medium")},description2:{source:"html",selector:".ugb-team-member__item:nth-of-type(2) .ugb-team-member__description",default:(0,l.descriptionPlaceholder)("medium")},description3:{source:"html",selector:".ugb-team-member__item:nth-of-type(3) .ugb-team-member__description",default:(0,l.descriptionPlaceholder)("medium")},nameColor:{type:"string"},posColor:{type:"string"},desColor:{type:"string"},columns:{type:"number",default:2},shapes:{type:"string",default:"circle"},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},colorOnHover:{type:"boolean",default:!1},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},href:{type:"url"},hrefTwo:{type:"url"},hrefThree:{type:"url"},mediaID:{type:"number"},mediaIDTwo:{type:"number"},mediaIDThree:{type:"number"},mediaURL:{type:"string"},mediaURLTwo:{type:"string"},mediaURLThree:{type:"string"},name:{type:"string"},nameTwo:{type:"string"},nameThree:{type:"string"},position:{type:"string"},positionTwo:{type:"string"},positionThree:{type:"string"},des:{type:"string"},desTwo:{type:"string"},desThree:{type:"string"},iconColor:{type:"string"},align:{type:"string"}},save:e=>{const{className:t,attributes:a}=e,{shapes:n,nameColor:r,posColor:c,desColor:u,columns:d=2,design:b="basic",borderRadius:m=12,shadow:p=3}=e.attributes,h=s()([t,"ugb-team-member","ugb-team-member--v2",`ugb-team-member--columns-${d}`,`ugb-team-member--image-${n}`,`ugb-team-member--design-${b}`],(0,o.applyFilters)("stackable.team-member.mainclasses_1_17_3",{},b,e));return(0,i.createElement)("div",{className:h},(0,o.applyFilters)("stackable.team-member.save.output.before_1_17_3",null,b,e),(0,l.range)(1,d+1).map((t=>{const n=a[`mediaURL${t}`],l=a[`name${t}`],d=a[`position${t}`],h=a[`description${t}`],k=s()(["ugb-team-member__item"],(0,o.applyFilters)("stackable.team-member.itemclasses_1_17_3",{[`ugb--shadow-${p}`]:"plain"!==b&&3!==p},b,t,e)),_=(0,o.applyFilters)("stackable.team-member.itemstyles_1_17_3",{item:{borderRadius:"plain"!==b&&12!==m?m:void 0}},b,t,e),v=n&&(0,i.createElement)("div",{className:"ugb-team-member__image",style:{backgroundImage:n?`url(${n})`:void 0},"data-src":n||void 0}),y=!g.RichText.isEmpty(l)&&(0,i.createElement)(g.RichText.Content,{tagName:"h4",className:"ugb-team-member__name",style:{color:r},value:l}),f=!g.RichText.isEmpty(d)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-team-member__position",style:{color:c},value:d}),C=!g.RichText.isEmpty(h)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-team-member__description",style:{color:u},value:h}),A={imageComp:v,nameComp:y,positionComp:f,descriptionComp:C};return(0,i.createElement)("div",{className:k,style:_.item,key:t},(0,o.applyFilters)("stackable.team-member.save.output_1_17_3",(0,i.createElement)(i.Fragment,null,v,(0,i.createElement)("div",{className:"ugb-team-member__content"},y,f,C)),b,A,t,e))})),(0,o.applyFilters)("stackable.team-member.save.output.after",null,b,e))},migrate:e=>{let t;return!e.design||["basic","plain"].includes(e.design)?t=1===e.columns?300:3===e.columns?150:220:"horizontal"===e.design&&(t=1===e.columns?150:3===e.columns?80:110),{...e,showSocial:!1,showFacebook:!0,showTwitter:!0,showInstagram:!0,showEmail:!0,social1FacebookUrl:"#",social1TwitterUrl:"#",social1InstagramUrl:"#",social1EmailUrl:"my@email.com",social2FacebookUrl:"#",social2TwitterUrl:"#",social2InstagramUrl:"#",social2EmailUrl:"my@email.com",social3FacebookUrl:"#",social3TwitterUrl:"#",social3InstagramUrl:"#",social3EmailUrl:"my@email.com",image1Id:e.mediaID1,image2Id:e.mediaID2,image3Id:e.mediaID3,image1Url:e.mediaURL1,image2Url:e.mediaURL2,image3Url:e.mediaURL3,positionColor:e.posColor,descriptionColor:e.desColor,imageShape:"square"===e.shapes?"square":"circle",imageColorOnHover:e.colorOnHover,imageWidth:t,imageSquare:!!t||void 0}}}];var b=a(7462),m=a(7200),p=a(1414);const h="dist/images/block-team-member-overlay.9135997.png";var k=a(8423);const _=e=>{const{design:t="basic",showImage:a=!0,showName:n=!0,showPosition:i=!0,showDescription:l=!0,showSocial:r=!0}=e.attributes;return(0,o.applyFilters)("stackable.team-member.show",{columnBackground:"plain"!==t&&"overlay"!==t&&"overlay-simple"!==t,borderRadius:"plain"!==t,border:"plain"!==t,shadow:"plain"!==t,social:"overlay"!==t,imageAsBackground:"overlay"===t||"half"===t||"overlay-simple"===t,imageBackgroundHeight:"overlay"===t||"overlay-simple"===t,imageBackgroundWidth:"half"===t,imageSpacing:a&&("basic"===t||"plain"===t),nameSpacing:n,positionSpacing:i,descriptionSpacing:l,socialSpacing:r&&"overlay"!==t},e)};var v=a(4863),y=a.n(v);const f=e=>{const t=(0,l.__getValue)(e.attributes),a=_(e),{columns:i=3,columnBackgroundColor:r="",showImage:s=!0,contentAlign:c=""}=e.attributes,u=[];a.borderRadius&&u.push({".ugb-team-member__item":{borderRadius:t("borderRadius","%spx !important")}}),a.border&&u.push({...(0,l.createBorderStyleSet)("column%s",".ugb-team-member__item",e.attributes)});const g=(0,o.applyFilters)("stackable.team-member.styles.column-background","ugb-team-member__item",e.attributes);u.push({...a.columnBackground?(0,k._H)("column%s",g,e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:d="px",tabletColumnPaddingUnit:b="px",mobileColumnPaddingUnit:m="px"}=e.attributes;u.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${d}`),paddingBottom:t("columnPaddingBottom",`%s${d}`),paddingRight:t("columnPaddingRight",`%s${d}`),paddingLeft:t("columnPaddingLeft",`%s${d}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${b}`),paddingRight:t("tabletColumnPaddingRight",`%s${b}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${b}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${b}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${m}`),paddingRight:t("mobileColumnPaddingRight",`%s${m}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${m}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${m}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-team-member__item":(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${d}`),paddingBottom:t("columnPaddingBottom",`%s${d}`),paddingRight:t("columnPaddingRight",`%s${d}`),paddingLeft:t("columnPaddingLeft",`%s${d}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-team-member__item":(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${b}`),paddingRight:t("tabletColumnPaddingRight",`%s${b}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${b}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${b}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-team-member__item":(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${m}`),paddingRight:t("mobileColumnPaddingRight",`%s${m}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${m}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${m}`)})}}});const{imageAlign:p="",imageTabletAlign:h="",tabletContentAlign:v="",imageMobileAlign:f="",mobileContentAlign:C=""}=e.attributes;!a.imageAsBackground&&s?(u.push({...(0,l.createImageStyleSet)("image%s","ugb-img",e.attributes,{inherit:!1})}),u.push(...(0,l.createResponsiveStyles)(".ugb-team-member__image","image%sWidth","width","%spx",e.attributes,{important:!0,inherit:!1})),u.push({".ugb-img, .ugb-team-member__image":{marginLeft:""!==p||""!==c?(0,l.marginLeftAlign)(p||c)+" !important":void 0,marginRight:""!==p||""!==c?(0,l.marginRightAlign)(p||c)+" !important":void 0},tablet:{".ugb-img, .ugb-team-member__image":{marginLeft:""!==h||""!==v?(0,l.marginLeftAlign)(h||v)+" !important":void 0,marginRight:""!==h||""!==v?(0,l.marginRightAlign)(h||v)+" !important":void 0}},mobile:{".ugb-img, .ugb-team-member__image":{marginLeft:""!==f||""!==C?(0,l.marginLeftAlign)(f||C)+" !important":void 0,marginRight:""!==f||""!==C?(0,l.marginRightAlign)(f||C)+" !important":void 0}}})):s&&(u.push({...(0,l.createImageBackgroundStyleSet)("image%s","ugb-team-member__image",e.attributes)}),(0,n.range)(1,i+1).forEach((e=>{u.push({[`.ugb-team-member__item.ugb-team-member__item${e} .ugb-team-member__image`]:{backgroundImage:t(`image${e}Url`,"url(%s)")}})})));const{nameColor:A="",showName:w=!0}=e.attributes;w&&(u.push({".ugb-team-member__name":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(A,a.columnBackground&&r))}}),u.push({".ugb-team-member__name":{...(0,l.createTypographyStyles)("name%s","desktop",e.attributes),textAlign:(0,l.appendImportant)(t("nameAlign")||t("contentAlign"))},tablet:{".ugb-team-member__name":{...(0,l.createTypographyStyles)("name%s","tablet",e.attributes),textAlign:(0,l.appendImportant)(t("nameTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-team-member__name":{...(0,l.createTypographyStyles)("name%s","mobile",e.attributes),textAlign:(0,l.appendImportant)(t("nameMobileAlign")||t("mobileContentAlign"))}}}));const{positionColor:T="",showPosition:B=!0}=e.attributes;B&&(u.push({".ugb-team-member__position":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(T,a.columnBackground&&r))}}),u.push({".ugb-team-member__position":{...(0,l.createTypographyStyles)("position%s","desktop",e.attributes),textAlign:(0,l.appendImportant)(t("positionAlign")||t("contentAlign"))},tablet:{".ugb-team-member__position":{...(0,l.createTypographyStyles)("position%s","tablet",e.attributes),textAlign:(0,l.appendImportant)(t("positionTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-team-member__position":{...(0,l.createTypographyStyles)("position%s","mobile",e.attributes),textAlign:(0,l.appendImportant)(t("positionMobileAlign")||t("mobileContentAlign"))}}}));const{descriptionColor:x="",showDescription:S=!0}=e.attributes;S&&(u.push({".ugb-team-member__description":{color:(0,l.whiteIfDarkBlackIfLight)(x,a.columnBackground&&r)}}),u.push({".ugb-team-member__description":{...(0,l.createTypographyStyles)("description%s","desktop",e.attributes),textAlign:(0,l.appendImportant)(t("descriptionAlign")||t("contentAlign"))},tablet:{".ugb-team-member__description":{...(0,l.createTypographyStyles)("description%s","tablet",e.attributes),textAlign:(0,l.appendImportant)(t("descriptionTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-team-member__description":{...(0,l.createTypographyStyles)("description%s","mobile",e.attributes),textAlign:(0,l.appendImportant)(t("descriptionMobileAlign")||t("mobileContentAlign"))}}}));const{showSocial:E=!0,socialDesign:N=""}=e.attributes;return E&&(u.push({...(0,l.createSocialButtonStyleSet)("social%s","ugb-button",{...e.attributes,buttonDesign:N})}),u.push({".ugb-team-member__buttons":{textAlign:(0,l.appendImportant)(t("socialAlign")||t("contentAlign"))},tablet:{".ugb-team-member__buttons":{textAlign:(0,l.appendImportant)(t("socialTabletAlign")||t("tabletContentAlign"))}},mobile:{".ugb-team-member__buttons":{textAlign:(0,l.appendImportant)(t("socialMobileAlign")||t("mobileContentAlign"))}}})),a.imageSpacing&&u.push(...(0,l.createResponsiveStyles)(".ugb-team-member__image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.nameSpacing&&u.push(...(0,l.createResponsiveStyles)(".ugb-team-member__name","name%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.positionSpacing&&u.push(...(0,l.createResponsiveStyles)(".ugb-team-member__position","position%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.descriptionSpacing&&u.push(...(0,l.createResponsiveStyles)(".ugb-team-member__description","description%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.socialSpacing&&(u.push(...(0,l.createResponsiveStyles)(".ugb-button-container","social%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),u.push(...(0,l.createResponsiveStyles)(".ugb-button","social%sGap","marginLeft","%spx",e.attributes,{important:!0})),u.push(...(0,l.createResponsiveStyles)(".ugb-button","social%sGap","marginRight","%spx",e.attributes,{important:!0}))),s&&(0,n.range)(1,i+1).forEach((t=>{e.attributes[`image${t}Shape`]&&u.push({[`.ugb-team-member__item${t} .ugb-img`]:(0,l.createImageMask)(`image${t}%s`,e.attributes)})})),y().all(u)},C=f;var A=a(9858),w=a(7537),T=a(3749),B=a(3284);(0,o.addFilter)("stackable.team-member.edit.layouts","default",(e=>[...e,{label:(0,u.__)("Basic",c.i18n),value:"basic",image:"dist/images/block-team-member-basic.6fdd963.png"},{label:(0,u.__)("Plain",c.i18n),value:"plain",image:"dist/images/block-team-member-plain.4bd17e6.png"},{label:(0,u.__)("Horizontal",c.i18n),value:"horizontal",image:"dist/images/block-team-member-horizontal.b1c9ed6.png",premium:!0},{label:(0,u.__)("Overlay",c.i18n),value:"overlay",image:h,premium:!0},{label:(0,u.__)("Overlay Simple",c.i18n),value:"overlay-simple",image:h,premium:!0},{label:(0,u.__)("Half",c.i18n),value:"half",image:"dist/images/block-team-member-half.124d11f.png",premium:!0}])),(0,o.addFilter)("stackable.team-member.edit.inspector.layout.before","stackable/team-member",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(m.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.team-member.edit.layouts",[]),onChange:e=>a({design:e})},c.showProNotice&&(0,i.createElement)(m.ProControlButton,null)))})),(0,o.addFilter)("stackable.team-member.edit.inspector.style.before","stackable/team-member",((e,t)=>{const{setAttributes:a}=t,{columns:o,borderRadius:r="",shadow:s="",showImage:g=!0,showName:d=!0,showDescription:b=!0,showSocial:p=!0,image1Id:h="",image2Id:k="",image3Id:v="",showPosition:y=!0,positionColor:f="",nameTag:C="h4",nameColor:T="",descriptionColor:B=""}=t.attributes,x=_(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("General",c.i18n),initialOpen:!0},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Columns",c.i18n),value:o,onChange:e=>a({columns:e}),min:1,max:3,className:"ugb--help-tip-general-columns",default:2}),(0,i.createElement)(A.QA,{setAttributes:a,blockAttributes:t.attributes})),x.columnBackground&&(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("Container",c.i18n),initialOpen:!1,id:"column-background",className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(m.ButtonIconPopoverControl,{label:(0,u.__)("Background",c.i18n),popoverLabel:(0,u.__)("Background",c.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(m.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),x.border&&(0,i.createElement)(m.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),x.borderRadius&&(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Border Radius",c.i18n),value:r,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),x.shadow&&(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Shadow / Outline",c.i18n),value:s,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(m.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(m.ColumnPaddingControl,{label:(0,u.__)("Paddings",c.i18n),setAttributes:a,attributes:t.attributes}),x.imageSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"image%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Image",c.i18n),min:-50,max:100,placeholder:"24",allowReset:!0,className:"ugb--help-tip-spacing-image"})),x.nameSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"name%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Name",c.i18n),min:-50,max:100,placeholder:"8",allowReset:!0,className:"ugb--help-tip-spacing-name"})),x.positionSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"position%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Position",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-name"})),x.descriptionSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"description%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Description",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),x.socialSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"social%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Social",c.i18n),min:-50,max:100,placeholder:"4",allowReset:!0,className:"ugb--help-tip-spacing-button"})),x.socialSpacing&&(0,i.createElement)(A.n9,{attrNameTemplate:"social%sGap",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Social Button Gap",c.i18n),min:-20,max:30,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-button-gap"}))),(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("Image",c.i18n),checked:g,onChange:e=>a({showImage:e}),toggleOnSetAttributes:["imageSize","imageBackgroundPosition",...(0,l.createResponsiveAttributeNames)("imageBackground%sHeight"),...(0,l.createResponsiveAttributeNames)("imageBackground%sWidth"),"imageShape","imageShapeFlipX","imageShapeFlipY","imageShapeStretch","imageWidth",...(0,l.createResponsiveAttributeNames)("image%sWidth"),"imageBorderRadius","imageShadow","imageBlendMode",...(0,l.createResponsiveAttributeNames)("image%sHeight")],toggleAttributeName:"showImage",hasToggle:!x.imageAsBackground},!x.imageAsBackground&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(m.ImageControlsHelper,{attrNameTemplate:"image%s",setAttributes:t.setAttributes,blockAttributes:t.attributes,onChangeImage:!1,onChangeAlt:!1,onChangeBlendMode:!1,onChangeSize:e=>{a({imageSize:e,image1Url:(0,l.getImageUrlFromCache)(h,e||"large"),image2Url:(0,l.getImageUrlFromCache)(k,e||"large"),image3Url:(0,l.getImageUrlFromCache)(v,e||"large")})}}),(0,i.createElement)(m.ControlSeparator,null),(0,i.createElement)(A.n9,{attrNameTemplate:"Image%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-image"}))),x.imageAsBackground&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(m.ImageBackgroundControlsHelper,{attrNameTemplate:"image%s",setAttributes:a,blockAttributes:t.attributes,onChangeImage:null,onChangeSize:e=>{a({imageSize:e,image1Url:(0,l.getImageUrlFromCache)(h,e||"large"),image2Url:(0,l.getImageUrlFromCache)(k,e||"large"),image3Url:(0,l.getImageUrlFromCache)(v,e||"large")})}}),x.imageBackgroundHeight&&(0,i.createElement)(A.n9,{attrNameTemplate:"Image%sBackgroundHeight",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Image Height",c.i18n),min:0,max:800,allowReset:!0,className:"ugb--help-tip-image-height-crop"})),x.imageBackgroundWidth&&(0,i.createElement)(A.n9,{attrNameTemplate:"Image%sBackgroundWidth",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AdvancedRangeControl,{label:(0,u.__)("Image Width",c.i18n)+" (%)",min:0,max:90,allowReset:!0,placeholder:"50",className:"ugb--help-tip-image-width-crop"})))),(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("Name",c.i18n),id:"name",checked:d,onChange:e=>a({showName:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("name%s"),"nameTag","nameColor",...(0,l.createResponsiveAttributeNames)("Name%sAlign")],toggleAttributeName:"showName"},(0,i.createElement)(m.HeadingButtonsControl,{value:C||"h4",defaultValue:"h4",onChange:e=>a({nameTag:e})}),(0,i.createElement)(m.TypographyControlHelper,{attrNameTemplate:"name%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:C||"h4"}),(0,i.createElement)(m.ColorPaletteControl,{value:T,onChange:e=>a({nameColor:e}),label:(0,u.__)("Name Color",c.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"Name%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-name"}))),(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("Position",c.i18n),id:"position",checked:y,onChange:e=>a({showPosition:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("position%s"),"positionColor",...(0,l.createResponsiveAttributeNames)("position%sAlign")],toggleAttributeName:"showPosition"},(0,i.createElement)(m.TypographyControlHelper,{attrNameTemplate:"position%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(m.ColorPaletteControl,{value:f,onChange:e=>a({positionColor:e}),label:(0,u.__)("Position Color",c.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"position%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-name"}))),(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("Description",c.i18n),id:"description",checked:b,onChange:e=>a({showDescription:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("description%s"),"descriptionColor",...(0,l.createResponsiveAttributeNames)("description%sAlign")],toggleAttributeName:"showDescription"},(0,i.createElement)(m.TypographyControlHelper,{attrNameTemplate:"description%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(m.ColorPaletteControl,{value:B,onChange:e=>a({descriptionColor:e}),label:(0,u.__)("Description Color",c.i18n)}),(0,i.createElement)(A.n9,{attrNameTemplate:"description%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-description"}))),x.social&&(0,i.createElement)(m.PanelAdvancedSettings,{title:(0,u.__)("Social",c.i18n),id:"social",checked:p,onChange:e=>a({showSocial:e}),toggleOnSetAttributes:[...(0,l.createButtonAttributeNames)("social%s"),...(0,l.createResponsiveAttributeNames)("social%sAlign")],toggleAttributeName:"showSocial"},(0,i.createElement)("div",{className:"components-base-control"},(0,i.createElement)("div",{className:"components-base-control__label ugb-team-member-setting__social-label"},(0,u.__)("Social Buttons",c.i18n)),Object.keys(l.SOCIAL_SITES).map((e=>(0,i.createElement)(w.ToggleControl,{key:e,className:"ugb-team-member-setting__social",label:l.SOCIAL_SITES[e].label,checked:t.attributes[`show${(0,n.upperFirst)(e)}`],onChange:t=>a({[`show${(0,n.upperFirst)(e)}`]:t})})))),(0,i.createElement)(m.ControlSeparator,null),(0,i.createElement)(m.SocialControlsHelper,{attrNameTemplate:"social%s",setAttributes:a,blockAttributes:t.attributes,socialUrlFields:!1}),(0,i.createElement)(A.n9,{attrNameTemplate:"Social%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(m.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-button"}))))}));const x=(0,T.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(),(0,p.lX)(["Image%sAlign","Name%sAlign","Position%sAlign","Description%sAlign","Social%sAlign"]),(0,p.OB)(C,{editorMode:!0}),(0,p.UY)([[".ugb-team-member__item","column-background"],[".ugb-team-member__name","name"],[".ugb-team-member__position","position"],[".ugb-team-member__description","description"],[".ugb-button","social"]]),(0,B.withSelect)(((e,t)=>{(0,l.cacheImageData)(t.attributes.image1Id,e),(0,l.cacheImageData)(t.attributes.image2Id,e),(0,l.cacheImageData)(t.attributes.image3Id,e)})))((e=>{const{className:t,setAttributes:a,attributes:r}=e,{columns:d=2,design:p="basic",shadow:h="",imageSize:k="",imageShadow:v="",imageShape:y="",imageShapeStretch:f=!1,nameTag:C="h4",showImage:w=!0,showName:T=!0,showPosition:B=!0,showDescription:x=!0,showSocial:S=!0}=r,E=_(e),N=s()([t,"ugb-team-member--v3",`ugb-team-member--design-${p}`,`ugb-team-member--columns-${d}`],(0,o.applyFilters)("stackable.team-member.mainclasses",{},e));return(0,i.createElement)(m.BlockContainer.Edit,{className:N,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,d+1).map((t=>{const d=r[`image${t}Url`],p=r[`image${t}Id`],_=r[`image${t}Alt`],N=r[`name${t}`],R=r[`position${t}`],P=r[`description${t}`],I=s()(["ugb-team-member__item",`ugb-team-member__item${t}`],(0,o.applyFilters)("stackable.team-member.itemclasses",{[`ugb--shadow-${h}`]:E.columnBackground&&""!==h},e));return(0,i.createElement)(A.Gc,{className:I,backgroundAttrName:"column%s",blockProps:e,showBackground:E.columnBackground,index:t,key:t},w&&!E.imageAsBackground&&(0,i.createElement)("div",{className:"ugb-team-member__image"},(0,i.createElement)(m.ImageUploadPlaceholder,{imageID:p,imageURL:d,imageSize:k,onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:"",[`image${t}Alt`]:"",[`image${t}Width`]:"",[`image${t}Height`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id,[`image${t}Alt`]:e.alt,[`image${t}Width`]:e.width,[`image${t}Height`]:e.height})},render:(0,i.createElement)(A.Ee,{imageId:p,src:d,size:k,shadow:v,shape:r[`image${t}Shape`]||y,shapeStretch:r[`image${t}ShapeStretch`]||f,alt:_})})),E.imageAsBackground&&(0,i.createElement)(m.ImageUploadPlaceholder,{imageID:p,imageURL:d,imageSize:k,className:"ugb-team-member__image",onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id})}}),(0,i.createElement)("div",{className:"ugb-team-member__content"},(T||B)&&(0,i.createElement)("div",{className:"ugb-team-member__title"},T&&(0,i.createElement)(g.RichText,{tagName:C||"h4",value:N,className:"ugb-team-member__name",placeholder:(0,u.__)("Name",c.i18n),onChange:e=>a({[`name${t}`]:e}),keepPlaceholderOnFocus:!0}),B&&(0,i.createElement)(g.RichText,{tagName:"p",value:R,className:"ugb-team-member__position",onChange:e=>a({[`position${t}`]:e}),placeholder:(0,u.__)("Position",c.i18n),keepPlaceholderOnFocus:!0})),x&&(0,i.createElement)(g.RichText,{tagName:"p",value:P,className:"ugb-team-member__description",onChange:e=>a({[`description${t}`]:e}),placeholder:(0,l.descriptionPlaceholder)("medium"),keepPlaceholderOnFocus:!0}),S&&E.social&&(0,i.createElement)("div",{className:"ugb-team-member__buttons"},(0,i.createElement)(A.JB,(0,b.Z)({attrNameTemplate:"social%s",setAttributes:a,blockAttributes:e.attributes,onChangeNewTab:!1},Object.keys(l.SOCIAL_SITES).reduce(((e,o)=>({...e,[`${o}Url`]:r[`social${t}${(0,n.upperFirst)(o)}Url`],[`onChange${(0,n.upperFirst)(o)}Url`]:e=>a({[`social${t}${(0,n.upperFirst)(o)}Url`]:e}),[`show${(0,n.upperFirst)(o)}`]:r[`show${(0,n.upperFirst)(o)}`]})),{}))))))})))})}));var S=a(3726),E=a.n(S);const N=(0,T.compose)(p.FI,(0,p.OB)(f))((e=>{const{className:t,attributes:a}=e,{columns:r=2,design:c="basic",shadow:u="",imageShape:d="",imageShapeStretch:p=!1,imageShadow:h="",nameTag:k="h4",showImage:v=!0,showName:y=!0,showPosition:f=!0,showDescription:C=!0,showSocial:w=!0,socialNewTab:T=!1}=a,B=_(e),x=s()([t,"ugb-team-member--v3",`ugb-team-member--design-${c}`,`ugb-team-member--columns-${r}`],(0,o.applyFilters)("stackable.team-member.mainclasses",{},e));return(0,i.createElement)(m.BlockContainer.Save,{className:x,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,r+1).map((t=>{const r=a[`image${t}Url`],c=a[`image${t}Id`],m=a[`image${t}Alt`],_=a[`name${t}`],x=a[`position${t}`],S=a[`description${t}`],N=s()(["ugb-team-member__item",`ugb-team-member__item${t}`],(0,o.applyFilters)("stackable.team-member.itemclasses",{[`ugb--shadow-${u}`]:B.columnBackground&&""!==u},e));return(0,i.createElement)(A.Gc,{className:N,backgroundAttrName:"column%s",blockProps:e,showBackground:B.columnBackground,index:t,key:t},v&&!B.imageAsBackground&&r&&(0,i.createElement)("div",{className:"ugb-team-member__image"},(0,i.createElement)(A.Ee,{imageId:c,src:r,alt:E()(m||y&&_),shadow:h,shape:a[`image${t}Shape`]||d,shapeStretch:a[`image${t}ShapeStretch`]||p})),B.imageAsBackground&&(0,i.createElement)("div",{className:"ugb-team-member__image"}),(0,i.createElement)("div",{className:"ugb-team-member__content"},(y&&!g.RichText.isEmpty(_)||f&&!g.RichText.isEmpty(x))&&(0,i.createElement)("div",{className:"ugb-team-member__title"},y&&!g.RichText.isEmpty(_)&&(0,i.createElement)(g.RichText.Content,{tagName:k||"h4",className:"ugb-team-member__name",value:_}),f&&!g.RichText.isEmpty(x)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-team-member__position",value:x})),C&&!g.RichText.isEmpty(S)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-team-member__description",value:S}),w&&B.social&&(0,i.createElement)("div",{className:"ugb-team-member__buttons"},(0,i.createElement)(A.JB.Content,(0,b.Z)({attrNameTemplate:"social%s",blockAttributes:e.attributes,newTab:T},Object.keys(l.SOCIAL_SITES).reduce(((a,o)=>({...a,[`${o}Url`]:e.attributes[`social${t}${(0,n.upperFirst)(o)}Url`],[`show${(0,n.upperFirst)(o)}`]:e.attributes[`show${(0,n.upperFirst)(o)}`]})),{}))))))})))})})),R={design:{type:"string",default:"basic"},columns:{type:"number",default:2},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,k.yA)("column%s"),...(0,l.createBorderAttributes)("column%s"),showImage:{type:"boolean",default:!0},imageColorOnHover:{type:"boolean",default:!1},...(0,l.createImageAttributes)("image%s",{exclude:["Url","Id","Alt","BlendMode"]}),imageShape:{type:"string",default:"circle"},...(0,l.createAllCombinationAttributes)("image%sId",{type:"number",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%sUrl",{type:"string",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%sAlt",{type:"string",default:"",source:"attribute",selector:".ugb-team-member__item%d .ugb-team-member__image img",attribute:"alt"},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%sShape",{type:"string",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%s%s",{type:"boolean",default:!1},["1","2","3"],["ShapeFlipX","ShapeFlipY","ShapeStretch"]),...(0,l.createAllCombinationAttributes)("image%sBackground%s",{type:"number",default:""},["","Tablet","Mobile"],["Width","Height"]),...(0,l.createImageBackgroundAttributes)("image%s"),...(0,l.createImageBackgroundAttributes)("image1%s"),...(0,l.createImageBackgroundAttributes)("image2%s"),...(0,l.createImageBackgroundAttributes)("image3%s"),showName:{type:"boolean",default:!0},...(0,l.createAllCombinationAttributes)("name%s",{type:"string",source:"html",selector:".ugb-team-member__item%d .ugb-team-member__name",default:(0,u.__)("Name",c.i18n)},["1","2","3"]),nameTag:{type:"string",default:""},...(0,l.createTypographyAttributes)("name%s"),nameColor:{type:"string",default:""},showPosition:{type:"boolean",default:!0},...(0,l.createAllCombinationAttributes)("position%s",{type:"string",source:"html",selector:".ugb-team-member__item%d .ugb-team-member__position",default:(0,u.__)("Position",c.i18n)},["1","2","3"]),...(0,l.createTypographyAttributes)("position%s"),positionColor:{type:"string",default:""},showDescription:{type:"boolean",default:!0},...(0,l.createAllCombinationAttributes)("description%s",{type:"string",source:"html",selector:".ugb-team-member__item%d .ugb-team-member__description",default:(0,l.descriptionPlaceholder)("medium")},["1","2","3"]),...(0,l.createTypographyAttributes)("description%s"),descriptionColor:{type:"string",default:""},showSocial:{type:"boolean",default:!0},...(0,l.createSocialButtonAttributes)("social%s"),socialUseSocialColors:{type:"boolean",default:!1},...(0,l.createSocialButtonAttributes)("social1%s",{selector:".ugb-team-member__item1 .ugb-button-%s",facebookDefault:"",twitterDefault:"",instagramDefault:"",pinterestDefault:"",linkedinDefault:"",youtubeDefault:"",emailDefault:"mailto:my@email.com"}),...(0,l.createSocialButtonAttributes)("social2%s",{selector:".ugb-team-member__item2 .ugb-button-%s",facebookDefault:"",twitterDefault:"",instagramDefault:"",pinterestDefault:"",linkedinDefault:"",youtubeDefault:"",emailDefault:"mailto:my@email.com"}),...(0,l.createSocialButtonAttributes)("social3%s",{selector:".ugb-team-member__item3 .ugb-button-%s",facebookDefault:"",twitterDefault:"",instagramDefault:"",pinterestDefault:"",linkedinDefault:"",youtubeDefault:"",emailDefault:"mailto:my@email.com"}),...Object.keys(l.SOCIAL_SITES).reduce(((e,t)=>({...e,[`show${(0,n.upperFirst)(t)}`]:{type:"boolean",default:""}})),{}),showFacebook:{type:"boolean",default:!0},showTwitter:{type:"boolean",default:!0},showInstagram:{type:"boolean",default:!0},showPinterest:{type:"boolean",default:!1},showLinkedin:{type:"boolean",default:!1},showYoutube:{type:"boolean",default:!1},showEmail:{type:"boolean",default:!0},hoverEffect:{type:"string",default:""},...(0,l.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Image","Name","Position","Description","Social"],["","Tablet","Mobile"]),...(0,l.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Image","Name","Position","Description","Social"],["","Tablet","Mobile"]),...(0,l.createAllCombinationAttributes)("social%sGap",{type:"number",default:""},["","Tablet","Mobile"]),...(0,l.createAllCombinationAttributes)("Column%sBackgroundColor",{type:"string",default:""},["1","2","3"])},P=JSON.parse('{"name":"ugb/team-member","title":"Team Member","description":"Display members of your team or your office. Use multiple Team Member blocks if you have a large team.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var I=a(9467);const{name:$,...U}=P,F={...U,title:U.title+" (v2)",icon:I.TeamMemberIcon,attributes:R,example:{attributes:{design:"basic",columns:1,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showImage:!0,imageColorOnHover:!1,imageShape:"circle",imageSize:"thumbnail",image1Id:606,image1Url:"https://source.unsplash.com/300x300/?employee",image1Alt:"Name",image1ShapeFlipX:!1,image1ShapeFlipY:!1,image1ShapeStretch:!1,image2ShapeFlipX:!1,image2ShapeFlipY:!1,image2ShapeStretch:!1,image3ShapeFlipX:!1,image3ShapeFlipY:!1,image3ShapeStretch:!1,image1Size:"large",image2Size:"large",image3Size:"large",showName:!0,name1:"Name",nameLineHeightUnit:"em",nameTabletLineHeightUnit:"em",nameMobileLineHeightUnit:"em",showPosition:!0,position1:"Position",positionLineHeightUnit:"em",positionTabletLineHeightUnit:"em",positionMobileLineHeightUnit:"em",showDescription:!0,description1:"Description for this block. Use this space for describing your block. Any text will do.",descriptionLineHeightUnit:"em",descriptionTabletLineHeightUnit:"em",descriptionMobileLineHeightUnit:"em",showSocial:!0,socialLineHeightUnit:"em",socialTabletLineHeightUnit:"em",socialMobileLineHeightUnit:"em",socialUseSocialColors:!1,socialFacebookUrl:"#",socialTwitterUrl:"#",socialInstagramUrl:"#",socialEmailUrl:"mailto:my@email.com",social1LineHeightUnit:"em",social1TabletLineHeightUnit:"em",social1MobileLineHeightUnit:"em",social1UseSocialColors:!0,social1FacebookUrl:"#",social1TwitterUrl:"#",social1InstagramUrl:"#",social1EmailUrl:"mailto:my@email.com",social2LineHeightUnit:"em",social2TabletLineHeightUnit:"em",social2MobileLineHeightUnit:"em",social2UseSocialColors:!0,social2EmailUrl:"mailto:my@email.com",social3LineHeightUnit:"em",social3TabletLineHeightUnit:"em",social3MobileLineHeightUnit:"em",social3UseSocialColors:!0,social3EmailUrl:"mailto:my@email.com",showFacebook:!0,showTwitter:!0,showInstagram:!0,showPinterest:!1,showLinkedin:!1,showYoutube:!1,showEmail:!0,imageBottomMargin:0,uniqueClass:"ugb-3b5c718",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["wide"],inserter:!c.v2disabledBlocks.includes($),anchor:!0},deprecated:d,edit:x,save:N,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,o.applyFilters)("stackable.team-member.custom-css.default","")}}};(0,o.addFilter)("stackable.team-member.setAttributes","stackable/team-member/imageShape",(e=>void 0!==e.imageShape?{...e,image1Shape:"",image2Shape:"",image3Shape:"",image1ShapeFlipX:"",image1ShapeFlipY:"",image1ShapeStretch:"",image2ShapeFlipX:"",image2ShapeFlipY:"",image2ShapeStretch:"",image3ShapeFlipX:"",image3ShapeFlipY:"",image3ShapeStretch:""}:void 0!==e.imageShapeFlipX?{...e,image1ShapeFlipX:"",image2ShapeFlipX:"",image3ShapeFlipX:""}:void 0!==e.imageShapeFlipY?{...e,image1ShapeFlipY:"",image2ShapeFlipY:"",image3ShapeFlipY:""}:void 0!==e.imageShapeStretch?{...e,image1ShapeStretch:"",image2ShapeStretch:"",image3ShapeStretch:""}:void 0!==e.columnBackgroundColor||void 0!==e.columnBackgroundColorType?{...e,column1BackgroundColor:"",column2BackgroundColor:"",column3BackgroundColor:""}:e))},2360:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>N,settings:()=>P});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.testimonial.design.no-text-attributes","stackable/testimonial",(e=>(0,n.omit)(e,["testimonial1","testimonial2","testimonial3","name1","name2","name3","position1","position2","position3"]))),(0,o.addFilter)("stackable.testimonial.design.filtered-block-attributes","stackable/testimonial",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...(0,n.omit)(e,["image1Id",...t&&t.image1Id?["image1Url"]:[],"image2Id",...t&&t.image2Id?["image2Url"]:[],"image3Id",...t&&t.image3Id?["image3Url"]:[],"image1Alt","image2Alt","image3Alt"])}}));var i=a(2610),l=a(7545),r=a(4184),s=a.n(r),c=a(910),u=a(8003),g=a(78);const d=[{attributes:{mediaID1:{type:"number"},mediaID2:{type:"number"},mediaID3:{type:"number"},mediaURL1:{type:"string"},mediaURL2:{type:"string"},mediaURL3:{type:"string"},name1:{source:"html",selector:".ugb-testimonial__item:nth-of-type(1) .ugb-testimonial__name",default:(0,u.__)("Name",c.i18n)},name2:{source:"html",selector:".ugb-testimonial__item:nth-of-type(2) .ugb-testimonial__name",default:(0,u.__)("Name",c.i18n)},name3:{source:"html",selector:".ugb-testimonial__item:nth-of-type(3) .ugb-testimonial__name",default:(0,u.__)("Name",c.i18n)},position1:{source:"html",selector:".ugb-testimonial__item:nth-of-type(1) .ugb-testimonial__position",default:(0,u.__)("Position",c.i18n)},position2:{source:"html",selector:".ugb-testimonial__item:nth-of-type(2) .ugb-testimonial__position",default:(0,u.__)("Position",c.i18n)},position3:{source:"html",selector:".ugb-testimonial__item:nth-of-type(3) .ugb-testimonial__position",default:(0,u.__)("Position",c.i18n)},testimonial1:{source:"html",selector:".ugb-testimonial__item:nth-of-type(1) .ugb-testimonial__body",default:(0,l.descriptionPlaceholder)("medium")},testimonial2:{source:"html",selector:".ugb-testimonial__item:nth-of-type(2) .ugb-testimonial__body",default:(0,l.descriptionPlaceholder)("medium")},testimonial3:{source:"html",selector:".ugb-testimonial__item:nth-of-type(3) .ugb-testimonial__body",default:(0,l.descriptionPlaceholder)("medium")},titleColor:{type:"string"},posColor:{type:"string"},bodyTextColor:{type:"string"},backgroundColor:{type:"string",default:""},serif:{type:"boolean",default:!1},columns:{type:"number",default:2},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},href:{type:"url"},hrefTwo:{type:"url"},hrefThree:{type:"url"},mediaID:{type:"number"},mediaIDTwo:{type:"number"},mediaIDThree:{type:"number"},mediaURL:{type:"string"},mediaURLTwo:{type:"string"},mediaURLThree:{type:"string"},testimonialTitle:{type:"string"},testimonialTitleTwo:{type:"string"},testimonialTitleThree:{type:"string"},position:{type:"string"},positionTwo:{type:"string"},positionThree:{type:"string"},body:{type:"string"},bodyTwo:{type:"string"},bodyThree:{type:"string"},iconColor:{type:"string"},align:{type:"string"}},save:e=>{const{className:t,attributes:a}=e,{columns:n,titleColor:r,posColor:c,bodyTextColor:u,design:d="basic",borderRadius:b=12,backgroundColor:m="",shadow:p=3,serif:h=!1}=a,k=s()([t,"ugb-testimonial","ugb-testimonial--v2",`ugb-testimonial--columns-${n}`,`ugb-testimonial--design-${d}`],(0,o.applyFilters)("stackable.testimonial.mainclasses_1_17_3",{"ugb-testimonial--serif":h},d,e)),_=s()(["ugb-testimonial__item"],(0,o.applyFilters)("stackable.testimonial.itemclasses_1_17_3",{[`ugb--shadow-${p}`]:"plain"!==d&&3!==p},d,e)),v=(0,o.applyFilters)("stackable.testimonial.styles_1_17_3",{item:{borderRadius:"plain"!==d&&12!==b?b:void 0,backgroundColor:"plain"!==d&&m?m:void 0},bodyWrapper:{},body:{color:u||void 0}},d,e);return(0,i.createElement)("div",{className:k},(0,o.applyFilters)("stackable.testimonial.save.output.before_1_17_3",null,d,e),(0,l.range)(1,n+1).map((t=>{const n=a[`mediaURL${t}`],l=a[`name${t}`],u=a[`position${t}`],b=a[`testimonial${t}`],m=s()(["ugb-testimonial__body-wrapper"],(0,o.applyFilters)("stackable.testimonial.bodyclasses_1_17_3",{},d,e));return(0,i.createElement)("div",{className:_,style:v.item,key:t},(0,i.createElement)("div",{className:m,style:v.bodyWrapper},!g.RichText.isEmpty(b)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-testimonial__body",style:v.body,value:b})),(0,i.createElement)("div",{className:"ugb-testimonial__person"},n&&(0,i.createElement)("div",{className:"ugb-testimonial__image",style:{backgroundImage:`url(${n})`}}),!g.RichText.isEmpty(l)&&(0,i.createElement)(g.RichText.Content,{tagName:"h4",className:"ugb-testimonial__name",style:{color:r},value:l}),!g.RichText.isEmpty(u)&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-testimonial__position",style:{color:c},value:u})))})),(0,o.applyFilters)("stackable.testimonial.save.output.after_1_17_3",null,d,e))},migrate:e=>{const t=["","basic","plain","basic2","bubble"].includes(e.design)?75:void 0;return{...e,image1Id:e.mediaID1,image2Id:e.mediaID2,image3Id:e.mediaID3,image1Url:e.mediaURL1,image2Url:e.mediaURL2,image3Url:e.mediaURL3,imageShape:"circle",nameColor:e.titleColor,positionColor:e.posColor,testimonialColor:e.bodyTextColor,columnBackgroundColor:e.backgroundColor,testimonialFontFamily:e.serif?"Serif-Alt":void 0,testimonialFontSize:e.serif?20:void 0,testimonial1:e.serif?`<em>${e.testimonial1}</em>`:e.testimonial1,testimonial2:e.serif?`<em>${e.testimonial2}</em>`:e.testimonial2,testimonial3:e.serif?`<em>${e.testimonial3}</em>`:e.testimonial3,shadow:"basic2"===e.design?void 0:e.shadow,bubbleBackgroundColor:"bubble"===e.design?e.backgroundColor:void 0,imageWidth:t,imageSquare:!!t||void 0}}}];var b=a(8423);const m=e=>{const{design:t="basic",showTestimonial:a=!0,showImage:n=!0,showName:i=!0,showPosition:l=!0}=e.attributes;return(0,o.applyFilters)("stackable.testimonial.show",{columnBackground:"plain"!==t,borderRadius:"plain"!==t,border:"plain"!==t&&"bubble"!==t,shadow:"plain"!==t,imageAsBackground:!1,testimonialSpacing:a,imageSpacing:n&&!["background","vertical","vertical-inverse"].includes(t),nameSpacing:i,positionSpacing:l},e)};var p=a(4863),h=a.n(p);const k=e=>{const t=(0,l.__getValue)(e.attributes),a=m(e),{design:o="basic",columns:i=3,columnBackgroundColor:r="",showImage:s=!0,imageAlign:c="",contentAlign:u="",imageTabletAlign:g="",mobileTabletAlign:d="",imageMobileAlign:p="",mobileContentAlign:k=""}=e.attributes,_=[];a.borderRadius&&_.push({".ugb-testimonial__item":{borderRadius:t("borderRadius","%spx !important")}}),a.border&&_.push({...(0,l.createBorderStyleSet)("column%s",".ugb-testimonial__item",e.attributes)}),_.push({...a.columnBackground?(0,b._H)("column%s","ugb-testimonial__item",e.attributes,{importantBackgroundColor:!0}):{}});const{columnPaddingUnit:v="px",tabletColumnPaddingUnit:y="px",mobileColumnPaddingUnit:f="px"}=e.attributes;_.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${v}`),paddingBottom:t("columnPaddingBottom",`%s${v}`),paddingRight:t("columnPaddingRight",`%s${v}`),paddingLeft:t("columnPaddingLeft",`%s${v}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${y}`),paddingRight:t("tabletColumnPaddingRight",`%s${y}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${y}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${y}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${f}`),paddingRight:t("mobileColumnPaddingRight",`%s${f}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${f}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${f}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-testimonial__item":(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${v}`),paddingBottom:t("columnPaddingBottom",`%s${v}`),paddingRight:t("columnPaddingRight",`%s${v}`),paddingLeft:t("columnPaddingLeft",`%s${v}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-testimonial__item":(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${y}`),paddingRight:t("tabletColumnPaddingRight",`%s${y}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${y}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${y}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-testimonial__item":(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${f}`),paddingRight:t("mobileColumnPaddingRight",`%s${f}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${f}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${f}`)})}}});const{testimonialColor:C="",showTestimonial:A=!0}=e.attributes;A&&_.push({".ugb-testimonial__body":{...(0,l.createTypographyStyles)("testimonial%s","desktop",e.attributes,{important:!0}),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(C,(a.columnBackground||"background"===o)&&r)),textAlign:(0,l.appendImportant)(t("testimonialAlign")||t("contentAlign"))},tablet:{".ugb-testimonial__body":{...(0,l.createTypographyStyles)("testimonial%s","tablet",e.attributes,{important:!0}),textAlign:(0,l.appendImportant)(t("testimonialTabletAlign")||t("mobileTabletAlign"))}},mobile:{".ugb-testimonial__body":{...(0,l.createTypographyStyles)("testimonial%s","mobile",e.attributes,{important:!0}),textAlign:(0,l.appendImportant)(t("testimonialMobileAlign")||t("mobileContentAlign"))}}}),!a.imageAsBackground&&s?(_.push({...(0,l.createImageStyleSet)("image%s","ugb-img",e.attributes,{inherit:!1})}),_.push({desktopTablet:{".ugb-testimonial__image":{width:(0,l.appendImportant)(t("imageWidth","%spx"))}},tabletOnly:{".ugb-testimonial__image":{width:(0,l.appendImportant)(t("imageTabletWidth","%spx"))}},mobile:{".ugb-testimonial__image":{width:(0,l.appendImportant)(t("imageMobileWidth","%spx"))}}}),_.push({".ugb-img, .ugb-testimonial__image":{marginLeft:""!==c||""!==u?(0,l.marginLeftAlign)(c||u)+" !important":void 0,marginRight:""!==c||""!==u?(0,l.marginRightAlign)(c||u)+" !important":void 0},tablet:{".ugb-img, .ugb-testimonial__image":{marginLeft:""!==g||""!==d?(0,l.marginLeftAlign)(g||d)+" !important":void 0,marginRight:""!==g||""!==d?(0,l.marginRightAlign)(g||d)+" !important":void 0}},mobile:{".ugb-img, .ugb-testimonial__image":{marginLeft:""!==p||""!==k?(0,l.marginLeftAlign)(p||k)+" !important":void 0,marginRight:""!==p||""!==k?(0,l.marginRightAlign)(p||k)+" !important":void 0}}})):s&&(0,n.range)(1,i+1).forEach((e=>{_.push({[`.ugb-testimonial__item.ugb-testimonial__item${e} .ugb-testimonial__image`]:{backgroundImage:t(`image${e}Url`,"url(%s)")}})}));const{nameColor:w="",showName:T=!0}=e.attributes;T&&_.push({".ugb-testimonial__name":{...(0,l.createTypographyStyles)("name%s","desktop",e.attributes),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(w,(a.columnBackground||"background"===o)&&r)),textAlign:t("nameAlign")||t("contentAlign")},tablet:{".ugb-testimonial__name":{...(0,l.createTypographyStyles)("name%s","tablet",e.attributes),textAlign:t("nameTabletAlign")||t("mobileTabletAlign")}},mobile:{".ugb-testimonial__name":{...(0,l.createTypographyStyles)("name%s","mobile",e.attributes),textAlign:t("nameMobileAlign")||t("mobileContentAlign")}}});const{positionColor:B="",showPosition:x=!0}=e.attributes;return x&&_.push({".ugb-testimonial__position":{...(0,l.createTypographyStyles)("position%s","desktop",e.attributes,{importantSize:!0}),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(B,(a.columnBackground||"background"===o)&&r)),textAlign:t("positionAlign")||t("contentAlign")},tablet:{".ugb-testimonial__position":{...(0,l.createTypographyStyles)("position%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("positionTabletAlign")||t("mobileTabletAlign")}},mobile:{".ugb-testimonial__position":{...(0,l.createTypographyStyles)("position%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("positionMobileAlign")||t("mobileContentAlign")}}}),a.testimonialSpacing&&("bubble"!==o?_.push(...(0,l.createResponsiveStyles)(".ugb-testimonial__body","testimonial%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})):_.push(...(0,l.createResponsiveStyles)(".ugb-testimonial__body-wrapper","testimonial%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0}))),a.imageSpacing&&_.push(...(0,l.createResponsiveStyles)(".ugb-testimonial__image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.nameSpacing&&_.push(...(0,l.createResponsiveStyles)(".ugb-testimonial__name","name%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.positionSpacing&&_.push(...(0,l.createResponsiveStyles)(".ugb-testimonial__position","position%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),h().all(_)};var _=a(7200),v=a(9858),y=a(1414),f=a(3749),C=a(3284);(0,o.addFilter)("stackable.testimonial.edit.layouts","default",(e=>[...e,{image:"dist/images/block-testimonial-basic.7a2698e.png",label:(0,u.__)("Basic",c.i18n),value:"basic"},{image:"dist/images/block-testimonial-plain.79f8c00.png",label:(0,u.__)("Plain",c.i18n),value:"plain"},{label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",c.i18n),(0,u.__)("Basic",c.i18n),2),value:"basic2",image:"dist/images/block-testimonial-basic2.ba28833.png",premium:!0},{label:(0,u.__)("Bubble",c.i18n),value:"bubble",image:"dist/images/block-testimonial-bubble.9537d2a.png",premium:!0},{label:(0,u.__)("Background",c.i18n),value:"background",image:"dist/images/block-testimonial-background.3dcb464.png",premium:!0},{label:(0,u.__)("Vertical",c.i18n),value:"vertical",image:"dist/images/block-testimonial-vertical.79bf64d.png",premium:!0},{label:(0,u.__)("Vertical Inverse",c.i18n),value:"vertical-inverse",image:"dist/images/block-testimonial-vertical-inverse.9972470.png",premium:!0}])),(0,o.addFilter)("stackable.testimonial.edit.inspector.layout.before","stackable/testimonial",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(_.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.testimonial.edit.layouts",[]),onChange:e=>{a({design:e})}},c.showProNotice&&(0,i.createElement)(_.ProControlButton,null)))})),(0,o.addFilter)("stackable.testimonial.edit.inspector.style.before","stackable/testimonial",((e,t)=>{const{setAttributes:a}=t,{design:n="basic",columns:r=2,borderRadius:s="",shadow:g="",nameTag:d="h4",testimonialColor:b="",nameColor:p="",positionColor:h="",showTestimonial:k=!0,showImage:y=!0,showName:f=!0,showPosition:C=!0,image1Id:A="",image2Id:w="",image3Id:T=""}=t.attributes,B=m(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,u.__)("General",c.i18n),initialOpen:!0},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Columns",c.i18n),value:r,onChange:e=>a({columns:e}),min:1,max:3,className:"ugb--help-tip-general-columns",default:2}),(0,i.createElement)(v.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,o.applyFilters)("stackable.testimonial.edit.inspector.style.general.after",null,t),B.columnBackground&&(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,u.__)("Container",c.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,o.applyFilters)("stackable.testimonial.edit.inspector.style.container.before",(0,i.createElement)(i.Fragment,null,(0,i.createElement)(_.ButtonIconPopoverControl,{label:(0,u.__)("Background",c.i18n),popoverLabel:(0,u.__)("Background",c.i18n),onReset:()=>{a({columnBackgroundColorType:"",columnBackgroundColor:"",columnBackgroundColor2:"",columnBackgroundColorOpacity:"",columnBackgroundMediaID:"",columnBackgroundMediaUrl:"",columnBackgroundTintStrength:"",columnFixedBackground:""})},allowReset:t.attributes.columnBackgroundColor||t.attributes.columnBackgroundMediaUrl,hasColorPreview:t.attributes.columnBackgroundColor,hasImagePreview:t.attributes.columnBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.columnBackgroundColorType?[t.attributes.columnBackgroundColor,t.attributes.columnBackgroundColor2]:t.attributes.columnBackgroundColor,imageUrlPreview:t.attributes.columnBackgroundMediaUrl},(0,i.createElement)(_.BackgroundControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes})),B.border&&(0,i.createElement)(_.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),B.borderRadius&&(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Border Radius",c.i18n),value:s,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),B.shadow&&(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Shadow / Outline",c.i18n),value:g,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"basic2"!==n?3:"",className:"ugb--help-tip-general-shadow"})),t)),(0,i.createElement)(_.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(_.ColumnPaddingControl,{label:(0,u.__)("Paddings",c.i18n),setAttributes:a,attributes:t.attributes}),B.testimonialSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"testimonial%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Testimonial",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-description"})),B.imageSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"image%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Image",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-image"})),B.nameSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"name%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Name",c.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-name"})),B.positionSpacing&&(0,i.createElement)(v.n9,{attrNameTemplate:"position%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AdvancedRangeControl,{label:(0,u.__)("Position",c.i18n),min:-50,max:100,placeholder:"0",allowReset:!0,className:"ugb--help-tip-spacing-name"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,u.__)("Testimonial",c.i18n),id:"testimonial",checked:k,onChange:e=>a({showTestimonial:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("testimonial%s"),"testimonialColor",...(0,l.createResponsiveAttributeNames)("testimonial%sAlign")],toggleAttributeName:"showTestimonial"},(0,i.createElement)(_.TypographyControlHelper,{attrNameTemplate:"testimonial%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(_.ColorPaletteControl,{value:b,onChange:e=>a({testimonialColor:e}),label:(0,u.__)("Testimonial Color",c.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"testimonial%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-description"}))),(0,o.applyFilters)("stackable.testimonial.edit.inspector.style.testimonial.after",null,t),!B.imageAsBackground&&(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,u.__)("Image",c.i18n),checked:y,onChange:e=>a({showImage:e}),toggleOnSetAttributes:["imageSize","imageShape","imageShapeFlipX","imageShapeFlipY","imageShapeStretch","imageWidth",...(0,l.createResponsiveAttributeNames)("image%sWidth"),"imageBorderRadius","imageShadow","imageBlendMode"],toggleAttributeName:"showImage"},(0,i.createElement)(_.ImageControlsHelper,{attrNameTemplate:"image%s",setAttributes:t.setAttributes,blockAttributes:t.attributes,widthMax:300,onChangeImage:!1,onChangeAlt:!1,onChangeBlendMode:!1,onChangeSize:e=>{a({imageSize:e,image1Url:(0,l.getImageUrlFromCache)(A,e||"medium"),image2Url:(0,l.getImageUrlFromCache)(w,e||"medium"),image3Url:(0,l.getImageUrlFromCache)(T,e||"medium")})},placeholder:"75"}),(0,i.createElement)(_.ControlSeparator,null),(0,i.createElement)(v.n9,{attrNameTemplate:"Image%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-image"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,u.__)("Name",c.i18n),id:"name",checked:f,onChange:e=>a({showName:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("name%s"),"nameTag","nameColor",...(0,l.createResponsiveAttributeNames)("Name%sAlign")],toggleAttributeName:"showName"},(0,i.createElement)(_.HeadingButtonsControl,{label:(0,u.sprintf)((0,u._x)("%s HTML Tag","component",c.i18n),(0,u.__)("Name",c.i18n)),value:d||"h4",defaultValue:"h4",onChange:e=>a({nameTag:e})}),(0,i.createElement)(_.TypographyControlHelper,{attrNameTemplate:"name%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:d||"h4"}),(0,i.createElement)(_.ColorPaletteControl,{value:p,onChange:e=>a({nameColor:e}),label:(0,u.__)("Name Color",c.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"Name%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-name"}))),(0,i.createElement)(_.PanelAdvancedSettings,{title:(0,u.__)("Position",c.i18n),id:"position",checked:C,onChange:e=>a({showPosition:e}),toggleOnSetAttributes:[...(0,l.createTypographyAttributeNames)("position%s"),"positionColor",...(0,l.createResponsiveAttributeNames)("position%sAlign")],toggleAttributeName:"showPosition"},(0,i.createElement)(_.TypographyControlHelper,{attrNameTemplate:"position%s",setAttributes:a,blockAttributes:t.attributes,placeholder:e=>.75*e}),(0,i.createElement)(_.ColorPaletteControl,{value:h,onChange:e=>a({positionColor:e}),label:(0,u.__)("Text Color",c.i18n)}),(0,i.createElement)(v.n9,{attrNameTemplate:"position%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(_.AlignButtonsControl,{label:(0,u.__)("Align",c.i18n),className:"ugb--help-tip-alignment-name"}))))}));const A=(0,f.compose)(y.FI,y.XQ,y.O0,(0,y.Q9)(),(0,y.lX)(["Testimonial%sAlign","Image%sAlign","Name%sAlign","Position%sAlign"]),(0,y.OB)(k,{editorMode:!0}),(0,y.UY)([[".ugb-testimonial__item","column-background"],[".ugb-testimonial__body","testimonial"],[".ugb-testimonial__name","name"],[".ugb-testimonial__position","position"]]),(0,C.withSelect)(((e,t)=>{(0,l.cacheImageData)(t.attributes.image1Id,e),(0,l.cacheImageData)(t.attributes.image2Id,e),(0,l.cacheImageData)(t.attributes.image3Id,e)})))((e=>{const{className:t,setAttributes:a,attributes:r}=e,{columns:d=2,design:b="basic",shadow:p="",nameTag:h="h4",imageSize:k="thumbnail",imageShadow:y="",imageShape:f="circle",imageShapeStretch:C=!1,showTestimonial:A=!0,showImage:w=!0,showName:T=!0,showPosition:B=!0}=r,x=s()([t,"ugb-testimonial--v3",`ugb-testimonial--columns-${d}`,`ugb-testimonial--design-${b}`],(0,o.applyFilters)("stackable.testimonial.mainclasses",{},e)),S=m(e);return(0,i.createElement)(_.BlockContainer.Edit,{className:x,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,d+1).map((t=>{const n=r[`image${t}Url`],d=r[`image${t}Id`],b=r[`image${t}Alt`],m=r[`name${t}`],x=r[`position${t}`],E=r[`testimonial${t}`],N=s()(["ugb-testimonial__item",`ugb-testimonial__item${t}`],(0,o.applyFilters)("stackable.testimonial.itemclasses",{[`ugb--shadow-${p}`]:S.columnBackground&&""!==p},e,t)),R=s()(["ugb-testimonial__body-wrapper"],(0,o.applyFilters)("stackable.testimonial.bodywrapperclasses",{},e,t));return(0,i.createElement)(v.Gc,{className:N,backgroundAttrName:"column%s",blockProps:e,showBackground:S.columnBackground,index:t,key:t},(0,i.createElement)("div",{className:R},A&&(0,i.createElement)(g.RichText,{tagName:"p",className:"ugb-testimonial__body",value:E,onChange:e=>a({[`testimonial${t}`]:e}),placeholder:(0,l.descriptionPlaceholder)("medium"),keepPlaceholderOnFocus:!0})),(0,i.createElement)("div",{className:"ugb-testimonial__person"},!S.imageAsBackground&&w&&(0,i.createElement)("div",{className:"ugb-testimonial__image"},(0,i.createElement)(_.ImageUploadPlaceholder,{imageID:d,imageURL:n,imageSize:k,onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:"",[`image${t}Alt`]:"",[`image${t}Width`]:"",[`image${t}Height`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id,[`image${t}Alt`]:e.alt,[`image${t}Width`]:e.width,[`image${t}Height`]:e.height})},render:(0,i.createElement)(v.Ee,{imageId:d,src:n,size:k,shadow:y,shape:r[`image${t}Shape`]||f,shapeStretch:r[`image${t}ShapeStretch`]||C,alt:b})})),S.imageAsBackground&&w&&(0,i.createElement)(_.ImageUploadPlaceholder,{imageID:d,imageURL:n,imageSize:k,className:"ugb-testimonial__image",onRemove:()=>{a({[`image${t}Url`]:"",[`image${t}Id`]:"",[`image${t}Alt`]:"",[`image${t}Width`]:"",[`image${t}Height`]:""})},onChange:e=>{a({[`image${t}Url`]:e.url,[`image${t}Id`]:e.id,[`image${t}Alt`]:e.alt,[`image${t}Width`]:e.width,[`image${t}Height`]:e.height})}}),T&&(0,i.createElement)(g.RichText,{tagName:h||"h4",className:"ugb-testimonial__name",value:m,onChange:e=>a({[`name${t}`]:e}),placeholder:(0,u.__)("Name",c.i18n),keepPlaceholderOnFocus:!0}),B&&(0,i.createElement)(g.RichText,{tagName:"p",className:"ugb-testimonial__position",value:x,onChange:e=>a({[`position${t}`]:e}),placeholder:(0,u.__)("Position",c.i18n),keepPlaceholderOnFocus:!0})))})))})}));var w=a(3726),T=a.n(w);const B=(0,f.compose)(y.FI,(0,y.OB)(k))((e=>{const{className:t,attributes:a}=e,{columns:l=2,design:r="basic",shadow:c="",nameTag:u="h4",imageShadow:d="",imageShape:b="circle",imageShapeStretch:p=!1,showTestimonial:h=!0,showImage:k=!0,showName:y=!0,showPosition:f=!0}=a,C=s()([t,"ugb-testimonial--v3",`ugb-testimonial--columns-${l}`,`ugb-testimonial--design-${r}`],(0,o.applyFilters)("stackable.testimonial.mainclasses",{},e)),A=m(e);return(0,i.createElement)(_.BlockContainer.Save,{className:C,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,n.range)(1,l+1).map((t=>{const n=a[`image${t}Url`],l=a[`image${t}Id`],r=a[`image${t}Alt`],m=a[`name${t}`],_=a[`position${t}`],C=a[`testimonial${t}`],w=s()(["ugb-testimonial__item",`ugb-testimonial__item${t}`],(0,o.applyFilters)("stackable.testimonial.itemclasses",{[`ugb--shadow-${c}`]:A.columnBackground&&""!==c},e,t)),B=s()(["ugb-testimonial__body-wrapper"],(0,o.applyFilters)("stackable.testimonial.bodywrapperclasses",{},e,t));return(0,i.createElement)(v.Gc,{className:w,backgroundAttrName:"column%s",blockProps:e,showBackground:A.columnBackground,index:t,key:t},(0,i.createElement)("div",{className:B},h&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-testimonial__body",value:C})),(0,i.createElement)("div",{className:"ugb-testimonial__person"},!A.imageAsBackground&&k&&n&&(0,i.createElement)("div",{className:"ugb-testimonial__image"},(0,i.createElement)(v.Ee,{imageId:l,src:n,alt:T()(r||y&&m),shadow:d,shape:a[`image${t}Shape`]||b,shapeStretch:a[`image${t}ShapeStretch`]||p})),A.imageAsBackground&&k&&n&&(0,i.createElement)("div",{className:"ugb-testimonial__image"}),y&&(0,i.createElement)(g.RichText.Content,{tagName:u||"h4",className:"ugb-testimonial__name",value:m}),f&&(0,i.createElement)(g.RichText.Content,{tagName:"p",className:"ugb-testimonial__position",value:_})))})))})})),x={design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},columns:{type:"number",default:2},...(0,b.yA)("column%s"),...(0,l.createBorderAttributes)("column%s"),showTestimonial:{type:"boolean",default:!0},...(0,l.createAllCombinationAttributes)("testimonial%s",{type:"string",source:"html",selector:".ugb-testimonial__item%d .ugb-testimonial__body",default:(0,l.descriptionPlaceholder)("medium")},["1","2","3"]),...(0,l.createTypographyAttributes)("testimonial%s"),testimonialColor:{type:"string",default:""},showImage:{type:"boolean",default:!0},...(0,l.createImageAttributes)("image%s",{exclude:["Url","Id","Alt","BlendMode"]}),imageShape:{type:"string",default:"circle"},imageSize:{type:"string",default:"thumbnail"},...(0,l.createAllCombinationAttributes)("image%sId",{type:"number",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%sUrl",{type:"string",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%sAlt",{type:"string",default:"",source:"attribute",selector:".ugb-testimonial__item%d .ugb-testimonial__image img",attribute:"alt"},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%sShape",{type:"string",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("image%s%s",{type:"boolean",default:!1},["1","2","3"],["ShapeFlipX","ShapeFlipY","ShapeStretch"]),...(0,l.createImageBackgroundAttributes)("image%s"),...(0,l.createImageBackgroundAttributes)("image1%s"),...(0,l.createImageBackgroundAttributes)("image2%s"),...(0,l.createImageBackgroundAttributes)("image3%s"),showName:{type:"boolean",default:!0},...(0,l.createAllCombinationAttributes)("name%s",{type:"string",source:"html",selector:".ugb-testimonial__item%d .ugb-testimonial__name",default:(0,u.__)("Name",c.i18n)},["1","2","3"]),nameTag:{type:"string",default:""},...(0,l.createTypographyAttributes)("name%s"),nameColor:{type:"string",default:""},showPosition:{type:"boolean",default:!0},...(0,l.createAllCombinationAttributes)("position%s",{type:"string",source:"html",selector:".ugb-testimonial__item%d .ugb-testimonial__position",default:(0,u.__)("Position",c.i18n)},["1","2","3"]),...(0,l.createTypographyAttributes)("position%s"),positionColor:{type:"string",default:""},hoverEffect:{type:"string",default:""},...(0,l.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Testimonial","Image","Name","Position"],["","Tablet","Mobile"]),...(0,l.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Testimonial","Image","Name","Position"],["","Tablet","Mobile"]),...(0,l.createAllCombinationAttributes)("Column%sBackgroundColor",{type:"string",default:""},["1","2","3"]),bubbleBackgroundColor:{type:"string",default:""},...(0,l.createAllCombinationAttributes)("Bubble%sBackgroundColor",{type:"string",default:""},["1","2","3"]),...(0,l.createAllCombinationAttributes)("Vertical%sImageHeight",{type:"number",default:""},["","Tablet","Mobile"])},S=JSON.parse('{"name":"ugb/testimonial","title":"Testimonial","description":"Showcase what your users say about your product or service.","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var E=a(9467);const{name:N,...R}=S,P={...R,title:R.title+" (v2)",icon:E.TestimonialIcon,attributes:x,example:{attributes:{design:"basic",columns:1,columnBackgroundCustomSizeUnit:"%",columnTabletBackgroundCustomSizeUnit:"%",columnMobileBackgroundCustomSizeUnit:"%",showTestimonial:!0,testimonial1:"Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",testimonialLineHeightUnit:"em",testimonialTabletLineHeightUnit:"em",testimonialMobileLineHeightUnit:"em",showImage:!0,imageShape:"circle",imageSize:"large",image1Id:607,image1Url:"https://source.unsplash.com/300x300/?selfie",image1Alt:"Name",image1ShapeFlipX:!1,image1ShapeFlipY:!1,image1ShapeStretch:!1,image2ShapeFlipX:!1,image2ShapeFlipY:!1,image2ShapeStretch:!1,image3ShapeFlipX:!1,image3ShapeFlipY:!1,image3ShapeStretch:!1,image1Size:"large",image2Size:"large",image3Size:"large",showName:!0,name1:"Name",nameLineHeightUnit:"em",nameTabletLineHeightUnit:"em",nameMobileLineHeightUnit:"em",showPosition:!0,position1:"Position",positionLineHeightUnit:"em",positionTabletLineHeightUnit:"em",positionMobileLineHeightUnit:"em",uniqueClass:"ugb-c5df9fa",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["wide"],inserter:!c.v2disabledBlocks.includes(N),anchor:!0},deprecated:d,edit:A,save:B,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{verticalColumnAlign:!0,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,o.applyFilters)("stackable.testimonial.custom-css.default","")}}};(0,o.addFilter)("stackable.testimonial.setAttributes","stackable/testimonial/imageShape",(e=>void 0!==e.imageShape?{...e,image1Shape:"",image2Shape:"",image3Shape:"",image1ShapeFlipX:"",image1ShapeFlipY:"",image1ShapeStretch:"",image2ShapeFlipX:"",image2ShapeFlipY:"",image2ShapeStretch:"",image3ShapeFlipX:"",image3ShapeFlipY:"",image3ShapeStretch:""}:void 0!==e.imageShapeFlipX?{...e,image1ShapeFlipX:"",image2ShapeFlipX:"",image3ShapeFlipX:""}:void 0!==e.imageShapeFlipY?{...e,image1ShapeFlipY:"",image2ShapeFlipY:"",image3ShapeFlipY:""}:void 0!==e.imageShapeStretch?{...e,image1ShapeStretch:"",image2ShapeStretch:"",image3ShapeStretch:""}:void 0!==e.columnBackgroundColor||void 0!==e.columnBackgroundColorType?{...e,column1BackgroundColor:"",column2BackgroundColor:"",column3BackgroundColor:""}:e))},2231:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>T,settings:()=>x});var n=a(910),o=a(9467),i=a(8085),l=a(3882);(0,l.addFilter)("stackable.text.design.no-text-attributes","stackable/text",(e=>(0,i.omit)(e,["title","subtitle","text1","text2","text3","text4"])));var r=a(2610),s=a(7545);const c=e=>{const{design:t="plain",columns:a=1,showTitle:n=!1,showSubtitle:o=!1}=e.attributes;return(0,l.applyFilters)("stackable.text.show",{columns:a&&a>1,reverseTitle:"plain"!==t,titleSpacing:n,subtitleSpacing:o},e)};var u=a(4863),g=a.n(u);const d=e=>{const t=(0,s.__getValue)(e.attributes),a=c(e),n=[],{columnPaddingUnit:o="px",tabletColumnPaddingUnit:i="px",mobileColumnPaddingUnit:l="px"}=e.attributes;n.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${o}`),paddingBottom:t("columnPaddingBottom",`%s${o}`),paddingRight:t("columnPaddingRight",`%s${o}`),paddingLeft:t("columnPaddingLeft",`%s${o}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${i}`),paddingRight:t("tabletColumnPaddingRight",`%s${i}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${i}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${i}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${l}`),paddingRight:t("mobileColumnPaddingRight",`%s${l}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${l}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${l}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-text__text-wrapper":(0,s.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${o}`),paddingBottom:t("columnPaddingBottom",`%s${o}`),paddingRight:t("columnPaddingRight",`%s${o}`),paddingLeft:t("columnPaddingLeft",`%s${o}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-text__text-wrapper":(0,s.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${i}`),paddingRight:t("tabletColumnPaddingRight",`%s${i}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${i}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${i}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-text__text-wrapper":(0,s.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${l}`),paddingRight:t("mobileColumnPaddingRight",`%s${l}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${l}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${l}`)})}}});const{showColumnRule:r=!1}=e.attributes;r&&n.push({".ugb-text__rule":(0,s.appendImportantAll)({background:t("columnRuleColor"),width:t("columnRuleWidth","%spx"),height:t("columnRuleHeight","%s%")})});const{showTitle:u=!0}=e.attributes;u&&n.push({".ugb-text__title-wrapper":{justifyContent:(0,s.appendImportant)(t("titleVerticalAlign"))},".ugb-text__title":{color:t("titleColor"),...(0,s.createTypographyStyles)("title%s","desktop",e.attributes),textAlign:t("titleAlign")||t("contentAlign")},tablet:{".ugb-text__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes),textAlign:t("titleTabletAlign")||t("tabletContentAlign")}},mobile:{".ugb-text__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes),textAlign:t("titleMobileAlign")||t("mobileContentAlign")}}});const{showSubtitle:d=!0}=e.attributes;return d&&n.push({".ugb-text__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","desktop",e.attributes),color:t("subtitleColor"),textAlign:t("subtitleAlign")},tablet:{".ugb-text__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","tablet",e.attributes),textAlign:t("subtitleTabletAlign")}},mobile:{".ugb-text__subtitle":{...(0,s.createTypographyStyles)("subtitle%s","mobile",e.attributes),textAlign:t("subtitleMobileAlign")}}}),n.push({".ugb-text__text p":{...(0,s.createTypographyStyles)("text%s","desktop",e.attributes),color:t("textColor"),textAlign:t("textAlign")},tablet:{".ugb-text__text p":{...(0,s.createTypographyStyles)("text%s","tablet",e.attributes),textAlign:t("textTabletAlign")}},mobile:{".ugb-text__text p":{...(0,s.createTypographyStyles)("text%s","mobile",e.attributes),textAlign:t("textMobileAlign")}}}),a.titleSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-text__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),a.subtitleSpacing&&n.push(...(0,s.createResponsiveStyles)(".ugb-text__subtitle","subtitle%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),n.push(...(0,s.createResponsiveStyles)(".ugb-text__text","text%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),g().all(n)};var b=a(7200),m=a(9858),p=a(1414),h=a(4184),k=a.n(h),_=a(8003),v=a(3749),y=a(78);(0,l.addFilter)("stackable.text.edit.layouts","defaults",(e=>[...e,{label:(0,_.__)("Plain",n.i18n),value:"plain",image:"dist/images/block-text-plain.1b415a1.png"},{label:(0,_.sprintf)((0,_._x)("%s %d","Nth Title",n.i18n),(0,_.__)("Side Title",n.i18n),1),value:"side-title-1",image:"dist/images/block-text-side-title-1.d314c39.png"},{label:(0,_.sprintf)((0,_._x)("%s %d","Nth Title",n.i18n),(0,_.__)("Side Title",n.i18n),2),value:"side-title-2",image:"dist/images/block-text-side-title-2.8fd0ffa.png"}])),(0,l.addFilter)("stackable.text.edit.inspector.layout.before","stackable/text",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(b.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,l.applyFilters)("stackable.text.edit.layouts",[]),onChange:e=>a({design:e})}))})),(0,l.addFilter)("stackable.text.edit.inspector.style.before","stackable/text",((e,t)=>{const{setAttributes:a}=t,{design:o="plain",columns:i=1,reverseTitle:l=!1,subtitleOnTop:u=!1,showColumnRule:g=!1,columnRuleColor:d="",columnRuleWidth:p="",columnRuleHeight:h="",showTitle:k=!1,titleTag:v="",titleColor:y="",titleVerticalAlign:f="",showSubtitle:C=!1,subtitleColor:A="",textColor:w=""}=t.attributes,T=c(t);return(0,r.createElement)(r.Fragment,null,e,(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("General",n.i18n),initialOpen:!0},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Columns",n.i18n),min:1,max:4,value:i,onChange:e=>a({columns:e}),default:1,className:"ugb--help-tip-general-columns"}),T.reverseTitle&&(0,r.createElement)(b.AdvancedToggleControl,{label:(0,_.__)("Reverse Title",n.i18n),checked:l,onChange:e=>a({reverseTitle:e})}),(0,r.createElement)(m.QA,{setAttributes:a,blockAttributes:t.attributes})),(0,r.createElement)(b.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,r.createElement)(b.ColumnPaddingControl,{label:(0,_.__)("Paddings",n.i18n),setAttributes:a,attributes:t.attributes}),T.titleSpacing&&(0,r.createElement)(m.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Title",n.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),T.subtitleSpacing&&(0,r.createElement)(m.n9,{attrNameTemplate:"subtitle%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Subtitle",n.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-title"})),(0,r.createElement)(m.n9,{attrNameTemplate:"text%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Text",n.i18n),min:0,max:100,allowReset:!0,className:"ugb--help-tip-spacing"}))),T.columns&&(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Column Rule",n.i18n),checked:g,onChange:e=>a({showColumnRule:e}),toggleOnSetAttributes:[],toggleAttributeName:"showColumnRule"},(0,r.createElement)(b.ColorPaletteControl,{value:d,onChange:e=>a({columnRuleColor:e}),label:(0,_.__)("Color",n.i18n)}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Width",n.i18n),min:1,max:4,allowReset:!0,value:p,onChange:e=>a({columnRuleWidth:e}),placeholder:"1"}),(0,r.createElement)(b.AdvancedRangeControl,{label:(0,_.__)("Height",n.i18n),min:1,max:100,allowReset:!0,value:h,onChange:e=>a({columnRuleHeight:e}),placeholder:"100"})),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Text",n.i18n),id:"text",hasToggle:!1},(0,r.createElement)(b.TypographyControlHelper,{attrNameTemplate:"text%s",setAttributes:a,blockAttributes:t.attributes}),(0,r.createElement)(b.ColorPaletteControl,{value:w,onChange:e=>a({textColor:e}),label:(0,_.__)("Text Color",n.i18n)}),(0,r.createElement)(m.n9,{attrNameTemplate:"Text%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-title"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Title",n.i18n),id:"title",hasToggle:"plain"===o,checked:k,onChange:e=>a({showTitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("title%s"),"titleColor","titleTag",...(0,s.createResponsiveAttributeNames)("title%sAlign")],toggleAttributeName:"showTitle"},(0,r.createElement)(b.HeadingButtonsControl,{value:v||"h2",defaultValue:"h2",onChange:e=>a({titleTag:e})}),(0,r.createElement)(b.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:v||"h2"}),(0,r.createElement)(b.ColorPaletteControl,{value:y,onChange:e=>a({titleColor:e}),label:(0,_.__)("Title Color",n.i18n)}),(0,r.createElement)(b.AdvancedToolbarControl,{label:(0,_.__)("Vertical Align",n.i18n),controls:"flex-vertical",value:f,onChange:e=>a({titleVerticalAlign:e})}),(0,r.createElement)(m.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-title"}))),(0,r.createElement)(b.PanelAdvancedSettings,{title:(0,_.__)("Subtitle",n.i18n),id:"subtitle",checked:C,onChange:e=>a({showSubtitle:e}),toggleOnSetAttributes:[...(0,s.createTypographyAttributeNames)("subtitle%s"),"subtitleColor","subtitleTag",...(0,s.createResponsiveAttributeNames)("subtitle%sAlign")],toggleAttributeName:"showSubtitle"},(0,r.createElement)(b.AdvancedToggleControl,{label:(0,_.__)("Subtitle on Top",n.i18n),checked:u,onChange:e=>a({subtitleOnTop:e})}),(0,r.createElement)(b.TypographyControlHelper,{attrNameTemplate:"subtitle%s",setAttributes:a,blockAttributes:t.attributes,placeholder:e=>.85*e}),(0,r.createElement)(b.ColorPaletteControl,{value:A,onChange:e=>a({subtitleColor:e}),label:(0,_.__)("Subtitle Color",n.i18n)}),(0,r.createElement)(m.n9,{attrNameTemplate:"Subtitle%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,r.createElement)(b.AlignButtonsControl,{label:(0,_.__)("Align",n.i18n),className:"ugb--help-tip-alignment-title"}))))}));const f=(0,v.compose)(p.FI,p.XQ,p.O0,(0,p.Q9)(),(0,p.lX)(["Title%sAlign","Subtitle%sAlign","Text%sAlign"]),(0,p.OB)(d,{editorMode:!0}),(0,p.UY)([[".ugb-text__title","title"],[".ugb-text__subtitle","subtitle"],[".ugb-text__text","text"]]))((e=>{const{className:t,setAttributes:a}=e,{columns:o=1,design:u="plain",reverseTitle:g=!1,title:d="",showTitle:m=!1,titleTag:p="",showSubtitle:h=!1,subtitle:v="",showColumnRule:f=!1,subtitleOnTop:C=!1}=e.attributes,A=c(e),w=k()([t,`ugb-text--design-${u}`,`ugb-text--columns-${o}`],(0,l.applyFilters)("stackable.text.mainclasses",{"ugb-text--reverse-title":A.reverseTitle&&g,"ugb-text--has-rule":f,"ugb-text--subtitle-top":C},e));return(0,r.createElement)(b.BlockContainer.Edit,{className:w,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(m||h)&&(0,r.createElement)("div",{className:"ugb-text__title-wrapper"},m&&(0,r.createElement)(y.RichText,{tagName:p||"h2",className:"ugb-text__title",value:d,onChange:e=>a({title:e}),placeholder:(0,_.__)("Block Title",n.i18n),keepPlaceholderOnFocus:!0}),h&&(0,r.createElement)(y.RichText,{tagName:"p",className:"ugb-text__subtitle",value:v,onChange:e=>a({subtitle:e}),placeholder:(0,_.__)("Subtitle",n.i18n),keepPlaceholderOnFocus:!0})),(0,r.createElement)("div",{className:"ugb-text__text-wrapper"},(0,i.range)(o||1).map((t=>{const n=t+1;return(0,r.createElement)(r.Fragment,{key:t},(0,r.createElement)("div",{className:"ugb-text__text"},(0,r.createElement)(y.RichText,{tagName:"p",className:`ugb-text__text-${n}`,value:e.attributes[`text${n}`],onChange:e=>a({[`text${n}`]:e}),placeholder:(0,s.descriptionPlaceholder)("medium"),keepPlaceholderOnFocus:!0})),f&&t!==o-1&&(0,r.createElement)("div",{className:`ugb-text__rule ugb-text__rule-${n}`,role:"presentation"}))}))))})})),C=(0,v.compose)(p.FI,(0,p.OB)(d))((e=>{const{attributes:t,className:a}=e,{columns:n=1,design:o="plain",reverseTitle:s=!1,title:u="",showTitle:g=!1,titleTag:d="",showSubtitle:m=!1,subtitle:p="",showColumnRule:h=!1,subtitleOnTop:_=!1}=t,v=c(e),f=k()([a,`ugb-text--design-${o}`,`ugb-text--columns-${n}`],(0,l.applyFilters)("stackable.text.mainclasses",{"ugb-text--reverse-title":v.reverseTitle&&s,"ugb-text--has-rule":h,"ugb-text--subtitle-top":_},e));return(0,r.createElement)(b.BlockContainer.Save,{className:f,blockProps:e,render:()=>(0,r.createElement)(r.Fragment,null,(g&&!y.RichText.isEmpty(u)||m&&!y.RichText.isEmpty(p))&&(0,r.createElement)("div",{className:"ugb-text__title-wrapper"},g&&!y.RichText.isEmpty(u)&&(0,r.createElement)(y.RichText.Content,{tagName:d||"h2",className:"ugb-text__title",value:u}),m&&!y.RichText.isEmpty(p)&&(0,r.createElement)(y.RichText.Content,{tagName:"p",className:"ugb-text__subtitle",value:p})),(0,r.createElement)("div",{className:"ugb-text__text-wrapper"},(0,i.range)(n||1).map((e=>{const a=e+1;return(0,r.createElement)(r.Fragment,{key:e},(0,r.createElement)("div",{className:"ugb-text__text"},(0,r.createElement)(y.RichText.Content,{tagName:"p",className:`ugb-text__text-${a}`,value:t[`text${a}`]})),h&&e!==n-1&&(0,r.createElement)("div",{className:`ugb-text__rule ugb-text__rule-${a}`,role:"presentation"}))}))))})})),A={design:{type:"string",default:"plain"},columns:{type:"number",default:1},reverseTitle:{type:"boolean",default:!1},alignment:{type:"string",default:"center"},showColumnRule:{type:"boolean",default:!1},columnRuleColor:{type:"string",default:""},columnRuleWidth:{type:"number",default:""},columnRuleHeight:{type:"number",default:""},showTitle:{type:"boolean",default:!1},titleTag:{type:"string",default:""},title:{source:"html",selector:".ugb-text__title",default:(0,_.__)("Block Title",n.i18n)},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},titleVerticalAlign:{type:"string",default:""},showSubtitle:{type:"boolean",default:!1},subtitle:{type:"string",source:"html",selector:".ugb-text__subtitle",default:(0,_.__)("Subtitle",n.i18n)},...(0,s.createTypographyAttributes)("subtitle%s"),subtitleColor:{type:"string",default:""},subtitleOnTop:{type:"boolean",default:!1},text1:{type:"string",source:"html",selector:".ugb-text__text-1",default:""},text2:{type:"string",source:"html",selector:".ugb-text__text-2",default:""},text3:{type:"string",source:"html",selector:".ugb-text__text-3",default:""},text4:{type:"string",source:"html",selector:".ugb-text__text-4",default:""},...(0,s.createTypographyAttributes)("text%s"),textColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("%s%sAlign",{type:"string",default:""},["Title","Subtitle","Text"],["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("%s%sBottomMargin",{type:"number",default:""},["Title","Subtitle","Text"],["","Tablet","Mobile"])},w=JSON.parse('{"name":"ugb/text","title":"Advanced Text","description":"Start with the building block of all page layouts.","category":"stackable-v2","keywords":["Paragraph"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:T,...B}=w,x={...B,title:B.title+" (v2)",icon:o.TextIcon,attributes:A,example:{attributes:{design:"side-title-1",columns:1,reverseTitle:!1,alignment:"center",showColumnRule:!1,showTitle:!0,title:"Block Title",titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showSubtitle:!1,subtitleLineHeightUnit:"em",subtitleTabletLineHeightUnit:"em",subtitleMobileLineHeightUnit:"em",subtitleOnTop:!1,text1:"Description for this block. Use this space for describing your block. Any text will do. Description for this block.",textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",uniqueClass:"ugb-286b500",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},supports:{align:["center","wide","full"],inserter:!n.v2disabledBlocks.includes(T),anchor:!0},edit:f,save:C,deprecated:[],modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,l.applyFilters)("stackable.text.custom-css.default","")}}};(0,l.addFilter)("stackable.text.setAttributes","stackable/text/design",((e,t)=>{if(void 0===e.design)return e;const a=t.attributes;return"side-title-1"!==e.design&&"side-title-2"!==e.design||"side-title-1"!==a.design&&"side-title-2"!==a.design&&(e.showTitle=!0),e}))},4249:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>L,settings:()=>H});var n=a(9467),o=a(8085),i=a(3882);(0,i.addFilter)("stackable.video-popup.design.filtered-block-attributes","stackable/video-popup",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,o.omit)(e,["videoLink","videoID","video-popup3","previewBackgroundMediaId",...t&&t.previewBackgroundMediaId?["previewBackgroundMediaUrl"]:[]])}));var l=a(2610),r=a(7462);a(7294);const s=function(e){return(0,l.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},e),(0,l.createElement)("path",{d:"M16 29l12-9-12-9v18zm4-29C8.95 0 0 8.95 0 20s8.95 20 20 20 20-8.95 20-20S31.05 0 20 0zm0 36c-8.82 0-16-7.18-16-16S11.18 4 20 4s16 7.18 16 16-7.18 16-16 16z"}))},c=function(e){return(0,l.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 320"},e),(0,l.createElement)("path",{d:"M0 0v320l256-160L0 0z"}))},u=function(e){return(0,l.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},e),(0,l.createElement)("path",{d:"M17 34C7.6 34 0 26.4 0 17S7.6 0 17 0s17 7.6 17 17-7.6 17-17 17zm0-32C8.7 2 2 8.7 2 17s6.7 15 15 15 15-6.7 15-15S25.3 2 17 2z"}),(0,l.createElement)("path",{d:"M12 25.7V8.3L27 17l-15 8.7zm2-14v10.5l9-5.3-9-5.2z"}))};var g=a(8003),d=a(910);const b={normal:e=>(0,l.createElement)(c,{style:e,width:"30",height:"30"}),circle:e=>(0,l.createElement)(s,{style:e,width:"50",height:"50"}),outline:e=>(0,l.createElement)(u,{style:e,width:"50",height:"50"})};(0,g.__)("Normal Play Button",d.i18n),(0,g.__)("Play Button with Circle",d.i18n),(0,g.__)("Outline Play Button",d.i18n);var m=a(4184),p=a.n(m);const h=[{attributes:{videoLink:{type:"string"},videoID:{type:"string",source:"attribute",selector:"div",attribute:"data-video"},playButtonType:{type:"string",default:"normal"},playButtonColor:{type:"string",default:"#ffffff"},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string",default:"#000000"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},align:{type:"string"},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},hoverEffect:{type:"string",default:""},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},overlayColor:{type:"string"},mediaLink:{type:"string"},mediaID:{type:"number"}},save:e=>{const{className:t}=e,{videoID:a,playButtonType:n,playButtonColor:o="#ffffff",backgroundImageURL:r,backgroundColorType:s="",backgroundColor:c,backgroundColor2:u,backgroundColorDirection:g=0,backgroundType:d="",backgroundOpacity:m,design:h="basic",borderRadius:k=12,shadow:_=3}=e.attributes,v=p()([t,"ugb-video-popup","ugb-video-popup--v2",`ugb-video-popup--design-${h}`,`ugb-video-popup--button-${n}`,"ugb--background-opacity-"+1*Math.round(m/1)],(0,i.applyFilters)("stackable.video-popup.mainclasses_1_15_6",{"ugb--has-background":c||r,"ugb--has-background-image":r,[`ugb--shadow-${_}`]:"plain"!==h&&3!==_,"ugb--has-background-gradient":"gradient"===s,"ugb--has-background-video":"video"===d},h,e)),y={backgroundColor:c||void 0,backgroundImage:r?`url(${r})`:void 0,"--ugb-background-color":r||"gradient"===s?c:void 0,"--ugb-background-color2":"gradient"===s&&u?u:void 0,"--ugb-background-direction":"gradient"===s?`${g}deg`:void 0,borderRadius:"plain"!==h&&12!==k?k:void 0};return(0,l.createElement)("div",{className:v,style:y,"data-video":a},"video"===d&&(0,l.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:r}),(0,i.applyFilters)("stackable.video-popup.save.output.before_1_15_6",null,h,e),(0,l.createElement)("div",{className:"ugb-video-popup__wrapper"},(0,l.createElement)("a",{href:"#",className:"ugb-video-popup__overlay"}),(0,l.createElement)("span",{className:"ugb-video-popup__play-button"},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return b[e]({fill:t})}(n,o))))},migrate:e=>{const t=e=>(e||"").replace(/\.ugb-video-popup([\s\{\[\.\#\:])/g,".ugb-video-popup__wrapper$1");return{...e,previewBackgroundColorType:e.backgroundColorType,previewBackgroundColor:e.backgroundColor,previewBackgroundColor2:e.backgroundColor2,previewBackgroundGradientDirection:e.backgroundColorDirection,previewBackgroundMediaId:e.backgroundImageID,previewBackgroundMediaUrl:e.backgroundImageURL,previewBackgroundTintStrength:e.backgroundOpacity,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}}];var k=a(7200),_=a(9858),v=a(7545);const y={normal:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 320"},e),(0,l.createElement)("path",{d:"M0 0v320l256-160L0 0z"}))}),{className:"ugb-play-button-normal",width:"30",height:"30"}),circle:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},e),(0,l.createElement)("path",{d:"M16 29l12-9-12-9v18zm4-29C8.95 0 0 8.95 0 20s8.95 20 20 20 20-8.95 20-20S31.05 0 20 0zm0 36c-8.82 0-16-7.18-16-16S11.18 4 20 4s16 7.18 16 16-7.18 16-16 16z"}))}),{className:"ugb-play-button-cirle",width:"50",height:"50"}),outline:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},e),(0,l.createElement)("path",{d:"M17 34C7.6 34 0 26.4 0 17S7.6 0 17 0s17 7.6 17 17-7.6 17-17 17zm0-32C8.7 2 2 8.7 2 17s6.7 15 15 15 15-6.7 15-15S25.3 2 17 2z"}),(0,l.createElement)("path",{d:"M12 25.7V8.3L27 17l-15 8.7zm2-14v10.5l9-5.3-9-5.2z"}))}),{className:"ugb-play-button-outline",width:"50",height:"50"})},f=[{value:"normal",label:(0,g.__)("Normal Play Button",d.i18n)},{value:"circle",label:(0,g.__)("Play Button with Circle",d.i18n)},{value:"outline",label:(0,g.__)("Outline Play Button",d.i18n)}],C=e=>y[e],A=e=>{const{showBlockBackground:t=!1,blockInnerWidth:a="",align:n=""}=e.attributes,o=!t&&"full"===n||t&&"full"===a;return(0,i.applyFilters)("stackable.video-popup.show",{containerWidth:!o,borderRadius:!o,border:!0},e)};var w=a(1414),T=a(8423),B=a(4863),x=a.n(B);const S=e=>{const t=(0,v.__getValue)(e.attributes),a=A(e),{}=e.attributes,n=[];a.containerWidth&&n.push({".ugb-video-popup__wrapper":{maxWidth:""!==t("width")?t("width","%spx"):void 0},tablet:{".ugb-video-popup__wrapper":{maxWidth:""!==t("tabletWidth")?t("tabletWidth","%spx"):void 0}},mobile:{".ugb-video-popup__wrapper":{maxWidth:""!==t("mobileWidth")?t("mobileWidth","%spx"):void 0}}}),a.border&&n.push({...(0,v.createBorderStyleSet)("column%s",".ugb-video-popup__wrapper",e.attributes)}),n.push({".ugb-video-popup__wrapper":{height:""!==t("height")?t("height","%spx !important"):void 0,borderRadius:a.borderRadius&&""!==t("borderRadius")?t("borderRadius","%spx"):void 0},".ugb-video-popup__play-button svg":{fill:""!==t("playButtonColor")?t("playButtonColor","%s !important"):void 0,height:""!==t("playButtonSize")?t("playButtonSize","%spx"):void 0,width:""!==t("playButtonSize")?t("playButtonSize","%spx"):void 0,opacity:""!==t("playButtonOpacity")?t("playButtonOpacity"):void 0},tablet:{".ugb-video-popup__wrapper":{height:""!==t("tabletHeight")?t("tabletHeight","%spx !important"):void 0},".ugb-video-popup__play-button svg":{height:""!==t("tabletPlayButtonSize")?t("tabletPlayButtonSize","%spx"):void 0,width:""!==t("tabletPlayButtonSize")?t("tabletPlayButtonSize","%spx"):void 0}},mobile:{".ugb-video-popup__wrapper":{height:""!==t("mobileHeight")?t("mobileHeight","%spx !important"):void 0},".ugb-video-popup__play-button svg":{height:""!==t("mobilePlayButtonSize")?t("mobilePlayButtonSize","%spx"):void 0,width:""!==t("mobilePlayButtonSize")?t("mobilePlayButtonSize","%spx"):void 0}}}),n.push({...(0,T._H)("preview%s","ugb-video-popup__wrapper",e.attributes)});const{previewBackgroundTintStrength:o="",previewBackgroundColor:i=""}=e.attributes;return(o||i)&&n.push({".ugb-video-popup__wrapper:hover:before":{opacity:i&&""===o?.2:o>=5?o/10-.3:o/10+.3}}),x().all(n)};var E=a(7537),N=a(3749);(0,i.addFilter)("stackable.video-popup.edit.inspector.style.before","stackable/video-popup",((e,t)=>{const{setAttributes:a}=t,{borderRadius:n="",shadow:o="",videoLink:i="",videoID:r="",playButtonType:s,playButtonColor:c="#ffffff",playButtonOpacity:u="",width:b="",tabletWidth:m="",mobileWidth:p="",showBlockTitle:h=!1,showBlockDescription:y=!1}=t.attributes,C=A(t);return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(k.PanelAdvancedSettings,{title:(0,g.__)("General",d.i18n),initialOpen:!0},(0,l.createElement)(k.ImageControl,{label:(0,g.__)("Popup Option #1: Upload Video",d.i18n),help:(0,g.__)("Use .mp4 format for videos",d.i18n),onRemove:()=>a({videoLink:"",videoID:""}),onChange:e=>{a({videoLink:e.url,videoID:e.url})},imageID:(0,v.urlIsVideo)(i)?r:"",imageURL:(0,v.urlIsVideo)(i)?i:"",allowedTypes:["video"]}),(0,l.createElement)(E.TextControl,{label:(0,g.__)("Popup Option #2: Video URL",d.i18n),help:(0,g.__)("Paste a Youtube / Vimeo URL",d.i18n),placeholder:"https://",value:(0,v.urlIsVideo)(i)?"":i,onChange:e=>a({videoLink:e,videoID:(0,v.getVideoProviderFromURL)(e).id}),min:1,max:4})),(0,l.createElement)(k.PanelAdvancedSettings,{title:(0,g.__)("Container",d.i18n),initialOpen:!1},(0,l.createElement)(k.ButtonIconPopoverControl,{label:(0,g.__)("Background",d.i18n),popoverLabel:(0,g.__)("Background",d.i18n),onReset:()=>{a({previewBackgroundColorType:"",previewBackgroundColor:"",previewBackgroundColor2:"",previewBackgroundColorOpacity:"",previewBackgroundMediaID:"",previewBackgroundMediaUrl:"",previewBackgroundTintStrength:"",previewFixedBackground:""})},allowReset:t.attributes.previewBackgroundColor||t.attributes.previewBackgroundMediaUrl,hasColorPreview:t.attributes.previewBackgroundColor,hasImagePreview:t.attributes.previewBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.previewBackgroundColorType?[t.attributes.previewBackgroundColor,t.attributes.previewBackgroundColor2]:t.attributes.previewBackgroundColor,imageUrlPreview:t.attributes.previewBackgroundMediaUrl},(0,l.createElement)(k.BackgroundControlsHelper,{attrNameTemplate:"preview%s",setAttributes:a,blockAttributes:t.attributes})),C.containerWidth&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(k.WhenResponsiveScreen,{screen:"desktop"},(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Width",d.i18n),value:b,min:"200",max:"2000",placeholder:"2000",allowReset:!0,onChange:e=>t.setAttributes({width:e}),className:"ugb--help-tip-video-popup-width"})),(0,l.createElement)(k.WhenResponsiveScreen,{screen:"tablet"},(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Width",d.i18n),value:m,min:"200",max:"1000",placeholder:"1000",allowReset:!0,onChange:e=>t.setAttributes({tabletWidth:e}),className:"ugb--help-tip-video-popup-width"})),(0,l.createElement)(k.WhenResponsiveScreen,{screen:"mobile"},(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Width",d.i18n),value:p,min:"200",max:"700",placeholder:"700",allowReset:!0,onChange:e=>t.setAttributes({mobileWidth:e}),className:"ugb--help-tip-video-popup-width"}))),(0,l.createElement)(_.n9,{attrNameTemplate:"%sHeight",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Height",d.i18n),min:0,max:1e3,allowReset:!0,placeholder:"400",className:"ugb--help-tip-video-popup-height"})),C.border&&(0,l.createElement)(k.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),C.borderRadius&&(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Border Radius",d.i18n),value:n,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Shadow / Outline",d.i18n),value:o,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,l.createElement)(k.PanelAdvancedSettings,{title:(0,g.__)("Play Button",d.i18n),id:"play-button",initialOpen:!1},(0,l.createElement)(E.SelectControl,{label:(0,g.__)("Button Style",d.i18n),value:s,options:f.map((e=>{let{value:t,label:a}=e;return{value:t,label:a}})),onChange:e=>{a({playButtonType:e})}}),(0,l.createElement)(_.n9,{attrNameTemplate:"%sPlayButtonSize",setAttributes:a,blockAttributes:t.attributes},(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Size",d.i18n),min:10,max:200,allowReset:!0,placeholder:"40"})),(0,l.createElement)(k.ColorPaletteControl,{label:(0,g.__)("Color",d.i18n),value:c,onChange:e=>a({playButtonColor:e})}),(0,l.createElement)(k.AdvancedRangeControl,{label:(0,g.__)("Opacity",d.i18n),min:0,max:1,step:.1,value:u,onChange:e=>a({playButtonOpacity:e}),allowReset:!0,placeholder:"1.0"})),(h||y)&&(0,l.createElement)(k.PanelSpacingBody,{initialOpen:!1,blockProps:t}))}));const R=(0,N.compose)(w.FI,w.XQ,w.O0,(0,w.Q9)(),(0,w.OB)(S,{editorMode:!0}),(0,w.UY)([[".ugb-video-popup__wrapper","background"],[".ugb-video-popup__play-button svg","play-button"]]))((e=>{const{className:t}=e,{playButtonType:a,shadow:n=""}=e.attributes,o=p()([t,"ugb-video-popup--v3"],(0,i.applyFilters)("stackable.video-popup.mainclasses",{},e)),r=p()(["ugb-video-popup__wrapper"],(0,i.applyFilters)("stackable.video-popup.boxclasses",{[`ugb--shadow-${n}`]:""!==n},e));return(0,l.createElement)(k.BlockContainer.Edit,{className:o,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.Gc,{className:r,backgroundAttrName:"preview%s",blockProps:e},(0,l.createElement)("span",{className:"ugb-video-popup__play-button"},C(a))))})}));var P=a(3726),I=a.n(P);const $=(0,N.compose)(w.FI,(0,w.OB)(S))((e=>{const{className:t}=e,{videoID:a,playButtonType:n,shadow:o=""}=e.attributes,r=p()([t,"ugb-video-popup--v3"],(0,i.applyFilters)("stackable.video-popup.mainclasses",{},e)),s=p()(["ugb-video-popup__wrapper"],(0,i.applyFilters)("stackable.video-popup.boxclasses",{[`ugb--shadow-${o}`]:""!==o},e));return(0,l.createElement)(k.BlockContainer.Save,{className:r,blockProps:e,render:()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.Gc,{className:s,backgroundAttrName:"preview%s",blockProps:e,"data-video":I()(a)},(0,l.createElement)("button",{className:"ugb-video-popup__overlay","aria-label":"Play"},(0,l.createElement)("span",{className:"ugb-video-popup__play-button"},C(n)))))})})),U={videoLink:{type:"string"},videoID:{type:"string",source:"attribute",selector:"[data-video]",attribute:"data-video"},...(0,v.createResponsiveAttributes)("%sWidth",{type:"number",default:""}),...(0,v.createResponsiveAttributes)("%sHeight",{type:"number",default:""}),borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},playButtonType:{type:"string",default:"normal"},playButtonColor:{type:"string"},playButtonSize:{type:"number",default:""},playButtonOpacity:{type:"number",default:""},...(0,v.createBorderAttributes)("column%s"),...(0,T.yA)("preview%s"),previewBackgroundColor:{type:"string",default:"#000000"},hoverEffect:{type:"string",default:""}},F=JSON.parse('{"name":"ugb/video-popup","title":"Video Popup","description":"Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.","category":"stackable-v2","keywords":["YouTube","Vimeo","Embed Mp4"],"textdomain":"stackable-ultimate-gutenberg-blocks"}'),{name:L,...M}=F,H={...M,title:M.title+" (v2)",icon:n.VideoPopupIcon,attributes:U,example:{attributes:{playButtonType:"normal",previewBackgroundColor:"#000000",previewBackgroundMediaUrl:"https://source.unsplash.com/800x500/?sea,coast,water",previewBackgroundCustomSizeUnit:"%",previewTabletBackgroundCustomSizeUnit:"%",previewMobileBackgroundCustomSizeUnit:"%",uniqueClass:"ugb-ee3d6d0",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0,showBlockTitle:!1,blockTitleLineHeightUnit:"em",blockTitleTabletLineHeightUnit:"em",blockTitleMobileLineHeightUnit:"em",showBlockDescription:!1,blockDescriptionLineHeightUnit:"em",blockDescriptionTabletLineHeightUnit:"em",blockDescriptionMobileLineHeightUnit:"em"}},supports:{align:["center","wide","full"],inserter:!d.v2disabledBlocks.includes(L),anchor:!0},deprecated:h,edit:R,save:$,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"block-title":{blockTitleMarginBottomImportant:!0,blockDescriptionMarginBottomImportant:!0},"block-designs":!0,"custom-css":{default:(0,i.applyFilters)("stackable.video-popup.custom-css.default","")}}}},257:(e,t,a)=>{"use strict";a.d(t,{Hr:()=>_,YG:()=>p,ZP:()=>C});var n=a(7462),o=a(4942),i=a(2610),l=a(7200),r=a(3726),s=a.n(r),c=a(8003),u=a(4184),g=a.n(u),d=a(910),b=a(78),m=a(4512);const p=e=>{const{className:t="",align:a="center",size:n="normal",url:o="",icon:l=null,color:r,text:s,backgroundColor:c,borderRadius:u,design:d="basic",newTab:p=!1}=e,h={borderRadius:"link"===d||"plain"===d?void 0:u+"px",backgroundColor:c||void 0,borderColor:"ghost"===d?c:void 0,color:"ghost"===d||"plain"===d?c:"link"===d?void 0:r};h.backgroundColor="ghost"===d?void 0:h.backgroundColor,h.backgroundColor="plain"===d?void 0:h.backgroundColor,h.backgroundColor="link"===d?void 0:h.backgroundColor;const k=g()([t,"ugb-button",`ugb-button--align-${a}`,`ugb-button--size-${n}`],{[`ugb-button--design-${d}`]:"basic"!==d,"ugb-button--has-icon":l});return(0,i.createElement)("div",null,(0,i.createElement)("a",{className:k,href:o,style:h,target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0},l&&"link"!==d&&(0,i.createElement)(m.Z.Content,{value:l,style:{color:"ghost"===d||"plain"===d?c:r}}),(0,i.createElement)(b.RichText.Content,{tagName:"span",className:"link"===d?"":"ugb-button--inner",style:{color:"ghost"===d||"plain"===d?c:"link"===d?void 0:r},value:s})))};var h=a(8085);const k=e=>{const{setAttributes:t}=e,a=t=>(0,h.camelCase)((0,c.sprintf)(e.attrNameTemplate,t)),o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=e.blockAttributes[a(t)];return 0===o?o:o||n};return(0,i.createElement)(C,(0,n.Z)({design:o("Design",e.designDefault),size:o("Size","normal"),text:o("Text",""),shadow:o("Shadow"),hoverEffect:o("HoverEffect"),ghostToNormalEffect:o("HoverGhostToNormal"),icon:o("Icon"),iconPosition:o("IconPosition"),onChange:e=>t({[a("Text")]:e}),url:o("Url"),newTab:o("NewTab"),noFollow:o("NoFollow"),sponsored:o("Sponsored"),ugc:o("Ugc"),onChangeUrl:e=>t({[a("Url")]:e}),onChangeNewTab:e=>t({[a("NewTab")]:e}),onChangeNoFollow:e=>t({[a("NoFollow")]:e}),onChangeSponsored:e=>t({[a("Sponsored")]:e}),onChangeUgc:e=>t({[a("Ugc")]:e}),onChangeIcon:e=>t({[a("Icon")]:e}),isSelected:e.isSelected},e))};k.defaultProps={attrNameTemplate:"%s",setAttributes:()=>{},blockAttributes:{},designDefault:"basic"},(k.Content=e=>{const t=t=>(0,h.camelCase)((0,c.sprintf)(e.attrNameTemplate,t)),a=function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=e.blockAttributes[t(a)];return 0===o?o:o||n};return(0,i.createElement)(C.Content,(0,n.Z)({design:a("Design",e.designDefault),size:a("Size","normal"),text:a("Text"),icon:a("Icon"),newTab:a("NewTab"),url:a("Url"),noFollow:a("NoFollow"),sponsored:a("Sponsored"),ugc:a("Ugc"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),shadow:a("Shadow"),iconPosition:a("IconPosition")},e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};const _=k;var v=a(8850);let y=1;class f extends i.Component{constructor(){super(...arguments),(0,o.Z)(this,"hideUrlPopup",(()=>{let e=document.body;document.querySelector('iframe[name="editor-canvas"]')&&(e=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.body),e.removeEventListener("click",this.outsideClickHandler),this.setState({openPopup:!1})})),this.state={openPopup:!1},this.buttonInstanceId=y++,this.onButtonClickHandler=this.onButtonClickHandler.bind(this),this.outsideClickHandler=this.outsideClickHandler.bind(this),this.onKeyPressHandler=this.onKeyPressHandler.bind(this)}onButtonClickHandler(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;if(!this.state.openPopup){let e=document.body;document.querySelector('iframe[name="editor-canvas"]')&&(e=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.body),e.addEventListener("click",this.outsideClickHandler)}this.setState({openPopup:!0})}outsideClickHandler(e){e.target.closest(`.ugb-button-container-${this.buttonInstanceId}`)||e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover:not(.block-editor-block-list__block-popover)")||e.target.closest(".block-editor-link-control__search-item-top")||e.target.closest(".stk-button-controls__wrapper")?this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-svg-icon-placeholder__button")&&this.hideUrlPopup():this.hideUrlPopup()}onKeyPressHandler(e){e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")||this.hideUrlPopup()}render(){const{iconButton:e,className:t="",size:a="normal",text:n="",onChange:o=(()=>{}),design:r="basic",shadow:s=0,iconPosition:u="",hoverEffect:p="",ghostToNormalEffect:h=!1,url:k="",newTab:_="",noFollow:y="",sponsored:f="",ugc:C="",onChangeUrl:A=null,onChangeNewTab:w=null,onChangeNoFollow:T=null,onChangeSponsored:B=null,onChangeUgc:x=null,onChangeIcon:S=null,icon:E=null,isSelected:N=null}=this.props,R=g()([t,"ugb-button",`ugb-button--size-${a}`],{"ugb-button--icon-only":e,"ugb-button--ghost-to-normal-effect":h,[`ugb--hover-effect-${p}`]:"link"!==r&&p,[`ugb--shadow-${s}`]:"basic"===r&&s,[`ugb-button--design-${r}`]:"basic"!==r,"ugb-button--has-icon":E,[`ugb-button--icon-position-${u}`]:u}),P=g()(["ugb-button-container",`ugb-button-container-${this.buttonInstanceId}`,this.props.containerClassName]),I=(null===N||N)&&this.state.openPopup;return(0,i.createElement)("div",{className:P,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},(0,i.createElement)("a",{className:R},E&&"link"!==r&&(0,i.createElement)(i.Fragment,null,!S&&(0,i.createElement)(m.Z,{value:E}),S&&(0,i.createElement)(v.Z,{value:E,onChange:S,isOpen:e?I:null})),!e&&(0,i.createElement)(b.RichText,{tagName:"span",className:"link"===r?"":"ugb-button--inner",placeholder:(0,c.__)("Button text",d.i18n),value:n,onChange:o,withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0}),I&&(0,i.createElement)(l.UrlInputPopover,{value:k,onChange:A,newTab:_,noFollow:y,sponsored:f,ugc:C,onChangeNewTab:w,onChangeNoFollow:T,onChangeSponsored:B,onChangeUgc:x,disableSuggestions:this.props.disableSuggestions})))}}f.defaultProps={iconButton:!1,disableSuggestions:!1,containerClassName:"",className:"",size:"normal",text:"",onChange:()=>{},design:"basic",shadow:0,iconPosition:"",hoverEffect:"",ghostToNormalEffect:!1,url:"",newTab:"",noFollow:"",sponsored:"",ugc:"",onChangeUrl:null,onChangeNewTab:null,onChangeNoFollow:null,onChangeSponsored:null,onChangeUgc:null,onChangeIcon:null,icon:null,isSelected:null},f.Content=e=>{const{iconButton:t,className:a="",size:o="normal",url:l="",icon:r=null,text:c="",design:u="basic",newTab:d=!1,shadow:p=0,iconPosition:h=!1,hoverEffect:k="",noFollow:_=!1,sponsored:v=!1,ugc:y=!1,ghostToNormalEffect:f=!1,target:C="",role:A="",title:w="",containerClassName:T=""}=e,B=g()([a,"ugb-button",`ugb-button--size-${o}`],{"ugb-button--icon-only":t,"ugb-button--ghost-to-normal-effect":f,[`ugb--hover-effect-${k}`]:"link"!==u&&k,[`ugb--shadow-${p}`]:"basic"===u&&p,[`ugb-button--design-${u}`]:"basic"!==u,"ugb-button--has-icon":r,[`ugb-button--icon-position-${h}`]:h}),x=g()(["ugb-button-container",T]),S=[];d&&(S.push("noopener"),S.push("noreferrer")),_&&S.push("nofollow"),v&&S.push("sponsored"),y&&S.push("ugc");const E={};return A&&(E.role=A),(0,i.createElement)("div",{className:x},(c||t)&&(0,i.createElement)("a",(0,n.Z)({className:B,href:l,target:C||d?C||"_blank":void 0,rel:e.rel||S.join(" "),title:s()(w)},E),r&&"link"!==u&&(0,i.createElement)(m.Z.Content,{value:r}),!t&&(0,i.createElement)(b.RichText.Content,{tagName:"span",className:"link"===u?"":"ugb-button--inner",value:c})))};const C=f},6573:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(7462),o=a(2610);a(7294);const i=function(e){return(0,o.createElement)("svg",(0,n.Z)({"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",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),(0,o.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"}))};var l=a(7545),r=a(8085);const s=()=>(0,o.createElement)(i,{className:"ugb-icon-is-loading"}),c=e=>{const[t,a]=(0,o.useState)(0),i=()=>{a(t+1)};(0,o.useEffect)((()=>{(0,l.faAPILoaded)().then(i)}),[]);const c=(0,r.pick)(e,["className","color","fill","style","onClick"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return(0,o.createElement)(o.RawHTML,c,e.value);if(!(0,l.faIsAPILoaded)())return(0,o.createElement)(s,null);const u=e.value?e.value.replace(/-.*$/,""):e.prefix,g=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(u&&g){const e=(0,l.faGetSVGIcon)(u,g);return e?(0,o.createElement)(o.RawHTML,c,e):((0,l.faIconLoaded)(u,g).then(i),(0,o.createElement)(s,null))}const d=(0,l.faGetSVGIcon)("far","smile");return(0,o.createElement)(o.RawHTML,(0,n.Z)({},c,{className:`${e.className} ugb-icon--faded`}),d)};c.Content=e=>{const t=(0,r.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return(0,o.createElement)(o.RawHTML,t,e.value);const a=e.value?e.value.replace(/-.*$/,""):e.prefix,n=e.value?e.value.replace(/^.*?-/,""):e.iconName,i=(0,l.faGetSVGIcon)(a,n);return(0,o.createElement)(o.RawHTML,t,i)},c.defaultProps={prefix:"",iconName:"",value:""};const u=c},9858:(e,t,a)=>{"use strict";a.d(t,{iz:()=>T,df:()=>n.ZP,Hr:()=>n.Hr,Gm:()=>tt,QA:()=>H,iU:()=>it,Gc:()=>E,Ee:()=>I,n9:()=>F,JB:()=>d,xo:()=>rt.Z,ux:()=>lt.Z});var n=a(257),o=a(7462),i=a(2610),l=a(7545),r=a(8085),s=a(4184),c=a.n(s),u=a(8003);const g=e=>{const{setAttributes:t}=e,a=t=>(0,r.camelCase)((0,u.sprintf)(e.attrNameTemplate,t)),n=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=e.blockAttributes[a(t)];return 0===o?o:o||n},s=Object.keys(l.SOCIAL_SITES).reduce(((e,o)=>({...e,[`${o}Url`]:n(`${o}Url`),[`onChange${(0,r.upperFirst)(o)}Url`]:e=>t({[a(`${o}Url`)]:e})})),{});return(0,i.createElement)(h,(0,o.Z)({design:n("Design",e.designDefault),size:n("Size","normal"),shadow:n("Shadow"),hoverEffect:n("HoverEffect"),ghostToNormalEffect:n("HoverGhostToNormal"),useSocialColors:n("UseSocialColors"),newTab:n("NewTab"),onChangeNewTab:e=>t({[a("NewTab")]:e}),isSelected:e.isSelected},s,e))};g.defaultProps={attrNameTemplate:"%s",setAttributes:()=>{},blockAttributes:{},designDefault:"basic"},(g.Content=e=>{const t=t=>(0,r.camelCase)((0,u.sprintf)(e.attrNameTemplate,t)),a=function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=e.blockAttributes[t(a)];return 0===o?o:o||n},n=Object.keys(l.SOCIAL_SITES).reduce(((e,t)=>({...e,[`${t}Url`]:a(`${t}Url`)})),{});return(0,i.createElement)(h.Content,(0,o.Z)({design:a("Design",e.designDefault),size:a("Size","normal"),newTab:a("NewTab"),hoverEffect:a("HoverEffect"),useSocialColors:a("UseSocialColors"),ghostToNormalEffect:a("HoverGhostToNormal"),shadow:a("Shadow")},n,e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};const d=g,b=e=>(0,i.createElement)(i.Fragment,null,Object.keys(l.SOCIAL_SITES).map((t=>{const a=c()(["ugb-social-button",`ugb-button-${t}`],{"ugb-social-button--social-colors":e.useSocialColors});return(!0===e[`show${(0,r.upperFirst)(t)}`]||e[`${t}Url`]&&!1!==e[`show${(0,r.upperFirst)(t)}`])&&(0,i.createElement)(n.ZP,(0,o.Z)({key:t,iconButton:!0,className:a,rel:"noopener noreferrer nofollow",icon:l.SOCIAL_SITES[t].icon,url:e[`${t}Url`],onChangeUrl:a=>{let n=a;"email"===t&&n.match(/^[^:]+@./)&&(n=`mailto:${n}`),e[`onChange${(0,r.upperFirst)(t)}Url`](n)},onChangeNoFollow:!1,disableSuggestions:!0},e))}))),m=Object.keys(l.SOCIAL_SITES).reduce(((e,t)=>({...e,[`${t}Url`]:"",[`show${(0,r.upperFirst)(t)}`]:null})),{});b.defaultProps={useSocialColors:!0,...m},b.Content=e=>(0,i.createElement)(i.Fragment,null,Object.keys(l.SOCIAL_SITES).map((t=>{const a=c()(["ugb-social-button",`ugb-button-${t}`],{"ugb-social-button--social-colors":e.useSocialColors});return!1!==e[`show${(0,r.upperFirst)(t)}`]&&(0,i.createElement)(n.ZP.Content,(0,o.Z)({key:t,className:a,iconButton:!0,rel:"noopener noreferrer nofollow",icon:l.SOCIAL_SITES[t].icon,url:e[`${t}Url`]||"#"},e))})));const p=Object.keys(l.SOCIAL_SITES).reduce(((e,t)=>({...e,[`${t}Url`]:"",[`show${(0,r.upperFirst)(t)}`]:null})),{});b.Content.defaultProps={useSocialColors:!0,...p};const h=b,k=stk.blockComponents,_=stk.hooks;var v=a(78);const y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.keys(e).reduce(((o,i)=>({...o,[(0,l.prependCSSClass)(i,t,a,n?".editor-styles-wrapper":"")]:e[i]})),{})},f=e=>Object.keys(e).reduce(((t,a)=>{const n=Object.keys(e[a]).reduce(((t,n)=>{const o=e[a][n];if(void 0===o)return t;const i=n.replace(/^(--?)?(.*?$)/,((e,t,a)=>`${t||""}${(0,r.kebabCase)(a)}`));return t+"\n\t"+i+": "+o+";"}),"");return t.push("\n\n"+a+" {"+n+"\n}"),t}),[]),C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["desktop"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1025,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:768;const n=(0,r.sortBy)("string"==typeof e?e.split(",").map((e=>e.trim())):e);return(0,r.isEqual)(n,["desktop","tablet"])?"@media screen and (min-width: "+a+"px)":(0,r.isEqual)(n,["desktop"])?"@media screen and (min-width: "+t+"px)":(0,r.isEqual)(n,["mobile","tablet"])?"@media screen and (max-width: "+t+"px)":(0,r.isEqual)(n,["tablet"])?"@media screen and (min-width: "+a+"px) and (max-width: "+t+"px)":(0,r.isEqual)(n,["mobile"])?"@media screen and (max-width: "+a+"px)":null},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1025,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:768,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=[];Object.keys(e).forEach((t=>{if(["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","ie11","editor"].includes(t)){const a=t;Object.keys(e[a]).forEach((t=>{Object.keys(e[a][t]).forEach((n=>void 0===e[a][t][n]?delete e[a][t][n]:{})),Object.keys(e[a][t]).length||delete e[a][t]})),Object.keys(e[a]).length||delete e[a]}else Object.keys(e[t]).forEach((a=>void 0===e[t][a]?delete e[t][a]:{})),Object.keys(e[t]).length||delete e[t]}));const c=(0,r.omit)(e,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","ie11","editor","saveOnly"]);if(Object.keys(c).length){const e=y(c,t,a,i);Array.prototype.push.apply(s,f(e))}if(void 0!==e.desktopTablet){const l=y(e.desktopTablet,t,a,i),r=f(l);r&&(i?r.forEach((e=>{s.push("\n\n"+C(["desktop","tablet"],n,o)+" {\n"+e+" }")})):s.push(`\n\n${C(["desktop","tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.desktopOnly){const l=y(e.desktopOnly,t,a,i),r=f(l);r&&(i?r.forEach((e=>{s.push("\n\n"+C(["desktop"],n,o)+" {\n"+e+" }")})):s.push(`\n\n${C(["desktop"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.tablet){const l=y(e.tablet,t,a,i),r=f(l);r&&(i?r.forEach((e=>{s.push("\n\n"+C(["mobile","tablet"],n,o)+" {\n"+e+" }")})):s.push(`\n\n${C(["mobile","tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.tabletOnly){const l=y(e.tabletOnly,t,a,i),r=f(l);r&&(i?r.forEach((e=>{s.push("\n\n"+C(["tablet"],n,o)+" {\n"+e+" }")})):s.push(`\n\n${C(["tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.mobile){const l=y(e.mobile,t,a,i),r=f(l);r&&(i?r.forEach((e=>{s.push("\n\n"+C(["mobile"],n,o)+" {\n"+e+" }")})):s.push(`\n\n${C(["mobile"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.ie11){const n=y(e.ie11,t,a,i),o=f(n);o&&s.push(`\n\n@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {\n${o.join("")} }`)}return i&&void 0!==e.editor&&!l&&Array.prototype.push.apply(s,A(e.editor,t,a,n,o,i,l++)),i||void 0===e.saveOnly||l||Array.prototype.push.apply(s,A(e.saveOnly,t,a,n,o,i,l++)),s},w=e=>{const{style:t={},blockUniqueClassName:a="",blockMainClassName:n="",breakTablet:o=1025,breakMobile:l=768,attributes:r={}}=e,{clientId:s}=(0,v.useBlockEditContext)(),c=(0,_.useDeviceType)(),u=(0,i.useMemo)((()=>{const e=(0,k.getEditorStylesOnly)(t,c);return A(e,n,a,o,l,!0)}),[c,JSON.stringify(r),s]);return u?u.map(((e,t)=>(0,i.createElement)("style",{key:t},e))):null};w.Content=e=>{const{style:t={},blockUniqueClassName:a="",blockMainClassName:n="",breakTablet:o=1025,breakMobile:r=768}=e,s=A(t,n,a,o,r,!1);return s&&s.length?(0,i.createElement)("style",null,(0,l.minifyCSS)(s.join(""))):null};const T=w;var B=a(8423),x=a(3882);const S=e=>{const{blockTag:t,className:a,backgroundAttrName:n,blockProps:l,showBackground:s,showVideoBackground:u,...g}=e,d=c()([a],{"ugb--has-background-overlay":s&&(0,B.mD)(n,l.attributes)});return(0,i.createElement)(t,(0,o.Z)({className:d},(0,r.omit)(g,"index")),e.children,s&&u&&(0,B.hz)(n,l),(0,x.applyFilters)("stackable.div-background.output.after",null,e,l))};S.defaultProps={className:"",backgroundAttrName:"%s",blockProps:{},showBackground:!0,showVideoBackground:!0,blockTag:"div"};const E=S;var N=a(3726),R=a.n(N);const P=e=>{const t=c()([e.className,"ugb-img"],{[`wp-image-${e.imageId}`]:e.imageId,"ugb-img--shape":e.shape,"ugb-image--shape-stretch":e.shapeStretch,[`ugb--shadow-${e.shadow}`]:!e.shape&&e.shadow});return(0,i.createElement)("img",{className:t,src:e.src||void 0,alt:R()(e.alt||void 0),title:R()(e.title||void 0),width:e.width||void 0,height:e.height||void 0})};P.defaultProps={imageId:"",alt:"",title:"",src:"",size:"full",width:"",height:"",shape:"",shapeStretch:!1,shadow:""};const I=P;var $=a(7200);const U=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,r.camelCase)((0,u.sprintf)(e.attrNameTemplate,t))},a=(0,l.__getValue)(e.blockAttributes,t,""),{screens:n}=e;return(0,i.createElement)(i.Fragment,null,n.includes("desktop")&&(0,i.createElement)($.WhenResponsiveScreen,{screens:n},i.Children.toArray(e.children).map((n=>(0,i.cloneElement)(n,{value:a(),onChange:a=>{e.onChange?e.onChange(t(),a,""):e.setAttributes({[t()]:a})}})))),n.includes("tablet")&&(0,i.createElement)($.WhenResponsiveScreen,{screens:n,screen:"tablet"},i.Children.toArray(e.children).map((n=>(0,i.cloneElement)(n,{value:a("Tablet"),placeholder:a("Tablet")||n.props.placeholder,onChange:a=>{e.onChange?e.onChange(t("Tablet"),a,"Tablet"):e.setAttributes({[t("Tablet")]:a})}})))),n.includes("mobile")&&(0,i.createElement)($.WhenResponsiveScreen,{screens:n,screen:"mobile"},i.Children.toArray(e.children).map((n=>(0,i.cloneElement)(n,{value:a("Mobile"),placeholder:a("Mobile")||n.props.placeholder,onChange:a=>{e.onChange?e.onChange(t("Mobile"),a,"Mobile"):e.setAttributes({[t("Mobile")]:a})}})))))};U.defaultProps={attrNameTemplate:"%s",setAttributes:()=>{},blockAttributes:{},onChange:null,placeholder:"",screens:["desktop","tablet","mobile"]};const F=U;var L=a(910);const M=e=>(0,i.createElement)(F,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},(0,i.createElement)($.AlignButtonsControl,{label:e.label,className:c()([e.className,"ugb--help-tip-alignment-all"])}));M.defaultProps={className:"",setAttributes:()=>{},blockAttributes:{},label:(0,u.__)("Align",L.i18n)};const H=M;var D=a(2473),O=a.n(D),z=a(7294),W=Math.sqrt(50),q=Math.sqrt(10),V=Math.sqrt(2);function G(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function j(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?G(Object(a),!0).forEach((function(t){Q(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):G(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Y(e,t,a){return t&&X(e.prototype,t),a&&X(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function J(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return te(e)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=K(e);if(t){var o=K(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return ae(this,a)}}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,o,i=[],l=!0,r=!1;try{for(a=a.call(e);!(l=(n=a.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){r=!0,o=e}finally{try{l||null==a.return||a.return()}finally{if(r)throw o}}return i}}(e,t)||le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){if(e){if("string"==typeof e)return re(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var se="react-compound-slider:";function ce(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,a){return t.val>a.val?e?-1:1:a.val>t.val?e?1:-1:0}}function ue(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.findIndex((function(e){return e.key===t}));if(-1!==o){var i=e[o],l=i.key,r=i.val;return r===a?e:[].concat(ie(e.slice(0,o)),[{key:l,val:a}],ie(e.slice(o+1))).sort(ce(n))}return e}function ge(e,t){if(!e)return[0,0];var a=e.getBoundingClientRect();return[t?a.top:a.left,t?a.bottom:a.right]}function de(e){var t=e.type,a=void 0===t?"":t,n=e.touches;return!n||n.length>1||"touchend"===a.toLowerCase()&&n.length>0}function be(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=0,i=e.map((function(e){var t=a.getValue(e);return e!==t&&(o+=1,O()(!n,"".concat(se," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t})).map((function(e,t){return{key:"$$-".concat(t),val:e}})).sort(ce(t));return{handles:i,changes:o}}function pe(e,t){return t}function he(e,t){for(var a=0;a<e.length;a++){if(e[a].key!==t[a].key)return e;if(t[a+1]&&t[a].val===t[a+1].val)return e}return t}function ke(e,t,a,n,o){for(var i=-1,l=!0,r=0;r<e.length;r++){var s=e[r],c=t[r];if(!c||c.key!==s.key)return e;c.val!==s.val&&(i=r,l=c.val-s.val>0)}if(-1===i)return e;for(var u=l?a:-a,g=0;g<t.length;g++){var d=t[g],b=t[g+1];if(b&&d.val===b.val){if(g===i){var m=b.val+u;if(o(m)===m){var p=ke(t,ue(t,b.key,b.val+u,n),a,n,o);return p===t?e:p}return e}var h=d.val+u;if(o(h)===h){var k=ke(t,ue(t,d.key,d.val+u,n),a,n,o);return k===t?e:k}return e}}return t}function _e(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return t.forEach((function(t){return t&&t(e)}))}}var ve=function(){return{value:0,percent:0}},ye=function(e){J(a,e);var t=ne(a);function a(){var e;Z(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).getRailProps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.props,n=a.emitMouse,o=a.emitTouch;return j(j({},t),{},{onMouseDown:_e(t&&t.onMouseDown,n),onTouchStart:_e(t&&t.onTouchStart,o)})},e}return Y(a,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,a=t.getEventData,n=t.activeHandleID,o=void 0===n?"":n,i=(0,t.children)({getEventData:a||ve,activeHandleID:o,getRailProps:e});return i&&z.Children.only(i)}}]),a}(z.Component),fe=function(e){J(a,e);var t=ne(a);function a(){var e;Z(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).autofocus=function(e){e.target instanceof HTMLElement&&e.target.focus()},e.getHandleProps=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props,o=n.emitKeyboard,i=n.emitMouse,l=n.emitTouch;return j(j({},a),{},{onKeyDown:_e(a&&a.onKeyDown,(function(e){return o&&o(e,t)})),onMouseDown:_e(a&&a.onMouseDown,e.autofocus,(function(e){return i&&i(e,t)})),onTouchStart:_e(a&&a.onTouchStart,(function(e){return l&&l(e,t)}))})},e}return Y(a,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,a=t.activeHandleID,n=void 0===a?"":a,o=t.children,i=t.handles,l=o({handles:void 0===i?[]:i,activeHandleID:n,getHandleProps:e});return l&&z.Children.only(l)}}]),a}(z.Component),Ce=function(){function e(){Z(this,e),this.interpolator=void 0,this.domain=[0,1],this.range=[0,1],this.domain=[0,1],this.range=[0,1],this.interpolator=null}return Y(e,[{key:"createInterpolator",value:function(e,t){var a=this,n=e[0],o=e[1],i=t[0],l=t[1];return o<n?function(e){return a.interpolateValue(l,i)(a.deinterpolateValue(o,n)(e))}:function(e){return a.interpolateValue(i,l)(a.deinterpolateValue(n,o)(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(a){return e+t*a}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,a=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,a)))(+e)}},{key:"setDomain",value:function(e){return this.domain=[e[0],e[1]],this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=[e[0],e[1]],this}},{key:"getRange",value:function(){return this.range}},{key:"getTicks",value:function(e){var t=this.domain;return function(e,t,a){var n,o,i,l,r=-1;if(a=+a,(e=+e)==(t=+t)&&a>0)return[e];if((n=t<e)&&(o=e,e=t,t=o),0===(l=function(e,t,a){var n=(t-e)/Math.max(0,a),o=Math.floor(Math.log(n)/Math.LN10),i=n/Math.pow(10,o);return o>=0?(i>=W?10:i>=q?5:i>=V?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=W?10:i>=q?5:i>=V?2:1)}(e,t,a))||!isFinite(l))return[];if(l>0){let a=Math.round(e/l),n=Math.round(t/l);for(a*l<e&&++a,n*l>t&&--n,i=new Array(o=n-a+1);++r<o;)i[r]=(a+r)*l}else{l=-l;let a=Math.round(e*l),n=Math.round(t*l);for(a/l<e&&++a,n/l>t&&--n,i=new Array(o=n-a+1);++r<o;)i[r]=(a+r)/l}return n&&i.reverse(),i}(t[0],t[t.length-1],e||10)}}]),e}(),Ae=function(){return{value:0,percent:0}},we=function(e){J(a,e);var t=ne(a);function a(){return Z(this,a),t.apply(this,arguments)}return Y(a,[{key:"render",value:function(){var e=this.props,t=e.children,a=e.values,n=e.scale,o=void 0===n?new Ce:n,i=e.count,l=void 0===i?10:i,r=e.getEventData,s=void 0===r?Ae:r,c=e.activeHandleID,u=t({getEventData:s,activeHandleID:void 0===c?"":c,ticks:(a||o.getTicks(l)).map((function(e){return{id:"$$-".concat(e),value:e,percent:o.getValue(e)}}))});return u&&z.Children.only(u)}}]),a}(z.Component),Te=function(){return{value:0,percent:0}},Be=function(e){J(a,e);var t=ne(a);function a(){var e;Z(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).getTrackProps=function(t){var a=e.props,n=a.emitMouse,o=a.emitTouch;return j(j({},t||{}),{},{onMouseDown:_e(t&&t.onMouseDown,n),onTouchStart:_e(t&&t.onTouchStart,o)})},e}return Y(a,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,a=t.children,n=t.left,o=void 0===n||n,i=t.right,l=void 0===i||i,r=t.scale,s=void 0===r?new Ce:r,c=t.handles,u=void 0===c?[]:c,g=t.getEventData,d=void 0===g?Te:g,b=t.activeHandleID,m=void 0===b?"":b,p=s.getDomain(),h=[],k=0;k<u.length+1;k++){var _=u[k-1],v=u[k];0===k&&!0===o?_={id:"$",value:p[0],percent:0}:k===u.length&&!0===l&&(v={id:"$",value:p[1],percent:100}),_&&v&&h.push({id:"".concat(_.id,"-").concat(v.id),source:_,target:v})}var y=a({getEventData:d,activeHandleID:m,tracks:h,getTrackProps:e});return y&&z.Children.only(y)}}]),a}(z.Component);function xe(e,t,a){return Math.min(Math.max(e,t),a)}var Se=Y((function e(){var t=this;Z(this,e),this.step=1,this.domain=[0,1],this.range=[0,1],this.setDomain=function(e){return t.domain=[e[0],e[1]],t},this.setRange=function(e){return t.range=[e[0],e[1]],t},this.setStep=function(e){return t.step=e,t},this.getValue=function(e){var a=oe(t.domain,2),n=a[0],o=a[1],i=oe(t.range,2),l=i[0],r=i[1],s=t.step,c=(xe(e,n,o)-n)/(o-n);return xe(s*Math.round(c*(r-l)/s)+l,l<r?l:r,r>l?r:l)}})),Ee="undefined"!=typeof window&&"undefined"!=typeof document,Ne=function(){},Re=function(e,t,a,n){var o=n?e-t:e+t;return n?Math.max(a[0],o):Math.min(a[1],o)},Pe=function(e,t,a,n){var o=n?e+t:e-t;return n?Math.min(a[1],o):Math.max(a[0],o)},Ie=[0,100],$e=function(e){J(a,e);var t=ne(a);function a(){var e;Z(this,a);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={step:.1,values:[],domain:Ie,handles:[],reversed:!1,activeHandleID:"",valueToPerc:null,valueToStep:null,pixelToStep:null},e.slider=z.createRef(),e.onKeyDown=function(t,a){var n=["ArrowRight","ArrowUp"],o=["ArrowDown","ArrowLeft"],i=te(e),l=i.state.handles,r=i.props,s=r.step,c=void 0===s?.1:s,u=r.reversed,g=void 0!==u&&u,d=r.vertical,b=void 0!==d&&d,m=r.domain,p=void 0===m?[0,100]:m,h=t.key||"".concat(t.keyCode);if(n.concat(o).includes(h)){if(b){var k=[o,n];n=k[0],o=k[1]}t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault();var _=l.find((function(e){return e.key===a}));if(_){var v=_.val,y=v;n.includes(h)?y=Re(v,c,p,g):o.includes(h)&&(y=Pe(v,c,p,g));var f=l.map((function(e){return e.key===a?{key:e.key,val:y}:e}));e.submitUpdate(f,!0)}}},e.onMouseDown=function(t,a){e.onStart(t,a,!1)},e.onTouchStart=function(t,a){de(t)||e.onStart(t,a,!0)},e.getEventData=function(t,a){var n,o=te(e),i=o.state,l=i.pixelToStep,r=i.valueToPerc,s=o.props.vertical;return l.setDomain(ge(e.slider.current,s)),a&&t instanceof TouchEvent?n=l.getValue(be(s,t)):t instanceof MouseEvent&&(n=l.getValue(s?t.clientY:t.pageX)),{value:n,percent:r.getValue(n)}},e.onMouseMove=function(t){var a=te(e),n=a.state,o=n.handles,i=n.pixelToStep,l=n.activeHandleID,r=void 0===l?"":l,s=a.props,c=s.vertical,u=s.reversed,g=void 0!==u&&u;i.setDomain(ge(e.slider.current,c));var d=ue(o,r,i.getValue(c?t.clientY:t.pageX),g);e.submitUpdate(d)},e.onTouchMove=function(t){var a=te(e),n=a.state,o=n.handles,i=n.pixelToStep,l=n.activeHandleID,r=a.props,s=r.vertical,c=r.reversed;if(null!==i&&!de(t)){i.setDomain(ge(e.slider.current,s));var u=ue(o,l,i.getValue(be(s,t)),c);e.submitUpdate(u)}},e.onMouseUp=function(){var t=te(e),a=t.state,n=a.handles,o=void 0===n?[]:n,i=a.activeHandleID,l=t.props,r=l.onChange,s=void 0===r?Ne:r,c=l.onSlideEnd,u=void 0===c?Ne:c;s(o.map((function(e){return e.val}))),u(o.map((function(e){return e.val})),{activeHandleID:i}),e.setState({activeHandleID:""}),Ee&&(document.removeEventListener("mousemove",e.onMouseMove),document.removeEventListener("mouseup",e.onMouseUp))},e.onTouchEnd=function(){var t=te(e),a=t.state,n=a.handles,o=a.activeHandleID,i=t.props,l=i.onChange,r=void 0===l?Ne:l,s=i.onSlideEnd,c=void 0===s?Ne:s;r(n.map((function(e){return e.val}))),c(n.map((function(e){return e.val})),{activeHandleID:o}),e.setState({activeHandleID:""}),Ee&&(document.removeEventListener("touchmove",e.onTouchMove),document.removeEventListener("touchend",e.onTouchEnd))},e}return Y(a,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(ge(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Ee&&(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,a){var n=this.state.handles,o=this.props.onSlideStart,i=void 0===o?Ne:o;a||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),n.find((function(e){return e.key===t}))?(this.setState({activeHandleID:t}),i(n.map((function(e){return e.val})),{activeHandleID:t}),a?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:""}),this.handleRailAndTrackClicks(e,a))}},{key:"handleRailAndTrackClicks",value:function(e,t){var a,n=this,o=this.state,i=o.handles,l=o.pixelToStep,r=this.props,s=r.vertical,c=r.reversed,u=void 0!==c&&c,g=this.slider;l.setDomain(ge(g.current,s)),a=t?l.getValue(be(s,e)):l.getValue(s?e.clientY:e.pageX);for(var d="",b=1/0,m=0;m<i.length;m++){var p=i[m],h=p.key,k=p.val,_=Math.abs(k-a);_<b&&(d=h,b=_)}var v=ue(i,d,a,u);this.setState({activeHandleID:d},(function(){n.submitUpdate(v,!0),t?n.addTouchEvents():n.addMouseEvents()}))}},{key:"addMouseEvents",value:function(){Ee&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Ee&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.props,n=a.mode,o=void 0===n?1:n,i=a.step,l=void 0===i?.1:i,r=a.onUpdate,s=void 0===r?Ne:r,c=a.onChange,u=void 0===c?Ne:c,g=a.reversed,d=void 0!==g&&g,b=this.state.valueToStep.getValue;this.setState((function(a){var n=a.handles,i=[];if("function"==typeof o)i=o(n,e,l,d,b),O()(Array.isArray(i),"Custom mode function did not return an array.");else switch(o){case 1:i=pe(0,e);break;case 2:i=he(n,e);break;case 3:i=ke(n,e,l,d,b);break;default:i=e,O()(!1,"".concat(se," Invalid mode value."))}return s(i.map((function(e){return e.val}))),t&&u(i.map((function(e){return e.val}))),{handles:i}}))}},{key:"render",value:function(){var e=this,t=this.state,a=t.handles,n=t.valueToPerc,o=t.activeHandleID,i=this.props,l=i.className,r=i.rootStyle,s=void 0===r?{}:r,c=i.rootProps,u=void 0===c?{}:c,g=i.component,d=void 0===g?"div":g,b=i.disabled,m=void 0!==b&&b,p=i.flatten,h=void 0!==p&&p,k=a.map((function(e){var t=e.key,a=e.val;return{id:t,value:a,percent:n.getValue(a)}})),_=z.Children.map(this.props.children,(function(t){return!0===function(e){if(!(0,z.isValidElement)(e))return!1;var t=e.type,a=t?t.name:"";return a===fe.name||a===ye.name||a===we.name||a===Be.name}(t)?z.cloneElement(t,{scale:n,handles:k,activeHandleID:o,getEventData:e.getEventData,emitKeyboard:m?Ne:e.onKeyDown,emitMouse:m?Ne:e.onMouseDown,emitTouch:m?Ne:e.onTouchStart}):t}));return h?z.createElement(z.Fragment,null,z.createElement(d,j(j({},u),{},{style:s,className:l,ref:this.slider})),_):z.createElement(z.Fragment,null,z.createElement(d,j(j({},u),{},{style:s,className:l,ref:this.slider}),_))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a,n,o=e.step,i=void 0===o?.1:o,l=e.values,r=e.domain,s=void 0===r?Ie:r,c=e.reversed,u=void 0!==c&&c,g=e.onUpdate,d=void 0===g?Ne:g,b=e.onChange,m=void 0===b?Ne:b,p=e.warnOnChanges,h=void 0!==p&&p,k=t.valueToPerc,_=t.valueToStep,v=t.pixelToStep,y={};if(k&&_&&v||(k=new Ce,_=new Se,v=new Se,y.valueToPerc=k,y.valueToStep=_,y.pixelToStep=v),t.domain===Ie||null===t.step||null===t.domain||null===t.reversed||i!==t.step||s[0]!==t.domain[0]||s[1]!==t.domain[1]||u!==t.reversed){var f=oe(s,2),C=f[0],A=f[1];_.setStep(i).setRange([C,A]).setDomain([C,A]),!0===u?(k.setDomain([C,A]).setRange([100,0]),v.setStep(i).setRange([A,C])):(k.setDomain([C,A]).setRange([0,100]),v.setStep(i).setRange([C,A])),O()(A>C,"".concat(se," Max must be greater than min (even if reversed). Max is ").concat(A,". Min is ").concat(C,"."));var w=me(l||t.values,u,_,h),T=w.handles;(w.changes||void 0===l||l===t.values)&&(d(T.map((function(e){return e.val}))),m(T.map((function(e){return e.val})))),y.step=i,y.values=l,y.domain=s===Ie?ie(s):s,y.handles=T,y.reversed=u}else if(!((a=l)===(n=t.values)||a.length===n.length&&a.reduce(function(e){return function(t,a,n){return t&&e[n]===a}}(n),!0))){var B=me(l,u,_,h),x=B.handles;B.changes&&(d(x.map((function(e){return e.val}))),m(x.map((function(e){return e.val})))),y.values=l,y.handles=x}return Object.keys(y).length?y:null}}]),a}(z.PureComponent);const Ue={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},Fe={position:"absolute",width:"100%",height:3,backgroundColor:"#e2e4e7",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},Le=e=>{let{getRailProps:t}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",(0,o.Z)({style:Ue},t())),(0,i.createElement)("div",{style:Fe}))},Me=e=>{const{domain:[t,a],handle:{id:n,value:l,percent:r},disabled:s=!1,getHandleProps:c}=e;return(0,i.createElement)("button",(0,o.Z)({role:"slider","aria-valuemin":t,"aria-valuemax":a,"aria-valuenow":l,disabled:s,style:{left:`${r}%`}},c(n)))},He=10,De=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if("left"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<He){const a=He-e[t];e[t]=He,e[t-1]-=a}for(let t=0;t<e.length-1;t++)if(e[t]<He){const a=He-e[t];e[t]=He,e[t+1]-=a}if("right"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<He){const a=He-e[t];e[t]=He,e[t-1]-=a}return e},Oe={position:"relative",width:"100%"},ze=[0,100],We=e=>{let t=0;return[...e,100].map((e=>{const a=e-t;return t+=a,a}))},qe=e=>{let t=0;return[...e].pop(),e.reduce(((a,n,o)=>{if(o===e.length-1)return a;const i=n+t;return t+=n,a.push(i),a}),[])},Ve=e=>(0,i.createElement)($e,{className:"ugb-column-widths-control__columns-slider",rootStyle:Oe,mode:(e,t)=>{const a=e.map((e=>e.val)),n=t.map((e=>e.val));if((0,r.isEqual)(a,n))return t;if((e=>{const t=[0,...e,100];return t.some(((e,a)=>0!==a&&e-t[a-1]<10))})(n)){const[e,o]=((e,t)=>{let a,n=0;return t.some(((t,o)=>t!==e[o]&&(n=o,a=t>e[o]?"right":"left",!0))),[n,a]})(a,n),i=((e,t,a)=>{const n=We(e),o=De(n,a);return qe(o)})(n,0,o);i.forEach(((e,a)=>{t[a].val=e}))}return t},step:1,onUpdate:t=>e.onChange(We(t)),domain:ze,values:qe(e.value)},(0,i.createElement)(ye,null,(e=>{let{getRailProps:t}=e;return(0,i.createElement)(Le,{getRailProps:t})})),(0,i.createElement)(fe,null,(e=>{let{handles:t,getHandleProps:a}=e;return(0,i.createElement)("div",{className:"slider-handles"},t.map((e=>(0,i.createElement)(Me,{key:e.id,handle:e,domain:ze,getHandleProps:a}))))})));Ve.defaultProps={onChange:()=>{},value:[]};const Ge=Ve,je=e=>e.every((e=>!e)),Ze=e=>{const t={gridTemplateColumns:(a=e.value,a.map((e=>(e/100*a.length).toFixed(2)+"fr")).join(" ")),gridAutoFlow:je(e.value)?"column":void 0,justifyContent:je(e.value)?"space-around":void 0};var a;return(0,i.createElement)("div",{className:"ugb-column-widths-control__columns-input",style:t},e.value.map(((t,a)=>(0,i.createElement)("input",{key:a,className:"components-column-widths-control__number",type:"number",value:t||"",onChange:t=>{const n=parseInt(t.target.value,10),o=[...e.value];o[a]=isNaN(n)?"":n,e.onChange(o)},onBlur:()=>{const t=De(e.value),n=100-t.reduce(((e,t)=>e+t),0);a<e.value.length-1?t[a+1]+=n:t[a-1]+=n,e.onChange(De(t))}}))))};Ze.defaultProps={onChange:()=>{},value:[]};const Xe=Ze;var Ye=a(7537);const Qe={"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]},Je={plain:{2:[{value:"2-1",image:"dist/images/components-columns-width-control-2-1.00780d9.png"},{value:"2-2",image:"dist/images/components-columns-width-control-2-2.0388d6b.png"},{value:"2-3",image:"dist/images/components-columns-width-control-2-3.dd648a4.png"}],3:[{value:"3-1",image:"dist/images/components-columns-width-control-3-1.b0d994b.png"},{value:"3-2",image:"dist/images/components-columns-width-control-3-2.d0cd0a1.png"},{value:"3-3",image:"dist/images/components-columns-width-control-3-3.8b9a3da.png"},{value:"3-4",image:"dist/images/components-columns-width-control-3-4.05211d4.png"}],4:[{value:"4-1",image:"dist/images/components-columns-width-control-4-1.ba54e2f.png"},{value:"4-2",image:"dist/images/components-columns-width-control-4-2.96599c1.png"},{value:"4-3",image:"dist/images/components-columns-width-control-4-3.5c76fd1.png"}]},grid:{2:[{value:"2-1",image:"dist/images/components-columns-width-control-2-1-grid.78b21b6.png"},{value:"2-2",image:"dist/images/components-columns-width-control-2-2-grid.7639d58.png"},{value:"2-3",image:"dist/images/components-columns-width-control-2-3-grid.f25924c.png"}],3:[{value:"3-1",image:"dist/images/components-columns-width-control-3-1-grid.ae0e2fa.png"},{value:"3-2",image:"dist/images/components-columns-width-control-3-2-grid.6b11733.png"},{value:"3-3",image:"dist/images/components-columns-width-control-3-3-grid.1ea783e.png"},{value:"3-4",image:"dist/images/components-columns-width-control-3-4-grid.c3e518b.png"}],4:[{value:"4-1",image:"dist/images/components-columns-width-control-4-1-grid.2ae6bc7.png"},{value:"4-2",image:"dist/images/components-columns-width-control-4-2-grid.5103a98.png"},{value:"4-3",image:"dist/images/components-columns-width-control-4-3-grid.33b2e7c.png"}]},uneven:{2:[{value:"2-1",image:"dist/images/components-columns-width-control-2-1-uneven.11f93e4.png"},{value:"2-2",image:"dist/images/components-columns-width-control-2-2-uneven.59bd37a.png"},{value:"2-3",image:"dist/images/components-columns-width-control-2-3-uneven.a5425ee.png"}],3:[{value:"3-1",image:"dist/images/components-columns-width-control-3-1-uneven.d1838a7.png"},{value:"3-2",image:"dist/images/components-columns-width-control-3-2-uneven.e813c20.png"},{value:"3-3",image:"dist/images/components-columns-width-control-3-3-uneven.9e97ae9.png"},{value:"3-4",image:"dist/images/components-columns-width-control-3-4-uneven.c7484ed.png"}],4:[{value:"4-1",image:"dist/images/components-columns-width-control-4-1-uneven.f368247.png"},{value:"4-2",image:"dist/images/components-columns-width-control-4-2-uneven.ec44d79.png"},{value:"4-3",image:"dist/images/components-columns-width-control-4-3-uneven.9b00d6b.png"}]}},Ke=e=>e.every((e=>!e)),et=e=>{const[t,a]=(0,i.useState)(-1),[n,o]=(0,i.useState)(!0),[l,s]=(0,i.useState)("");(0,i.useEffect)((()=>{s("")}),[e.columns]);const g="grid"===e.design?"grid":"plain"===e.design?"plain":"uneven",d=Je[g],b=(0,i.createElement)($.Button,{className:"ugb-columns-width-control__reset",disabled:e.forceBlank?Ke(e.values):(0,r.isEqual)(e.values,Qe[l||`${e.columns}-1`]),onClick:()=>{s(""),e.forceBlank?e.onChange(["","","","","",""]):e.onChange(Qe[l||`${e.columns}-1`])},isSmall:!0,isSecondary:!0},(0,u.__)("Reset",L.i18n));return(0,i.createElement)(Ye.BaseControl,{help:e.help,className:c()(["ugb-columns-width-control","ugb--help-tip-column-width",e.className])},(e.hasIndividualControls||!e.hasIndividualControls&&d[e.columns])&&(0,i.createElement)($.BaseControlMultiLabel,{label:e.label,afterButton:e.hasIndividualControls?b:null,screens:e.screens}),d[e.columns]&&(0,i.createElement)($.DesignControl,{options:d[e.columns],onChange:t=>{a(-1),o(!0),s(t),e.onChange(Qe[t])}}),e.hasIndividualControls&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(Ge,{value:Ke(e.values)?Qe[`${e.columns}-1`]:e.values,onChange:t=>{e.onChange(t)}}),(0,i.createElement)(Xe,{value:Ke(e.values)?e.forceBlank?e.values:Qe[`${e.columns}-1`]:e.values,onChange:t=>{e.onChange(t)}}),!1))};et.defaultProps={columns:2,design:"plain",values:["",""],onChange:()=>{},help:"",label:(0,u.__)("Column Widths",L.i18n),className:"",hasIndividualControls:!0,screens:["desktop"],forceBlank:!1};const tt=et;var at=a(5276),nt=a(3669);const ot=e=>{const[t,a]=(0,i.useState)(!1),[n,o]=(0,i.useState)(""),[l,r]=(0,i.useState)([]),[s,c]=(0,i.useState)(!0),[g,d]=(0,i.useState)("");return(0,i.useEffect)((()=>{let t=!0;return(0,nt.getDesigns)({type:"block",block:e.block,search:n,apiVersion:"v2"}).then((e=>{t&&r(e)})).finally((()=>{t&&c(!1)})),()=>{t=!1}}),[e.block,n]),(0,i.createElement)("div",null,(0,i.createElement)($.Button,{className:"ugb-design-library-control__open-library",label:(0,u.__)("Open Design Library",L.i18n),isSmall:!0,isLink:!0,onClick:()=>a(!0)},(0,u.__)("Open Design Library",L.i18n)),(0,i.createElement)(Ye.TextControl,{placeholder:(0,u.__)("E.g. light, dark, red, minimalist…",L.i18n),value:n,onChange:e=>o(e)}),!L.isPro&&(0,i.createElement)($.AdvancedToolbarControl,{controls:[{value:"",custom:(0,i.createElement)("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},(0,u.__)("All",L.i18n),(0,i.createElement)("span",null,l.length))},{value:"free",custom:(0,i.createElement)("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},(0,u.__)("Free",L.i18n),(0,i.createElement)("span",null,l.reduce(((e,t)=>{let{plan:a}=t;return e+("free"===a?1:0)}),0)))},{value:"premium",custom:(0,i.createElement)("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},(0,u.__)("Premium",L.i18n),(0,i.createElement)("span",null,l.reduce(((e,t)=>{let{plan:a}=t;return e+("free"!==a?1:0)}),0)))}],value:g,onChange:e=>d(e)}),(0,i.createElement)($.DesignLibraryList,{designs:l.filter((e=>{let{plan:t}=e;return!g||t===g})),isBusy:s,onSelect:e.onSelect,apiVersion:"v2"}),t&&(0,i.createElement)(at.Z,{search:n,selectedBlock:e.block,onClose:()=>{a(!1),o("")},onSelect:t=>{e.onSelect(t),a(!1)}}))};ot.defaultProps={block:"",onSelect:()=>{}};const it=ot;a(4512);var lt=a(8850),rt=a(5802);a(6573)},5276:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var n=a(2610),o=a(7462);a(7294);const i=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,n.createElement)("path",{d:"M38 12H12v26h26V12z"}))},l=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,n.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"}))},r=function(e){return(0,n.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,n.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"}))};var s=a(8085),c=a(7200),u=a(591),g=a(3669),d=a(910),b=a(4184),m=a.n(b),p=a(3284),h=a(8003);const k=e=>{const[t,a]=(0,n.useState)([]),[o,i]=(0,n.useState)({}),[l,r]=(0,n.useState)({}),[b,k]=(0,n.useState)(0),[_,v]=(0,n.useState)(0),[y,f]=(0,n.useState)(0),[C,A]=(0,n.useState)(""),{viewBy:w,apiVersion:T}=e;(0,n.useEffect)((()=>{(0,u.xv)(T).then((e=>{const t=e.reduce(((e,t)=>{if(!e[t]){if((0,p.select)("core/edit-post").getPreference("hiddenBlockTypes").includes(t))return e;if(!(0,p.select)("core/blocks").getBlockType(t))return e;e[t]={count:0,name:t,label:t?(0,p.select)("core/blocks").getBlockType(t).title:""}}return e}),{});r(t)}))}),[]),(0,n.useEffect)((()=>{Object.keys(l).length&&(0,g.getDesigns)({type:"block",search:e.search,mood:e.mood,colors:e.colors,apiVersion:T}).then((t=>{const n=Object.keys(l).reduce(((e,t)=>(e[t]={...l[t]},e)),{}),r=Object.keys(o).reduce(((e,t)=>(void 0!==e[t]&&(e[t].num=0),e)),{});let c=0,u=0;const g=t.reduce(((t,a)=>{const{block:n,type:o,plan:i,categories:l}=a;if("block"===o&&t[n]&&t[n].count++,e.forceBlock&&e.forceBlock!==a.block||(u++,"free"===i&&c++),l&&3===l.length){const e=(0,s.last)(l);void 0===r[e]&&(r[e]={label:(0,s.startCase)((0,s.last)(l)),num:0,isPremium:"free"!==i}),r[e].num++}return t}),{...n});i(r),k(u),v(c),f(u-c),a((0,s.orderBy)(g,["title"],["asc"]))}))}),[l,e.search,e.mood]);const B=(0,n.useMemo)((()=>{const e=Object.keys(o);return d.isPro||e.sort(((e,t)=>!o[e].isPremium&&o[t].isPremium?-1:o[e].isPremium&&!o[t].isPremium?1:0)),e}),[JSON.stringify(o)]);let x=!0;return(0,n.createElement)("ul",{className:"ugb-block-list"},(0,n.createElement)(c.AdvancedToolbarControl,{controls:[{value:"ui-kits",title:(0,h.__)("UI Kits",d.i18n)},{value:"block-designs",title:(0,h.__)("Block Designs",d.i18n)}],value:w,onChange:e.onChangeViewBy,isSmall:!0,fullwidth:!1,isToggleOnly:!0,allowReset:!1}),"ui-kits"===w&&B.reduce(((t,a,i)=>{const l=(""===C&&0===i||C===a)&&!e.forceBlock,r=m()({"is-active":l,"is-disabled":e.forceBlock}),s=o[a].label,u=o[a].num;return!d.isPro&&x&&o[a].isPremium&&(t.push((0,n.createElement)(c.ControlSeparator,null)),x=!1),t.push((0,n.createElement)("li",{key:i},(0,n.createElement)("div",{className:r,"data-count":u,onClick:()=>{e.forceBlock||(A(a),e.onSelect({block:"",plan:"",categories:[a]}))},onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":l?"true":"false"},s,(0,n.createElement)("span",{className:"ugb-block-list__count","data-testid":`${s}-count`},u)))),t}),[]),"block-designs"===w&&(0,n.createElement)("li",null,(0,n.createElement)("div",{className:""===C?"is-active":"","data-count":b,onClick:()=>{A(""),e.onSelect({block:"",plan:"",categories:[]})},onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":""===C?"true":"false"},(0,h.__)("All Block Designs",d.i18n),(0,n.createElement)("span",{className:"ugb-block-list__count","data-testid":"all-count"},b))),"block-designs"===w&&b!==_&&(0,n.createElement)("li",null,(0,n.createElement)("div",{className:"free"===C?"is-active":"","data-count":_,onClick:()=>{A("free"),e.onSelect({block:"",plan:"free",categories:[]})},onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":"free"===C?"true":"false"},(0,h.__)("Free Designs",d.i18n),(0,n.createElement)("span",{className:"ugb-block-list__count","data-testid":"free-count"},_)),(0,n.createElement)("div",{className:"premium"===C?"is-active":"","data-count":y,onClick:()=>{A("premium"),e.onSelect({block:"",plan:"premium",categories:[]})},onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":"premium"===C?"true":"false"},(0,h.__)("Premium Designs",d.i18n),(0,n.createElement)("span",{className:"ugb-block-list__count","data-testid":"premium-count"},y))),"block-designs"===w&&(0,n.createElement)(c.ControlSeparator,null),"block-designs"===w&&t.map(((t,a)=>{const o=C===t.name||t.name===e.forceBlock,i=m()({"is-active":o,"is-disabled":e.forceBlock&&t.name!==e.forceBlock});return(0,n.createElement)("li",{key:a},(0,n.createElement)("div",{className:i,"data-count":t.count,onClick:()=>{e.forceBlock||(A(t.name),e.onSelect({block:t.name,plan:"",categories:[]}))},onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":o?"true":"false"},t.label,(0,n.createElement)("span",{className:"ugb-block-list__count","data-testid":`${t.name}-count`},t.count)))})))};k.defaultProps={search:"",mood:"",colors:[],categories:[],onSelect:()=>{},forceBlock:"",viewBy:"",onChangeViewBy:()=>{},apiVersion:""};const _=k;var v=a(7545),y=a(7537);const f=e=>{const[t,a]=(0,n.useState)(e.search),[o,u]=(0,n.useState)(),[b,m]=(0,n.useState)(""),[p,k]=(0,n.useState)([]),[f,C]=(0,n.useState)(3),[A,w]=(0,n.useState)([]),[T,B]=(0,n.useState)(!0),[x,S]=(0,n.useState)(!1),[E,N]=(0,n.useState)(e.selectedBlock?"block-designs":"ui-kits"),[R,P]=(0,v.useLocalStorage)("stk__design_library_dev_mode",!1),[I,$]=(0,n.useState)(""),U="v2";(0,n.useEffect)((()=>u(e.selectedBlock)),[e.selectedBlock]);const[F,L]=(0,n.useState)(t),[M,H]=(0,n.useState)(null);(0,n.useEffect)((()=>{M&&(clearTimeout(M),H(null)),H(setTimeout((()=>{L(t)}),500))}),[t]),(0,n.useEffect)((()=>{const e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()}),[]),(0,n.useEffect)((()=>{x&&(w([]),B(!0)),(0,g.getDesigns)({type:"block",block:o,plan:b,categories:p,search:F,reset:x,apiVersion:U}).then((e=>{w(e),I||e.some((e=>d.isPro||"free"!==e.plan?!!d.isPro&&($((0,s.last)(e.categories)),!0):($((0,s.last)(e.categories)),!0)))})).finally((()=>{B(!1),S(!1)}))}),[o,b,p,F,x]);const D=(0,n.useMemo)((()=>{let t=e.selectedBlock?A.filter((t=>t.block===e.selectedBlock)):A;return"ui-kits"===E&&0===p.length&&(t=t.filter((e=>e.categories.includes(I)))),t}),[e.selectedBlock,A,E,p.length,I]);return(0,n.createElement)(y.Modal,{title:(0,n.createElement)(n.Fragment,null,(0,h.__)("Stackable Design Library",d.i18n),(0,n.createElement)(c.AdvancedToolbarControl,{controls:[{value:"",title:(0,h.__)("Latest Design Library",d.i18n)},{value:"v2",title:(0,h.__)("V2 Design Library",d.i18n)}],value:"v2",onChange:e.onChangeApiVersion,isSmall:!0,fullwidth:!1,isToggleOnly:!0,allowReset:!1})),className:"ugb-modal-design-library",onRequestClose:e.onClose},(0,n.createElement)("div",{className:"ugb-modal-design-library__wrapper"},(0,n.createElement)("aside",{className:"ugb-modal-design-library__sidebar"},(0,n.createElement)(y.TextControl,{className:"ugb-modal-design-library__search",placeholder:(0,h.__)("E.g. light, dark, red, minimalist…",d.i18n),value:t,onChange:e=>a(e),"data-testid":"input-search",type:"search"}),(0,n.createElement)("div",{className:"ugb-modal-design-library__filters"},(0,n.createElement)(_,{apiVersion:U,search:t,categories:p,forceBlock:e.selectedBlock,viewBy:E,onSelect:e=>{let{block:t,plan:a,categories:n}=e;u(t),m(a),k(n)},onChangeViewBy:N}))),(0,n.createElement)("aside",{className:"ugb-modal-design-library__topbar"},d.devMode&&(0,n.createElement)(y.ToggleControl,{className:"ugb-modal-design-library__dev-mode",label:"Dev Mode",checked:R,onChange:e=>{(0,g.setDevModeDesignLibrary)(e).then((()=>{S(!0)})),P(e)}}),(0,n.createElement)(c.Button,{icon:"image-rotate",label:(0,h.__)("Refresh Library",d.i18n),className:"ugb-modal-design-library__refresh",onClick:()=>S(!0)}),(0,n.createElement)(c.Button,{icon:(0,n.createElement)(i,{width:"18",height:"18"}),className:2===f?"is-active":"",label:(0,h.__)("Large preview",d.i18n),onClick:()=>C(2)}),(0,n.createElement)(c.Button,{icon:(0,n.createElement)(r,{width:"18",height:"18"}),className:3===f?"is-active":"",label:(0,h.__)("Medium preview",d.i18n),onClick:()=>C(3)}),(0,n.createElement)(c.Button,{icon:(0,n.createElement)(l,{width:"18",height:"18"}),className:4===f?"is-active":"",label:(0,h.__)("Small preview",d.i18n),onClick:()=>C(4)})),(0,n.createElement)("div",{className:"ugb-modal-design-library__designs"},(0,n.createElement)(c.DesignLibraryList,{columns:f,onSelect:e.onSelect,isBusy:T,designs:D,apiVersion:U}))))};f.defaultProps={search:"",selectedBlock:"",onClose:()=>{},onSelect:()=>{},onChangeApiVersion:()=>{}};const C=f},5802:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(7462),o=a(2610),i=a(7545),l=a(8085),r=a(8003),s=a(4512);const c=e=>{const t=(0,i.__getValue)(e.blockAttributes,(t=>(0,l.camelCase)((0,r.sprintf)(e.attrNameTemplate,t))),"");return(0,o.createElement)(s.Z,(0,n.Z)({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))};c.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},c.Content=e=>{const t=(0,i.__getValue)(e.blockAttributes,(t=>(0,l.camelCase)((0,r.sprintf)(e.attrNameTemplate,t))),"");return(0,o.createElement)(s.Z.Content,(0,n.Z)({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))},c.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};const u=c},8850:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(2610),o=a(3749),i=a(7200),l=a(5802);const r=(0,o.withInstanceId)((e=>{const[t,a]=(0,n.useState)(!1),[o,r]=(0,n.useState)(!1),{instanceId:s,isOpen:c,onChange:u,...g}=e;return(0,n.useEffect)((()=>{e.onToggle(t)}),[t]),(0,n.createElement)("div",{className:`ugb-svg-icon-placeholder ugb-svg-icon-placeholder-${s}`},(0,n.createElement)(i.Button,{className:"ugb-svg-icon-placeholder__button",onClick:()=>{o?(a(!1),r(!1)):a(!0)}},(0,n.createElement)(l.Z,g)),(null!==c&&c||null===c&&t)&&(0,n.createElement)(i.IconSearchPopover,{onClickOutside:e=>{e.target&&e.target.closest(`.ugb-svg-icon-placeholder-${s}`)?r(!0):(a(!1),r(!1))},onClose:()=>a(!1),onChange:u}))}));r.defaultProps={isOpen:null,className:"",value:"",onChange:()=>{},onToggle:()=>{}};const s=r},4512:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(7462),o=a(2610),i=a(6573),l=a(7545),r=a(4184),s=a.n(r),c=a(3882);const u=(e,t)=>{const a=(0,l.getShapeSVG)(t||"blob1");return a?(0,o.createElement)("div",{className:"ugb-icon__bg-shape-wrapper"},e,(0,o.createElement)(a,{className:"ugb-icon__bg-shape"})):e},g=e=>{const t=(0,c.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},d=e=>{const t={...e,value:"string"==typeof e.value?g(e.value):e.value},a=s()(["ugb-icon-inner-svg",e.className],{[`ugb-icon--${e.colorType}`]:e.colorType&&"single"!==e.colorType});let l=(0,o.createElement)(i.Z,(0,n.Z)({},t,{className:a}));if("shaped"===e.design||"outlined"===e.design){const t=s()(["ugb-icon__design-wrapper",`ugb-icon__design-${e.design}`],{[`ugb--shadow-${e.shadow}`]:e.shadow&&"shaped"===e.design});l=(0,o.createElement)("div",{className:t},l)}return e.showBackgroundShape&&(l=u(l,e.backgroundShape)),l=(0,c.applyFilters)("stackable.component.svg-icon",l,t),l};d.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(d.Content=e=>{const t={...e,value:"string"==typeof e.value?g(e.value):e.value},a=s()(["ugb-icon-inner-svg",e.className],{[`ugb-icon--${e.colorType}`]:e.colorType&&"single"!==e.colorType});let l=(0,o.createElement)(i.Z.Content,(0,n.Z)({},t,{className:a}));if("shaped"===e.design||"outlined"===e.design){const t=s()(["ugb-icon__design-wrapper",`ugb-icon__design-${e.design}`],{[`ugb--shadow-${e.shadow}`]:e.shadow&&"shaped"===e.design});l=(0,o.createElement)("div",{className:t},l)}return e.showBackgroundShape&&(l=u(l,e.backgroundShape)),l=(0,c.applyFilters)("stackable.component.svg-icon",l,t),l}).defaultProps={...d.defaultProps};const b=d},591:(e,t,a)=>{"use strict";a.d(t,{xv:()=>u});var n=a(5276),o=a(3669),i=a(3882);const l=wp.apiFetch;var r=a.n(l);(0,i.addFilter)("stackable.design-library.versions","stackable/v2",(e=>(e.push("v2"),e))),(0,i.addFilter)("stackable.design-library.modal-component","stackable/v2",((e,t)=>"v2"===t?n.Z:e)),(0,i.addFilter)("stackable.design-library.get-design","stackable/v2",(async(e,t,a,n)=>{if("v2"===n){const{type:e,block:o}=a;if("block"===e&&o)return(await c(o,n))[t]}return e}));let s={};const c=async e=>{const t=(e=>e.replace(/^[\w-]+\//,""))(e);if(!s[t]){const e=await r()({path:`/stackable/v2/block_designs/${t}`,method:"GET"});s[t]=await e}return s[t]};(0,i.addAction)("stackable.design-library.reset-cache","stackable/v2",(()=>{s={}}));const u=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=Object.values(await(0,o.fetchDesignLibrary)(!1,e));return t.reduce(((e,t)=>{const{block:a,type:n}=t;return e.includes(a)||"block"!==n||e.push(a),e}),[])};(0,i.applyFilters)("stackable.design-library.search-properties","stackable/v2",((e,t)=>"v2"===t?[...e,"block"].filter((e=>"uikit"!==e)):e))},1414:(e,t,a)=>{"use strict";a.d(t,{OB:()=>q,UY:()=>R,lX:()=>s,O0:()=>u,Gy:()=>m,XQ:()=>_,Q9:()=>Z,FI:()=>y});var n=a(4942),o=a(2610),i=a(7545),l=a(3882),r=a(3749);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.createHigherOrderComponent)((t=>{var a,r;return r=a=class extends o.Component{componentDidMount(){const{blockName:t}=this.props;(0,l.addFilter)(`stackable.${t}.setAttributes`,`stackable/${t}/contentAlign`,(a=>{const n=(0,l.applyFilters)("stackable.with-content-align-reseter.attributeNamesToReset",e,t);return["","Tablet","Mobile"].forEach((e=>{void 0!==a[(0,i.getAttrName)("%sContentAlign",e)]&&n.forEach((t=>{a[(0,i.getAttrName)(t,e)]=""}))})),a}))}render(){return(0,o.createElement)(t,this.props)}},(0,n.Z)(a,"defaultProps",{attributes:{},blockName:""}),r}),"withContentAlignReseter")};var c=a(3284);const u=(0,r.createHigherOrderComponent)((e=>{const t=t=>{const a=(0,c.useSelect)((e=>{var t,a;return null===(t=e("core/edit-post"))||void 0===t||null===(a=t.isEditingTemplate)||void 0===a?void 0:a.call(t)}));return(0,o.useEffect)((()=>{(0,i.loadGoogleFontInAttributes)(t.attributes)}),[a]),(0,o.createElement)(e,t)};return t.defaultProps={attributes:{}},t}),"withGoogleFont");var g=a(7462),d=a(4184),b=a.n(d);const m=e=>(0,r.createHigherOrderComponent)((t=>class extends o.Component{render(){const a=e.replace(/^\w+\//g,""),n=e.replace(/\//g,"-"),i=(0,l.applyFilters)(`stackable.${a}.mainClassName`,n,e),r=b()([(this.props.className||"").split(" ").filter((e=>e!==n)),i]);return(0,o.createElement)(t,(0,g.Z)({},this.props,{className:r,mainClassName:i,blockName:a}))}}),"withMainClassname");var p=a(5697),h=a.n(p),k=a(8085);const _=(0,r.createHigherOrderComponent)((e=>{var t,a;return a=t=class extends o.Component{constructor(){super(...arguments),this.setAttributes=this.setAttributes.bind(this)}componentDidUpdate(e){(0,k.isEqual)(e.attributes,this.props.attributes)||(0,l.doAction)("stackable.setAttributes.after")}setAttributes(e){const{blockName:t}=this.props;let a=(0,l.applyFilters)("stackable.setAttributes",e,this.props);a=(0,l.applyFilters)(`stackable.${t}.setAttributes`,a,this.props),this.props.setAttributes(a)}render(){return(0,o.createElement)(e,(0,g.Z)({},this.props,{setAttributes:this.setAttributes}))}},(0,n.Z)(t,"propTypes",{setAttributes:h().func.isRequired}),a}),"withSetAttributeHook"),v=(0,r.createHigherOrderComponent)((e=>{var t,a;return a=t=class extends o.Component{componentDidMount(){const{attributes:e,clientId:t}=this.props,a=`ugb-${t.substring(0,7)}`;e.uniqueClass?e.uniqueClass!==a&&document.querySelectorAll(`.${e.uniqueClass}`).length>1&&(this.props.attributes.uniqueClass=a):this.props.attributes.uniqueClass=a}render(){return(0,o.createElement)(e,this.props)}},(0,n.Z)(t,"defaultProps",{attributes:{},clientId:"",setAttributes:()=>{}}),a}),"withUniqueClass");(0,l.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",(e=>[...e,"uniqueClass"])),(0,l.addFilter)("stackable.block.attributes","stackable/unique-class",(e=>({...e,uniqueClass:{type:"string",default:""}})));const y=v,f=e=>document.querySelector(`.ugb-panel--${e}`),C=e=>{e&&(e.classList.contains("is-active")||e.click())},A=e=>{if(e){if(!e.classList.contains("is-opened")){const t=e.querySelector("button");t&&t.click()}w(e)}},w=e=>{const t=document.querySelector(".ugb-panel-tabs"),a=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar");let n=e.getBoundingClientRect().top+2;n-=t?t.getBoundingClientRect().height:0,n-=a.getBoundingClientRect().top,document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar").scrollTop+=n};var T=a(2527);let B=!1;const x={".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"},S={},E=[".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"],N=(e,t,a)=>{void 0===S[e]&&(S[e]={}),S[e][t]=a};(0,T.Z)((()=>{if(B)return;if(B=!0,!Element.prototype.matches)return;const e=(0,l.applyFilters)("stackable.click-open-inspector.listener-override",{});document.body.addEventListener("dblclick",(t=>{if(wp.customize)return;const a=(e=>{const t=e.closest("[data-type]");return t&&t.getAttribute("data-type").match(/^ugb\//i)?t.getAttribute("data-type").replace(/^ugb\//i,""):""})(t.target);if(!a)return;const n=(e=>({...S[e],...x}))(a);if(!n)return;let o=[];Object.keys(e).some((a=>!!t.target.closest(a)&&(o=e[a],!0))),[...o,...E].some((e=>{const a=t.target.closest(e);return!!a&&Object.keys(n).some((e=>!!a.matches(e)&&(e=>{let t=f(e);if(t){const e=(e=>{const t=e.closest(".ugb-inspector-panel-controls");if(!t)return null;const a=t.getAttribute("class").match(/ugb-panel-(\w+)/);if(a){const e=a[1];return document.querySelector(`.ugb-tab--${e}`)}return null})(t);C(e),A(t)}return t||[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some((a=>{const n=document.querySelector(a);return C(n),t=f(e),t&&A(t),!!t})),t})(n[e])))}))}))}));const R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.createHigherOrderComponent)((t=>class extends o.Component{constructor(){super(...arguments);const{blockName:t}=this.props;e.forEach((e=>{N(t,e[0],e[1])}))}render(){return(0,o.createElement)(t,this.props)}}),"withClickOpenInspector")};var P=a(910),I=a(3669),$=a(7200),U=a(8003),F=a(7537);const L=e=>{let{image:t,label:a,className:n,...i}=e;const l=t?t.match(/https?:/i)?t:P.srcUrl?`${P.srcUrl}/${t}`:t:"",r="free"!==i.plan,s=r&&!P.isPro&&P.showProNotice;if(r&&!P.isPro&&!P.showProNotice)return null;const c=b()(["ugb-design-layout-selector__item",n],{"is-premium":i.plan&&!P.isPro&&"free"!==i.plan,"is-locked":s}),u=s?"div":"button";return(0,o.createElement)(u,(0,g.Z)({className:c},i),(0,o.createElement)("div",{className:"ugb-design-layout-selector__wrapper"},s&&(0,o.createElement)(F.Icon,{className:"ugb-design-layout-selector__lock",icon:"lock"}),s&&(0,o.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:(0,U.__)("Learn More",P.i18n)},(0,U.__)("Learn More",P.i18n)),(0,o.createElement)("img",{className:"ugb-design-layout-selector__image",src:l,alt:a})),(0,o.createElement)("div",{className:"ugb-design-layout-selector__label"},a))};L.defaultProps={name:"",label:"",className:""};const M=L,H={image:"dist/images/higher-order-with-design-layout-selector-basic.ebc668b.png",plan:"free",label:"Basic",id:"basic"},D=e=>{const{name:t}=e,[a,n]=(0,o.useState)([]),[r,s]=(0,o.useState)([]),[c,u]=(0,o.useState)(!1),[d,m]=(0,o.useState)(!0);(0,o.useEffect)((()=>{const t=e.name.split("/")[1],a=(0,l.applyFilters)(`stackable.${t}.edit.layouts`,[]).map((e=>({...e,plan:e.premium?"premium":"free"})));n(a.length?a:[H]),(0,I.getDesigns)({type:"block",block:t,apiVersion:"v2"}).then((t=>{var n;s(t),m(!1),!t.length&&a.length<=1&&e.setAttributes({design:(null===(n=a[0])||void 0===n?void 0:n.value)||H.id})}))}),[]);const p=(0,o.createElement)(o.Fragment,null,(0,o.createElement)(F.Icon,{icon:"admin-settings"}),(0,U.__)("Pick a layout or design",P.i18n)),h=!!a.length&&(0,o.createElement)("div",{className:"ugb-design-layout-selector__layout-items"},(a.filter((e=>!(0,l.applyFilters)(`stackable.${t}.edit.inspector.layout.excludeDesigns`,[]).includes(e.value)))||[]).map((t=>(0,o.createElement)(M,(0,g.Z)({className:"ugb-design-layout-selector__layout-item",onClick:()=>{if(t.premium&&!P.isPro)return;const{setAttributes:a}=e;a({design:t.value})},key:t.label},t))))),k=b()("ugb-design-layout-selector__design-library",{"is-busy":d}),_=!!r.length&&(0,o.createElement)("div",{className:k},(0,o.createElement)("div",{className:"components-placeholder__fieldset ugb-design-layout-selector__design-container"},d&&(0,o.createElement)("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},(0,o.createElement)(F.Spinner,null)),(0,o.createElement)("div",{className:"ugb-design-layout-selector__design-items"},(r||[]).map((t=>{const a={image:t.image,plan:t.plan,label:t.label};return(0,o.createElement)(M,(0,g.Z)({className:"ugb-design-layout-selector__design-item",onClick:()=>{(P.isPro||"free"===t.plan)&&(u(!0),(0,I.getDesign)(t.id,"v2").then((t=>{u(!1),(0,i.applyBlockDesign)(t.attributes,e.clientId)})).catch((()=>{u(!1)})))},key:t.label},a))}))))),v=b()("ugb-design-layout-selector",{"is-busy":c});return(0,o.createElement)(F.Placeholder,{className:v,label:p},c&&(0,o.createElement)("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},(0,o.createElement)(F.Spinner,null)),(0,o.createElement)("div",{className:"ugb-design-layout-selector__content"},!!a.length&&(0,o.createElement)("div",{className:"components-placeholder__instructions"},(0,U.__)("Select a variation to start with.",P.i18n)),h,!!r.length&&(0,o.createElement)("div",{className:"components-placeholder__instructions"},!!a.length&&(0,U.__)("Or pick from our Design Library.",P.i18n),!a.length&&(0,U.__)("Select a design from our library to start with.",P.i18n)),_),(0,o.createElement)("div",{className:"ugb-design-layout-selector__close-button"},(0,o.createElement)(F.ButtonGroup,null,(0,o.createElement)($.Button,{isLink:!0,isLarge:!0,onClick:()=>{if(a.length){const t=a.find((e=>!!P.isPro||!e.premium)),{setAttributes:n}=e;n({design:t.value})}}},(0,U.__)("Skip",P.i18n))),!P.isPro&&P.showProNotice&&(!!a.length&&a.some((e=>"premium"===e.plan))||!!r.length&&r.some((e=>"premium"===e.plan)))&&(0,o.createElement)("p",{className:"ugb-design-layout-selector__notice"},(0,U.__)("You can hide premium hints in the settings",P.i18n))))};D.defaultProps={name:""};const O=D,z=["ugb/column","ugb/columns"];(0,r.createHigherOrderComponent)((e=>{const t=t=>{const a=void 0!==t.attributes.design&&""===t.attributes.design;return(0,o.useMemo)((()=>!z.includes(t.name)),[])&&a?(0,o.createElement)(O,t):(0,o.createElement)(e,t)};return t.defaultProps={...e.defaultProps||{},attributes:{}},t}),"withDesignLayoutSelector");var W=a(9858);const q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a=>{const n=n=>{const i=b()([n.className,n.attributes.uniqueClass]),{blockName:r}=n,s=(0,l.applyFilters)(`stackable.${r}.styles`,e(n),n),c=t.editorMode?W.iz:W.iz.Content,u=(0,o.createElement)(c,{blockUniqueClassName:n.attributes.uniqueClass,blockMainClassName:n.mainClassName,style:s,attributes:n.attributes});return(0,o.createElement)(a,(0,g.Z)({},n,{className:i,styles:u}))};return n.defaultProps={...a.defaultProps||{},attributes:{},blockName:"",className:"",mainClassName:""},n}};var V=a(78);const G={},j=(e=>{const t=t=>{var a;const{clientId:n}=(0,V.useBlockEditContext)(),i=t.initialTab||G[n]||(null!==(a=t.tabs)&&void 0!==a&&a.includes("style")?"style":(0,k.first)(t.tabs)||"style");(0,l.doAction)("stackable.inspector.tab.initial",n,i);const r={...t,initialTab:i,onClick:e=>{G[n]=e,(0,l.doAction)("stackable.inspector.tab.click",n,e),t.onClick(e)}};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,r))};return t.defaultProps={...e.defaultProps||{}},t})($.PanelTabs);(0,l.addFilter)("stackable.inspector.tabs","stackable/v2",(e=>e.find((e=>{let{value:t}=e;return"layout"===t}))?e:[{value:"layout",title:(0,U.__)("Layout",P.i18n),label:(0,U.__)("Layout Tab",P.i18n),icon:"admin-settings"},...e]));const Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{const a=a=>{const{blockName:n}=a,[i,r]=(0,o.useState)(null),s=(0,l.applyFilters)(`stackable.${n}.edit.inspector.style.block`,null,a);return(0,o.createElement)(o.Fragment,null,(0,l.applyFilters)("stackable.edit.inspector.before",null,a),(0,l.applyFilters)(`stackable.${n}.edit.inspector.before`,null,a),(0,o.createElement)(V.InspectorControls,null,(0,o.createElement)(j,{tabs:e||["layout","style","advanced"],onTabFirstOpen:r,onClick:r}),(!i||"layout"===i)&&(0,o.createElement)($.InspectorPanelControls,null,(0,l.applyFilters)(`stackable.${n}.edit.inspector.layout.before`,null,a),(0,l.applyFilters)(`stackable.${n}.edit.inspector.layout.after`,null,a)),(!i||"style"===i)&&(0,o.createElement)($.InspectorPanelControls,{tab:"style"},(0,l.applyFilters)(`stackable.${n}.edit.inspector.style.before`,null,a),(0,l.applyFilters)(`stackable.${n}.edit.inspector.style.after`,null,a),s&&(0,o.createElement)("div",{className:"ugb-panel-controls-separator",role:"presentation"},"— — —"),s),(!i||"advanced"===i)&&(0,o.createElement)($.InspectorPanelControls,{tab:"advanced"},(0,l.applyFilters)(`stackable.${n}.edit.inspector.advanced.before`,null,a),(0,l.applyFilters)(`stackable.${n}.edit.inspector.advanced.after`,null,a))),(0,o.createElement)(t,a))};return a.defaultProps={...t.defaultProps||{},attributes:{},blockName:""},a}}},8423:(e,t,a)=>{"use strict";a.d(t,{TA:()=>l,yA:()=>i,_r:()=>u,_H:()=>d,ex:()=>b,hz:()=>k,mD:()=>g});var n=a(7545);const o=e=>({...(0,n.createAllCombinationAttributes)(e,{type:"string",default:""},["BackgroundColorType","BackgroundColor","BackgroundColor2","BackgroundMediaId","BackgroundMediaUrl","TabletBackgroundMediaId","TabletBackgroundMediaUrl","MobileBackgroundMediaId","MobileBackgroundMediaUrl","BackgroundGradientBlendMode","BackgroundPosition","TabletBackgroundPosition","MobileBackgroundPosition","BackgroundRepeat","TabletBackgroundRepeat","MobileBackgroundRepeat","BackgroundSize","TabletBackgroundSize","MobileBackgroundSize","BackgroundImageBlendMode"]),...(0,n.createAllCombinationAttributes)(e,{type:"number",default:""},["BackgroundColorOpacity","BackgroundTintStrength","BackgroundGradientDirection","BackgroundCustomSize","TabletBackgroundCustomSize","MobileBackgroundCustomSize","BackgroundGradientLocation1","BackgroundGradientLocation2"]),...(0,n.createAllCombinationAttributes)(e,{type:"boolean",default:""},["FixedBackground"]),...(0,n.createAllCombinationAttributes)(e,{type:"string",default:"%"},["BackgroundCustomSizeUnit","TabletBackgroundCustomSizeUnit","MobileBackgroundCustomSizeUnit"])}),i=o,l=e=>Object.keys(o(e));var r=a(8085),s=a(8003);const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t=>(0,r.camelCase)((0,s.sprintf)(e,t)),l=(0,n.__getValue)(a,i),{importantBackgroundColor:c=!1,importantBackgroundPosition:u=!1,importantBackgroundSize:g=!1,importantBackgroundRepeat:d=!1}=o,b=l("BackgroundCustomSize")?l("BackgroundCustomSize")+(l("BackgroundCustomSizeUnit")||"%"):void 0,m=l("TabletBackgroundCustomSize")?l("TabletBackgroundCustomSize")+(l("TabletBackgroundCustomSizeUnit")||"%"):void 0,p=l("MobileBackgroundCustomSize")?l("MobileBackgroundCustomSize")+(l("MobileBackgroundCustomSizeUnit")||"%"):void 0;let h=(0,n.appendImportant)(l("BackgroundColor"),c);return l("BackgroundColorType")||void 0===a[i("BackgroundColorOpacity")]||""===a[i("BackgroundColorOpacity")]||l("BackgroundMediaURL")||l("TabletBackgroundMediaURL")||l("MobileBackgroundMediaURL")||(h=(0,n.appendImportant)(`${(0,n.hexToRgba)(l("BackgroundColor")||"#ffffff",l("BackgroundColorOpacity")||0)}`,c)),"tablet"!==t&&"mobile"!==t?{backgroundColor:h,backgroundAttachment:l("FixedBackground")?"fixed":void 0,backgroundImage:l("BackgroundMediaURL","url(%s)"),backgroundPosition:(0,n.appendImportant)(l("BackgroundPosition"),u),backgroundRepeat:(0,n.appendImportant)(l("BackgroundRepeat"),d),backgroundSize:l("BackgroundSize")?(0,n.appendImportant)("custom"!==l("BackgroundSize")?l("BackgroundSize"):b,g):void 0,backgroundBlendMode:l("BackgroundImageBlendMode")}:"tablet"===t?{backgroundImage:l("TabletBackgroundMediaURL","url(%s)"),backgroundPosition:(0,n.appendImportant)(l("TabletBackgroundPosition"),u),backgroundRepeat:(0,n.appendImportant)(l("TabletBackgroundRepeat"),d),backgroundSize:l("TabletBackgroundSize")?(0,n.appendImportant)("custom"!==l("TabletBackgroundSize")?l("TabletBackgroundSize"):m,g):void 0}:{backgroundImage:l("MobileBackgroundMediaURL","url(%s)"),backgroundPosition:(0,n.appendImportant)(l("MobileBackgroundPosition"),u),backgroundRepeat:(0,n.appendImportant)(l("MobileBackgroundRepeat"),d),backgroundSize:l("MobileBackgroundSize")?(0,n.appendImportant)("custom"!==l("MobileBackgroundSize")?l("MobileBackgroundSize"):p,g):void 0}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t=>(0,r.camelCase)((0,s.sprintf)(e,t)),l=(0,n.__getValue)(a,i),{importantBackgroundColor:c=!1}=o,u=parseInt(l("BackgroundTintStrength","",5)||0,10)/10,g="gradient"===l("BackgroundColorType"),d=(0,n.hexToRgba)(l("BackgroundColor2")||"#ffffff",0),b=(0,n.hexToRgba)(l("BackgroundColor")||"#ffffff",0),m=`${l("BackgroundGradientLocation1")||"0"}%`,p=`${l("BackgroundGradientLocation2")||"100"}%`;return"tablet"!==t&&"mobile"!==t?{backgroundColor:(0,n.appendImportant)(!g&&l("BackgroundColor")?l("BackgroundColor"):void 0,c),backgroundImage:(0,n.appendImportant)(g?`linear-gradient(${l("BackgroundGradientDirection","%sdeg","90deg")}, ${l("BackgroundColor")||d} ${m}, ${l("BackgroundColor2")||b} ${p})`:void 0,c),opacity:l("BackgroundMediaURL")?u:void 0,mixBlendMode:g?l("BackgroundGradientBlendMode"):void 0}:"tablet"===t?{opacity:l("TabletBackgroundMediaURL")?u:void 0}:{opacity:l("MobileBackgroundMediaURL")?u:void 0}},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=t=>(0,r.camelCase)((0,s.sprintf)(e,t)),o=(0,n.__getValue)(t,a);return"gradient"===o("BackgroundColorType")||o("BackgroundMediaUrl")||o("TabletBackgroundMediaUrl")||o("MobileBackgroundMediaUrl")},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{[`.${t}`]:{...c(e,"desktop",a,n)},[`.${t}:before`]:{...u(e,"desktop",a,n)},tablet:{[`.${t}`]:{...c(e,"tablet",a,n)},[`.${t}:before`]:{...u(e,"tablet",a,n)}},mobile:{[`.${t}`]:{...c(e,"mobile",a,n)},[`.${t}:before`]:{...u(e,"mobile",a,n)}}}},b=c;var m=a(2610),p=a(4184),h=a.n(p);const k=(e,t)=>{const a=(0,n.__getValue)(t.attributes,(t=>(0,r.camelCase)((0,s.sprintf)(e,t))),""),o=a("BackgroundMediaUrl"),i=a("TabletBackgroundMediaUrl"),l=a("MobileBackgroundMediaUrl"),c=h()(["ugb-video-background"],{"ugb--video-hide-tablet":i,"ugb--video-hide-mobile":l}),u=h()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-mobile":l}),g=h()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-tablet":!0});return(0,m.createElement)(m.Fragment,null,(0,n.urlIsVideo)(o)&&(0,m.createElement)("video",{className:c,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:o}),(0,n.urlIsVideo)(i)&&(0,m.createElement)("video",{className:u,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:i}),(0,n.urlIsVideo)(l)&&(0,m.createElement)("video",{className:g,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:l}))}},4184:(e,t)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var i=typeof a;if("string"===i||"number"===i)e.push(a);else if(Array.isArray(a)){if(a.length){var l=o.apply(null,a);l&&e.push(l)}}else if("object"===i)if(a.toString===Object.prototype.toString)for(var r in a)n.call(a,r)&&a[r]&&e.push(r);else e.push(a.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(a=function(){return o}.apply(t,[]))||(e.exports=a)}()},4863:function(e){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var a=Object.prototype.toString.call(e);return"[object RegExp]"===a||"[object Date]"===a||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((a=e,Array.isArray(a)?[]:{}),e,t):e;var a}function n(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function i(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=a(e[t],n)})),o(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?i[o]=function(e,t){if(!t.customMerge)return l;var a=t.customMerge(e);return"function"==typeof a?a:l}(o,n)(e[o],t[o],n):i[o]=a(t[o],n)})),i}function l(t,o,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||e;var r=Array.isArray(o);return r===Array.isArray(t)?r?l.arrayMerge(t,o,l):i(t,o,l):a(o,l)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,a){return l(e,a,t)}),{})},l}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var l,r,s=o(e),c=1;c<arguments.length;c++){for(var u in l=Object(arguments[c]))a.call(l,u)&&(s[u]=l[u]);if(t){r=t(l);for(var g=0;g<r.length;g++)n.call(l,r[g])&&(s[r[g]]=l[r[g]])}}return s}},2703:(e,t,a)=>{"use strict";var n=a(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,a,o,i,l){if(l!==n){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return a.PropTypes=a,a}},5697:(e,t,a)=>{e.exports=a(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2408:(e,t,a)=>{"use strict";var n=a(7418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var l=60109,r=60110,s=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var g=Symbol.for;o=g("react.element"),i=g("react.portal"),t.Fragment=g("react.fragment"),t.StrictMode=g("react.strict_mode"),t.Profiler=g("react.profiler"),l=g("react.provider"),r=g("react.context"),s=g("react.forward_ref"),t.Suspense=g("react.suspense"),c=g("react.memo"),u=g("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p={};function h(e,t,a){this.props=e,this.context=t,this.refs=p,this.updater=a||m}function k(){}function _(e,t,a){this.props=e,this.context=t,this.refs=p,this.updater=a||m}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=h.prototype;var v=_.prototype=new k;v.constructor=_,n(v,h.prototype),v.isPureReactComponent=!0;var y={current:null},f=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,a){var n,i={},l=null,r=null;if(null!=t)for(n in void 0!==t.ref&&(r=t.ref),void 0!==t.key&&(l=""+t.key),t)f.call(t,n)&&!C.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(1===s)i.children=a;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===i[n]&&(i[n]=s[n]);return{$$typeof:o,type:e,key:l,ref:r,props:i,_owner:y.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g;function B(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function x(e,t,a,n,l){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var s=!1;if(null===e)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return l=l(s=e),e=""===n?"."+B(s,0):n,Array.isArray(l)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),x(l,t,a,"",(function(e){return e}))):null!=l&&(w(l)&&(l=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,a+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(T,"$&/")+"/")+e)),t.push(l)),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=n+B(r=e[c],c);s+=x(r,t,a,u,l)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(r=e.next()).done;)s+=x(r=r.value,t,a,u=n+B(r,c++),l);else if("object"===r)throw t=""+e,Error(b(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function S(e,t,a){if(null==e)return e;var n=[],o=0;return x(e,n,"","",(function(e){return t.call(a,e,o++)})),n}function E(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function R(){var e=N.current;if(null===e)throw Error(b(321));return e}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:S,forEach:function(e,t,a){S(e,(function(){t.apply(this,arguments)}),a)},count:function(e){var t=0;return S(e,(function(){t++})),t},toArray:function(e){return S(e,(function(e){return e}))||[]},only:function(e){if(!w(e))throw Error(b(143));return e}},t.Component=h,t.PureComponent=_,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,a){if(null==e)throw Error(b(267,e));var i=n({},e.props),l=e.key,r=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,s=y.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)f.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=a;else if(1<u){c=Array(u);for(var g=0;g<u;g++)c[g]=arguments[g+2];i.children=c}return{$$typeof:o,type:e.type,key:l,ref:r,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:r,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=w,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:E}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,a){return R().useImperativeHandle(e,t,a)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,a){return R().useReducer(e,t,a)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},7294:(e,t,a)=>{"use strict";e.exports=a(2408)},3726:function(e,t,a){"use strict";var n;!function(o){if("function"!=typeof i){var i=function(e){return e};i.nonNative=!0}const l=i("plaintext"),r=i("html"),s=i("comment"),c=/<(\w*)>/g,u=/<\/?([^\s\/>]+)/;function g(e,t,a){return b(e=e||"",d(t=t||[],a=a||""))}function d(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let a;for(;a=c.exec(e);)t.add(a[1])}else i.nonNative||"function"!=typeof e[i.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:l,tag_buffer:"",depth:0,in_quote_char:""}}function b(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let a=t.allowable_tags,n=t.tag_replacement,o=t.state,i=t.tag_buffer,c=t.depth,u=t.in_quote_char,g="";for(let t=0,d=e.length;t<d;t++){let d=e[t];if(o===l)"<"===d?(o=r,i+=d):g+=d;else if(o===r)switch(d){case"<":if(u)break;c++;break;case">":if(u)break;if(c){c--;break}u="",o=l,i+=">",a.has(m(i))?g+=i:g+=n,i="";break;case'"':case"'":u=d===u?"":u||d,i+=d;break;case"-":"<!-"===i&&(o=s),i+=d;break;case" ":case"\n":if("<"===i){o=l,g+="< ",i="";break}i+=d;break;default:i+=d}else o===s&&(">"===d?("--"==i.slice(-2)&&(o=l),i=""):i+=d)}return t.state=o,t.tag_buffer=i,t.depth=c,t.in_quote_char=u,g}function m(e){let t=u.exec(e);return t?t[1].toLowerCase():null}g.init_streaming_mode=function(e,t){let a=d(e=e||[],t=t||"");return function(e){return b(e||"",a)}},void 0===(n=function(){return g}.call(t,a,t,e))||(e.exports=n)}()},2473:e=>{"use strict";e.exports=function(){}},9017:(e,t,a)=>{var n={"./accordion/index.js":5883,"./blockquote/index.js":2832,"./blog-posts/index.js":4071,"./button/index.js":7753,"./call-to-action/index.js":6111,"./card/index.js":7701,"./column/index.js":4610,"./columns/index.js":9375,"./container/index.js":7278,"./count-up/index.js":2053,"./divider/index.js":1016,"./expand/index.js":8958,"./feature-grid/index.js":2878,"./feature/index.js":2977,"./header/index.js":785,"./heading/index.js":9815,"./icon-list/deprecated/index.js":7314,"./icon-list/higher-order/index.js":4402,"./icon-list/higher-order/with-transform-old-icon-attributes/index.js":1794,"./icon-list/index.js":4917,"./icon/index.js":6881,"./image-box/index.js":8776,"./notification/index.js":3540,"./number-box/index.js":2786,"./pricing-box/index.js":2961,"./separator/index.js":3148,"./spacer/index.js":5812,"./team-member/index.js":5493,"./testimonial/index.js":2360,"./text/index.js":2231,"./video-popup/index.js":4249};function o(e){var t=i(e);return a(t)}function i(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=9017},8085:e=>{"use strict";e.exports=lodash},910:e=>{"use strict";e.exports=stackable},7200:e=>{"use strict";e.exports=stk.components},3669:e=>{"use strict";e.exports=stk.designLibrary},9467:e=>{"use strict";e.exports=stk.icons},7545:e=>{"use strict";e.exports=stk.util},78:e=>{"use strict";e.exports=wp.blockEditor},378:e=>{"use strict";e.exports=wp.blocks},7537:e=>{"use strict";e.exports=wp.components},3749:e=>{"use strict";e.exports=wp.compose},3284:e=>{"use strict";e.exports=wp.data},2610:e=>{"use strict";e.exports=wp.element},3882:e=>{"use strict";e.exports=wp.hooks},8003:e=>{"use strict";e.exports=wp.i18n},4942:(e,t,a)=>{"use strict";function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a.d(t,{Z:()=>n})},7462:(e,t,a)=>{"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},n.apply(this,arguments)}a.d(t,{Z:()=>n})}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=a(2527),t=a(3284),n=a(378),o=a(8085);const i=["style","svg"],l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;const{name:a,isValid:n,validationIssues:o,originalContent:l=""}=e;if(!a||!a.match(/^ugb\//))return!1;if(!a.match(/separator/)&&!l.match(/ugb-main-block/))return!1;if(n)return!1;if(!o.length)return!1;if(r(o[0]))return!0;if(u(o[0]))return!0;if(m(o[0]))return!0;if(s(o[0]))return!0;if(c(o[0]))return!0;if(p(o[0]))return!0;if(h(o[0]))return!0;if(g(o[0]))return!0;if(d(o[0]))return!0;if(b(o[0]))return!0;if(y(o[0]))return!0;if(f(o[0]))return!0;if(C(o[0]))return!0;if(A(a,o[0]))return!0;if(w(e))return!0;const k=v(e);return!!k&&k.some((e=>t.includes(e)))},r=e=>!!e.args&&4===e.args.length&&"string"==typeof e.args[1]&&"string"==typeof e.args[2]&&"string"==typeof e.args[3]&&"class"===e.args[1]&&!(0,o.isEqual)(e.args[2].match(/ugb-[^\s]+/g),e.args[3].match(/ugb-[^\s]+/g)),s=e=>!!e.args&&4===e.args.length&&"string"==typeof e.args[1]&&"string"==typeof e.args[2]&&"string"==typeof e.args[3]&&"class"===e.args[1]&&(e.args[2].match(/wp-image-\d+/)&&!e.args[3].match(/wp-image-\d+/)||!e.args[2].match(/wp-image-\d+/)&&e.args[3].match(/wp-image-\d+/)),c=e=>{if(!e.args)return!1;if(4!==e.args.length)return!1;if("string"!=typeof e.args[1]||"string"!=typeof e.args[2]||"string"!=typeof e.args[3])return!1;if("class"!==e.args[1])return!1;const t=(0,o.first)(e.args[2].match(/wp-image-\d+/)),a=(0,o.first)(e.args[3].match(/wp-image-\d+/));return!(!t||!a)&&a!==t},u=e=>!!e.args&&3===e.args.length&&("style"===e.args[1]&&"style"!==e.args[2]||"style"!==e.args[1]&&"style"===e.args[2]),g=e=>!!e.args&&4===e.args.length&&"string"==typeof e.args[1]&&("aria-label"===e.args[1]||"title"===e.args[1]||"alt"===e.args[1]),d=e=>{if(!e.args)return!1;if(3!==e.args.length)return!1;if("object"!=typeof e.args[1]||"object"!=typeof e.args[2])return!1;if(!Array.isArray(e.args[1])||!Array.isArray(e.args[2]))return!1;const t=e.args[1].map((e=>e[0])),a=e.args[2].map((e=>e[0])),n=[...(0,o.difference)(t,a),...(0,o.difference)(a,t)];return!!(n.includes("aria-label")||n.includes("title")||n.includes("alt")||n.includes("role"))},b=e=>{if(!e.args)return!1;if(3!==e.args.length)return!1;if("object"!=typeof e.args[1]||"object"!=typeof e.args[2])return!1;if(!Array.isArray(e.args[1])||!Array.isArray(e.args[2]))return!1;const t=e.args[2].some((e=>"aria-level"===e[0])),a=e.args[1].some((e=>"aria-level"===e[0]));return!(!t||a)},m=e=>!!e.args&&3===e.args.length&&("svg"===e.args[1]&&"svg"!==e.args[2]||"svg"!==e.args[1]&&"svg"===e.args[2]),p=e=>!!e.args&&3===e.args.length&&("video"===e.args[1]&&"video"!==e.args[2]||"video"===e.args[2]&&"video"!==e.args[1]),h=e=>!!e.args&&3===e.args.length&&!!Array.isArray(e.args[1])&&!!e.args[1].some((e=>Array.isArray(e)&&"playsinline"===e[0])),k=(e,t)=>{const a=Math.max(e.length,t.length);for(let n=0;n<a;n++)if(e[n]!==t[n])return n;return-1},_=e=>(e.match(/<\/?[\w\d]+/g)||[]).map((e=>e.replace("<",""))).reduce(((e,t)=>(0===t.indexOf("/")?e.pop():e.push(t),e)),[]),v=e=>{const{name:t,attributes:a,innerBlocks:i,originalContent:l,isValid:r}=e;if(r)return!1;let s;try{s=(0,n.getSaveContent)(t,a,i)}catch(e){return!1}const c=l.substr(0,k(l,s)),u=s.substr(0,k(l,s));return(0,o.filter)([..._(c),..._(u)])},y=e=>{if(!e.args)return!1;if(3!==e.args.length)return!1;if(!e.args[0].match(/attributes/))return!1;const t=e.args[1].some((e=>"data-video"===e[0])),a=e.args[2].some((e=>"data-video"===e[0]));return t&&!a},f=e=>{if(!e.args)return!1;if(3!==e.args.length)return!1;if(!e.args[0].match(/attributes/))return!1;const t=e.args[1].some((e=>"aria-hidden"===e[0])),a=e.args[2].some((e=>"aria-hidden"===e[0]));return t&&!a},C=e=>{if(!e.args)return!1;if(3!==e.args.length)return!1;if(!e.args[0].match(/attributes/))return!1;const t=e.args[1].some((e=>"focusable"===e[0])),a=e.args[2].some((e=>"focusable"===e[0]));return t&&!a},A=(e,t)=>"ugb/video-popup"===e&&!!t.args&&3===t.args.length&&"button"===t.args[1]&&"a"===t.args[2],w=e=>{var t,a;const{name:o,attributes:i,innerBlocks:l,originalContent:r,isValid:s}=e;if(s)return!1;let c;try{c=(0,n.getSaveContent)(o,i,l)}catch(e){return!1}const u=null===(t=r.match(/<style>(.*)?<\/style>/g))||void 0===t?void 0:t[0],g=null===(a=c.match(/<style>(.*)?<\/style>/g))||void 0===a?void 0:a[0];return!(!u||!g)&&u!==g},T=e=>e.map((e=>{const a=e;if("core/block"===e.name){var o,i,r;const{attributes:{ref:s}}=e,c=(0,n.parse)(null===(o=(0,t.select)("core").getEntityRecords("postType","wp_block",{include:[s]}))||void 0===o||null===(i=o[0])||void 0===i||null===(r=i.content)||void 0===r?void 0:r.raw)||[],[u,g]=(e=>{const t=[...e];let a=!1;const n=e=>{e.forEach((e=>{if(l(e)){a=!0;const t=B(e);for(const a in t)e[a]=t[a]}e.innerBlocks.length&&n(e.innerBlocks)}))};return n(t),[t,a]})(c);if(g)return console.log("Stackable notice: block "+a.name+" ("+a.clientId+") was auto-recovered, you should not see this after saving your page."),{blocks:u,isReusable:!0,ref:s}}if(a.innerBlocks&&a.innerBlocks.length){const e=T(a.innerBlocks);e.some((e=>e.recovered))&&(a.innerBlocks=e,a.replacedClientId=a.clientId,a.recovered=!0)}if(l(a)){const e=B(a);return e.replacedClientId=a.clientId,e.recovered=!0,console.log("Stackable notice: block "+a.name+" ("+a.clientId+") was auto-recovered, you should not see this after saving your page."),e}return a})),B=e=>{let{name:t,attributes:a,innerBlocks:o}=e;return(0,n.createBlock)(t,a,o)};(0,e.Z)((()=>{window._wpLoadBlockEditor&&window._wpLoadBlockEditor.then((function(){setTimeout((()=>{const e=(0,t.subscribe)((()=>{null!==(0,t.select)("core").getEntityRecords("postType","wp_block")&&(e(),((0,t.select)("core/editor")?T((0,t.select)("core/editor").getEditorBlocks()):[]).forEach((e=>{e.isReusable&&e.ref&&(0,t.dispatch)("core").editEntityRecord("postType","wp_block",e.ref,{content:(0,n.serialize)(e.blocks)}).then((()=>{})),e.recovered&&e.replacedClientId&&(0,t.dispatch)("core/block-editor").replaceBlock(e.replacedClientId,e)})),(()=>{const e=document.querySelector("#ugb-disable-block-warnings");e&&document.body.removeChild(e)})())}))}),0)}))}));var x=a(3882);(0,x.addFilter)("stackable.global-settings.typography-selectors","stackable/v2",((e,t)=>(e.push(`[data-type^="ugb/"] ${t}`),t.startsWith(".")&&e.push(`[data-type^="ugb/"] ${t} p`),e))),(0,x.addFilter)("stackable.global-settings.typography.selector-is-stackable","stackable/v2",((e,t)=>e||t.includes("ugb/"))),a(591);var S=a(2610),E=a(7200),N=a(7545),R=a(9858),P=a(8003),I=a(4863),$=a.n(I),U=a(910);const F=(e,t)=>(a,n)=>{const{setAttributes:o}=n,{blockTag:i="div"}=n.attributes;return(0,S.createElement)(S.Fragment,null,a,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("General",U.i18n),initialOpen:!1},(0,x.applyFilters)(`stackable.${e}.edit.advanced.general.before`,null,n),t.blockTag&&(0,S.createElement)(E.AdvancedSelectControl,{label:(0,P.sprintf)((0,P._x)("%s HTML Tag","component",U.i18n),(0,P.__)("Block",U.i18n)),value:i,options:[{value:"",label:(0,P.__)("Default",U.i18n)},{value:"div",label:(0,P._x)("Div","HTML Tag",U.i18n)},{value:"blockquote",label:(0,P._x)("Blockquote","HTML Tag",U.i18n)},{value:"section",label:(0,P._x)("Section","HTML Tag",U.i18n)},{value:"article",label:(0,P._x)("Article","HTML Tag",U.i18n)},{value:"aside",label:(0,P._x)("Aside","HTML Tag",U.i18n)},{value:"main",label:(0,P._x)("Main","HTML Tag",U.i18n)},{value:"header",label:(0,P._x)("Header","HTML Tag",U.i18n)},{value:"footer",label:(0,P._x)("Footer","HTML Tag",U.i18n)},{value:"nav",label:(0,P._x)("Nav","HTML Tag",U.i18n)},{value:"address",label:(0,P._x)("Address","HTML Tag",U.i18n)},{value:"hgroup",label:(0,P._x)("Hgroup","HTML Tag",U.i18n)}],onChange:e=>o({blockTag:e})}),t.opacity&&(0,S.createElement)(R.n9,{attrNameTemplate:"%sBlockOpacity",setAttributes:o,blockAttributes:n.attributes},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Opacity",U.i18n),min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-advanced-opacity"})),t.zIndex&&(0,S.createElement)(R.n9,{attrNameTemplate:"%sBlockZIndex",setAttributes:o,blockAttributes:n.attributes},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Z-Index",U.i18n),min:-100,max:1e3,allowReset:!0,placeholder:"1",className:"ugb--help-tip-advanced-zindex"})),(0,x.applyFilters)(`stackable.${e}.edit.advanced.general.after`,null,n)))},L=()=>(e,t)=>{const a=(0,N.__getValue)(t.attributes),n=`.${t.mainClassName}`,o={[n]:{zIndex:(0,N.appendImportant)(a("blockZIndex")),opacity:(0,N.appendImportant)(a("blockOpacity"))},tablet:{[n]:{zIndex:(0,N.appendImportant)(a("tabletBlockZIndex")),opacity:(0,N.appendImportant)(a("tabletBlockOpacity"))}},mobile:{[n]:{zIndex:(0,N.appendImportant)(a("mobileBlockZIndex")),opacity:(0,N.appendImportant)(a("mobileBlockOpacity"))}}};return $().all([e,o])},M=e=>({...e,blockTag:{type:"string",default:""},...(0,N.createAllCombinationAttributes)("%sBlockOpacity",{type:"number",default:""},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sBlockZIndex",{type:"number",default:""},["","Tablet","Mobile"])});(0,x.removeFilter)("stackable.setAttributes","stackable/module/block-spacing"),(0,x.addFilter)("stackable.setAttributes","stackable/module/block-spacing",((e,t)=>(void 0===e.align||"full"===e.align&&"full"!==t.align&&(e.marginRight="",e.marginLeft="",e.tabletMarginRight="",e.tabletMarginLeft="",e.tabletPaddingRight="",e.tabletPaddingLeft=""),e)));const H=(e,t)=>(a,n)=>{const{setAttributes:o}=n,{align:i=!1,blockInnerWidth:l="",marginTop:r="",marginRight:s="",marginBottom:c="",marginLeft:u="",marginUnit:g="px",tabletMarginTop:d="",tabletMarginRight:b="",tabletMarginBottom:m="",tabletMarginLeft:p="",tabletMarginUnit:h="px",mobileMarginTop:k="",mobileMarginRight:_="",mobileMarginBottom:v="",mobileMarginLeft:y="",mobileMarginUnit:f="px",paddingTop:C="",paddingBottom:A="",paddingUnit:w="px",tabletPaddingTop:T="",tabletPaddingBottom:B="",tabletPaddingRight:N="",tabletPaddingLeft:R="",tabletPaddingUnit:I="px",mobilePaddingTop:$="",mobilePaddingBottom:F="",mobilePaddingUnit:L="px",blockHeight:M="",blockHeightUnit:H="px",tabletBlockHeight:D="",tabletBlockHeightUnit:O="px",mobileBlockHeight:z="",mobileBlockHeightUnit:W="px",blockWidth:q="",blockWidthUnit:V="px",tabletBlockWidth:G="",tabletBlockWidthUnit:j="px",mobileBlockWidth:Z="",mobileBlockWidthUnit:X="px",blockHorizontalAlign:Y="",tabletBlockHorizontalAlign:Q="",mobileBlockHorizontalAlign:J="",blockVerticalAlign:K="",tabletBlockVerticalAlign:ee="",mobileBlockVerticalAlign:te=""}=n.attributes;let{paddingRight:ae="",paddingLeft:ne="",mobilePaddingRight:oe="",mobilePaddingLeft:ie=""}=n.attributes;return"full"===i&&(ae=""===ae?35:ae,ne=""===ne?35:ne,oe=""===oe?18:oe,ie=""===ie?18:ie),(0,S.createElement)(S.Fragment,null,a,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Block Spacing",U.i18n),initialOpen:!1,className:"ugb--help-tip-advanced-block-spacing"},(0,x.applyFilters)(`stackable.${e}.edit.advanced.block-spacing.before`,null,n),t.height&&(0,S.createElement)(S.Fragment,null,(0,S.createElement)(E.WhenResponsiveScreen,null,(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Min. Block Height",U.i18n),units:["px","vh"],min:[0,0],max:[1e3,100],step:[1,1],allowReset:!0,value:M,unit:H,onChange:e=>o({blockHeight:e}),onChangeUnit:e=>o({blockHeightUnit:e}),placeholder:"0",className:"ugb--help-tip-advanced-block-height"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Min. Block Height",U.i18n),units:["px","vh"],min:[0,0],max:[1e3,100],step:[1,1],allowReset:!0,value:D,unit:O,onChange:e=>o({tabletBlockHeight:e}),onChangeUnit:e=>o({tabletBlockHeightUnit:e}),className:"ugb--help-tip-advanced-block-height"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Min. Block Height",U.i18n),units:["px","vh"],min:[0,0],max:[1e3,100],step:[1,1],allowReset:!0,value:z,unit:W,onChange:e=>o({mobileBlockHeight:e}),onChangeUnit:e=>o({mobileBlockHeightUnit:e}),className:"ugb--help-tip-advanced-block-height"}))),t.verticalAlign&&(0,S.createElement)(S.Fragment,null,""!==M&&(0,S.createElement)(E.WhenResponsiveScreen,null,(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Content Vertical Align",U.i18n),controls:"flex-vertical",value:K,onChange:e=>o({blockVerticalAlign:K!==e?e:""}),className:"ugb--help-tip-advanced-block-vertical-align"})),""!==D&&(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Content Vertical Align",U.i18n),controls:"flex-vertical",value:ee,onChange:e=>o({tabletBlockVerticalAlign:ee!==e?e:""}),className:"ugb--help-tip-advanced-block-vertical-align"})),""!==z&&(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Content Vertical Align",U.i18n),controls:"flex-vertical",value:te,onChange:e=>o({mobileBlockVerticalAlign:te!==e?e:""}),className:"ugb--help-tip-advanced-block-vertical-align"}))),t.width&&(0,S.createElement)(S.Fragment,null,(0,S.createElement)(E.WhenResponsiveScreen,null,(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max. Content Width",U.i18n),units:["px","%"],min:[0,0],max:[2500,100],step:[1,1],allowReset:!0,value:q,unit:V,onChange:e=>o({blockWidth:e}),onChangeUnit:e=>o({blockWidthUnit:e}),placeholder:"",initialPosition:"2500",className:"ugb--help-tip-advanced-block-content-width"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max. Content Width",U.i18n),units:["px","%"],min:[0,0],max:[1500,100],step:[1,1],allowReset:!0,value:G,unit:j,onChange:e=>o({tabletBlockWidth:e}),onChangeUnit:e=>o({tabletBlockWidthUnit:e}),className:"ugb--help-tip-advanced-block-content-width"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max. Content Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],allowReset:!0,value:Z,unit:X,onChange:e=>o({mobileBlockWidth:e}),onChangeUnit:e=>o({mobileBlockWidthUnit:e}),className:"ugb--help-tip-advanced-block-content-width"}))),(t.horizontalAlign||""!==l&&"full"!==l)&&(0,S.createElement)(S.Fragment,null,(""!==q||""!==l&&"full"!==l)&&(0,S.createElement)(E.WhenResponsiveScreen,null,(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Content Horizontal Align",U.i18n),controls:"flex-horizontal",value:Y,onChange:e=>o({blockHorizontalAlign:Y!==e?e:""}),className:"ugb--help-tip-advanced-block-horizontal-align"})),(""!==G||""!==l&&"full"!==l)&&(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Content Horizontal Align",U.i18n),controls:"flex-horizontal",value:Q,onChange:e=>o({tabletBlockHorizontalAlign:Q!==e?e:""}),className:"ugb--help-tip-advanced-block-horizontal-align"})),(""!==Z||""!==l&&"full"!==l)&&(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Content Horizontal Align",U.i18n),controls:"flex-horizontal",value:J,onChange:e=>o({mobileBlockHorizontalAlign:J!==e?e:""}),className:"ugb--help-tip-advanced-block-horizontal-align"}))),t.margins&&(0,S.createElement)(S.Fragment,null,(0,S.createElement)(E.WhenResponsiveScreen,{screen:"desktop"},(0,S.createElement)(E.FourRangeControl,{label:(0,P.__)("Block Margins",U.i18n),units:t.marginUnits,screens:["desktop","tablet","mobile"],defaultLocked:!1,top:r,bottom:c,right:s,left:u,unit:g,min:[-500,-100],max:[500,100],onChange:e=>{o({marginTop:e.top||0===e.top?parseInt(e.top,10):"",marginRight:e.right||0===e.right?parseInt(e.right,10):"",marginBottom:e.bottom||0===e.bottom?parseInt(e.bottom,10):"",marginLeft:e.left||0===e.left?parseInt(e.left,10):""})},onChangeUnit:e=>o({marginUnit:e}),enableTop:t.enableMarginTop,enableRight:"full"!==i&&t.enableMarginRight,enableBottom:t.enableMarginBottom,enableLeft:"full"!==i&&t.enableMarginLeft,placeholder:"0",placeholderBottom:"35",className:"ugb--help-tip-advanced-block-margins"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.FourRangeControl,{label:(0,P.__)("Block Margins",U.i18n),units:t.marginUnits,screens:["desktop","tablet","mobile"],defaultLocked:!1,top:d,bottom:m,right:b,left:p,unit:h,min:[-500,-100],max:[500,100],onChange:e=>{o({tabletMarginTop:e.top||0===e.top?parseInt(e.top,10):"",tabletMarginRight:e.right||0===e.right?parseInt(e.right,10):"",tabletMarginBottom:e.bottom||0===e.bottom?parseInt(e.bottom,10):"",tabletMarginLeft:e.left||0===e.left?parseInt(e.left,10):""})},onChangeUnit:e=>o({tabletMarginUnit:e}),enableTop:t.enableMarginTop,enableRight:"full"!==i&&t.enableMarginRight,enableBottom:t.enableMarginBottom,enableLeft:"full"!==i&&t.enableMarginLeft,className:"ugb--help-tip-advanced-block-margins"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.FourRangeControl,{label:(0,P.__)("Block Margins",U.i18n),units:t.marginUnits,screens:["desktop","tablet","mobile"],defaultLocked:!1,top:k,bottom:v,right:_,left:y,unit:f,min:[-500,-100],max:[500,100],onChange:e=>{o({mobileMarginTop:e.top||0===e.top?parseInt(e.top,10):"",mobileMarginRight:e.right||0===e.right?parseInt(e.right,10):"",mobileMarginBottom:e.bottom||0===e.bottom?parseInt(e.bottom,10):"",mobileMarginLeft:e.left||0===e.left?parseInt(e.left,10):""})},onChangeUnit:e=>o({mobileMarginUnit:e}),enableTop:t.enableMarginTop,enableRight:"full"!==i&&t.enableMarginRight,enableBottom:t.enableMarginBottom,enableLeft:"full"!==i&&t.enableMarginLeft,className:"ugb--help-tip-advanced-block-margins"}))),t.paddings&&(0,S.createElement)(S.Fragment,null,(0,S.createElement)(E.WhenResponsiveScreen,{screen:"desktop"},(0,S.createElement)(E.FourRangeControl,{label:(0,P.__)("Block Paddings",U.i18n),units:t.paddingUnits,screens:["desktop","tablet","mobile"],defaultLocked:!1,top:C,bottom:A,right:ae,left:ne,unit:w,min:[0,0,0],sliderMax:[500,100,100],onChange:e=>{o({paddingTop:e.top||0===e.top?parseInt(e.top,10):"",paddingRight:e.right||0===e.right?parseInt(e.right,10):"",paddingBottom:e.bottom||0===e.bottom?parseInt(e.bottom,10):"",paddingLeft:e.left||0===e.left?parseInt(e.left,10):""})},onChangeUnit:e=>o({paddingUnit:e}),enableTop:t.enablePaddingTop,enableRight:t.enablePaddingRight,enableBottom:t.enablePaddingBottom,enableLeft:t.enablePaddingLeft,placeholder:"0",className:"ugb--help-tip-advanced-block-paddings"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.FourRangeControl,{label:(0,P.__)("Block Paddings",U.i18n),units:t.paddingUnits,screens:["desktop","tablet","mobile"],defaultLocked:!1,top:T,bottom:B,right:N,left:R,unit:I,min:[0,0,0],sliderMax:[500,100,100],onChange:e=>{o({tabletPaddingTop:e.top||0===e.top?parseInt(e.top,10):"",tabletPaddingRight:e.right||0===e.right?parseInt(e.right,10):"",tabletPaddingBottom:e.bottom||0===e.bottom?parseInt(e.bottom,10):"",tabletPaddingLeft:e.left||0===e.left?parseInt(e.left,10):""})},onChangeUnit:e=>o({tabletPaddingUnit:e}),enableTop:t.enablePaddingTop,enableRight:t.enablePaddingRight,enableBottom:t.enablePaddingBottom,enableLeft:t.enablePaddingLeft,className:"ugb--help-tip-advanced-block-paddings"})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.FourRangeControl,{label:(0,P.__)("Block Paddings",U.i18n),units:t.paddingUnits,screens:["desktop","tablet","mobile"],defaultLocked:!1,top:$,bottom:F,right:oe,left:ie,unit:L,min:[0,0,0],sliderMax:[500,100,100],onChange:e=>{o({mobilePaddingTop:e.top||0===e.top?parseInt(e.top,10):"",mobilePaddingRight:e.right||0===e.right?parseInt(e.right,10):"",mobilePaddingBottom:e.bottom||0===e.bottom?parseInt(e.bottom,10):"",mobilePaddingLeft:e.left||0===e.left?parseInt(e.left,10):""})},onChangeUnit:e=>o({mobilePaddingUnit:e}),enableTop:t.enablePaddingTop,enableRight:t.enablePaddingRight,enableBottom:t.enablePaddingBottom,enableLeft:t.enablePaddingLeft,className:"ugb--help-tip-advanced-block-paddings"}))),(0,x.applyFilters)(`stackable.${e}.edit.advanced.block-spacing.after`,null,n)))},D=e=>(t,a)=>{const n=(0,N.__getValue)(a.attributes),{blockInnerWidth:o="",marginUnit:i="px",tabletMarginUnit:l="px",mobileMarginUnit:r="px",paddingUnit:s="px",tabletPaddingUnit:c="px",mobilePaddingUnit:u="px",blockHeightUnit:g="px",tabletBlockHeightUnit:d="px",mobileBlockHeightUnit:b="px",blockWidthUnit:m="px",tabletBlockWidthUnit:p="px",mobileBlockWidthUnit:h="px"}=a.attributes,k=`.${a.mainClassName}`,_=(0,x.applyFilters)(`stackable.${e}.advanced-block-spacing.margins`,{desktopTablet:{[k]:(0,N.appendImportantAll)({marginTop:n("marginTop",`%s${i}`),marginBottom:n("marginBottom",`%s${i}`),marginRight:n("marginRight",`%s${i}`),marginLeft:n("marginLeft",`%s${i}`)})},tabletOnly:{[k]:(0,N.appendImportantAll)({marginRight:n("tabletMarginRight",`%s${l}`),marginLeft:n("tabletMarginLeft",`%s${l}`),marginTop:n("tabletMarginTop",`%s${l}`),marginBottom:n("tabletMarginBottom",`%s${l}`)})},mobile:{[k]:(0,N.appendImportantAll)({marginRight:n("mobileMarginRight",`%s${r}`),marginLeft:n("mobileMarginLeft",`%s${r}`),marginTop:n("mobileMarginTop",`%s${r}`),marginBottom:n("mobileMarginBottom",`%s${r}`)})}}),v=(0,x.applyFilters)(`stackable.${e}.advanced-block-spacing.paddings`,{desktopTablet:{[k]:(0,N.appendImportantAll)({paddingTop:n("paddingTop",`%s${s}`),paddingRight:n("paddingRight",`%s${s}`),paddingBottom:n("paddingBottom",`%s${s}`),paddingLeft:n("paddingLeft",`%s${s}`)})},tabletOnly:{[k]:(0,N.appendImportantAll)({paddingTop:n("tabletPaddingTop",`%s${c}`),paddingRight:n("tabletPaddingRight",`%s${c}`),paddingBottom:n("tabletPaddingBottom",`%s${c}`),paddingLeft:n("tabletPaddingLeft",`%s${c}`)})},mobile:{[k]:(0,N.appendImportantAll)({paddingTop:n("mobilePaddingTop",`%s${u}`),paddingRight:n("mobilePaddingRight",`%s${u}`),paddingBottom:n("mobilePaddingBottom",`%s${u}`),paddingLeft:n("mobilePaddingLeft",`%s${u}`)})}}),y={[k]:{minHeight:n("blockHeight",`%s${g||"px"}`),justifyContent:n("blockHorizontalAlign"),alignItems:n("blockVerticalAlign")},[`${k} > .ugb-inner-block`]:{minWidth:"wide"===o&&n("blockWidth")?"auto !important":void 0,maxWidth:(0,N.appendImportant)(n("blockWidth",`%s${m||"px"}`))},tablet:{[k]:{minHeight:n("tabletBlockHeight",`%s${d||"px"}`),justifyContent:n("tabletBlockHorizontalAlign"),alignItems:n("tabletBlockVerticalAlign")},[`${k} > .ugb-inner-block`]:{minWidth:"wide"===o&&n("tabletBlockWidth")?"auto !important":void 0,maxWidth:(0,N.appendImportant)(n("tabletBlockWidth",`%s${p||"px"}`))}},mobile:{[k]:{minHeight:n("mobileBlockHeight",`%s${b||"px"}`),justifyContent:n("mobileBlockHorizontalAlign"),alignItems:n("mobileBlockVerticalAlign")},[`${k} > .ugb-inner-block`]:{minWidth:"wide"===o&&n("mobileBlockWidth")?"auto !important":void 0,maxWidth:(0,N.appendImportant)(n("mobileBlockWidth",`%s${h||"px"}`))}},ie11:{[k]:{height:n("blockHeight",`%s${g}`)||void 0}}};return $().all([t,_,v,y])},O=e=>({...e,...(0,N.createAllCombinationAttributes)("%sMargin%s",{type:"number",default:""},["","Tablet","Mobile"],["Top","Right","Bottom","Left"]),...(0,N.createAllCombinationAttributes)("%sMarginUnit",{type:"string",default:"px"},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sPadding%s",{type:"number",default:""},["","Tablet","Mobile"],["Top","Right","Bottom","Left"]),...(0,N.createAllCombinationAttributes)("%sPaddingUnit",{type:"string",default:"px"},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sBlockHeight",{type:"number",default:""},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sBlockHeightUnit",{type:"string",default:"px"},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sBlockWidth",{type:"number",default:""},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sBlockWidthUnit",{type:"string",default:"px"},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sBlock%sAlign",{type:"string",default:""},["","Tablet","Mobile"],["Vertical","Horizontal"])}),z=(e,t)=>{const{blockWidth:a="",tabletBlockWidth:n="",mobileBlockWidth:o=""}=t.attributes;return{...e,"ugb--has-custom-content-width":""!==a,"ugb--has-custom-content-width-tablet":""!==n,"ugb--has-custom-content-width-mobile":""!==o}},W=e=>(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Column Spacing & More",U.i18n),initialOpen:!1,className:"ugb--help-tip-advanced-column-spacing"},(0,S.createElement)(E.ProControl,{type:"advanced"}))),q=e=>({...e,...(0,N.createAllCombinationAttributes)("%sColumnPadding%s",{type:"number",default:""},["","Tablet","Mobile"],["Top","Right","Bottom","Left"]),...(0,N.createAllCombinationAttributes)("%sColumnPaddingUnit",{type:"string",default:"px"},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sColumnGap",{type:"number",default:""},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sColumnHeight",{type:"number",default:""},["","Tablet","Mobile"]),...(0,N.createAllCombinationAttributes)("%sColumnContent%sAlign",{type:"string",default:""},["","Tablet","Mobile"],["Vertical","Horizontal"]),...(0,N.createAllCombinationAttributes)("%sColumn%sAlign",{type:"string",default:""},["","Tablet","Mobile"],["Vertical","Horizontal"])});var V=a(3726),G=a.n(V);const j=["class","className","id","ref","style","dangerouslySetInnerHTML"],Z=["customAttributes"],X=(e,t)=>{if(!Array.isArray(t.attributes.customAttributes)||0===t.attributes.customAttributes.length)return e;const a=Object.fromEntries(t.attributes.customAttributes);return Object.keys(a).forEach((e=>{let n=unescape(a[e]);a[e]=n;try{const i=n.match(/%[^\%]*%/g);i&&(i.forEach((e=>{const a=e.substr(1,e.length-2);Z.includes(a)||!t.attributes.hasOwnProperty(a)||(0,o.isUndefined)(t.attributes[a])||(n=n.replace(e,G()(t.attributes[a].toString())))})),a[e]=n)}catch{}})),{...e,...(0,o.omit)(a,j)}},Y=e=>({...e,customAttributes:{type:"array",default:[]}}),Q=(e,t)=>(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Custom Attributes",U.i18n),initialOpen:!1},(0,S.createElement)(E.CustomAttributesControl,{label:(0,P.__)("Custom Attributes",U.i18n),value:t.attributes.customAttributes,invalidHtmlAttributes:j,onChange:e=>t.setAttributes({customAttributes:e})}))),J=(e,t)=>{const{hideDesktop:a=!1,hideTablet:n=!1,hideMobile:o=!1}=t.attributes;return{...e,"ugb--hide-desktop":a,"ugb--hide-tablet":n,"ugb--hide-mobile":o}},K=e=>({...e,hideDesktop:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1}});var ee=a(7462),te=a(8423),ae=a(3749),ne=a(4184),oe=a.n(ne);const ie=[],le=e=>({...e,supports:{...e.supports,align:null}}),re=e=>(0,o.includes)(["center","wide","full"],e),se=(0,ae.createHigherOrderComponent)((0,ae.compose)([(0,t.withSelect)((e=>{const{getSettings:t}=e("core/block-editor");return{hasWideEnabled:!!t().alignWide}})),e=>t=>{const{attributes:a,name:n}=t,{align:o}=a;let i=t.wrapperProps;return ie.includes(n)&&re(o)&&(i={...i,"data-align":o}),(0,S.createElement)(e,(0,ee.Z)({},t,{wrapperProps:i}))}]));(0,x.addFilter)("editor.BlockListBlock","stackable/with-data-align",se),(0,x.addFilter)("blocks.getSaveContent.extraProps","stackable/addAssignedAlign",(function(e,t,a){const{name:n}=t,{align:o}=a;return ie.includes(n)?(re(o)&&(e.className=oe()(`align${o}`,e.className)),e):e}));var ce=a(78),ue=a(7537);(0,x.removeFilter)("stackable.setAttributes","stackable/module/block-background/show"),(0,x.addFilter)("stackable.setAttributes","stackable/module/block-background/show",((e,t)=>{if(void 0===e.showBlockBackground)return e;const{align:a="",blockInnerWidth:n=""}=t.attributes;return e.align=e.showBlockBackground?"full":n||"center",e.blockInnerWidth=e.showBlockBackground?a||"center":"",e}));const ge=(e,t)=>{const{setAttributes:a}=t,{showBlockBackground:n=!1,noPaddings:o=""}=t.attributes;return(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Block Background",U.i18n),id:"block-background",checked:n,onChange:e=>a({showBlockBackground:e}),toggleOnSetAttributes:[...(0,te.TA)("blockBackground%s"),"noPaddings"],toggleAttributeName:"showBlockBackground",className:"ugb--help-tip-background-on-off"},(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("No Paddings",U.i18n),checked:o,onChange:e=>a({noPaddings:e}),className:"ugb--help-tip-no-padding"}),(0,S.createElement)(E.ControlSeparator,null),(0,S.createElement)(E.BackgroundControlsHelper,{attrNameTemplate:"blockBackground%s",setAttributes:a,blockAttributes:t.attributes})))},de=(e,t)=>{const{setAttributes:a}=t,{showBlockBackground:n=!1,align:o="",blockInnerWidth:i=""}=t.attributes,l=[{icon:"align-center",label:(0,P.__)("Align center",U.i18n),isActive:""===i||"center"===i,onClick:()=>{a({blockInnerWidth:"center"})}},{icon:"align-wide",label:(0,P.__)("Wide width",U.i18n),isActive:"wide"===i,onClick:()=>{a({blockInnerWidth:"wide"})}},{icon:"align-full-width",label:(0,P.__)("Full width",U.i18n),isActive:"full"===i,onClick:()=>{a({blockInnerWidth:"full"})}}];return(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(ce.BlockControls,null,!n&&(0,S.createElement)(ce.BlockAlignmentToolbar,{value:o,onChange:e=>{const t=n&&!e?"full":e;a(n?{align:"full",blockInnerWidth:"center"===t?"":t}:{align:t})},controls:["center","wide","full"]}),n&&(0,S.createElement)(ue.ToolbarGroup,{label:(0,P.__)("Change Alignment",U.i18n)},l.map((e=>(0,S.createElement)(ue.ToolbarButton,(0,ee.Z)({className:"ugb-button-component",key:e.label},e)))))))},be=e=>({...e,supports:{...e.supports,align:["center","wide","full"]}}),me=e=>({...e,showBlockBackground:{type:"boolean",default:!1},blockInnerWidth:{type:"string",default:""},align:{type:"string"},noPaddings:{type:"boolean",default:""},...(0,te.yA)("blockBackground%s")}),pe=(e,t)=>{const{showBlockBackground:a=!1,blockInnerWidth:n=""}=t.attributes;return a?{...e,[`ugb-main-block--inner-${n}`]:n,"ugb--has-block-background":a,"ugb--has-background-overlay":(0,te.mD)("blockBackground%s",t.attributes)}:e},he=(e,t)=>{const{showBlockBackground:a=!1,blockInnerWidth:n=""}=t.attributes;return a?{...e,[`ugb-inner-block--${n||"center"}`]:!0}:e},ke=(e,t,a)=>a.attributes.showBlockBackground?(0,S.createElement)(S.Fragment,null,e,(0,te.hz)("blockBackground%s",a)):e,_e=e=>(0,o.omit)(e,["blockBackgroundBackgroundMediaId"]),ve=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e,a)=>{const{setAttributes:n}=a,{showTopSeparator:o=!1,topSeparatorDesign:i="wave-1",topSeparatorColor:l="",topSeparatorWidth:r="",topSeparatorFlipHorizontally:s=!1,topSeparatorFlipVertically:c=!1,topSeparatorShadow:u=!0,topSeparatorBringToFront:g=!1,showBottomSeparator:d=!1,bottomSeparatorDesign:b="wave-1",bottomSeparatorColor:m="",bottomSeparatorWidth:p="",bottomSeparatorFlipHorizontally:h=!1,bottomSeparatorFlipVertically:k=!1,bottomSeparatorShadow:_=!0,bottomSeparatorBringToFront:v=!1}=a.attributes;return(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Top Separator",U.i18n),id:"top-separator",checked:o,onChange:e=>n({showTopSeparator:e}),toggleOnSetAttributes:["topSeparatorDesign","topSeparatorColor","topSeparatorHeight","topSeparatorTabletHeight","topSeparatorMobileHeight","topSeparatorWidth","topSeparatorFlipHorizontally","topSeparatorFlipVertically","topSeparatorShadow","topSeparatorBringToFront","showTopSeparatorLayer2","showTopSeparatorLayer3","topSeparatorLayer2Color","topSeparatorLayer3Color","topSeparatorLayer2BlendMode","topSeparatorLayer3BlendMode","topSeparatorLayer2Height","topSeparatorLayer3Height","topSeparatorLayer2Width","topSeparatorLayer3Width","topSeparatorLayer2Opacity","topSeparatorLayer3Opacity","topSeparatorLayer2FlipHorizontally","topSeparatorLayer3FlipHorizontally"],toggleAttributeName:"showTopSeparator",className:"ugb-top-block-separator-panel ugb--help-tip-separator-top-on"},(0,S.createElement)(E.DesignSeparatorControl,{label:(0,P.__)("Design",U.i18n),selected:i,onChange:e=>n({topSeparatorDesign:e})}),(0,S.createElement)(E.ColorPaletteControl,{label:(0,P.__)("Color",U.i18n),value:l,onChange:e=>n({topSeparatorColor:e})}),(0,S.createElement)(R.n9,{attrNameTemplate:"topSeparator%sHeight",setAttributes:n,blockAttributes:a.attributes},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Height",U.i18n),min:"30",max:"400",allowReset:!0,placeholder:"200",className:"ugb--help-tip-separator-height"})),(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Width",U.i18n),min:"1",max:"4",step:"0.1",value:r,onChange:e=>n({topSeparatorWidth:e}),allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-separator-width"}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Flip Horizontally",U.i18n),checked:s,onChange:e=>n({topSeparatorFlipHorizontally:e})}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Flip Vertically",U.i18n),checked:c,onChange:e=>n({topSeparatorFlipVertically:e})}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Shadow",U.i18n),checked:u,onChange:e=>n({topSeparatorShadow:e}),defaultValue:!0,className:"ugb--help-tip-separator-shadow"}),t.enableBringToFront&&(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Bring to Front",U.i18n),checked:g,onChange:e=>n({topSeparatorBringToFront:e}),className:"ugb--help-tip-separator-bring-to-front"}),(0,x.applyFilters)("stackable.block-separators.edit.top",null,a),U.showProNotice&&(0,S.createElement)(E.ProControlButton,{title:(0,P.__)("Say Hello to Gorgeous Separators 👋",U.i18n),description:(0,P.__)("Add a second & third layer to this separator and make it look even sweeter. This feature is only available on Stackable Premium",U.i18n)})),(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Bottom Separator",U.i18n),id:"bottom-separator",checked:d,onChange:e=>n({showBottomSeparator:e}),toggleOnSetAttributes:["bottomSeparatorDesign","bottomSeparatorColor","bottomSeparatorHeight","bottomSeparatorTabletHeight","bottomSeparatorMobileHeight","bottomSeparatorWidth","bottomSeparatorFlipHorizontally","bottomSeparatorFlipVertically","bottomSeparatorShadow","bottomSeparatorBringToFront","showBottomSeparatorLayer2","showBottomSeparatorLayer3","bottomSeparatorLayer2Color","bottomSeparatorLayer3Color","bottomSeparatorLayer2BlendMode","bottomSeparatorLayer3BlendMode","bottomSeparatorLayer2Height","bottomSeparatorLayer3Height","bottomSeparatorLayer2Width","bottomSeparatorLayer3Width","bottomSeparatorLayer2Opacity","bottomSeparatorLayer3Opacity","bottomSeparatorLayer2FlipHorizontally","bottomSeparatorLayer3FlipHorizontally"],toggleAttributeName:"showBottomSeparator",className:"ugb-bottom-block-separator-panel ugb--help-tip-separator-bottom-on"},(0,S.createElement)(E.DesignSeparatorControl,{label:(0,P.__)("Design",U.i18n),selected:b,onChange:e=>n({bottomSeparatorDesign:e})}),(0,S.createElement)(E.ColorPaletteControl,{label:(0,P.__)("Color",U.i18n),value:m,onChange:e=>n({bottomSeparatorColor:e})}),(0,S.createElement)(R.n9,{attrNameTemplate:"bottomSeparator%sHeight",setAttributes:n,blockAttributes:a.attributes},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Height",U.i18n),min:"30",max:"400",allowReset:!0,placeholder:"200",className:"ugb--help-tip-separator-height"})),(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Width",U.i18n),min:"1",max:"4",step:"0.1",value:p,onChange:e=>n({bottomSeparatorWidth:e}),allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-separator-width"}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Flip Horizontally",U.i18n),checked:h,onChange:e=>n({bottomSeparatorFlipHorizontally:e})}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Flip Vertically",U.i18n),checked:k,onChange:e=>n({bottomSeparatorFlipVertically:e})}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Shadow",U.i18n),checked:_,onChange:e=>n({bottomSeparatorShadow:e}),defaultValue:!0,className:"ugb--help-tip-separator-shadow"}),t.enableBringToFront&&(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Bring to Front",U.i18n),checked:v,onChange:e=>n({bottomSeparatorBringToFront:e}),className:"ugb--help-tip-separator-bring-to-front"}),(0,x.applyFilters)("stackable.block-separators.edit.bottom",null,a),U.showProNotice&&(0,S.createElement)(E.ProControlButton,{title:(0,P.__)("Say Hello to Gorgeous Separators 👋",U.i18n),description:(0,P.__)("Add a second & third layer to this separator and make it look even sweeter. This feature is only available on Stackable Premium",U.i18n)})))}},ye=e=>({...e,...(0,N.createAllCombinationAttributes)("Show%sSeparator",{type:"boolean",default:""},["Top","Bottom"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"string",default:"wave-1"},["Top","Bottom"],["Design"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"string",default:""},["Top","Bottom"],["Color"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"number",default:""},["Top","Bottom"],["Height","TabletHeight","MobileHeight","Width"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"boolean",default:""},["Top","Bottom"],["FlipHorizontally","FlipVertically","BringToFront"]),...(0,N.createAllCombinationAttributes)("%sSeparatorShadow",{type:"boolean",default:!0},["Top","Bottom"]),...(0,N.createAllCombinationAttributes)("Show%sSeparator%s",{type:"boolean",default:""},["Top","Bottom"],["Layer2","Layer3"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"string",default:""},["Top","Bottom"],["Layer2Color","Layer3Color","Layer2BlendMode","Layer3BlendMode"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"number",default:""},["Top","Bottom"],["Layer2Height","Layer3Height","Layer2Width","Layer3Width","Layer2Opacity","Layer3Opacity"]),...(0,N.createAllCombinationAttributes)("%sSeparator%s",{type:"boolean",default:""},["Top","Bottom"],["Layer2FlipHorizontally","Layer3FlipHorizontally"])}),fe=(e,t,a)=>{const{showTopSeparator:n=!1,topSeparatorDesign:o="wave-1",topSeparatorFlipVertically:i=!1,topSeparatorShadow:l=!0,showBottomSeparator:r=!1,bottomSeparatorDesign:s="wave-1",bottomSeparatorFlipVertically:c=!1,bottomSeparatorShadow:u=!0}=a.attributes;return(0,S.createElement)(S.Fragment,null,e,n&&(0,S.createElement)(S.Fragment,null,(0,S.createElement)("div",{className:"ugb-top-separator"},(0,S.createElement)(E.Separator,{design:o,shadow:l,inverted:i},(0,x.applyFilters)("stackable.module.block-separator.output.top.after",null,a)))),r&&(0,S.createElement)(S.Fragment,null,(0,S.createElement)("div",{className:"ugb-bottom-separator"},(0,S.createElement)(E.Separator,{design:s,shadow:u,inverted:c},(0,x.applyFilters)("stackable.module.block-separator.output.bottom.after",null,a)))))},Ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e,a)=>{const{showTopSeparator:n=!1,topSeparatorColor:o="",topSeparatorHeight:i="",topSeparatorTabletHeight:l="",topSeparatorMobileHeight:r="",topSeparatorWidth:s="",topSeparatorFlipHorizontally:c=!1,topSeparatorBringToFront:u=!1}=a.attributes;if(!n)return e;const g={".ugb-top-separator":{zIndex:t.enableBringToFront&&u?6:void 0,transform:c?"scale(-1)":void 0},".ugb-top-separator svg":{fill:""!==o?o:void 0},".ugb-top-separator .ugb-separator-wrapper":{transform:""!==s?`scaleX(${s})`:void 0},desktopTablet:{".ugb-top-separator .ugb-separator-wrapper":{height:""!==i?`${i}px`:void 0}},tabletOnly:{".ugb-top-separator .ugb-separator-wrapper":{height:""!==l?`${l}px`:void 0}},mobile:{".ugb-top-separator .ugb-separator-wrapper":{height:""!==r?`${r}px`:void 0}}};return $()(e,g)}},Ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e,a)=>{const{showBottomSeparator:n=!1,bottomSeparatorColor:o="",bottomSeparatorHeight:i="",bottomSeparatorTabletHeight:l="",bottomSeparatorMobileHeight:r="",bottomSeparatorWidth:s="",bottomSeparatorFlipHorizontally:c=!1,bottomSeparatorBringToFront:u=!1}=a.attributes;if(!n)return e;const g={".ugb-bottom-separator":{zIndex:t.enableBringToFront&&u?6:void 0,transform:c?"scaleX(-1)":void 0},".ugb-bottom-separator svg":{fill:""!==o?o:void 0},".ugb-bottom-separator .ugb-separator-wrapper":{transform:""!==s?`scaleX(${s})`:void 0},desktopTablet:{".ugb-bottom-separator .ugb-separator-wrapper":{height:""!==i?`${i}px`:void 0}},tabletOnly:{".ugb-bottom-separator .ugb-separator-wrapper":{height:""!==l?`${l}px`:void 0}},mobile:{".ugb-bottom-separator .ugb-separator-wrapper":{height:""!==r?`${r}px`:void 0}}};return $()(e,g)}},we=(e,t)=>{const{showTopSeparator:a=!1,showBottomSeparator:n=!1}=t.attributes;return{...e,"ugb--has-top-separator":a,"ugb--has-bottom-separator":n}},Te=(e,t)=>{const{setAttributes:a}=t,{showBlockTitle:n=!1,blockTitleTag:o="",blockTitleColor:i="",showBlockDescription:l=!1,blockDescriptionColor:r="",blockTitle:s="",blockDescription:c="",blockTitleWidth:u="",blockTitleTabletWidth:g="",blockTitleMobileWidth:d="",blockTitleWidthUnit:b="px",blockTitleTabletWidthUnit:m="px",blockTitleMobileWidthUnit:p="px",blockDescriptionWidth:h="",blockDescriptionTabletWidth:k="",blockDescriptionMobileWidth:_="",blockDescriptionWidthUnit:v="px",blockDescriptionTabletWidthUnit:y="px",blockDescriptionMobileWidthUnit:f="px",blockTitleHorizontalAlign:C="",blockDescriptionHorizontalAlign:A=""}=t.attributes;return(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Block Title",U.i18n),id:"block-title",className:"ugb-panel-block-title-module",checked:n,onChange:e=>{const t={showBlockTitle:e};e&&""===s&&(t.blockTitle=(0,P.__)("Title for This Block",U.i18n)),a(t)},toggleOnSetAttributes:[...(0,N.createTypographyAttributeNames)("blockTitle%s"),"blockTitleTag","blockTitleColor",...(0,N.createResponsiveAttributeNames)("blockTitle%sAlign")],toggleAttributeName:"showBlockTitle"},(0,S.createElement)(E.HeadingButtonsControl,{value:o||"h2",defaultValue:"h2",onChange:e=>a({blockTitleTag:e})}),(0,S.createElement)(E.TypographyControlHelper,{attrNameTemplate:"blockTitle%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:o||"h2"}),(0,S.createElement)(E.ColorPaletteControl,{value:i,onChange:e=>a({blockTitleColor:e}),label:(0,P.__)("Title Color",U.i18n)}),(0,S.createElement)(E.WhenResponsiveScreen,null,(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],placeholder:[1e3,100],allowReset:!0,value:u,unit:b||"px",onChange:e=>a({blockTitleWidth:e}),onChangeUnit:e=>a({blockTitleWidthUnit:e})})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],placeholder:[1e3,100],allowReset:!0,value:g,unit:m||"px",onChange:e=>a({blockTitleTabletWidth:e}),onChangeUnit:e=>a({blockTitleTabletWidthUnit:e})})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],placeholder:[1e3,100],allowReset:!0,value:d,unit:p||"px",onChange:e=>a({blockTitleMobileWidth:e}),onChangeUnit:e=>a({blockTitleMobileWidthUnit:e})})),(u||g||d)&&(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Horizontal Align",U.i18n),controls:"flex-horizontal",value:C,onChange:e=>a({blockTitleHorizontalAlign:e})}),(0,S.createElement)(R.n9,{attrNameTemplate:"BlockTitle%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,S.createElement)(E.AlignButtonsControl,{label:(0,P.__)("Text Align",U.i18n),className:"ugb--help-tip-alignment-title"}))),(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Block Description",U.i18n),id:"block-description",checked:l,onChange:e=>{const t={showBlockDescription:e};e&&""===c&&(t.blockDescription=(0,N.descriptionPlaceholder)()),a(t)},toggleOnSetAttributes:[...(0,N.createTypographyAttributeNames)("blockDescription%s"),"blockDescriptionTag","blockDescriptionColor",...(0,N.createResponsiveAttributeNames)("blockDescription%sAlign")],toggleAttributeName:"showBlockDescription"},(0,S.createElement)(E.TypographyControlHelper,{attrNameTemplate:"blockDescription%s",setAttributes:a,blockAttributes:t.attributes}),(0,S.createElement)(E.ColorPaletteControl,{value:r,onChange:e=>a({blockDescriptionColor:e}),label:(0,P.__)("Description Color",U.i18n)}),(0,S.createElement)(E.WhenResponsiveScreen,null,(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],placeholder:[1e3,100],allowReset:!0,value:h,unit:v||"px",onChange:e=>a({blockDescriptionWidth:e}),onChangeUnit:e=>a({blockDescriptionWidthUnit:e})})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"tablet"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],placeholder:[1e3,100],allowReset:!0,value:k,unit:y||"px",onChange:e=>a({blockDescriptionTabletWidth:e}),onChangeUnit:e=>a({blockDescriptionTabletWidthUnit:e})})),(0,S.createElement)(E.WhenResponsiveScreen,{screen:"mobile"},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Max Width",U.i18n),units:["px","%"],min:[0,0],max:[1e3,100],step:[1,1],placeholder:[1e3,100],allowReset:!0,value:_,unit:f||"px",onChange:e=>a({blockDescriptionMobileWidth:e}),onChangeUnit:e=>a({blockDescriptionMobileWidthUnit:e})})),(h||k||_)&&(0,S.createElement)(E.AdvancedToolbarControl,{label:(0,P.__)("Horizontal Align",U.i18n),controls:"flex-horizontal",value:A,onChange:e=>a({blockDescriptionHorizontalAlign:e})}),(0,S.createElement)(R.n9,{attrNameTemplate:"BlockDescription%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,S.createElement)(E.AlignButtonsControl,{label:(0,P.__)("Text Align",U.i18n),className:"ugb--help-tip-alignment-description"}))))},Be=e=>({...e,showBlockTitle:{type:"boolean",default:!1},blockTitle:{source:"html",selector:".ugb-block-title",default:(0,P.__)("Title for This Block",U.i18n)},...(0,N.createResponsiveAttributes)("blockTitle%sWidth",{type:"number",default:""}),...(0,N.createResponsiveAttributes)("blockTitle%sWidthUnit",{type:"string",default:""}),blockTitleHorizontalAlign:{type:"string",default:""},...(0,N.createResponsiveAttributes)("blockTitle%sBottomMargin",{type:"number",default:""}),...(0,N.createTypographyAttributes)("blockTitle%s"),...(0,N.createResponsiveAttributes)("blockTitle%sAlign",{type:"string",default:""}),blockTitleColor:{type:"string",default:""},blockTitleTag:{type:"string",default:""},showBlockDescription:{type:"boolean",default:!1},blockDescription:{source:"html",selector:".ugb-block-description",default:(0,N.descriptionPlaceholder)()},...(0,N.createResponsiveAttributes)("blockDescription%sWidth",{type:"number",default:""}),...(0,N.createResponsiveAttributes)("blockDescription%sWidthUnit",{type:"string",default:""}),blockDescriptionHorizontalAlign:{type:"string",default:""},...(0,N.createResponsiveAttributes)("blockDescription%sBottomMargin",{type:"number",default:""}),...(0,N.createTypographyAttributes)("blockDescription%s"),...(0,N.createResponsiveAttributes)("blockDescription%sAlign",{type:"string",default:""}),blockDescriptionColor:{type:"string",default:""}}),xe=(e,t,a)=>{const{setAttributes:n}=a,{showBlockTitle:o=!1,blockTitle:i="",blockTitleTag:l="",showBlockDescription:r=!1,blockDescription:s=""}=a.attributes,c=oe()(["ugb-block-title"],{"ugb-block-title--with-subtitle":r&&s});return(0,S.createElement)(S.Fragment,null,e,o&&(0,S.createElement)(ce.RichText,{tagName:l||"h2",value:i,className:c,onChange:e=>n({blockTitle:e}),placeholder:(0,P.__)("Title for This Block",U.i18n),keepPlaceholderOnFocus:!0}),r&&(0,S.createElement)(ce.RichText,{tagName:"p",value:s,className:"ugb-block-description",onChange:e=>n({blockDescription:e}),placeholder:(0,N.descriptionPlaceholder)(),keepPlaceholderOnFocus:!0}))},Se=(e,t)=>{const{setAttributes:a}=t,{showBlockTitle:n=!1,showBlockDescription:o=!1}=t.attributes;return(0,S.createElement)(S.Fragment,null,e,n&&(0,S.createElement)(R.n9,{attrNameTemplate:"blockTitle%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Block Title",U.i18n),min:-50,max:100,placeholder:"16",allowReset:!0,className:"ugb--help-tip-spacing-block-title"})),o&&(0,S.createElement)(R.n9,{attrNameTemplate:"blockDescription%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,S.createElement)(E.AdvancedRangeControl,{label:(0,P.__)("Block Description",U.i18n),min:-50,max:100,placeholder:"50",allowReset:!0,className:"ugb--help-tip-spacing-block-description"})))},Ee=(e,t,a)=>{const{showBlockTitle:n=!1,blockTitle:o="",blockTitleTag:i="",showBlockDescription:l=!1,blockDescription:r=""}=a.attributes,s=oe()(["ugb-block-title"],{"ugb-block-title--with-subtitle":l&&r});return(0,S.createElement)(S.Fragment,null,e,n&&!ce.RichText.isEmpty(o)&&(0,S.createElement)(ce.RichText.Content,{tagName:i||"h2",className:s,value:o}),l&&!ce.RichText.isEmpty(r)&&(0,S.createElement)(ce.RichText.Content,{tagName:"p",className:"ugb-block-description",value:r}))},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t,a)=>{const n=(0,N.__getValue)(a.attributes),{showBlockTitle:o=!1,blockTitleColor:i="",showBlockDescription:l=!1,blockDescriptionColor:r="",showBlockBackground:s=!1,blockBackgroundBackgroundColor:c=""}=a.attributes,u=[t],g=n("blockTitleWidth")||n("blockTitleTabletWidth")||n("blockTitleMobileWidth");o&&u.push({".ugb-block-title":{...(0,N.createTypographyStyles)("BlockTitle%s","desktop",a.attributes),color:(0,N.whiteIfDark)(i,s&&c),textAlign:n("blockTitleAlign"),marginBottom:(0,N.appendImportant)(n("blockTitleBottomMargin","%spx"),e.blockTitleMarginBottomImportant),maxWidth:(0,N.appendImportant)(n("blockTitleWidth","%s"+n("blockTitleWidthUnit","%s","px"))),marginLeft:g?(0,N.appendImportant)((0,N.marginLeftAlign)(n("blockTitleHorizontalAlign"))):void 0,marginRight:g?(0,N.appendImportant)((0,N.marginRightAlign)(n("blockTitleHorizontalAlign"))):void 0},tablet:{".ugb-block-title":{...(0,N.createTypographyStyles)("BlockTitle%s","tablet",a.attributes),textAlign:n("blockTitleTabletAlign"),marginBottom:(0,N.appendImportant)(n("blockTitleTabletBottomMargin","%spx"),e.blockTitleMarginBottomImportant),maxWidth:(0,N.appendImportant)(n("blockTitleTabletWidth","%s"+n("blockTitleTabletWidthUnit","%s","px")))}},mobile:{".ugb-block-title":{...(0,N.createTypographyStyles)("BlockTitle%s","mobile",a.attributes),textAlign:n("blockTitleMobileAlign"),marginBottom:(0,N.appendImportant)(n("blockTitleMobileBottomMargin","%spx"),e.blockTitleMarginBottomImportant),maxWidth:(0,N.appendImportant)(n("blockTitleMobileWidth","%s"+n("blockTitleMobileWidthUnit","%s","px")))}}});const d=n("blockDescriptionWidth")||n("blockDescriptionTabletWidth")||n("blockDescriptionMobileWidth");return l&&u.push({".ugb-block-description":{...(0,N.createTypographyStyles)("BlockDescription%s","desktop",a.attributes),color:(0,N.whiteIfDark)(r,s&&c),textAlign:n("blockDescriptionAlign"),marginBottom:(0,N.appendImportant)(n("blockDescriptionBottomMargin","%spx"),e.blockDescriptionMarginBottomImportant),maxWidth:(0,N.appendImportant)(n("blockDescriptionWidth","%s"+n("blockDescriptionWidthUnit","%s","px"))),marginLeft:d?(0,N.appendImportant)((0,N.marginLeftAlign)(n("blockDescriptionHorizontalAlign"))):void 0,marginRight:d?(0,N.appendImportant)((0,N.marginRightAlign)(n("blockDescriptionHorizontalAlign"))):void 0},tablet:{".ugb-block-description":{...(0,N.createTypographyStyles)("BlockDescription%s","tablet",a.attributes),textAlign:n("blockDescriptionTabletAlign"),marginBottom:(0,N.appendImportant)(n("blockDescriptionTabletBottomMargin","%spx"),e.blockDescriptionMarginBottomImportant),maxWidth:(0,N.appendImportant)(n("blockDescriptionTabletWidth","%s"+n("blockDescriptionTabletWidthUnit","%s","px")))}},mobile:{".ugb-block-description":{...(0,N.createTypographyStyles)("BlockDescription%s","mobile",a.attributes),textAlign:n("blockDescriptionMobileAlign"),marginBottom:(0,N.appendImportant)(n("blockDescriptionMobileBottomMargin","%spx"),e.blockDescriptionMarginBottomImportant),maxWidth:(0,N.appendImportant)(n("blockDescriptionMobileWidth","%s"+n("blockDescriptionMobileWidthUnit","%s","px")))}}}),$().all(u)}},Re=e=>(0,o.omit)({...e,blockTitle:(0,P.__)("Title for This Block",U.i18n),blockDescription:(0,N.descriptionPlaceholder)()},[e.showBlockTitle?"blockTitle":"",e.showBlockDescription?"blockDescription":""]),Pe=e=>[...e,"BlockTitle%sAlign","BlockDescription%sAlign"],Ie=e=>t=>(0,S.createElement)(S.Fragment,null,t,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Designs",U.i18n),initialOpen:!0},(0,S.createElement)("p",{className:"components-base-control__help"},(0,P.__)("You will not lose your block content when changing designs.",U.i18n)),(0,S.createElement)(R.iU,{block:`ugb/${e}`,onSelect:e=>{(0,N.applyBlockDesign)(e.attributes)}})));(0,x.hasFilter)("stackable.div-background.output.after","stackable/container-link")||(0,x.addFilter)("stackable.div-background.output.after","stackable/container-link",((e,t,a)=>{const{index:n=1,className:i}=t;if(!i.match(/ugb-container-link/))return e;const{showContainerLink:l=!1}=a.attributes,r=e=>(0,o.camelCase)((0,P.sprintf)("container%d%s",n,e)),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=a.attributes[r(e)];return""===n?n:n||t},c=s("NewTab"),u=s("NoFollow"),g=s("Sponsored"),d=s("Ugc"),b=s("Title"),m=s("Url"),p=[];return c&&(p.push("noopener"),p.push("noreferrer")),u&&p.push("nofollow"),g&&p.push("sponsored"),d&&p.push("ugc"),(0,S.createElement)(S.Fragment,null,e,l&&m&&(0,S.createElement)("a",{tabIndex:"-1","aria-hidden":"true",href:m,target:c?"_blank":void 0,rel:p.join(" ")||void 0,title:G()(b)||void 0},null))}));const $e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:a=".ugb-button"}=t;return{...(0,N.createAllCombinationAttributes)(e,{type:"string",source:"attribute",selector:a,attribute:"target",default:""},["NewTab"]),...(0,N.createAllCombinationAttributes)(e,{type:"string",source:"attribute",selector:a,attribute:"href",default:""},["Url"]),...(0,N.createAllCombinationAttributes)(e,{type:"string",source:"attribute",selector:a,attribute:"title",default:""},["Title"]),...(0,N.createAllCombinationAttributes)(e,{type:"boolean",default:""},["NoFollow","Sponsored","Ugc"])}},Ue=e=>({...e,showContainerLink:{type:"boolean",default:!1},...$e("container1%s",{selector:".ugb-container-link:nth-child(1) > a"}),...$e("container2%s",{selector:".ugb-container-link:nth-child(2) > a"}),...$e("container3%s",{selector:".ugb-container-link:nth-child(3) > a"}),...$e("container4%s",{selector:".ugb-container-link:nth-child(4) > a"})}),Fe=(e,t)=>{const{setAttributes:a}=t,{columns:n=1,showContainerLink:i=!1}=t.attributes;return(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Container Link",U.i18n),id:"container-link",checked:i,onChange:e=>a({showContainerLink:e}),toggleAttributeName:"showContainerLink"},(0,o.range)(1,n+1).map((e=>{const i=t=>(0,o.camelCase)((0,P.sprintf)("container%d%s",e,t)),l=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.attributes[i(e)];return""===n?n:n||a};return(0,S.createElement)(S.Fragment,{key:e},(0,S.createElement)(E.URLInputControl,{label:1===n?(0,P.__)("Link / URL",U.i18n):(0,P.sprintf)((0,P.__)("Link / URL #%d",U.i18n),e),value:l("Url"),onChange:e=>a({[i("Url")]:e}),placeholder:"http://"}),(0,S.createElement)(ue.TextControl,{label:1===n?(0,P.__)("Link Title",U.i18n):(0,P.sprintf)((0,P.__)("Link %d Title",U.i18n),e),value:l("Title"),onChange:e=>a({[i("Title")]:e})}),(0,S.createElement)(ue.ToggleControl,{label:(0,P.__)("Open link in new tab",U.i18n),checked:l("NewTab"),onChange:e=>a({[i("NewTab")]:e})}),(0,S.createElement)(ue.ToggleControl,{label:(0,P.__)("Nofollow link",U.i18n),checked:l("NoFollow"),onChange:e=>a({[i("NoFollow")]:e})}),(0,S.createElement)(ue.ToggleControl,{label:(0,P.__)("Sponsored",U.i18n),checked:l("Sponsored"),onChange:e=>a({[i("Sponsored")]:e})}),(0,S.createElement)(ue.ToggleControl,{label:(0,P.__)("UGC",U.i18n),checked:l("Ugc"),onChange:e=>a({[i("Ugc")]:e})}),e!==n&&(0,S.createElement)(E.ControlSeparator,null))}))))},Le=(e,t)=>{const{showContainerLink:a=!1}=t.attributes;return{...e,"ugb-container-link":a}},Me=(e,t,a)=>({...e,"ugb-container-link":((0,o.isPlainObject)(t)?t.attributes.showContainerLink:!!(0,o.isPlainObject)(a)&&a.attributes.showContainerLink)||!1}),He=e=>(0,o.omit)(e,["container1Url","container1Newtab","container1NoFollow","container2Url","container2Newtab","container2NoFollow","container3Url","container3Newtab","container3NoFollow","container4Url","container4Newtab","container4NoFollow"]),De=e=>({...e,...(0,N.createAllCombinationAttributes)("%sContentAlign",{type:"string",default:""},["","Tablet","Mobile"])}),Oe=(e,t)=>{const a=(0,N.__getValue)(t.attributes),n=[e];return n.push({".ugb-inner-block":{textAlign:a("contentAlign")},tablet:{".ugb-inner-block":{textAlign:a("tabletContentAlign")}},mobile:{".ugb-inner-block":{textAlign:a("mobileContentAlign")}}}),$().all(n)},ze=(e,t)=>{const{setAttributes:a}=t,{contentAlign:n=""}=t.attributes;return(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(ce.BlockControls,null,(0,S.createElement)(ce.AlignmentToolbar,{value:n,onChange:e=>a({contentAlign:e})})))},We=e=>(0,S.createElement)(S.Fragment,null,e,(0,S.createElement)(E.PanelAdvancedSettings,{initialOpen:!1,title:(0,P.__)("Custom CSS",U.i18n)},(0,S.createElement)(E.ProControl,{title:(0,P.__)("Say Hello to Custom CSS 👋",U.i18n),description:(0,P.__)("Further tweak this block by adding guided custom CSS rules. This feature is only available on Stackable Premium",U.i18n)}))),qe=e=>({...e,customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""},customCSSUniqueID:{type:"string",default:""}}),Ve=(e,t,a)=>{const n=a.mainClassName,{customCSS:o="",uniqueClass:i=a.attributes.customCSSUniqueID||""}=a.attributes,l=(0,N.minifyCSS)((0,N.compileCSS)(o,n,i),!0);return(0,S.createElement)(S.Fragment,null,e,l&&(0,S.createElement)("style",null,l))},Ge={},je=(e,t)=>{Ge[e]=t},Ze=e=>Ge[e],Xe=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ze(t)){const e=Ye.reduce(((e,a)=>{let{name:n,module:o}=a;return t===n?o:e}),null);e&&je(t,e)}const n=Ze(t);n&&n(e,a)},Ye=[{name:"advanced-general",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a={blockTag:!0,opacity:!0,zIndex:!0,modifyStyles:!0,...t};(0,x.addFilter)(`stackable.${e}.edit.inspector.advanced.before`,`stackable/${e}/advanced-general`,F(e,a),2),a.modifyStyles&&(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/advanced-general`,L()),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/advanced-general`,M),(0,x.doAction)("stackable.module.advanced-general",e)}},{name:"advanced-responsive",module:e=>{(0,x.addFilter)(`stackable.${e}.edit.inspector.advanced.before`,`stackable/${e}/advanced-responsive`,(e=>(t,a)=>{const{setAttributes:n}=a,{hideDesktop:o=!1,hideTablet:i=!1,hideMobile:l=!1}=a.attributes;return(0,S.createElement)(S.Fragment,null,t,(0,S.createElement)(E.PanelAdvancedSettings,{title:(0,P.__)("Responsive",U.i18n),initialOpen:!1},(0,x.applyFilters)(`stackable.${e}.edit.advanced.responsive.before`,null,a),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Hide on Desktop",U.i18n),checked:o,onChange:e=>n({hideDesktop:e})}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Hide on Tablet",U.i18n),checked:i,onChange:e=>n({hideTablet:e})}),(0,S.createElement)(E.AdvancedToggleControl,{label:(0,P.__)("Hide on Mobile",U.i18n),checked:l,onChange:e=>n({hideMobile:e})}),(0,x.applyFilters)(`stackable.${e}.edit.advanced.responsive.after`,null,a)))})(e),19),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/advanced-responsive`,K),(0,x.addFilter)(`stackable.${e}.main-block.classes`,`stackable/${e}/advanced-responsive`,J),(0,x.doAction)("stackable.module.advanced-responsive",e)}},{name:"advanced-block-spacing",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a={margins:!0,paddings:!0,height:!0,width:!0,horizontalAlign:!0,verticalAlign:!0,modifyStyles:!0,enableMarginTop:!0,enableMarginRight:!0,enableMarginBottom:!0,enableMarginLeft:!0,enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0,paddingUnits:["px","em","%"],marginUnits:["px","%"],...t};(0,x.addFilter)(`stackable.${e}.edit.inspector.advanced.before`,`stackable/${e}/advanced-block-spacing`,H(e,a),5),a.modifyStyles&&(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/advanced-block-spacing`,D(e)),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/advanced-block-spacing`,O),(0,x.addFilter)(`stackable.${e}.main-block.classes`,`stackable/${e}/advanced-block-spacing`,z),(0,x.doAction)("stackable.module.advanced-block-spacing",e)}},{name:"advanced-column-spacing",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};U.showProNotice&&(0,x.addFilter)(`stackable.${e}.edit.inspector.advanced.before`,`stackable/${e}/fine-grained`,W,6),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/advanced-column-spacing`,q),(0,x.doAction)("stackable.module.advanced-column-spacing",e,t)}},{name:"advanced-custom-attributes",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{}=t;(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/advanced-custom-attributes`,Y),(0,x.addFilter)(`stackable.${e}.edit.inspector.advanced.before`,`stackable/${e}/advanced-custom-attributes`,Q),(0,x.addFilter)(`stackable.${e}.main-block.extraProps`,`stackable/${e}/advanced-custom-attributes`,X)}},{name:"block-background",module:(e,t)=>{(0,x.addFilter)(`stackable.${e}.edit.inspector.style.block`,`stackable/${e}/block-background`,ge,18),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/block-background`,me),(0,x.addFilter)(`stackable.${e}.edit.inspector.before`,`stackable/${e}/block-background`,de),(0,x.addFilter)(`stackable.${e}.settings`,`stackable/${e}/block-background`,be),(0,x.addFilter)(`stackable.${e}.main-block.classes`,`stackable/${e}/block-background`,pe),(0,x.addFilter)(`stackable.${e}.main-block.inner-classes`,`stackable/${e}/block-background`,he),(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/block-background`,((e,a)=>function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{importantBackgroundSize:!1,importantBackgroundPosition:!1};const n=(0,N.__getValue)(t.attributes);if(!t.attributes.showBlockBackground)return e;const o={[`.${t.mainClassName}`]:{...(0,te.ex)("blockBackground%s","desktop",t.attributes,a)},"":{padding:n("noPaddings")?"0 !important":void 0},[`.${t.mainClassName}:before`]:{...(0,te._r)("blockBackground%s","desktop",t.attributes)},tablet:{[`.${t.mainClassName}`]:{...(0,te.ex)("blockBackground%s","tablet",t.attributes,a)},[`.${t.mainClassName}:before`]:{...(0,te._r)("blockBackground%s","tablet",t.attributes)}},mobile:{[`.${t.mainClassName}`]:{...(0,te.ex)("blockBackground%s","mobile",t.attributes,a)},[`.${t.mainClassName}:before`]:{...(0,te._r)("blockBackground%s","mobile",t.attributes)}}};return $()(e,o)}(e,a,t))),(0,x.addFilter)(`stackable.${e}.edit.output.outer`,`stackable/${e}/block-separators`,ke),(0,x.addFilter)(`stackable.${e}.save.output.outer`,`stackable/${e}/block-separators`,ke),(0,x.addFilter)(`stackable.${e}.design.filtered-block-attributes`,`stackable/${e}/block-separators`,_e),(0,x.doAction)("stackable.module.block-background",e),(e=>{(0,x.addFilter)(`stackable.${e}.settings`,`stackable/${e}/block-background`,le,99),ie.push(`ugb/${e}`)})(e)}},{name:"block-separators",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a={enableBringToFront:!0,...t};(0,x.addFilter)(`stackable.${e}.edit.inspector.style.block`,`stackable/${e}/block-separators`,ve(e,a),18),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/block-separators`,ye),(0,x.addFilter)(`stackable.${e}.edit.output.outer`,`stackable/${e}/block-separators`,fe),(0,x.addFilter)(`stackable.${e}.save.output.outer`,`stackable/${e}/block-separators`,fe),(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/block-separators/top`,Ce(e,a)),(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/block-separators/bottom`,Ae(e,a)),(0,x.addFilter)(`stackable.${e}.main-block.classes`,`stackable/${e}/block-separators`,we),(0,x.doAction)("stackable.module.block-separators",e)}},{name:"block-title",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a={blockTitleMarginBottomImportant:!1,blockDescriptionMarginBottomImportant:!1,...t};(0,x.removeFilter)("stackable.panel-spacing-body.edit.before","stackable/block-title"),(0,x.addFilter)(`stackable.${e}.edit.inspector.style.block`,`stackable/${e}/block-title`,Te,17),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/block-title`,Be),(0,x.addFilter)("stackable.panel-spacing-body.edit.before","stackable/block-title",Se),(0,x.addFilter)(`stackable.${e}.edit.output.before`,`stackable/${e}/block-title`,xe),(0,x.addFilter)(`stackable.${e}.save.output.before`,`stackable/${e}/block-title`,Ee),(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/block-title`,Ne(a)),(0,x.addFilter)("stackable.with-content-align-reseter.attributeNamesToReset",`stackable/${e}/block-title`,Pe),(0,x.addFilter)(`stackable.${e}.design.filtered-block-attributes`,`stackable/${e}/block-title`,Re),(0,x.doAction)("stackable.module.block-title",e)}},{name:"block-designs",module:function(e){(0,x.addFilter)(`stackable.${e}.edit.inspector.layout.before`,`stackable/${e}/block-designs`,Ie(e),20),(0,x.doAction)("stackable.module.block-designs",e)}},{name:"container-link",module:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classFilter:a=null,customFilters:n=!1}=t;(0,x.addFilter)(`stackable.${e}.edit.inspector.style.block`,`stackable/${e}/container-link`,Fe,18),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/container-link`,Ue),(0,x.addFilter)(`stackable.${e}.design.filtered-block-attributes`,`stackable/${e}/container-link`,He),n||(a?(0,x.addFilter)(`stackable.${e}.${a}`,`stackable/${e}/container-link`,Le):((0,x.addFilter)(`stackable.${e}.itemclasses`,`stackable/${e}/container-link`,Le),(0,x.addFilter)(`stackable.${e}.boxclasses`,`stackable/${e}/container-link`,Me)))}},{name:"content-align",module:e=>{(0,x.addFilter)(`stackable.${e}.edit.inspector.before`,`stackable/${e}/content-align`,ze,11),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/content-align`,De),(0,x.addFilter)(`stackable.${e}.styles`,`stackable/${e}/content-align`,Oe,9),(0,x.doAction)("stackable.module.content-align",e)}},{name:"custom-css",module:e=>{U.showProNotice&&(0,x.addFilter)(`stackable.${e}.edit.inspector.advanced.after`,`stackable/${e}/custom-css`,We,20),(0,x.addFilter)(`stackable.${e}.attributes`,`stackable/${e}/custom-css`,qe),U.isPro||(0,x.addFilter)(`stackable.${e}.save.output.outer`,`stackable/pro/${e}/custom-css/downgrade`,Ve),(0,x.doAction)("stackable.module.custom-css",e)}}];var Qe=a(1414);var Je,Ke=a(9467);(0,n.setCategories)([...(0,n.getCategories)(),{slug:"stackable-v2",title:(0,P.__)("Stackable",U.i18n)+" (v2)",icon:Ke.SVGStackableCategoryIcon}]),(Je=a(9017)).keys().forEach((e=>{const{name:t,settings:a}=Je(e);if(t)try{return t&&a&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,n.getBlockType)(e))return;const a=e.replace(/^\w+\//g,""),o={...t,category:t.category,modules:(0,x.applyFilters)(`stackable.${a}.modules`,t.modules||{}),deprecated:(t.deprecated||[]).map((t=>({...t,save:(0,Qe.Gy)(e)(t.save)})))};return Object.keys(o.modules).forEach((e=>{const t=o.modules[e];t&&Xe(a,e,"object"==typeof t?t:{})})),o.attributes=(0,x.applyFilters)("stackable.block.attributes",o.attributes),o.attributes=(0,x.applyFilters)(`stackable.${a}.attributes`,o.attributes),o.edit=(0,Qe.Gy)(e)(o.edit),o.save=(0,Qe.Gy)(e)(o.save),(0,n.registerBlockType)(e,(0,x.applyFilters)(`stackable.${a}.settings`,o)),o}(t,a)}catch(e){console.error(`Could not register ${t} block`)}}))})()})();
1
  /*! For license information please see editor_blocks_deprecated_v2.js.LICENSE.txt */
2
+ (()=>{var e={2527:(e,t,a)=>{"use strict";function n(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}a.d(t,{Z:()=>n})},5883:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>I,settings:()=>U});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.accordion.design.no-text-attributes","stackable/accordion",(e=>(0,n.omit)(e,["title"]))),(0,o.addFilter)("stackable.accordion.edit.designs","stackable/accordion",(e=>({...e})));var i=a(2610),l=a(7462);a(7294);const r=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,i.createElement)("path",{d:"M16.7 3.3L10 10 3.3 3.4 0 6.7l10 10v-.1l10-9.9z"}))};var s=a(7545),c=a(8423),u=a(910),g=a(8003);const d={design:{type:"string",default:"basic"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},onlyOnePanelOpen:{type:"boolean",default:!1},openStart:{type:"boolean",default:!1},reverseArrow:{type:"boolean",default:!1},...(0,c.yA)("container%s"),containerClosedBackgroundColor:{type:"string",default:""},...(0,s.createBorderAttributes)("container%s"),title:{source:"html",selector:".ugb-accordion__title",default:(0,g.__)("Title for This Block",u.i18n)},showTitle:{type:"boolean",default:!0},titleTag:{type:"string",default:""},...(0,s.createTypographyAttributes)("title%s"),titleColor:{type:"string",default:""},showArrow:{type:"boolean",default:!0},arrowSize:{type:"number",default:""},arrowColor:{type:"string",default:""},showBorder:{type:"boolean",default:!0},borderSize:{type:"number",default:""},borderColor:{type:"string",default:""},...(0,s.createAllCombinationAttributes)("Title%sAlign",{type:"string",default:""},["","Tablet","Mobile"]),...(0,s.createAllCombinationAttributes)("containerPadding%s",{type:"number",default:""},["Top","Right","Bottom","Left"]),...(0,s.createResponsiveAttributes)("title%sBottomMargin",{type:"number",default:""})};var b=a(4863),m=a.n(b);const p=e=>{const{design:t="basic",showTitle:a=!0}=e.attributes;return(0,o.applyFilters)("stackable.accordion.show",{headerBackground:"basic"===t,containerBackground:"colored"===t||"line-colored"===t,borderRadius:"plain"!==t,shadow:"plain"!==t,border:"line-colored"===t||"plain"===t,containerBorder:"plain"!==t,titleSpacing:a},e)},h=e=>{const t=(0,s.__getValue)(e.attributes),{design:a="basic",reverseArrow:n=!1}=e.attributes,o=p(e),i=[];i.push({".ugb-accordion__heading":{flexDirection:n?"row-reverse":void 0}}),o.borderRadius&&"basic"===a&&i.push({".ugb-accordion__heading":{borderRadius:t("borderRadius","%spx !important")}}),i.push({...o.headerBackground?(0,c._H)("container%s","ugb-accordion__heading",e.attributes,{importantBackgroundColor:!0}):{}}),o.containerBorder&&("basic"===a?i.push({...(0,s.createBorderStyleSet)("container%s",".ugb-accordion__heading",e.attributes)}):"line-colored"===a?i.push({...(0,s.createBorderStyleSet)("container%s",".ugb-accordion.ugb-accordion--design-line-colored.ugb-accordion--open .ugb-accordion__item",e.attributes)}):i.push({...(0,s.createBorderStyleSet)("container%s",".ugb-accordion__item",e.attributes)}));const{titleColor:l="",showTitle:r=!0}=e.attributes;r&&i.push({".ugb-accordion__title":{...(0,s.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-accordion__title":{...(0,s.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-accordion__title":{...(0,s.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{containerBackgroundColor:u=""}=e.attributes;"basic"!==a&&"plain"!==a||i.push({".ugb-accordion__title":{color:(0,s.whiteIfDark)(l,o.headerBackground&&u)}});const{showArrow:g=!0,arrowColor:d=""}=e.attributes;g&&i.push({".ugb-accordion__arrow":{width:(0,s.appendImportant)(t("arrowSize","%spx")),height:(0,s.appendImportant)(t("arrowSize","%spx"))}}),!g||"basic"!==a&&"plain"!==a||i.push({".ugb-accordion__arrow":{fill:(0,s.whiteIfDark)(d,o.headerBackground&&u)}});const{showBorder:b=!0}=e.attributes;return o.border&&!b&&i.push({".ugb-accordion__item":{border:"none !important"}}),o.border&&b&&i.push({".ugb-accordion__item":{borderWidth:(0,s.appendImportant)(t("borderSize","%spx")),borderColor:(0,s.appendImportant)(t("borderColor"))}}),o.headerBackground&&i.push({".ugb-accordion__heading":{paddingTop:(0,s.appendImportant)(t("containerPaddingTop","%spx")),paddingRight:(0,s.appendImportant)(t("containerPaddingRight","%spx")),paddingBottom:(0,s.appendImportant)(t("containerPaddingBottom","%spx")),paddingLeft:(0,s.appendImportant)(t("containerPaddingLeft","%spx"))}}),o.titleSpacing&&i.push(...(0,s.createResponsiveStyles)(".ugb-accordion.ugb-accordion--open .ugb-accordion__heading","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),m().all(i)},k=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,i.createElement)("path",{d:"M16.7 3.3L10 10 3.3 3.4 0 6.7l10 10v-.1l10-9.9z"}))};var _=a(4184),v=a.n(_),y=a(7200),f=a(6635),C=a(1414),A=a(378),w=a(78),T=a(3749);const B=[{attributes:d,save:(0,T.compose)(C.FI,(0,C.OB)(h))((e=>{const{className:t}=e,{design:a="basic",shadow:n="",titleTag:l="",title:r="",openStart:s=!1,showArrow:c=!0,onlyOnePanelOpen:u=!1}=e.attributes,g=p(e),d=v()([t,"ugb-accordion--v2",`ugb-accordion--design-${a}`],(0,o.applyFilters)("stackable.accordion.mainclasses",{"ugb-accordion--open":s,"ugb-accordion--single-open":u},e)),b=v()(["ugb-accordion__item"],(0,o.applyFilters)("stackable.accordion.itemclasses",{},e)),m=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses",{[`ugb--shadow-${n}`]:g.headerBackground&&""!==n},a,e));return(0,i.createElement)(y.BlockContainer.Save,{className:d,blockProps:e,"aria-expanded":s?"true":"false",render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:b,backgroundAttrName:"container%s",blockProps:e,showBackground:g.containerBackground},(0,i.createElement)(f.Gc,{className:m,backgroundAttrName:"container%s",blockProps:e,showBackground:g.headerBackground,role:"button",tabIndex:"0"},(0,i.createElement)(w.RichText.Content,{tagName:l||"h4",className:"ugb-accordion__title",role:"heading","aria-level":"3",value:r}),c&&(0,i.createElement)(k,{className:"ugb-accordion__arrow",width:"20",height:"20"})),(0,i.createElement)("div",{className:"ugb-accordion__content",role:"region"},(0,i.createElement)("div",{className:"ugb-accordion__content-inner"},(0,i.createElement)(w.InnerBlocks.Content,null)))))})}))},{attributes:{heading:{source:"html",selector:".ugb-accordion__heading h4",default:(0,g.__)("Title for This Block",u.i18n)},text:{source:"html",selector:".ugb-accordion__text",default:(0,s.descriptionPlaceholder)("long")},headingColor:{type:"string"},headingBackgroundColor:{type:"string"},openStart:{type:"boolean",default:!1},design:{type:"string",default:"basic"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{headingColor:a,headingBackgroundColor:n,heading:l,text:s,openStart:c,design:u="basic",borderRadius:g=12,shadow:d=3}=e.attributes,b=v()([t,"ugb-accordion"],(0,o.applyFilters)("stackable.accordion.mainclasses_1_17_3",{[`ugb-accordion--design-${u}`]:"basic"!==u,"ugb-accordion--open":c},u,e)),m=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses_1_17_3",{[`ugb--shadow-${d}`]:"plain"!==u&&3!==d},u,e)),p=(0,o.applyFilters)("stackable.accordion.styles_1_17_3",{main:{},heading:{borderRadius:"plain"!==u&&12!==g?g:void 0,backgroundColor:"plain"!==u&&n?n:void 0},title:{color:a||void 0}},u,e);return(0,i.createElement)("div",{className:b,style:p.main,role:"presentation"},(0,o.applyFilters)("stackable.accordion.save.output.before_1_17_3",null,u,e),(0,i.createElement)("div",{className:m,role:"button",tabIndex:"0","aria-expanded":c?"true":"false",style:p.heading},(0,i.createElement)(w.RichText.Content,{tagName:"h4",role:"heading","aria-level":"3",style:p.title,value:l}),(e=>{let{fill:t}=e;return(0,i.createElement)(r,{width:"20",height:"20",fill:t})})({fill:a||void 0})),(0,i.createElement)(w.RichText.Content,{tagName:"p",className:"ugb-accordion__text",role:"region",value:s}),(0,o.applyFilters)("stackable.accordion.save.output.after",null,u,e))},migrate:e=>{const t=e=>(e||"").replace(/\n\.ugb-accordion__heading h4(\s*{)/g,"\n.ugb-accordion__title$1").replace(/\.ugb-accordion__text/g,".ugb-accordion__content").replace(/\.ugb-accordion__heading svg/g,".ugb-accordion__arrow");return[{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),title:e.heading,titleColor:e.headingColor||"#222222",containerBackgroundColor:e.headingBackgroundColor,showBorder:"plain"!==e.design,containerClosedBackgroundColor:"colored"===e.design?"#ffffff":void 0,arrowColor:"colored"===e.design||"basic"===e.design||"plain"===e.design?e.headingColor||"#222222":"line-colored"===e.design?e.headingBackgroundColor:void 0},[(0,A.createBlock)("core/paragraph",{content:e.text})]]}}];var x=a(3284);(0,o.addFilter)("stackable.accordion.edit.layouts","default",(e=>[...e,{label:(0,g.__)("Basic",u.i18n),value:"basic",image:"dist/images/block-accordion-basic.6639c67.png"},{label:(0,g.__)("Plain",u.i18n),value:"plain",image:"dist/images/block-accordion-plain.e443b59.png"},{label:(0,g.__)("Lined to Colored",u.i18n),value:"line-colored",image:"dist/images/block-accordion-line-colored.4a7ec49.png",hoverImage:"dist/images/block-accordion-line-colored-hover.7d6772b.png",premium:!0},{label:(0,g.__)("Colored",u.i18n),value:"colored",image:"dist/images/block-accordion-colored.3f93495.png",hoverImage:"dist/images/block-accordion-colored-hover.ba71665.png",premium:!0}])),(0,o.addFilter)("stackable.accordion.edit.inspector.layout.before","stackable/accordion",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(y.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.accordion.edit.layouts",[]),onChange:e=>a({design:e})},u.showProNotice&&(0,i.createElement)(y.ProControlButton,null)))})),(0,o.addFilter)("stackable.accordion.edit.inspector.style.before","stackable/accordion",((e,t)=>{const{setAttributes:a}=t,{design:n="basic",titleColor:o,borderRadius:l="",shadow:r="",onlyOnePanelOpen:s=!1,openStart:c=!1,reverseArrow:d=!1,titleTag:b="",showArrow:m=!0,arrowSize:h="",arrowColor:k="",showBorder:_=!0,borderSize:v="",borderColor:C="",containerPaddingTop:A="",containerPaddingRight:w="",containerPaddingBottom:T="",containerPaddingLeft:B="",containerClosedBackgroundColor:x=""}=t.attributes,S=p(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("General",u.i18n),initialOpen:!0},(0,i.createElement)(y.AdvancedToggleControl,{label:(0,g.__)("Close adjacent on open",u.i18n),checked:s,onChange:e=>a({onlyOnePanelOpen:e}),className:"ugb--help-tip-accordion-adjacent-open"}),(0,i.createElement)(y.AdvancedToggleControl,{label:(0,g.__)("Open at the start",u.i18n),checked:c,onChange:e=>a({openStart:e})}),(0,i.createElement)(y.AdvancedToggleControl,{label:(0,g.__)("Reverse arrow",u.i18n),checked:d,onChange:e=>a({reverseArrow:e})}),(0,i.createElement)(f.QA,{setAttributes:a,blockAttributes:t.attributes})),(S.headerBackground||S.containerBackground)&&(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Container",u.i18n),id:"column-background",initialOpen:!1},(0,i.createElement)(y.ButtonIconPopoverControl,{label:(0,g.__)("Background",u.i18n),popoverLabel:(0,g.__)("Background",u.i18n),onReset:()=>{a({containerBackgroundColorType:"",containerBackgroundColor:"",containerBackgroundColor2:"",containerBackgroundColorOpacity:"",containerBackgroundMediaID:"",containerBackgroundMediaUrl:"",containerBackgroundTintStrength:"",containerFixedBackground:""})},allowReset:t.attributes.containerBackgroundColor||t.attributes.containerBackgroundMediaUrl,hasColorPreview:t.attributes.containerBackgroundColor,hasImagePreview:t.attributes.containerBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.containerBackgroundColorType?[t.attributes.containerBackgroundColor,t.attributes.containerBackgroundColor2]:t.attributes.containerBackgroundColor,imageUrlPreview:t.attributes.containerBackgroundMediaUrl},(0,i.createElement)(y.BackgroundControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes})),S.borderRadius&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Border Radius",u.i18n),value:l,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),S.containerBorder&&(0,i.createElement)(y.BorderControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes}),(S.headerBackground||S.containerBackground)&&(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Shadow / Outline",u.i18n),value:r,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"}),"colored"===n&&(0,i.createElement)(y.ColorPaletteControl,{value:x,onChange:e=>a({containerClosedBackgroundColor:e}),label:(0,g.__)("Closed State Background Color",u.i18n),className:"ugb--help-tip-accordion-closed-state-background-color"})),(0,i.createElement)(y.PanelSpacingBody,{initialOpen:!1,blockProps:t},(S.headerBackground||S.containerBackground)&&(0,i.createElement)(y.FourRangeControl,{label:(0,g.__)("Padding",u.i18n),top:A,right:w,bottom:T,left:B,onChange:e=>a({containerPaddingTop:e.top,containerPaddingRight:e.right,containerPaddingBottom:e.bottom,containerPaddingLeft:e.left}),max:200,placeholder:"18",className:"ugb--help-tip-accordion-padding"}),S.titleSpacing&&(0,i.createElement)(f.n9,{attrNameTemplate:"title%sBottomMargin",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Title",u.i18n),min:-50,max:100,allowReset:!0,placeholder:"0",className:"ugb--help-tip-accordion-title-spacing"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Title",u.i18n),id:"title",hasToggle:!1},(0,i.createElement)(y.HeadingButtonsControl,{value:b||"h4",defaultValue:"h4",onChange:e=>a({titleTag:e})}),(0,i.createElement)(y.TypographyControlHelper,{attrNameTemplate:"title%s",setAttributes:a,blockAttributes:t.attributes,htmlTag:b||"h4"}),(0,i.createElement)(y.ColorPaletteControl,{value:o,onChange:e=>a({titleColor:e}),label:(0,g.__)("Title Color",u.i18n)}),(0,i.createElement)(f.n9,{attrNameTemplate:"Title%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(y.AlignButtonsControl,{label:(0,g.__)("Align",u.i18n),className:"ugb--help-tip-alignment-title"}))),(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Arrow",u.i18n),id:"arrow",checked:m,onChange:e=>a({showArrow:e}),toggleOnSetAttributes:["arrowSize","arrowColor"],toggleAttributeName:"showArrow"},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Size",u.i18n),min:0,max:100,allowReset:!0,value:h,onChange:e=>a({arrowSize:e}),placeholder:"20"}),(0,i.createElement)(y.ColorPaletteControl,{value:k,onChange:e=>a({arrowColor:e}),label:(0,g.__)("Color",u.i18n)})),S.border&&(0,i.createElement)(y.PanelAdvancedSettings,{title:(0,g.__)("Border",u.i18n),checked:_,onChange:e=>a({showBorder:e}),toggleOnSetAttributes:["borderSize","borderColor"],toggleAttributeName:"showBorder",className:"ugb--help-tip-accordion-border"},(0,i.createElement)(y.AdvancedRangeControl,{label:(0,g.__)("Size",u.i18n),min:0,max:10,allowReset:!0,value:v,onChange:e=>a({borderSize:e}),placeholder:"3",className:"ugb--help-tip-accordion-border-size"}),(0,i.createElement)(y.ColorPaletteControl,{value:C,onChange:e=>a({borderColor:e}),label:(0,g.__)("Color",u.i18n)})))}));const S=[["core/paragraph",{content:(0,s.descriptionPlaceholder)("long")}]],E=(0,T.compose)(C.FI,C.XQ,C.O0,(0,C.Q9)(),(0,C.lX)(),(0,C.OB)(h,{editorMode:!0}),(0,C.UY)([[".ugb-accordion__title","title"],[".ugb-accordion__arrow","arrow"]]),(0,x.withSelect)(((e,t)=>{let{clientId:a}=t;const{getBlock:n}=e("core/block-editor"),o=n(a);return{hasInnerBlocks:!(!o||!o.innerBlocks.length)}})))((e=>{const{className:t,setAttributes:a}=e,{design:n="basic",shadow:l="",titleTag:r="",title:s="",openStart:c=!1,showArrow:d=!0}=e.attributes,b=p(e),[m,h]=(0,i.useState)(null),[_,C]=(0,i.useState)(null),A=v()([t,"ugb-accordion--v2",`ugb-accordion--design-${n}`],(0,o.applyFilters)("stackable.accordion.mainclasses",{"ugb-accordion--open":null===m?c:m},e)),T=v()(["ugb-accordion__item"],(0,o.applyFilters)("stackable.accordion.itemclasses",{},e)),B=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses",{[`ugb--shadow-${l}`]:"basic"===n&&""!==l},n,e));return(0,i.createElement)(y.BlockContainer.Edit,{className:A,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:T,backgroundAttrName:"container%s",blockProps:e,showBackground:b.containerBackground},(0,i.createElement)(f.Gc,{className:B,backgroundAttrName:"container%s",blockProps:e,showBackground:b.headerBackground,onClick:()=>{_&&clearTimeout(_);const e=setTimeout((()=>{h(!m)}),150);C(e)},onDoubleClick:()=>{_&&clearTimeout(_)},onKeyPress:()=>{_&&clearTimeout(_),h(!c)},role:"button",tabIndex:"0"},(0,i.createElement)(w.RichText,{tagName:r||"h4",className:"ugb-accordion__title",value:s,onChange:e=>a({title:e}),placeholder:(0,g.__)("Title for This Block",u.i18n),keepPlaceholderOnFocus:!0}),d&&(0,i.createElement)(k,{className:"ugb-accordion__arrow",width:"20",height:"20"})),(0,i.createElement)("div",{className:"ugb-accordion__content"},(0,i.createElement)("div",{className:"ugb-accordion__content-inner"},(0,i.createElement)(w.InnerBlocks,{template:S,renderAppender:()=>e.hasInnerBlocks?(0,i.createElement)(w.InnerBlocks.DefaultBlockAppender,null):(0,i.createElement)(w.InnerBlocks.ButtonBlockAppender,null)})))))})})),N=(0,T.compose)(C.FI,(0,C.OB)(h))((e=>{const{className:t}=e,{design:a="basic",shadow:n="",titleTag:l="",title:r="",openStart:s=!1,showArrow:c=!0,onlyOnePanelOpen:u=!1}=e.attributes,g=p(e),d=v()([t,"ugb-accordion--v2",`ugb-accordion--design-${a}`],(0,o.applyFilters)("stackable.accordion.mainclasses",{"ugb-accordion--open":s,"ugb-accordion--single-open":u},e)),b=v()(["ugb-accordion__item"],(0,o.applyFilters)("stackable.accordion.itemclasses",{},e)),m=v()(["ugb-accordion__heading"],(0,o.applyFilters)("stackable.accordion.headingclasses",{[`ugb--shadow-${n}`]:g.headerBackground&&""!==n},a,e));return(0,i.createElement)(y.BlockContainer.Save,{className:d,blockProps:e,"aria-expanded":s?"true":"false",render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.Gc,{className:b,backgroundAttrName:"container%s",blockProps:e,showBackground:g.containerBackground},(0,i.createElement)(f.Gc,{className:m,backgroundAttrName:"container%s",blockProps:e,showBackground:g.headerBackground,role:"button",tabIndex:"0"},(0,i.createElement)(w.RichText.Content,{tagName:l||"h4",className:"ugb-accordion__title",value:r}),c&&(0,i.createElement)(k,{className:"ugb-accordion__arrow",width:"20",height:"20"})),(0,i.createElement)("div",{className:"ugb-accordion__content",role:"region"},(0,i.createElement)("div",{className:"ugb-accordion__content-inner"},(0,i.createElement)(w.InnerBlocks.Content,null)))))})})),R=JSON.parse('{"name":"ugb/accordion","title":"Accordion","description":"A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.","category":"stackable-v2","keywords":["Toggle","Faq"],"textdomain":"stackable-ultimate-gutenberg-blocks"}');var P=a(9467);const{name:I,...$}=R,U={...$,title:$.title+" (v2)",icon:P.AccordionIcon,attributes:d,example:{attributes:{design:"basic",onlyOnePanelOpen:!1,openStart:!0,reverseArrow:!1,containerBackgroundCustomSizeUnit:"%",containerTabletBackgroundCustomSizeUnit:"%",containerMobileBackgroundCustomSizeUnit:"%",title:"Title for This Block",showTitle:!0,titleLineHeightUnit:"em",titleTabletLineHeightUnit:"em",titleMobileLineHeightUnit:"em",showArrow:!0,showBorder:!0,uniqueClass:"ugb-872a8ec",hideDesktop:!1,hideTablet:!1,hideMobile:!1},innerBlocks:[{clientId:"e6b76d8f-bb66-45fb-938f-ef35d5fca25f",name:"core/paragraph",isValid:!0,originalContent:"<p>Description for this block. Use this space for describing your block. Any text will do.</p>",attributes:{content:"Description for this block. Use this space for describing your block. Any text will do.",dropCap:!1}}]},deprecated:B,edit:E,save:N,supports:{inserter:!u.v2disabledBlocks.includes(I),anchor:!0,html:!1},modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-custom-attributes":!0,"advanced-responsive":!0,"content-align":!0,"block-designs":!0,"custom-css":{default:(0,o.applyFilters)("stackable.cta.custom-css.default","")}}}},2832:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>j,settings:()=>X});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.blockquote.design.no-text-attributes","stackable/blockquote",(e=>(0,n.omit)(e,["text"])));var i=a(2610),l=a(7462);a(7294);const r=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M22.3 30.5c0 6-4.8 10.8-10.8 10.8-2.3 0-4.5-.8-6.3-2-.9-.6-1.8-1.4-2.5-2.4-1.8-2.4-2.7-5.4-2.7-9 0-4.5 1.3-8.5 4-11.9 2.7-3.4 6.4-5.8 11.1-7.3v2.8c-2.7 2.2-4.4 5-4.9 8.3.4-.1.9-.1 1.3-.1 6-.1 10.8 4.8 10.8 10.8zm16.9-10.9c-.5 0-.9 0-1.3.1.5-3.3 2.2-6.1 4.9-8.3V8.7c-4.7 1.4-8.4 3.9-11.1 7.3-2.7 3.4-4 7.4-4 11.9 0 3.6.9 6.6 2.7 9 .8 1 1.6 1.8 2.5 2.4 1.8 1.3 3.9 2 6.3 2 6 0 10.8-4.8 10.8-10.8 0-6-4.8-10.9-10.8-10.9z"}))},s=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M9.4 14.6c-2.4 2.9-3.6 5.9-3.6 8.9 0 1.3.2 2.4.5 3.3 1.8-1.4 3.8-2.1 6-2.1 2.9 0 5.3.9 7.3 2.7 2 1.8 3 4.2 3 7.3 0 1.9-.5 3.6-1.4 5.1-.9 1.5-2.2 2.7-3.8 3.6s-3.3 1.3-5.1 1.3c-4.1 0-7.3-1.6-9.5-4.9C.9 36.9 0 33.5 0 29.4c0-5.2 1.4-9.9 4.1-14 2.8-4.1 6.9-7.5 12.5-10l1.5 2.8c-3.3 1.3-6.2 3.5-8.7 6.4zm27.5 0c-2.4 2.9-3.6 5.9-3.6 8.9 0 1.3.2 2.4.5 3.3 1.8-1.4 3.8-2.1 6-2.1 2.9 0 5.4.9 7.4 2.7 2 1.8 3 4.2 3 7.3 0 2.8-1 5.2-3 7.1-2 1.9-4.4 2.9-7.3 2.9-4.1 0-7.3-1.6-9.5-4.9-1.8-2.7-2.8-6.2-2.8-10.3 0-5.2 1.4-9.9 4.1-14 2.8-4.1 6.9-7.5 12.5-10l1.5 2.8c-3.5 1.2-6.4 3.4-8.8 6.3z"}))},c=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M22.6 12.8c-1.9.5-3.7 1.2-5.3 2.1-1.6.9-3.1 1.9-4.3 3-1.2 1.1-2.2 2.4-2.9 3.7-.7 1.3-1.1 2.7-1.1 4 0 1.2.1 1.8.3 1.8.8 0 1.5-.3 2.4-.9.8-.6 1.9-.9 3.3-.9 2.1 0 3.9.8 5.4 2.4 1.5 1.6 2.3 3.7 2.3 6.2s-1 4.6-2.9 6.4c-1.9 1.8-4.3 2.6-7.3 2.6-1.8 0-3.4-.4-4.9-1.1-1.5-.8-2.8-1.8-3.9-3.1s-2-2.8-2.6-4.6C.3 32.5 0 30.6 0 28.6c0-3 .6-5.8 1.8-8.3 1.2-2.5 2.8-4.8 4.9-6.7 2-1.9 4.4-3.5 7.2-4.6 2.8-1.2 5.6-1.8 8.6-2v5.8zm27.4 0c-1.9.5-3.7 1.2-5.4 2.1-1.7.9-3.1 1.9-4.3 3-1.2 1.1-2.2 2.4-2.9 3.7-.7 1.3-1.1 2.7-1.1 4 0 1.2.1 1.8.4 1.8.8 0 1.5-.3 2.3-.9.8-.6 1.9-.9 3.3-.9 2 0 3.8.8 5.3 2.4 1.5 1.6 2.3 3.7 2.3 6.2s-1 4.6-2.9 6.4c-2 1.8-4.4 2.6-7.3 2.6-1.7 0-3.3-.4-4.8-1.1-1.5-.8-2.8-1.8-3.9-3.1s-2-2.8-2.7-4.6c-.7-1.8-1-3.7-1-5.7 0-3 .6-5.8 1.8-8.3 1.2-2.5 2.8-4.8 4.9-6.7 2-1.9 4.4-3.5 7.2-4.6 2.8-1.2 5.7-1.8 8.8-2v5.7z"}))},u=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M19.8 9.3C10.5 11.8 4.6 17 2.1 24.8c2.3-3.6 5.6-5.4 9.9-5.4 3.3 0 6 1.1 8.3 3.3 2.2 2.2 3.4 5 3.4 8.3 0 3.2-1.1 5.8-3.3 8-2.2 2.2-5.1 3.2-8.7 3.2-3.7 0-6.5-1.2-8.6-3.5C1 36.3 0 33.1 0 29 0 18.3 6.5 11.2 19.6 7.9l.2 1.4zm26.4 0C36.9 11.9 31 17 28.5 24.8c2.2-3.6 5.5-5.4 9.8-5.4 3.2 0 6 1.1 8.3 3.2 2.3 2.2 3.4 4.9 3.4 8.3 0 3.1-1.1 5.8-3.3 7.9-2.2 2.2-5.1 3.3-8.6 3.3-3.7 0-6.6-1.1-8.6-3.4-2.1-2.3-3.1-5.5-3.1-9.7 0-10.7 6.6-17.8 19.7-21.1l.1 1.4z"}))},g=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M12.5 9.2H19c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v3.4c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7h-5.8c-.7 0-1.3.2-1.7.6-.4.4-.6 1-.6 1.7v1.3H20c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v12.5c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7H3c-1.1 0-1.8-.2-2.3-.7-.5-.4-.7-1.2-.7-2.2V21.9c0-4.3 1.1-7.4 3.4-9.6 2.3-2 5.3-3.1 9.1-3.1zm26.9 0h6.5c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v3.4c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7h-5.8c-.7 0-1.3.2-1.7.6-.4.4-.6 1-.6 1.7v1.3H47c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v12.5c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7H30c-1.1 0-1.8-.2-2.3-.7-.5-.5-.7-1.2-.7-2.3V21.9c0-4.3 1.1-7.4 3.4-9.6 2.2-2 5.2-3.1 9-3.1z"}))},d=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M20.8 44.5H0V23.7L9.3 5.5h7.3L12 23.7h8.8v20.8zm29.2 0H29.2V23.7l9.3-18.1h7.3l-4.6 18.1H50v20.8z"}))},b=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M10.3 24.8V26H20v16.9H0V26.2C0 13.4 6.6 7.1 19.9 7.1v7.1c-3.4.5-5.9 1.6-7.4 3.3-1.5 1.7-2.2 4.1-2.2 7.3zm30 0V26H50v16.9H30.1V26.2c0-12.7 6.6-19.1 19.9-19.1v7.1c-6.4.7-9.7 4.3-9.7 10.6z"}))},m=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M21.1 6.8v36.4H0V22.1L21.1 6.8zm28.9 0v36.4H28.9V22.1L50 6.8z"}))},p=function(e){return(0,i.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,i.createElement)("path",{d:"M14.7 45.9H0V31.3C0 17.6 8.6 6.6 21.6 4.1v4.7c-10 2.6-16.7 10.9-16.7 22.6h9.8v14.5zm28.1 0H28.4V31.3C28.4 17.6 37 6.6 50 4.1v4.7c-9.8 2.6-16.7 10.9-16.7 22.6h9.5v14.5z"}))};var h=a(910),k=a(8003);const _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(s,(0,l.Z)({style:e},t))},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(u,(0,l.Z)({style:e},t))},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(c,(0,l.Z)({style:e},t))},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(r,(0,l.Z)({style:e},t))},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(b,(0,l.Z)({style:e},t))},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(g,(0,l.Z)({style:e},t))},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(d,(0,l.Z)({style:e},t))},T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(m,(0,l.Z)({style:e},t))},B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.createElement)(p,(0,l.Z)({style:e},t))},x={"round-thin":{icon:v(),iconFunc:v,title:(0,k.__)("Round Thin",h.i18n),value:"round-thin"},round:{icon:_(),iconFunc:_,title:(0,k.__)("Round",h.i18n),value:"round"},"round-thick":{icon:y(),iconFunc:y,title:(0,k.__)("Round Thick",h.i18n),value:"round-thick"},"round-fat":{icon:f(),iconFunc:f,title:(0,k.__)("Round Fat",h.i18n),value:"round-fat"},"square-thin":{icon:B(),iconFunc:B,title:(0,k.__)("Square Thin",h.i18n),value:"square-thin"},square:{icon:C(),iconFunc:C,title:(0,k.__)("Square",h.i18n),value:"square"},"square-simple":{icon:T(),iconFunc:T,title:(0,k.__)("Square Simple",h.i18n),value:"square-simple"},"square-modern":{icon:w(),iconFunc:w,title:(0,k.__)("Square Modern",h.i18n),value:"square-modern"},"square-fat":{icon:A(),iconFunc:A,title:(0,k.__)("Square Fat",h.i18n),value:"square-fat"}};var S=a(7545),E=a(78),N=a(4184),R=a.n(N);const P=[{attributes:{align:{type:"string"},text:{source:"html",selector:"p",default:(0,S.descriptionPlaceholder)("long")},color:{type:"string",default:""},quoteColor:{type:"string",default:""},backgroundColorType:{type:"string",default:""},backgroundColor:{type:"string"},backgroundColor2:{type:"string",default:""},backgroundColorDirection:{type:"number",default:0},backgroundType:{type:"string",default:""},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},contentWidth:{type:"boolean",default:!1},quotationMark:{type:"string",default:"round-thin"},quotationSize:{type:"number",default:70},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3},customCSSUniqueID:{type:"string",default:""},customCSS:{type:"string",default:""},customCSSCompiled:{type:"string",default:""}},save:e=>{const{className:t}=e,{color:a,text:n,quoteColor:l,backgroundColorType:r="",backgroundColor:s,backgroundColor2:c,backgroundColorDirection:u=0,backgroundType:g="",backgroundImageURL:d,backgroundOpacity:b=5,fixedBackground:m,quotationMark:p="round-thin",quotationSize:h=70,align:k,contentWidth:_,design:v="plain",borderRadius:y=12,shadow:f=3}=e.attributes,C=["basic","top-icon"].includes(v),A=R()([t,"ugb-blockquote","ugb-blockquote--v2","ugb--background-opacity-"+1*Math.round(b/1),`ugb-blockquote--design-${v}`],(0,o.applyFilters)("stackable.blockquote.mainclasses_1_17_3",{"ugb--has-background":C&&(s||d),"ugb--has-background-image":C&&d,[`ugb--shadow-${f}`]:C&&3!==f,"ugb-content-width":"full"===k&&_,"ugb-blockquote--small-quote":h<60,"ugb--has-background-gradient":"gradient"===r,"ugb--has-background-video":"video"===g},v,e)),w=C?{backgroundColor:s||void 0,backgroundImage:d?`url(${d})`:void 0,backgroundAttachment:m?"fixed":void 0,"--ugb-background-color":d||"gradient"===r?s:void 0,"--ugb-background-color2":"gradient"===r&&c?c:void 0,"--ugb-background-direction":"gradient"===r?`${u}deg`:void 0,borderRadius:12!==y?y:void 0}:{},T=(0,o.applyFilters)("stackable.blockquote.styles_1_17_3",{main:{"--quote-color":l||void 0,...w},text:{color:a}},v,e);return(0,i.createElement)("blockquote",{className:A,style:T.main},C&&"video"===g&&(0,i.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:d}),(0,o.applyFilters)("stackable.blockquote.save.output.before_1_17_3",null,v,e),(0,i.createElement)("div",{className:"ugb-content-wrapper"},x[p].iconFunc({fill:l,width:h,height:h}),(0,o.applyFilters)("stackable.blockquote.save.output_1_17_3",(0,i.createElement)(E.RichText.Content,{tagName:"p",className:"ugb-blockquote__text",style:T.text,value:n}),v,e)),(0,o.applyFilters)("stackable.blockquote.save.output.after_1_17_3",null,v,e))},migrate:e=>{const t=t=>{let a=(t||"").replace(/\.ugb-content-wrapper/g,".ugb-blockquote__item").replace(/svg(\s*\{)/g,".ugb-blockquote__quote$1");return"basic"===e.design&&(a=a.replace(/\.ugb-blockquote(\s*\{)/g,".ugb-blockquote__item$1")),a};return{...e,customCSS:t(e.customCSS),customCSSCompiled:t(e.customCSSCompiled),showQuote:!0,quoteIcon:e.quotationMark,quoteSize:e.quotationSize,textColor:e.color?e.color:e.backgroundColor?"#000000":void 0,containerBackgroundColorType:e.backgroundColorType,containerBackgroundColor:e.backgroundColor,containerBackgroundColor2:e.backgroundColor2,containerBackgroundGradientDirection:e.backgroundColorDirection,containerBackgroundMediaId:e.backgroundImageID,containerBackgroundMediaUrl:e.backgroundImageURL,containerBackgroundTintStrength:e.backgroundOpacity,containerFixedBackground:e.fixedBackground,design:"basic"===e.design&&"full"===e.align?"plain":e.design,showBlockBackground:"basic"===e.design&&"full"===e.align||void 0,blockInnerWidth:"full"!==e.align?void 0:"basic"===e.design&&!0===e.contentWidth?"center":"full",blockBackgroundBackgroundColor:"basic"===e.design&&"full"===e.align?e.backgroundColor:void 0,marginTop:"full"===e.align?0:void 0,marginBottom:"full"===e.align?0:void 0}}},{attributes:{align:{type:"string"},text:{source:"html",selector:"p",default:(0,S.descriptionPlaceholder)("long")},color:{type:"string",default:""},quoteColor:{type:"string",default:""},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundOpacity:{type:"number",default:5},fixedBackground:{type:"boolean",default:!1},contentWidth:{type:"boolean",default:!1},quotationMark:{type:"string",default:"round-thin"},quotationSize:{type:"number",default:70},design:{type:"string",default:"plain"},borderRadius:{type:"number",default:12},shadow:{type:"number",default:3}},save:e=>{const{className:t}=e,{color:a,text:n,quoteColor:l,backgroundColorType:r="",backgroundColor:s,backgroundColor2:c,backgroundColorDirection:u=0,backgroundType:g="",backgroundImageURL:d,backgroundOpacity:b=5,fixedBackground:m,quotationMark:p="round-thin",quotationSize:h=70,align:k,contentWidth:_,design:v="plain",borderRadius:y=12,shadow:f=3}=e.attributes,C=["basic","top-icon"].includes(v),A=R()([t,"ugb-blockquote","ugb-blockquote--v2","ugb--background-opacity-"+1*Math.round(b/1),`ugb-blockquote--design-${v}`],(0,o.applyFilters)("stackable.blockquote.mainclasses",{"ugb--has-background":C&&(s||d),"ugb--has-background-image":C&&d,[`ugb--shadow-${f}`]:C&&3!==f,"ugb-content-width":"full"===k&&_,"ugb-blockquote--small-quote":h<60,"ugb--has-background-gradient":"gradient"===r,"ugb--has-background-video":"video"===g},v,e)),w=C?{backgroundColor:s||void 0,backgroundImage:d?`url(${d})`:void 0,backgroundAttachment:m?"fixed":void 0,"--ugb-background-color":d||"gradient"===r?s:void 0,"--ugb-background-color2":"gradient"===r&&c?c:void 0,"--ugb-background-direction":"gradient"===r?`${u}deg`:void 0,borderRadius:12!==y?y:void 0}:{},T=(0,o.applyFilters)("stackable.blockquote.styles_1_17_3",{main:{"--quote-color":l||void 0,...w},text:{color:a}},v,e);return(0,i.createElement)("blockquote",{className:A,style:T.main},C&&"video"===g&&(0,i.createElement)("video",{className:"ugb-video-background",autoPlay:!0,muted:!0,loop:!0,src:d}),(0,o.applyFilters)("stackable.blockquote.save.output.before",null,v,e),(0,i.createElement)("div",{className:"ugb-content-wrapper"},x[p].iconFunc({fill:l,width:h,height:h}),(0,o.applyFilters)("stackable.blockquote.save.text",(0,i.createElement)(E.RichText.Content,{tagName:"p",className:"ugb-blockquote__text",style:T.text,value:n}),v,e)),(0,o.applyFilters)("stackable.blockquote.save.output.after",null,v,e))}}],I=e=>{const{design:t="basic"}=e.attributes;return(0,o.applyFilters)("stackable.blockquote.show",{containerBackground:"basic"===t,borderRadius:"basic"===t,shadow:"basic"===t,border:"basic"===t},e)};var $=a(8423),U=a(4863),F=a.n(U);const L=e=>{const t=(0,S.__getValue)(e.attributes),a=I(e),n=[];n.push({...a.containerBackground?(0,$._H)("container%s","ugb-blockquote__item",e.attributes,{importantBackgroundColor:!0}):{}}),a.containerBackground&&n.push({".ugb-blockquote__item":{borderRadius:a.borderRadius?t("borderRadius","%spx !important"):void 0}}),a.border&&n.push({...(0,S.createBorderStyleSet)("column%s",".ugb-blockquote__item",e.attributes)});const{showQuote:o=!0}=e.attributes;o&&(n.push({".ugb-blockquote__quote":{fill:(0,S.appendImportant)(t("quoteColor")),opacity:t("quoteOpacity")}}),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sSize","width","%spx",e.attributes,{important:!0})),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sSize","height","%spx",e.attributes,{important:!0})),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sX","left","%spx",e.attributes,{important:!0})),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__quote","quote%sY","top","%spx",e.attributes,{important:!0})));const{columnPaddingUnit:i="px",tabletColumnPaddingUnit:l="px",mobileColumnPaddingUnit:r="px"}=e.attributes;n.push({saveOnly:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > *":(0,S.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > *":(0,S.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > *":(0,S.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}},editor:{desktopTablet:{"> .ugb-inner-block > .ugb-block-content > .ugb-blockquote__item":(0,S.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${i}`),paddingBottom:t("columnPaddingBottom",`%s${i}`),paddingRight:t("columnPaddingRight",`%s${i}`),paddingLeft:t("columnPaddingLeft",`%s${i}`)})},tabletOnly:{"> .ugb-inner-block > .ugb-block-content > .ugb-blockquote__item":(0,S.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${l}`),paddingRight:t("tabletColumnPaddingRight",`%s${l}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${l}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${l}`)})},mobile:{"> .ugb-inner-block > .ugb-block-content > .ugb-blockquote__item":(0,S.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${r}`),paddingRight:t("mobileColumnPaddingRight",`%s${r}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${r}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${r}`)})}}});const{containerBackgroundColor:s="",textColor:c=""}=e.attributes;return n.push({".ugb-blockquote__text":{...(0,S.createTypographyStyles)("text%s","desktop",e.attributes,{important:!0}),color:(0,S.whiteIfDark)(c,a.containerBackground&&s)},tablet:{".ugb-blockquote__text":{...(0,S.createTypographyStyles)("text%s","tablet",e.attributes,{important:!0})}},mobile:{".ugb-blockquote__text":{...(0,S.createTypographyStyles)("text%s","mobile",e.attributes,{important:!0})}}}),n.push(...(0,S.createResponsiveStyles)(".ugb-blockquote__item","text%sAlign","textAlign","%s",e.attributes,{important:!0})),F().all(n)};var M=a(7200),H=a(6635),D=a(1414),O=a(3749);(0,o.addFilter)("stackable.blockquote.edit.layouts","default",(e=>[...e,{label:(0,k.__)("Basic",h.i18n),value:"basic",image:"dist/images/block-blockquote-basic.4340c9a.png"},{label:(0,k.__)("Plain",h.i18n),value:"plain",image:"dist/images/block-blockquote-plain.7ee3a2a.png"},{label:(0,k.__)("Centered Quote",h.i18n),value:"centered-quote",image:"dist/images/block-blockquote-centered-quote.d743590.png",premium:!0},{label:(0,k.__)("Huge",h.i18n),value:"huge",image:"dist/images/block-blockquote-huge.ce498b6.png",premium:!0},{label:(0,k.__)("Highlight",h.i18n),value:"highlight",image:"dist/images/block-blockquote-highlight.2e6ac48.png",premium:!0}])),(0,o.addFilter)("stackable.blockquote.edit.inspector.layout.before","stackable/blockquote",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(M.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.blockquote.edit.layouts",[]),onChange:e=>a({design:e})},h.showProNotice&&(0,i.createElement)(M.ProControlButton,null)))})),(0,o.addFilter)("stackable.blockquote.edit.inspector.style.before","stackable/blockquote",((e,t)=>{const{setAttributes:a}=t,{borderRadius:n="",shadow:o="",showQuote:l=!0,quoteIcon:r="round-thin",quoteColor:s="",quoteOpacity:c="",textColor:u=""}=t.attributes,g=I(t);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("General",h.i18n),initialOpen:!0},(0,i.createElement)(H.QA,{setAttributes:a,blockAttributes:t.attributes})),g.containerBackground&&(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("Container",h.i18n),id:"column-background",initialOpen:!1,className:"ugb--help-tip-column-background-on-off"},(0,i.createElement)(M.ButtonIconPopoverControl,{label:(0,k.__)("Background",h.i18n),popoverLabel:(0,k.__)("Background",h.i18n),onReset:()=>{a({containerBackgroundColorType:"",containerBackgroundColor:"",containerBackgroundColor2:"",containerBackgroundColorOpacity:"",containerBackgroundMediaID:"",containerBackgroundMediaUrl:"",containerBackgroundTintStrength:"",containerFixedBackground:""})},allowReset:t.attributes.containerBackgroundColor||t.attributes.containerBackgroundMediaUrl,hasColorPreview:t.attributes.containerBackgroundColor,hasImagePreview:t.attributes.containerBackgroundMediaUrl,colorPreview:"gradient"===t.attributes.containerBackgroundColorType?[t.attributes.containerBackgroundColor,t.attributes.containerBackgroundColor2]:t.attributes.containerBackgroundColor,imageUrlPreview:t.attributes.containerBackgroundMediaUrl},(0,i.createElement)(M.BackgroundControlsHelper,{attrNameTemplate:"container%s",setAttributes:a,blockAttributes:t.attributes})),g.border&&(0,i.createElement)(M.BorderControlsHelper,{attrNameTemplate:"column%s",setAttributes:a,blockAttributes:t.attributes}),g.borderRadius&&(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Border Radius",h.i18n),value:n,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),g.shadow&&(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Shadow / Outline",h.i18n),value:o,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"})),(0,i.createElement)(M.PanelSpacingBody,{initialOpen:!1,blockProps:t},(0,i.createElement)(M.ColumnPaddingControl,{label:(0,k.__)("Paddings",h.i18n),setAttributes:a,attributes:t.attributes})),(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("Quotation Mark",h.i18n),id:"quotation",checked:l,onChange:e=>a({showQuote:e}),toggleOnSetAttributes:["quoteIcon","quoteColor",...(0,S.createResponsiveAttributeNames)("quote%sSize"),...(0,S.createResponsiveAttributeNames)("quote%sX"),...(0,S.createResponsiveAttributeNames)("quote%sY")],toggleAttributeName:"showQuote"},(0,i.createElement)(M.AdvancedToolbarControl,{label:(0,k.__)("Icon",h.i18n),multiline:!0,className:"ugb-blockquote__inspector__icon",controls:Object.values(x),value:r,onChange:e=>a({quoteIcon:e})}),(0,i.createElement)(M.ColorPaletteControl,{value:s,onChange:e=>a({quoteColor:e}),label:(0,k.__)("Color",h.i18n)}),(0,i.createElement)(H.n9,{attrNameTemplate:"quote%sSize",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Size",h.i18n),min:0,max:400,allowReset:!0,placeholder:"70"})),(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Opacity",h.i18n),value:c,onChange:e=>a({quoteOpacity:e}),min:0,max:1,step:.1,allowReset:!0,placeholder:"1"}),(0,i.createElement)(H.n9,{attrNameTemplate:"quote%sX",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Horizontal Position",h.i18n),min:-400,max:400,allowReset:!0,placeholder:"0"})),(0,i.createElement)(H.n9,{attrNameTemplate:"quote%sY",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AdvancedRangeControl,{label:(0,k.__)("Vertical Position",h.i18n),min:-400,max:400,allowReset:!0,placeholder:"0"}))),(0,i.createElement)(M.PanelAdvancedSettings,{title:(0,k.__)("Text",h.i18n),id:"text",hasToggle:!1},(0,i.createElement)(M.TypographyControlHelper,{attrNameTemplate:"text%s",setAttributes:a,blockAttributes:t.attributes}),(0,i.createElement)(M.ColorPaletteControl,{value:u,onChange:e=>a({textColor:e}),label:(0,k.__)("Text Color",h.i18n)}),(0,i.createElement)(H.n9,{attrNameTemplate:"Text%sAlign",setAttributes:a,blockAttributes:t.attributes},(0,i.createElement)(M.AlignButtonsControl,{label:(0,k.__)("Align",h.i18n),className:"ugb--help-tip-alignment-description"}))))}));const z=(0,O.compose)(D.FI,D.XQ,D.O0,(0,D.Q9)(),(0,D.lX)(["Text%sAlign"]),(0,D.OB)(L,{editorMode:!0}),(0,D.UY)([[".ugb-blockquote__item","column-background"],[".ugb-blockquote__quote","quotation"],[".ugb-blockquote__text","text"]]))((e=>{const{className:t,setAttributes:a}=e,{blockTag:n="",design:l="plain",shadow:r="",text:s="",showQuote:c=!0,quoteIcon:u="round-thin",quoteSize:g=70}=e.attributes,d=I(e),b=R()([t,"ugb-blockquote--v3",`ugb-blockquote--design-${l}`],(0,o.applyFilters)("stackable.blockquote.mainclasses",{"ugb-blockquote--small-quote":g<60},l,e)),m=R()(["ugb-blockquote__item"],(0,o.applyFilters)("stackable.blockquote.itemclasses",{[`ugb--shadow-${r}`]:d.containerBackground&&""!==r},e));return(0,i.createElement)(M.BlockContainer.Edit,{blockTag:n||"blockquote",className:b,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(H.Gc,{className:m,backgroundAttrName:"container%s",blockProps:e,showBackground:d.containerBackground},c&&x[u||"round-thin"].iconFunc({},{className:"ugb-blockquote__quote",width:g,height:g}),(0,i.createElement)("div",{className:"ugb-blockquote__content"},(0,i.createElement)(E.RichText,{className:"ugb-blockquote__text",value:s,onChange:e=>a({text:e}),placeholder:(0,S.descriptionPlaceholder)("long"),keepPlaceholderOnFocus:!0}))))})})),W=(0,O.compose)(D.FI,(0,D.OB)(L))((e=>{const{className:t}=e,{blockTag:a="",design:n="plain",shadow:l="",text:r="",showQuote:s=!0,quoteIcon:c="round-thin",quoteSize:u=70}=e.attributes,g=I(e),d=R()([t,"ugb-blockquote--v3",`ugb-blockquote--design-${n}`],(0,o.applyFilters)("stackable.blockquote.mainclasses",{"ugb-blockquote--small-quote":u<60},n,e)),b=R()(["ugb-blockquote__item"],(0,o.applyFilters)("stackable.blockquote.itemclasses",{[`ugb--shadow-${l}`]:g.containerBackground&&""!==l},e));return(0,i.createElement)(M.BlockContainer.Save,{blockTag:a||"blockquote",className:d,blockProps:e,render:()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(H.Gc,{className:b,backgroundAttrName:"container%s",blockProps:e,showBackground:g.containerBackground},s&&x[c||"round-thin"].iconFunc({},{className:"ugb-blockquote__quote",width:u,height:u}),(0,i.createElement)("div",{className:"ugb-blockquote__content"},(0,i.createElement)(E.RichText.Content,{tagName:"p",className:"ugb-blockquote__text",value:r}))))})})),q={design:{type:"string",default:"plain"},borderRadius:{type:"number",default:""},shadow:{type:"number",default:""},...(0,$.yA)("container%s"),...(0,S.createBorderAttributes)("column%s"),showQuote:{type:"boolean",default:!0},quoteIcon:{type:"string",default:"round-thin"},quoteOpacity:{type:"number",default:""},quoteColor:{type:"string",default:""},quoteSize:{type:"number",default:70},...(0,S.createAllCombinationAttributes)("quote%s%s",{type:"number",default:""},["","Tablet","Mobile"],["X","Y"]),text:{source:"html",selector:".ugb-blockquote__text",default:""},...(0,S.createTypographyAttributes)("text%s"),textColor:{type:"string",default:""},...(0,S.createResponsiveAttributes)("text%sAlign",{type:"string",default:""})},V=JSON.parse('{"name":"ugb/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable-v2","textdomain":"stackable-ultimate-gutenberg-blocks"}');var G=a(9467);const{name:j,...Z}=V,X={...Z,title:Z.title+" (v2)",icon:G.BlockquoteIcon,supports:{align:["center","wide","full"],inserter:!h.v2disabledBlocks.includes(j),anchor:!0},attributes:q,example:{attributes:{design:"basic",containerBackgroundCustomSizeUnit:"%",containerTabletBackgroundCustomSizeUnit:"%",containerMobileBackgroundCustomSizeUnit:"%",showQuote:!0,quoteIcon:"round-thin",quoteSize:70,text:"Description for this block. Use this space for describing your block. Any text will do. Description for this block.",textLineHeightUnit:"em",textTabletLineHeightUnit:"em",textMobileLineHeightUnit:"em",uniqueClass:"ugb-ceaa0fe",hideDesktop:!1,hideTablet:!1,hideMobile:!1,showBlockBackground:!1,blockBackgroundBackgroundCustomSizeUnit:"%",blockBackgroundTabletBackgroundCustomSizeUnit:"%",blockBackgroundMobileBackgroundCustomSizeUnit:"%",topSeparatorDesign:"wave-1",bottomSeparatorDesign:"wave-1",topSeparatorShadow:!0,bottomSeparatorShadow:!0}},deprecated:P,edit:z,save:W,modules:{"advanced-general":!0,"advanced-block-spacing":!0,"advanced-column-spacing":{columnGap:!1,paddings:!1},"advanced-custom-attributes":!0,"advanced-responsive":!0,"block-background":{importantBackgroundSize:!0},"block-separators":!0,"content-align":!0,"block-designs":!0,"container-link":!0,"custom-css":{default:(0,o.applyFilters)("stackable.blockquote.custom-css.default","")}}}},4071:(e,t,a)=>{"use strict";a.r(t),a.d(t,{name:()=>N,settings:()=>P});var n=a(8085),o=a(3882);(0,o.addFilter)("stackable.blog-posts.design.no-text-attributes","stackable/blog-posts",(e=>(0,n.omit)(e,["text"]))),(0,o.addFilter)("stackable.blog-posts.design.filtered-block-attributes","stackable/button",(e=>({...(0,n.omit)(e,["numberOfItems","order","orderBy","postType","taxonomyType","taxonomy","taxonomyFilterType","postOffset","postExclude","postInclude"])})));var i=a(2610),l=a(7545),r=a(4863),s=a.n(r),c=a(910);const u=e=>{const{design:t="basic",postType:a="post",showImage:n=!0,showTitle:i=!0,showCategory:l=!0,showExcerpt:r=!0,showMeta:s=!0,showReadmore:u=!0,showLoadMoreButton:g=!1,showPagination:d=!1}=e.attributes;return(0,o.applyFilters)("stackable.blog-posts.show",{columnBackground:!["basic","list"].includes(t),showBackgroundInItem:"vertical-card2"===t,showBackgroundInContent:["vertical-card","horizontal-card","image-card"].includes(t),borderRadius:!0,border:!["basic","list"].includes(t),shadow:!0,imageShadow:["basic","list"].includes(t),postType:c.isPro,imageHeight:"portfolio"!==t&&"portfolio2"!==t,imageWidth:"horizontal-card"===t||"list"===t,showCategory:"post"===a,imageAsBackground:["portfolio","portfolio2","image-card"].includes(t),imageOutsideContainer:["list","vertical-card","horizontal-card","image-card"].includes(t),imageSpacing:n&&["basic","list","vertical-card2"].includes(t),categorySpacing:l,titleSpacing:i,excerptSpacing:r,metaSpacing:s,readmoreSpacing:u,loadMoreSpacing:g,paginationSpacing:d,contentOrderStyles:"image-card"!==t},e)},g=e=>{const t=(0,l.__getValue)(e.attributes),{columnBackgroundColor:a="",design:n="basic",showReadmore:i=!0}=e.attributes,r=u(e),c=[];r.columnBackground||c.push({".ugb-blog-posts__featured-image":{borderRadius:(0,l.appendImportant)(t("borderRadius","%spx"))}});const{contentOrder:g=""}=e.attributes;g&&r.contentOrderStyles&&g.split(",").forEach(((e,t)=>{const a=0===t?1:3===t?10:t+3;c.push({[`.ugb-blog-posts__${e}`]:{order:(0,l.appendImportant)(a)}}),i&&"excerpt"===e&&c.push({".ugb-blog-posts__readmore":{order:(0,l.appendImportant)(a)}})}));const{columnPaddingUnit:d="px",tabletColumnPaddingUnit:b="px",mobileColumnPaddingUnit:m="px"}=e.attributes,p=(0,o.applyFilters)("stackable.blog-posts.spacing-paddings.selector","> .ugb-inner-block > .ugb-block-content > *",e),h=(0,o.applyFilters)("stackable.blog-posts.spacing-paddings.selector","> .ugb-inner-block > .ugb-block-content > .ugb-blog-posts__item",e);c.push({saveOnly:{desktopTablet:{[p]:(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${d}`),paddingBottom:t("columnPaddingBottom",`%s${d}`),paddingRight:t("columnPaddingRight",`%s${d}`),paddingLeft:t("columnPaddingLeft",`%s${d}`)})},tabletOnly:{[p]:(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${b}`),paddingRight:t("tabletColumnPaddingRight",`%s${b}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${b}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${b}`)})},mobile:{[p]:(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${m}`),paddingRight:t("mobileColumnPaddingRight",`%s${m}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${m}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${m}`)})}},editor:{desktopTablet:{[h]:(0,l.appendImportantAll)({paddingTop:t("columnPaddingTop",`%s${d}`),paddingBottom:t("columnPaddingBottom",`%s${d}`),paddingRight:t("columnPaddingRight",`%s${d}`),paddingLeft:t("columnPaddingLeft",`%s${d}`)})},tabletOnly:{[h]:(0,l.appendImportantAll)({paddingTop:t("tabletColumnPaddingTop",`%s${b}`),paddingRight:t("tabletColumnPaddingRight",`%s${b}`),paddingBottom:t("tabletColumnPaddingBottom",`%s${b}`),paddingLeft:t("tabletColumnPaddingLeft",`%s${b}`)})},mobile:{[h]:(0,l.appendImportantAll)({paddingTop:t("mobileColumnPaddingTop",`%s${m}`),paddingRight:t("mobileColumnPaddingRight",`%s${m}`),paddingBottom:t("mobileColumnPaddingBottom",`%s${m}`),paddingLeft:t("mobileColumnPaddingLeft",`%s${m}`)})}}});const{showImage:k=!0}=e.attributes;k&&r.imageHeight&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__featured-image img","image%sHeight","height","%spx",e.attributes,{important:!0})),k&&r.imageWidth&&"list"===n&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__item","image%sWidth","gridTemplateColumns","%spx minmax(0, 1fr)",e.attributes,{important:!0}));const{categoryHighlighted:_=!1,categoryColor:v="",showCategory:y=!0}=e.attributes;y&&(_?c.push({".ugb-blog-posts__category a":{backgroundColor:(0,l.appendImportant)(t("categoryColor")),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)("",t("categoryColor")))},".ugb-blog-posts__category a:hover":{opacity:t("categoryHoverColor")?void 0:.8,backgroundColor:(0,l.appendImportant)(t("categoryHoverColor")),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)("",t("categoryHoverColor")))}}):c.push({".ugb-blog-posts__category a":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(v,r.columnBackground&&a))},".ugb-blog-posts__category a:hover":{opacity:v&&!t("categoryHoverColor")?.8:void 0,color:(0,l.appendImportant)(t("categoryHoverColor"))}}),c.push({".ugb-blog-posts__category":{...(0,l.createTypographyStyles)("category%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("categoryAlign","%s !important")},tablet:{".ugb-blog-posts__category":{...(0,l.createTypographyStyles)("category%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("categoryTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__category":{...(0,l.createTypographyStyles)("category%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("categoryMobileAlign","%s !important")}}}));const{titleColor:f="",showTitle:C=!0}=e.attributes;C&&c.push({".ugb-blog-posts__title a":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(f,r.columnBackground&&a))},".ugb-blog-posts__title a:hover":{opacity:f&&!t("titleHoverColor")?.8:void 0,color:(0,l.appendImportant)(t("titleHoverColor"))},".ugb-blog-posts__title":{...(0,l.createTypographyStyles)("title%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("titleAlign","%s !important")},tablet:{".ugb-blog-posts__title":{...(0,l.createTypographyStyles)("title%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("titleTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__title":{...(0,l.createTypographyStyles)("title%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("titleMobileAlign","%s !important")}}});const{excerptColor:A="",showExcerpt:w=!0}=e.attributes;w&&c.push({".ugb-blog-posts__excerpt, .ugb-blog-posts__excerpt p":{...(0,l.createTypographyStyles)("excerpt%s","desktop",e.attributes,{importantSize:!0}),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(A,r.columnBackground&&a))},".ugb-blog-posts__excerpt":{textAlign:t("excerptAlign","%s !important")},tablet:{".ugb-blog-posts__excerpt, .ugb-blog-posts__excerpt p":{...(0,l.createTypographyStyles)("excerpt%s","tablet",e.attributes,{importantSize:!0})},".ugb-blog-posts__excerpt":{textAlign:t("excerptTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__excerpt, .ugb-blog-posts__excerpt p":{...(0,l.createTypographyStyles)("excerpt%s","mobile",e.attributes,{importantSize:!0})},".ugb-blog-posts__excerpt":{textAlign:t("excerptMobileAlign","%s !important")}}});const{metaColor:T="",showMeta:B=!0,showAuthor:x=!0,showDate:S=!0,showComments:E=!0}=e.attributes;B&&(x||S||E)&&c.push({".ugb-blog-posts__meta":{...(0,l.createTypographyStyles)("meta%s","desktop",e.attributes,{importantSize:!0}),color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(T,r.columnBackground&&a)),textAlign:t("metaAlign","%s !important")},tablet:{".ugb-blog-posts__meta":{...(0,l.createTypographyStyles)("meta%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("metaTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__meta":{...(0,l.createTypographyStyles)("meta%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("metaMobileAlign","%s !important")}}});const{readmoreColor:N=""}=e.attributes;return i&&c.push({".ugb-blog-posts__readmore a":{color:(0,l.appendImportant)((0,l.whiteIfDarkBlackIfLight)(N,r.columnBackground&&a))},".ugb-blog-posts__readmore a:hover":{opacity:N&&!t("readmoreHoverColor")?.8:void 0,color:(0,l.appendImportant)(t("readmoreHoverColor"))},".ugb-blog-posts__readmore":{...(0,l.createTypographyStyles)("readmore%s","desktop",e.attributes,{importantSize:!0}),textAlign:t("readmoreAlign","%s !important")},tablet:{".ugb-blog-posts__readmore":{...(0,l.createTypographyStyles)("readmore%s","tablet",e.attributes,{importantSize:!0}),textAlign:t("readmoreTabletAlign","%s !important")}},mobile:{".ugb-blog-posts__readmore":{...(0,l.createTypographyStyles)("readmore%s","mobile",e.attributes,{importantSize:!0}),textAlign:t("readmoreMobileAlign","%s !important")}}}),r.imageSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__featured-image","image%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.categorySpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__category","category%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.titleSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__title","title%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.excerptSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__excerpt","excerpt%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.metaSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__meta","meta%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),r.readmoreSpacing&&c.push(...(0,l.createResponsiveStyles)(".ugb-blog-posts__readmore","readmore%sBottomMargin","marginBottom","%spx",e.attributes,{important:!0})),s().all(c)};var d=a(7200),b=a(6635),m=a(1414),p=a(4184),h=a.n(p);const k=wp.date;var _=a(7537),v=a(8003);const y=wp.htmlEntities;var f=a(3284),C=a(3749);const A={dot:"·",space:" ",comma:",",dash:"—",pipe:"|"};(0,o.addFilter)("stackable.blog-posts.edit.layouts","default",(e=>[...e,{label:(0,v.__)("Basic",c.i18n),value:"basic",image:"dist/images/block-blog-posts-basic.e662046.png"},{label:(0,v.__)("List",c.i18n),value:"list",image:"dist/images/block-blog-posts-list.b2a5696.png"},{label:(0,v.__)("Portfolio",c.i18n),value:"portfolio",image:"dist/images/block-blog-posts-portfolio.8a3cb30.png",premium:!0},{label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",c.i18n),(0,v.__)("Portfolio",c.i18n),2),value:"portfolio2",image:"dist/images/block-blog-posts-portfolio2.e58a6fb.png",premium:!0},{label:(0,v.__)("Vertical Card",c.i18n),value:"vertical-card",image:"dist/images/block-blog-posts-vertical-card.406b764.png",premium:!0},{label:(0,v.__)("Horizontal Card",c.i18n),value:"horizontal-card",image:"dist/images/block-blog-posts-horizontal-card.c6e09ee.png",premium:!0},{label:(0,v.sprintf)((0,v._x)("%s %d","Nth Title",c.i18n),(0,v.__)("Vertical Card",c.i18n),2),value:"vertical-card2",image:"dist/images/block-blog-posts-vertical-card2.37ccf64.png",premium:!0},{label:(0,v.__)("Image Card",c.i18n),value:"image-card",image:"dist/images/block-blog-posts-image-card.4920b4e.png",premium:!0}])),(0,o.addFilter)("stackable.blog-posts.edit.inspector.layout.before","stackable/blog-posts",((e,t)=>{const{setAttributes:a}=t,{design:n="basic"}=t.attributes;return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(d.DesignPanelBody,{initialOpen:!0,selected:n,options:(0,o.applyFilters)("stackable.blog-posts.edit.layouts",[]),onChange:e=>a({design:e})},c.showProNotice&&(0,i.createElement)(d.ProControlButton,null)))})),(0,o.addFilter)("stackable.blog-posts.edit.inspector.style.before","stackable/blog-posts",((e,t)=>{const{setAttributes:a}=t,{columns:n=2,borderRadius:r="",shadow:s="",contentOrder:g="",numberOfItems:m=6,showImage:p=!0,showTitle:h=!0,showCategory:k=!0,showExcerpt:y=!0,showMeta:f=!0,showReadmore:C=!1,titleTag:A="",titleColor:w="",titleHoverColor:T="",orderBy:B="date",order:x="desc",postType:S="post",taxonomyType:E="category",taxonomy:N="",taxonomyFilterType:R="__in",imageSize:P="large",categoryHighlighted:I=!1,categoryColor:$="",categoryHoverColor:U="",excerptColor:F="",excerptLength:L=55,showAuthor:M=!0,showDate:H=!0,showComments:D=!0,metaColor:O="",metaSeparator:z="",readmoreColor:W="",readmoreHoverColor:q="",readmoreText:V=""}=t.attributes,G=u(t),j=(0,v.__)("Category",c.i18n),Z=(0,v.__)("Title",c.i18n),X=(0,v.__)("Meta",c.i18n),Y=(0,v.__)("Excerpt",c.i18n);return(0,i.createElement)(i.Fragment,null,e,(0,i.createElement)(d.PanelAdvancedSettings,{title:(0,v.__)("General",c.i18n),initialOpen:!0},(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Columns",c.i18n),value:n,onChange:e=>a({columns:e}),min:1,max:4,className:"ugb--help-tip-general-columns",default:2}),!G.columnBackground&&G.borderRadius&&(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Border Radius",c.i18n),value:r,onChange:e=>a({borderRadius:e}),min:0,max:50,allowReset:!0,placeholder:"12",className:"ugb--help-tip-general-border-radius"}),!G.columnBackground&&G.shadow&&(0,i.createElement)(d.AdvancedRangeControl,{label:(0,v.__)("Shadow / Outline",c.i18n),value:s,onChange:e=>a({shadow:e}),min:0,max:9,allowReset:!0,placeholder:"3",className:"ugb--help-tip-general-shadow"}),(0,i.createElement)(d.AdvancedSelectControl,{label:(0,v.__)("Content Order",c.i18n),options:[{label:(0,v.__)("Default",c.i18n),value:""},{label:`${j} → ${Z} → ${X} → ${Y}`,value:"category,title,meta,excerpt"},{label:`${j} → ${Z} → ${Y} → ${X}`,value:"category,title,excerpt,meta"},{label:`${Z} → ${X} → ${Y} → ${j}`,value:"title,meta,excerpt,category"},{label