admin_welcome.js 50.6 KB
/*! For license information please see admin_welcome.js.LICENSE.txt */
(()=>{var e={4184:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var l=s.apply(null,o);l&&e.push(l)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var i in o)a.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(o=function(){return s}.apply(t,[]))||(e.exports=o)}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=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={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).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]))o.call(l,m)&&(c[m]=l[m]);if(t){i=t(l);for(var u=0;u<i.length;u++)a.call(l,i[u])&&(c[i[u]]=l[i[u]])}}return c}},2408:(e,t,o)=>{"use strict";var a=o(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,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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,o){this.props=e,this.context=t,this.refs=i,this.updater=o||l}function r(){}function m(e,t,o){this.props=e,this.context=t,this.refs=i,this.updater=o||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,a(u,c.prototype),u.isPureReactComponent=!0;Object.prototype.hasOwnProperty},7294:(e,t,o)=>{"use strict";o(2408)},9737:(e,t,o)=>{var a={"./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,"./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,"./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 o(t)}function n(e){if(!o.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},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","stackable/horizontal-scroller"],"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"}')},8501:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/countdown","title":"Countdown","description":"Display a countdown timer on your website.","category":"stackable","usesContext":["postId","postType","queryId"],"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('{"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"}')},1433:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":2,"name":"stackable/horizontal-scroller","title":"Horizontal Scroller","description":"A slider that scrolls horizontally.","category":"stackable","usesContext":["postId","postType","queryId"],"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":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 o(a){var s=t[a];if(void 0!==s)return s.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};(()=>{"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},e.apply(this,arguments)}o.d(a,{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}}))})),o(7294);const c=function(o){return(0,t.createElement)("svg",e({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#3ca540",strokeWidth:7,strokeLinecap:"round",strokeLinejoin:"round"},o),(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=o(4184),m=o.n(r);let u=1;const d=e=>{const[o]=(0,t.useState)("ugb-admin-setting-"+u++),a=m()(["ugb-admin-setting"],{[`ugb-admin-setting--${e.size}`]:e.size});return(0,t.createElement)("div",{className:a,id:o},(0,t.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:o,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=o=>{const a=(0,t.createRef)();return(0,t.createElement)(p,e({onClick:e=>{o.onChange(!o.value),e.preventDefault(),a.current.focus()}},o),(0,t.createElement)("button",{ref:a,className:"ugb-admin-toggle-setting__button",type:"button",role:"switch","aria-checked":!!o.value,onClick:e=>{o.onChange(!o.value),e.preventDefault(),e.stopPropagation()},style:{minWidth:o.width||void 0},disabled:o.isDisabled?"disabled":""},(0,t.createElement)("span",null,o.disabled),(0,t.createElement)("span",null,o.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[o,a]=(0,t.useState)(w);(0,t.useEffect)((()=>{location.hash=`step-${o}`}),[o]);let s=(0,g.applyFilters)("stackable.welcome-wizard.steps",S);i.isPro||(s=s.filter((e=>!e.isPro)));const n=(null===(e=s[o-1])||void 0===e?void 0:e.component)||null;return(0,t.createElement)("div",{className:`s-welcome-wizard__wrapper s-welcome-wizard--step-${o}`},(0,t.createElement)(E,{steps:s.filter((e=>{let{id:t}=e;return"done"!==t})),step:o}),n&&(0,t.createElement)(n,null),o!==s.length&&(0,t.createElement)("div",{className:"s-welcome-wizard__buttons"},o>1&&(0,t.createElement)("button",{className:"s-getting-started__button secondary",onClick:()=>a(o-1)},(0,b.__)("Previous",i.i18n)),(0,t.createElement)("button",{className:"s-getting-started__button primary",onClick:()=>{o===s.length?location.search="?page=stackable-getting-started":a(o+1)}},1===o?(0,b.__)("Get Started",i.i18n):o===s.length?(0,b.__)("Finish",i.i18n):(0,b.__)("Next / Skip",i.i18n))),o>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:o,steps:a}=e,s=m()(["s-welcome-wizard__steps",`s-welcome-wizard__steps--num-${a.length}`]);return(0,t.createElement)("div",{className:s},a.map(((e,a)=>{const s=m()("s-welcome-wizard__step",{"s-welcome-wizard__step--active":o>=a+1}),n=m()("s-welcome-wizard__step-divider",{"s-welcome-wizard__step--active":o>=a+1});return(0,t.createElement)(t.Fragment,{key:a},a>0&&(0,t.createElement)("div",{className:n}),(0,t.createElement)("div",{className:s},(0,t.createElement)("span",{className:"s-welcome-wizard__step-number"},a+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,o]=(0,t.useState)(x),[a,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=a[d]||!1,y=u[d].every((t=>{let{name:o}=t;return e.includes(o)})),h=u[d].some((t=>{let{name:o}=t;return e.includes(o)})),w=u[d].every((t=>{let{name:o}=t;return!e.includes(o)}));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 a=u[d].map((e=>e.name));let s=e.filter((e=>!a.includes(e)));t||(s=[...s,...a]),o(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({...a,[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(((a,s)=>{const n=e.includes(a.name);return(0,t.createElement)(_,{key:s,label:a.title,value:!n,onChange:t=>{let s=e.filter((e=>e!==a.name));t||(s=[...s,a.name]),o(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,o]=(0,t.useState)(!1),a=(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),a&&(0,t.createElement)(a,{doneCallback:()=>o(!1),saveCallback:()=>o(!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=o=>{const a=(0,t.createRef)();return(0,t.createElement)(p,e({onClick:e=>{e.preventDefault(),a.current.focus()}},o),(0,t.createElement)("input",{ref:a,className:"ugb-admin-text-setting",type:o.type,value:o.value,placeholder:o.placeholder,onChange:e=>{o.onChange(e.target.value),e.preventDefault(),e.stopPropagation()}}),o.children)};I.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:()=>{}};const N=I,O=(e=>{const t={};return e.keys().forEach((o=>{const a=e(o),s=a["stk-type"];s&&(t[s]||(t[s]=[]),t[s].push(a)),(a["stk-variants"]||[]).forEach((e=>{const o=e["stk-type"];o&&(t[o]||(t[o]=[]),t[o].push({...e,name:`${a.name}|${e.name}`}))}))})),Object.keys(t).forEach((e=>{t[e]=(0,C.sortBy)(t[e],"name")})),t})(o(9737)),j=()=>(0,g.applyFilters)("stackable.settings.blocks",O),T=[{id:"essential",label:(0,b.__)("Essential Blocks",i.i18n),Icon:function(o){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"},o),(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(o){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"},o),(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(o){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"},o),(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=o=>{const{onChange:a,value:s="",label:n="",demo:l="",...c}=o,r=(0,t.createRef)();return(0,t.createElement)("label",e({onClick:e=>{a(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=>{a(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((o=>{let{id:a,label:s}=o;return(0,t.createElement)("div",{className:"s-getting-started-blocks-wrapper",key:a},(0,t.createElement)("h3",null,s),(0,t.createElement)("div",{className:"s-getting-started-blocks"},e[a].map(((e,o)=>(0,t.createElement)("div",{key:o,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(),[o,a]=(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)=>{a(t),new y.models.Settings({stackable_disabled_blocks:e}).save().then((()=>a(!1)))},r=t=>()=>{const o=[...s];e[t].forEach((e=>{o.includes(e.name)||o.push(e.name)})),n(o),c(o,t)},u=(0,t.useCallback)(((e,t)=>{let o=null;o=s.includes(e)?s.filter((t=>t!==e)):[...s,e],n(o),c(o,t)}),[n,s]);return(0,t.createElement)(t.Fragment,null,T.map((a=>{let{id:d,label:p,Icon:k}=a;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"},o===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,o)=>{const a=s.includes(e.name),n=m()(["s-block"],{"s-is-disabled":a});return(0,t.createElement)(q,{key:o+1,label:(0,b.__)(e.title,i.i18n),value:e.name,className:n,demo:e["stk-demo"],onChange:e=>{u(e,d)}})}))));var g})))},V=()=>{const[e,o]=(0,t.useState)({}),[a,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=>{o((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),o({...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))),o({...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))),o({...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))),o({...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),o({...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),o({...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))),o({...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))),o({...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)}),a&&(0,t.createElement)("div",{className:"s-absolute-spinner"},(0,t.createElement)(l.Spinner,null)))},A=()=>{const[e,o]=(0,t.useState)(""),[a,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&&(o(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:a}}).save().then((()=>m(!1)))}),400);return()=>clearTimeout(t)}}),[e,a,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=>o(e),placeholder:"1024"}," px"),(0,t.createElement)(N,{label:(0,b.__)("Mobile Breakpoint",i.i18n),type:"number",value:a,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,o]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{y.loadPromise.then((()=>{(new y.models.Settings).fetch().then((e=>{o(!!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(),o(e)},disabled:(0,b.__)("Not forced",i.i18n),enabled:(0,b.__)("Force styles",i.i18n)}))},J=e=>{const[o,a]=(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=>{a(!!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:o,onChange:e=>{w({stackable_help_tooltip_disabled:e?"1":""}),a(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)(V,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)(F,null),document.querySelector(".s-global-settings"))}))})()})();