Starter Templates by Kadence WP - Version 1.2.11

Version Description

  • Fix: Issue with event-tickets.
  • Fix: issue with CSS import in some situations.
Download this release

Release Info

Developer britner
Plugin Icon 128x128 Starter Templates by Kadence WP
Version 1.2.11
Comparing to
See all releases

Code changes from version 1.2.10 to 1.2.11

assets/js/starter-templates.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => '3cd778d2dab351da07ae601da9eb9528');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => 'efe1757ce54f762feb385fd1e6a82ed1');
assets/js/starter-templates.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=146)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){var r=a(31),n=a(50),s=a(129),c=a(4);e.exports=function(e,t){return(c(e)?r:s)(e,n(t,3))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,a){var r=a(35),n="object"==typeof self&&self&&self.Object===Object&&self,s=r||n||Function("return this")();e.exports=s},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,a){var r=a(63),n=a(68);e.exports=function(e,t){var a=n(e,t);return r(a)?a:void 0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}},function(e,t,a){var r=a(49);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,a){var r=a(20),n=a(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},function(e,t,a){var r=a(16),n=a(64),s=a(65),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?n(e):s(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,a){var r=a(53),n=a(54),s=a(55),c=a(56),o=a(57);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(33);e.exports=function(e,t){for(var a=e.length;a--;)if(r(e[a][0],t))return a;return-1}},function(e,t,a){var r=a(3).Symbol;e.exports=r},function(e,t,a){var r=a(7)(Object,"create");e.exports=r},function(e,t,a){var r=a(77);e.exports=function(e,t){var a=e.__data__;return r(t)?a["string"==typeof t?"string":"hash"]:a.map}},function(e,t,a){var r=a(30);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=a=function(e){return typeof e}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(135),s=d(n),c=d(a(136)),o=a(139),i=a(140),l=d(a(141)),u=d(a(142)),p=d(a(143)),m=d(a(144));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.lazyLoadHandler=a.lazyLoadHandler.bind(a),e.throttle>0&&(e.debounce?a.lazyLoadHandler=(0,l.default)(a.lazyLoadHandler,e.throttle):a.lazyLoadHandler=(0,u.default)(a.lazyLoadHandler,e.throttle)),a.state={visible:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this._mounted=!0;var e=this.getEventNode();this.lazyLoadHandler(),this.lazyLoadHandler.flush&&this.lazyLoadHandler.flush(),(0,i.add)(window,"resize",this.lazyLoadHandler),(0,i.add)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.add)(window,"scroll",this.lazyLoadHandler)}},{key:"componentWillReceiveProps",value:function(){this.state.visible||this.lazyLoadHandler()}},{key:"shouldComponentUpdate",value:function(e,t){return t.visible}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lazyLoadHandler.cancel&&this.lazyLoadHandler.cancel(),this.detachListeners()}},{key:"getEventNode",value:function(){return(0,p.default)((0,o.findDOMNode)(this))}},{key:"getOffset",value:function(){var e=this.props,t=e.offset,a=e.offsetVertical,r=e.offsetHorizontal,n=e.offsetTop,s=e.offsetBottom,c=e.offsetLeft,o=e.offsetRight,i=e.threshold||t,l=a||i,u=r||i;return{top:n||l,bottom:s||l,left:c||u,right:o||u}}},{key:"lazyLoadHandler",value:function(){if(this._mounted){var e=this.getOffset(),t=(0,o.findDOMNode)(this),a=this.getEventNode();if((0,m.default)(t,a,e)){var r=this.props.onContentVisible;this.setState({visible:!0},(function(){r&&r()})),this.detachListeners()}}}},{key:"detachListeners",value:function(){var e=this.getEventNode();(0,i.remove)(window,"resize",this.lazyLoadHandler),(0,i.remove)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.remove)(window,"scroll",this.lazyLoadHandler)}},{key:"render",value:function(){var e=this.props,t=e.children,a=e.className,r=e.height,c=e.width,o=this.state.visible,i={height:r,width:c},l="LazyLoad"+(o?" is-visible":"")+(a?" "+a:"");return s.default.createElement(this.props.elementType,{className:l,style:i},o&&n.Children.only(t))}}]),t}(n.Component);t.default=f,f.propTypes={children:c.default.node.isRequired,className:c.default.string,debounce:c.default.bool,elementType:c.default.string,height:c.default.oneOfType([c.default.string,c.default.number]),offset:c.default.number,offsetBottom:c.default.number,offsetHorizontal:c.default.number,offsetLeft:c.default.number,offsetRight:c.default.number,offsetTop:c.default.number,offsetVertical:c.default.number,threshold:c.default.number,throttle:c.default.number,width:c.default.oneOfType([c.default.string,c.default.number]),onContentVisible:c.default.func},f.defaultProps={elementType:"div",debounce:!0,offset:0,offsetBottom:0,offsetHorizontal:0,offsetLeft:0,offsetRight:0,offsetTop:0,offsetVertical:0,throttle:250}},function(e,t,a){var r=a(7)(a(3),"Map");e.exports=r},function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,a){var r=a(69),n=a(76),s=a(78),c=a(79),o=a(80);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(98),n=a(105),s=a(28);e.exports=function(e){return s(e)?r(e):n(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,a){var r=a(34),n=a(27);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},function(e,t,a){var r=a(4),n=a(30),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!n(e))||(c.test(e)||!s.test(e)||null!=t&&e in Object(t))}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}},function(e,t,a){var r=a(14),n=a(58),s=a(59),c=a(60),o=a(61),i=a(62);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=s,l.prototype.get=c,l.prototype.has=o,l.prototype.set=i,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,a){var r=a(12),n=a(24);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(this,a(23))},function(e,t){var a=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,a){var r=a(81),n=a(13);e.exports=function e(t,a,s,c,o){return t===a||(null==t||null==a||!n(t)&&!n(a)?t!=t&&a!=a:r(t,a,s,c,e,o))}},function(e,t,a){var r=a(82),n=a(85),s=a(86);e.exports=function(e,t,a,c,o,i){var l=1&a,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=i.get(e);if(m&&i.get(t))return m==t;var d=-1,f=!0,b=2&a?new r:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var v=e[d],h=t[d];if(c)var g=l?c(h,v,d,t,e,i):c(v,h,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(b){if(!n(t,(function(e,t){if(!s(b,t)&&(v===e||o(v,e,a,c,i)))return b.push(t)}))){f=!1;break}}else if(v!==h&&!o(v,h,a,c,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t,a){var r=a(100),n=a(13),s=Object.prototype,c=s.hasOwnProperty,o=s.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(e){return n(e)&&c.call(e,"callee")&&!o.call(e,"callee")};e.exports=i},function(e,t,a){(function(e){var r=a(3),n=a(101),s=t&&!t.nodeType&&t,c=s&&"object"==typeof e&&e&&!e.nodeType&&e,o=c&&c.exports===s?r.Buffer:void 0,i=(o?o.isBuffer:void 0)||n;e.exports=i}).call(this,a(41)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var a=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&a.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,a){var r=a(102),n=a(103),s=a(104),c=s&&s.isTypedArray,o=c?n(c):r;e.exports=o},function(e,t,a){var r=a(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(a){return null!=a&&(a[e]===t&&(void 0!==t||e in Object(a)))}}},function(e,t,a){var r=a(47),n=a(19);e.exports=function(e,t){for(var a=0,s=(t=r(t,e)).length;null!=e&&a<s;)e=e[n(t[a++])];return a&&a==s?e:void 0}},function(e,t,a){var r=a(4),n=a(29),s=a(117),c=a(120);e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:s(c(e))}},,function(e,t){function a(t,r){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,r)}e.exports=a},function(e,t,a){var r=a(51),n=a(115),s=a(125),c=a(4),o=a(126);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?c(e)?n(e[0],e[1]):r(e):o(e)}},function(e,t,a){var r=a(52),n=a(114),s=a(45);e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(a){return a===e||r(a,e,t)}}},function(e,t,a){var r=a(32),n=a(37);e.exports=function(e,t,a,s){var c=a.length,o=c,i=!s;if(null==e)return!o;for(e=Object(e);c--;){var l=a[c];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++c<o;){var u=(l=a[c])[0],p=e[u],m=l[1];if(i&&l[2]){if(void 0===p&&!(u in e))return!1}else{var d=new r;if(s)var f=s(p,m,u,e,t,d);if(!(void 0===f?n(m,p,3,s,d):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,a){var r=a(15),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,a=r(t,e);return!(a<0)&&(a==t.length-1?t.pop():n.call(t,a,1),--this.size,!0)}},function(e,t,a){var r=a(15);e.exports=function(e){var t=this.__data__,a=r(t,e);return a<0?void 0:t[a][1]}},function(e,t,a){var r=a(15);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,a){var r=a(15);e.exports=function(e,t){var a=this.__data__,n=r(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this}},function(e,t,a){var r=a(14);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,a){var r=a(14),n=a(22),s=a(25);e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var c=a.__data__;if(!n||c.length<199)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new s(c)}return a.set(e,t),this.size=a.size,this}},function(e,t,a){var r=a(34),n=a(66),s=a(24),c=a(36),o=/^\[object .+?Constructor\]$/,i=Function.prototype,l=Object.prototype,u=i.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(r(e)?m:o).test(c(e))}},function(e,t,a){var r=a(16),n=Object.prototype,s=n.hasOwnProperty,c=n.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),a=e[o];try{e[o]=void 0;var r=!0}catch(e){}var n=c.call(e);return r&&(t?e[o]=a:delete e[o]),n}},function(e,t){var a=Object.prototype.toString;e.exports=function(e){return a.call(e)}},function(e,t,a){var r,n=a(67),s=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},function(e,t,a){var r=a(3)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,a){var r=a(70),n=a(14),s=a(22);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||n),string:new r}}},function(e,t,a){var r=a(71),n=a(72),s=a(73),c=a(74),o=a(75);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(17);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return n.call(t,e)?t[e]:void 0}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},function(e,t,a){var r=a(17);e.exports=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,a){var r=a(18);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(18);e.exports=function(e,t){var a=r(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this}},function(e,t,a){var r=a(32),n=a(38),s=a(87),c=a(91),o=a(109),i=a(4),l=a(40),u=a(43),p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,d,f,b){var v=i(e),h=i(t),g=v?"[object Array]":o(e),j=h?"[object Array]":o(t),k=(g="[object Arguments]"==g?p:g)==p,y=(j="[object Arguments]"==j?p:j)==p,O=g==j;if(O&&l(e)){if(!l(t))return!1;v=!0,k=!1}if(O&&!k)return b||(b=new r),v||u(e)?n(e,t,a,d,f,b):s(e,t,g,a,d,f,b);if(!(1&a)){var P=k&&m.call(e,"__wrapped__"),E=y&&m.call(t,"__wrapped__");if(P||E){var S=P?e.value():e,_=E?t.value():t;return b||(b=new r),f(S,_,a,d,b)}}return!!O&&(b||(b=new r),c(e,t,a,d,f,b))}},function(e,t,a){var r=a(25),n=a(83),s=a(84);function c(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new r;++t<a;)this.add(e[t])}c.prototype.add=c.prototype.push=n,c.prototype.has=s,e.exports=c},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,a){var r=a(16),n=a(88),s=a(33),c=a(38),o=a(89),i=a(90),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,a,r,l,p,m){switch(a){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=o;case"[object Set]":var f=1&r;if(d||(d=i),e.size!=t.size&&!f)return!1;var b=m.get(e);if(b)return b==t;r|=2,m.set(e,t);var v=c(d(e),d(t),r,l,p,m);return m.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,a){var r=a(3).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e,r){a[++t]=[r,e]})),a}},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}},function(e,t,a){var r=a(92),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,s,c,o){var i=1&a,l=r(e),u=l.length;if(u!=r(t).length&&!i)return!1;for(var p=u;p--;){var m=l[p];if(!(i?m in t:n.call(t,m)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var b=i;++p<u;){var v=e[m=l[p]],h=t[m];if(s)var g=i?s(h,v,m,t,e,o):s(v,h,m,e,t,o);if(!(void 0===g?v===h||c(v,h,a,s,o):g)){f=!1;break}b||(b="constructor"==m)}if(f&&!b){var j=e.constructor,k=t.constructor;j==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof j&&j instanceof j&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(e),o.delete(t),f}},function(e,t,a){var r=a(93),n=a(95),s=a(26);e.exports=function(e){return r(e,s,n)}},function(e,t,a){var r=a(94),n=a(4);e.exports=function(e,t,a){var s=t(e);return n(e)?s:r(s,a(e))}},function(e,t){e.exports=function(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}},function(e,t,a){var r=a(96),n=a(97),s=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,o=c?function(e){return null==e?[]:(e=Object(e),r(c(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=0,s=[];++a<r;){var c=e[a];t(c,a,e)&&(s[n++]=c)}return s}},function(e,t){e.exports=function(){return[]}},function(e,t,a){var r=a(99),n=a(39),s=a(4),c=a(40),o=a(42),i=a(43),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var a=s(e),u=!a&&n(e),p=!a&&!u&&c(e),m=!a&&!u&&!p&&i(e),d=a||u||p||m,f=d?r(e.length,String):[],b=f.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||m&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||f.push(v);return f}},function(e,t){e.exports=function(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,a){var r=a(12),n=a(27),s=a(13),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&n(e.length)&&!!c[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,a){(function(e){var r=a(35),n=t&&!t.nodeType&&t,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,c=s&&s.exports===n&&r.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=o}).call(this,a(41)(e))},function(e,t,a){var r=a(106),n=a(107),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var a in Object(e))s.call(e,a)&&"constructor"!=a&&t.push(a);return t}},function(e,t){var a=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a)}},function(e,t,a){var r=a(108)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(a){return e(t(a))}}},function(e,t,a){var r=a(110),n=a(22),s=a(111),c=a(112),o=a(113),i=a(12),l=a(36),u=l(r),p=l(n),m=l(s),d=l(c),f=l(o),b=i;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=b(new n)||s&&"[object Promise]"!=b(s.resolve())||c&&"[object Set]"!=b(new c)||o&&"[object WeakMap]"!=b(new o))&&(b=function(e){var t=i(e),a="[object Object]"==t?e.constructor:void 0,r=a?l(a):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case m:return"[object Promise]";case d:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=b},function(e,t,a){var r=a(7)(a(3),"DataView");e.exports=r},function(e,t,a){var r=a(7)(a(3),"Promise");e.exports=r},function(e,t,a){var r=a(7)(a(3),"Set");e.exports=r},function(e,t,a){var r=a(7)(a(3),"WeakMap");e.exports=r},function(e,t,a){var r=a(44),n=a(26);e.exports=function(e){for(var t=n(e),a=t.length;a--;){var s=t[a],c=e[s];t[a]=[s,c,r(c)]}return t}},function(e,t,a){var r=a(37),n=a(116),s=a(122),c=a(29),o=a(44),i=a(45),l=a(19);e.exports=function(e,t){return c(e)&&o(t)?i(l(e),t):function(a){var c=n(a,e);return void 0===c&&c===t?s(a,e):r(t,c,3)}}},function(e,t,a){var r=a(46);e.exports=function(e,t,a){var n=null==e?void 0:r(e,t);return void 0===n?a:n}},function(e,t,a){var r=a(118),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,c=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,(function(e,a,r,n){t.push(r?n.replace(s,"$1"):a||e)})),t}));e.exports=c},function(e,t,a){var r=a(119);e.exports=function(e){var t=r(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}},function(e,t,a){var r=a(25);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],s=a.cache;if(s.has(n))return s.get(n);var c=e.apply(this,r);return a.cache=s.set(n,c)||s,c};return a.cache=new(n.Cache||r),a}n.Cache=r,e.exports=n},function(e,t,a){var r=a(121);e.exports=function(e){return null==e?"":r(e)}},function(e,t,a){var r=a(16),n=a(31),s=a(4),c=a(30),o=r?r.prototype:void 0,i=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(c(t))return i?i.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}},function(e,t,a){var r=a(123),n=a(124);e.exports=function(e,t){return null!=e&&n(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,a){var r=a(47),n=a(39),s=a(4),c=a(42),o=a(27),i=a(19);e.exports=function(e,t,a){for(var l=-1,u=(t=r(t,e)).length,p=!1;++l<u;){var m=i(t[l]);if(!(p=null!=e&&a(e,m)))break;e=e[m]}return p||++l!=u?p:!!(u=null==e?0:e.length)&&o(u)&&c(m,u)&&(s(e)||n(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,a){var r=a(127),n=a(128),s=a(29),c=a(19);e.exports=function(e){return s(e)?r(c(e)):n(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,a){var r=a(46);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,a){var r=a(130),n=a(28);e.exports=function(e,t){var a=-1,s=n(e)?Array(e.length):[];return r(e,(function(e,r,n){s[++a]=t(e,r,n)})),s}},function(e,t,a){var r=a(131),n=a(134)(r);e.exports=n},function(e,t,a){var r=a(132),n=a(26);e.exports=function(e,t){return e&&r(e,t,n)}},function(e,t,a){var r=a(133)();e.exports=r},function(e,t){e.exports=function(e){return function(t,a,r){for(var n=-1,s=Object(t),c=r(t),o=c.length;o--;){var i=c[e?o:++n];if(!1===a(s[i],i,s))break}return t}}},function(e,t,a){var r=a(28);e.exports=function(e,t){return function(a,n){if(null==a)return a;if(!r(a))return e(a,n);for(var s=a.length,c=t?s:-1,o=Object(a);(t?c--:++c<s)&&!1!==n(o[c],c,o););return a}}},function(e,t){!function(){e.exports=this.React}()},function(e,t,a){e.exports=a(137)()},function(e,t,a){"use strict";var r=a(138);function n(){}function s(){}s.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,s,c){if(c!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:n};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,a){var r,n;void 0===(n="function"==typeof(r=function(){function e(e,t){return function(a,r,n,s){a[e]?a[e](r,n,s):a[t]&&a[t]("on"+r,n)}}return{add:e("addEventListener","attachEvent"),remove:e("removeEventListener","detachEvent")}})?r.call(t,a,t,e):r)||(e.exports=n)},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r,n,s,c,o,i,l=0,u=!1,v=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function j(e){return l=e,o=setTimeout(y,t),u?g(e):c}function k(e){var a=e-i;return void 0===i||a>=t||a<0||v&&e-l>=s}function y(){var e=d();if(k(e))return O(e);o=setTimeout(y,function(e){var a=t-(e-i);return v?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function P(){var e=d(),a=k(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(v)return o=setTimeout(y,t),g(i)}return void 0===o&&(o=setTimeout(y,t)),c}return t=b(t)||0,f(a)&&(u=!!a.leading,s=(v="maxWait"in a)?p(b(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),P.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},P.flush=function(){return void 0===o?c:O(d())},P}}).call(this,a(23))},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e,t,a){var r,n,s,c,o,i,l=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function j(e){return l=e,o=setTimeout(y,t),u?g(e):c}function k(e){var a=e-i;return void 0===i||a>=t||a<0||f&&e-l>=s}function y(){var e=d();if(k(e))return O(e);o=setTimeout(y,function(e){var a=t-(e-i);return f?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function P(){var e=d(),a=k(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(f)return o=setTimeout(y,t),g(i)}return void 0===o&&(o=setTimeout(y,t)),c}return t=v(t)||0,b(a)&&(u=!!a.leading,s=(f="maxWait"in a)?p(v(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),P.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},P.flush=function(){return void 0===o?c:O(d())},P}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return b(a)&&(r="leading"in a?!!a.leading:r,n="trailing"in a?!!a.trailing:n),f(e,t,{leading:r,maxWait:t,trailing:n})}}).call(this,a(23))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},n=function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")};t.default=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(n(t)))return t;t=t.parentNode}return window}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a,r){if(function(e){return null===e.offsetParent}(t))return!1;var n=void 0,c=void 0,o=void 0,i=void 0;if(void 0===a||a===window)n=window.pageYOffset,o=window.pageXOffset,c=n+window.innerHeight,i=o+window.innerWidth;else{if(!e(a,window,r))return!1;var l=(0,s.default)(a);n=l.top,o=l.left,c=n+a.offsetHeight,i=o+a.offsetWidth}var u=(0,s.default)(t);return n<=u.top+t.offsetHeight+r.top&&c>=u.top-r.bottom&&o<=u.left+t.offsetWidth+r.left&&i>=u.left-r.right};var r,n=a(145),s=(r=n)&&r.__esModule?r:{default:r}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}},function(e,t,a){"use strict";a.r(t);var r=a(8),n=a.n(r),s=a(9),c=a.n(s),o=a(2),i=a.n(o),l=a(10),u=a.n(l),p=a(11),m=a.n(p),d=a(5),f=a.n(d),b=a(20),v=a.n(b),h=a(0),g=a(1),j=a.n(g),k=a(21),y=a.n(k);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var P=wp.i18n,E=P.__,S=(P.sprintf,wp.element),_=S.Fragment,w=S.Component,x=(S.render,S.PureComponent,wp.components),T=(x.Modal,x.Spinner,x.ButtonGroup),N=(x.Dropdown,x.Button),C=x.ExternalLink,z=(x.ToolbarGroup,x.MenuItem,x.Tooltip),M=function(e){u()(a,e);var t=O(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={colorPalette:e.props.colorPalette?e.props.colorPalette:"",fontPair:e.props.fontPair?e.props.fontPair:"",palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[]},e}return c()(a,[{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"render",value:function(){var e=this,t=this.props.item,a=!0,r=!1,n=!1;return Object(h.createElement)("div",{className:"kadence-starter-templates-preview theme-install-overlay wp-full-overlay expanded",style:{display:"block"}},Object(h.createElement)("div",{className:"wp-full-overlay-sidebar"},Object(h.createElement)("div",{className:"wp-full-overlay-header"},Object(h.createElement)("button",{className:"kst-close-focus-btn close-full-overlay",onClick:function(){return e.props.onChange({activeTemplate:"",colorPalette:"",fontPair:"",focusMode:!1})}})),Object(h.createElement)("div",{className:"wp-full-overlay-sidebar-content"},Object(h.createElement)("div",{className:"install-theme-info"},Object(h.createElement)("div",{className:"theme-info-wrap"},Object(h.createElement)("img",{className:"theme-screenshot",src:t.image,alt:t.name}),Object(h.createElement)("div",{className:"theme-info-title-wrap"},Object(h.createElement)("h3",{className:"theme-name"},t.name),Object(h.createElement)("div",{className:"theme-by"},t.categories.map((function(t){return e.capitalizeFirstLetter(t)})).join(", ")))),Object(h.createElement)("div",{className:"palette-title-wrap"},Object(h.createElement)("h2",{className:"palette-title"},E("Optional: Change Color Scheme","kadence-starter-templates")),Object(h.createElement)(N,{label:E("clear"),className:"kst-clear-palette",disabled:!this.state.colorPalette,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({colorPalette:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:""},"*")}})),Object(h.createElement)(T,{className:"kst-palette-group","aria-label":E("Select a Palette","kadence-starter-templates")},j()(this.state.palettes,(function(t){var a=t.palette,r=t.colors;return Object(h.createElement)(N,{className:"kst-palette-btn",isPrimary:a===e.state.colorPalette,"aria-pressed":a===e.state.colorPalette,onClick:function(){document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:a},"*"),e.setState({colorPalette:a})}},Object(h.createElement)("span",{className:"kst-palette-bg",style:{background:r[4]?r[4]:void 0}}),j()(r,(function(e,t){if(4!==t)return Object(h.createElement)("div",{key:t,style:{width:30,height:30,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(h.createElement)("p",{className:"desc-small"},E("*You can change this after import.","kadence-starter-templates")),Object(h.createElement)("div",{className:"font-title-wrap"},Object(h.createElement)("h2",{className:"font-title"},E("Optional: Change Font Family","kadence-starter-templates")),Object(h.createElement)(N,{label:E("clear"),className:"kst-clear-font",disabled:!this.state.fontPair,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({fontPair:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:""},"*")}})),Object(h.createElement)(T,{className:"kst-font-group","aria-label":E("Select a Font","kadence-starter-templates")},j()(this.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;return Object(h.createElement)(z,{text:n},Object(h.createElement)(N,{className:"kst-font-btn".concat(a===e.state.fontPair?" active":""),"aria-pressed":a===e.state.fontPair,onClick:function(){e.setState({fontPair:a}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:a},"*")}},Object(h.createElement)("img",{src:r,className:"font-pairing"})))}))),Object(h.createElement)("p",{className:"desc-small"},E("*You can change this after import.","kadence-starter-templates"))),Object(h.createElement)("div",{className:"kadence-starter-required-plugins"},Object(h.createElement)("h2",{className:"kst-required-title"},E("Required Plugins","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){if(kadenceStarterParams.plugins[e])return"active"!==kadenceStarterParams.plugins[e].state&&(a=!1,"thirdparty"===kadenceStarterParams.plugins[e].src&&(r=!0),"bundle"===kadenceStarterParams.plugins[e].src&&(n=!0)),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?E("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state))}))),!a&&Object(h.createElement)(_,null,(r||n)&&Object(h.createElement)("p",{className:"desc-small"},E("*Install Missing/Inactive Premium plugins to import.","kadence-starter-templates")),!r&&!n&&Object(h.createElement)("p",{className:"desc-small"},E("*Missing/Inactive plugins will be installed on import.","kadence-starter-templates"))),void 0!==t.pro&&t.pro&&!t.member&&Object(h.createElement)("div",{className:"notice inline notice-alt notice-warning kadence-pro-notice"},Object(h.createElement)("p",null,Object(h.createElement)("strong",null,"Kadence Pro Starter Site")),Object(h.createElement)("p",null,"To import this starter template you need to install Kadence Pro and Kadence Blocks Pro and activate your license using a ",Object(h.createElement)("strong",null,"Essential or Full Bundle license"),".")))),Object(h.createElement)("div",{class:"wp-full-overlay-footer"},void 0!==t.pro&&t.pro&&!t.member?Object(h.createElement)("div",{className:"kt-upgrade-notice"},Object(h.createElement)("h2",{className:"kst-import-options-title"},E("Kadence Bundle is required","kadence-starter-sites")," "),Object(h.createElement)(C,{className:"kst-upgrade button-hero button button-primary",href:"https://www.kadencewp.com/pricing/"},E("Get Pro Starter Site","kadence-starter-sites"))):Object(h.createElement)(_,null,Object(h.createElement)("h2",{className:"kst-import-options-title"},E("Import Options","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence-starter-templates-preview-actions"},Object(h.createElement)("button",{className:"kst-import-btn button-hero button",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isSelected:!1,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},E("Single Page","kadence-starter-templates")),Object(h.createElement)("button",{className:"kst-import-btn button-hero button button-primary",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isImporting:!0,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},E("Full Site","kadence-starter-templates")))))),Object(h.createElement)("div",{class:"wp-full-overlay-main"},Object(h.createElement)("iframe",{id:"kadence-starter-preview",src:t.url+"?cache=bust"})))}}]),a}(w);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var I=wp.i18n,D=I.__,A=(I.sprintf,wp.element),L=A.Fragment,H=A.Component,R=(A.render,A.PureComponent,wp.components),B=(R.Modal,R.Spinner,R.ButtonGroup,R.Dropdown,R.Icon,R.Button),q=R.ExternalLink,V=(R.ToolbarGroup,R.CheckboxControl),W=R.TextControl,G=(R.ToggleControl,R.MenuItem,R.Tooltip,R.PanelBody,function(e){u()(a,e);var t=F(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={email:kadenceStarterParams.user_email,privacy:!1,privacyError:!1},e}return c()(a,[{key:"render",value:function(){var e=this;return Object(h.createElement)("div",{className:"kt-subscribe-form-box"},Object(h.createElement)("h2",null,D("Subscribe and Import","kadence-starter-templates")),Object(h.createElement)("p",null,D("Subscribe to learn about new starter templates and features for Kadence.","kadence-blocks")),Object(h.createElement)(W,{type:"text",className:"kt-subscribe-email-input",label:D("Email:","kadence-starter-templates"),value:this.state.email,placeholder:D("example@example.com","kadence-starter-templates"),onChange:function(t){return e.setState({email:t})}}),this.props.emailError&&Object(h.createElement)("span",{className:"kb-subscribe-form-error"},D("Invalid Email, Please enter a valid email.","kadence-starter-templates")),Object(h.createElement)(V,{label:Object(h.createElement)(L,null,D("Accept","kadence-starter-templates")," ",Object(h.createElement)(q,{href:"https://www.kadencewp.com/privacy-policy/"},D("Privacy Policy","kadence-starter-templates"))),help:D("We do not spam, unsubscribe anytime.","kadence-starter-templates"),checked:this.state.privacy,onChange:function(t){return e.setState({privacy:t})}}),this.state.privacyError&&Object(h.createElement)("span",{className:"kb-subscribe-form-error"},D("Please Accept Privacy Policy","kadence-blocks")),Object(h.createElement)(B,{className:"kt-defaults-save",isPrimary:!0,onClick:function(){e.state.privacy?(e.setState({privacyError:!1}),e.props.onRun(e.state.email)):e.setState({privacyError:!0})}},D("Subscribe and Start Importing")))}}]),a}(H)),$=a(6),U=Object(h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(h.createElement)($.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),K=Object(h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(h.createElement)($.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),J=Object(h.createElement)($.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(h.createElement)($.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}function X(e){try{var t=JSON.parse(e);if(t&&"object"===v()(t))return t}catch(e){}return!1}var Q=wp.i18n,Z=Q.__,ee=(Q.sprintf,wp.element),te=ee.Fragment,ae=ee.Component,re=ee.render,ne=(ee.PureComponent,wp.components),se=ne.Modal,ce=ne.Spinner,oe=(ne.ButtonGroup,ne.Dropdown),ie=ne.Icon,le=ne.Button,ue=ne.ExternalLink,pe=(ne.ToolbarGroup,ne.CheckboxControl,ne.TextControl,ne.ToggleControl),me=ne.MenuItem,de=ne.Tooltip,fe=ne.PanelBody,be=Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(h.createElement)("path",{d:"M15.984 18v2.016H8.015V18h7.969zM11.016 7.969v8.016h1.969V7.969h3l-3.984-3.984-3.984 3.984h3z"})),ve=Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(h.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"url(#_Linear1)"}),Object(h.createElement)("path",{fill:"#fff",d:"M50 50H66.003V130H50z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 50H130.011V66H82z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 82H130.011V98H82z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 114.046H130.011V130.046H82z"}),Object(h.createElement)("defs",null,Object(h.createElement)("linearGradient",{id:"_Linear1",x1:"0",x2:"1",y1:"0",y2:"0",gradientTransform:"rotate(-52.456 186.056 40.829) scale(178.658)",gradientUnits:"userSpaceOnUse"},Object(h.createElement)("stop",{offset:"0",stopColor:"#372b73"}),Object(h.createElement)("stop",{offset:"1",stopColor:"#e9335e"})))),he=(Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(h.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"#93003c"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M50 50H66.003V130H50z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 50H130.011V66H82z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 82H130.011V98H82z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 114.046H130.011V130.046H82z"})),Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 720 864",viewBox:"0 0 720 864",className:"gblogo"},Object(h.createElement)("g",null,Object(h.createElement)("path",{d:"M432.4 415.6c-2.5-1.7-5.9-1-7.6 1.5-9.9 14.9-30.9 15.7-32 15.7h-.5c-25.9 0-35.8 22.1-36.2 23-1.2 2.8.1 6 2.8 7.2.7.3 1.5.5 2.2.5 2.1 0 4.1-1.2 5-3.3.1-.2 6.9-15.4 24.4-16.4v28.3c-.7 6.1-3.6 10.9-8.7 14.5-5.3 3.7-12.4 5.6-21.1 5.6-10.4 0-18.9-3.6-25.2-10.7-6.4-7.1-9.6-17.2-9.6-30.2l.1-31.2c.5-11.5 3.6-20.6 9.5-27.1 6.4-7.1 14.8-10.7 25.2-10.7 8.7 0 15.8 1.9 21.1 5.6 5.3 3.7 8.3 8.8 8.8 15.4v.7c0 3.8 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9v-.7c-1-9.9-5.5-17.7-13.6-23.6-8.1-5.9-18.2-8.8-30.4-8.8-14.5 0-26.2 4.8-35.1 14.3-8.4 8.9-12.8 20.6-13.3 35 0 1-.1 2-.1 3l.1 28.1h-.1c0 15.9 4.5 28.6 13.4 38.1s20.6 14.3 35.1 14.3c12.2 0 22.3-2.9 30.4-8.8 7.4-5.4 11.8-12.5 13.3-21.3l.3-31.4c9.1-2.2 21.5-7.2 29.3-19 2-2.5 1.3-5.9-1.3-7.6zM528.7 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2zM117.8 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.7 6.2 6.2 6.2z",className:"st2"}),Object(h.createElement)("circle",{cx:"609.3",cy:"150.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"359.8",cy:"130.6",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M244.8 150.2h.3c23.3 0 33.7-14.6 41.6-28.2 2.6-4.5 12.2-19.5 25.8-23.4 16.8-4.9 34.7 2.9 41.7 18.2 1 2.2 3.2 3.5 5.4 3.6h.7c2.2-.1 4.4-1.4 5.4-3.6 7-15.3 24.9-23.1 41.7-18.2 13.6 4 23.2 18.9 25.8 23.4 7.9 13.7 18.3 28.2 41.9 28.2 14.2 0 31-10.6 35.7-30.9 3.9-16.8-3.3-32-19-39.7-3.1-1.5-6.8-.3-8.3 2.8-1.5 3.1-.3 6.8 2.8 8.3 14.9 7.4 13.6 20.5 12.4 25.8-2.4 10.4-11.6 21.4-23.7 21.4-15.5 0-22.9-7.8-31.2-22.1-4.1-7-15.5-24-33-29.1-19.1-5.6-39.3 1.1-50.9 15.8-11.6-14.7-31.8-21.4-50.9-15.8-17.5 5.1-28.9 22.1-33 29.1-8.3 14.3-15.7 22.1-30.9 22.1h-.2c-13.2-.1-21.6-9.3-24-18.4-1.2-4.3-3.7-19 13.1-29 2.9-1.7 3.9-5.5 2.1-8.5-1.8-2.9-5.5-3.9-8.5-2.1-19.3 11.5-22.3 29.7-18.7 42.9 4.4 16.3 18.9 27.3 35.9 27.4z",className:"st2"}),Object(h.createElement)("path",{d:"M360 734L360.1 734 360.1 734 360 734z",className:"st2"}),Object(h.createElement)("circle",{cx:"108.1",cy:"150.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"90.7",cy:"88",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"631.3",cy:"88",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"664.5",cy:"485.3",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"639.6",cy:"627.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"599.8",cy:"644.8",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M231.9 111.2c0 9.2 7.5 16.7 16.7 16.7s16.7-7.5 16.7-16.7-7.5-16.7-16.7-16.7c-9.2-.1-16.7 7.4-16.7 16.7zm16.7-4.4c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM473.6 127.9c9.2 0 16.7-7.5 16.7-16.7s-7.5-16.7-16.7-16.7-16.7 7.5-16.7 16.7 7.5 16.7 16.7 16.7zm0-21.1c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM376.7 121.6c-3.2 1.2-4.8 4.7-3.6 7.9 1.2 3.2 4.7 4.8 7.9 3.7 1-.4 25-8.4 43.4 20.2 1.2 1.8 3.2 2.8 5.2 2.8 1.1 0 2.3-.3 3.3-1 2.9-1.8 3.7-5.7 1.9-8.5-19.2-29.7-46.4-29.4-58.1-25.1zM343.3 121.6c-.9-.3-9.1-3.2-20.3-1.5-10.4 1.5-25.3 7.4-37.7 26.7-1.8 2.9-1 6.7 1.9 8.5 1 .7 2.2 1 3.3 1 2 0 4-1 5.2-2.8 18.3-28.6 42.3-20.6 43.4-20.2 3.2 1.2 6.7-.5 7.9-3.7 1.2-3.2-.5-6.8-3.7-8zM627.8 138.5l30.1-34.2v49.3c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V88c0-2.6-1.6-4.9-4-5.8-2.4-.9-5.1-.2-6.8 1.7l-40.9 46.5c-2.3 2.6-2 6.5.6 8.7 2.4 2.3 6.3 2 8.6-.6zM56.8 159.9c3.4 0 6.2-2.8 6.2-6.2v-49.3l30.1 34.2c2.3 2.6 6.2 2.8 8.7.6 2.6-2.3 2.8-6.2.6-8.7L61.5 83.9c-1.7-1.9-4.4-2.6-6.8-1.7-2.4.9-4 3.2-4 5.8v65.7c0 3.4 2.7 6.2 6.1 6.2zM493.4 166c-2.9-.2-5.6 1.8-6.3 4.6-.7 2.9.7 5.9 3.3 7.1 9.8 4.6 18.7 6.4 26.7 6.4 15.3 0 27.5-6.7 36-13.7 13.6-11.2 20.6-25.3 20.9-25.9 1.4-2.9.4-6.4-2.4-8-6.3-3.7-17.2-6-33.8 4.1-8.3 5.1-14.7 11.2-15.8 12.3-15.2 13.4-27.9 13.1-28.6 13.1zm36.9-3.9l.3-.3c4.7-4.7 18-15.6 28.4-16.1-3 4.3-7.5 10.1-13.6 15.2-9 7.4-18.6 11-28.8 10.8 4.2-2.2 8.9-5.4 13.7-9.6zM151.4 136.5c-2.8 1.6-3.8 5.1-2.4 8 .3.6 7.3 14.7 20.9 25.9 8.5 7 20.6 13.7 36 13.7 8.1 0 17-1.8 26.7-6.4 2.7-1.3 4-4.2 3.3-7.1-.7-2.9-3.3-4.8-6.3-4.7-.5 0-13.3.4-28.5-13-1.1-1.1-7.5-7.2-15.8-12.3-16.6-10-27.6-7.7-33.9-4.1zm41.4 25.6c4.7 4.2 9.4 7.3 13.7 9.6-21.6.2-35.9-16.3-42.4-26 10.4.5 23.7 11.4 28.4 16.1l.3.3z",className:"st2"}),Object(h.createElement)("path",{d:"M671.8 664.6c-6.2-5.2-13-8.2-19.3-9.9 2.4-1.8 4.7-3.9 6.7-6.2 15.3-18 15.4-44.5.2-61.7-2.3-2.6-6.2-2.8-8.7-.5-2.6 2.3-2.8 6.2-.5 8.7 11.1 12.6 10.9 32.1-.4 45.5-9.2 10.8-26.7 13.4-31.9 14-15.7 1.7-33.3 5.3-42.8 26.8-1.5 3.3-2.4 7-2.6 11-2.2-.7-4.6-1.1-7-1.1-12.5 0-22.7 10.2-22.7 22.7 0 8.6 4.8 16.1 11.9 19.9-2.1 1.9-4.1 4-5.9 6.4-21-28.3-54.6-46.1-91.6-46.1-5.3 0-10.6.4-15.7 1.1 30.4-9.3 58.7-23.8 84.5-43 33.3-24.9 61-57.4 80-93.9 20-38.4 30.1-79.9 30.1-123.1v-.8-.2-.3c-.2-35.1-8-66.7-19.1-93.9 4.1.8 8 1.1 11.5 1.1 25.9 0 37.3-17.8 38.5-19.9 5.6-9.4 6.5-20.8 3.3-31.1.1-.3.1-.7.1-1.1V176.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2V271c-10.5-9.1-25.7-10.1-32-10.1-12.2.1-19.8-1.8-25.4-11.4-4.7-8.1-2-16.5 2.7-21.3 5.9-6 14.3-6.8 22.5-2.3 3 1.6 6.8.6 8.4-2.4 1.6-3 .6-6.8-2.4-8.4-13-7.2-27.6-5.4-37.3 4.4-9.6 9.8-11.4 24.3-4.6 36.1 8.9 15.3 22.4 17.5 35.7 17.5h.5c4 0 16.9.6 24.3 7.6 9.6 9.1 12.1 23.4 5.8 34 0 0-.1.1-.1.2-.5.9-12.4 21.1-45.6 10.5-10-21.2-21.6-39.2-32.4-53.6l-4.9 3.7 4.9-3.8-2-2.6c-21.3-35.7 3.3-73.7 16.1-89.8l7.2-8.2c2.2-2.6 2-6.5-.6-8.7-2.5-2.1-6.1-2-8.4.3-.2.2-1.3 1.3-3 3.2-11.1 11.3-54.5 51.3-96.6 30.4l-1.2-.8-.6-.4c-37.7-20.3-74.9-32-110.4-35-4.6-10.5-10.7-18.5-18.4-18.5-7.8 0-13.9 8.1-18.6 18.8-49.7 2.2-111.5 34.3-114.1 35.6-42.3 21.3-85.9-18.9-97-30.2-1.7-1.9-2.9-3-3-3.2-2.3-2.3-5.9-2.4-8.4-.3-2.6 2.2-2.8 6.1-.6 8.7l7.7 8.7c4.5 5.6 10.2 13.7 15 23.4 12 24.3 12.2 46.4.7 65.8-14.3 17.8-25.9 36.5-34.8 56.2-33.5 10.9-45.5-9.5-46-10.4 0-.1-.1-.1-.1-.2-6.3-10.6-3.8-24.9 5.8-34 7.4-7 20.3-7.6 24.3-7.6h.1c13.4 0 27.2-2.1 36.1-17.5 6.8-11.8 5-26.4-4.6-36.1-9.7-9.9-24.3-11.6-37.3-4.4-3 1.6-4.1 5.4-2.4 8.4 1.6 3 5.4 4.1 8.4 2.4 8.3-4.5 16.7-3.7 22.5 2.3 4.7 4.8 7.3 13.2 2.7 21.3-5.5 9.5-13 11.4-25 11.4h-.4c-5.5 0-18.3.8-28.5 7.4v-90.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v104c-6.8 12.2-7.2 27.1-.2 39.1.7 1.3 5 8.5 14.6 13.9 5.5 3.1 13.4 6 23.9 6 3.8 0 8-.4 12.5-1.3-10.8 29-16.2 60.2-16.4 94.2v1.1c0 61.4 21.6 121.7 60.8 169.8 34.7 42.6 81.9 74.2 134.2 90.3-5.5-.8-11.1-1.2-16.7-1.2-36.7 0-70 17.5-91 45.4-1.7-2.2-3.6-4.3-5.7-6.1 6.6-4 11.1-11.2 11.1-19.5 0-12.5-10.2-22.7-22.7-22.7-2.3 0-4.5.4-6.6 1-.3-3.9-1.2-7.6-2.6-10.9-9.6-21.5-27.1-25.1-42.8-26.8-5.2-.6-22.7-3.2-31.9-14-11.6-13.1-11.8-32.6-.7-45.2 2.3-2.6 2-6.5-.5-8.7-2.6-2.3-6.5-2-8.7.5-15.1 17.2-15 43.7.2 61.7 2 2.4 4.3 4.4 6.7 6.2-6.3 1.7-13.1 4.8-19.3 9.9-14.7 12.1-22.2 32.3-22.4 59.8-.5 2.5.6 5.1 2.8 6.5 1 .6 2.1.9 3.2.9.4 0 .9-.1 1.3-.2h.1c.2 0 .3-.1.5-.2.3-.1.7-.2 1-.4.1 0 .1-.1.2-.1 1-.6 1.9-1.4 2.5-2.4 2.4-3.1 12.3-7 20.5-8.7 32.1-7 38.8-28.7 37.8-39.1-.3-3.4-3.3-5.9-6.7-5.6-3.4.3-5.9 3.3-5.6 6.7 0 .1.1 1.9-.5 4.6-1.5 6.2-7 16.9-27.6 21.4h-.2c-2.4.5-9.6 2.2-16.3 5.3 1.8-17.8 7.5-30.8 17.2-38.9 14.9-12.4 34.6-8.9 34.8-8.8.7.1 1.3.1 1.9 0 3.3.7 6.1 1.1 8.2 1.3 16.5 1.8 26.6 5.4 32.9 19.5 4.9 11.1-1.4 23.9-9.9 30.3-4.3 3.3-15.8 9.8-28.7-.8-2.6-2.2-6.5-1.8-8.7.8-2.2 2.6-1.8 6.5.8 8.7 5.8 4.8 12.3 7.6 19 8.4-8.6 7-14.4 15.8-17 20.4-8.4 14.5-15.2 22.3-26.5 22.4V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v50.2c0 2.5 1.5 4.6 3.6 5.6 1.1.8 2.4 1.4 3.8 1.4h144c2.2 0 4-1.1 5.2-2.8.8-.8 1.5-1.8 1.8-3 5.7-22.1 25.6-37.5 48.4-37.5 20.4 0 38.5 12.4 46.2 30.9h-13.2c-5.4-13.3-18.4-22.2-33.1-22.2-16.1 0-30.3 10.9-34.6 26.4-.9 3.3 1.1 6.7 4.3 7.6 3.3.9 6.7-1.1 7.6-4.3 2.8-10.2 12.1-17.3 22.6-17.3 7.8 0 14.8 3.8 19.1 9.8h-3.6c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h12.5c.2 0 .5.1.7.1.3 0 .6 0 .8-.1h24.8c3.4 0 6.2-2.8 6.2-6.2 0-.3 0-.6-.1-.9.1-.8.1-1.7-.1-2.6-7.3-27.1-32.1-46-60.2-46-27.2 0-51.1 17.6-59.4 43.3h-32.3c2.6-8.3 6.1-16 10.5-23.2.3-.4.5-.8.8-1.2 18.3-28.7 50.3-47.1 85.8-47.1 21 0 41.2 6.4 58.3 18.4.5.3 1 .6 1.5.7 2.6 3.1 5.2 6.4 7.7 9.8.6.8 1.1 1.6 1.7 2.4-.6 12.7 6.3 26 20.6 39.6.5 1.5 1 2.8 1.3 3.8v1.3c0 3.4 2.8 6.2 6.2 6.2 2.9 0 5.2-1.9 5.9-4.6 0-.1.9-3.1 2.7-8.1 12.9-12.6 19.3-24.9 19.2-36.8.8-1.2 1.7-2.5 2.6-3.7 2.8-3.8 5.7-7.5 8.7-11 17-11.8 36.9-18 57.7-18 44.8 0 84 29.2 97 71.5h-32.3c-8.2-25.7-32.1-43.3-59.4-43.3-28.1 0-52.8 18.9-60.2 46-.3 1-.3 2 0 3v.5c0 3.4 2.8 6.2 6.2 6.2h54.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-19.7c4.3-6 11.3-9.8 19.1-9.8 10.7 0 20 7.2 22.7 17.6.7 2.8 3.2 4.6 6 4.6.5 0 1-.1 1.5-.2 3.3-.8 5.3-4.2 4.5-7.5-4.1-15.8-18.3-26.9-34.7-26.9-14.6 0-27.6 8.9-33.1 22.2h-12.5c7.6-18.5 25.8-30.9 46.2-30.9 22.8 0 42.7 15.4 48.4 37.5.1.5.4 1 .6 1.5.8 2.5 3.1 4.3 5.9 4.3H664c3.4 0 6.2-2.8 6.2-6.2v-.4-1.6c.1-.6.1-1.2.1-1.8 0-.1 0-.2-.1-.3V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v42c-10.4-.8-16.9-8.5-24.9-22.3-2.6-4.4-8-12.7-16-19.5 5.5-1.2 10.8-3.8 15.7-7.9 2.6-2.2 3-6.1.8-8.7-2.2-2.6-6.1-3-8.7-.8-12.8 10.6-24.3 4.1-28.7.8-8.5-6.4-14.8-19.3-9.9-30.3 6.3-14.1 16.4-17.8 32.9-19.5 2.1-.2 4.9-.6 8.2-1.3.6.1 1.3.1 2 0 .2 0 19.7-3.6 34.7 8.8 9.8 8.1 15.6 21.1 17.3 39-6.8-3.2-14.1-4.9-16.4-5.4h-.2c-20.5-4.5-26.1-15.1-27.6-21.3-.6-2.6-.6-4.4-.5-4.6.3-3.4-2.2-6.4-5.6-6.7-3.4-.3-6.4 2.2-6.7 5.6-1 10.5 5.7 32.1 37.9 39.1 8.3 1.8 18.8 5.9 20.7 9 0 0 0 .1.1.1.3.4.6.8.9 1.1.1.1.2.1.3.2.3.2.6.5.9.6.1.1.3.2.4.2.3.2.6.3.9.4.1 0 .3.1.4.1.4.1.9.2 1.4.2.4 0 .7 0 1.1-.1.1 0 .2 0 .3-.1.3-.1.6-.2 1-.3h.1c.3-.1.5-.3.8-.4l.1-.1c.2-.1.4-.3.5-.4.1-.1.3-.2.4-.4l.4-.4c.1-.2.3-.3.4-.5.1-.2.2-.3.3-.5.1-.2.2-.3.3-.5.1-.2.1-.4.2-.6.1-.2.1-.4.2-.6 0-.2.1-.4.1-.5 0-.2.1-.4.1-.7v-.1c-.1-28.3-7.7-48.8-22.6-61.1zM152.9 777.7H87.8c5.5-5.6 9.4-12.3 12.4-17.5 2.6-4.5 12.2-19.5 25.8-23.4 16-4.7 31 .8 38.4 13.5-4.9 8.5-8.8 17.7-11.5 27.4zm1.7-53.7c-5.7 0-10.3-4.6-10.3-10.3 0-5.7 4.6-10.3 10.3-10.3s10.3 4.6 10.3 10.3c0 5.7-4.7 10.3-10.3 10.3zm366.6-78.1l.9 1.1-.9-1.1zm.2-6.2c-58.4-6.8-100.6 18.3-125.8 40.5-10.9 9.6-19.5 19.5-26 27.9-1.2-.8-2.3-1.6-3.3-2.1v-17.6c47.3-47.5 94.3-61.7 125.5-65.2 20.7-2.3 37.4-.4 47.4 1.5-5.7 5.3-11.6 10.3-17.8 15zm73.3-87.2c-6 11.5-12.9 22.5-20.5 33.1-7.9-2.5-17.8-4.8-29.7-5.9 26.5-33.6 43.3-73.7 48.7-116 8.6-1 20.5-4.7 29.6-10.6-2.4 34.7-11.8 68.1-28.1 99.4zm-42.1-111.6l7.2-.3c2.4 10.7 10.5 19.3 21.1 22.2-5.6 42.8-23.4 83.2-51.8 116.2-13.7 0-29.6 1.6-47.6 5.5 42-34.2 69.4-85.7 71.1-143.6zm-117.5 158c-4 1.6-6.8 2.9-8.2 3.5-16.6 6.6-34.4 10.9-53 12.3l165.9-165.9c-5 66.8-46.6 123.4-104.7 150.1zm188.3-164.7c-.2 5.6-15.5 14.7-29 16.9-1.9.3-3.8.5-5.6.5-2.4 0-4.7-.5-6.8-1.4-6.3-2.7-10.7-8.9-10.7-16.1 0-7.2 4.4-13.4 10.7-16.1 2.1-.9 4.4-1.4 6.8-1.4 1.8 0 3.7.2 5.6.5 13.5 2.2 28.7 11.3 29 16.8v.3zM565.5 276l2.6 3.5c22.7 30.3 49.3 77.2 54.4 135.6-9-5.8-20.8-9.5-29.3-10.5-6.4-50.6-28.9-96.3-62.2-131.6 1.4-2.9 2.2-6.2 2.2-9.6 0-4.6-1.4-8.9-3.7-12.4l28.4-32.4c-5.4 20.6-2.8 40.1 7.6 57.4zm-82.9-70.1l1.3.9.7.4c9.9 5 20.5 7.5 31.5 7.5 11.6 0 23.7-2.8 35.9-8.4l-32 36.5c-2.9-1.4-6.1-2.1-9.6-2.1-4.5 0-8.6 1.3-12.1 3.5-31.5-23-68.8-38.3-109.4-43.3-1-7.3-3-17.7-6-27.9 32.1 3.6 65.6 14.6 99.7 32.9zm38.2 57.5c0 4.5-3 8.4-7.1 9.8-1 .3-2.1.5-3.2.5h-1c-4.6-.4-8.3-3.9-9.1-8.3-.1-.6-.2-1.3-.2-1.9 0-.7.1-1.3.2-2 .9-4.5 4.7-8 9.4-8.3H511.1c4.6.3 8.5 3.6 9.5 8 .1.6.2 1.1.2 1.7-.1.1 0 .3 0 .5zm-131.4-49.9c37.2 4.9 71.6 19.1 100.7 40.1-1.5 3-2.3 6.3-2.3 9.9 0 4.5 1.3 8.6 3.6 12.2l-49.8 56.8c-2.3 2.6-2 6.5.6 8.7 1.2 1 2.6 1.5 4.1 1.5 1.7 0 3.4-.7 4.7-2.1l49.7-56.7c3 1.5 6.3 2.3 9.9 2.3 4.6 0 8.8-1.4 12.3-3.7 31 33.2 51.9 75.8 58.1 123-10.7 3-19 11.8-21.2 22.8l-7.1.3c-1.5-45.7-19.2-89.3-50.1-123.2-2.3-2.5-6.2-2.7-8.7-.4-2.5 2.3-2.7 6.2-.4 8.7 27.2 29.8 43.4 67.6 46.5 107.6L473.5 355c-2.4-2.4-6.3-2.4-8.7 0-2.4 2.4-2.4 6.3 0 8.7l71.4 71.4-176 176-176-176 70.8-70.8c2.4-2.4 2.4-6.3 0-8.7-2.4-2.4-6.3-2.4-8.7 0l-65.7 65.7c3.5-45.5 23.9-86.4 55-116.2l31 35.4c1.2 1.4 2.9 2.1 4.7 2.1 1.4 0 2.9-.5 4.1-1.5 2.6-2.3 2.8-6.2.6-8.7l-31.1-35.5c28-23.4 63.1-38.5 101.6-41.4l-52.8 52.3c-2.4 2.4-2.4 6.3 0 8.7 1.2 1.2 2.8 1.8 4.4 1.8 1.6 0 3.1-.6 4.4-1.8l58-57.4 56.3 56.3c2.4 2.4 6.3 2.4 8.7 0 2.4-2.4 2.4-6.3 0-8.7l-51.2-51.2c31.7 2.4 61.9 13 88.2 31.1 2.8 1.9 6.7 1.2 8.6-1.6 1.9-2.8 1.2-6.7-1.6-8.6-30.4-20.9-65.8-32.5-102.8-33.6v-4.4c11.6-2.8 20.9-12.7 22.7-24.9zm-180.7 74.3c3.5 0 6.8-.8 9.7-2.2l8.9 10.2c-35.3 33.7-57.8 80.6-59.6 132.7l-5-.3c-2.4-11.7-11.5-20.9-23.2-23.3 6.1-46.3 26.5-88.1 56.5-120.9 3.7 2.4 8 3.8 12.7 3.8zm-10.3-22.6c0-.5 0-.9.1-1.4 0-.3.1-.5.1-.8.9-4.4 4.7-7.8 9.3-8.1h.7c4.7 0 8.7 3.2 9.9 7.6.2.9.4 1.8.4 2.7 0 .7-.1 1.4-.2 2.1-.9 4.4-4.7 7.8-9.3 8.1h-.8c-1.3 0-2.6-.3-3.7-.7-3.7-1.4-6.5-5.2-6.5-9.5zm-35.8 175.4l5.1.3c1.7 58 29.2 109.6 71.3 143.8-18.1-4-34-5.6-47.8-5.7-28.2-32.9-46.1-73.1-51.7-115.7 11.5-2.4 20.6-11.3 23.1-22.7zm17.9 8.2l165.9 165.9C258 608 187.2 537.2 180.5 448.8zm162.7-249c2.7-18.7 11.9-43.7 16.7-45.7 5.5 2.1 14 28 16.6 45.6.5 3.5.8 6.7.8 9.3 0 1.1-.1 2.1-.3 3.1-1.5 8.1-8.6 14.3-17.2 14.3s-15.7-6.2-17.2-14.3c-.2-1-.3-2.1-.3-3.1.1-2.7.4-5.8.9-9.2zm10.8 38.5v4.3c-44.6 1.4-85.4 18.1-117.4 44.9l-8.8-10.1c2.3-3.5 3.7-7.8 3.7-12.3 0-3.8-1-7.4-2.6-10.5 29.3-21.5 64-36 101.7-41.1 1.7 12.4 11.2 22.4 23.4 24.8zm-152.7-23.6c11 0 21.6-2.5 31.6-7.5.6-.3 57.7-30 103.9-34-3 10.1-5 20.6-6 27.8-41.1 5.1-79 21-110.7 44.6-3.4-2-7.2-3.1-11.4-3.1-3.5 0-6.8.8-9.7 2.2l-33.6-38.3c12.3 5.5 24.3 8.3 35.9 8.3zm-49.9 61.9l.5-.7c10.4-17.2 13-36.8 7.8-57.4l30 34.3c-2.3 3.5-3.7 7.8-3.7 12.3 0 3.3.7 6.4 2 9.3-32.7 35.2-54.7 80.4-61 130.4-8.9 1.4-20.7 5.2-29.6 10.9 3.5-52.8 21.2-98.5 54-139.1zM96.9 434c.2-5.8 16.3-13.8 29-16.4 2.8-.6 5.4-.9 7.6-.9 1.7 0 3.2.2 4.8.7 7.3 2.1 12.7 8.8 12.7 16.8s-5.4 14.7-12.7 16.8c-1.5.4-3.1.7-4.8.7-2.3 0-4.9-.3-7.6-.9-12.7-2.7-28.8-10.7-29-16.5v-.3zm.6 18.4c8.9 5.8 20.8 9.6 29.6 11 5.3 42.4 22.1 82.6 48.7 116.2-11.9 1.1-21.8 3.3-29.8 5.8-28.7-39.4-45.3-84.9-48.5-133zM154.9 597c-.3-.4-.6-.7-.9-1.1 30.1-8.3 63-3.9 86.1 1.6 27.9 6.7 48.3 16.4 48.5 16.5l.1-.2c22.1 8.8 46.2 13.7 71.4 13.7 25.1 0 49.1-4.8 71.1-13.6l.6-.3c2.6-1.1 5.3-2.2 7.8-3.4 8.5-3.5 22.8-8.7 40-12.8 23.3-5.6 56.3-10 86.4-1.6-5.2 6.4-10.6 12.5-16.4 18.4-8.4-2.3-29.8-6.7-58.7-3.6-31.4 3.4-77.6 16.8-124.8 60.4v-10.9c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v10.3c-46.9-43.1-92.9-56.4-124.1-59.8-29.6-3.2-51.3 1.6-59.2 3.8-5.2-5.4-10.5-11.3-15.5-17.4zm26.3 27.8c10-2 26.9-4 48-1.6 55.5 6.2 98.1 37.9 124.8 64.5v18.1c-.9.5-1.9 1.1-3 1.9-6.5-8.3-15-18-25.7-27.4-25.2-22.3-67.6-47.5-126.2-40.5v.1c-6.2-4.8-12.2-9.8-17.9-15.1zm155.3 98c-11.7-15-24.5-26.3-37.3-34.8l.1-.3c-.3-.1-.6-.2-.9-.2-21.3-13.9-42.7-20-59.9-22.5-8.1-4.2-16.1-8.9-23.8-14 37.7-1.1 71.9 11.7 102.1 38.2 10.4 9.1 18.6 18.5 24.8 26.6-1.9 2.1-3.6 4.4-5.1 7zm29.9 37.5c-1.5 1.8-3.1 3.6-4.9 5.4-.4.4-.9.9-1.4 1.3l-.1.1-.1.1v-.2c-.2-.2-.5-.4-.7-.7-2-1.9-3.7-3.8-5.3-5.7-7.3-8.7-10.5-16.8-9.4-24.2.1-.6.2-1.2.4-1.8.8-3.2 2.3-6 4.1-8.4 1.5-2 3.2-3.7 4.9-5.2 1.5-1.3 3-2.4 4.3-3.3.6-.4 1.1-.7 1.6-1 0 0 .1 0 .1-.1h.1c.7.4 1.4.9 2.3 1.5 1.2.8 2.6 1.9 4 3.1 1.8 1.6 3.6 3.5 5.1 5.6 1.8 2.6 3.3 5.5 3.9 8.8 0 .2.1.5.2.7 1.1 7.3-2 15.3-9.1 24zm24.4-45.1c-.2.2-.4.4-.5.6-2.3 2.6-4.4 5.2-6.3 7.7-1.5-2.6-3.2-5-5-7.1 6.2-8.1 14.6-17.8 25.2-27.1 30-26.4 64.1-39.2 101.5-38.3-7.8 5.1-15.8 9.9-24 14.1-42.8 6.5-72.1 28.7-90.9 50.1zm174.5-11.8c5.7 0 10.3 4.6 10.3 10.3 0 5.7-4.6 10.3-10.3 10.3s-10.3-4.6-10.3-10.3c0-5.6 4.6-10.3 10.3-10.3zm31.2 32.1c13.6 4 23.2 18.9 25.8 23.4 3.2 5.6 7.5 13 13.8 18.8H567c-2.6-9.4-6.3-18.3-11-26.5 7.6-13.6 24.6-20.4 40.5-15.7z",className:"st2"}),Object(h.createElement)("path",{d:"M69.6 301.1c0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4c0-10.1-8.2-18.4-18.4-18.4s-18.4 8.3-18.4 18.4zm24.4 0c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6 6 2.7 6 6zM648.7 301.1c0-10.1-8.2-18.4-18.4-18.4-10.1 0-18.4 8.2-18.4 18.4 0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4zm-24.4 0c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6c-3.3.1-6-2.6-6-6zM666.4 346.9c-2.3-.9-5-.4-6.8 1.4-8.1 8.3-21.4 8-21.6 8h-.2c-3.3 0-6 2.6-6.2 5.9-.1 3.4 2.5 6.3 5.9 6.4.6 0 10.4.3 20.4-4.3v100.9c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V352.6c-.1-2.5-1.6-4.8-3.9-5.7zM55.7 471.4c3.4 0 6.2-2.8 6.2-6.2V364.3c10 4.6 19.8 4.3 20.4 4.3 3.4-.1 6.1-3 5.9-6.4-.1-3.4-3-6.1-6.4-5.9-.1 0-13.5.3-21.6-8-1.8-1.8-4.4-2.3-6.8-1.4-2.3.9-3.8 3.2-3.8 5.7v112.7c-.1 3.4 2.7 6.1 6.1 6.1zM671.3 574.3c0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h40c3.4 0 6.2-2.7 6.2-6.2zM629.8 598c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-15.4c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.4zM644.8 609.4c0-3.4-2.8-6.2-6.2-6.2h-38.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.7 6.2-6.2zM620.6 627.1c0-3.4-2.8-6.2-6.2-6.2h-29.9c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2zM565.1 638.6c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-17zM665.1 532.8h-22.3c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h22.3c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 550.5H634c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h31.1c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 497.5h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM665.1 515.2h-15.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.2c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2z",className:"st2"}),Object(h.createElement)("circle",{cx:"55.5",cy:"485.6",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"80.5",cy:"627.3",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"120.3",cy:"645",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M54.9 580.7h40c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM105.6 585.9H90.2c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h15.4c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM119.6 603.5H81.4c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.8 6.2-6.2 0-3.5-2.8-6.2-6.2-6.2zM135.5 621.1h-29.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM131.7 645c0 3.4 2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-17c-3.4 0-6.2 2.8-6.2 6.2zM54.9 545.4h22.3c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 563.1H86c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 510.1h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 527.7h15.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM360 767.1c.1-.1 0-.1 0-.2v.2zM641.2 202.7c.1 0 .1 0 0 0 2.8 0 5.3-1.9 6-4.7 2.2-8.8 1.3-16.3-2.9-22.5-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.4 9 19 9.3 20.2 9.4zm-7-20.2c1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6-1.6-2-2.4-4.6-2.4-7.9 2 1 4.2 2.6 5.7 4.8zM601 113.3c-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.2 9 18.8 9.3 20.1 9.3 2.8 0 5.3-1.9 6-4.7 2.3-8.6 1.4-16.2-2.8-22.4zm-13.5 10.1c-1.6-2-2.4-4.6-2.4-7.9 2.1 1 4.3 2.6 5.7 4.8 1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6zM97.3 163.4c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.6-3.2-3.6-5.3-6.8-4.9zm-6.7 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.8 5.9-2.3 7.9zM139.7 101.2c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.7-3.2-3.6-5.3-6.8-4.9zm-6.8 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.7 5.9-2.3 7.9zM555.1 392c.4 3.2 3 5.5 6.1 5.5h.7c3.4-.4 5.8-3.5 5.4-6.9-6.2-54-43.1-92.2-44.7-93.8-2.4-2.4-6.3-2.5-8.7-.1-2.4 2.4-2.5 6.3-.1 8.7.4.4 35.6 36.9 41.3 86.6zM159.1 397.4h.7c3.1 0 5.8-2.3 6.1-5.5 5.7-49.7 40.9-86.2 41.2-86.5 2.4-2.4 2.3-6.4-.1-8.7-2.4-2.4-6.4-2.4-8.7.1-1.6 1.6-38.4 39.8-44.7 93.8-.3 3.4 2.1 6.4 5.5 6.8z",className:"st2"})))),ge=function(e){u()(a,e);var t=Y(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).runAjax=e.runAjax.bind(i()(e)),e.runPluginInstall=e.runPluginInstall.bind(i()(e)),e.runPluginInstallSingle=e.runPluginInstallSingle.bind(i()(e)),e.runSubscribe=e.runSubscribe.bind(i()(e)),e.runSubscribeSingle=e.runSubscribeSingle.bind(i()(e)),e.loadTemplateData=e.loadTemplateData.bind(i()(e)),e.reloadTemplateData=e.reloadTemplateData.bind(i()(e)),e.loadPluginData=e.loadPluginData.bind(i()(e)),e.focusMode=e.focusMode.bind(i()(e)),e.fullFocusMode=e.fullFocusMode.bind(i()(e)),e.jumpToImport=e.jumpToImport.bind(i()(e)),e.selectedMode=e.selectedMode.bind(i()(e)),e.selectedFullMode=e.selectedFullMode.bind(i()(e)),e.backToDash=e.backToDash.bind(i()(e)),e.saveConfig=e.saveConfig.bind(i()(e)),e.state={category:"all",activeTemplate:"",colorPalette:"",fontPair:"",search:null,isFetching:!1,isImporting:!1,isSelected:!1,response:"",isPageSelected:!1,starterSettings:kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{},selectedPage:"home",progress:"",focusMode:!1,finished:!1,overrideColors:!1,overrideFonts:!1,isOpenCheckColor:!1,isOpenCheckFont:!1,isOpenCheckPast:!1,removePast:!1,errorTemplates:!1,templates:kadenceStarterParams.templates?kadenceStarterParams.templates:[],etemplates:kadenceStarterParams.etemplates?kadenceStarterParams.etemplates:[],activeTemplates:!1,palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[],logo:kadenceStarterParams.logo?kadenceStarterParams.logo:"",hasContent:!!kadenceStarterParams.has_content&&kadenceStarterParams.has_content,hasPastContent:!!kadenceStarterParams.has_previous&&kadenceStarterParams.has_previous,isSaving:!1,isLoadingPlugins:!1,activePlugins:!1,showForm:!0,templatePlugins:"",isSubscribed:!!kadenceStarterParams.subscribed,email:kadenceStarterParams.user_email,privacy:!1,emailError:!1,privacyError:!1,settingOpen:!1,installContent:!0,installCustomizer:!0,installWidgets:!0},e}return c()(a,[{key:"saveConfig",value:function(e,t){var a=this;this.setState({isSaving:!0});var r=kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{};r[e]||(r[e]=""),r[e]=t,this.setState({starterSettings:r}),new wp.api.models.Settings({kadence_starter_templates_config:JSON.stringify(r)}).save().then((function(e){a.setState({starterSettings:r,isSaving:!1}),kadenceStarterParams.starterSettings=JSON.stringify(r)}))}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"focusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!1,activePlugins:!1})}},{key:"fullFocusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!0,activePlugins:!1})}},{key:"jumpToImport",value:function(e){this.setState({isImporting:!0,activeTemplate:e,focusMode:!0,isSelected:!0,fontPair:"",colorPalette:"",activePlugins:!1})}},{key:"selectedFullMode",value:function(){this.setState({isSelected:!0})}},{key:"selectedMode",value:function(e){this.setState({selectedPage:e,isPageSelected:!0,isImporting:!0})}},{key:"backToDash",value:function(){this.setState({isFetching:!1,activeTemplate:"",activePlugins:!1,overrideColors:!1,overrideFonts:!1,colorPalette:"",fontPair:"",focusMode:!1,finished:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",selectedPage:"home"})}},{key:"reloadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_reload_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=X(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_get_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=X(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadPluginData",value:function(e,t){this.setState({isLoadingPlugins:!0});var a=new FormData;a.append("action","kadence_check_plugin_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){e&&(void 0!==e.success?r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}):"object"===v()(e)&&null!==e?r.setState({templatePlugins:e,activePlugins:!0,isLoadingPlugins:!1}):r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}))})).fail((function(e){console.log(e),r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1})}))}},{key:"runPluginInstallSingle",value:function(e,t,a){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var r=new FormData;r.append("action","kadence_import_install_plugins"),r.append("security",kadenceStarterParams.ajax_nonce),r.append("selected",e),r.append("builder",a),r.append("page_id",t),this.runPageAjax(r)}},{key:"runSubscribeSingle",value:function(e){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var t=new FormData;t.append("action","kadence_import_subscribe"),t.append("security",kadenceStarterParams.ajax_nonce),t.append("email",e),this.runPageAjax(t)}},{key:"runRemovePast",value:function(e,t){this.setState({progress:"remove",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_remove_past_import_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runPluginInstall",value:function(e,t){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_import_install_plugins"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runSubscribe",value:function(e){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var t=new FormData;t.append("action","kadence_import_subscribe"),t.append("security",kadenceStarterParams.ajax_nonce),t.append("email",e),this.runAjax(t)}},{key:"runPageAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runPageAjax(e);else if(void 0!==a.status&&"subscribeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),t.runPageAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){var s;t.setState({progress:"content"}),(s=new FormData).append("action","kadence_import_single_data"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),s.append("override_colors",t.state.overrideColors),s.append("override_fonts",t.state.overrideFonts),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair),t.runPageAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):"emailDomainPostError"===a||"emailDomainPreError"===a?t.setState({isFetching:!1,progress:"",showForm:!0,emailError:!0}):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})})).fail((function(e){t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"runAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runAjax(e);else if(void 0!==a.status&&"customizerAJAX"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"afterAllImportAJAX"===a.status){t.setState({progress:"widgets"}),(s=new FormData).append("action","kadence_after_import_data"),s.append("security",kadenceStarterParams.ajax_nonce),t.runAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installContent?(t.setState({progress:"content"}),s.append("action","kadence_import_demo_data"),s.append("builder",t.state.starterSettings.builderType),s.append("selected",t.state.activeTemplate),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair)):t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"removeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else if(void 0!==a.status&&"subscribeSuccess"===a.status){var s=new FormData;t.state.removePast?(this.setState({progress:"remove"}),s.append("action","kadence_remove_past_import_data")):(t.setState({progress:"plugins"}),s.append("action","kadence_import_install_plugins")),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):void 0===a.success||a.success?(console.log(a),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+Z("Failed Import. Something went wrong internally. Please try again.","kadence-starter-templates")+"</p></div>"})})).fail((function(e){console.log(e),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"render",value:function(){for(var e=this,t=["all"],a=0;a<this.state.templates.length;a++)for(var r=0;r<this.state.templates[a].categories.length;r++)t.includes(this.state.templates[a].categories[r])||t.push(this.state.templates[a].categories[r]);t.map((function(t){return{value:t,label:e.capitalizeFirstLetter(t)}}));var n=Z("Gutenberg","kadence-starter-templates"),s=he;"elementor"===this.state.starterSettings.builderType&&(n=Z("Elementor","kadence-starter-templates"),s=ve),"custom"===this.state.starterSettings.builderType&&(n=kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates"),s=kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"components-menu-items__item-icon custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be);var c=!(!this.state.isSaving&&!1!==this.state.activeTemplates&&!this.state.errorTemplates),o=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1;return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",Z("Selected Page:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(h.createElement)(fe,{title:Z("Advanced Settings","kadence-blocks"),initialOpen:e.state.settingOpen,onToggle:function(t){return e.state.settingOpen?e.setState({settingOpen:!1}):e.setState({settingOpen:!0})}},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Page Template Plugins","kadence-starter-templates"))),e.state.isLoadingPlugins&&Object(h.createElement)(ce,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(te,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(te,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(e.state.templatePlugins,(function(e){var t=e.state,r=e.src,n=e.title;return"active"!==t&&"bundle"===r&&(a=!0),"active"===t||"thirdparty"!==r&&"unknown"!==r||!0,Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===r?" bundle-install-required":"")},n," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===r?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(te,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},Z("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?Z("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},Z("Unknown","kadence-starter-templates")))}))))),Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("*Single Page templates will follow your website current global colors and typography settings, you can import without effecting your current site. Or you can optionally override your websites global colors and typography by enabling the settings below.","kadence-starter-templates")),Object(h.createElement)(pe,{label:Z("Override Your Sites Global Colors?","kadence-starter-templates"),checked:void 0!==e.state.overrideColors&&e.state.overrideColors,onChange:function(t){return e.state.overrideColors?e.setState({overrideColors:!1}):e.setState({isOpenCheckColor:!0})}}),e.state.isOpenCheckColor?Object(h.createElement)(se,{className:"ksp-confirm-modal",title:Z("Override Your Sites Colors on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckColor:!1})}},Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("This will override the customizer settings for global colors on your current site when you import this page template.","kadence-starter-templates")),Object(h.createElement)("div",{className:"ksp-override-model-buttons"},Object(h.createElement)(le,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!1})}},Z("Cancel","kadence-starter-templates")),Object(h.createElement)(le,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!0})}},Z("Override Colors","kadence-starter-templates")))):null,e.state.overrideColors&&e.state.colorPalette&&Object(h.createElement)(te,null,Object(h.createElement)("h3",null,Z("Selected Color Palette","kadence-starter-templates")),j()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(h.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},j()(r,(function(e,t){return Object(h.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(h.createElement)(pe,{label:Z("Override Your Sites Fonts?","kadence-starter-templates"),checked:void 0!==e.state.overrideFonts&&e.state.overrideFonts,onChange:function(t){return e.state.overrideFonts?e.setState({overrideFonts:!1}):e.setState({isOpenCheckFont:!0})}}),e.state.isOpenCheckFont?Object(h.createElement)(se,{className:"ksp-confirm-modal",title:Z("Override Your Sites Fonts on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckFont:!1})}},Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("This will override the customizer typography settings on your current site when you import this page template.","kadence-starter-templates")),Object(h.createElement)("div",{className:"ksp-override-model-buttons"},Object(h.createElement)(le,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!1})}},Z("Cancel","kadence-starter-templates")),Object(h.createElement)(le,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!0})}},Z("Override Fonts","kadence-starter-templates")))):null,e.state.fontPair&&e.state.overrideFonts&&Object(h.createElement)(te,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},Z("Selected Font Pair","kadence-starter-templates")),j()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(h.createElement)("div",{className:"kst-selected-font-pair"},Object(h.createElement)("img",{src:r,className:"font-pairing"}),Object(h.createElement)("h4",null,n))})))),"subscribe"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.subscribe_progress),"plugins"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_new_progress),e.state.isFetching&&Object(h.createElement)(ce,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("This Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://kadence-theme.com/"},Z("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,a&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!a&&Object(h.createElement)(te,null,e.state.showForm&&!e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(G,{emailError:e.state.emailError,onRun:function(t){return e.runSubscribeSingle(t)}}),Object(h.createElement)(le,{className:"kb-skip-start subscribe",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},Z("Skip, start importing page","kadence-starter-templates"))),e.state.showForm&&e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(le,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},Z("Start Importing Page","kadence-starter-templates"))))))))},i=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1,r=!1;return Object(h.createElement)(te,null,Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image,alt:t.name}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name)))))),Object(h.createElement)(se,{className:"kst-import-modal",title:Z("Import Starter Template"),onRequestClose:function(){return!e.state.isFetching&&e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",focusMode:!1,isImporting:!1,progress:""})}},!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("This Starter Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://kadence-theme.com/"},Z("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,e.state.hasContent&&Object(h.createElement)("div",{className:"kadence_starter_templates_notice"},e.state.hasPastContent?Object(h.createElement)(te,null,kadenceStarterParams.notice_previous):Object(h.createElement)(te,null,kadenceStarterParams.notice)),e.state.hasPastContent&&Object(h.createElement)(te,null,Object(h.createElement)(pe,{label:Z("Delete Previously Imported Posts and Images?","kadence-starter-templates"),checked:void 0!==e.state.removePast&&e.state.removePast,onChange:function(t){return e.state.removePast?e.setState({removePast:!1}):e.setState({removePast:!0})}})),Object(h.createElement)(fe,{title:Z("Import Details","kadence-blocks"),initialOpen:!1},Object(h.createElement)("div",{className:"required-plugins-list"},Object(h.createElement)("h3",{className:"required-plugins-list-header"},Z("Required Plugins","kadence-starter-templates")),e.state.isLoadingPlugins&&Object(h.createElement)(ce,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(te,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(te,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;return"active"!==t&&"bundle"===n&&(r=!0),"active"===t||"thirdparty"!==n&&"unknown"!==n||(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===n?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(te,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},Z("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(r=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?Z("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},Z("Unknown","kadence-starter-templates")))})))))),e.state.colorPalette&&Object(h.createElement)(te,null,Object(h.createElement)("h3",null,Z("Selected Color Palette","kadence-starter-templates")),j()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(h.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},j()(r,(function(e,t){return Object(h.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),e.state.fontPair&&Object(h.createElement)(te,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},Z("Selected Font Pair","kadence-starter-templates")),j()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(h.createElement)("div",{className:"kst-selected-font-pair"},Object(h.createElement)("img",{src:r,className:"font-pairing"}),Object(h.createElement)("h4",null,n))})))),Object(h.createElement)(fe,{title:Z("Advanced Settings","kadence-blocks"),initialOpen:!1},Object(h.createElement)(pe,{label:Z("Import Customizer Settings","kadence-starter-templates"),checked:void 0!==e.state.installCustomizer&&e.state.installCustomizer,onChange:function(t){return e.state.installCustomizer?e.setState({installCustomizer:!1}):e.setState({installCustomizer:!0})}}),Object(h.createElement)(pe,{label:Z("Import Content","kadence-starter-templates"),checked:void 0!==e.state.installContent&&e.state.installContent,onChange:function(t){return e.state.installContent?e.setState({installContent:!1}):e.setState({installContent:!0})}})),a&&Object(h.createElement)("div",{className:"install-third-party-notice"},Object(h.createElement)("p",{className:"desc-small"},Z("*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.","kadence-starter-templates")),j()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;if("active"!==t)return"active"!==t&&"bundle"===n&&(r=!0),"active"===t||"thirdparty"!==n&&"unknown"!==n||(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t))}))),"subscribe"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.subscribe_progress),"remove"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.remove_progress),"plugins"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_new_progress),"customizer"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.customizer_progress),"widgets"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.widgets_progress),e.state.isFetching&&Object(h.createElement)(ce,null),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,a&&Object(h.createElement)(te,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!r&&Object(h.createElement)(le,{className:"kt-defaults-save import-partial-btn",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Skip and Import with Partial Content"))),!a&&Object(h.createElement)(te,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!r&&Object(h.createElement)(te,null,e.state.showForm&&!e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(G,{emailError:e.state.emailError,onRun:function(t){return e.runSubscribe(t)}}),Object(h.createElement)(le,{className:"kb-skip-start",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Skip, Start Importing"))),e.state.showForm&&e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(le,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Start Importing","kadence-starter-templates")))))))))},l=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)(te,null,Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Page Templates","kadence-starter-templates"))),Object(h.createElement)("div",{className:"templates-grid"},j()(t.pages,(function(t){var a=t.title,r=t.id,n=t.thumbnail;return Object(h.createElement)("div",{className:"kst-template-item"},Object(h.createElement)(le,{key:r,className:"kst-import-btn",isSmall:!0,onClick:function(){return e.selectedMode(r)}},Object(h.createElement)(y.a,{offsetBottom:200},Object(h.createElement)("img",{src:n,alt:a})),Object(h.createElement)("div",{className:"demo-title"},Object(h.createElement)("h4",null,a," ",Object(h.createElement)("span",null,Z("View Details","kadence-starter-templates"))))))}))),Object(h.createElement)("div",{className:"kst-import-selection-bottom"},Object(h.createElement)(le,{className:"kt-import-fullsite",isPrimary:!0,onClick:function(){return e.selectedFullMode()}},Z("Import Full Site","kadence-starter-templates")))))},u=function(){var t=e;return Object(h.createElement)("div",{className:"templates-grid"},Object.keys(e.state.activeTemplates).map((function(e,a){var r=t.state.activeTemplates[e].name,n=t.state.activeTemplates[e].slug,s=t.state.activeTemplates[e].image,c=t.state.activeTemplates[e].categories,o=t.state.activeTemplates[e].keywords,i=t.state.activeTemplates[e].pro,l=(t.state.activeTemplates[e].member,t.state.activeTemplates[e].pages);if(("all"===t.state.category||c.includes(t.state.category))&&(!t.state.search||o&&o.some((function(e){return e.toLowerCase().includes(t.state.search.toLowerCase())}))))return Object(h.createElement)("div",{className:"kst-template-item"},Object(h.createElement)(le,{key:e,className:"kst-import-btn",isSmall:!0,onClick:function(){return"custom"===t.state.starterSettings.builderType?t.jumpToImport(n):t.fullFocusMode(n)}},Object(h.createElement)(y.a,{offsetBottom:200},Object(h.createElement)("img",{src:l&&l.home&&l.home.thumbnail?l.home.thumbnail:s,alt:r})),Object(h.createElement)("div",{className:"demo-title"},Object(h.createElement)("h4",null,r))),void 0!==i&&i&&Object(h.createElement)(te,null,Object(h.createElement)("span",{className:"kb-pro-template"},Z("Pro","kadence-starter-sites"))))})))},p=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",Z("Selected Page:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))},m=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name))),Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))};return Object(h.createElement)(te,null,Object(h.createElement)("div",{class:"kadence_theme_dash_head"},Object(h.createElement)("div",{class:"kadence_theme_dash_head_container"},Object(h.createElement)("div",{class:"kadence_theme_dash_logo"},Object(h.createElement)("img",{src:this.state.logo})),this.state.focusMode&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},this.state.isPageSelected?Object(h.createElement)(de,{text:Z("Back to Individual Pages Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return!e.state.isFetching&&e.setState({colorPalette:"",finished:!1,selectedPage:"home",focusMode:!0,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:""})}})):Object(h.createElement)(de,{text:Z("Back to Starter Templates Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return e.backToDash()}}))),this.state.finished&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},Object(h.createElement)(de,{text:Z("Back to Starter Templates Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return e.backToDash()}}))),Object(h.createElement)("div",{class:"kadence_starter_builder_type"},this.state.starterSettings&&this.state.starterSettings.builderType&&Object(h.createElement)(oe,{className:"my-container-class-name",contentClassName:"kst-type-popover",position:"bottom left",renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(h.createElement)(le,{onClick:a,"aria-expanded":t,icon:s},n,Object(h.createElement)(ie,{className:"kst-chev",icon:J}))},renderContent:function(t){t.isOpen;var a=t.onToggle;return Object(h.createElement)("div",null,Object(h.createElement)(me,{icon:he,className:"blocks"===e.state.starterSettings.builderType?"active-item":"",isSelected:"blocks"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","blocks"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},Z("Gutenberg","kadence-starter-templates")),Object(h.createElement)(me,{icon:ve,className:"elementor"===e.state.starterSettings.builderType?"active-item":"",isSelected:"elementor"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","elementor"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},Z("Elementor","kadence-starter-templates")),kadenceStarterParams.ctemplates&&Object(h.createElement)(me,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be,className:"custom"===e.state.starterSettings.builderType?"active-item":"",isSelected:"custom"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","custom"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates")))}})),!1!==this.state.activeTemplates&&this.state.starterSettings.builderType&&Object(h.createElement)("div",{class:"kadence_theme_dash_reload"},Object(h.createElement)(de,{text:Z("Sync with Cloud")},Object(h.createElement)(le,{className:"kt-reload-templates",icon:U,onClick:function(){return e.reloadTemplateData()}}))))),Object(h.createElement)("div",{class:"kadence_theme_starter_dash_inner"},this.state.starterSettings&&this.state.starterSettings.builderType?Object(h.createElement)((function(){return Object(h.createElement)(te,null,c?Object(h.createElement)("div",{className:"main-panel"},Object(h.createElement)("div",{className:"kst-overlay-saving"},!e.state.errorTemplates&&Object(h.createElement)(ce,null),e.state.errorTemplates&&Object(h.createElement)(te,null,Object(h.createElement)("h2",{style:{textAlign:"center"}},Z("Error, Unable to access template database, please try re-downloading","kadence-starter-templates")),Object(h.createElement)("div",{style:{textAlign:"center"}},Object(h.createElement)(le,{className:"kt-reload-templates",icon:U,onClick:function(){return e.reloadTemplateData()}},Z(" Sync with Cloud","kadence-starter-templates")))),!1===e.state.activeTemplates&&Object(h.createElement)(te,null,e.loadTemplateData()))):Object(h.createElement)("div",{className:"main-panel"},e.state.focusMode&&Object(h.createElement)(te,null,e.state.isImporting&&Object(h.createElement)(te,null,e.state.isPageSelected?Object(h.createElement)(o,null):Object(h.createElement)(i,null)),!e.state.isImporting&&e.state.isSelected&&Object(h.createElement)(M,{item:e.state.activeTemplates[e.state.activeTemplate],colorPalette:e.state.colorPalette,fontPair:e.state.fontPair,onChange:function(t){e.setState(t)}}),!e.state.isImporting&&!e.state.isSelected&&Object(h.createElement)(l,null)),!e.state.focusMode&&!e.state.finished&&Object(h.createElement)(u,null),e.state.finished&&Object(h.createElement)(te,null,e.state.isPageSelected?Object(h.createElement)(p,null):Object(h.createElement)(m,null))))}),null):Object(h.createElement)((function(){return Object(h.createElement)("div",{className:"kst-choose-builder-wrap".concat(kadenceStarterParams.ctemplates?" adjust-to-three-column":"")},Object(h.createElement)("div",{className:"kst-choose-builder-center"},Object(h.createElement)("h2",{className:"kst-choose-builder-title"},Z("Choose a Builder","kadence-starter-templates")),Object(h.createElement)("div",{className:"kst-choose-builder-inner"},kadenceStarterParams.ctemplates&&Object(h.createElement)(le,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","custom")}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates")),Object(h.createElement)(le,{icon:he,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","blocks")}},Z("Gutenberg","kadence-starter-templates")),Object(h.createElement)(le,{icon:ve,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","elementor")}},Z("Elementor","kadence-starter-templates"))),e.state.isSaving&&Object(h.createElement)("div",{className:"kst-overlay-saving"},Object(h.createElement)(ce,null))))}),null)))}}]),a}(ae);wp.domReady((function(){re(Object(h.createElement)(ge,null),document.querySelector(".kadence_starter_dashboard_main"))}))}]);
1
+ !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=146)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){var r=a(31),n=a(50),s=a(129),c=a(4);e.exports=function(e,t){return(c(e)?r:s)(e,n(t,3))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,a){var r=a(35),n="object"==typeof self&&self&&self.Object===Object&&self,s=r||n||Function("return this")();e.exports=s},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){function a(t){return e.exports=a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(t)}e.exports=a},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,a){var r=a(63),n=a(68);e.exports=function(e,t){var a=n(e,t);return r(a)?a:void 0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function a(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}},function(e,t,a){var r=a(49);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,a){var r=a(20),n=a(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},function(e,t,a){var r=a(16),n=a(64),s=a(65),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?n(e):s(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,a){var r=a(53),n=a(54),s=a(55),c=a(56),o=a(57);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(33);e.exports=function(e,t){for(var a=e.length;a--;)if(r(e[a][0],t))return a;return-1}},function(e,t,a){var r=a(3).Symbol;e.exports=r},function(e,t,a){var r=a(7)(Object,"create");e.exports=r},function(e,t,a){var r=a(77);e.exports=function(e,t){var a=e.__data__;return r(t)?a["string"==typeof t?"string":"hash"]:a.map}},function(e,t,a){var r=a(30);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=a=function(e){return typeof e}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(t)}e.exports=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=a(135),s=d(n),c=d(a(136)),o=a(139),i=a(140),l=d(a(141)),u=d(a(142)),p=d(a(143)),m=d(a(144));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.lazyLoadHandler=a.lazyLoadHandler.bind(a),e.throttle>0&&(e.debounce?a.lazyLoadHandler=(0,l.default)(a.lazyLoadHandler,e.throttle):a.lazyLoadHandler=(0,u.default)(a.lazyLoadHandler,e.throttle)),a.state={visible:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this._mounted=!0;var e=this.getEventNode();this.lazyLoadHandler(),this.lazyLoadHandler.flush&&this.lazyLoadHandler.flush(),(0,i.add)(window,"resize",this.lazyLoadHandler),(0,i.add)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.add)(window,"scroll",this.lazyLoadHandler)}},{key:"componentWillReceiveProps",value:function(){this.state.visible||this.lazyLoadHandler()}},{key:"shouldComponentUpdate",value:function(e,t){return t.visible}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this.lazyLoadHandler.cancel&&this.lazyLoadHandler.cancel(),this.detachListeners()}},{key:"getEventNode",value:function(){return(0,p.default)((0,o.findDOMNode)(this))}},{key:"getOffset",value:function(){var e=this.props,t=e.offset,a=e.offsetVertical,r=e.offsetHorizontal,n=e.offsetTop,s=e.offsetBottom,c=e.offsetLeft,o=e.offsetRight,i=e.threshold||t,l=a||i,u=r||i;return{top:n||l,bottom:s||l,left:c||u,right:o||u}}},{key:"lazyLoadHandler",value:function(){if(this._mounted){var e=this.getOffset(),t=(0,o.findDOMNode)(this),a=this.getEventNode();if((0,m.default)(t,a,e)){var r=this.props.onContentVisible;this.setState({visible:!0},(function(){r&&r()})),this.detachListeners()}}}},{key:"detachListeners",value:function(){var e=this.getEventNode();(0,i.remove)(window,"resize",this.lazyLoadHandler),(0,i.remove)(e,"scroll",this.lazyLoadHandler),e!==window&&(0,i.remove)(window,"scroll",this.lazyLoadHandler)}},{key:"render",value:function(){var e=this.props,t=e.children,a=e.className,r=e.height,c=e.width,o=this.state.visible,i={height:r,width:c},l="LazyLoad"+(o?" is-visible":"")+(a?" "+a:"");return s.default.createElement(this.props.elementType,{className:l,style:i},o&&n.Children.only(t))}}]),t}(n.Component);t.default=f,f.propTypes={children:c.default.node.isRequired,className:c.default.string,debounce:c.default.bool,elementType:c.default.string,height:c.default.oneOfType([c.default.string,c.default.number]),offset:c.default.number,offsetBottom:c.default.number,offsetHorizontal:c.default.number,offsetLeft:c.default.number,offsetRight:c.default.number,offsetTop:c.default.number,offsetVertical:c.default.number,threshold:c.default.number,throttle:c.default.number,width:c.default.oneOfType([c.default.string,c.default.number]),onContentVisible:c.default.func},f.defaultProps={elementType:"div",debounce:!0,offset:0,offsetBottom:0,offsetHorizontal:0,offsetLeft:0,offsetRight:0,offsetTop:0,offsetVertical:0,throttle:250}},function(e,t,a){var r=a(7)(a(3),"Map");e.exports=r},function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,a){var r=a(69),n=a(76),s=a(78),c=a(79),o=a(80);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(98),n=a(105),s=a(28);e.exports=function(e){return s(e)?r(e):n(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,a){var r=a(34),n=a(27);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},function(e,t,a){var r=a(4),n=a(30),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!n(e))||(c.test(e)||!s.test(e)||null!=t&&e in Object(t))}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}},function(e,t,a){var r=a(14),n=a(58),s=a(59),c=a(60),o=a(61),i=a(62);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=s,l.prototype.get=c,l.prototype.has=o,l.prototype.set=i,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,a){var r=a(12),n=a(24);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(this,a(23))},function(e,t){var a=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,a){var r=a(81),n=a(13);e.exports=function e(t,a,s,c,o){return t===a||(null==t||null==a||!n(t)&&!n(a)?t!=t&&a!=a:r(t,a,s,c,e,o))}},function(e,t,a){var r=a(82),n=a(85),s=a(86);e.exports=function(e,t,a,c,o,i){var l=1&a,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=i.get(e);if(m&&i.get(t))return m==t;var d=-1,f=!0,b=2&a?new r:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var v=e[d],h=t[d];if(c)var g=l?c(h,v,d,t,e,i):c(v,h,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(b){if(!n(t,(function(e,t){if(!s(b,t)&&(v===e||o(v,e,a,c,i)))return b.push(t)}))){f=!1;break}}else if(v!==h&&!o(v,h,a,c,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t,a){var r=a(100),n=a(13),s=Object.prototype,c=s.hasOwnProperty,o=s.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(e){return n(e)&&c.call(e,"callee")&&!o.call(e,"callee")};e.exports=i},function(e,t,a){(function(e){var r=a(3),n=a(101),s=t&&!t.nodeType&&t,c=s&&"object"==typeof e&&e&&!e.nodeType&&e,o=c&&c.exports===s?r.Buffer:void 0,i=(o?o.isBuffer:void 0)||n;e.exports=i}).call(this,a(41)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var a=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&a.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,a){var r=a(102),n=a(103),s=a(104),c=s&&s.isTypedArray,o=c?n(c):r;e.exports=o},function(e,t,a){var r=a(24);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(a){return null!=a&&(a[e]===t&&(void 0!==t||e in Object(a)))}}},function(e,t,a){var r=a(47),n=a(19);e.exports=function(e,t){for(var a=0,s=(t=r(t,e)).length;null!=e&&a<s;)e=e[n(t[a++])];return a&&a==s?e:void 0}},function(e,t,a){var r=a(4),n=a(29),s=a(117),c=a(120);e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:s(c(e))}},,function(e,t){function a(t,r){return e.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(t,r)}e.exports=a},function(e,t,a){var r=a(51),n=a(115),s=a(125),c=a(4),o=a(126);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?c(e)?n(e[0],e[1]):r(e):o(e)}},function(e,t,a){var r=a(52),n=a(114),s=a(45);e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(a){return a===e||r(a,e,t)}}},function(e,t,a){var r=a(32),n=a(37);e.exports=function(e,t,a,s){var c=a.length,o=c,i=!s;if(null==e)return!o;for(e=Object(e);c--;){var l=a[c];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++c<o;){var u=(l=a[c])[0],p=e[u],m=l[1];if(i&&l[2]){if(void 0===p&&!(u in e))return!1}else{var d=new r;if(s)var f=s(p,m,u,e,t,d);if(!(void 0===f?n(m,p,3,s,d):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,a){var r=a(15),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,a=r(t,e);return!(a<0)&&(a==t.length-1?t.pop():n.call(t,a,1),--this.size,!0)}},function(e,t,a){var r=a(15);e.exports=function(e){var t=this.__data__,a=r(t,e);return a<0?void 0:t[a][1]}},function(e,t,a){var r=a(15);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,a){var r=a(15);e.exports=function(e,t){var a=this.__data__,n=r(a,e);return n<0?(++this.size,a.push([e,t])):a[n][1]=t,this}},function(e,t,a){var r=a(14);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,a){var r=a(14),n=a(22),s=a(25);e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var c=a.__data__;if(!n||c.length<199)return c.push([e,t]),this.size=++a.size,this;a=this.__data__=new s(c)}return a.set(e,t),this.size=a.size,this}},function(e,t,a){var r=a(34),n=a(66),s=a(24),c=a(36),o=/^\[object .+?Constructor\]$/,i=Function.prototype,l=Object.prototype,u=i.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||n(e))&&(r(e)?m:o).test(c(e))}},function(e,t,a){var r=a(16),n=Object.prototype,s=n.hasOwnProperty,c=n.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),a=e[o];try{e[o]=void 0;var r=!0}catch(e){}var n=c.call(e);return r&&(t?e[o]=a:delete e[o]),n}},function(e,t){var a=Object.prototype.toString;e.exports=function(e){return a.call(e)}},function(e,t,a){var r,n=a(67),s=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},function(e,t,a){var r=a(3)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,a){var r=a(70),n=a(14),s=a(22);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||n),string:new r}}},function(e,t,a){var r=a(71),n=a(72),s=a(73),c=a(74),o=a(75);function i(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}i.prototype.clear=r,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=c,i.prototype.set=o,e.exports=i},function(e,t,a){var r=a(17);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return n.call(t,e)?t[e]:void 0}},function(e,t,a){var r=a(17),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},function(e,t,a){var r=a(17);e.exports=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,a){var r=a(18);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(18);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(18);e.exports=function(e,t){var a=r(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this}},function(e,t,a){var r=a(32),n=a(38),s=a(87),c=a(91),o=a(109),i=a(4),l=a(40),u=a(43),p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,d,f,b){var v=i(e),h=i(t),g=v?"[object Array]":o(e),j=h?"[object Array]":o(t),k=(g="[object Arguments]"==g?p:g)==p,y=(j="[object Arguments]"==j?p:j)==p,O=g==j;if(O&&l(e)){if(!l(t))return!1;v=!0,k=!1}if(O&&!k)return b||(b=new r),v||u(e)?n(e,t,a,d,f,b):s(e,t,g,a,d,f,b);if(!(1&a)){var P=k&&m.call(e,"__wrapped__"),S=y&&m.call(t,"__wrapped__");if(P||S){var E=P?e.value():e,_=S?t.value():t;return b||(b=new r),f(E,_,a,d,b)}}return!!O&&(b||(b=new r),c(e,t,a,d,f,b))}},function(e,t,a){var r=a(25),n=a(83),s=a(84);function c(e){var t=-1,a=null==e?0:e.length;for(this.__data__=new r;++t<a;)this.add(e[t])}c.prototype.add=c.prototype.push=n,c.prototype.has=s,e.exports=c},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,a){var r=a(16),n=a(88),s=a(33),c=a(38),o=a(89),i=a(90),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,a,r,l,p,m){switch(a){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=o;case"[object Set]":var f=1&r;if(d||(d=i),e.size!=t.size&&!f)return!1;var b=m.get(e);if(b)return b==t;r|=2,m.set(e,t);var v=c(d(e),d(t),r,l,p,m);return m.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,a){var r=a(3).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e,r){a[++t]=[r,e]})),a}},function(e,t){e.exports=function(e){var t=-1,a=Array(e.size);return e.forEach((function(e){a[++t]=e})),a}},function(e,t,a){var r=a(92),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,s,c,o){var i=1&a,l=r(e),u=l.length;if(u!=r(t).length&&!i)return!1;for(var p=u;p--;){var m=l[p];if(!(i?m in t:n.call(t,m)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var b=i;++p<u;){var v=e[m=l[p]],h=t[m];if(s)var g=i?s(h,v,m,t,e,o):s(v,h,m,e,t,o);if(!(void 0===g?v===h||c(v,h,a,s,o):g)){f=!1;break}b||(b="constructor"==m)}if(f&&!b){var j=e.constructor,k=t.constructor;j==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof j&&j instanceof j&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(e),o.delete(t),f}},function(e,t,a){var r=a(93),n=a(95),s=a(26);e.exports=function(e){return r(e,s,n)}},function(e,t,a){var r=a(94),n=a(4);e.exports=function(e,t,a){var s=t(e);return n(e)?s:r(s,a(e))}},function(e,t){e.exports=function(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}},function(e,t,a){var r=a(96),n=a(97),s=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,o=c?function(e){return null==e?[]:(e=Object(e),r(c(e),(function(t){return s.call(e,t)})))}:n;e.exports=o},function(e,t){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length,n=0,s=[];++a<r;){var c=e[a];t(c,a,e)&&(s[n++]=c)}return s}},function(e,t){e.exports=function(){return[]}},function(e,t,a){var r=a(99),n=a(39),s=a(4),c=a(40),o=a(42),i=a(43),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var a=s(e),u=!a&&n(e),p=!a&&!u&&c(e),m=!a&&!u&&!p&&i(e),d=a||u||p||m,f=d?r(e.length,String):[],b=f.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||m&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||f.push(v);return f}},function(e,t){e.exports=function(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}},function(e,t,a){var r=a(12),n=a(13);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,a){var r=a(12),n=a(27),s=a(13),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&n(e.length)&&!!c[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,a){(function(e){var r=a(35),n=t&&!t.nodeType&&t,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,c=s&&s.exports===n&&r.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=o}).call(this,a(41)(e))},function(e,t,a){var r=a(106),n=a(107),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var a in Object(e))s.call(e,a)&&"constructor"!=a&&t.push(a);return t}},function(e,t){var a=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a)}},function(e,t,a){var r=a(108)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(a){return e(t(a))}}},function(e,t,a){var r=a(110),n=a(22),s=a(111),c=a(112),o=a(113),i=a(12),l=a(36),u=l(r),p=l(n),m=l(s),d=l(c),f=l(o),b=i;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=b(new n)||s&&"[object Promise]"!=b(s.resolve())||c&&"[object Set]"!=b(new c)||o&&"[object WeakMap]"!=b(new o))&&(b=function(e){var t=i(e),a="[object Object]"==t?e.constructor:void 0,r=a?l(a):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case m:return"[object Promise]";case d:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=b},function(e,t,a){var r=a(7)(a(3),"DataView");e.exports=r},function(e,t,a){var r=a(7)(a(3),"Promise");e.exports=r},function(e,t,a){var r=a(7)(a(3),"Set");e.exports=r},function(e,t,a){var r=a(7)(a(3),"WeakMap");e.exports=r},function(e,t,a){var r=a(44),n=a(26);e.exports=function(e){for(var t=n(e),a=t.length;a--;){var s=t[a],c=e[s];t[a]=[s,c,r(c)]}return t}},function(e,t,a){var r=a(37),n=a(116),s=a(122),c=a(29),o=a(44),i=a(45),l=a(19);e.exports=function(e,t){return c(e)&&o(t)?i(l(e),t):function(a){var c=n(a,e);return void 0===c&&c===t?s(a,e):r(t,c,3)}}},function(e,t,a){var r=a(46);e.exports=function(e,t,a){var n=null==e?void 0:r(e,t);return void 0===n?a:n}},function(e,t,a){var r=a(118),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,c=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,(function(e,a,r,n){t.push(r?n.replace(s,"$1"):a||e)})),t}));e.exports=c},function(e,t,a){var r=a(119);e.exports=function(e){var t=r(e,(function(e){return 500===a.size&&a.clear(),e})),a=t.cache;return t}},function(e,t,a){var r=a(25);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],s=a.cache;if(s.has(n))return s.get(n);var c=e.apply(this,r);return a.cache=s.set(n,c)||s,c};return a.cache=new(n.Cache||r),a}n.Cache=r,e.exports=n},function(e,t,a){var r=a(121);e.exports=function(e){return null==e?"":r(e)}},function(e,t,a){var r=a(16),n=a(31),s=a(4),c=a(30),o=r?r.prototype:void 0,i=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return n(t,e)+"";if(c(t))return i?i.call(t):"";var a=t+"";return"0"==a&&1/t==-1/0?"-0":a}},function(e,t,a){var r=a(123),n=a(124);e.exports=function(e,t){return null!=e&&n(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,a){var r=a(47),n=a(39),s=a(4),c=a(42),o=a(27),i=a(19);e.exports=function(e,t,a){for(var l=-1,u=(t=r(t,e)).length,p=!1;++l<u;){var m=i(t[l]);if(!(p=null!=e&&a(e,m)))break;e=e[m]}return p||++l!=u?p:!!(u=null==e?0:e.length)&&o(u)&&c(m,u)&&(s(e)||n(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,a){var r=a(127),n=a(128),s=a(29),c=a(19);e.exports=function(e){return s(e)?r(c(e)):n(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,a){var r=a(46);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,a){var r=a(130),n=a(28);e.exports=function(e,t){var a=-1,s=n(e)?Array(e.length):[];return r(e,(function(e,r,n){s[++a]=t(e,r,n)})),s}},function(e,t,a){var r=a(131),n=a(134)(r);e.exports=n},function(e,t,a){var r=a(132),n=a(26);e.exports=function(e,t){return e&&r(e,t,n)}},function(e,t,a){var r=a(133)();e.exports=r},function(e,t){e.exports=function(e){return function(t,a,r){for(var n=-1,s=Object(t),c=r(t),o=c.length;o--;){var i=c[e?o:++n];if(!1===a(s[i],i,s))break}return t}}},function(e,t,a){var r=a(28);e.exports=function(e,t){return function(a,n){if(null==a)return a;if(!r(a))return e(a,n);for(var s=a.length,c=t?s:-1,o=Object(a);(t?c--:++c<s)&&!1!==n(o[c],c,o););return a}}},function(e,t){!function(){e.exports=this.React}()},function(e,t,a){e.exports=a(137)()},function(e,t,a){"use strict";var r=a(138);function n(){}function s(){}s.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,s,c){if(c!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:n};return a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,a){var r,n;void 0===(n="function"==typeof(r=function(){function e(e,t){return function(a,r,n,s){a[e]?a[e](r,n,s):a[t]&&a[t]("on"+r,n)}}return{add:e("addEventListener","attachEvent"),remove:e("removeEventListener","detachEvent")}})?r.call(t,a,t,e):r)||(e.exports=n)},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r,n,s,c,o,i,l=0,u=!1,v=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function j(e){return l=e,o=setTimeout(y,t),u?g(e):c}function k(e){var a=e-i;return void 0===i||a>=t||a<0||v&&e-l>=s}function y(){var e=d();if(k(e))return O(e);o=setTimeout(y,function(e){var a=t-(e-i);return v?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function P(){var e=d(),a=k(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(v)return o=setTimeout(y,t),g(i)}return void 0===o&&(o=setTimeout(y,t)),c}return t=b(t)||0,f(a)&&(u=!!a.leading,s=(v="maxWait"in a)?p(b(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),P.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},P.flush=function(){return void 0===o?c:O(d())},P}}).call(this,a(23))},function(e,t,a){(function(t){var a=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,o="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),u=Object.prototype.toString,p=Math.max,m=Math.min,d=function(){return l.Date.now()};function f(e,t,a){var r,n,s,c,o,i,l=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var a=r,s=n;return r=n=void 0,l=t,c=e.apply(s,a)}function j(e){return l=e,o=setTimeout(y,t),u?g(e):c}function k(e){var a=e-i;return void 0===i||a>=t||a<0||f&&e-l>=s}function y(){var e=d();if(k(e))return O(e);o=setTimeout(y,function(e){var a=t-(e-i);return f?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function P(){var e=d(),a=k(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(f)return o=setTimeout(y,t),g(i)}return void 0===o&&(o=setTimeout(y,t)),c}return t=v(t)||0,b(a)&&(u=!!a.leading,s=(f="maxWait"in a)?p(v(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),P.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},P.flush=function(){return void 0===o?c:O(d())},P}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var o=n.test(e);return o||s.test(e)?c(e.slice(2),o?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,a){var r=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return b(a)&&(r="leading"in a?!!a.leading:r,n="trailing"in a?!!a.trailing:n),f(e,t,{leading:r,maxWait:t,trailing:n})}}).call(this,a(23))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},n=function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")};t.default=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(n(t)))return t;t=t.parentNode}return window}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a,r){if(function(e){return null===e.offsetParent}(t))return!1;var n=void 0,c=void 0,o=void 0,i=void 0;if(void 0===a||a===window)n=window.pageYOffset,o=window.pageXOffset,c=n+window.innerHeight,i=o+window.innerWidth;else{if(!e(a,window,r))return!1;var l=(0,s.default)(a);n=l.top,o=l.left,c=n+a.offsetHeight,i=o+a.offsetWidth}var u=(0,s.default)(t);return n<=u.top+t.offsetHeight+r.top&&c>=u.top-r.bottom&&o<=u.left+t.offsetWidth+r.left&&i>=u.left-r.right};var r,n=a(145),s=(r=n)&&r.__esModule?r:{default:r}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}}},function(e,t,a){"use strict";a.r(t);var r=a(8),n=a.n(r),s=a(9),c=a.n(s),o=a(2),i=a.n(o),l=a(10),u=a.n(l),p=a(11),m=a.n(p),d=a(5),f=a.n(d),b=a(20),v=a.n(b),h=a(0),g=a(1),j=a.n(g),k=a(21),y=a.n(k);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var P=wp.i18n,S=P.__,E=(P.sprintf,wp.element),_=E.Fragment,w=E.Component,x=(E.render,E.PureComponent,wp.components),T=(x.Modal,x.Spinner,x.ButtonGroup),N=(x.Dropdown,x.Button),C=x.ExternalLink,z=(x.ToolbarGroup,x.MenuItem,x.Tooltip),M=function(e){u()(a,e);var t=O(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={colorPalette:e.props.colorPalette?e.props.colorPalette:"",fontPair:e.props.fontPair?e.props.fontPair:"",palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[]},e}return c()(a,[{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"render",value:function(){var e=this,t=this.props.item,a=!0,r=!1,n=!1;return Object(h.createElement)("div",{className:"kadence-starter-templates-preview theme-install-overlay wp-full-overlay expanded",style:{display:"block"}},Object(h.createElement)("div",{className:"wp-full-overlay-sidebar"},Object(h.createElement)("div",{className:"wp-full-overlay-header"},Object(h.createElement)("button",{className:"kst-close-focus-btn close-full-overlay",onClick:function(){return e.props.onChange({activeTemplate:"",colorPalette:"",fontPair:"",focusMode:!1})}})),Object(h.createElement)("div",{className:"wp-full-overlay-sidebar-content"},Object(h.createElement)("div",{className:"install-theme-info"},Object(h.createElement)("div",{className:"theme-info-wrap"},Object(h.createElement)("img",{className:"theme-screenshot",src:t.image,alt:t.name}),Object(h.createElement)("div",{className:"theme-info-title-wrap"},Object(h.createElement)("h3",{className:"theme-name"},t.name),Object(h.createElement)("div",{className:"theme-by"},t.categories.map((function(t){return e.capitalizeFirstLetter(t)})).join(", ")))),Object(h.createElement)("div",{className:"palette-title-wrap"},Object(h.createElement)("h2",{className:"palette-title"},S("Optional: Change Color Scheme","kadence-starter-templates")),Object(h.createElement)(N,{label:S("clear"),className:"kst-clear-palette",disabled:!this.state.colorPalette,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({colorPalette:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:""},"*")}})),Object(h.createElement)(T,{className:"kst-palette-group","aria-label":S("Select a Palette","kadence-starter-templates")},j()(this.state.palettes,(function(t){var a=t.palette,r=t.colors;return Object(h.createElement)(N,{className:"kst-palette-btn",isPrimary:a===e.state.colorPalette,"aria-pressed":a===e.state.colorPalette,onClick:function(){document.getElementById("kadence-starter-preview").contentWindow.postMessage({color:a},"*"),e.setState({colorPalette:a})}},Object(h.createElement)("span",{className:"kst-palette-bg",style:{background:r[4]?r[4]:void 0}}),j()(r,(function(e,t){if(4!==t)return Object(h.createElement)("div",{key:t,style:{width:30,height:30,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(h.createElement)("p",{className:"desc-small"},S("*You can change this after import.","kadence-starter-templates")),Object(h.createElement)("div",{className:"font-title-wrap"},Object(h.createElement)("h2",{className:"font-title"},S("Optional: Change Font Family","kadence-starter-templates")),Object(h.createElement)(N,{label:S("clear"),className:"kst-clear-font",disabled:!this.state.fontPair,icon:"image-rotate",iconSize:10,onClick:function(){e.setState({fontPair:""}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:""},"*")}})),Object(h.createElement)(T,{className:"kst-font-group","aria-label":S("Select a Font","kadence-starter-templates")},j()(this.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;return Object(h.createElement)(z,{text:n},Object(h.createElement)(N,{className:"kst-font-btn".concat(a===e.state.fontPair?" active":""),"aria-pressed":a===e.state.fontPair,onClick:function(){e.setState({fontPair:a}),document.getElementById("kadence-starter-preview").contentWindow.postMessage({font:a},"*")}},Object(h.createElement)("img",{src:r,className:"font-pairing"})))}))),Object(h.createElement)("p",{className:"desc-small"},S("*You can change this after import.","kadence-starter-templates"))),Object(h.createElement)("div",{className:"kadence-starter-required-plugins"},Object(h.createElement)("h2",{className:"kst-required-title"},S("Required Plugins","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){if(kadenceStarterParams.plugins[e])return"active"!==kadenceStarterParams.plugins[e].state&&(a=!1,"thirdparty"===kadenceStarterParams.plugins[e].src&&(r=!0),"bundle"===kadenceStarterParams.plugins[e].src&&(n=!0)),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?S("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state))}))),!a&&Object(h.createElement)(_,null,(r||n)&&Object(h.createElement)("p",{className:"desc-small"},S("*Install Missing/Inactive Premium plugins to import.","kadence-starter-templates")),!r&&!n&&Object(h.createElement)("p",{className:"desc-small"},S("*Missing/Inactive plugins will be installed on import.","kadence-starter-templates"))),void 0!==t.pro&&t.pro&&!t.member&&Object(h.createElement)("div",{className:"notice inline notice-alt notice-warning kadence-pro-notice"},Object(h.createElement)("p",null,Object(h.createElement)("strong",null,"Kadence Pro Starter Site")),Object(h.createElement)("p",null,"To import this starter template you need to install Kadence Pro and Kadence Blocks Pro and activate your license using a ",Object(h.createElement)("strong",null,"Essential or Full Bundle license"),".")))),Object(h.createElement)("div",{class:"wp-full-overlay-footer"},void 0!==t.pro&&t.pro&&!t.member?Object(h.createElement)("div",{className:"kt-upgrade-notice"},Object(h.createElement)("h2",{className:"kst-import-options-title"},S("Kadence Bundle is required","kadence-starter-sites")," "),Object(h.createElement)(C,{className:"kst-upgrade button-hero button button-primary",href:"https://www.kadencewp.com/pricing/"},S("Get Pro Starter Site","kadence-starter-sites"))):Object(h.createElement)(_,null,Object(h.createElement)("h2",{className:"kst-import-options-title"},S("Import Options","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence-starter-templates-preview-actions"},Object(h.createElement)("button",{className:"kst-import-btn button-hero button",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isSelected:!1,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},S("Single Page","kadence-starter-templates")),Object(h.createElement)("button",{className:"kst-import-btn button-hero button button-primary",isDisabled:void 0!==t.pro&&t.pro&&"true"!==kadenceStarterParams.pro,onClick:function(){return e.props.onChange({isImporting:!0,fontPair:e.state.fontPair,colorPalette:e.state.colorPalette})}},S("Full Site","kadence-starter-templates")))))),Object(h.createElement)("div",{class:"wp-full-overlay-main"},Object(h.createElement)("iframe",{id:"kadence-starter-preview",src:t.url+"?cache=bust"})))}}]),a}(w);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}var I=wp.i18n,D=I.__,A=(I.sprintf,wp.element),L=A.Fragment,H=A.Component,R=(A.render,A.PureComponent,wp.components),B=(R.Modal,R.Spinner,R.ButtonGroup,R.Dropdown,R.Icon,R.Button),q=R.ExternalLink,V=(R.ToolbarGroup,R.CheckboxControl),W=R.TextControl,G=(R.ToggleControl,R.MenuItem,R.Tooltip,R.PanelBody,function(e){u()(a,e);var t=F(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).state={email:kadenceStarterParams.user_email,privacy:!1,privacyError:!1},e}return c()(a,[{key:"render",value:function(){var e=this;return Object(h.createElement)("div",{className:"kt-subscribe-form-box"},Object(h.createElement)("h2",null,D("Subscribe and Import","kadence-starter-templates")),Object(h.createElement)("p",null,D("Subscribe to learn about new starter templates and features for Kadence.","kadence-blocks")),Object(h.createElement)(W,{type:"text",className:"kt-subscribe-email-input",label:D("Email:","kadence-starter-templates"),value:this.state.email,placeholder:D("example@example.com","kadence-starter-templates"),onChange:function(t){return e.setState({email:t})}}),this.props.emailError&&Object(h.createElement)("span",{className:"kb-subscribe-form-error"},D("Invalid Email, Please enter a valid email.","kadence-starter-templates")),Object(h.createElement)(V,{label:Object(h.createElement)(L,null,D("Accept","kadence-starter-templates")," ",Object(h.createElement)(q,{href:"https://www.kadencewp.com/privacy-policy/"},D("Privacy Policy","kadence-starter-templates"))),help:D("We do not spam, unsubscribe anytime.","kadence-starter-templates"),checked:this.state.privacy,onChange:function(t){return e.setState({privacy:t})}}),this.state.privacyError&&Object(h.createElement)("span",{className:"kb-subscribe-form-error"},D("Please Accept Privacy Policy","kadence-blocks")),Object(h.createElement)(B,{className:"kt-defaults-save",isPrimary:!0,onClick:function(){e.state.privacy?(e.setState({privacyError:!1}),e.props.onRun(e.state.email)):e.setState({privacyError:!0})}},D("Subscribe and Start Importing")))}}]),a}(H)),$=a(6),U=Object(h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(h.createElement)($.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),K=Object(h.createElement)($.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(h.createElement)($.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),J=Object(h.createElement)($.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(h.createElement)($.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=f()(e);if(t){var n=f()(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return m()(this,a)}}function X(e){try{var t=JSON.parse(e);if(t&&"object"===v()(t))return t}catch(e){}return!1}var Q=wp.i18n,Z=Q.__,ee=(Q.sprintf,wp.element),te=ee.Fragment,ae=ee.Component,re=ee.render,ne=(ee.PureComponent,wp.components),se=ne.Modal,ce=ne.Spinner,oe=(ne.ButtonGroup,ne.Dropdown),ie=ne.Icon,le=ne.Button,ue=ne.ExternalLink,pe=(ne.ToolbarGroup,ne.CheckboxControl,ne.TextControl,ne.ToggleControl),me=ne.MenuItem,de=ne.Tooltip,fe=ne.PanelBody,be=Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(h.createElement)("path",{d:"M15.984 18v2.016H8.015V18h7.969zM11.016 7.969v8.016h1.969V7.969h3l-3.984-3.984-3.984 3.984h3z"})),ve=Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(h.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"url(#_Linear1)"}),Object(h.createElement)("path",{fill:"#fff",d:"M50 50H66.003V130H50z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 50H130.011V66H82z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 82H130.011V98H82z"}),Object(h.createElement)("path",{fill:"#fff",d:"M82 114.046H130.011V130.046H82z"}),Object(h.createElement)("defs",null,Object(h.createElement)("linearGradient",{id:"_Linear1",x1:"0",x2:"1",y1:"0",y2:"0",gradientTransform:"rotate(-52.456 186.056 40.829) scale(178.658)",gradientUnits:"userSpaceOnUse"},Object(h.createElement)("stop",{offset:"0",stopColor:"#372b73"}),Object(h.createElement)("stop",{offset:"1",stopColor:"#e9335e"})))),he=(Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",clipRule:"evenodd",viewBox:"0 0 180 180"},Object(h.createElement)("circle",{cx:"90.03",cy:"89.952",r:"90",fill:"#93003c"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M50 50H66.003V130H50z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 50H130.011V66H82z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 82H130.011V98H82z"}),Object(h.createElement)("path",{fill:"#ff5bd4",d:"M82 114.046H130.011V130.046H82z"})),Object(h.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 720 864",viewBox:"0 0 720 864",className:"gblogo"},Object(h.createElement)("g",null,Object(h.createElement)("path",{d:"M432.4 415.6c-2.5-1.7-5.9-1-7.6 1.5-9.9 14.9-30.9 15.7-32 15.7h-.5c-25.9 0-35.8 22.1-36.2 23-1.2 2.8.1 6 2.8 7.2.7.3 1.5.5 2.2.5 2.1 0 4.1-1.2 5-3.3.1-.2 6.9-15.4 24.4-16.4v28.3c-.7 6.1-3.6 10.9-8.7 14.5-5.3 3.7-12.4 5.6-21.1 5.6-10.4 0-18.9-3.6-25.2-10.7-6.4-7.1-9.6-17.2-9.6-30.2l.1-31.2c.5-11.5 3.6-20.6 9.5-27.1 6.4-7.1 14.8-10.7 25.2-10.7 8.7 0 15.8 1.9 21.1 5.6 5.3 3.7 8.3 8.8 8.8 15.4v.7c0 3.8 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9v-.7c-1-9.9-5.5-17.7-13.6-23.6-8.1-5.9-18.2-8.8-30.4-8.8-14.5 0-26.2 4.8-35.1 14.3-8.4 8.9-12.8 20.6-13.3 35 0 1-.1 2-.1 3l.1 28.1h-.1c0 15.9 4.5 28.6 13.4 38.1s20.6 14.3 35.1 14.3c12.2 0 22.3-2.9 30.4-8.8 7.4-5.4 11.8-12.5 13.3-21.3l.3-31.4c9.1-2.2 21.5-7.2 29.3-19 2-2.5 1.3-5.9-1.3-7.6zM528.7 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2zM117.8 94.1h76.7c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-76.7c-3.4 0-6.2 2.8-6.2 6.2s2.7 6.2 6.2 6.2z",className:"st2"}),Object(h.createElement)("circle",{cx:"609.3",cy:"150.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"359.8",cy:"130.6",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M244.8 150.2h.3c23.3 0 33.7-14.6 41.6-28.2 2.6-4.5 12.2-19.5 25.8-23.4 16.8-4.9 34.7 2.9 41.7 18.2 1 2.2 3.2 3.5 5.4 3.6h.7c2.2-.1 4.4-1.4 5.4-3.6 7-15.3 24.9-23.1 41.7-18.2 13.6 4 23.2 18.9 25.8 23.4 7.9 13.7 18.3 28.2 41.9 28.2 14.2 0 31-10.6 35.7-30.9 3.9-16.8-3.3-32-19-39.7-3.1-1.5-6.8-.3-8.3 2.8-1.5 3.1-.3 6.8 2.8 8.3 14.9 7.4 13.6 20.5 12.4 25.8-2.4 10.4-11.6 21.4-23.7 21.4-15.5 0-22.9-7.8-31.2-22.1-4.1-7-15.5-24-33-29.1-19.1-5.6-39.3 1.1-50.9 15.8-11.6-14.7-31.8-21.4-50.9-15.8-17.5 5.1-28.9 22.1-33 29.1-8.3 14.3-15.7 22.1-30.9 22.1h-.2c-13.2-.1-21.6-9.3-24-18.4-1.2-4.3-3.7-19 13.1-29 2.9-1.7 3.9-5.5 2.1-8.5-1.8-2.9-5.5-3.9-8.5-2.1-19.3 11.5-22.3 29.7-18.7 42.9 4.4 16.3 18.9 27.3 35.9 27.4z",className:"st2"}),Object(h.createElement)("path",{d:"M360 734L360.1 734 360.1 734 360 734z",className:"st2"}),Object(h.createElement)("circle",{cx:"108.1",cy:"150.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"90.7",cy:"88",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"631.3",cy:"88",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"664.5",cy:"485.3",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"639.6",cy:"627.1",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"599.8",cy:"644.8",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M231.9 111.2c0 9.2 7.5 16.7 16.7 16.7s16.7-7.5 16.7-16.7-7.5-16.7-16.7-16.7c-9.2-.1-16.7 7.4-16.7 16.7zm16.7-4.4c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM473.6 127.9c9.2 0 16.7-7.5 16.7-16.7s-7.5-16.7-16.7-16.7-16.7 7.5-16.7 16.7 7.5 16.7 16.7 16.7zm0-21.1c2.4 0 4.4 2 4.4 4.4 0 2.4-2 4.4-4.4 4.4-2.4 0-4.4-2-4.4-4.4 0-2.4 2-4.4 4.4-4.4zM376.7 121.6c-3.2 1.2-4.8 4.7-3.6 7.9 1.2 3.2 4.7 4.8 7.9 3.7 1-.4 25-8.4 43.4 20.2 1.2 1.8 3.2 2.8 5.2 2.8 1.1 0 2.3-.3 3.3-1 2.9-1.8 3.7-5.7 1.9-8.5-19.2-29.7-46.4-29.4-58.1-25.1zM343.3 121.6c-.9-.3-9.1-3.2-20.3-1.5-10.4 1.5-25.3 7.4-37.7 26.7-1.8 2.9-1 6.7 1.9 8.5 1 .7 2.2 1 3.3 1 2 0 4-1 5.2-2.8 18.3-28.6 42.3-20.6 43.4-20.2 3.2 1.2 6.7-.5 7.9-3.7 1.2-3.2-.5-6.8-3.7-8zM627.8 138.5l30.1-34.2v49.3c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V88c0-2.6-1.6-4.9-4-5.8-2.4-.9-5.1-.2-6.8 1.7l-40.9 46.5c-2.3 2.6-2 6.5.6 8.7 2.4 2.3 6.3 2 8.6-.6zM56.8 159.9c3.4 0 6.2-2.8 6.2-6.2v-49.3l30.1 34.2c2.3 2.6 6.2 2.8 8.7.6 2.6-2.3 2.8-6.2.6-8.7L61.5 83.9c-1.7-1.9-4.4-2.6-6.8-1.7-2.4.9-4 3.2-4 5.8v65.7c0 3.4 2.7 6.2 6.1 6.2zM493.4 166c-2.9-.2-5.6 1.8-6.3 4.6-.7 2.9.7 5.9 3.3 7.1 9.8 4.6 18.7 6.4 26.7 6.4 15.3 0 27.5-6.7 36-13.7 13.6-11.2 20.6-25.3 20.9-25.9 1.4-2.9.4-6.4-2.4-8-6.3-3.7-17.2-6-33.8 4.1-8.3 5.1-14.7 11.2-15.8 12.3-15.2 13.4-27.9 13.1-28.6 13.1zm36.9-3.9l.3-.3c4.7-4.7 18-15.6 28.4-16.1-3 4.3-7.5 10.1-13.6 15.2-9 7.4-18.6 11-28.8 10.8 4.2-2.2 8.9-5.4 13.7-9.6zM151.4 136.5c-2.8 1.6-3.8 5.1-2.4 8 .3.6 7.3 14.7 20.9 25.9 8.5 7 20.6 13.7 36 13.7 8.1 0 17-1.8 26.7-6.4 2.7-1.3 4-4.2 3.3-7.1-.7-2.9-3.3-4.8-6.3-4.7-.5 0-13.3.4-28.5-13-1.1-1.1-7.5-7.2-15.8-12.3-16.6-10-27.6-7.7-33.9-4.1zm41.4 25.6c4.7 4.2 9.4 7.3 13.7 9.6-21.6.2-35.9-16.3-42.4-26 10.4.5 23.7 11.4 28.4 16.1l.3.3z",className:"st2"}),Object(h.createElement)("path",{d:"M671.8 664.6c-6.2-5.2-13-8.2-19.3-9.9 2.4-1.8 4.7-3.9 6.7-6.2 15.3-18 15.4-44.5.2-61.7-2.3-2.6-6.2-2.8-8.7-.5-2.6 2.3-2.8 6.2-.5 8.7 11.1 12.6 10.9 32.1-.4 45.5-9.2 10.8-26.7 13.4-31.9 14-15.7 1.7-33.3 5.3-42.8 26.8-1.5 3.3-2.4 7-2.6 11-2.2-.7-4.6-1.1-7-1.1-12.5 0-22.7 10.2-22.7 22.7 0 8.6 4.8 16.1 11.9 19.9-2.1 1.9-4.1 4-5.9 6.4-21-28.3-54.6-46.1-91.6-46.1-5.3 0-10.6.4-15.7 1.1 30.4-9.3 58.7-23.8 84.5-43 33.3-24.9 61-57.4 80-93.9 20-38.4 30.1-79.9 30.1-123.1v-.8-.2-.3c-.2-35.1-8-66.7-19.1-93.9 4.1.8 8 1.1 11.5 1.1 25.9 0 37.3-17.8 38.5-19.9 5.6-9.4 6.5-20.8 3.3-31.1.1-.3.1-.7.1-1.1V176.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2V271c-10.5-9.1-25.7-10.1-32-10.1-12.2.1-19.8-1.8-25.4-11.4-4.7-8.1-2-16.5 2.7-21.3 5.9-6 14.3-6.8 22.5-2.3 3 1.6 6.8.6 8.4-2.4 1.6-3 .6-6.8-2.4-8.4-13-7.2-27.6-5.4-37.3 4.4-9.6 9.8-11.4 24.3-4.6 36.1 8.9 15.3 22.4 17.5 35.7 17.5h.5c4 0 16.9.6 24.3 7.6 9.6 9.1 12.1 23.4 5.8 34 0 0-.1.1-.1.2-.5.9-12.4 21.1-45.6 10.5-10-21.2-21.6-39.2-32.4-53.6l-4.9 3.7 4.9-3.8-2-2.6c-21.3-35.7 3.3-73.7 16.1-89.8l7.2-8.2c2.2-2.6 2-6.5-.6-8.7-2.5-2.1-6.1-2-8.4.3-.2.2-1.3 1.3-3 3.2-11.1 11.3-54.5 51.3-96.6 30.4l-1.2-.8-.6-.4c-37.7-20.3-74.9-32-110.4-35-4.6-10.5-10.7-18.5-18.4-18.5-7.8 0-13.9 8.1-18.6 18.8-49.7 2.2-111.5 34.3-114.1 35.6-42.3 21.3-85.9-18.9-97-30.2-1.7-1.9-2.9-3-3-3.2-2.3-2.3-5.9-2.4-8.4-.3-2.6 2.2-2.8 6.1-.6 8.7l7.7 8.7c4.5 5.6 10.2 13.7 15 23.4 12 24.3 12.2 46.4.7 65.8-14.3 17.8-25.9 36.5-34.8 56.2-33.5 10.9-45.5-9.5-46-10.4 0-.1-.1-.1-.1-.2-6.3-10.6-3.8-24.9 5.8-34 7.4-7 20.3-7.6 24.3-7.6h.1c13.4 0 27.2-2.1 36.1-17.5 6.8-11.8 5-26.4-4.6-36.1-9.7-9.9-24.3-11.6-37.3-4.4-3 1.6-4.1 5.4-2.4 8.4 1.6 3 5.4 4.1 8.4 2.4 8.3-4.5 16.7-3.7 22.5 2.3 4.7 4.8 7.3 13.2 2.7 21.3-5.5 9.5-13 11.4-25 11.4h-.4c-5.5 0-18.3.8-28.5 7.4v-90.3c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v104c-6.8 12.2-7.2 27.1-.2 39.1.7 1.3 5 8.5 14.6 13.9 5.5 3.1 13.4 6 23.9 6 3.8 0 8-.4 12.5-1.3-10.8 29-16.2 60.2-16.4 94.2v1.1c0 61.4 21.6 121.7 60.8 169.8 34.7 42.6 81.9 74.2 134.2 90.3-5.5-.8-11.1-1.2-16.7-1.2-36.7 0-70 17.5-91 45.4-1.7-2.2-3.6-4.3-5.7-6.1 6.6-4 11.1-11.2 11.1-19.5 0-12.5-10.2-22.7-22.7-22.7-2.3 0-4.5.4-6.6 1-.3-3.9-1.2-7.6-2.6-10.9-9.6-21.5-27.1-25.1-42.8-26.8-5.2-.6-22.7-3.2-31.9-14-11.6-13.1-11.8-32.6-.7-45.2 2.3-2.6 2-6.5-.5-8.7-2.6-2.3-6.5-2-8.7.5-15.1 17.2-15 43.7.2 61.7 2 2.4 4.3 4.4 6.7 6.2-6.3 1.7-13.1 4.8-19.3 9.9-14.7 12.1-22.2 32.3-22.4 59.8-.5 2.5.6 5.1 2.8 6.5 1 .6 2.1.9 3.2.9.4 0 .9-.1 1.3-.2h.1c.2 0 .3-.1.5-.2.3-.1.7-.2 1-.4.1 0 .1-.1.2-.1 1-.6 1.9-1.4 2.5-2.4 2.4-3.1 12.3-7 20.5-8.7 32.1-7 38.8-28.7 37.8-39.1-.3-3.4-3.3-5.9-6.7-5.6-3.4.3-5.9 3.3-5.6 6.7 0 .1.1 1.9-.5 4.6-1.5 6.2-7 16.9-27.6 21.4h-.2c-2.4.5-9.6 2.2-16.3 5.3 1.8-17.8 7.5-30.8 17.2-38.9 14.9-12.4 34.6-8.9 34.8-8.8.7.1 1.3.1 1.9 0 3.3.7 6.1 1.1 8.2 1.3 16.5 1.8 26.6 5.4 32.9 19.5 4.9 11.1-1.4 23.9-9.9 30.3-4.3 3.3-15.8 9.8-28.7-.8-2.6-2.2-6.5-1.8-8.7.8-2.2 2.6-1.8 6.5.8 8.7 5.8 4.8 12.3 7.6 19 8.4-8.6 7-14.4 15.8-17 20.4-8.4 14.5-15.2 22.3-26.5 22.4V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v50.2c0 2.5 1.5 4.6 3.6 5.6 1.1.8 2.4 1.4 3.8 1.4h144c2.2 0 4-1.1 5.2-2.8.8-.8 1.5-1.8 1.8-3 5.7-22.1 25.6-37.5 48.4-37.5 20.4 0 38.5 12.4 46.2 30.9h-13.2c-5.4-13.3-18.4-22.2-33.1-22.2-16.1 0-30.3 10.9-34.6 26.4-.9 3.3 1.1 6.7 4.3 7.6 3.3.9 6.7-1.1 7.6-4.3 2.8-10.2 12.1-17.3 22.6-17.3 7.8 0 14.8 3.8 19.1 9.8h-3.6c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h12.5c.2 0 .5.1.7.1.3 0 .6 0 .8-.1h24.8c3.4 0 6.2-2.8 6.2-6.2 0-.3 0-.6-.1-.9.1-.8.1-1.7-.1-2.6-7.3-27.1-32.1-46-60.2-46-27.2 0-51.1 17.6-59.4 43.3h-32.3c2.6-8.3 6.1-16 10.5-23.2.3-.4.5-.8.8-1.2 18.3-28.7 50.3-47.1 85.8-47.1 21 0 41.2 6.4 58.3 18.4.5.3 1 .6 1.5.7 2.6 3.1 5.2 6.4 7.7 9.8.6.8 1.1 1.6 1.7 2.4-.6 12.7 6.3 26 20.6 39.6.5 1.5 1 2.8 1.3 3.8v1.3c0 3.4 2.8 6.2 6.2 6.2 2.9 0 5.2-1.9 5.9-4.6 0-.1.9-3.1 2.7-8.1 12.9-12.6 19.3-24.9 19.2-36.8.8-1.2 1.7-2.5 2.6-3.7 2.8-3.8 5.7-7.5 8.7-11 17-11.8 36.9-18 57.7-18 44.8 0 84 29.2 97 71.5h-32.3c-8.2-25.7-32.1-43.3-59.4-43.3-28.1 0-52.8 18.9-60.2 46-.3 1-.3 2 0 3v.5c0 3.4 2.8 6.2 6.2 6.2h54.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-19.7c4.3-6 11.3-9.8 19.1-9.8 10.7 0 20 7.2 22.7 17.6.7 2.8 3.2 4.6 6 4.6.5 0 1-.1 1.5-.2 3.3-.8 5.3-4.2 4.5-7.5-4.1-15.8-18.3-26.9-34.7-26.9-14.6 0-27.6 8.9-33.1 22.2h-12.5c7.6-18.5 25.8-30.9 46.2-30.9 22.8 0 42.7 15.4 48.4 37.5.1.5.4 1 .6 1.5.8 2.5 3.1 4.3 5.9 4.3H664c3.4 0 6.2-2.8 6.2-6.2v-.4-1.6c.1-.6.1-1.2.1-1.8 0-.1 0-.2-.1-.3V733c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v42c-10.4-.8-16.9-8.5-24.9-22.3-2.6-4.4-8-12.7-16-19.5 5.5-1.2 10.8-3.8 15.7-7.9 2.6-2.2 3-6.1.8-8.7-2.2-2.6-6.1-3-8.7-.8-12.8 10.6-24.3 4.1-28.7.8-8.5-6.4-14.8-19.3-9.9-30.3 6.3-14.1 16.4-17.8 32.9-19.5 2.1-.2 4.9-.6 8.2-1.3.6.1 1.3.1 2 0 .2 0 19.7-3.6 34.7 8.8 9.8 8.1 15.6 21.1 17.3 39-6.8-3.2-14.1-4.9-16.4-5.4h-.2c-20.5-4.5-26.1-15.1-27.6-21.3-.6-2.6-.6-4.4-.5-4.6.3-3.4-2.2-6.4-5.6-6.7-3.4-.3-6.4 2.2-6.7 5.6-1 10.5 5.7 32.1 37.9 39.1 8.3 1.8 18.8 5.9 20.7 9 0 0 0 .1.1.1.3.4.6.8.9 1.1.1.1.2.1.3.2.3.2.6.5.9.6.1.1.3.2.4.2.3.2.6.3.9.4.1 0 .3.1.4.1.4.1.9.2 1.4.2.4 0 .7 0 1.1-.1.1 0 .2 0 .3-.1.3-.1.6-.2 1-.3h.1c.3-.1.5-.3.8-.4l.1-.1c.2-.1.4-.3.5-.4.1-.1.3-.2.4-.4l.4-.4c.1-.2.3-.3.4-.5.1-.2.2-.3.3-.5.1-.2.2-.3.3-.5.1-.2.1-.4.2-.6.1-.2.1-.4.2-.6 0-.2.1-.4.1-.5 0-.2.1-.4.1-.7v-.1c-.1-28.3-7.7-48.8-22.6-61.1zM152.9 777.7H87.8c5.5-5.6 9.4-12.3 12.4-17.5 2.6-4.5 12.2-19.5 25.8-23.4 16-4.7 31 .8 38.4 13.5-4.9 8.5-8.8 17.7-11.5 27.4zm1.7-53.7c-5.7 0-10.3-4.6-10.3-10.3 0-5.7 4.6-10.3 10.3-10.3s10.3 4.6 10.3 10.3c0 5.7-4.7 10.3-10.3 10.3zm366.6-78.1l.9 1.1-.9-1.1zm.2-6.2c-58.4-6.8-100.6 18.3-125.8 40.5-10.9 9.6-19.5 19.5-26 27.9-1.2-.8-2.3-1.6-3.3-2.1v-17.6c47.3-47.5 94.3-61.7 125.5-65.2 20.7-2.3 37.4-.4 47.4 1.5-5.7 5.3-11.6 10.3-17.8 15zm73.3-87.2c-6 11.5-12.9 22.5-20.5 33.1-7.9-2.5-17.8-4.8-29.7-5.9 26.5-33.6 43.3-73.7 48.7-116 8.6-1 20.5-4.7 29.6-10.6-2.4 34.7-11.8 68.1-28.1 99.4zm-42.1-111.6l7.2-.3c2.4 10.7 10.5 19.3 21.1 22.2-5.6 42.8-23.4 83.2-51.8 116.2-13.7 0-29.6 1.6-47.6 5.5 42-34.2 69.4-85.7 71.1-143.6zm-117.5 158c-4 1.6-6.8 2.9-8.2 3.5-16.6 6.6-34.4 10.9-53 12.3l165.9-165.9c-5 66.8-46.6 123.4-104.7 150.1zm188.3-164.7c-.2 5.6-15.5 14.7-29 16.9-1.9.3-3.8.5-5.6.5-2.4 0-4.7-.5-6.8-1.4-6.3-2.7-10.7-8.9-10.7-16.1 0-7.2 4.4-13.4 10.7-16.1 2.1-.9 4.4-1.4 6.8-1.4 1.8 0 3.7.2 5.6.5 13.5 2.2 28.7 11.3 29 16.8v.3zM565.5 276l2.6 3.5c22.7 30.3 49.3 77.2 54.4 135.6-9-5.8-20.8-9.5-29.3-10.5-6.4-50.6-28.9-96.3-62.2-131.6 1.4-2.9 2.2-6.2 2.2-9.6 0-4.6-1.4-8.9-3.7-12.4l28.4-32.4c-5.4 20.6-2.8 40.1 7.6 57.4zm-82.9-70.1l1.3.9.7.4c9.9 5 20.5 7.5 31.5 7.5 11.6 0 23.7-2.8 35.9-8.4l-32 36.5c-2.9-1.4-6.1-2.1-9.6-2.1-4.5 0-8.6 1.3-12.1 3.5-31.5-23-68.8-38.3-109.4-43.3-1-7.3-3-17.7-6-27.9 32.1 3.6 65.6 14.6 99.7 32.9zm38.2 57.5c0 4.5-3 8.4-7.1 9.8-1 .3-2.1.5-3.2.5h-1c-4.6-.4-8.3-3.9-9.1-8.3-.1-.6-.2-1.3-.2-1.9 0-.7.1-1.3.2-2 .9-4.5 4.7-8 9.4-8.3H511.1c4.6.3 8.5 3.6 9.5 8 .1.6.2 1.1.2 1.7-.1.1 0 .3 0 .5zm-131.4-49.9c37.2 4.9 71.6 19.1 100.7 40.1-1.5 3-2.3 6.3-2.3 9.9 0 4.5 1.3 8.6 3.6 12.2l-49.8 56.8c-2.3 2.6-2 6.5.6 8.7 1.2 1 2.6 1.5 4.1 1.5 1.7 0 3.4-.7 4.7-2.1l49.7-56.7c3 1.5 6.3 2.3 9.9 2.3 4.6 0 8.8-1.4 12.3-3.7 31 33.2 51.9 75.8 58.1 123-10.7 3-19 11.8-21.2 22.8l-7.1.3c-1.5-45.7-19.2-89.3-50.1-123.2-2.3-2.5-6.2-2.7-8.7-.4-2.5 2.3-2.7 6.2-.4 8.7 27.2 29.8 43.4 67.6 46.5 107.6L473.5 355c-2.4-2.4-6.3-2.4-8.7 0-2.4 2.4-2.4 6.3 0 8.7l71.4 71.4-176 176-176-176 70.8-70.8c2.4-2.4 2.4-6.3 0-8.7-2.4-2.4-6.3-2.4-8.7 0l-65.7 65.7c3.5-45.5 23.9-86.4 55-116.2l31 35.4c1.2 1.4 2.9 2.1 4.7 2.1 1.4 0 2.9-.5 4.1-1.5 2.6-2.3 2.8-6.2.6-8.7l-31.1-35.5c28-23.4 63.1-38.5 101.6-41.4l-52.8 52.3c-2.4 2.4-2.4 6.3 0 8.7 1.2 1.2 2.8 1.8 4.4 1.8 1.6 0 3.1-.6 4.4-1.8l58-57.4 56.3 56.3c2.4 2.4 6.3 2.4 8.7 0 2.4-2.4 2.4-6.3 0-8.7l-51.2-51.2c31.7 2.4 61.9 13 88.2 31.1 2.8 1.9 6.7 1.2 8.6-1.6 1.9-2.8 1.2-6.7-1.6-8.6-30.4-20.9-65.8-32.5-102.8-33.6v-4.4c11.6-2.8 20.9-12.7 22.7-24.9zm-180.7 74.3c3.5 0 6.8-.8 9.7-2.2l8.9 10.2c-35.3 33.7-57.8 80.6-59.6 132.7l-5-.3c-2.4-11.7-11.5-20.9-23.2-23.3 6.1-46.3 26.5-88.1 56.5-120.9 3.7 2.4 8 3.8 12.7 3.8zm-10.3-22.6c0-.5 0-.9.1-1.4 0-.3.1-.5.1-.8.9-4.4 4.7-7.8 9.3-8.1h.7c4.7 0 8.7 3.2 9.9 7.6.2.9.4 1.8.4 2.7 0 .7-.1 1.4-.2 2.1-.9 4.4-4.7 7.8-9.3 8.1h-.8c-1.3 0-2.6-.3-3.7-.7-3.7-1.4-6.5-5.2-6.5-9.5zm-35.8 175.4l5.1.3c1.7 58 29.2 109.6 71.3 143.8-18.1-4-34-5.6-47.8-5.7-28.2-32.9-46.1-73.1-51.7-115.7 11.5-2.4 20.6-11.3 23.1-22.7zm17.9 8.2l165.9 165.9C258 608 187.2 537.2 180.5 448.8zm162.7-249c2.7-18.7 11.9-43.7 16.7-45.7 5.5 2.1 14 28 16.6 45.6.5 3.5.8 6.7.8 9.3 0 1.1-.1 2.1-.3 3.1-1.5 8.1-8.6 14.3-17.2 14.3s-15.7-6.2-17.2-14.3c-.2-1-.3-2.1-.3-3.1.1-2.7.4-5.8.9-9.2zm10.8 38.5v4.3c-44.6 1.4-85.4 18.1-117.4 44.9l-8.8-10.1c2.3-3.5 3.7-7.8 3.7-12.3 0-3.8-1-7.4-2.6-10.5 29.3-21.5 64-36 101.7-41.1 1.7 12.4 11.2 22.4 23.4 24.8zm-152.7-23.6c11 0 21.6-2.5 31.6-7.5.6-.3 57.7-30 103.9-34-3 10.1-5 20.6-6 27.8-41.1 5.1-79 21-110.7 44.6-3.4-2-7.2-3.1-11.4-3.1-3.5 0-6.8.8-9.7 2.2l-33.6-38.3c12.3 5.5 24.3 8.3 35.9 8.3zm-49.9 61.9l.5-.7c10.4-17.2 13-36.8 7.8-57.4l30 34.3c-2.3 3.5-3.7 7.8-3.7 12.3 0 3.3.7 6.4 2 9.3-32.7 35.2-54.7 80.4-61 130.4-8.9 1.4-20.7 5.2-29.6 10.9 3.5-52.8 21.2-98.5 54-139.1zM96.9 434c.2-5.8 16.3-13.8 29-16.4 2.8-.6 5.4-.9 7.6-.9 1.7 0 3.2.2 4.8.7 7.3 2.1 12.7 8.8 12.7 16.8s-5.4 14.7-12.7 16.8c-1.5.4-3.1.7-4.8.7-2.3 0-4.9-.3-7.6-.9-12.7-2.7-28.8-10.7-29-16.5v-.3zm.6 18.4c8.9 5.8 20.8 9.6 29.6 11 5.3 42.4 22.1 82.6 48.7 116.2-11.9 1.1-21.8 3.3-29.8 5.8-28.7-39.4-45.3-84.9-48.5-133zM154.9 597c-.3-.4-.6-.7-.9-1.1 30.1-8.3 63-3.9 86.1 1.6 27.9 6.7 48.3 16.4 48.5 16.5l.1-.2c22.1 8.8 46.2 13.7 71.4 13.7 25.1 0 49.1-4.8 71.1-13.6l.6-.3c2.6-1.1 5.3-2.2 7.8-3.4 8.5-3.5 22.8-8.7 40-12.8 23.3-5.6 56.3-10 86.4-1.6-5.2 6.4-10.6 12.5-16.4 18.4-8.4-2.3-29.8-6.7-58.7-3.6-31.4 3.4-77.6 16.8-124.8 60.4v-10.9c0-3.4-2.8-6.2-6.2-6.2s-6.2 2.8-6.2 6.2v10.3c-46.9-43.1-92.9-56.4-124.1-59.8-29.6-3.2-51.3 1.6-59.2 3.8-5.2-5.4-10.5-11.3-15.5-17.4zm26.3 27.8c10-2 26.9-4 48-1.6 55.5 6.2 98.1 37.9 124.8 64.5v18.1c-.9.5-1.9 1.1-3 1.9-6.5-8.3-15-18-25.7-27.4-25.2-22.3-67.6-47.5-126.2-40.5v.1c-6.2-4.8-12.2-9.8-17.9-15.1zm155.3 98c-11.7-15-24.5-26.3-37.3-34.8l.1-.3c-.3-.1-.6-.2-.9-.2-21.3-13.9-42.7-20-59.9-22.5-8.1-4.2-16.1-8.9-23.8-14 37.7-1.1 71.9 11.7 102.1 38.2 10.4 9.1 18.6 18.5 24.8 26.6-1.9 2.1-3.6 4.4-5.1 7zm29.9 37.5c-1.5 1.8-3.1 3.6-4.9 5.4-.4.4-.9.9-1.4 1.3l-.1.1-.1.1v-.2c-.2-.2-.5-.4-.7-.7-2-1.9-3.7-3.8-5.3-5.7-7.3-8.7-10.5-16.8-9.4-24.2.1-.6.2-1.2.4-1.8.8-3.2 2.3-6 4.1-8.4 1.5-2 3.2-3.7 4.9-5.2 1.5-1.3 3-2.4 4.3-3.3.6-.4 1.1-.7 1.6-1 0 0 .1 0 .1-.1h.1c.7.4 1.4.9 2.3 1.5 1.2.8 2.6 1.9 4 3.1 1.8 1.6 3.6 3.5 5.1 5.6 1.8 2.6 3.3 5.5 3.9 8.8 0 .2.1.5.2.7 1.1 7.3-2 15.3-9.1 24zm24.4-45.1c-.2.2-.4.4-.5.6-2.3 2.6-4.4 5.2-6.3 7.7-1.5-2.6-3.2-5-5-7.1 6.2-8.1 14.6-17.8 25.2-27.1 30-26.4 64.1-39.2 101.5-38.3-7.8 5.1-15.8 9.9-24 14.1-42.8 6.5-72.1 28.7-90.9 50.1zm174.5-11.8c5.7 0 10.3 4.6 10.3 10.3 0 5.7-4.6 10.3-10.3 10.3s-10.3-4.6-10.3-10.3c0-5.6 4.6-10.3 10.3-10.3zm31.2 32.1c13.6 4 23.2 18.9 25.8 23.4 3.2 5.6 7.5 13 13.8 18.8H567c-2.6-9.4-6.3-18.3-11-26.5 7.6-13.6 24.6-20.4 40.5-15.7z",className:"st2"}),Object(h.createElement)("path",{d:"M69.6 301.1c0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4c0-10.1-8.2-18.4-18.4-18.4s-18.4 8.3-18.4 18.4zm24.4 0c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6 6 2.7 6 6zM648.7 301.1c0-10.1-8.2-18.4-18.4-18.4-10.1 0-18.4 8.2-18.4 18.4 0 10.1 8.2 18.4 18.4 18.4s18.4-8.2 18.4-18.4zm-24.4 0c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6c-3.3.1-6-2.6-6-6zM666.4 346.9c-2.3-.9-5-.4-6.8 1.4-8.1 8.3-21.4 8-21.6 8h-.2c-3.3 0-6 2.6-6.2 5.9-.1 3.4 2.5 6.3 5.9 6.4.6 0 10.4.3 20.4-4.3v100.9c0 3.4 2.8 6.2 6.2 6.2s6.2-2.8 6.2-6.2V352.6c-.1-2.5-1.6-4.8-3.9-5.7zM55.7 471.4c3.4 0 6.2-2.8 6.2-6.2V364.3c10 4.6 19.8 4.3 20.4 4.3 3.4-.1 6.1-3 5.9-6.4-.1-3.4-3-6.1-6.4-5.9-.1 0-13.5.3-21.6-8-1.8-1.8-4.4-2.3-6.8-1.4-2.3.9-3.8 3.2-3.8 5.7v112.7c-.1 3.4 2.7 6.1 6.1 6.1zM671.3 574.3c0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h40c3.4 0 6.2-2.7 6.2-6.2zM629.8 598c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-15.4c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.4zM644.8 609.4c0-3.4-2.8-6.2-6.2-6.2h-38.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.7 6.2-6.2zM620.6 627.1c0-3.4-2.8-6.2-6.2-6.2h-29.9c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2zM565.1 638.6c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2h-17zM665.1 532.8h-22.3c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h22.3c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 550.5H634c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h31.1c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2zM665.1 497.5h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM665.1 515.2h-15.2c-3.4 0-6.2 2.8-6.2 6.2s2.8 6.2 6.2 6.2h15.2c3.4 0 6.2-2.8 6.2-6.2s-2.8-6.2-6.2-6.2z",className:"st2"}),Object(h.createElement)("circle",{cx:"55.5",cy:"485.6",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"80.5",cy:"627.3",r:"6.2",className:"st2"}),Object(h.createElement)("circle",{cx:"120.3",cy:"645",r:"6.2",className:"st2"}),Object(h.createElement)("path",{d:"M54.9 580.7h40c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-40c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM105.6 585.9H90.2c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h15.4c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM119.6 603.5H81.4c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h38.2c3.4 0 6.2-2.8 6.2-6.2 0-3.5-2.8-6.2-6.2-6.2zM135.5 621.1h-29.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2h29.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2zM131.7 645c0 3.4 2.8 6.2 6.2 6.2h17c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-17c-3.4 0-6.2 2.8-6.2 6.2zM54.9 545.4h22.3c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 563.1H86c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 510.1h9.9c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2h-9.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.4 2.8 6.2 6.2 6.2zM54.9 527.7h15.2c3.4 0 6.2-2.8 6.2-6.2 0-3.4-2.8-6.2-6.2-6.2H54.9c-3.4 0-6.2 2.8-6.2 6.2 0 3.5 2.8 6.2 6.2 6.2zM360 767.1c.1-.1 0-.1 0-.2v.2zM641.2 202.7c.1 0 .1 0 0 0 2.8 0 5.3-1.9 6-4.7 2.2-8.8 1.3-16.3-2.9-22.5-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.4 9 19 9.3 20.2 9.4zm-7-20.2c1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6-1.6-2-2.4-4.6-2.4-7.9 2 1 4.2 2.6 5.7 4.8zM601 113.3c-6.7-10-19-11.9-20.4-12.1-3.2-.4-6.2 1.6-6.9 4.8-2.3 10.5-1 18.9 4 25.1 7.2 9 18.8 9.3 20.1 9.3 2.8 0 5.3-1.9 6-4.7 2.3-8.6 1.4-16.2-2.8-22.4zm-13.5 10.1c-1.6-2-2.4-4.6-2.4-7.9 2.1 1 4.3 2.6 5.7 4.8 1.2 1.9 1.9 4.1 1.9 6.7-1.8-.7-3.8-1.8-5.2-3.6zM97.3 163.4c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.6-3.2-3.6-5.3-6.8-4.9zm-6.7 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.8 5.9-2.3 7.9zM139.7 101.2c-1.4.2-13.6 2.1-20.4 12.1-4.1 6.2-5.1 13.7-2.9 22.5.7 2.7 3.2 4.7 6 4.7 1.3 0 12.9-.3 20.1-9.3 5-6.2 6.3-14.7 4-25.1-.7-3.2-3.6-5.3-6.8-4.9zm-6.8 22.2c-1.4 1.8-3.4 2.9-5.3 3.6 0-2.6.7-4.9 1.9-6.7 1.5-2.2 3.7-3.8 5.7-4.8 0 3.3-.7 5.9-2.3 7.9zM555.1 392c.4 3.2 3 5.5 6.1 5.5h.7c3.4-.4 5.8-3.5 5.4-6.9-6.2-54-43.1-92.2-44.7-93.8-2.4-2.4-6.3-2.5-8.7-.1-2.4 2.4-2.5 6.3-.1 8.7.4.4 35.6 36.9 41.3 86.6zM159.1 397.4h.7c3.1 0 5.8-2.3 6.1-5.5 5.7-49.7 40.9-86.2 41.2-86.5 2.4-2.4 2.3-6.4-.1-8.7-2.4-2.4-6.4-2.4-8.7.1-1.6 1.6-38.4 39.8-44.7 93.8-.3 3.4 2.1 6.4 5.5 6.8z",className:"st2"})))),ge=function(e){u()(a,e);var t=Y(a);function a(){var e;return n()(this,a),(e=t.apply(this,arguments)).runAjax=e.runAjax.bind(i()(e)),e.runPluginInstall=e.runPluginInstall.bind(i()(e)),e.runPluginInstallSingle=e.runPluginInstallSingle.bind(i()(e)),e.runSubscribe=e.runSubscribe.bind(i()(e)),e.runSubscribeSingle=e.runSubscribeSingle.bind(i()(e)),e.loadTemplateData=e.loadTemplateData.bind(i()(e)),e.reloadTemplateData=e.reloadTemplateData.bind(i()(e)),e.loadPluginData=e.loadPluginData.bind(i()(e)),e.focusMode=e.focusMode.bind(i()(e)),e.fullFocusMode=e.fullFocusMode.bind(i()(e)),e.jumpToImport=e.jumpToImport.bind(i()(e)),e.selectedMode=e.selectedMode.bind(i()(e)),e.selectedFullMode=e.selectedFullMode.bind(i()(e)),e.backToDash=e.backToDash.bind(i()(e)),e.saveConfig=e.saveConfig.bind(i()(e)),e.state={category:"all",activeTemplate:"",colorPalette:"",fontPair:"",search:null,isFetching:!1,isImporting:!1,isSelected:!1,response:"",isPageSelected:!1,starterSettings:kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{},selectedPage:"home",progress:"",focusMode:!1,finished:!1,overrideColors:!1,overrideFonts:!1,isOpenCheckColor:!1,isOpenCheckFont:!1,isOpenCheckPast:!1,removePast:!1,errorTemplates:!1,templates:kadenceStarterParams.templates?kadenceStarterParams.templates:[],etemplates:kadenceStarterParams.etemplates?kadenceStarterParams.etemplates:[],activeTemplates:!1,palettes:kadenceStarterParams.palettes?kadenceStarterParams.palettes:[],fonts:kadenceStarterParams.fonts?kadenceStarterParams.fonts:[],logo:kadenceStarterParams.logo?kadenceStarterParams.logo:"",hasContent:!!kadenceStarterParams.has_content&&kadenceStarterParams.has_content,hasPastContent:!!kadenceStarterParams.has_previous&&kadenceStarterParams.has_previous,isSaving:!1,isLoadingPlugins:!1,activePlugins:!1,showForm:!0,templatePlugins:"",isSubscribed:!!kadenceStarterParams.subscribed,email:kadenceStarterParams.user_email,privacy:!1,emailError:!1,privacyError:!1,settingOpen:!1,installContent:!0,installCustomizer:!0,installWidgets:!0},e}return c()(a,[{key:"componentDidMount",value:function(){kadenceStarterParams.openBuilder||kadenceStarterParams.ctemplates||this.saveConfig("builderType","blocks")}},{key:"saveConfig",value:function(e,t){var a=this;this.setState({isSaving:!0});var r=kadenceStarterParams.starterSettings?JSON.parse(kadenceStarterParams.starterSettings):{};r[e]||(r[e]=""),r[e]=t,this.setState({starterSettings:r}),new wp.api.models.Settings({kadence_starter_templates_config:JSON.stringify(r)}).save().then((function(e){a.setState({starterSettings:r,isSaving:!1}),kadenceStarterParams.starterSettings=JSON.stringify(r)}))}},{key:"capitalizeFirstLetter",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"focusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!1,activePlugins:!1})}},{key:"fullFocusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!0,activePlugins:!1})}},{key:"jumpToImport",value:function(e){this.setState({isImporting:!0,activeTemplate:e,focusMode:!0,isSelected:!0,fontPair:"",colorPalette:"",activePlugins:!1})}},{key:"selectedFullMode",value:function(){this.setState({isSelected:!0})}},{key:"selectedMode",value:function(e){this.setState({selectedPage:e,isPageSelected:!0,isImporting:!0})}},{key:"backToDash",value:function(){this.setState({isFetching:!1,activeTemplate:"",activePlugins:!1,overrideColors:!1,overrideFonts:!1,colorPalette:"",fontPair:"",focusMode:!1,finished:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",selectedPage:"home"})}},{key:"reloadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_reload_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=X(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:"",t=kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:"";e||(e=kadenceStarterParams.proData&&kadenceStarterParams.proData.ithemes_key?kadenceStarterParams.proData.ithemes_key:"")&&(t="iThemes");var a=new FormData;a.append("action","kadence_import_get_template_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("api_key",e),a.append("api_email",t),a.append("template_type",this.state.starterSettings.builderType);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){if(e){var n=X(e);n?r.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),r.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadPluginData",value:function(e,t){this.setState({isLoadingPlugins:!0});var a=new FormData;a.append("action","kadence_check_plugin_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t);var r=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:a,contentType:!1,processData:!1}).done((function(e,t,a){e&&(void 0!==e.success?r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}):"object"===v()(e)&&null!==e?r.setState({templatePlugins:e,activePlugins:!0,isLoadingPlugins:!1}):r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1}))})).fail((function(e){console.log(e),r.setState({templatePlugins:"error",activePlugins:!0,isLoadingPlugins:!1})}))}},{key:"runPluginInstallSingle",value:function(e,t,a){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var r=new FormData;r.append("action","kadence_import_install_plugins"),r.append("security",kadenceStarterParams.ajax_nonce),r.append("selected",e),r.append("builder",a),r.append("page_id",t),this.runPageAjax(r)}},{key:"runSubscribeSingle",value:function(e){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var t=new FormData;t.append("action","kadence_import_subscribe"),t.append("security",kadenceStarterParams.ajax_nonce),t.append("email",e),this.runPageAjax(t)}},{key:"runRemovePast",value:function(e,t){this.setState({progress:"remove",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_remove_past_import_data"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runPluginInstall",value:function(e,t){this.setState({progress:"plugins",isFetching:!0,showForm:!1});var a=new FormData;a.append("action","kadence_import_install_plugins"),a.append("security",kadenceStarterParams.ajax_nonce),a.append("selected",e),a.append("builder",t),this.runAjax(a)}},{key:"runSubscribe",value:function(e){this.setState({progress:"subscribe",isFetching:!0,showForm:!1});var t=new FormData;t.append("action","kadence_import_subscribe"),t.append("security",kadenceStarterParams.ajax_nonce),t.append("email",e),this.runAjax(t)}},{key:"runPageAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runPageAjax(e);else if(void 0!==a.status&&"subscribeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),t.runPageAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){var s;t.setState({progress:"content"}),(s=new FormData).append("action","kadence_import_single_data"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),s.append("page_id",t.state.selectedPage),s.append("override_colors",t.state.overrideColors),s.append("override_fonts",t.state.overrideFonts),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair),t.runPageAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):"emailDomainPostError"===a||"emailDomainPreError"===a?t.setState({isFetching:!1,progress:"",showForm:!0,emailError:!0}):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})})).fail((function(e){t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"runAjax",value:function(e){var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(a,r,n){if(void 0!==a.status&&"newAJAX"===a.status)t.state.progress="contentNew",t.runAjax(e);else if(void 0!==a.status&&"customizerAJAX"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"afterAllImportAJAX"===a.status){t.setState({progress:"widgets"}),(s=new FormData).append("action","kadence_after_import_data"),s.append("security",kadenceStarterParams.ajax_nonce),t.runAjax(s)}else if(void 0!==a.status&&"pluginSuccess"===a.status){(s=new FormData).append("security",kadenceStarterParams.ajax_nonce),t.state.installContent?(t.setState({progress:"content"}),s.append("action","kadence_import_demo_data"),s.append("builder",t.state.starterSettings.builderType),s.append("selected",t.state.activeTemplate),s.append("palette",t.state.colorPalette),s.append("font",t.state.fontPair)):t.state.installCustomizer?(t.setState({progress:"customizer"}),s.append("action","kadence_import_customizer_data"),s.append("wp_customize","on")):(t.setState({progress:"widgets"}),s.append("action","kadence_after_import_data")),t.runAjax(s)}else if(void 0!==a.status&&"removeSuccess"===a.status){t.setState({progress:"plugins"}),(s=new FormData).append("action","kadence_import_install_plugins"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else if(void 0!==a.status&&"subscribeSuccess"===a.status){var s=new FormData;t.state.removePast?(this.setState({progress:"remove"}),s.append("action","kadence_remove_past_import_data")):(t.setState({progress:"plugins"}),s.append("action","kadence_import_install_plugins")),s.append("security",kadenceStarterParams.ajax_nonce),s.append("selected",t.state.activeTemplate),s.append("builder",t.state.starterSettings.builderType),t.runAjax(s)}else void 0!==a.message?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:"<p>"+a.message+"</p>"}):void 0===a.success||a.success?(console.log(a),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+a+"</p></div>"})):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+Z("Failed Import. Something went wrong internally. Please try again.","kadence-starter-templates")+"</p></div>"})})).fail((function(e){console.log(e),t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",showForm:!0,response:'<div class="notice kadence_starter_templates_response notice-error"><p>Error: '+e.statusText+" ("+e.status+")</p></div>"})}))}},{key:"render",value:function(){for(var e=this,t=["all"],a=0;a<this.state.templates.length;a++)for(var r=0;r<this.state.templates[a].categories.length;r++)t.includes(this.state.templates[a].categories[r])||t.push(this.state.templates[a].categories[r]);t.map((function(t){return{value:t,label:e.capitalizeFirstLetter(t)}}));var n=Z("Gutenberg","kadence-starter-templates"),s=he;"elementor"===this.state.starterSettings.builderType&&(n=Z("Elementor","kadence-starter-templates"),s=ve),"custom"===this.state.starterSettings.builderType&&(n=kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates"),s=kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"components-menu-items__item-icon custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be);var c=!(!this.state.isSaving&&!1!==this.state.activeTemplates&&!this.state.errorTemplates),o=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1;return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",Z("Selected Page:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(h.createElement)(fe,{title:Z("Advanced Settings","kadence-blocks"),initialOpen:e.state.settingOpen,onToggle:function(t){return e.state.settingOpen?e.setState({settingOpen:!1}):e.setState({settingOpen:!0})}},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Page Template Plugins","kadence-starter-templates"))),e.state.isLoadingPlugins&&Object(h.createElement)(ce,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(te,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(te,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(e.state.templatePlugins,(function(e){var t=e.state,r=e.src,n=e.title;return"active"!==t&&"bundle"===r&&(a=!0),"active"===t||"thirdparty"!==r&&"unknown"!==r||!0,Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===r?" bundle-install-required":"")},n," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===r?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(te,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},Z("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?Z("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},Z("Unknown","kadence-starter-templates")))}))))),Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("*Single Page templates will follow your website current global colors and typography settings, you can import without effecting your current site. Or you can optionally override your websites global colors and typography by enabling the settings below.","kadence-starter-templates")),Object(h.createElement)(pe,{label:Z("Override Your Sites Global Colors?","kadence-starter-templates"),checked:void 0!==e.state.overrideColors&&e.state.overrideColors,onChange:function(t){return e.state.overrideColors?e.setState({overrideColors:!1}):e.setState({isOpenCheckColor:!0})}}),e.state.isOpenCheckColor?Object(h.createElement)(se,{className:"ksp-confirm-modal",title:Z("Override Your Sites Colors on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckColor:!1})}},Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("This will override the customizer settings for global colors on your current site when you import this page template.","kadence-starter-templates")),Object(h.createElement)("div",{className:"ksp-override-model-buttons"},Object(h.createElement)(le,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!1})}},Z("Cancel","kadence-starter-templates")),Object(h.createElement)(le,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!0})}},Z("Override Colors","kadence-starter-templates")))):null,e.state.overrideColors&&e.state.colorPalette&&Object(h.createElement)(te,null,Object(h.createElement)("h3",null,Z("Selected Color Palette","kadence-starter-templates")),j()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(h.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},j()(r,(function(e,t){return Object(h.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),Object(h.createElement)(pe,{label:Z("Override Your Sites Fonts?","kadence-starter-templates"),checked:void 0!==e.state.overrideFonts&&e.state.overrideFonts,onChange:function(t){return e.state.overrideFonts?e.setState({overrideFonts:!1}):e.setState({isOpenCheckFont:!0})}}),e.state.isOpenCheckFont?Object(h.createElement)(se,{className:"ksp-confirm-modal",title:Z("Override Your Sites Fonts on Import?","kadence-starter-templates"),onRequestClose:function(){e.setState({isOpenCheckFont:!1})}},Object(h.createElement)("p",{className:"desc-small note-about-colors"},Z("This will override the customizer typography settings on your current site when you import this page template.","kadence-starter-templates")),Object(h.createElement)("div",{className:"ksp-override-model-buttons"},Object(h.createElement)(le,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!1})}},Z("Cancel","kadence-starter-templates")),Object(h.createElement)(le,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!0})}},Z("Override Fonts","kadence-starter-templates")))):null,e.state.fontPair&&e.state.overrideFonts&&Object(h.createElement)(te,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},Z("Selected Font Pair","kadence-starter-templates")),j()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(h.createElement)("div",{className:"kst-selected-font-pair"},Object(h.createElement)("img",{src:r,className:"font-pairing"}),Object(h.createElement)("h4",null,n))})))),"subscribe"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.subscribe_progress),"plugins"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_new_progress),e.state.isFetching&&Object(h.createElement)(ce,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("This Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://kadence-theme.com/"},Z("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,a&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!a&&Object(h.createElement)(te,null,e.state.showForm&&!e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(G,{emailError:e.state.emailError,onRun:function(t){return e.runSubscribeSingle(t)}}),Object(h.createElement)(le,{className:"kb-skip-start subscribe",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},Z("Skip, start importing page","kadence-starter-templates"))),e.state.showForm&&e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(le,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},Z("Start Importing Page","kadence-starter-templates"))))))))},i=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1,r=!1;return Object(h.createElement)(te,null,Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image,alt:t.name}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name)))))),Object(h.createElement)(se,{className:"kst-import-modal",title:Z("Import Starter Template"),onRequestClose:function(){return!e.state.isFetching&&e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",focusMode:!1,isImporting:!1,progress:""})}},!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("This Starter Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://kadence-theme.com/"},Z("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,e.state.hasContent&&Object(h.createElement)("div",{className:"kadence_starter_templates_notice"},e.state.hasPastContent?Object(h.createElement)(te,null,kadenceStarterParams.notice_previous):Object(h.createElement)(te,null,kadenceStarterParams.notice)),e.state.hasPastContent&&Object(h.createElement)(te,null,Object(h.createElement)(pe,{label:Z("Delete Previously Imported Posts and Images?","kadence-starter-templates"),checked:void 0!==e.state.removePast&&e.state.removePast,onChange:function(t){return e.state.removePast?e.setState({removePast:!1}):e.setState({removePast:!0})}})),Object(h.createElement)(fe,{title:Z("Import Details","kadence-blocks"),initialOpen:!1},Object(h.createElement)("div",{className:"required-plugins-list"},Object(h.createElement)("h3",{className:"required-plugins-list-header"},Z("Required Plugins","kadence-starter-templates")),e.state.isLoadingPlugins&&Object(h.createElement)(ce,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(te,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(te,null,e.state.templatePlugins&&"error"!==e.state.templatePlugins&&Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;return"active"!==t&&"bundle"===n&&(r=!0),"active"!==t&&"thirdparty"===n&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===n?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(te,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},Z("*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.","kadence-starter-templates")),Object(h.createElement)("ul",{className:"kadence-required-wrap"},j()(t.plugins,(function(e){return kadenceStarterParams.plugins[e]?("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src&&(r=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==kadenceStarterParams.plugins[e].state&&"bundle"===kadenceStarterParams.plugins[e].src?" bundle-install-required":"")},kadenceStarterParams.plugins[e].title," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===kadenceStarterParams.plugins[e].state?Z("Not Installed","kadence-starter-templates"):kadenceStarterParams.plugins[e].state)," ","active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src?Object(h.createElement)("span",{class:"plugin-install-required"},Z("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},Z("Unknown","kadence-starter-templates")))})))))),e.state.colorPalette&&Object(h.createElement)(te,null,Object(h.createElement)("h3",null,Z("Selected Color Palette","kadence-starter-templates")),j()(e.state.palettes,(function(t){var a=t.palette,r=t.colors;if(a===e.state.colorPalette)return Object(h.createElement)("div",{className:"kst-palette-btn kst-selected-color-palette"},j()(r,(function(e,t){return Object(h.createElement)("div",{key:t,style:{width:22,height:22,marginBottom:0,marginRight:"3px",transform:"scale(1)",transition:"100ms transform ease"},className:"kadence-swatche-item-wrap"},Object(h.createElement)("span",{className:"kadence-swatch-item",style:{height:"100%",display:"block",width:"100%",border:"1px solid rgb(218, 218, 218)",borderRadius:"50%",color:"".concat(e),boxShadow:"inset 0 0 0 ".concat(15,"px"),transition:"100ms box-shadow ease"}}))})))}))),e.state.fontPair&&Object(h.createElement)(te,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},Z("Selected Font Pair","kadence-starter-templates")),j()(e.state.fonts,(function(t){var a=t.font,r=t.img,n=t.name;if(a===e.state.fontPair)return Object(h.createElement)("div",{className:"kst-selected-font-pair"},Object(h.createElement)("img",{src:r,className:"font-pairing"}),Object(h.createElement)("h4",null,n))})))),Object(h.createElement)(fe,{title:Z("Advanced Settings","kadence-blocks"),initialOpen:!1},Object(h.createElement)(pe,{label:Z("Import Customizer Settings","kadence-starter-templates"),checked:void 0!==e.state.installCustomizer&&e.state.installCustomizer,onChange:function(t){return e.state.installCustomizer?e.setState({installCustomizer:!1}):e.setState({installCustomizer:!0})}}),Object(h.createElement)(pe,{label:Z("Import Content","kadence-starter-templates"),checked:void 0!==e.state.installContent&&e.state.installContent,onChange:function(t){return e.state.installContent?e.setState({installContent:!1}):e.setState({installContent:!0})}})),a&&Object(h.createElement)("div",{className:"install-third-party-notice"},Object(h.createElement)("p",{className:"desc-small"},Z("*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.","kadence-starter-templates")),j()(e.state.templatePlugins,(function(e){var t=e.state,n=e.src,s=e.title;if("active"!==t&&"repo"!==n)return"active"!==t&&"bundle"===n&&(r=!0),"active"!==t&&"thirdparty"===n&&(a=!0),Object(h.createElement)("li",{className:"plugin-required".concat("active"!==t&&"bundle"===n?" bundle-install-required":"")},s," - ",Object(h.createElement)("span",{class:"plugin-status"},"notactive"===t?Z("Not Installed","kadence-starter-templates"):t))}))),"subscribe"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.subscribe_progress),"remove"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.remove_progress),"plugins"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.plugin_progress),"content"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_progress),"contentNew"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.content_new_progress),"customizer"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.customizer_progress),"widgets"===e.state.progress&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},kadenceStarterParams.widgets_progress),e.state.isFetching&&Object(h.createElement)(ce,null),kadenceStarterParams.isKadence&&Object(h.createElement)(te,null,a&&Object(h.createElement)(te,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!r&&Object(h.createElement)(le,{className:"kt-defaults-save import-partial-btn",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Skip and Import with Partial Content"))),!a&&Object(h.createElement)(te,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,Z("Install Missing/Inactive Highlighted Premium plugins to Import","kadence-starter-templates")),Object(h.createElement)(ue,{href:"https://www.kadencewp.com/my-account/"},Z("Pro Account","kadence-starter-templates"))),!r&&Object(h.createElement)(te,null,e.state.showForm&&!e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(G,{emailError:e.state.emailError,onRun:function(t){return e.runSubscribe(t)}}),Object(h.createElement)(le,{className:"kb-skip-start",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Skip, Start Importing"))),e.state.showForm&&e.state.isSubscribed&&Object(h.createElement)(te,null,Object(h.createElement)(le,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.state.removePast?e.runRemovePast(t.slug,e.state.starterSettings.builderType):e.runPluginInstall(t.slug,e.state.starterSettings.builderType)}},Z("Start Importing","kadence-starter-templates")))))))))},l=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)(te,null,Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Page Templates","kadence-starter-templates"))),Object(h.createElement)("div",{className:"templates-grid"},j()(t.pages,(function(t){var a=t.title,r=t.id,n=t.thumbnail;return Object(h.createElement)("div",{className:"kst-template-item"},Object(h.createElement)(le,{key:r,className:"kst-import-btn",isSmall:!0,onClick:function(){return e.selectedMode(r)}},Object(h.createElement)(y.a,{offsetBottom:200},Object(h.createElement)("img",{src:n,alt:a})),Object(h.createElement)("div",{className:"demo-title"},Object(h.createElement)("h4",null,a," ",Object(h.createElement)("span",null,Z("View Details","kadence-starter-templates"))))))}))),Object(h.createElement)("div",{className:"kst-import-selection-bottom"},Object(h.createElement)(le,{className:"kt-import-fullsite",isPrimary:!0,onClick:function(){return e.selectedFullMode()}},Z("Import Full Site","kadence-starter-templates")))))},u=function(){var t=e;return Object(h.createElement)("div",{className:"templates-grid"},Object.keys(e.state.activeTemplates).map((function(e,a){var r=t.state.activeTemplates[e].name,n=t.state.activeTemplates[e].slug,s=t.state.activeTemplates[e].image,c=t.state.activeTemplates[e].categories,o=t.state.activeTemplates[e].keywords,i=t.state.activeTemplates[e].pro,l=(t.state.activeTemplates[e].member,t.state.activeTemplates[e].pages);if(("all"===t.state.category||c.includes(t.state.category))&&(!t.state.search||o&&o.some((function(e){return e.toLowerCase().includes(t.state.search.toLowerCase())}))))return Object(h.createElement)("div",{className:"kst-template-item"},Object(h.createElement)(le,{key:e,className:"kst-import-btn",isSmall:!0,onClick:function(){return"custom"===t.state.starterSettings.builderType?t.jumpToImport(n):t.fullFocusMode(n)}},Object(h.createElement)(y.a,{offsetBottom:200},Object(h.createElement)("img",{src:l&&l.home&&l.home.thumbnail?l.home.thumbnail:s,alt:r})),Object(h.createElement)("div",{className:"demo-title"},Object(h.createElement)("h4",null,r))),void 0!==i&&i&&Object(h.createElement)(te,null,Object(h.createElement)("span",{className:"kb-pro-template"},Z("Pro","kadence-starter-sites"))))})))},p=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages[e.state.selectedPage].image,alt:t.pages[e.state.selectedPage].title}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",Z("Selected Page:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.pages[e.state.selectedPage].title))),Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))},m=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)("div",{className:"kst-grid-single-site"},Object(h.createElement)("div",{className:"kst-import-selection-item"},Object(h.createElement)("div",{className:"kst-import-selection"},Object(h.createElement)("img",{src:t.pages&&t.pages.home&&t.pages.home.image?t.pages.home.image:t.image}))),Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-single-selection-options-wrap"},Object(h.createElement)("div",{className:"kst-import-selection-title"},Object(h.createElement)("h2",null,Z("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name))),Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,Z("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))};return Object(h.createElement)(te,null,Object(h.createElement)("div",{class:"kadence_theme_dash_head"},Object(h.createElement)("div",{class:"kadence_theme_dash_head_container"},Object(h.createElement)("div",{class:"kadence_theme_dash_logo"},Object(h.createElement)("img",{src:this.state.logo})),this.state.focusMode&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},this.state.isPageSelected?Object(h.createElement)(de,{text:Z("Back to Individual Pages Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return!e.state.isFetching&&e.setState({colorPalette:"",finished:!1,selectedPage:"home",focusMode:!0,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:""})}})):Object(h.createElement)(de,{text:Z("Back to Starter Templates Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return e.backToDash()}}))),this.state.finished&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},Object(h.createElement)(de,{text:Z("Back to Starter Templates Grid")},Object(h.createElement)(le,{className:"kt-import-back",icon:K,onClick:function(){return e.backToDash()}}))),Object(h.createElement)("div",{class:"kadence_starter_builder_type"},this.state.starterSettings&&this.state.starterSettings.builderType&&Object(h.createElement)(oe,{className:"my-container-class-name",contentClassName:"kst-type-popover",position:"bottom left",renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return Object(h.createElement)(le,{onClick:a,"aria-expanded":t,icon:s},n,Object(h.createElement)(ie,{className:"kst-chev",icon:J}))},renderContent:function(t){t.isOpen;var a=t.onToggle;return Object(h.createElement)("div",null,Object(h.createElement)(me,{icon:he,className:"blocks"===e.state.starterSettings.builderType?"active-item":"",isSelected:"blocks"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","blocks"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},Z("Gutenberg","kadence-starter-templates")),Object(h.createElement)(me,{icon:ve,className:"elementor"===e.state.starterSettings.builderType?"active-item":"",isSelected:"elementor"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","elementor"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},Z("Elementor","kadence-starter-templates")),kadenceStarterParams.ctemplates&&Object(h.createElement)(me,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be,className:"custom"===e.state.starterSettings.builderType?"active-item":"",isSelected:"custom"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","custom"),e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates")))}})),!1!==this.state.activeTemplates&&this.state.starterSettings.builderType&&Object(h.createElement)("div",{class:"kadence_theme_dash_reload"},Object(h.createElement)(de,{text:Z("Sync with Cloud")},Object(h.createElement)(le,{className:"kt-reload-templates",icon:U,onClick:function(){return e.reloadTemplateData()}}))))),Object(h.createElement)("div",{class:"kadence_theme_starter_dash_inner"},this.state.starterSettings&&this.state.starterSettings.builderType?Object(h.createElement)((function(){return Object(h.createElement)(te,null,c?Object(h.createElement)("div",{className:"main-panel"},Object(h.createElement)("div",{className:"kst-overlay-saving"},!e.state.errorTemplates&&Object(h.createElement)(ce,null),e.state.errorTemplates&&Object(h.createElement)(te,null,Object(h.createElement)("h2",{style:{textAlign:"center"}},Z("Error, Unable to access template database, please try re-downloading","kadence-starter-templates")),Object(h.createElement)("div",{style:{textAlign:"center"}},Object(h.createElement)(le,{className:"kt-reload-templates",icon:U,onClick:function(){return e.reloadTemplateData()}},Z(" Sync with Cloud","kadence-starter-templates")))),!1===e.state.activeTemplates&&Object(h.createElement)(te,null,e.loadTemplateData()))):Object(h.createElement)("div",{className:"main-panel"},e.state.focusMode&&Object(h.createElement)(te,null,e.state.isImporting&&Object(h.createElement)(te,null,e.state.isPageSelected?Object(h.createElement)(o,null):Object(h.createElement)(i,null)),!e.state.isImporting&&e.state.isSelected&&Object(h.createElement)(M,{item:e.state.activeTemplates[e.state.activeTemplate],colorPalette:e.state.colorPalette,fontPair:e.state.fontPair,onChange:function(t){e.setState(t)}}),!e.state.isImporting&&!e.state.isSelected&&Object(h.createElement)(l,null)),!e.state.focusMode&&!e.state.finished&&Object(h.createElement)(u,null),e.state.finished&&Object(h.createElement)(te,null,e.state.isPageSelected?Object(h.createElement)(p,null):Object(h.createElement)(m,null))))}),null):Object(h.createElement)((function(){return Object(h.createElement)("div",{className:"kst-choose-builder-wrap".concat(kadenceStarterParams.ctemplates?" adjust-to-three-column":"")},Object(h.createElement)("div",{className:"kst-choose-builder-center"},Object(h.createElement)("h2",{className:"kst-choose-builder-title"},Z("Choose a Builder","kadence-starter-templates")),Object(h.createElement)("div",{className:"kst-choose-builder-inner"},kadenceStarterParams.ctemplates&&Object(h.createElement)(le,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):be,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","custom")}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:Z("Pro Designs","kadence-starter-templates")),Object(h.createElement)(le,{icon:he,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","blocks")}},Z("Gutenberg","kadence-starter-templates")),Object(h.createElement)(le,{icon:ve,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","elementor")}},Z("Elementor","kadence-starter-templates"))),e.state.isSaving&&Object(h.createElement)("div",{className:"kst-overlay-saving"},Object(h.createElement)(ce,null))))}),null)))}}]),a}(ae);wp.domReady((function(){re(Object(h.createElement)(ge,null),document.querySelector(".kadence_starter_dashboard_main"))}))}]);
class-kadence-starter-templates.php CHANGED
@@ -189,7 +189,7 @@ class Starter_Templates {
189
  define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
190
  }
191
  if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
192
- define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.10' );
193
  }
194
  }
195
 
@@ -679,6 +679,11 @@ class Starter_Templates {
679
  'state' => Plugin_Check::active_check( 'the-events-calendar/the-events-calendar.php' ),
680
  'src' => 'repo',
681
  ),
 
 
 
 
 
682
  );
683
  $palettes = array(
684
  array(
@@ -892,6 +897,7 @@ class Starter_Templates {
892
  } else {
893
  $pro_data = false;
894
  }
 
895
  $current_user = wp_get_current_user();
896
  $user_email = $current_user->user_email;
897
  $subscribed = ( class_exists( 'Kadence_Theme_Pro' ) || ! empty( apply_filters( 'kadence_starter_templates_custom_array', array() ) ) ? true : get_option( 'kadence_starter_templates_subscribe' ) );
@@ -924,8 +930,9 @@ class Starter_Templates {
924
  'content_new_progress' => esc_html__( 'Importing Content... Still Importing.', 'kadence-starter-templates' ),
925
  'widgets_progress' => esc_html__( 'Importing Widgets...', 'kadence-starter-templates' ),
926
  'customizer_progress' => esc_html__( 'Importing Customizer Settings...', 'kadence-starter-templates' ),
927
- 'user_email' => $user_email,
928
- 'subscribed' => $subscribed,
 
929
  )
930
  );
931
  }
@@ -1078,6 +1085,13 @@ class Starter_Templates {
1078
  'path' => 'the-events-calendar/the-events-calendar.php',
1079
  'src' => 'repo',
1080
  ),
 
 
 
 
 
 
 
1081
  );
1082
  $plugin_information = array();
1083
  foreach( $info['plugins'] as $plugin ) {
@@ -1286,6 +1300,13 @@ class Starter_Templates {
1286
  'path' => 'the-events-calendar/the-events-calendar.php',
1287
  'src' => 'repo',
1288
  ),
 
 
 
 
 
 
 
1289
  );
1290
  foreach( $info['plugins'] as $plugin ) {
1291
  $path = false;
189
  define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
190
  }
191
  if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
192
+ define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.11' );
193
  }
194
  }
195
 
679
  'state' => Plugin_Check::active_check( 'the-events-calendar/the-events-calendar.php' ),
680
  'src' => 'repo',
681
  ),
682
+ 'event-tickets' => array(
683
+ 'title' => 'Event Tickets',
684
+ 'state' => Plugin_Check::active_check( 'event-tickets/event-tickets.php' ),
685
+ 'src' => 'repo',
686
+ ),
687
  );
688
  $palettes = array(
689
  array(
897
  } else {
898
  $pro_data = false;
899
  }
900
+ $show_builder_choice = ( 'active' === $plugins['elementor']['state'] ? true : false );
901
  $current_user = wp_get_current_user();
902
  $user_email = $current_user->user_email;
903
  $subscribed = ( class_exists( 'Kadence_Theme_Pro' ) || ! empty( apply_filters( 'kadence_starter_templates_custom_array', array() ) ) ? true : get_option( 'kadence_starter_templates_subscribe' ) );
930
  'content_new_progress' => esc_html__( 'Importing Content... Still Importing.', 'kadence-starter-templates' ),
931
  'widgets_progress' => esc_html__( 'Importing Widgets...', 'kadence-starter-templates' ),
932
  'customizer_progress' => esc_html__( 'Importing Customizer Settings...', 'kadence-starter-templates' ),
933
+ 'user_email' => $user_email,
934
+ 'subscribed' => $subscribed,
935
+ 'openBuilder' => $show_builder_choice,
936
  )
937
  );
938
  }
1085
  'path' => 'the-events-calendar/the-events-calendar.php',
1086
  'src' => 'repo',
1087
  ),
1088
+ 'event-tickets' => array(
1089
+ 'title' => 'Event Tickets',
1090
+ 'base' => 'event-tickets',
1091
+ 'slug' => 'event-tickets',
1092
+ 'path' => 'event-tickets/event-tickets.php',
1093
+ 'src' => 'repo',
1094
+ ),
1095
  );
1096
  $plugin_information = array();
1097
  foreach( $info['plugins'] as $plugin ) {
1300
  'path' => 'the-events-calendar/the-events-calendar.php',
1301
  'src' => 'repo',
1302
  ),
1303
+ 'event-tickets' => array(
1304
+ 'title' => 'Event Tickets',
1305
+ 'base' => 'event-tickets',
1306
+ 'slug' => 'event-tickets',
1307
+ 'path' => 'event-tickets/event-tickets.php',
1308
+ 'src' => 'repo',
1309
+ ),
1310
  );
1311
  foreach( $info['plugins'] as $plugin ) {
1312
  $path = false;
inc/class-importer.php CHANGED
@@ -369,18 +369,7 @@ class Importer {
369
  // $slash = str_replace( 'nselector', '\nselector', $slash );
370
  $slash = wp_json_encode( $block['attrs']['kadenceBlockCSS'] );
371
  $update = str_replace( '\n', '\\\n', $slash );
372
- // $update = str_replace( ';\n', ';\\\n', $update );
373
- // $update = str_replace( '}\n', '}\\\n', $update );
374
- // $update = str_replace( '; \n', '; \\\n', $update );
375
- // $update = str_replace( '\nselector', '\\\nselector', $update );
376
- // $update = str_replace( '{n ', '{\\\n ', $update );
377
- // $update = str_replace( '}n', '}\\\n', $update );
378
- // $update = str_replace( ';n', ';\\\n', $update );
379
- // $update = str_replace( '; n', '; \\\n', $update );
380
- // $update = str_replace( 'nselector', '\\\nselector', $update );
381
- // $update = str_replace( 'n ', '', $block['attrs']['kadenceBlockCSS'] );
382
- // $update = str_replace( ';n', ';', $update );
383
- // $update = str_replace( 'nselector', 'selector', $update );
384
  if ( $update !== $slash ) {
385
  $data['post_content'] = str_replace( $slash, $update, $data['post_content'] );
386
  }
@@ -430,7 +419,8 @@ class Importer {
430
  // $update = str_replace( ';n', ';', $update );
431
  // $update = str_replace( 'nselector', 'selector', $update );
432
  $slash = wp_json_encode( $inner_block['attrs']['kadenceBlockCSS'] );
433
- $update = str_replace( '\n', '\\\n', $slash );
 
434
  if ( $update !== $slash ) {
435
  $post_content = str_replace( $slash, $update, $post_content );
436
  }
369
  // $slash = str_replace( 'nselector', '\nselector', $slash );
370
  $slash = wp_json_encode( $block['attrs']['kadenceBlockCSS'] );
371
  $update = str_replace( '\n', '\\\n', $slash );
372
+ $slash = str_replace( '--global-palette', '\u002d\u002dglobal-palette', $slash );
 
 
 
 
 
 
 
 
 
 
 
373
  if ( $update !== $slash ) {
374
  $data['post_content'] = str_replace( $slash, $update, $data['post_content'] );
375
  }
419
  // $update = str_replace( ';n', ';', $update );
420
  // $update = str_replace( 'nselector', 'selector', $update );
421
  $slash = wp_json_encode( $inner_block['attrs']['kadenceBlockCSS'] );
422
+ $update = str_replace( '\n', ' \\\n', $slash );
423
+ $slash = str_replace( '--global-palette', '\u002d\u002dglobal-palette', $slash );
424
  if ( $update !== $slash ) {
425
  $post_content = str_replace( $slash, $update, $post_content );
426
  }
inc/react/src/index.js CHANGED
@@ -204,6 +204,11 @@ class KadenceImporter extends Component {
204
  installWidgets: true,
205
  };
206
  }
 
 
 
 
 
207
  saveConfig( setting, settingValue ) {
208
  this.setState( { isSaving: true } );
209
  const config = ( kadenceStarterParams.starterSettings ? JSON.parse( kadenceStarterParams.starterSettings ) : {} );
@@ -878,7 +883,7 @@ class KadenceImporter extends Component {
878
  if ( 'active' !== state && 'bundle' === src ) {
879
  pluginsMember = true;
880
  }
881
- if ( 'active' !== state && ( 'thirdparty' === src || 'unknown' === src ) ) {
882
  pluginsPremium = true;
883
  }
884
  return (
@@ -996,13 +1001,13 @@ class KadenceImporter extends Component {
996
  { __( '*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.', 'kadence-starter-templates' ) }
997
  </p>
998
  { map( this.state.templatePlugins, ( { state, src, title } ) => {
999
- if ( 'active' === state ) {
1000
  return;
1001
  }
1002
  if ( 'active' !== state && 'bundle' === src ) {
1003
  pluginsMember = true;
1004
  }
1005
- if ( 'active' !== state && ( 'thirdparty' === src || 'unknown' === src ) ) {
1006
  pluginsPremium = true;
1007
  }
1008
  return (
204
  installWidgets: true,
205
  };
206
  }
207
+ componentDidMount() {
208
+ if ( ! kadenceStarterParams.openBuilder && ! kadenceStarterParams.ctemplates ) {
209
+ this.saveConfig( 'builderType', 'blocks' );
210
+ }
211
+ }
212
  saveConfig( setting, settingValue ) {
213
  this.setState( { isSaving: true } );
214
  const config = ( kadenceStarterParams.starterSettings ? JSON.parse( kadenceStarterParams.starterSettings ) : {} );
883
  if ( 'active' !== state && 'bundle' === src ) {
884
  pluginsMember = true;
885
  }
886
+ if ( 'active' !== state && 'thirdparty' === src ) {
887
  pluginsPremium = true;
888
  }
889
  return (
1001
  { __( '*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.', 'kadence-starter-templates' ) }
1002
  </p>
1003
  { map( this.state.templatePlugins, ( { state, src, title } ) => {
1004
+ if ( 'active' === state || 'repo' === src ) {
1005
  return;
1006
  }
1007
  if ( 'active' !== state && 'bundle' === src ) {
1008
  pluginsMember = true;
1009
  }
1010
+ if ( 'active' !== state && 'thirdparty' === src ) {
1011
  pluginsPremium = true;
1012
  }
1013
  return (
kadence-starter-templates.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Kadence Starter Templates
4
  * Description: Choose the prebuilt website and click to import.
5
- * Version: 1.2.10
6
  * Author: Kadence WP
7
  * Author URI: https://kadencewp.com/
8
  * License: GPLv2 or later
2
  /**
3
  * Plugin Name: Kadence Starter Templates
4
  * Description: Choose the prebuilt website and click to import.
5
+ * Version: 1.2.11
6
  * Author: Kadence WP
7
  * Author URI: https://kadencewp.com/
8
  * License: GPLv2 or later
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
3
  Tags: templates, gutenberg
4
  Requires at least: 5.0
5
  Tested up to: 5.8
6
- Stable tag: 1.2.10
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -108,6 +108,10 @@ Absolutely not.
108
 
109
  == Changelog ==
110
 
 
 
 
 
111
  = 1.2.10 =
112
  * Update: Text and import flow.
113
 
3
  Tags: templates, gutenberg
4
  Requires at least: 5.0
5
  Tested up to: 5.8
6
+ Stable tag: 1.2.11
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
108
 
109
  == Changelog ==
110
 
111
+ = 1.2.11 =
112
+ * Fix: Issue with event-tickets.
113
+ * Fix: issue with CSS import in some situations.
114
+
115
  = 1.2.10 =
116
  * Update: Text and import flow.
117