admin_welcome.js 53.8 KB
/*! For license information please see admin_welcome.js.LICENSE.txt */
(()=>{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 i=s.apply(null,a);i&&e.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var l in a)o.call(a,l)&&a[l]&&e.push(l);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 i,l,r=s(e),c=1;c<arguments.length;c++){for(var m in i=Object(arguments[c]))a.call(i,m)&&(r[m]=i[m]);if(t){l=t(i);for(var u=0;u<l.length;u++)o.call(i,l[u])&&(r[l[u]]=i[l[u]])}}return r}},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 i={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l={};function r(e,t,a){this.props=e,this.context=t,this.refs=l,this.updater=a||i}function c(){}function m(e,t,a){this.props=e,this.context=t,this.refs=l,this.updater=a||i}r.prototype.isReactComponent={},r.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")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},c.prototype=r.prototype;var u=m.prototype=new c;u.constructor=m,o(u,r.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,"./carousel/block.json":8744,"./column/block.json":8325,"./columns/block.json":7317,"./count-up/block.json":9730,"./countdown/block.json":8501,"./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,"./horizontal-scroller/block.json":1433,"./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,"./tab-content/block.json":2283,"./tab-labels/block.json":7990,"./table-of-contents/block.json":3590,"./tabs/block.json":3573,"./team-member/block.json":8511,"./testimonial/block.json":8227,"./text/block.json":7921,"./timeline/block.json":6836,"./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":3,"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","stackable/innerBlockOrientation"],"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":3,"name":"stackable/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/button-group","title":"Button Group","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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/icon-button-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":3,"name":"stackable/button","title":"Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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":3,"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","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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"}')},8744:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/carousel","title":"Carousel","description":"A carousel slider.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Slider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/carousel-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8325:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/column","title":"Inner Column","description":"A single column with advanced layout options.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Section rows"],"parent":["stackable/columns","stackable/feature","stackable/feature-grid","stackable/horizontal-scroller","stackable/tab-content"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},7317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/columns","title":"Columns","description":"Multiple columns with advanced layout options.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Section rows","Container"],"providesContext":{"stackable/innerBlockOrientation":"columnJustify"},"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":3,"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","stackable/innerBlockOrientation"],"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"}')},8501:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/countdown","title":"Countdown","description":"Display a countdown timer on your website.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Timer"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/countdown-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6914:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/design-library","title":"Design Library","description":"Choose a layout or block from the Stackable Design Library.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/divider","title":"Divider","description":"Add a pause between your content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Horizontal Rule","HR"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},6705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"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","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"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":3,"name":"stackable/feature","title":"Feature","description":"Display a product feature or a service in a large area.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/heading","title":"Heading","description":"Introduce new sections of your content in style.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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"}')},1433:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/horizontal-scroller","title":"Horizontal Scroller","description":"A slider that scrolls horizontally.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Slider","Carousel"],"providesContext":{"stackable/columnFit":"columnFit"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/horizontal-scroller-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},285:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"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","stackable/innerBlockOrientation"],"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":3,"name":"stackable/icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/icon-label","title":"Icon Label","description":"An Icon and Heading paired together.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"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":3,"name":"stackable/image","title":"Image","description":"An image with advanced controls to make a visual statement.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/map","title":"Map","description":"Embedded Google Map with advanced controls.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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":3,"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","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"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":3,"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","stackable/innerBlockOrientation"],"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":3,"name":"stackable/pricing-box","title":"Pricing Box","description":"Display the different pricing tiers of your business.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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":3,"name":"stackable/progress-bar","title":"Progress Bar","description":"Visualize a progress value or percentage in a bar.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/progress-circle","title":"Progress Circle","description":"Visualize a progress value or percentage in a circle.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/separator","title":"Separator","description":"A fancy separator to be placed between content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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":3,"name":"stackable/spacer","title":"Spacer","description":"Sometimes you just need some space.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},8381:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"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","stackable/innerBlockOrientation"],"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"}')},2283:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/tab-content","title":"Tab Content","description":"A wrapper for tab panels.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/tabPanelEffect"],"keywords":[],"parent":["stackable/tabs"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},7990:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/tab-labels","title":"Tab Labels","description":"Create interactive navigation within tabs.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/initialTabOpen","stackable/tabOrientation"],"keywords":[],"parent":["stackable/tabs"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},3590:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/table-of-contents","title":"Table of Contents","description":"Automatically generated table of contents based on Heading blocks.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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"}')},3573:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/tabs","title":"Tabs","description":"Organize and display content in multiple tabs.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["toggle"],"providesContext":{"stackable/initialTabOpen":"initialTabOpen","stackable/tabOrientation":"tabOrientation","stackable/tabPanelEffect":"tabPanelEffect"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/tabs-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8511:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"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","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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":3,"name":"stackable/testimonial","title":"Testimonial","description":"Showcase what your users say about your product or service.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"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":3,"name":"stackable/text","title":"Text","description":"Start with the building block of all page layouts.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"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"}')},6836:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/timeline","title":"Timeline","description":"Show events in chronological order","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["history","milestone"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/timeline-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7562:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"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","stackable/innerBlockOrientation"],"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),(()=>{"use strict";const e=wp.element,t=wp.ajax;function o(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}const s=wp.components,n=t=>e.createRoot?(0,e.createRoot)(t):{render:e=>wp.element.render(e,t),unmount:()=>wp.element.unmountComponentAtNode(t)},i=stackable;function l(){return l=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},l.apply(this,arguments)}o((()=>{const a=document.querySelector(".s-news-box-content");a&&""===a.innerHTML&&(n(a).render((0,e.createElement)("div",null,(0,e.createElement)(s.Spinner,null))),(0,t.send)("stackable_news_feed_ajax",{success:e=>{a.innerHTML=e},error:e=>{alert(e)},data:{nonce:i.nonceNews}}))})),a(7294);const r=wp.i18n,c=wp.api,m=wp.hooks;var u=a(4184),p=a.n(u);const d=lodash;let b=1;const k=t=>{const[a]=(0,e.useState)("ugb-admin-setting-"+b++),o=p()(["ugb-admin-setting",t.className],{[`ugb-admin-setting--${t.size}`]:t.size});return(0,e.createElement)("div",{className:o,id:a},(0,e.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:a,onClick:t.onClick},!!t.label&&(0,e.createElement)("span",{className:"ugb-admin-setting__label"},t.label),(0,e.createElement)("div",{className:"ugb-admin-setting__field"},t.children)),t.help&&(0,e.createElement)("p",{className:"ugb-admin-setting__help"},t.help))};k.defaultProps={label:"",onClick:()=>{}};const g=k,_=t=>{const a=(0,e.createRef)();return(0,e.createElement)(g,l({onClick:e=>{t.onChange(!t.value),e.preventDefault(),a.current.focus()}},t,{className:p()(t.className,"ugb-admin-toggle-setting")}),(0,e.createElement)("button",{ref:a,className:p()("ugb-admin-toggle-setting__button",{"ugb-admin-toggle-setting__button--enabled":!!t.value}),type:"button",role:"switch","aria-checked":!!t.value,onClick:e=>{t.onChange(!t.value),e.preventDefault(),e.stopPropagation()},style:{minWidth:t.width||void 0},disabled:t.isDisabled?"disabled":""}),(0,e.createElement)("span",{className:"ugb-admin-toggle-setting__label"},(0,e.createElement)("span",{style:{visibility:t.value?"visible":"hidden"}},t.enabled),(0,e.createElement)("span",{style:{visibility:t.value?"hidden":"visible"}},t.disabled)))};_.defaultProps={label:"",value:!1,placeholder:"",onChange:()=>{},disabled:(0,r.__)("Disabled",i.i18n),enabled:(0,r.__)("Enabled",i.i18n),width:"",isDisabled:!1};const y=_,h=t=>{const a=(0,e.createRef)();return(0,e.createElement)(g,l({onClick:e=>{e.preventDefault(),a.current.focus()}},t),(0,e.createElement)("input",{ref:a,className:"ugb-admin-text-setting",type:t.type,value:t.value,placeholder:t.placeholder,onChange:e=>{t.onChange(e.target.value),e.preventDefault(),e.stopPropagation()}}),t.children)};h.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:()=>{}};const w=h,v=function(t){return(0,e.createElement)("svg",l({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M7 17L17 7",stroke:"url(#arrow-up-right_svg__paint0_linear_285_198)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 7h10v10",stroke:"url(#arrow-up-right_svg__paint1_linear_285_198)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"arrow-up-right_svg__paint0_linear_285_198",x1:10.311,y1:3.071,x2:20.414,y2:11.96,gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#EE006B"}),(0,e.createElement)("stop",{offset:1,stopColor:"#B300BE"})),(0,e.createElement)("linearGradient",{id:"arrow-up-right_svg__paint1_linear_285_198",x1:10.311,y1:3.071,x2:20.414,y2:11.96,gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#EE006B"}),(0,e.createElement)("stop",{offset:1,stopColor:"#B300BE"}))))},f=[{title:(0,r.__)("Tutorials",i.i18n),subtitle:(0,r.__)("Get to know the plugin and start your journey with our brand new Stackable Courses.",i.i18n),link:"https://wpstackable.com/learn/?utm_source=plugin&utm_medium=getting_started&utm_campaign=tutorial_button",icon:(0,e.createElement)((function(t){return(0,e.createElement)("svg",l({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2V3zM22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7V3z",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}),null)},{title:(0,r.__)("Documentation",i.i18n),subtitle:(0,r.__)("Visit our knowledge base for troubleshooting, guides, FAQs and updates.",i.i18n),link:"https://docs.wpstackable.com/",icon:(0,e.createElement)((function(t){return(0,e.createElement)("svg",l({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M14 2v6h6",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M16 13H8M16 17H8M10 9H8",stroke:"#000",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}),null)},{title:(0,r.__)("Community",i.i18n),subtitle:(0,r.__)("Join our very active Stackable Community on Facebook.",i.i18n),link:"https://www.facebook.com/groups/wpstackable/",icon:(0,e.createElement)((function(t){return(0,e.createElement)("svg",l({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2M12 11a4 4 0 100-8 4 4 0 000 8z",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}),null)}],x=[{title:(0,r.__)("The Basics of Stackable Blocks",i.i18n),subtitle:(0,r.__)("Learn how to personalize and tailor Stackable Blocks to match your website's unique style and design.",i.i18n),src:"https://www.youtube.com/embed/GsQxH_gDp1A",url:"#"},{title:(0,r.__)("Flexbox Controls",i.i18n),subtitle:(0,r.__)("Explore the powerful Flexbox controls in Stackable that allow you to effortlessly create dynamic and responsive layouts.",i.i18n),src:"https://www.youtube.com/embed/73N9uXnpUJE",url:"#"},{title:(0,r.__)("Introduction to Hover Styles",i.i18n),subtitle:(0,r.__)("Discover the exciting world of hover styles in Stackable and learn how to add interactive and engaging effects to your website.",i.i18n),src:"https://www.youtube.com/embed/6vSxPN3kOWY",url:"#"},{title:(0,r.__)("How to Use Image Settings",i.i18n),subtitle:(0,r.__)("Master the art of optimizing and enhancing images using Stackable's intuitive image settings for a visually captivating website.",i.i18n),src:"https://www.youtube.com/embed/SS60OM8hQBo",url:"#"},{title:(0,r.__)("Introduction to the Design Library",i.i18n),subtitle:(0,r.__)("Dive into the fundamentals of the Stackable Design Library and learn how to streamline your website development process with ease.",i.i18n),src:"https://www.youtube.com/embed/zJBQ7CRgzHI",url:"#"},{title:(0,r.__)("All About Typography in Stackable",i.i18n),subtitle:(0,r.__)("Unlock the full potential of typography in Stackable and gain insights on how to create visually stunning and impactful text designs.",i.i18n),src:"https://www.youtube.com/embed/dvISiVMmPDQ",url:"#"}],E=t=>{let{title:a,subtitle:o,link:s,icon:n}=t;return(0,e.createElement)("a",{href:s,className:"s-card s-card-link",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{className:"s-icon-wrapper"}," ",n," "),(0,e.createElement)("h3",{className:"s-card-title"}," ",a," "),(0,e.createElement)("p",{className:"s-card-subtitle"}," ",o," "),(0,e.createElement)("div",{className:"s-bottom-icon-wrapper"}," ",(0,e.createElement)(v,null)," "))},S=t=>{let{title:a,subtitle:o,src:s}=t;return(0,e.createElement)("div",{className:"s-card"},(0,e.createElement)("div",{className:"s-video-wrapper s-card-top"},(0,e.createElement)("iframe",{className:"s-video",src:s,title:a,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;",allowFullScreen:!0})),(0,e.createElement)("h3",{className:"s-card-title"}," ",a," "),(0,e.createElement)("p",{className:"s-card-subtitle"}," ",o," "))},O=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"s-body"},(0,e.createElement)("div",{className:"s-getting-started__centered"},(0,e.createElement)("h2",{className:"title"}," ",(0,r.__)("Unleash the Full Potential of the WordPress Block Editor by Turning It into a Page Builder",i.i18n)," "),(0,e.createElement)("p",{className:"subtitle"},(0,r.__)("Learn the essentials in just a few minutes by watching this video. Scroll down to see more quick tutorials.",i.i18n)," "),(0,e.createElement)("div",{className:"s-video-wrapper s-getting-started-video"},(0,e.createElement)("iframe",{className:"s-video",src:"https://www.youtube.com/embed/WP2LHxGulps",title:(0,r.__)("Getting Started",i.i18n),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;",allowFullScreen:!0})),(0,e.createElement)("div",{className:"s-button-container"},(0,e.createElement)("a",{href:"/wp-admin/post-new.php?post_type=page",target:"_new",className:"s-button s-secondary-button uppercase"},(0,r.__)("Create a new page",i.i18n)))),(0,e.createElement)("div",{className:"s-getting-started__section"},(0,e.createElement)("div",{className:"s-card-container s-card-general"},f.map(((t,a)=>(0,e.createElement)(E,l({},t,{key:a})))))),(0,e.createElement)("div",{className:"s-getting-started__section"},(0,e.createElement)("div",{className:"s-card-header"},(0,e.createElement)("h2",null," ",(0,r.__)("Learn the essentials",i.i18n)," ")),(0,e.createElement)("div",{className:"s-card-container s-card-essentials"},x.map(((t,a)=>(0,e.createElement)(S,l({},t,{key:a})))))),(0,e.createElement)("div",{className:"s-getting-started__footer-banner"},(0,e.createElement)("div",{className:"s-banner-wrapper"},(0,e.createElement)("div",{className:"s-banner-content"},(0,e.createElement)("h2",null," ",(0,r.__)("Check out our library of tutorials and guides",i.i18n)," ")),(0,e.createElement)("div",{className:"s-button-container"},(0,e.createElement)("a",{href:"https://wpstackable.com/learn/?utm_source=plugin&utm_medium=getting_started&utm_campaign=tutorial_button",target:"_blank",rel:"noreferrer",className:"s-button s-secondary-button"},(0,r.__)("Go to Stackable Learn",i.i18n))))))),C=(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,d.sortBy)(t[e],"name")})),t})(a(9737)),I=()=>(0,m.applyFilters)("stackable.settings.blocks",C),N=[{id:"essential",label:(0,r.__)("Essential Blocks",i.i18n),Icon:function(t){return(0,e.createElement)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#47a0dd",strokeWidth:2.5,strokeLinejoin:"round"},t),(0,e.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,e.createElement)("path",{d:"M11.333 13.333a2 2 0 100-4 2 2 0 100 4z"}),(0,e.createElement)("path",{d:"M28 20l-6.667-6.667L6.667 28",strokeLinecap:"round"}))},description:(0,r.__)("All the necessary building blocks you need to design anything.",i.i18n)},{id:"special",label:(0,r.__)("Special Blocks",i.i18n),Icon:function(t){return(0,e.createElement)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#e2735d",strokeWidth:2.5,strokeLinejoin:"round"},t),(0,e.createElement)("path",{d:"M30.667 9.333L21.333 16l9.333 6.667V9.333z"}),(0,e.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"}))},description:(0,r.__)("Blocks with special functionality that will allow you to create distinctive designs.",i.i18n)},{id:"section",label:(0,r.__)("Section Blocks",i.i18n),Icon:function(t){return(0,e.createElement)("svg",l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#eabd59",strokeWidth:2.5,strokeLinejoin:"round"},t),(0,e.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,e.createElement)("path",{d:"M4 12h24M12 28V12",strokeLinecap:"round"}))},description:(0,r.__)("Use these blocks act as templates to help you build sections effortlessly.",i.i18n)}],B=()=>{const t=I();return(0,e.createElement)(e.Fragment,null,N.map((a=>{let{id:o,label:s}=a;return(0,e.createElement)("div",{className:"s-getting-started-blocks-wrapper",key:o},(0,e.createElement)("h3",null,s),(0,e.createElement)("div",{className:"s-getting-started-blocks"},t[o].map(((t,a)=>(0,e.createElement)("div",{key:a,className:"s-box"},(0,e.createElement)("h4",null,(0,r.__)(t.title,i.i18n)),(0,e.createElement)("p",null,(0,r.__)(t.description,i.i18n)),t["stk-demo"]&&(0,e.createElement)("a",{href:t["stk-demo"],target:"_example"},(0,r.__)("See example",i.i18n)))))))})))},j=()=>{const t=I(),[a,o]=(0,e.useState)(!1),[n,l]=(0,e.useState)([]);(0,e.useEffect)((()=>{c.loadPromise.then((()=>{(new c.models.Settings).fetch().then((e=>{l(e.stackable_disabled_blocks)}))}))}),[]);const m=(e,t)=>{o(t),new c.models.Settings({stackable_disabled_blocks:e}).save().then((()=>o(!1)))},u=e=>()=>{const a=[...n];t[e].forEach((e=>{a.includes(e.name)||a.push(e.name)})),l(a),m(a,e)},d=(0,e.useCallback)(((e,t)=>{let a=null;a=n.includes(e)?n.filter((t=>t!==e)):[...n,e],l(a),m(a,t)}),[l,n]);return(0,e.createElement)(e.Fragment,null,N.map((o=>{let{id:c,label:b,Icon:k}=o;const g=p()(["s-box-block__title",`s-box-block__title--${c}`]);return(0,e.createElement)("div",{className:"s-box s-box-block",key:c},(0,e.createElement)("h3",{className:g},k&&(0,e.createElement)(k,{height:"20",width:"20"}),(0,e.createElement)("span",null,b)),(0,e.createElement)("div",{className:"s-settings-header"},a===c&&(0,e.createElement)(s.Spinner,null),(0,e.createElement)("button",{onClick:(_=c,()=>{let e=[...n];t[_].forEach((t=>{e=e.filter((e=>e!==t.name))})),l(e),m(e,_)}),className:"button button-large button-link"},(0,r.__)("Enable All",i.i18n)),(0,e.createElement)("button",{onClick:u(c),className:"button button-large button-link"},(0,r.__)("Disable All",i.i18n))),(0,e.createElement)("div",{className:"s-settings-grid"},t[c].map(((t,a)=>{const o=n.includes(t.name),s=t["stk-demo"]&&(0,e.createElement)("a",{href:t["stk-demo"],target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation()},(0,r.__)("view demo",i.i18n)),l=(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,r.__)(t.title,i.i18n))," ",s);return(0,e.createElement)(y,{key:a,label:l,value:!o,onChange:()=>{d(t.name,c)},size:"small",disabled:(0,r.__)("Disabled",i.i18n),enabled:(0,r.__)("Enabled",i.i18n)})}))));var _})))},T=()=>{const[t,a]=(0,e.useState)({}),[o,n]=(0,e.useState)(!1),[l,m]=(0,e.useState)(null);return(0,e.useEffect)((()=>{c.loadPromise.then((()=>{(new c.models.Settings).fetch().then((e=>{var t;a((t=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"].reduce(((e,a)=>(t&&t.hasOwnProperty(a)&&(e[a]=t[a]),e)),{})))}))}))}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,r.__)("Design Library",i.i18n),value:t.stackable_enable_design_library,onChange:e=>{n(!0),new c.models.Settings({stackable_enable_design_library:e}).save().then((()=>n(!1))),a({...t,stackable_enable_design_library:e})},help:(0,r.__)("Adds a button on the top of the editor which gives access to a collection of pre-made block designs.",i.i18n)}),(0,e.createElement)(y,{label:(0,r.__)("Optimize Inline CSS",i.i18n),value:t.stackable_optimize_inline_css,onChange:e=>{n(!0),new c.models.Settings({stackable_optimize_inline_css:e}).save().then((()=>n(!1))),a({...t,stackable_optimize_inline_css:e})},help:(0,r.__)("Optimize inlined CSS styles. If this is enabled, similar selectors will be combined together, helpful if you changed Block Defaults.",i.i18n)}),(0,e.createElement)(y,{label:(0,r.__)("Navigation Panel",i.i18n),value:t.stackable_enable_navigation_panel,onChange:e=>{n(!0),new c.models.Settings({stackable_enable_navigation_panel:e}).save().then((()=>n(!1))),a({...t,stackable_enable_navigation_panel:e})},help:(0,r.__)("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)}),(0,e.createElement)(y,{label:(0,r.__)("Auto-Collapse Panels",i.i18n),value:t.stackable_auto_collapse_panels,onChange:e=>{n(!0),new c.models.Settings({stackable_auto_collapse_panels:e}).save().then((()=>n(!1))),a({...t,stackable_auto_collapse_panels:e})},help:(0,r.__)("Collapse other inspector panels when opening another, keeping only one open at a time.",i.i18n)}),(0,e.createElement)(y,{label:(0,r.__)("Block Linking (Beta)",i.i18n),value:t.stackable_enable_block_linking,onChange:e=>{n(!0),new c.models.Settings({stackable_enable_block_linking:e}).save().then((()=>n(!1))),a({...t,stackable_enable_block_linking:e})},help:(0,e.createElement)(e.Fragment,null,(0,r.__)("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,e.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/452-how-to-use-block-linking"},(0,r.__)("Learn more",i.i18n)))}),(0,e.createElement)(w,{label:(0,r.__)("Nested Block Width",i.i18n),value:t.stackable_block_default_width,type:"text",onChange:e=>{clearTimeout(l),a({...t,stackable_block_default_width:e}),m(setTimeout((()=>{n(!0),new c.models.Settings({stackable_block_default_width:e}).save().then((()=>n(!1)))}),400))},help:(0,r.__)("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,e.createElement)(w,{label:(0,r.__)("Nested Wide Block Width",i.i18n),value:t.stackable_block_wide_width,type:"text",onChange:e=>{clearTimeout(l),a({...t,stackable_block_wide_width:e}),m(setTimeout((()=>{n(!0),new c.models.Settings({stackable_block_wide_width:e}).save().then((()=>n(!1)))}),400))},help:(0,r.__)("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,e.createElement)(w,{label:(0,r.__)("Google Maps API Key",i.i18n),value:t.stackable_google_maps_api_key,type:"text",onChange:e=>{clearTimeout(l),a({...t,stackable_google_maps_api_key:e}),m(setTimeout((()=>{n(!0),new c.models.Settings({stackable_google_maps_api_key:e}).save().then((()=>n(!1)))}),400))},help:(0,e.createElement)(e.Fragment,null,(0,r.__)("Adding a Google API Key enables additional features of the Stackable Map Block.",i.i18n)," ",(0,e.createElement)("a",{href:"https://docs.wpstackable.com/article/483-how-to-use-stackable-map-block#api-key",target:"_blank",rel:"noreferrer"},(0,r.__)("Learn more",i.i18n)))}),o&&(0,e.createElement)("div",{className:"s-absolute-spinner"},(0,e.createElement)(s.Spinner,null)))},q=()=>{const[t,a]=(0,e.useState)(""),[o,n]=(0,e.useState)(""),[l,m]=(0,e.useState)(!1),[u,p]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{p(!0),c.loadPromise.then((()=>{(new c.models.Settings).fetch().then((e=>{const t=e.stackable_dynamic_breakpoints;t&&(a(t.tablet||""),n(t.mobile||"")),m(!0),p(!1)}))}))}),[]),(0,e.useEffect)((()=>{if(l){const e=setTimeout((()=>{p(!0),new c.models.Settings({stackable_dynamic_breakpoints:{tablet:t,mobile:o}}).save().then((()=>p(!1)))}),400);return()=>clearTimeout(e)}}),[t,o,l]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",null,(0,e.createElement)(w,{label:(0,r.__)("Tablet Breakpoint",i.i18n),type:"number",value:t,onChange:e=>a(e),placeholder:"1024"}," px"),(0,e.createElement)(w,{label:(0,r.__)("Mobile Breakpoint",i.i18n),type:"number",value:o,onChange:e=>n(e),placeholder:"768"}," px")),u&&(0,e.createElement)("div",{className:"s-absolute-spinner"},(0,e.createElement)(s.Spinner,null)))},V=()=>{const[t,a]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{c.loadPromise.then((()=>{(new c.models.Settings).fetch().then((e=>{a(!!e.stackable_global_force_typography)}))}))}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,r.__)("Force Typography Styles",i.i18n),value:t,onChange:e=>{new c.models.Settings({stackable_global_force_typography:e}).save(),a(e)},disabled:(0,r.__)("Not forced",i.i18n),enabled:(0,r.__)("Force styles",i.i18n)}))},P=t=>{const[a,o]=(0,e.useState)(!1),[n,l]=(0,e.useState)(!1),[m,u]=(0,e.useState)(!1),[p,d]=(0,e.useState)(!1),[b,k]=(0,e.useState)(!1),[g,_]=(0,e.useState)(!1);(0,e.useEffect)((()=>{_(!0),c.loadPromise.then((()=>{(new c.models.Settings).fetch().then((e=>{o("1"===e.stackable_help_tooltip_disabled),l("1"===e.stackable_v2_editor_compatibility),u("1"===e.stackable_v2_editor_compatibility_usage),d("1"===e.stackable_v2_frontend_compatibility),k("1"===e.stackable_show_pro_notices),_(!1)}))}))}),[]);const y=e=>{_(!0),new c.models.Settings(e).save().then((()=>_(!1)))};return(0,e.createElement)("div",null,t.showProNoticesOption&&(0,e.createElement)(s.CheckboxControl,{label:(0,r.__)('Show "Go premium" notices',i.i18n),checked:b,onChange:e=>{y({stackable_show_pro_notices:e?"1":""}),k(e)}}),(0,e.createElement)(s.CheckboxControl,{label:(0,r.__)("Don't show help video tooltips",i.i18n),checked:a,onChange:e=>{y({stackable_help_tooltip_disabled:e?"1":""}),o(e)}}),(0,e.createElement)("h3",null,(0,r.__)("🏠 Migration Settings",i.i18n)),(0,e.createElement)("p",null,(0,r.__)("Migrating from version 2 to version 3?",i.i18n)," ",(0,e.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,r.__)("Learn more about migration and the settings below",i.i18n))),(0,e.createElement)(s.CheckboxControl,{label:(0,r.__)("Load version 2 blocks in the editor",i.i18n),checked:n,onChange:e=>{const t={stackable_v2_editor_compatibility:e?"1":""};e&&(t.stackable_v2_editor_compatibility_usage="",u(!1)),y(t),l(e)}}),(0,e.createElement)(s.CheckboxControl,{label:(0,r.__)("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="",l(!1)),y(t),u(e)}}),(0,e.createElement)(s.CheckboxControl,{disabled:n||m,label:(0,r.__)("Load version 2 frontend block stylesheet and scripts for backward compatibility",i.i18n),checked:n||m||p,onChange:e=>{y({stackable_v2_frontend_compatibility:e?"1":""}),d(e)}}),g&&(0,e.createElement)("div",{className:"ugb--saving-wrapper"},(0,e.createElement)(s.Spinner,null)))};P.defaultProps={showProNoticesOption:!1},o((()=>{document.querySelector(".s-getting-started__block-list")&&n(document.querySelector(".s-getting-started__block-list")).render((0,e.createElement)(B,null)),document.querySelector(".s-settings-wrapper")&&n(document.querySelector(".s-settings-wrapper")).render((0,e.createElement)(j,null)),document.querySelector(".s-other-options-wrapper")&&n(document.querySelector(".s-other-options-wrapper")).render((0,e.createElement)(P,{showProNoticesOption:i.showProNoticesOption})),document.querySelector(".s-editor-settings")&&n(document.querySelector(".s-editor-settings")).render((0,e.createElement)(T,null)),document.querySelector(".s-dynamic-breakpoints")&&n(document.querySelector(".s-dynamic-breakpoints")).render((0,e.createElement)(q,null)),document.querySelector(".s-global-settings")&&n(document.querySelector(".s-global-settings")).render((0,e.createElement)(V,null)),document.querySelector(".s-getting-started__body")&&n(document.querySelector(".s-getting-started__body")).render((0,e.createElement)(O,null))}))})()})();